OSDN Git Service

PR target/37179:
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-05-12  Jan Hubicka  <jh@suse.cz>
2
3         * tree-inline.c (estimate_operator_cost): Add operands;
4         when division happens by constant, it is cheap.
5         (estimate_num_insns): Loads and stores are not having cost of 0;
6         EH magic stuff is cheap; when computing runtime cost of switch,
7         use log2 base of amount of its cases; builtin_expect has cost of 0;
8         compute cost for moving return value of call.
9         (init_inline_once): Initialize time_based flags.
10         * tree-inline.h (eni_weights_d): Add time_based flag.
11
12 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
13
14         * df-core.c: Update head documentation.
15
16 2009-05-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
17
18         PR bootstrap/40118
19         * rs6000.c (rs6000_generate_compare): Use op1b instead of
20         shadowing exisiting variable op1.
21
22 2009-05-12  Uros Bizjak  <ubizjak@gmail.com>
23
24         PR target/37179
25         * config/i386/driver-i386.c (processor_signatures): New enum.
26         (SIG_GEODE): Move from vendor_signatures to processor_signatures.
27         (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
28         processor signature to detect geode processor.
29
30 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
31
32         Revert:
33
34         2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
35
36         * optabs.c (prepare_cmp_insn): Temporarily disable test that
37         causes spurious differences between trunk and cond-optab branch.
38
39 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
40
41         * dojump.c (compare_from_rtx): Delete.
42         * expmed.c (emit_store_flag): Only try cstore_optab.  Canonicalize
43         any MODE_CC mode to the cstorecc4 pattern.  Use prepare_operand, fail
44         if the comparison does not satisfy the predicate; test predicates for
45         operands 2 and 3 of a cstore pattern.  Don't try cstore optab
46         further if one existing pattern fails.
47         * expr.h (compare_from_rtx): Delete.
48         (prepare_operand): Declare it.
49         * optabs.c: Change "lib call" to "libcall" throughout.
50         (bcc_gen_fctn, setcc_gen_code, trap_rtx,
51         HAVE_conditional_trap, emit_cmp_insn): Delete.
52         (can_compare_p): Delete cmp_optab case.
53         (prepare_float_lib_cmp): Return an rtx and a machine mode.
54         Accept other parameters by value.
55         (prepare_operand): Make non-static.
56         (prepare_cmp_insn): Return an rtx and a machine mode.  Accept
57         other parameters by value.  Try to widen operands here based on
58         an optab_methods argument and looking at cbranch_optab.
59         (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
60         loop.  Use cbranch_optab directly.
61         (emit_cmp_and_jump_insns): Fix comment.  Adjust call to
62         prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
63         assertion.
64         (emit_conditional_move, emit_conditional_add): Inline what's needed
65         of compare_from_rtx, using new prepare_cmp_insn for the rest.
66         (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
67         with COMPARE.  Move cmov_optab and cstore_optab above
68         with cbranch_optab, move cmp_optab down with ucmp_optab,
69         remove tst_otpab.  Do not initialize trap_rtx.
70         (gen_cond_trap): Do it here.  Use ctrap_optab.  Test predicate
71         for trap code.  Do not check HAVE_conditional_trap.  Use
72         prepare_cmp_insn.  Accept no predicate for operand 3.
73         * optabs.h (OTI_cmp): Mark as used only for libcalls.
74         (OTI_ctrap, ctrap_optab): New.
75         (tst_optab): Delete.
76         (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
77         * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
78         with lookup of ctrap_optab.
79         * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn,
80         setcc_gen_code): Delete.
81         (ctrap_optab): New.
82
83         * combine.c (combine_simplify_rtx, simplify_set): Do not
84         special case comparing against zero for cc0 machines.
85         * simplify-rtx.c (simplify_binary_operation_1): Never remove
86         COMPARE on cc0 machines.
87         (simplify_relational_operation): Return a new expression when
88         a COMPARE could be removed.
89         * final.c (final_scan_insn): Compare cc_status values
90         against LHS of a (compare FOO (const_int 0)) cc0 source.
91         Also check if cc_status.value is the full compare.
92
93         * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
94         (cstoreMM4): Document.
95         (conditional_trap): Document ctrapMM4 instead.
96         (sync_compare_and_swapMM): Refer to cbranchcc4.
97         (Dependent Patterns): Eliminate obsolete information referring to
98         the old jump optimization phase.
99         (Canonicalization): Include cbranchcc4 case, omit canonicalization
100         of compares with 0 on cc0 machines.
101         (Jump Patterns): Refer to MODE_CC jump patterns preferably,
102         avoiding references to cc0.  Remove text about storing operands
103         in cmpMM.
104         * doc/tm.texi (Condition Codes): Include blurb on different
105         condition code representations, separate into subsections for
106         CC0, MODE_CC and conditional execution.
107
108         * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
109         alpha_emit_setcc): Accept operands and a machine mode.
110         * config/alpha/alpha.c (alpha_emit_conditional_branch):
111         Get code/op0/op1 from operands, use machine mode argument
112         instead of alpha_compare.fp_p.  Emit the branch here.
113         (alpha_emit_setcc): Likewise, and return boolean.
114         (alpha_emit_conditional_move): Likewise.  Assert that
115         cmp_op_mode == cmp_mode, and simplify accordingly.
116         * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
117         * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
118         (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
119         Delete.
120         (stack probe test): Use cbranchdi4.
121         * config/alpha/predicates.md (alpha_cbranch_operator): New.
122
123         * config/arc/arc.c (gen_compare_reg): Do not emit cmp. 
124         * config/arc/arc.h (movsicc, movsfcc): Use it.
125         (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
126         (cbranchsi4, cstoresi4): New.
127         (cmpsi, bCC and sCC expanders): Remove. 
128
129         * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
130         * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
131         * config/arm/predicates.md (arm_comparison_operator): Only include
132         floating-point operators if there is a hardware floating-point unit.
133         * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
134         deferring to cbranch_cc and cstore_cc respectively.
135         (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
136         cbranch_cc, cstore_cc): New.
137         (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
138         arm_compare_op1.
139         (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
140
141         * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
142         * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
143         as an argument.
144         (adjust_insn_length): Adjust calls.
145         (avr_reorg): Handle (compare (foo) (const_int 0)).
146         * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
147         (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
148         (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
149         (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
150         (bCC): Remove.
151         (cbranchqi4, cbranchhi4, cbranchsi4): New.
152         (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
153
154         * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
155         (cbranchsi4, cstorebi4, cstoresi4): New.
156         (movbisi): This insn is duplicate, split it to zero_extend.
157         * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
158         (bfin_gen_compare): Do not use them.  Emit VOIDmode SET, not BImode.
159         (bfin_optimize_loop): Use cbranch expander.
160         * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
161         * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
162         (bfin_bimode_comparison_operator): ... this.
163         (bfin_direct_comparison_operator): New.
164  
165         * config/cris/cris.c (cris_normal_notice_update_cc): Look
166         inside (compare FOO (const_int 0)).
167         (cris_rtx_costs): Handle ZERO_EXTRACT.
168         * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
169         (*tstdi_non_v32): Fold in *cmpdi_non_v32.
170         (*tstdi_v32): Delete.
171         (*cmpdi_non_v32): Add M alternative for operand 1.
172         (cmpsi, cmp<mode>): Make private.
173         (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
174         with COMPARE.
175         (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
176
177         * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
178         (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
179         (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
180         (cc_reg_operand): New.
181         (any_cond): Delete.
182         * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
183         crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
184         * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
185         * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
186         crx_expand_scond): Delete.
187
188         * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
189         (cbranchsi4): New.
190         * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
191         * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
192
193         * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
194         cstoresi4, cstoresf4, cstoredf4): New.
195         (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
196         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
197         Receive the entire operands array.
198         * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
199         * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
200         * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
201         Get test/op0/op1 from the operands array.
202         (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
203
204         * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
205         (h8300_expand_store): New.
206         * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
207         (const_int 0)).
208         (h8300_expand_branch): Emit compare here.  Adjust for new arguments.
209         (h8300_expand_store): New.
210         * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
211         or do not try to produce (set (cc0) REG).
212         (peepholes): Wrap arguments with COMPARE.  Add a peephole to
213         change a compare into a move to a scratch register.  Disable some
214         peepholes when comparing with zero.
215         (tstsi, tsthi, tstsi, cmpqi): Make private.
216         (cmphi): Delete.
217         (bCC, sCC): Delete.
218         (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
219         cstoresi4): New.
220
221         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
222         ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
223         (ix86_emit_i387_log1p): Use gen_cbranchxf4.
224         (ix86_emit_i387_log1p): Use cbranchxf2.
225         (ix86_expand_setcc): Return void.
226         * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
227         * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
228         cmp<MODEF>, cmpcc): Remove.
229         (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
230         cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
231         cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
232         (sCC and bCC expanders): Remove.
233         (stack_protect_test): Use cbranchcc4.
234
235         * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
236         Delete.
237         (ia64_expand_compare): Accept three rtx by reference and return void.
238         * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
239         (ia64_expand_compare): Replace op0/op1 with *op0/*op1.  Get code
240         from *expr.  Update *expr with the BImode comparison to do.
241         * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
242         cmptf, bCC, sCC, conditional_trap): Delete.
243         (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4, 
244         cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
245         cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
246         ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
247         * config/ia64/predicates.md (ia64_cbranch_operator): New.
248
249         * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
250         type of last argument.
251         * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
252         (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
253         use machine mode argument instead of branch_type.  Remove dead
254         code for floating-point comparisons.
255         * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
256         * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
257         Remove.
258         (cbranchsi4, cstoresi4): New.
259         * config/iq2000/predicates.md (reg_or_const_operand): New.
260
261         * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
262         * config/m32c/m32c.md (any_cond, gl_cond): Delete.
263         (b<code>_op): Rewrite to...
264         (bcc_op): ... this, using match_operator.
265         (s<code>_op): Rewrite to...
266         (scc_op): ... this, using match_operator.
267         (s<code>_24_op): Rewrite to...
268         (scc_op_24): ... this, using match_operator.
269         (s<code>_<mode>): Rewrite to...
270         (cstore<mode>4): ... this, using match_operator.
271         (s<code>_<mode>_24): Rewrite to...
272         (cstore<mode>4_24): ... this, using match_operator.
273         * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
274         m32c_unpend_compare, m32c_expand_scc): Delete.
275         * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
276         m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
277         (m32c_expand_movcc): Change NE to EQ if necessary.
278         (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
279
280         * config/m32r/m32r-protos.h (gen_cond_store): New.
281         * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
282         (gen_cond_store): New, from sCC patterns.
283         (m32r_expand_block_move): Use cbranchsi4.
284         * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
285         * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
286         (cbranchsi4, cstoresi4): New.
287         
288         * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
289         Delete.
290         (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
291         (m68hc11_notice_update_cc): Look into a compare with 0.
292         * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
293         Delete.
294         * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
295         cmphi, cmpqi, bCC): Delete.
296         (cbranchsi4, cbranchhi4, cbranchqi4): New.
297         (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
298         bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
299         sets with COMPARE.
300
301         * config/m68k/predicates.md (m68k_cstore_comparison_operator,
302         const0_operand, const1_operand, m68k_subword_comparison_operand): New.
303         * config/m68k/constraints.md (H): New.
304         * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
305         the define_insn below.
306         (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
307         (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
308         *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
309         patterns): Wrap RHS with COMPARE.
310         (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
311         (*cmpdi_internal): Name this pattern.
312         (cmpdi): Change to define_insn.
313         (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
314         cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
315         (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
316         predicate.
317         (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
318         sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
319         (conditional_trap): Change to...
320         (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
321         (*conditional_trap): Use the ordered_comparison_operator and
322         const1_operand predicates.
323         * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
324         (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
325         (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
326         * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
327
328         * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
329         mcore_modify_comparison, mcore_gen_compare_reg): Remove.
330         (mcore_gen_compare): New. 
331         * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
332         (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
333         (mcore_gen_compare): ... this.
334         * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
335         (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
336         (stack probe pattern): Use cbranchsi4.
337
338         * config/mips/predicates.md (mips_cstore_operator): New.
339         * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
340         * config/mips/mips.md (any_cond): Delete.
341         (conditional_trap): Rename to ctrap<GPR:mode>4.  Adjust predicates,
342         always succeed.
343         (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
344         fixuns_truncsfdi2): Use cbranch patterns.
345         (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete. 
346         (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
347         Adjust call to mips_expand_conditional_branch.
348         (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
349         cstore<GPR:mode>4.
350         * config/mips/mips-protos.h (mips_expand_conditional_branch,
351         mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
352         * config/mips/mips.c (cmp_operands): Delete.
353         (mips_emit_compare): Get comparison operands from *op0/*op1.
354         (mips_expand_scc): Get code/op0/op1/target from operands.  Assert
355         that it succeeds.  Use op0/op1 instead of cmp_operands.
356         (mips_expand_conditional_branch, mips_expand_conditional_move,
357         mips_expand_conditional_trap): Likewise.
358         (mips_block_move_loop): Use cbranch patterns. 
359         * config/mips/mips.h (cmp_operands): Delete.
360
361         * config/mmix/mmix.c (mmix_valid_comparison): Delete.
362         (mmix_gen_compare_reg): Just return a register in the right CC mode.
363         * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
364         * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
365         (*cmpcc_folded): Rename to...
366         (*cmpdi_folded): this.
367         (*cmpcc): Rename to...
368         (*cmps): ... this.
369         (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
370         (bCC): Remove.
371         (cbranchdi4): New.
372         (cbranchdf4): New.  Handle invalid comparisons here.
373         * config/mmix/predicates.md (float_comparison_operator): New.
374
375         * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
376         zero_extract to be cheap in (compare (zero_extract) (const_int 0).
377         * config/mn10300/mn10300.md (tst): Delete.
378         (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
379         Name these patterns and wrap RHS in a compare.
380         (*cmpsi): Make this pattern private.  Include tst.
381         (*cmpsf): Make this pattern private.
382         (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
383         (compare with zero peepholes): Likewise.
384         (bCC): Remove.
385         (cbranchsi4, cbranchsf4): New.
386         (casesi): Use cbranchsi4.
387
388         * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
389         hppa_branch_type): Delete.
390         (return_addr_rtx): Use cbranchsi4.
391         (emit_bcond_fp): Accept all operands.  Replace CODE with NE.
392         Emit CCFPmode comparison here.
393         (gen_cmp_fp): Delete, now part of emit_bcond_fp.
394         * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
395         hppa_branch_type): Delete.
396         * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
397         (movsicc, movdicc): Remove references to hppa_compare_op0,
398         hppa_compare_op1 and compare_from_rtx.
399         (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
400         (casesi): Use cbranchsi4.
401
402         * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
403         * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
404         * config/pdp11/pdp11.md (register_or_const0_operand): New.
405         (cmpdf, cmphi, cmpqi): Make private.  Add tst alternatives.
406         (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
407         (bCC): Delete.
408         (cbranchdf4, cbranchhi4, cbranchqi4): New.
409         (*branch, *branch_inverted): New.
410
411         * config/picochip/picochip.md (cbranchhi4): Use
412         ordered_comparison_operator.
413         (cmphi, bCC): Remove.
414
415         * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
416         (trap_comparison_operator): Delete.
417         * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
418         rs6000_emit_cbranch): Accept mode and operands.
419         * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
420         rs6000_compare_fp_p): Delete.   
421         (rs6000_generate_compare): Accept mode and comparison.  Extract code
422         and op0/op1 from there.  Replace references to rs6000_compare_op0
423         and rs6000_compare_op1.
424         (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
425         extract result from passed operands.
426         (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
427         extract loc from passed operands.
428         (rs6000_emit_cmove): Likewise.
429         * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
430         rs6000_compare_fp_p): Delete.
431         * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
432         (cbranch<GPR>4, cbranch<FP>4): New.
433         (cstore<mode>4): New.  Consolidate here all choices about when to use
434         portable or specialized sCC sequences.
435         (stack_protect_test): Use cbranchsi4.
436         (conditional_trap): Replace with ctrap<GPR>4.
437         (conditional trap insn): Replace trap_comparison_operator with
438         ordered_comparison_operator. 
439
440         * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
441         (s390_emit_prologue): Use ctrap.
442         * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
443         * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
444         New predicates replacing...
445         * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
446         (cmp<GPR>, cmp<FP>, cmpcc): Delete.
447         (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
448         (add<mode>cc): Do not use s390_compare_op0/op1.
449         (s<code>): Change to...
450         (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
451         (seq): Change to...
452         (cstorecc4): ... this.  Handle EQ or NE equally.
453         (*sne): Un-privatize for use in cstorecc4.
454         (b<code>): Change to...
455         (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
456         (conditional_trap): Replace with...
457         (ctrap<GPR>4, ctrap<FP>4): ... these.
458         (stack_protect): Use cbranchcc4.
459
460         * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
461         * config/score/score-protos.h (score_gen_cmp): Delete.
462         * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
463         (score_block_move-loop): Use cbranchsi4.
464         * config/score/score.md (cbranchsi4): New.
465         (cmpsi, bCC): Delete.
466         * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
467         (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
468         * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
469         (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
470         * config/score/score3.h (score3_gen_cmp): Delete.
471         * config/score/score7.h (score7_gen_cmp): Delete.
472
473         * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
474         (sh_emit_scc_to_t): ... this.  Return void.
475         (from_compare): Rename to...
476         (sh_emit_compare_and_branch): ... this.
477         (sh_emit_compare_and_set): New.
478         (sh_expand_t_scc): Accept operands.
479         * config/sh/predicates.md (sh_float_comparison_operator): New.
480         * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
481         (prepare_scc_operands): Rename to...
482         (sh_emit_scc_to_t): ... this.  Return void.  Get op0/op1 from
483         arguments.
484         (sh_emit_cheap_store_flag): New.
485         (sh_emit_set_t_insn): New.
486         (from_compare): Rename to...
487         (sh_emit_compare_and_branch): ... this.  Accept mode.  Rewrite
488         handling of TARGET_SH2E floating point to avoid recursive call.
489         Generate branch here.
490         (sh_emit_compare_and_set): New.
491         (sh_expand_t_scc): Get op0/op1 from arguments.
492         (sh_emit_cheap_store_flag): New.
493         * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
494         cases.
495         (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
496         (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
497         (movsicc, movdicc): Do nothing when it recreated operands from
498         sh_compare_*. Use sh_emit_cheap_store_flag.  Adjust call to
499         prepare_scc_operands (now sh_emit_scc_to_t).
500         (udivdi3): Use cstoresi4.
501         (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
502         bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
503         (cbranchint4_media, cbranchfp4_media): New.
504         (casesi): Use cbranchdi4.
505         (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
506         Delete.
507         (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
508         (movnegt): Remove second operand.
509         (cbranchsf4, cbranchdf4): New.
510         (stack_protect): Use cbranchdi4/cbranchsi4.
511
512         * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
513         (gen_compare_reg): Accept comparison, extract part of it to...
514         (gen_compare_reg_1): ... this. 
515         (gen_compare_operator): Delete.
516         (gen_v9_scc): Accept separate destination, comparison code and arms.
517         Do not use sparc_compare_op0/sparc_compare_op1.
518         (emit_scc_insn, emit_conditional_branch_insn): New.
519         (emit_v9_brxx): Make static.  Remove useless assertion.
520         (sparc_emit_float_lib_cmp): Return RTL instead of calling
521         emit_cmp_insn.
522         (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
523         * config/sparc/sparc-protos.h (gen_compare_reg,
524         sparc_emit_float_lib_cmp): Adjust prototype.
525         (emit_scc_insn, emit_conditional_branch_insn): New.
526         (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
527         * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
528         * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
529         iterators to the top.
530         (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
531         snesi_special_extend, sCC, bCC, seqdi_special_trunc,
532         snedi_special_trunc): Delete.
533         (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
534         and snedi_special_trunc.
535         (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
536         cbranchdi4, cbranch<F:mode>4): New.
537         (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
538         here.  Use gen_compare_reg instead of gen_compare_operator.
539         (conditional_trap): Replace with...
540         (ctrapsi4, ctrapdi4): ... this.
541         (stack_protect_test): Use cbranchcc4.
542
543         * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
544         argument to rtx.
545         * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove. 
546         (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
547         Change spu_compare_op0/op1 to op0/op1 throughout.  Get target
548         from operands[0] or operands[3] depending on is_set.
549         * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
550         * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
551         cmpdf, bCC), sCC: Remove.
552         (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4, 
553         cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
554         cstoredf4): New.
555         (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
556         spu_emit_branch_or_set.
557
558         * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
559         Add two arguments.
560         * config/stormy16/stormy16.h (xstormy16_compare_op0,
561         xstormy16_compare_op1): Delete.
562         * config/stormy16/stormy16.c (xstormy16_compare_op0,
563         xstormy16_compare_op1): Delete. 
564         (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
565         Adjust calls.
566         * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
567         (cmphi, cmpsi, bCC): Remove.
568
569         * config/v850/v850.md (tstsi, cmpsi): Fold into...
570         (*cmpsi): ... this one.
571         (cbranchsi4, cstoresi4): New.
572         (bCC expanders): Delete.
573         (sCC insns): Fold into...
574         (*setcc): ... this one.
575         (casesi): Do not use gen_cmpsi and gen_bgtu. 
576         (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
577         (movsicc): Simplify.
578         * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
579
580         * config/vax/vax-protos.h (cond_name): New.
581         (vax_output_conditional_branch): Remove.
582         * config/vax/vax.c (cond_name): New.
583         (vax_output_conditional_branch): Remove.
584         * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
585         * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
586         (cmp<VAXint>, cmp<VAXfp>): Privatize.  Add constraints for tst.
587         (bit<VAXint>): Wrap source with (compare).
588         (b<code> and following unnamed pattern): Rename to *branch and
589         *branch_reversed.  Change macroization to match_operator.
590         (cbranch<VAXint>4, cbranch<VAXfp>4): New.
591
592         * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
593         * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
594         Change last argument to machine_mode.
595         (xtensa_expand_scc): Add machine_mode argument.
596         * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
597         (gen_conditional_move, xtensa_expand_conditional_branch,
598         xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
599         instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
600         Adjust operand numbers.
601         * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
602         Delete.
603         * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
604         (cmpsi, cmpsf, b<code>, s<code>): Delete.
605         (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
606
607 2009-05-12  Paolo Bonzini  <bonzini@gnu.org>
608
609         * optabs.c (prepare_cmp_insn): Temporarily disable test that
610         causes spurious differences between trunk and cond-optab branch.
611
612 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
613
614         PR target/37137
615         * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
616
617 2009-05-12  Alexandre Oliva  <aoliva@redhat.com>
618
619         * tree.c (iterative_hash_pointer): Delete.
620         (iterative_hash_expr): Short-circuit handling of NULL pointer.
621         Hash UIDs and versions of SSA names.  Don't special-case built-in
622         function declarations.
623
624 2009-05-11  Ian Lance Taylor  <iant@google.com>
625
626         PR bootstrap/40103
627         * graphite.c: Force -Wc++-compat to only be a warning before
628         #including "cloog/cloog.h".
629
630 2009-05-11  Martin Jambor  <mjambor@suse.cz>
631
632         * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
633         
634 2009-05-11  Jan Hubicka  <jh@suse.cz>
635
636         * tree-ssa-loop-ivcanon.c: Include target.h
637         (struct loop_size): new structure.
638         (constant_after_peeling): New predicate.
639         (tree_estimate_loop_size): New function.
640         (estimated_unrolled_size): Rewrite for new estimates.
641         (try_unroll_loop_completely): Use new estimates.
642         * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
643
644 2009-05-11  Andrew Pinski  <andrew_pinski@playstation.sony.com>
645
646         * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
647         libcpp interface change.
648         (spu_macro_to_expand): Likewise.
649
650 2009-05-11  Paolo Bonzini  <bonzini@gnu.org>
651
652         PR tree-optimization/40026
653         * gimplify.c (gimplify_init_constructor): Change initial conditional
654         to assertion.  Rewrite TREE_OPERAND (*expr_p, 1) after
655         optimize_compound_literals_in_ctor.
656
657 2009-05-11  Nathan Sidwell  <nathan@codesourcery.com>
658
659         * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
660         New devices.
661         * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
662
663 2009-05-11  H.J. Lu  <hongjiu.lu@intel.com>
664
665         * tree-vect-data-refs.c (vect_analyze_group_access): Use
666         HOST_WIDE_INT for gap.
667
668 2009-05-11  Ira Rosen  <irar@il.ibm.com>
669
670         PR tree-optimization/40074
671         * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
672         account in group size and step comparison.
673
674 2009-05-11  Richard Guenther  <rguenther@suse.de>
675
676         * passes.c (init_optimization_passes): Strip now incorrect comment.
677         (execute_function_todo): Do not set PROP_alias.
678         * tree-pass.h (PROP_alias): Remove.
679         * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
680         * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
681         * tree-nrv.c (pass_return_slot): Likewise.
682         * tree-object-size.c (pass_object_sizes): Likewise.
683         * tree-ssa-dom.c (pass_dominator): Likewise.
684         (pass_phi_only_cprop): Likewise.
685         * tree-ssa-dse.c (pass_dse): Likewise.
686         * tree-ssa-phiopt.c (pass_phiopt): Likewise.
687         (pass_cselim): Likewise.
688         * tree-ssa-pre.c (pass_pre): Likewise.
689         (pass_fre): Likewise.
690         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
691         * tree-ssa-sink.c (pass_sink_code): Likewise.
692         * tree-stdarg.c (pass_stdarg): Likewise.
693         * tree-tailcall.c (pass_tail_calls): Likewise.
694         * tree-vrp.c (pass_vrp): Likewise.
695
696 2009-05-10  Ian Lance Taylor  <iant@google.com>
697
698         * basic-block.h (enum profile_status): Break out of struct
699         control_flow_graph.
700         * cgraph.h (struct inline_summary): Break out of struct
701         cgraph_local_info.
702         * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
703         of struct cgraph_order_sort.
704         * combine.c (enum undo_kind): New enum, broken out of struct undo.
705         * cse.c (struct branch_path): Break out of struct
706         cse_basic_block_data.
707         * except.h (enum eh_region_type): Break out of struct eh_region.
708         * gcc.c (enum add_del): Break out of struct modify_target.
709         * genrecog.c (enum decision_type): Break out of struct decision_test.
710         * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
711         ggc_pch_data.
712         * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
713         * regmove.c (enum match_use): New enum, broken out of struct match.
714         * sched-int.h (enum post_call_group): New enum, broken out of
715         struct deps.
716         (struct deps_reg): Break out of struct deps.
717         * target.h (struct asm_int_op): Break out of struct gcc_target.
718         * tree-eh.c (struct goto_queue_node): Break out of struct
719         leh_tf_state.
720         * tree-inline.h (enum copy_body_cge_which): Break out of
721         copy_body_data.
722         * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
723
724         * c-decl.c (in_struct, struct_types): New static variables.
725         (pushtag): Add loc parameter.  Change all callers.
726         (lookup_tag): Add ploc parameter.  Change all callers.
727         (check_compound_literal_type): New function.
728         (parser_xref_tag): Add loc parameter.  Change all callers.  If
729         -Wc++-compat, warn about struct/union/enum types defined within a
730         struct or union.
731         (start_struct): Add enclosing_in_struct, enclosing_struct_types,
732         and loc parameters.  Change all callers.  Change error calls to
733         error_at, using loc.  For a redefinition, if the location of the
734         original definition is known, report it.  Set in_struct and
735         struct_types.  If -Wc++-compat warn if in sizeof, typeof, or alignof.
736         (finish_struct): Add new parameters enclosing_in_struct and
737         enclosing_struct_types.  Change all callers.  Set
738         C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
739         in the struct.  If in a struct, add this struct to struct_types.
740         (start_enum): Add loc parameter.  Change all callers.  Use
741         error_at for errors, using loc.  For a redefinition, if the
742         location of the original definition is known, report it.  If in a
743         struct, add this enum type to struct_types.  If -Wc++-compat warn
744         if in sizeof, typeof, or alignof.
745         * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
746         (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
747         (c_parser_enum_specifier): Get enum location for start_enum.
748         (c_parser_struct_or_union_specifier): Get struct location for
749         start_struct.  Save in_struct and struct_types status between
750         start_struct and finish_struct.
751         (c_parser_cast_expression): Get location of cast.
752         (c_parser_alignof_expression): Get location of type.
753         (c_parser_postfix_expression): Likewise.
754         (c_parser_postfix_expression_after_paren_type): Add type_loc
755         parameter.  Change all callers.  Call check_compound_literal_type.
756         Use type_loc for error about variable size type.
757         * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
758         of an enum constant from an enum type defined in a struct or union.
759         (c_cast_expr): Add loc parameter.  Change all callers.  If
760         -Wc++-compat, warn about defining a type in a cast.
761         * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
762         (start_enum, start_struct, finish_struct): Update declarations.
763         (parser_xref_tag, c_cast_expr): Update declarations.
764         (check_compound_literal_type): Declare.
765
766 2009-05-11  Ben Elliston  <bje@au.ibm.com>
767
768         * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
769         for recent libcpp interface change.
770         (rs6000_macro_to_expand): Likewise.
771
772 2009-05-10  Michael Matz  <matz@suse.de>
773
774         PR target/40031
775         * config/arm/arm.c (require_pic_register): Emit on entry edge,
776         not at entry of function.
777
778 2009-05-10  Richard Guenther  <rguenther@suse.de>
779
780         PR tree-optimization/40081
781         Revert
782         * tree-sra.c (instantiate_element): Instantiate scalar replacements
783         using the main variant of the element type.  Do not fiddle with
784         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
785
786         * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
787         structs with volatile fields.
788
789 2009-05-10  Jan Hubicka  <jh@suse.cz>
790
791         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
792         (estimate_move_cost): Assert that it does not get called for
793         VOID_TYPE_P.
794         (estimate_num_insns): Skip VOID types in argument handling.
795         (optimize_inline_calls): Delete unreachable blocks and verify that
796         callgraph is valid.
797
798 2009-05-10  Jan Hubicka  <jh@suse.cz>
799
800         * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
801         * cgraph.c (cgraph_mark_address_taken_node): New function.
802         (dump_cgraph_node): Dump new flag.
803         * cgraph.h (struct cgraph_node): Add address_taken.
804         (cgraph_mark_address_taken_node): New function.
805         * ipa.c (cgraph_postorder): Prioritize functions with address taken
806         since new direct calls can be born.
807
808 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
809
810         * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
811         tok->val.node.node.
812
813 2009-05-10  Jan Hubicka  <jh@suse.cz>
814
815         PR middle-end/40084
816         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
817         argument; rewrite.
818         (cgraph_update_edges_for_call_stmt): Take old_decl argument.
819         * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
820         * tree-inline.c (copy_bb): Set frequency correctly.
821         (fold_marked_statements): Update call to
822         cgraph_update_edges_for_call_stmt.
823
824 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
825
826         * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
827         identifiers in diagnostics.
828         * config/arm/arm.c (arm_handle_fndecl_attribute,
829         arm_handle_isr_attribute): Likewise.
830         * config/avr/avr.c (avr_handle_progmem_attribute,
831         avr_handle_fndecl_attribute, avr_handle_fntype_attribute):
832         Likewise.
833         * config/bfin/bfin.c (handle_int_attribute,
834         bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
835         bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
836         bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
837         Likewise.
838         * config/darwin.c (darwin_handle_kext_attribute,
839         darwin_handle_weak_import_attribute): Likewise.
840         * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
841         h8300_handle_eightbit_data_attribute,
842         h8300_handle_tiny_data_attribute): Likewise.
843         * config/i386/i386.c (ix86_handle_cconv_attribute,
844         ix86_handle_abi_attribute, ix86_handle_struct_attribute):
845         Likewise.
846         * config/i386/winnt.c (ix86_handle_shared_attribute,
847         ix86_handle_selectany_attribute): Likewise.
848         * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
849         * config/m32c/m32c.c (function_vector_handler): Likewise.
850         * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
851         m68hc11_handle_fntype_attribute): Likewise.
852         * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
853         * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
854         * config/mips/mips.c (mips_insert_attributes,
855         mips_merge_decl_attributes, mips_expand_builtin): Likewise.
856         * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
857         rs6000_handle_struct_attribute): Likewise.
858         * config/sh/sh.c (sh_insert_attributes,
859         sh_handle_resbank_handler_attribute,
860         sh_handle_interrupt_handler_attribute,
861         sh2a_handle_function_vector_handler_attribute,
862         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
863         Likewise.
864         * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
865         * config/spu/spu.c (spu_handle_fndecl_attribute,
866         spu_handle_vector_attribute): Likewise.
867         * config/stormy16/stormy16.c
868         (xstormy16_handle_interrupt_attribute): Likewise.
869         * config/v850/v850-c.c (ghs_pragma_section): Likewise.
870         * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
871
872 2009-05-10  Joseph Myers  <joseph@codesourcery.com>
873
874         * pretty-print.h (struct pretty_print_info): Add
875         translate_identifiers.
876         (pp_translate_identifiers): New.
877         (pp_identifier): Only conditionally translate identifier to locale
878         character set.
879         * pretty-print.c (pp_construct): Set pp_translate_identifiers.
880         (pp_base_tree_identifier): Only conditionally translate identifier
881         to locale character set.
882         * c-pretty-print.c (M_): Define.
883         (pp_c_type_specifier, pp_c_primary_expression): Mark English
884         fragments for conditional translation with M_.
885         * tree-pretty-print.c (maybe_init_pretty_print): Disable
886         identifier translation.
887
888 2009-05-10  Richard Guenther  <rguenther@suse.de>
889
890         PR tree-optimization/40081
891         * tree-sra.c (instantiate_element): Instantiate scalar replacements
892         using the main variant of the element type.  Do not fiddle with
893         TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
894
895 2009-05-09  Jan Hubicka  <jh@suse.cz>
896
897         PR middle-end/40080
898         * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
899         indirect calls; verify cgraph afterwards.
900
901 2009-05-09  Jan Hubicka  <jh@suse.cz>
902
903         PR bootstrap/40082
904         * ipa.c (update_inlined_to_pointer): New function.
905         (cgraph_remove_unreachable_nodes): Use it.
906
907 2009-05-09  Jan Hubicka  <jh@suse.cz>
908
909         * tree-eh.c (struct leh_state): Remove prev_try.
910         (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
911         not track prev_try.
912         * except.c (gen_eh_region_cleanup, duplicate_eh_regions, 
913         copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
914         remove_eh_handler_and_replace, foreach_reachable_handler,
915         verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
916         * except.h (struct eh_region): Remove eh_region_u_cleanup.
917         (gen_eh_region_cleanup): Update prototype.
918
919 2009-05-09  Jan Hubicka  <jh@suse.cz>
920
921         PR middle-end/40043
922         * except.c (copy_eh_region): Always set prev_try.
923         (redirect_eh_edge_to_label): Find outer try.
924         (foreach_reachable_handler): When looking for prev try
925         handle case where previous try is not going to be taken.
926
927 2009-05-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
928
929         PR tree-optimization/40049
930         * tree-vect-stmts.c (vectorizable_operation): If the machine has
931         only vector/vector shifts, convert the type of the constant to the
932         appropriate type to avoid building incorrect trees, which
933         eventually have problems with garbage collection.
934
935 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
936
937         * fold-const.c (fold_binary): Do not fold multiplication by 1 or
938         -1 for complex floating-point types if honoring signed zeros.
939
940 2009-05-08  Jan Hubicka  <jh@suse.cz>
941
942         * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
943         argument; handle correctly when profile is absent.
944         (build_cgraph_edges): Update.
945         (rebuild_cgraph_edges): Update.
946         * cgraph.c: Do not include varray.h.
947         (cgraph_set_call_stmt_including_clones): New function.
948         (cgraph_create_edge_including_clones): Likewise
949         (cgraph_update_edges_for_call_stmt_node): New static cfunction.
950         (cgraph_update_edges_for_call_stmt): Handle clones.
951         (cgraph_remove_node): Handle clone tree.
952         (cgraph_remove_node_and_inline_clones): New function.
953         (dump_cgraph_node): Dump clone tree.
954         (cgraph_clone_node): Handle clone tree.
955         (clone_function_name): Bring here from tree-inline.c.
956         (cgraph_create_virtual_clone): New function.
957         * cgraph.h (ipa_replace_map): Move here from ipa.h.
958         (cgraph_clone_info): New function.
959         (strut cgraph_node): Add clone_info and new clone tree pointers.
960         (cgraph_remove_node_and_inline_clones,
961         cgraph_set_call_stmt_including_clones,
962         cgraph_create_edge_including_clones,
963         cgraph_create_virtual_clone): Declare.
964         (cgraph_function_versioning): Use VEC argument.
965         (compute_call_stmt_bb_frequency): Update prototype.
966         (cgraph_materialize_all_clones): New function.
967         * ipa-cp.c (ipcp_update_cloned_node): Remove.
968         (ipcp_create_replace_map): Update to VECtors.
969         (ipcp_update_callgraph): Use virtual clones.
970         (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
971         (ipcp_update_profiling): Do not update local profiling.
972         (ipcp_insert_stage): Use VECtors and virtual clones.
973         * cgraphunit.c (verify_cgraph_node): Verify clone tree.
974         (clone_of_p): New function.
975         (cgraph_preserve_function_body_p): Use clone tree.
976         (cgraph_optimize): Materialize clones.
977         (cgraph_function_versioning): Update for VECtors.
978         (save_inline_function_body): Use clone tree.
979         (cgraph_materialize_clone): New function.
980         (cgraph_materialize_all_clones): Likewise.
981         * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
982         * ipa.c: Include gimple.h.
983         (cgraph_remove_unreachable_nodes): Use clone tree.
984         * ipa-prop.c (ipa_note_param_call): Update call to
985         compute_call_stmt_bb_frequencycall.
986         * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
987         * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
988         (copy_bb): Handle updating of clone tree; add new edge when new call
989         appears.
990         (expand_call_inline): Be strict about every call having edge.
991         (clone_fn_id_num, clone_function_name): Move to cgraph.c.
992         (delete_unreachable_blocks_update_callgraph): New function.
993         (tree_function_versioning): Use VECtors; always remove unreachable
994         blocks and fold conditionals.
995         * tree-inline.h: Do not include varray.h.
996         (tree_function_versioning): Remove.
997         * Makefile.in (GTFILES): Remove tree-inline.c
998         * passes.c (do_per_function): Do only functions having body.
999         * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
1000         tree.
1001
1002 2009-05-08  H.J. Lu  <hongjiu.lu@intel.com>
1003             Andrew Morrow  <acm@google.com>
1004
1005         PR c/36892
1006         * c-common.c (c_common_attribute_table): Permit deprecated
1007         attribute to take an optional argument.
1008         (handle_deprecated_attribute): If the optional argument to
1009         __attribute__((deprecated)) is not a string ignore the attribute
1010         and emit a warning.
1011
1012         * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
1013         * c-typeck.c (build_component_ref): Likewise.
1014         (build_external_ref): Likewise.
1015
1016         * toplev.c (warn_deprecated_use): Add an attribute argument.
1017         Emit the message associated with __attribute__((deprecated)).
1018
1019         * toplev.h (warn_deprecated_use): Updated.
1020
1021         * doc/extend.texi: Document new optional parameter to
1022         __attribute__((deprecated))
1023
1024 2009-05-08  Michael Eager <eager@eagercon.com>
1025
1026         * config/rs6000/rs6000.md (*movdf_softfloat32): replace
1027         !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
1028
1029 2009-05-08  Richard Guenther  <rguenther@suse.de>
1030
1031         PR tree-optimization/40062
1032         * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
1033         Avoid exponential behavior.
1034
1035 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
1036
1037         PR rtl-optimization/33928
1038         PR 26854
1039         * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
1040         process_uses, build_single_def_use_links): New.
1041         (update_df): Update use_def_ref.
1042         (forward_propagate_into): Use get_def_for_use instead of use-def
1043         chains.
1044         (fwprop_init): Call build_single_def_use_links and let it initialize
1045         dataflow.
1046         (fwprop_done): Free use_def_ref.
1047         (fwprop_addr): Eliminate duplicate call to df_set_flags.
1048         * df-problems.c (df_rd_simulate_artificial_defs_at_top, 
1049         df_rd_simulate_one_insn): New.
1050         (df_rd_bb_local_compute_process_def): Update head comment.
1051         (df_chain_create_bb): Use the new RD simulation functions.
1052         * df.h (df_rd_simulate_artificial_defs_at_top, 
1053         df_rd_simulate_one_insn): New.
1054         * opts.c (decode_options): Enable fwprop at -O1.
1055         * doc/invoke.texi (-fforward-propagate): Document this.
1056
1057 2009-05-08  Joseph Myers  <joseph@codesourcery.com>
1058
1059         PR c/24581
1060         * c-typeck.c (build_binary_op): Handle arithmetic between one real
1061         and one complex operand specially.
1062         * tree-complex.c (some_nonzerop): Do not identify a real value as
1063         zero if flag_signed_zeros.
1064
1065 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
1066
1067         PR rtl-optimization/33928
1068         * loop-invariant.c (record_use): Fix && vs. || mishap.
1069
1070 2009-05-08  Paolo Bonzini  <bonzini@gnu.org>
1071
1072         PR rtl-optimization/33928
1073         * loop-invariant.c (struct use): Add addr_use_p.
1074         (struct def): Add n_addr_uses.
1075         (struct invariant): Add cheap_address.
1076         (create_new_invariant): Set cheap_address.
1077         (record_use): Accept df_ref.  Set addr_use_p and update n_addr_uses.
1078         (record_uses): Pass df_ref to record_use.
1079         (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
1080         used only as such.
1081
1082 2009-05-08  Kaz Kojima  <kkojima@gcc.gnu.org>
1083
1084         * config/sh/sh.c: Do not include c-pragma.h.
1085
1086 2009-05-07  Andrew Pinski  <andrew_pinski@playstation.sony.com>
1087
1088         * config/spu/spu.c: Remove include of c-common.h.
1089
1090 2009-05-07  Janis Johnson  <janis187@us.ibm.com>
1091
1092         PR c/39037
1093         * c-common.h (mark_valid_location_for_stdc_pragma,
1094         valid_location_for_stdc_pragma_p, set_float_const_decimal64,
1095         clear_float_const_decimal64, float_const_decimal64_p): New.
1096         * c.opt (Wunsuffixed-float-constants): New.
1097         * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
1098         unsuffixed float constant, handle new warning.
1099         * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
1100         * c-decl.c (c_scope): New flag float_const_decimal64.
1101         (set_float_const_decimal64, clear_float_const_decimal64,
1102         float_const_decimal64_p): New.
1103         (push_scope): Set new flag.
1104         * c-parser.c (c_parser_translation_unit): Mark when it's valid
1105         to use STDC pragmas.
1106         (c_parser_external_declaration): Ditto.
1107         (c_parser_compound_statement_nostart): Ditto.
1108         * c-pragma.c (valid_location_for_stdc_pragma,
1109         mark_valid_location_for_stdc_pragma,
1110         valid_location_for_stdc_pragma_p, handle_stdc_pragma,
1111         handle_pragma_float_const_decimal64): New.
1112         (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
1113         * cp/semantics.c (valid_location_for_stdc_pragma_p,
1114         set_float_const_decimal64, clear_float_const_decimal64,
1115         float_const_decimal64_p): New dummy functions.
1116         * doc/extend.texi (Decimal Float): Remove statement that the
1117         pragma, and suffix for double constants, are not supported.
1118         * doc/invoke.texi (Warning Options): List new option.
1119         (-Wunsuffixed-float-constants): New.
1120
1121 2009-05-08  Steven Bosscher  <steven@gcc.gnu.org>
1122
1123         * config/i386/i386.c: Do not include c-common.h.
1124
1125 2009-05-07  Mark Heffernan  <meheff@google.com>
1126
1127         * doc/invoke.texi (Debugging Options): Document change of debugging
1128         dump location.
1129         * opts.c (decode_options): Make dump_base_name relative to
1130         aux_base_name directory.
1131
1132 2009-05-07  Hariharan Sandanagobalane <hariharan@picochip.com>
1133
1134         * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
1135         * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
1136
1137 2009-05-07  Rafael Avila de Espindola  <espindola@google.com>
1138
1139         * Makefile.in (install-plugin): Simplify a bit.
1140
1141 2009-05-07  Paolo Bonzini  <bonzini@gnu.org>
1142
1143         * Makefile.in (OBJS-common): Add regcprop.o.
1144         (regcprop.o): New.
1145         * timevar.def (TV_CPROP_REGISTERS): New.
1146         * regrename.c (regrename_optimize): Return 0.
1147         (rest_of_handle_regrename): Delete.
1148         (pass_rename_registers): Point to regrename_optimize.
1149         (struct value_data_entry, struct value_data, 
1150         kill_value_one_regno, kill_value_regno, kill_value,
1151         set_value_regno, init_value_data, kill_clobbered_value,
1152         kill_set_value, kill_autoinc_value, copy_value,
1153         mode_change_ok, maybe_mode_change, find_oldest_value_reg,
1154         replace_oldest_value_reg, replace_oldest_value_addr,
1155         replace_oldest_value_mem, copyprop_hardreg_forward_1,
1156         debug_value_data, validate_value_data): Move...
1157         * regcprop.c: ... here.
1158         (rest_of_handle_cprop): Delete.
1159         (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
1160
1161 2009-05-07  Jakub Jelinek  <jakub@redhat.com>
1162
1163         PR middle-end/40057
1164         * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
1165         GEN_INT for 1 << bitnum.
1166         (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
1167         build_int_cst_type.
1168
1169 2009-05-07  Uros Bizjak  <ubizjak@gmail.com>
1170
1171         * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
1172         Remove wrong description of "nand" operation.
1173
1174 2009-05-06  Richard Guenther  <rguenther@suse.de>
1175             Adam Nemet  <anemet@caviumnetworks.com>
1176
1177         * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
1178         comment.  Add that if LHS is not a gimple register, then RHS1 has
1179         to be a single object (GIMPLE_SINGLE_RHS).
1180
1181 2009-05-06  Adam Nemet  <anemet@caviumnetworks.com>
1182
1183         * expr.c (get_def_for_expr): Move it up in the file.
1184         (store_field): When expanding a bit-field store, look at the
1185         defining gimple stmt for the masking conversion.
1186
1187 2009-05-06  Janis Johnson  <janis187@us.ibm.com>
1188
1189         PR middle-end/39986
1190         * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
1191         decode_decimal64, encode_decimal128, decode_decimal128): Avoid
1192         32-bit memcpy into long.
1193
1194 2009-05-06  Jakub Jelinek  <jakub@redhat.com>
1195
1196         * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
1197         (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
1198         new_reg_loc_descr.
1199         (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
1200         instead of appending DW_OP_deref*.
1201
1202 2009-05-06  Michael Matz  <matz@suse.de>
1203
1204         PR middle-end/40021
1205         * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
1206         (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
1207
1208 2009-05-06  Rafael Avila de Espindola  <espindola@google.com>
1209
1210         * Makefile.in (install-plugin): Fix srcdir handling.
1211
1212 2009-05-06  Andrey Belevantsev  <abel@ispras.ru>
1213
1214         * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
1215         when processing for not_regs_needed bitmap.
1216         * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
1217         handle TARGET_MEM_REF in lhs.  Check TMR_BASE for NULL while 
1218         handling it for rhs. 
1219
1220 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
1221
1222         * config/i386/i386.md (unnamed inc/dec peephole): Use
1223         optimize_insn_for_size_p instead of optimize_size.
1224         * config/i386/predicates.md (incdec_operand): Likewise.
1225         (aligned_operand): Likewise.
1226         * config/i386/sse.md (divv8sf3): Likewise.
1227         (sqrtv8sf2): Likewise.
1228
1229 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
1230
1231         * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
1232
1233         * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
1234
1235 2009-05-06  H.J. Lu  <hongjiu.lu@intel.com>
1236
1237         * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
1238         ssemodesuffixf2c with avxmodesuffixf2c.
1239
1240 2009-05-06  Joseph Myers  <joseph@codesourcery.com>
1241
1242         PR c/40032
1243         * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
1244
1245 2009-05-05  Jakub Jelinek  <jakub@redhat.com>
1246
1247         * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
1248         (struct tree_base): Adjust spacing for 8 bit boundaries.
1249         (struct tree_decl_common): Add decl_by_reference_flag bit.
1250         (DECL_BY_REFERENCE): Adjust.
1251         * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
1252         print DECL_BY_REFERENCE bit.
1253         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
1254         * dwarf2out.c (loc_by_reference, gen_decl_die): Check
1255         DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
1256         (gen_variable_die): Likewise.  Check TREE_PRIVATE/TREE_PROTECTED
1257         unconditionally.
1258
1259         PR middle-end/39666
1260         * gimplify.c (gimplify_switch_expr): If case labels cover the whole
1261         range of the type, but default label is missing, add it with one
1262         of the existing labels instead of adding a new label for it.
1263
1264 2009-05-05  Joseph Myers  <joseph@codesourcery.com>
1265
1266         * dwarf.h: Remove.
1267
1268 2009-05-05  Rafael Avila de Espindola  <espindola@google.com>
1269
1270         * Makefile.in (enable_plugin, plugin_includedir): New.
1271         (install): Depend on install-plugin.
1272         (PLUGIN_HEADERS): New.
1273         (install-plugin): New.
1274         * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
1275
1276 2009-05-05  Richard Guenther  <rguenther@suse.de>
1277
1278         PR tree-optimization/40022
1279         * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
1280         the only vuse.
1281         (phivn_valid_p): Fix tuplification error, simplify.
1282         (phiprop_insert_phi): Add dumps.
1283         (propagate_with_phi): Simplify.
1284
1285 2009-05-05  Richard Guenther  <rguenther@suse.de>
1286
1287         PR middle-end/40023
1288         * builtins.c (gimplify_va_arg_expr): Properly build the address.
1289
1290 2009-05-05  Shujing Zhao  <pearly.zhao@oracle.com>
1291
1292         * tree.h (strip_float_extensions): Remove duplicate declaration.
1293         (build_low_bits_mask, debug_fold_checksum, expand_function_end,
1294         expand_function_start, stack_protect_prologue, stack_protect_epilogue,
1295         block_ultimate_origin): Rearrange the declarations line to match the
1296         comment that indicates the .c file which the functions are defined.
1297         (dwarf2out_*, set_decl_rtl): Add comment.
1298         (get_base_address): Adjust comment.
1299         (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
1300         declarations line and add comment.
1301         (is_builtin_name): Add blank after function name, for clarity.
1302
1303 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
1304
1305         * attribs.c (decl_attributes): Use %qE for identifiers in
1306         diagnostics.
1307         * cgraphunit.c (verify_cgraph_node): Translate function names to
1308         locale character set in diagnostics.
1309         * coverage.c (get_coverage_counts): Use %qE for identifiers in
1310         diagnostics.
1311         * doc/invoke.texi (-finstrument-functions-exclude-function-list):
1312         Document that functions are named in UTF-8.
1313         * expr.c (expand_expr_real_1): Translate function names to locale
1314         character set in diagnostics.
1315         * gimplify.c (omp_notice_variable, omp_is_private,
1316         gimplify_scan_omp_clauses): Use %qE for identifiers in
1317         diagnostics.
1318         * langhooks.c (lhd_print_error_function): Translate function names
1319         to locale character set.
1320         * langhooks.h (decl_printable_name): Document that return value is
1321         in internal character set.
1322         * stmt.c: Include pretty-print.h
1323         (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
1324         diagnostics.
1325         (resolve_operand_name_1): Translate named operand name to locale
1326         character set.
1327         * stor-layout.c (finalize_record_size): Use %qE for identifiers in
1328         diagnostics.
1329         * toplev.c (announce_function): Translate function names to locale
1330         character set.
1331         (warn_deprecated_use): Use %qE for identifiers in diagnostics.
1332         (default_tree_printer): Use pp_identifier or translate identifiers
1333         to locale character set.  Mark "<anonymous>" for translation.
1334         * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
1335         for identifiers in diagnostics.
1336         * tree.c (handle_dll_attribute): Use %qE for identifiers in
1337         diagnostics.
1338         * varasm.c (output_constructor): Use %qE for identifiers in
1339         diagnostics.
1340
1341 2009-05-04  Rafael Avila de Espindola  <espindola@google.com>
1342
1343         * configure.ac: use ` ` instead of $()
1344         * configure: Regenerate.
1345
1346 2009-05-05  Ben Elliston  <bje@au.ibm.com>
1347
1348         * config/pa/linux-atomic.c: Eliminate conditional include of
1349         errno.h on non-LP64 systems to simplify build requirements.
1350
1351 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
1352
1353         * c-common.c (handle_mode_attribute): Use %qE for identifiers in
1354         diagnostics.
1355         * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
1356         and pass value to identifier_to_locale.
1357         (warn_variable_length_array): Make name a tree.
1358         (grokdeclarator): Separate diagnostic texts for named and unnamed
1359         declarators.  Use %qE for named declarators.
1360         * c-parser.c (c_lex_one_token): Use %qE for identifiers in
1361         diagnostics.
1362         * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
1363         identifiers in diagnostics.
1364         * c-typeck.c (push_member_name, start_init): Pass identifiers to
1365         identifier_to_locale.  Mark "anonymous" strings for translation.
1366
1367 2009-05-04  Michael Eager <eager@eagercon.com>
1368
1369         * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
1370         address for DImode/DFmode only if double-precision FP regs.
1371
1372 2009-05-04  Michael Eager <eager@eagercon.com>
1373
1374         * config/rs6000/rs6000.c (rs6000_libcall_value): Add
1375         TARGET_SINGLE_FLOAT check.
1376
1377 2009-05-04  Michael Eager <eager@eagercon.com>
1378
1379         * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
1380
1381 2009-05-04  Michael Eager <eager@eagercon.com>
1382
1383         * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
1384         * config/rs6000/t-xilinx: New
1385
1386 2009-05-04  Paolo Bonzini  <bonzini@gnu.org>
1387
1388         * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
1389         * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
1390         * gcc/explow.c (memory_address): Use target hook.
1391         * gcc/targhooks.c (default_legitimize_address): New.
1392         * gcc/targhooks.h (default_legitimize_address): New.
1393         * gcc/target.h (legitimize_address): New.
1394         * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
1395         (TARGET_INITIALIZER): Include it.
1396         * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
1397
1398         * config/bfin/bfin-protos.h (legitimize_address): Remove.
1399         * config/bfin/bfin.c (legitimize_address): Remove.
1400         * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
1401         * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
1402         Remove.
1403         * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
1404         * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
1405
1406         * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
1407         THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
1408         * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
1409         * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
1410         * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
1411         * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
1412         * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
1413         * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
1414         * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
1415         * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
1416         * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
1417         * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
1418         * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
1419         * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
1420         * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
1421         * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
1422         * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
1423         * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
1424         * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
1425         * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
1426         * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
1427         * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
1428         * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
1429
1430         * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
1431         * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
1432         * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
1433         * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
1434         * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
1435         * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
1436         * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
1437         * gcc/config/arm/arm-protos.h (arm_legitimize_address,
1438         (thumb_legitimize_address): Delete.
1439         * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
1440         * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
1441         * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
1442         * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
1443         * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
1444         * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
1445         Delete.
1446         * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
1447         Delete.
1448
1449         * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
1450         * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
1451         * config/m32r/m32r.c (m32r_legitimize_address): New.
1452         * config/m68k/m68k.c (m68k_legitimize_address): New.
1453         * config/score/score.c (score_legitimize_address): Standardize.
1454         * config/score/score3.c (score3_legitimize_address): Standardize.
1455         * config/score/score3.h (score3_legitimize_address): Adjust.
1456         * config/score/score7.c (score7_legitimize_address): Standardize.
1457         * config/score/score7.h (score7_legitimize_address): Adjust.
1458         * config/sh/sh.c (sh_legitimize_address): New.
1459         * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
1460
1461         * gcc/config/s390/s390.c (legitimize_address): Rename to...
1462         (s390_legitimize_address): ... this.
1463         * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
1464         (sparc_legitimize_address): ... this.
1465         * gcc/config/i386/i386.c (legitimize_address): Rename to...
1466         (ix86_legitimize_address): ... this.
1467         * gcc/config/avr/avr.c (legitimize_address): Rename to...
1468         (avr_legitimize_address): ... this.
1469         * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
1470         (mn10300_legitimize_address): ... this.
1471         * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
1472         (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
1473         (alpha_expand_mov): Adjust call.
1474
1475         * config/frv/frv.c (frv_legitimize_address): Return x on failure.
1476         * config/spu/spu.c (spu_legitimize_address): Likewise.
1477         * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
1478         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
1479
1480 2009-05-04  Joseph Myers  <joseph@codesourcery.com>
1481
1482         * intl.c (locale_encoding, locale_utf8): New.
1483         (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
1484         * intl.h (locale_encoding, locale_utf8): Declare.
1485         * pretty-print.c: Include ggc.h.  Include iconv.h if HAVE_ICONV.
1486         (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
1487         New.
1488         * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
1489         argument.
1490         (pp_tree_identifier): Define to call pp_base_tree_identifier.
1491         (pp_base_tree_identifier): Declare as function.
1492         (identifier_to_locale): Declare.
1493         * Makefile.in (pretty-print.o): Update dependencies.
1494         * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
1495
1496 2009-05-04  Richard Guenther  <rguenther@suse.de>
1497
1498         PR middle-end/40015
1499         * builtins.c (fold_builtin_memory_op): Do not decay to element
1500         type if the size matches the whole array.
1501
1502 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
1503
1504         * expmed.c (synth_mult): When trying out a shift, pass the result
1505         of a signed shift.
1506
1507 2009-05-04  Kazu Hirata  <kazu@codesourcery.com>
1508
1509         * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
1510         (shiftsub1_cost): New.
1511         (init_expmed): Compute shiftsub1_cost.
1512         (synth_mult): Optimize multiplications by constants of the form
1513         -(2^^m-1) for some constant positive integer m.
1514
1515 2009-05-03  Richard Guenther  <rguenther@suse.de>
1516
1517         PR c/39983
1518         * c-typeck.c (array_to_pointer_conversion): Do not built
1519         ADDR_EXPRs of arrays of pointer-to-element type.
1520         * c-gimplify.c (c_gimplify_expr): Revert change fixing
1521         up wrong ADDR_EXPRs after-the-fact.
1522         * c-common.c (strict_aliasing_warning): Strip pointer
1523         conversions for obtaining the original type.
1524         * builtins.c (fold_builtin_memset): Handle array types.
1525         (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
1526         and array types
1527
1528 2009-05-03  Richard Guenther  <rguenther@suse.de>
1529
1530         PR middle-end/23329
1531         * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
1532         Do not lose casts from array types with unknown extent to array
1533         types with known extent.
1534         * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
1535         alias set compatibility.
1536
1537 2009-05-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1538
1539         * flags.h (extra_warnings): Delete.
1540         * toplev.c (process_options): Handle Wuninitialized here.
1541         * opts.c (extra_warnings): Delete.
1542         (set_Wextra): Delete.
1543         (common_handle_option): -Wextra can be handled automatically.
1544         * c-opts.c (c_common_handle_option): Delete obsolete code.
1545         (c_common_post_options): Simplify comment.
1546         * common.opt (W): Add Var.
1547         (Wextra): Add Var.
1548         (Wuninitialized): Initialize to -1.
1549
1550 2009-05-03  Adam Nemet  <anemet@caviumnetworks.com>
1551             Richard Guenther  <rguenther@suse.de>
1552
1553         * expr.c (get_def_for_expr): New function.
1554         (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
1555         SSA rather than trees.
1556         <MULT_EXPR>: Likewise.  Use subexp0 and subexp1 instead of
1557         TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
1558         
1559 2009-05-03  Joseph Myers  <joseph@codesourcery.com>
1560
1561         * c-common.c (reswords): Add _Imaginary.
1562         * c-common.c (enum rid): Add RID_IMAGINARY.
1563
1564 2009-05-03  Paolo Bonzini  <bonzini@gnu.org>
1565
1566         * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
1567         Patch by Richard Guenther.
1568
1569 2009-05-03  Anatoly Sokolov  <aesok@post.ru>
1570
1571         * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
1572         * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
1573         * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
1574         * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
1575         * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
1576         * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
1577         * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
1578         * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
1579         * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
1580         * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
1581         * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
1582         * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
1583         * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
1584         * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
1585         * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
1586         * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
1587         * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
1588         * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
1589
1590 2009-05-02  Richard Guenther  <rguenther@suse.de>
1591
1592         PR tree-optimization/39940
1593         * tree-ssa-pre.c (eliminate): Make sure we may propagate before
1594         doing so.
1595
1596 2009-05-02  Richard Guenther  <rguenther@suse.de>
1597
1598         PR middle-end/40001
1599         * tree-ssa.c (execute_update_addresses_taken): Properly check
1600         if we can mark a variable DECL_GIMPLE_REG_P.
1601         * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
1602         back to the end of the function.
1603         (is_gimple_reg_type): Remove complex type special casing.
1604         * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
1605         if not optimizing.
1606
1607 2009-05-02  Ben Elliston  <bje@au.ibm.com>
1608
1609         * doc/collect2.texi (Collect2): Document search path behaviour
1610         when configured with --with-ld.
1611
1612 2009-05-02  Jan Hubicka  <jh@suse.cz>
1613
1614         * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
1615         parameter; update callers.
1616         (coalesce_cost_edge): EH edges are costier because they needs
1617         splitting even if not critical and even more costier when there are
1618         multiple EH predecestors.
1619
1620 2009-05-02  Jan Hubicka  <jh@suse.cz>
1621
1622         * except.c (remove_eh_handler_and_replace): Handle updating after
1623         removing TRY blocks.
1624
1625 2009-05-02  Eric Botcazou  <ebotcazou@adacore.com>
1626
1627         * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
1628
1629 2009-05-02  Steven Bosscher  <steven@gcc.gnu.org>
1630
1631         * varasm.c: Do not include c-pragma.h.
1632         * attribs.c: Do not incude c-common.h.
1633
1634 2009-05-01  Michael Matz  <matz@suse.de>
1635
1636         * calls.c (initialize_argument_information): Handle SSA names like
1637         decls with a non MEM_P DECL_RTL.
1638
1639 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
1640
1641         * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
1642         * ipa-utils.c: Likewise.
1643         * ipa-type-escape.c: Likewise.
1644         * cgraphunit.c Do not include c-common.h.
1645         * ipa-pure-const.c: Likewise.
1646         * tree-if-conv.c: Likewise.
1647         * matrix-reorg.c: Do not include c-common.h and c-tree.h.
1648         * ipa-struct-reorg.c: Likewise.
1649         * tree-nomudflap.c: Likewise.
1650         * tree-ssa-structalias.c: Likewise.
1651
1652 2009-05-01  Steven Bosscher  <steven@gcc.gnu.org>
1653
1654         * store-motion.c: Many cleanups to make this pass a first-class
1655         citizen instead of an appendix to gcse load motion.  Add TODO list
1656         to make this pass faster/cleaner/better.
1657
1658         (struct ls_expr): Post gcse.c-split cleanups.
1659         Rename to st_expr.  Rename "loads" field to "antic_stores".  Rename
1660         "stores" field to "avail_stores".
1661         (pre_ldst_mems): Rename to store_motion_mems.
1662         (pre_ldst_table): Rename to store_motion_mems_table.
1663         (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
1664         (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
1665         (ldst_entry): Rename to st_expr_entry, update users.
1666         (free_ldst_entry): Rename to free_st_expr_entry, update users.
1667         (free_ldst_mems): Rename to free_store_motion_mems, update users.
1668         (enumerate_ldsts): Rename to enumerate_store_motion_mems,
1669         update caller.
1670         (first_ls_expr): Rename to first_st_expr, update users.
1671         (next_ls_expr): Rename to next_st_expr, update users.
1672         (print_ldst_list): Rename to print_store_motion_mems.  Print names of
1673         fields properly for store motion instead of names inherited from load
1674         motion in gcse.c.
1675         (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
1676         (LAST_AVAIL_CHECK_FAILURE): Explain what this is.  Undefine when we
1677         are done with it.
1678
1679         (ae_kill): Rename to st_kill, update users.
1680         (ae_gen): Rename to st_avloc, update users.
1681         (transp): Rename to st_transp, update users.
1682         (pre_insert_map): Rename to st_insert_map, update users.
1683         (pre_delete_map): Rename to st_delete_map, update users.
1684         (insert_store, build_store_vectors, free_store_memory,
1685         one_store_motion_pass): Update for abovementioned changes.
1686
1687         (gcse_subst_count, gcse_create_count): Remove.
1688         (one_store_motion_pass): New statistics counters "n_stores_deleted"
1689         and "n_stores_created", local variables.
1690
1691         (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
1692         use for_each_rtx.
1693
1694         (regvec, compute_store_table_current_insn): Remove.
1695         (reg_set_info, reg_clear_last_set): Remove.
1696         (compute_store_table): Use DF caches instead of local dataflow
1697         solvers.
1698
1699 2009-05-01  Joseph Myers  <joseph@codesourcery.com>
1700
1701         * c-objc-common.c (c_tree_printer): Print identifiers with
1702         pp_identifier, not pp_string.  Mark "({anonymous})" for
1703         translation.
1704         * c-pretty-print.c (pp_c_ws_string): New.
1705         (pp_c_cv_qualifier, pp_c_type_specifier,
1706         pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
1707         pp_c_storage_class_specifier, pp_c_function_specifier,
1708         pp_c_attributes, pp_c_bool_constant, pp_c_constant,
1709         pp_c_primary_expression, pp_c_postfix_expression,
1710         pp_c_unary_expression, pp_c_shift_expression,
1711         pp_c_relational_expression, pp_c_equality_expression,
1712         pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
1713         use pp_string and pp_c_ws_string in place of pp_identifier and
1714         pp_c_identifier for non-identifiers.  Mark English strings for
1715         translation.
1716         * c-pretty-print.h (pp_c_ws_string): Declare.
1717
1718 2009-04-30  Paul Pluzhnikov  <ppluzhnikov@google.com>
1719             Roland McGrath <roland@redhat.com>
1720
1721         * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
1722         (ENABLE_LD_BUILDID): New configuration option.
1723         * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
1724         (LINK_BUILDID_SPEC): New macro.
1725         (init_spec): If defined, prepend it between LINK_EH_SPEC and
1726         link_spec.
1727         * doc/install.texi: Document --enable-linker-build-id option.
1728         * configure: Rebuild.
1729         * config.in: Rebuild.
1730
1731 2009-04-30  Adam Nemet  <anemet@caviumnetworks.com>
1732
1733         * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
1734         MIPS_GP_SAVE_AREA_SIZE): Define new macros.
1735         (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD.  Use
1736         MIPS_GP_SAVE_AREA_SIZE.
1737         * config/mips/mips.c (struct mips_frame_info): Update comment
1738         before arg_pointer_offset and hard_frame_pointer_offset.
1739         (mips_compute_frame_info): Update diagram before function: to
1740         correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
1741         indicate the position of frame_pointer_rtx with -fstack-protector and
1742         to show args_size.  Don't allocate cprestore area for leaf functions
1743         if FRAME_GROWS_DOWNWARD.  Use MIPS_GP_SAVE_AREA_SIZE to set
1744         cprestore_size.
1745         (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
1746
1747 2009-04-30  Michael Matz  <matz@suse.de>
1748
1749         PR tree-optimization/39955
1750         * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
1751
1752 2009-04-30  Dave Korn  <dave.korn.cygwin@gmail.com>
1753
1754         * ira.c (setup_cover_and_important_classes):  Use safe macro
1755         REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
1756         directly.
1757         * genpreds.c (write_tm_preds_h):  Output suitable definition of
1758         REG_CLASS_FOR_CONSTRAINT.
1759
1760 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
1761
1762         * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
1763         instead of an int.
1764         * bitmap.c (bitmap_descriptor): Likewise.
1765         * ggc-common.c (loc_descriptor): Likewise.
1766         * varray.c (varray_descriptor): Likewise.
1767         * vec.c (vec_descriptor): Likewise.
1768
1769 2009-04-30  Eric Botcazou  <ebotcazou@adacore.com>
1770
1771         * Makefile.in (dce.o): Add $(EXCEPT_H).
1772         * dce.c: Include except.h and delete redundant vector definitions.
1773         (deletable_insn_p): Return false for non-call insns that can throw
1774         if DF is running.
1775
1776 2009-04-30  Steven Bosscher  <steven@gcc.gnu.org>
1777
1778         * gcse.c (ae_gen): Remove.
1779         (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
1780         and make non-static function to make it available in store-motion.c.
1781         Update call sites with search-and-replace.
1782         (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
1783         extract_mentioned_regs, extract_mentioned_regs_helper,
1784         find_moveable_store, compute_store_table, load_kills_store, find_loads,
1785         store_killed_in_insn, store_killed_after, store_killed_before,
1786         build_store_vectors, insert_insn_start_basic_block, insert-store,
1787         remove_reachable_equiv_notes, replace_store_insn, delete_store,
1788         free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
1789         execute_rtl_store_motion, pass_rtl_store_motion): Move to...
1790         * store-motion.c: ...new file.  Also copy data structures from gcse.c
1791         and clean up to remove parts not used by store motion.
1792         * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
1793         * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
1794
1795 2009-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1796
1797         PR target/38571
1798         * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
1799         when optimizing for size.
1800
1801 2009-04-30  Hans-Peter Nilsson  <hp@axis.com>
1802
1803         * gcse.c (gcse_constant_p): Fix typo in last change.
1804
1805 2009-04-30  Rafael Avila de Espindola  <espindola@google.com>
1806
1807         * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
1808
1809 2009-04-30  Andreas Krebbel  <krebbel1@de.ibm.com>
1810
1811         * gcse.c (gcse_constant_p): Make sure the constant is sharable.
1812
1813 2009-04-29  James E. Wilson  <wilson@codesourcery.com>
1814
1815         * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
1816         CONST_HIGH_PART result.
1817
1818 2009-04-29  Anatoly Sokolov  <aesok@post.ru>
1819
1820         * config/avr/avr.c (initial_elimination_offset): Rename to
1821         avr_initial_elimination_offset.
1822         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
1823         change return type to bool.
1824         (avr_can_eliminate): New function.
1825         * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
1826         (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
1827         (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
1828         * config/avr/avr-protos.h (initial_elimination_offset): Rename to
1829         avr_initial_elimination_offset.
1830         (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
1831         (avr_initial_elimination_offset): Define.
1832
1833 2009-04-29  Eric Botcazou  <ebotcazou@adacore.com>
1834             Steven Bosscher  <steven@gcc.gnu.org>
1835
1836         PR rtl-optimization/39938
1837         * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
1838         * cfgrtl.c: Include insn-attr.h.
1839         (rest_of_pass_free_cfg): New function.
1840         (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
1841         * resource.c (init_resource_info): Remove call to df_analyze.
1842
1843 2009-04-29  Richard Guenther  <rguenther@suse.de>
1844
1845         PR target/39943
1846         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
1847         allow conversion to signed integers.
1848
1849 2009-04-29  Richard Guenther  <rguenther@suse.de>
1850
1851         * tree-cfg.c (verify_gimple_assign_binary): Allow vector
1852         shifts of floating point vectors if the shift amount is
1853         a constant multiple of the element size.
1854
1855 2009-04-29  Andreas Krebbel  <krebbel1@de.ibm.com>
1856             Michael Matz  <matz@suse.de>
1857
1858         PR middle-end/39927
1859         PR bootstrap/39929
1860         * tree-outof-ssa.c (emit_partition_copy): New function.
1861         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
1862         insert_part_to_rtx_on_edge): Perform the partition base var
1863         copy using emit_partition_copy.
1864         (insert_value_copy_on_edge): Convert constants to the right mode.
1865         (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
1866         (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
1867
1868 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
1869
1870         * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
1871         scan backwards to try to find a constant to initialize it.
1872
1873         * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
1874         insn before the loop_end instruction, don't look past labels.
1875
1876 2009-04-29  Richard Guenther  <rguenther@suse.de>
1877
1878         PR middle-end/39937
1879         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
1880         loose type conversions.
1881         (forward_propagate_addr_expr): Fix tuplification bug.  Remove
1882         stmts only if there are no uses of its definition.
1883
1884 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
1885
1886         * config/bfin/bfin.h (splitting_loops): Declare.
1887         * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
1888         Reorder bit definitions to be ascending.
1889         (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
1890         * config/bfin/bfin.c (splitting_loops): New variable.
1891         (bfin_cpus): Add WA_LOAD_LCREGS as needed.
1892         (struct loop_info): Remove members INIT and LOOP_INIT.
1893         (bfin_optimize_loop): Don't set them.  Reorder the code that generates
1894         the LSETUP sequence.  Allow LC to be loaded from any register, but
1895         also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
1896         (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
1897         set to 1.
1898         * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
1899         of reload_completed.
1900
1901         From Jie Zhang:
1902         * config/bfin/bfin.md (movsi_insn): Refine constraints.
1903
1904 2009-04-29  Rafael Avila de Espindola  <espindola@google.com>
1905
1906         * Makefile.in (PLUGIN_VERSION_H): New.
1907         (OBJS-common): Remove plugin-version.o.
1908         (plugin.o): Depend on (PLUGIN_VERSION_H).
1909         (plugin-version.o): Remove.
1910         * configure: Regenerate
1911         * configure.ac: Create plugin-version.h.
1912         * gcc-plugin.h (plugin_gcc_version): Remove.
1913         (plugin_default_version_check): Change signature.
1914         * plugin-version.c: Remove.
1915         * plugin.c: Include plugin-version.h.
1916         (str_plugin_gcc_version_name): Remove.
1917         (try_init_one_plugin): Pass gcc version to plugin_init.
1918         (plugin_default_version_check): Both gcc and plugin versions are now
1919         arguments.
1920
1921 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
1922         
1923         * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
1924         problematic last insns.  Test for TYPE_CALL rather than CALL_P.
1925         Remove special case testing for last insn of inner loops. Don't fail
1926         if the loop ends with a jump, emit an extra nop instead.
1927
1928         * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
1929         DREGS rather than comparing directly.  Remove code that tries to
1930         account for latencies.
1931
1932 2009-04-29  Richard Guenther  <rguenther@suse.de>
1933
1934         PR tree-optimization/39941
1935         * tree-ssa-pre.c (eliminate): Schedule update-ssa after
1936         eliminating an indirect call.
1937
1938 2009-04-29  Richard Guenther  <rguenther@suse.de>
1939
1940         * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
1941         parameter.  Allow invariants as base if !require_lvalue.
1942         (verify_gimple_assign_single): Adjust.
1943
1944 2009-04-29  Bernd Schmidt  <bernd.schmidt@analog.com>
1945
1946         * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
1947         (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
1948         ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
1949         ssubhi3, ssaddhi3_parts and sssubhi3_parts.
1950         (flag_mulhi3_parts): Produce a HImode output rather than trying to set
1951         a VEC_SELECT.
1952         * config/bfin/bfin.c (bfin_expand_builtin,
1953         case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
1954
1955 2009-04-28  Richard Guenther  <rguenther@suse.de>
1956
1957         * tree-vect-loop.c (get_initial_def_for_induction): Use
1958         correct types for pointer increment.
1959
1960 2009-04-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1961
1962         * toplev.c (print_version): Update GMP version string calculation.
1963
1964 2009-04-28  Eric Botcazou  <ebotcazou@adacore.com>
1965
1966         PR rtl-optimization/39938
1967         * resource.c (init_resource_info): Add call to df_analyze.
1968
1969 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
1970
1971         * config/alpha/alpha.md (usegp): Cast the result of
1972         alpha_find_lo_sum_using_gp to enum attr_usegp.
1973         * config/alpha/alpha.c (override_options): Remove end-of-structure
1974         marker element from cpu_table.  Use array size of cpu_table to handle
1975         -mcpu and -mtune options.
1976         (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
1977
1978 2009-04-28  Joseph Myers  <joseph@codesourcery.com>
1979
1980         * config.gcc (powerpc*-*-* | rs6000-*-*): Add
1981         rs6000/option-defaults.h to tm_file.  Support cpu_32, cpu_64,
1982         tune_32 and tune_64.
1983         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
1984         support on PowerPC.
1985         * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
1986         * config/rs6000/option-defaults.h: ... here.  New file.
1987         (OPT_64, OPT_32): Define.
1988         (MASK_64BIT): Define to 0 if not already defined.
1989         (OPT_ARCH64, OPT_ARCH32): Define.
1990         (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
1991         and tune_64.
1992
1993 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1994
1995         * config/arm/arm.c (arm_override_options): Emit error on using
1996         fpa with AAPCS.
1997
1998 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
1999
2000         PR rtl-optimization/39914
2001         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
2002         registers for allocnos created from user-defined variables only
2003         when not optimizing.
2004
2005 2009-04-28  Richard Guenther  <rguenther@suse.de>
2006
2007         PR middle-end/39937
2008         * fold-const.c (fold_binary): Use distribute_real_division only
2009         on float types.
2010
2011 2009-04-28  Steve Ellcey  <sje@cup.hp.com>
2012
2013         * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
2014         add hpux-stdint.h to tm_file.
2015         (hppa[12]*-*-hpux11*): Ditto.
2016         (ia64*-*-hpux*): Ditto.
2017         * config/hpux-stdint.h: New.
2018         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
2019         __STDC_EXT__ for all compiles.
2020         * config/pa/pa-hpux.h: Ditto.
2021         * config/pa/pa-hpux10.h: Ditto.
2022         * config/pa/pa-hpux11.h: Ditto.
2023
2024 2009-04-28  Catherine Moore  <clm@codesourcery.com>
2025
2026         * debug.h (set_name): Add comment.
2027
2028 2009-04-28  Andrew Pinski  <pinskia@gmail.com>
2029
2030         PR target/39929
2031         * config/darwin.c (machopic_gen_offset): Check
2032         currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
2033         * config/arm/arm.c (require_pic_register): Likewise.
2034
2035 2009-04-28  Paolo Bonzini  <bonzini@gnu.org>
2036
2037         * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
2038         m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
2039         m32c_promote_prototypes): Delete.
2040
2041 2009-04-28  Michael Matz  <matz@suse.de>
2042
2043         PR middle-end/39922
2044         * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
2045         constants.
2046
2047 2009-04-28  Richard Guenther  <rguenther@suse.de>
2048
2049         * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
2050
2051 2009-04-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2052
2053         * config/arm/arm-cores.def: Add support for arm1156t2f-s.
2054         * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
2055         * config/arm/arm-tune.md: Regenerate.
2056
2057 2009-04-28  Alexander Monakov  <amonakov@ispras.ru>
2058
2059         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
2060         block if there are complex incoming edges.
2061         (sel_merge_blocks): Remove useless assert.
2062         (sel_redirect_edge_and_branch): Check that edge was redirected.
2063         * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
2064         (sel_find_rgns): Delete declaration.
2065         * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
2066         the region when it is not a preheader.
2067
2068 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
2069
2070         PR c/39323
2071         * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
2072
2073 2009-04-28  Richard Guenther  <rguenther@suse.de>
2074
2075         * tree.h (SSA_NAME_VALUE): Remove.
2076         (struct tree_ssa_name): Remove value_handle member.
2077         * tree-vrp.c (execute_vrp): Initialize/free the value-handle
2078         array for jump threading.
2079         * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
2080         SSA_NAME_VALUEs.
2081         * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
2082         * tree-flow.h (threadedge_initialize_values): Declare.
2083         (threadedge_finalize_values): Likewise.
2084         * tree-ssa-threadedge.c (ssa_name_values): New global variable.
2085         (SSA_NAME_VALUE): Define.
2086         (threadedge_initialize_values): New function.
2087         (threadedge_finalize_values): Likewise.
2088         * tree-ssa-dom.c (ssa_name_values): New global variable.
2089         (SSA_NAME_VALUE): Define.
2090         (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
2091
2092 2009-04-28  Ira Rosen  <irar@il.ibm.com>
2093
2094         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2095         Use REPORT_VECTORIZED_LOCATIONS instead 
2096         REPORT_VECTORIZED_LOOPS.
2097         * tree-vectorizer.c (vect_verbosity_level): Make static.
2098         (vect_loop_location): Rename to vect_location.
2099         (vect_set_verbosity_level): Update comment.
2100         (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
2101         and vect_location.
2102         (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
2103         and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
2104         instead REPORT_UNVECTORIZED_LOOPS.
2105         * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
2106         and vect_loop_def to vect_external_def and vect_internal_def.
2107         (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
2108         and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and 
2109         REPORT_UNVECTORIZED_LOCATIONS.
2110         (enum vect_relevant): Update comment. Rename vect_unused_in_loop
2111         and vect_used_in_loop and to vect_unused_in_scope and 
2112         vect_used_in_scope.
2113         (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
2114         (vect_verbosity_level): Remove declaration.
2115         (vect_analyze_operations): Likewise.
2116         (vect_analyze_stmt): Declare.
2117         * tree-vect-loop.c (vect_determine_vectorization_factor): Use
2118         REPORT_UNVECTORIZED_LOCATIONS.
2119         (vect_get_loop_niters): Fix indentation.
2120         (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
2121         (vect_analyze_loop_operations): New function.
2122         (vect_analyze_loop): Call vect_analyze_loop_operations instead of
2123         vect_analyze_operations.
2124         (vect_is_simple_reduction): Use new names.
2125         (vectorizable_live_operation, vect_transform_loop): Likewise.
2126         * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
2127         to specify whether the data references can be a part of interleaving
2128         chain.
2129         (vect_analyze_data_ref_dependence): Use new names.
2130         (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
2131         (vect_create_addr_base_for_vector_ref): Remove redundant code.
2132         * tree-vect-patterns.c (widened_name_p): Use new names.
2133         (vect_recog_dot_prod_pattern): Likewise.
2134         * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
2135         (process_use, vect_mark_stmts_to_be_vectorized, 
2136         vect_model_simple_cost, vect_model_store_cost,
2137         vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
2138         vectorizable_call, vectorizable_conversion, vectorizable_assignment,
2139         vectorizable_operation, vectorizable_type_demotion,
2140         vectorizable_type_promotion, vectorizable_store, vectorizable_load,
2141         vectorizable_condition): Likewise.
2142         (vect_analyze_operations): Split into vect_analyze_loop_operations
2143         and ...
2144         (vect_analyze_stmt): ... new function.
2145         (new_stmt_vec_info): Use new names.
2146         (vect_is_simple_use): Use new names and fix comment.
2147         * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
2148         (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
2149
2150 2009-04-28  Uros Bizjak  <ubizjak@gmail.com>
2151
2152         PR target/39911
2153         * config/i386/i386.c (print_operand) ['Z']: Handle floating point
2154         and integer modes for x87 operands.  Do not ICE for unsupported size,
2155         generate error instead.  Generate error for unsupported operand types.
2156         ['z']: Do not handle HImode memory operands specially.  Warning
2157         for floating-point operands.  Fallthru to 'Z' for unsupported operand
2158         types.  Do not ICE for unsupported size, generate error instead.
2159         (output_387_binary_op): Use %Z to output operands.
2160         (output_fp_compare): Ditto.
2161         (output_387_reg_move): Ditto.
2162
2163 2009-04-28  Ben Elliston  <bje@au.ibm.com>
2164
2165         PR c++/35652
2166         Revert:
2167
2168         2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
2169
2170         * builtins.c (c_strlen): Do not warn here.
2171         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
2172         * c-common.c (pointer_int_sum): Take an explicit location.
2173         Warn about offsets out of bounds.
2174         * c-common.h (pointer_int_sum): Adjust declaration.
2175
2176 2009-04-27  Ian Lance Taylor  <iant@google.com>
2177
2178         * collect2.c (is_ctor_dtor): Change type of ret field in struct
2179         names to symkind.
2180         * dce.c (run_fast_df_dce): Change type of old_flags to int.
2181         * df-core.c (df_set_flags): Change return type to int.  Change
2182         type of old_flags to int.
2183         (df_clear_flags): Likewise.
2184         * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
2185         (df_get_conditional_uses): Likewise.
2186         * df.h (df_set_flags, df_clear_flags): Update declarations.
2187         * dwarf2out.c (struct indirect_string_node): Change type of form
2188         field to enum dwarf_form.
2189         (AT_string_form): Change return type to enum dwarf_form.
2190         * fixed-value.c (fixed_compare): Add cast to enum type.
2191         * fwprop.c (update_df): Change 0 to VOIDmode.
2192         * gensupport.c: Change 0 to UNKNOWN.
2193         * gimple.h (gimple_cond_code): Add cast to enum type.
2194         * haifa-sched.c (reemit_notes): Add cast to enum type.
2195         * hooks.c (hook_int_void_no_regs): Remove function.
2196         * hooks.h (hook_int_void_no_regs): Remove declaration.
2197         * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
2198         * predict.c (combine_predictions_for_insn): Add casts to enum type.
2199         * real.c (real_arithmetic): Add cast to enum type.
2200         (real_compare): Likewise.
2201         * target.h (struct gcc_target): Change return type of
2202         branch_target_register_class to enum reg_class.
2203         * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
2204         default_branch_target_register_class.
2205         * targhooks.c (default_branch_target_register_class): New function.
2206         * targhooks.h (default_branch_target_register_class): Declare.
2207         * tree-data-ref.c (print_direction_vector): Add cast to enum type.
2208         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
2209         cast to int.
2210         * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
2211         ERROR_MARK.
2212         * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
2213         vect_uninitialized_def.  Change 0 to ERROR_MARK.
2214         * tree-vect-stmts.c (supportable_widening_operation): Don't
2215         initialize icode1 and icode2.
2216         * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
2217         * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
2218         and to STD_C89.
2219         (cmn_err_flag_specs): Change 0 to STD_C89.
2220         (cmn_err_char_table): Likewise.
2221         * config/arm/arm.c (get_arm_condition_code): Change type of code
2222         to enum arm_cond_code.
2223         (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
2224         (IWMMXT_BUILTIN2): Likewise.
2225         (neon_builtin_type_bits): Don't define typedef.
2226         (neon_builtin_datum): Change type of bits field to int.
2227         (arm_expand_neon_args): Add cast to enum type.
2228         * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
2229         TLS_MODEL_NONE.
2230         * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN.  Add
2231         casts to enum type.
2232         * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
2233         MIPS_FP_COND_f.
2234         * config/mips/mips.md (jal_macro): Return enum constant.
2235         (single_insn): Likewise.
2236         * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
2237         CODE_FOR_nothing.
2238         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2239         casts to enum type.
2240         * config/s390/s390.c (s390_tune_flags): Change type to int.
2241         (s390_arch_flags): Likewise.
2242         (s390_handle_arch_option): Change flags field of struct pta to int.
2243         * config/s390/s390.h (s390_tune_flags): Update declaration.
2244         (s390_arch_flags): Likewise.
2245         * config/sh/sh.c (prepare_move_operands): Compare
2246         tls_symbolic_operand result with enum constant.
2247         (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
2248         (sh_expand_prologue): Add cast to enum type.
2249         (sh_expand_epilogue): Likewise.
2250         (tls_symbolic_operand): Change return type to enum tls_model.
2251         (fpscr_set_from_mem): Add cast to enum type.
2252         (legitimize_pic_address): Compare tls_symbolic_operand result with
2253         enum constant.
2254         (sh_target_reg_class): Change return type to enum reg_class.
2255         * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
2256         PROCESSOR_xxx.
2257         * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
2258         * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
2259         * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
2260         (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
2261         (delayed_branch, tls_call_delay): Likewise.
2262         (eligible_for_sibcall_delay): Likewise.
2263         (eligible_for_return_delay): Likewise. 
2264         * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
2265         (spu_expand_builtin_1): Likewise.
2266
2267         * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
2268         for all types of conversions.
2269         (output_init_element): Issue -Wc++-compat warning if needed when
2270         initializing a bitfield with enum type.
2271         * c-parser.c (c_parser_expression): Set original_type to
2272         original_type of right hand operand of comman operator.
2273
2274 2009-04-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2275
2276         * doc/c-tree.texi (Types, Functions, Expression trees): Fix
2277         grammar nits.
2278         * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
2279         * doc/cpp.texi (Standard Predefined Macros)
2280         (Implementation-defined behavior): Likewise.
2281         * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
2282         * doc/gimple.texi (GIMPLE Exception Handling)
2283         (@code{GIMPLE_ASSIGN}): Likewise.
2284         * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
2285         * doc/invoke.texi (Warning Options, Optimize Options)
2286         (AVR Options, Darwin Options): Likewise.
2287         (Optimize Options): Reformulate -fwhole-program description.
2288         * doc/loop.texi (Lambda): Likewise.
2289         * doc/md.texi (Output Template, Define Constraints)
2290         (Standard Names, Insn Splitting): Likewise.
2291         * doc/options.texi (Option properties): Likewise.
2292         * doc/passes.texi (Tree-SSA passes): Likewise.
2293         * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
2294         * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
2295         (File Names and DBX): Likewise.
2296         * doc/trouble.texi (Incompatibilities): Likewise.
2297
2298 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
2299
2300         * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
2301         instruction is correct.
2302
2303 2009-04-27  Trevor Smigiel  <trevor_smigiel@playstation.sony.com>
2304
2305         Allow non-constant arguments to conversion intrinsics.
2306         * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
2307         * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
2308         * spu.c (print_operand): Handle 'v' and 'w'.
2309         (exp2_immediate_p, spu_gen_exp2): Define.
2310         * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
2311         spu_convtf_1): Update parameter descriptions.
2312         * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
2313         * constraints.md ('v', 'w'): New.
2314         * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
2315         Remove.
2316         (i2f, I2F): New define_mode_attr.
2317         (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
2318         floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
2319         fixuns_truncv4sfv4si2):  Update to use mode attribute.
2320         (float<mode><i2f>2_mul, float<mode><i2f>2_div,
2321         fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
2322         floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
2323         patterns for combine.
2324
2325 2009-04-27  Steven Bosscher  <steven@gcc.gnu.org>
2326
2327         * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
2328         (cprop, hoist, pre, store_motion): New debug counters.
2329         * tree-pass.h (pass_tracer): Move to list of gimple passes, it
2330         is not an RTL pass anymore.
2331         (pass_profiling): Remove extern decl for pass removed in 2005.
2332         (pass_gcse, pass_jump_bypass): Remove.
2333         * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
2334         to 0 for clean state.
2335         * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
2336         * cse.c (gate_handle_cse_after_global_opts,
2337         rest_of_handle_cse_after_global_opts): New functions.
2338         (pass_cse_after_global_opts): New pass, does local CSE.
2339         * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
2340         (TV_CPROP): New timevar.
2341         * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
2342         (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
2343         (gcse_main, recompute_all_luids): Remove.
2344         (compute_hash_table_work): Call max_reg_num instead of reading
2345         max_gcse_regno.
2346         (cprop_jump): Don't set run_jump_opt_after_gcse.
2347         (constprop_register): Always allow to alter jumps.
2348         (cprop_insn): Likewise.
2349         (do_local_cprop): Likewise.
2350         (local_cprop_pass): Likewise.  Return non-zero if something changed.
2351         (cprop): Remove function, fold interesting bits into one_cprop_pass.
2352         (find_implicit_sets): Add note about missed optimization opportunity.
2353         (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
2354         pass_rtl_cprop execute function.
2355         Don't bother tracking the pass number, each pass gets its own dumpfile
2356         now anyway.
2357         Always allow to alter jumpsand bypass jumps.
2358         (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
2359         will just find no suitable set.
2360         (pre_edge_insert): Fix dumping, this function is for PRE only.
2361         (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
2362         pass_rtl_pre execute function.
2363         (hoist_code): Return non-zero if something changed.  Keep track of
2364         substitutions and insertions for statistics gathering similar to PRE.
2365         (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
2366         called from the pass_rtl_hoist execute function.  Show pass statistics.
2367         (compute_store_table): Use max_reg_num directly instead of using the
2368         formerly global max_gcse_regno.
2369         (build_store_vectors): Likewise.
2370         (replace_store_insn): Fix dumping.
2371         (store_motion): Rename to ...
2372         (one_store_motion_pass): ... this.  Rewrite to be "the" STORE_MOTION
2373         pass, called from the pass_rtl_store_motion execute function.  Keep
2374         track of substitutions and insertions for statistics gathering similar
2375         to PRE.
2376         (bypass_jumps): Remove, fold interesting bits into ...
2377         (one_cprop_pass): ... this.  Rewrite to be "the" CPROP pass, called
2378         from the pass_rtl_cprop execute function.
2379         (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
2380         pass_jump_bypass): Remove.
2381         (gate_handle_gcse, rest_of_handle_gcse): Remove.
2382         (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
2383         (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
2384         (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
2385         (gate_rtl_store_motion, execute_rtl_store_motion,
2386         pass_rtl_store_motion): New.
2387         * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
2388         make it clear that -fcse-skip-blocks is a no-op for backward compat.
2389         * passes.c (init_optimization_passes): Remove pass_gcse and
2390         pass_jump_bypass.  Schedule cprop, pre, hoist, cprop, store_motion,
2391         and cse_after_global_opts in place of pass_gcse.  Schedule cprop
2392         instead of pass_jump_bypass.
2393
2394 2009-04-27  Richard Guenther  <rguenther@suse.de>
2395
2396         PR middle-end/39928
2397         * gimplify.c (gimplify_expr): If we are required to create
2398         a temporary make sure it ends up as register.
2399
2400 2009-04-27  H.J. Lu  <hongjiu.lu@intel.com>
2401
2402         PR target/39903
2403         * config/i386/i386.c (construct_container): Don't call
2404         gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
2405         X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
2406
2407 2009-04-27  Michael Matz  <matz@suse.de>
2408
2409         * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
2410         (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
2411         * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
2412         (dump_replaceable_exprs): Take a bitmap.
2413         * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
2414         array.
2415         (expand_gimple_basic_block): Likewise.
2416         * tree-ssa-ter.c (struct temp_expr_table_d): Make
2417         replaceable_expressions member a bitmap.
2418         (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
2419         (mark_replaceable): Likewise.
2420         (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
2421         * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
2422
2423 2009-04-27  Richard Guenther  <rguenther@suse.de>
2424
2425         * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
2426         (verify_stmts): Dispatch to gimple/type verification code.
2427         * tree-inline.c (remap_gimple_op_r): Work around C++ FE
2428         issue with call argument types.
2429
2430 2009-04-27  Michael Matz  <matz@suse.de>
2431
2432         * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
2433         (init_update_ssa, delete_update_ssa, update_ssa): Remove references
2434         to above.
2435
2436 2009-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
2437             Eric Botcazou  <ebotcazou@adacore.com>
2438
2439         * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
2440         a label's basic block.
2441         (mark_target_live_regs): Tidy and rework obsolete comments.
2442         Change back DF problem to LIVE.  If a label starts a basic block,
2443         assume that all registers that used to be live then still are.
2444         (init_resource_info): If a label starts a basic block, set its
2445         BLOCK_FOR_INSN accordingly.
2446         (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
2447
2448 2009-04-27  Richard Guenther  <rguenther@suse.de>
2449
2450         * tree-flow-inline.h (function_ann): Remove.
2451         (get_function_ann): Likewise.
2452         * tree-dfa.c (create_function_ann): Remove.
2453         * tree-flow.h (struct static_var_ann_d): Remove.
2454         (struct function_ann_d): Likewise.
2455         (union tree_ann_d): Remove fdecl member.
2456         (function_ann_t): Remove.
2457         (function_ann, get_function_ann, create_function_ann): Remove
2458         declarations.
2459
2460 2009-04-27  Uros Bizjak  <ubizjak@gmail.com>
2461
2462         * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
2463
2464 2009-04-27  Jan Hubicka  <jh@suse.cz>
2465
2466         * ipa-pure-const.c (struct funct_state_d): New fields
2467         state_previously_known, looping_previously_known; remove
2468         state_set_in_source.
2469         (analyze_function): Use new fields.
2470         (propagate): Avoid assumption that state_set_in_source imply
2471         nonlooping.
2472
2473         * tree-ssa-loop-niter.c (finite_loop_p): New function.
2474         * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
2475         * cfgloop.h (finite_loop_p): Declare.
2476
2477 2009-04-26  Michael Matz  <matz@suse.de>
2478
2479         * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
2480
2481 2009-04-26  Michael Matz  <matz@suse.de>
2482
2483         * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
2484         pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
2485         * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
2486         pass_mark_used_blocks): Remove.
2487         * tree-optimize.c (pass_free_datastructures,
2488         execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
2489         * passes.c (init_optimization_passes): Don't call
2490         pass_mark_used_blocks, remove dead code.
2491
2492 2009-04-26  H.J. Lu  <hongjiu.lu@intel.com>
2493
2494         * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
2495         * tree-ssa-live.h (register_ssa_partition): Likewise.
2496
2497 2009-04-26  Michael Matz  <matz@suse.de>
2498
2499         Expand from SSA.
2500         * builtins.c (fold_builtin_next_arg): Handle SSA names.
2501         * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
2502         * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
2503         SSA names. 
2504         (compare_pairs): Swap cost comparison.
2505         (coalesce_ssa_name): Don't use change_partition_var.
2506         * tree-nrv.c (struct nrv_data): Add modified member.
2507         (finalize_nrv_r): Set it.
2508         (tree_nrv): Use it to update statements.
2509         (pass_nrv): Require PROP_ssa.
2510         * tree-mudflap.c (mf_decl_cache_locals,
2511         mf_build_check_statement_for): Use make_rename_temp.
2512         (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
2513         * alias.c (find_base_decl): Handle SSA names.
2514         * emit-rtl (set_reg_attrs_for_parm): Make non-static.
2515         (component_ref_for_mem_expr): Don't leak SSA names into RTL.
2516         * rtl.h (set_reg_attrs_for_parm): Declare.
2517         * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
2518         to "optimized", remove unused locals at finish.
2519         (execute_free_datastructures): Make global, call
2520         delete_tree_cfg_annotations.
2521         (execute_free_cfg_annotations): Don't call
2522         delete_tree_cfg_annotations.
2523
2524         * ssaexpand.h: New file.
2525         * expr.c (toplevel): Include ssaexpand.h.
2526         (expand_assignment): Handle SSA names the same as register variables.
2527         (expand_expr_real_1): Expand SSA names.
2528         * cfgexpand.c (toplevel): Include ssaexpand.h.
2529         (SA): New global variable.
2530         (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
2531         (SSAVAR): New macro.
2532         (set_rtl): New helper function.
2533         (add_stack_var): Deal with SSA names, use set_rtl.
2534         (expand_one_stack_var_at): Likewise.
2535         (expand_one_stack_var): Deal with SSA names.
2536         (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
2537         before unique numbers.
2538         (expand_stack_vars): Use set_rtl.
2539         (expand_one_var): Accept SSA names, add asserts for them, feed them
2540         to above subroutines.
2541         (expand_used_vars): Expand all partitions (without default defs),
2542         then only the local decls (ignoring those expanded already).
2543         (expand_gimple_cond): Remove edges when jumpif() expands an
2544         unconditional jump.
2545         (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
2546         or remove abnormal edges.  Ignore insns setting the LHS of a TERed
2547         SSA name.
2548         (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
2549         members of SA; deal with PARM_DECL partitions here; expand
2550         all PHI nodes, free tree datastructures and SA.  Commit instructions
2551         on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
2552         (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
2553         info and statements at start, collect garbage at finish.
2554         * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
2555         (VAR_ANN_PARTITION) Remove.
2556         (change_partition_var): Don't declare.
2557         (partition_to_var): Always return SSA names.
2558         (var_to_partition): Only accept SSA names.
2559         (register_ssa_partition): Only check argument.
2560         * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
2561         member.
2562         (delete_var_map): Don't free it.
2563         (var_union): Only accept SSA names, simplify.
2564         (partition_view_init): Mark only useful SSA names as used.
2565         (partition_view_fini): Only deal with SSA names.
2566         (change_partition_var): Remove.
2567         (dump_var_map): Use ssa_name instead of partition_to_var member.
2568         * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
2569         basic blocks.
2570         * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
2571         (struct _elim_graph): New member const_dests; nodes member vector of
2572         ints.
2573         (set_location_for_edge): New static helper.
2574         (create_temp): Remove.
2575         (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
2576         insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
2577         (new_elim_graph): Allocate const_dests member.
2578         (clean_elim_graph): Truncate const_dests member.
2579         (delete_elim_graph): Free const_dests member.
2580         (elim_graph_size): Adapt to new type of nodes member.
2581         (elim_graph_add_node): Likewise.
2582         (eliminate_name): Likewise.
2583         (eliminate_build): Don't take basic block argument, deal only with
2584         partition numbers, not variables.
2585         (get_temp_reg): New static helper.
2586         (elim_create): Use it, deal with RTL temporaries instead of trees.
2587         (eliminate_phi): Adjust all calls to new signature.
2588         (assign_vars, replace_use_variable, replace_def_variable): Remove.
2589         (rewrite_trees): Only do checking.
2590         (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
2591         (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
2592         init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
2593         contains_tree_r, MAX_STMTS_IN_LATCH,
2594         process_single_block_loop_latch, analyze_edges_for_bb,
2595         perform_edge_inserts): Remove.
2596         (expand_phi_nodes): New global function.
2597         (remove_ssa_form): Take ssaexpand parameter.  Don't call removed
2598         functions, initialize new parameter, remember partitions having a
2599         default def.
2600         (finish_out_of_ssa): New global function.
2601         (rewrite_out_of_ssa): Make global.  Adjust call to remove_ssa_form,
2602         don't reset in_ssa_p here, don't disable TER when mudflap.
2603         (pass_del_ssa): Remove.
2604         * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
2605         partition members.
2606         (execute_free_datastructures): Declare.
2607         * Makefile.in (SSAEXPAND_H): New variable.
2608         (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
2609         * basic-block.h (commit_one_edge_insertion): Declare.
2610         * passes.c (init_optimization_passes): Move pass_nrv and
2611         pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
2612         pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
2613         * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
2614         (redirect_branch_edge): Deal with super block when expanding, split
2615         out jump patching itself into ...
2616         (patch_jump_insn): ... here, new static helper.
2617
2618 2009-04-26  Michael Matz  <matz@suse.de>
2619
2620         * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
2621         beyond num_ssa_names.
2622         * tree-ssa-ter.c (free_temp_expr_table): Likewise.
2623         * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2624
2625 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
2626
2627         PR inline-asm/39543
2628         * fwprop.c (forward_propagate_asm): New function.
2629         (forward_propagate_and_simplify): Propagate also into __asm, if it
2630         doesn't increase the number of referenced registers.
2631
2632         PR c/39889
2633         * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
2634
2635 2009-04-26  Jakub Jelinek  <jakub@redhat.com>
2636
2637         * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
2638         note_nonlocal_vla_type for nonlocal VLAs.
2639         (note_nonlocal_vla_type, note_nonlocal_block_vlas,
2640         contains_remapped_vars, remap_vla_decls): New functions.
2641         (convert_nonlocal_reference_stmt): If not optimizing, call
2642         note_nonlocal_block_vlas on GIMPLE_BIND block vars.
2643         (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
2644         if it wasn't found in var_map.
2645         (finalize_nesting_tree_1): Call remap_vla_decls.  If outermost
2646         GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
2647         to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
2648         declare_vars.
2649         * gimplify.c (nonlocal_vlas): New variable.
2650         (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
2651         referenced VLAs.
2652         (gimplify_body): Create and destroy nonlocal_vlas.
2653
2654         * dwarf2out.c (loc_descr_plus_const): New function.
2655         (build_cfa_aligned_loc, tls_mem_loc_descriptor,
2656         mem_loc_descriptor, loc_descriptor_from_tree_1,
2657         descr_info_loc, gen_variable_die): Use it.
2658
2659         * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
2660         !TREE_STATIC VAR_DECLs.
2661         * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
2662         DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
2663         (gen_variable_die): Likewise.  Don't look at TREE_PRIVATE if
2664         DECL_BY_REFERENCE is valid.
2665         * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
2666         for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
2667         * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
2668         Copy DECL_BY_REFERENCE.
2669         (struct nesting_copy_body_data): New type.
2670         (nesting_copy_decl): New function.
2671         (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
2672         if they have variable length.
2673
2674 2009-04-26  Michael Matz  <matz@suse.de>
2675
2676         * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
2677         mark new temporaries for renaming.
2678
2679 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
2680
2681         PR c/39581
2682         * c-decl.c (global_bindings_p): Return negative value.
2683         (c_variable_size): New.  Based on variable_size from
2684         stor-layout.c.
2685         (grokdeclarator): Call c_variable_size not variable_size.
2686
2687 2009-04-26  Uros Bizjak  <ubizjak@gmail.com>
2688
2689         * config/i386/i386.c (print_operand) ['z']: Fix typo.
2690
2691 2009-04-26  Kai Tietz  <kai.tietz@onevision.com>
2692
2693         * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
2694         Redefine it to just use mingw/include.
2695         (ASM_SPEC): Rules for -m32 and -m64.
2696         (LINK_SPEC): Use Likewise.
2697         (SPEC_32): New define.
2698         (SPEC_64): Likewise.
2699         (SUB_LINK_SPEC): Likewise.
2700         (MULTILIB_DEFAULTS): New define.
2701         * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
2702         Add multilib options.
2703         (MULTILIB_DIRNAMES): Likewise.
2704         (MULTILIB_OSDIRNAMES): Likewise.
2705         (LIBGCC): Likewise.
2706         (INSTALL_LIBGCC): Likewise.
2707
2708 2009-04-26  Joseph Myers  <joseph@codesourcery.com>
2709
2710         PR c/39556
2711         * c-tree.h (enum c_inline_static_type): New.
2712         (record_inline_static): Declare.
2713         * c-decl.c (struct c_inline_static, c_inline_statics,
2714         record_inline_static, check_inline_statics): New.
2715         (pop_file_scope): Call check_inline_statics.
2716         (start_decl): Call record_inline_static instead of pedwarning
2717         directly for static in inline function.
2718         * c-typeck.c (build_external_ref): Call record_inline_static
2719         instead of pedwarning directly for static referenced in inline
2720         function.
2721
2722 2009-04-26  Steven Bosscher  <steven@gcc.gnu.org>
2723
2724         * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
2725         not new but only being rescanned.
2726         * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
2727         reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
2728         alloc_reg_set_mem, free_reg_set_mem, record_one_set,
2729         record_set_info, compute_set, grealloc): Remove.
2730         (recompute_all_luids): New function.
2731         (gcse_main): Don't compute sets, and don't do related memory
2732         allocations/free-ing.  If something changed before the end of the
2733         pass, update LUIDs using recompute_all_luids.
2734         (alloc_gcse_mem): Don't compute LUIDs.  Don't allocate reg_set memory.
2735         (free_gcse_mem): Don't free it either.
2736         (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
2737         Use the df insn LUIDs.
2738         (load_killed_in_block): Likewise.
2739         (compute_hash_table_work): Don't compute reg_set_in_block.
2740         (compute_transp): Use DF_REG_DEF_CHAINs.
2741         (local_cprop_pass): Don't use compute_sets and related functions.
2742         (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
2743         Use get_max_uid() instead of max_cuid.
2744         (insert_insn_end_basic_block, pre_insert_copy_insn,
2745         update_ld_motion_stores): Don't try to
2746         keep reg_set tables up to date.
2747         (pre_insert_copies): Use df insn LUIDs.
2748         (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
2749         (reg_set_info): Don't use extra bitmap argument.
2750         (compute_store_table): Don't compute reg_set_in_block.  Use DF scan
2751         information to compute regs_set_in_block.
2752         (free_store_memory, store_motion): Don't nullify reg_set_in_block.
2753         (bypass_jumps): Don't use compute_sets and friends.
2754
2755 2009-04-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2756
2757         PR testsuite/39710
2758         * opts.c (undocumented_msg): Do not leave blank even with
2759         ENABLE_CHECKING.
2760
2761 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
2762
2763         * c-decl.c (build_enumerator): Allow values folding to integer
2764         constants but not integer constant expressions with a pedwarn if
2765         pedantic.
2766
2767 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
2768
2769         PR c/39582
2770         * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
2771         with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
2772         type is an integer constant.
2773
2774 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
2775
2776         PR target/39897
2777         * config/i386/i386.c (print_operand) ['z']: Revert handling of
2778         HImode operands.
2779
2780 2009-04-25  Joseph Myers  <joseph@codesourcery.com>
2781
2782         PR c/39564
2783         * c-decl.c (grokdeclarator): Diagnose declarations of functions
2784         with variably modified return type and no storage class
2785         specifiers, except for the case of nested functions.  Distinguish
2786         extern declarations of functions with variably modified return
2787         types from those of objects with variably modified types.
2788
2789 2009-04-25  Jan Hubicka  <jh@suse.cz>
2790
2791         * tree.c (list_equal_p): New function.
2792         * tree.h (list_equal_p): Declare.
2793         * coretypes.h (edge_def, edge, const_edge, basic_block_def
2794         basic_block_def, basic_block, const_basic_block): New.
2795         * tree-eh.c (make_eh_edge): EH edges are not abnormal.
2796         (redirect_eh_edge): New function.
2797         (make_eh_edge_update_phi): EH edges are not abnormal.
2798         * except.c: Include tree-flow.h.
2799         (list_match): New function.
2800         (eh_region_replaceable_by_p): New function.
2801         (replace_region): New function.
2802         (hash_type_list): New function.
2803         (hash_eh_region): New function.
2804         (eh_regions_equal_p): New function.
2805         (merge_peers): New function.
2806         (remove_unreachable_regions): Verify EH tree when checking;
2807         merge peers.
2808         (copy_eh_region_1): New function.
2809         (copy_eh_region): New function.
2810         (push_reachable_handler): New function.
2811         (build_post_landing_pads, dw2_build_landing_pads): Be ready for
2812         regions without label but with live RESX.
2813         * except.h (redirect_eh_edge_to_label): New.
2814         * tree-flow.h (redirect_eh_edge): New.
2815         * coretypes.h (edge_def, edge, const_edge, basic_block_def
2816         basic_block_def, basic_block, const_basic_block): Remove.
2817         * Makefile.in (except.o): Add dependency on tree-flow.h
2818         * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
2819         * basic-block.h (edge, const_edge, basic_block, const_basic_block):
2820         Remove.
2821
2822 2009-04-25  Eric Botcazou  <ebotcazou@adacore.com>
2823
2824         PR bootstrap/39645
2825         * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
2826         on the destination of memcpy.
2827
2828 2009-04-25  Paolo Bonzini  <bonzini@gnu.org>
2829
2830         * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
2831         REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
2832         REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
2833
2834 2009-04-25  Jan Hubicka  <jh@suse.cz>
2835
2836         * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
2837         (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
2838         to be reached by different label than left.
2839         (update_eh_edges): Update comment; remove edge_to_remove if possible
2840         and return true if suceeded.
2841         (cleanup_empty_eh): Accept sharing map; handle shared regions.
2842         (cleanup_eh): Compute sharing map.
2843         * except.c (remove_eh_handler_and_replace): Add argument if we should
2844         update regions.
2845         (remove_unreachable_regions): Update for label sharing.
2846         (label_to_region_map): Likewise.
2847         (get_next_region_sharing_label): New function.
2848         (remove_eh_handler_and_replace): Add update_catch_try parameter; update
2849         prev_try pointers.
2850         (remove_eh_handler): Update.
2851         (remove_eh_region_and_replace_by_outer_of): New function.
2852         * except.h (struct eh_region): Add next_region_sharing_label.
2853         (remove_eh_region_and_replace_by_outer_of,
2854         get_next_region_sharing_label): Declare.
2855         * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
2856
2857 2009-04-25  Jan Hubicka  <jh@suse.cz>
2858
2859         * tree-cfg.c (split_critical_edges): Split also edges where we can't
2860         insert code even if they are not critical.
2861
2862 2009-04-25  Jan Hubicka  <jh@suse.cz>
2863
2864         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
2865         (gimple_can_remove_branch_p): EH edges won't remove branch by
2866         redirection.
2867         * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
2868         updating of non-abnormal EH edges.
2869         * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
2870         (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
2871         (split_critical_edges): Split also edges where emitting code on them
2872         will lead to splitting later.
2873
2874 2009-04-25  Uros Bizjak  <ubizjak@gmail.com>
2875             H.J. Lu  <hongjiu.lu@intel.com>
2876
2877         PR target/39590
2878         * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
2879         the configured assembler supports fildq and fistpq mnemonics.
2880         (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
2881         * configure: Regenerated.
2882         * config.in: Ditto.
2883
2884         * config/i386/i386.c (print_operand): Handle 'Z'.
2885         ['z']: Remove handling of special fild/fist suffixes.
2886         (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
2887         * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
2888         suffix of fild insn.
2889         (*floatsi<mode>2_vector_mixed): Ditto.
2890         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
2891         (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
2892         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
2893         (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
2894         * config/i386/gas.h (GAS_MNEMONICS): Remove.
2895
2896 2009-04-25  Ben Elliston  <bje@au.ibm.com>
2897  
2898         * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
2899         the source of a set operation.
2900
2901 2009-04-25  Anatoly Sokolov  <aesok@post.ru>
2902
2903         * target.h (struct gcc_target): Add case_values_threshold field.
2904         * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
2905         (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
2906         * targhooks.c (default_case_values_threshold): New function.
2907         * targhooks.h (default_case_values_threshold): Declare function.
2908         * stmt.c (expand_case): Use case_values_threshold target hook.
2909         * expr.h (case_values_threshold): Remove declartation.
2910         * expr.c (case_values_threshold): Remove function.
2911         * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
2912
2913         * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
2914         * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2915         (avr_case_values_threshold): Declare as static.
2916         * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
2917
2918         * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
2919         * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2920         (mn10300_case_values_threshold): New function.
2921
2922 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
2923
2924         * ira.c (setup_cover_and_important_classes): Add enum cast.
2925
2926 2009-04-24  Vladimir Makarov  <vmakarov@redhat.com>
2927
2928         * genpreds.c (write_enum_constraint_num): Output definition of
2929         CONSTRAINT_NUM_DEFINED_P macro.
2930         * ira.c (setup_cover_and_important_classes): Use
2931         CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
2932         
2933 2009-04-24  DJ Delorie  <dj@redhat.com>
2934
2935         * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
2936         __SH2A_SINGLE_ONLY__ also.
2937
2938 2009-04-24  Steve Ellcey  <sje@cup.hp.com>
2939
2940         * config/ia64/ia64.md (movfs_internal): Allow flt constants.
2941         (movdf_internal): Ditto.
2942         * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
2943         SFmode and DFmode constants.
2944         (ia64_print_operand): Add 'G' format for printing
2945         floating point constants.
2946
2947 2009-04-24  Richard Guenther  <rguenther@suse.de>
2948
2949         * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
2950         from unsigned additions.
2951
2952 2009-04-24  Joseph Myers  <joseph@codesourcery.com>
2953
2954         * c-typeck.c (set_init_index): Allow array designators that are
2955         not integer constant expressions with a pedwarn if pedantic.
2956
2957 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
2958
2959         * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
2960         zero if no overlap in nonzero bits between the operands.
2961
2962 2009-04-24  Ian Lance Taylor  <iant@google.com>
2963
2964         * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
2965         (record_dead_and_set_regs): Likewise.
2966         * df.h (struct df_mw_hardreg): Change flags field to int.
2967         (struct df_base_ref): Likewise.
2968         (struct df): Change changeable_flags field to int.
2969         * df-scan.c (df_defs_record): Change clobber_flags to int.
2970         * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
2971         constants rather than #define macros.
2972         (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
2973         (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
2974         (enum dwarf_calling_convention): Likewise.
2975         (enum dwarf_line_number_x_ops): Likewise.
2976         (enum dwarf_call_frame_info): Likewise.
2977         (enum dwarf_source_language): Likewise.
2978         * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
2979         (add_calling_convention_attribute): Likewise.
2980         * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
2981         (combine_comparisons): Change compcode to int.  Add cast to enum type.
2982         * genrecog.c (maybe_both_true_2): Change c to int.
2983         (write_switch): Likewise.  Add cast to enum type.
2984         * gimplify.c (gimplify_omp_for): Handle return values from
2985         gimplify_expr using MIN rather than bitwise or.
2986         (gimplify_expr): Add cast to enum type.
2987         * ipa-prop.c (update_jump_functions_after_inlining): Change
2988         IPA_BOTTOM to IPA_JF_UNKNOWN.
2989         * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
2990         Add casts to enum type.
2991         (setup_cover_and_important_classes): Change cl to int.  Add casts
2992         to enum type.
2993         (setup_class_translate): Change cl and mode to int.
2994         (ira_init_once): Change mode to int.
2995         (free_register_move_costs): Likewise.
2996         (setup_prohibited_mode_move_regs): Add casts to enum type.
2997         * langhooks.c (add_builtin_function_common): Rework assertion that
2998         value fits bitfield.
2999         * mcf.c (add_fixup_edge): Change type parameter to edge_type.
3000         * omega.c (omega_do_elimination): Avoid math on enum types.
3001         * optabs.c (expand_vec_shift_expr): Remove casts to int.
3002         * opts.c (set_debug_level): Change 2 to enum constant.  Use new
3003         int local to handle integral_argment value.
3004         * regmove.c (try_auto_increment): Change PUT_MODE to
3005         PUT_REG_NOTE_KIND.
3006         * reload.c (push_secondary_reload): Add casts to enum type.
3007         (secondary_reload_class, find_valid_class): Likewise.
3008         * reload1.c (emit_input_reload_insns): Likewise.
3009         * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
3010         * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
3011         * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
3012         constant.
3013         * tree.c (build_common_builtin_nodes): Add casts to enum type.
3014         * tree-complex.c (complex_lattice_t): Typedef to int rather than
3015         enum type.
3016         (expand_complex_libcall): Add casts to enum type.
3017         * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
3018         * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
3019         with ERROR_MARK, not NUM_TREE_CODES.
3020         (vect_create_epilog_for_reduction): Likewise.
3021         (vectorizable_reduction): Don't initialize epiloc_reduc_code.
3022         When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
3023         * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
3024         enum machine_mode.
3025         * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
3026         vect_unused_in_loop.  Change 0 to loop_vect.
3027         * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
3028         * var-tracking.c (get_init_value): Change return type to enum
3029         var_init_status.
3030         * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
3031         * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
3032         arm_fp_model.
3033         (arm_override_options): Add casts to enum type.
3034         (arm_emit_tls_decoration): Likewise.
3035         * config/i386/i386.c (ix86_function_specific_restore): Add casts
3036         to enum type.
3037         * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
3038         * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
3039         * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
3040         enum type.
3041         * config/s390/s390.c (code_for_builtin_64): Change to array of
3042         enum insn_code.
3043         (code_for_builtin_31): Likewise.
3044         (s390_expand_builtin): Change code_for_builtin to enum insn_code
3045         const *.
3046         * config/sparc/sparc.c (sparc_override_options): Change value
3047         field in struct code_model to enum cmodel.  In initializer change
3048         0 to NULL and add cast to enum type.
3049
3050         * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
3051         Change all callers.  Issue a -Wc++-compat warning using
3052         lhs_origtype if necessary.
3053         (convert_for_assignment): Issue -Wc++-compat warnings about
3054         invalid conversions to enum type on assignment.
3055         * c-common.h (build_modify_expr): Update declaration.
3056
3057 2009-04-24  Nick Clifton  <nickc@redhat.com>
3058
3059         * config/iq2000/iq2000.c (function_arg): Handle TImode values.
3060         (function_arg_advance): Likewise.
3061         * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
3062         5th alternative.
3063
3064 2009-04-24  Andreas Krebbel  <krebbel1@de.ibm.com>
3065
3066         * config/s390/constraints.md ('I', 'J'): Fix condition.
3067
3068 2009-04-24  Diego Novillo  <dnovillo@google.com>
3069
3070         * gengtype-parse.c (parse_error): Add newline after message.
3071
3072 2009-04-24  H.J. Lu  <hongjiu.lu@intel.com>
3073
3074         * config/i386/sse.md (avxmodesuffixs): Removed.
3075         (*avx_pinsr<avxmodesuffixs>): Renamed to ...
3076         (*avx_pinsr<ssevecsize>): This.
3077
3078 2009-04-24  Bernd Schmidt  <bernd.schmidt@analog.com>
3079
3080         * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
3081         follow chains of regs with a single definition, and allow expressions
3082         that are function_invariant_p.
3083         (simple_rhs_p): Allow expressions that are function_invariant_p.
3084
3085 2009-04-24  Paolo Bonzini  <bonzini@gnu.org>
3086
3087         PR middle-end/39867
3088         * fold-const.c (fold_cond_expr_with_comparison): When folding
3089         > and >= to MAX, make sure the MAX uses the same type as the
3090         comparison's operands.
3091
3092 2009-04-24  Nick Clifton  <nickc@redhat.com>
3093
3094         * config/frv/frv.c (frv_frame_access): Do not use reg+reg
3095         addressing for DImode accesses.
3096         (frv_print_operand_address): Handle PLUS case.
3097         * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
3098
3099 2009-04-24  Jakub Jelinek  <jakub@redhat.com>
3100
3101         PR rtl-optimization/39794
3102         * alias.c (canon_true_dependence): Add x_addr argument.
3103         * rtl.h (canon_true_dependence): Adjust prototype.
3104         * cse.c (check_dependence): Adjust canon_true_dependence callers.
3105         * cselib.c (cselib_invalidate_mem): Likewise.
3106         * gcse.c (compute_transp): Likewise.
3107         * dse.c (scan_reads_nospill): Likewise.
3108         (record_store, check_mem_read_rtx): Likewise.  For non-const-or-frame
3109         addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
3110         canon_base_addr of the group, plus optional offset.
3111         (struct group_info): Rename canon_base_mem to
3112         canon_base_addr.
3113         (get_group_info): Set canon_base_addr to canon_rtx of base, not
3114         canon_rtx of base_mem.
3115
3116 2009-04-23  Paolo Bonzini  <bonzini@gnu.org>
3117
3118         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
3119         Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
3120
3121 2009-04-23  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3122
3123         * config/spu/spu-builtins.h: Delete file.
3124
3125         * config/spu/spu.h (enum spu_builtin_type): Move here from
3126         spu-builtins.h.
3127         (struct spu_builtin_description): Likewise.  Add GTY marker.
3128         Do not use enum spu_function_code or enum insn_code.
3129         (spu_builtins): Add extern declaration.
3130
3131         * config/spu/spu.c: Do not include "spu-builtins.h".
3132         (enum spu_function_code, enum spu_builtin_type_index,
3133         V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
3134         V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
3135         unsigned_V8HI_type_node, unsigned_V4SI_type_node,
3136         unsigned_V2DI_type_node): Move here from spu-builtins.h.
3137         (spu_builtin_types): Make static.  Add GTY marker.
3138         (spu_builtins): Add extern declaration with GTY marker.
3139         Include "gt-spu.h".
3140
3141         * config/spu/spu-c.c: Do not include "spu-builtins.h".
3142         (spu_resolve_overloaded_builtin): Do not use spu_function_code.
3143         Check programmatically whether all parameters are scalar.
3144
3145         * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
3146
3147 2009-04-23  Eric Botcazou  <ebotcazou@adacore.com>
3148
3149         * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
3150         assignment from the constructor either if the target is volatile.
3151
3152 2009-04-23  Daniel Jacobowitz  <dan@codesourcery.com>
3153
3154         * config/arm/arm.md (insv): Do not share operands[0].
3155
3156 2009-04-23  Nathan Sidwell  <nathan@codesourcery.com>
3157
3158         * config/vxlib-tls.c (active_tls_threads): Delete.
3159         (delete_hook_installed): New.
3160         (tls_delete_hook): Don't delete the delete hook.
3161         (tls_destructor): Delete it here.
3162         (__gthread_set_specific): Adjust installing the delete hook.
3163         (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
3164         __gthread_leave_tsd_dtor_context.
3165
3166 2009-04-23  Rafael Avila de Espindola  <espindola@google.com>
3167
3168         * c-format.c (gcc_tdiag_char_table): Add support for %E.
3169
3170 2009-04-23  Uros Bizjak  <ubizjak@gmail.com>
3171
3172         * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
3173         enum type.
3174         (alpha_rtx_costs): Ditto.
3175         (emit_unlikely_jump): Use add_reg_note.
3176         (emit_frame_store_1): Ditto.
3177         (alpha_expand_prologue): Ditto.
3178         (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
3179         * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
3180
3181 2009-04-23  Nick Clifton  <nickc@redhat.com>
3182
3183         * config/v850/v850.md (epilogue): Remove suppressed code.
3184         (return): Rename to return_simple and remove test of frame size.
3185         * config/v850/v850.c (expand_epilogue): Rename call to gen_return
3186         to gen_return_simple.
3187
3188 2009-04-22  Jing Yu  <jingyu@google.com>
3189
3190         PR testsuite/39781
3191         * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
3192
3193 2009-04-22  Andrew Pinski  <andrew_pinski@playstation.sony.com>
3194
3195         PR C/31499
3196         * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
3197         and RECORD_TYPE/UNION_TYPE.  When outputing the actual element and the
3198         value is a VECTOR_CST, the element type is the element type of the
3199         vector.
3200
3201 2009-04-22  DJ Delorie  <dj@redhat.com>
3202
3203         * config/m32c/m32c.h: Update GTY annotations to new syntax.
3204
3205 2009-04-22  Jakub Jelinek  <jakub@redhat.com>
3206
3207         * alias.c (find_base_term): Move around LO_SUM case, so that
3208         CONST falls through into PLUS/MINUS handling.
3209
3210         PR c/39855
3211         * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
3212         into 0, use omit_one_operand.
3213
3214 2009-04-23  Ben Elliston  <bje@au.ibm.com>
3215
3216         * config/rs6000/linux-unwind.h (get_regs): Remove type
3217         puns. Change the type of `pc' to an array of unsigned ints and
3218         update all users.  Constify frame24.
3219
3220 2009-04-22  DJ Delorie  <dj@redhat.com>
3221
3222         * config/m32c/m32c.c (m32c_special_page_vector_p): Move
3223         declarations before code.
3224         (current_function_special_page_vector): Likewise.
3225         (m32c_expand_insv): Silence a warning.
3226
3227 2009-04-21  Taras Glek  <tglek@mozilla.com>
3228
3229         * alias.c: Update GTY annotations to new syntax.
3230         * basic-block.h: Likewise.
3231         * bitmap.h: Likewise.
3232         * c-common.h: Likewise.
3233         * c-decl.c: Likewise.
3234         * c-parser.c: Likewise.
3235         * c-pragma.c: Likewise.
3236         * c-tree.h: Likewise.
3237         * cfgloop.h: Likewise.
3238         * cgraph.h: Likewise.
3239         * config/alpha/alpha.c: Likewise.
3240         * config/arm/arm.h: Likewise.
3241         * config/avr/avr.h: Likewise.
3242         * config/bfin/bfin.c: Likewise.
3243         * config/cris/cris.c: Likewise.
3244         * config/darwin.c: Likewise.
3245         * config/frv/frv.c: Likewise.
3246         * config/i386/i386.c: Likewise.
3247         * config/i386/i386.h: Likewise.
3248         * config/i386/winnt.c: Likewise.
3249         * config/ia64/ia64.h: Likewise.
3250         * config/iq2000/iq2000.c: Likewise.
3251         * config/mips/mips.c: Likewise.
3252         * config/mmix/mmix.h: Likewise.
3253         * config/pa/pa.c: Likewise.
3254         * config/pa/pa.h: Likewise.
3255         * config/rs6000/rs6000.c: Likewise.
3256         * config/s390/s390.c: Likewise.
3257         * config/sparc/sparc.c: Likewise.
3258         * config/xtensa/xtensa.c: Likewise.
3259         * cselib.h: Likewise.
3260         * dbxout.c: Likewise.
3261         * dwarf2out.c: Likewise.
3262         * except.c: Likewise.
3263         * except.h: Likewise.
3264         * fixed-value.h: Likewise.
3265         * function.c: Likewise.
3266         * function.h: Likewise.
3267         * gimple.h: Likewise.
3268         * integrate.c: Likewise.
3269         * optabs.c: Likewise.
3270         * output.h: Likewise.
3271         * real.h: Likewise.
3272         * rtl.h: Likewise.
3273         * stringpool.c: Likewise.
3274         * tree-data-ref.c: Likewise.
3275         * tree-flow.h: Likewise.
3276         * tree-scalar-evolution.c: Likewise.
3277         * tree-ssa-address.c: Likewise.
3278         * tree-ssa-alias.h: Likewise.
3279         * tree-ssa-operands.h: Likewise.
3280         * tree.c: Likewise.
3281         * tree.h: Likewise.
3282         * varasm.c: Likewise.
3283         * varray.h: Likewise.
3284         * vec.h: Likewise.
3285         * coretypes.h: Do not define GTY macro if it is already defined.
3286         * doc/gty.texi: Update GTY documentation to new syntax.
3287         * gengtype-lex.l: Enforce attribute-like syntax for GTY
3288         annotations on structs.
3289         * gengtype-parse.c: Likewise.
3290
3291 2009-04-22  Mark Heffernan  <meheff@google.com>
3292
3293         * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
3294
3295 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
3296
3297         * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
3298         where appropriate.
3299
3300 2009-04-22  Kazu Hirata  <kazu@codesourcery.com>
3301
3302         * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
3303         the same as a PLUS without a shift.  Increase the cost of a
3304         CONST_INT in MULT.
3305
3306 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3307
3308         * Makefile.in: Update dependencies.
3309         * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
3310         * errors.h: Remove bogus comment about compatibility.
3311         (warning): Update declaration.
3312         * genautomata.c: Update all calls to warning.
3313         * gimple.c: Do not include errors.h. Include toplev.h.
3314         * tree-ssa-structalias.c: Do not include errors.h.
3315         * omega.c: Likewise.
3316         * tree-ssa-reassoc.c: Likewise.
3317         * config/spu/spu-c.c: Likewise.
3318         * config/spu/t-spu-elf: Update dependencies.
3319
3320 2009-04-22  Richard Guenther  <rguenther@suse.de>
3321
3322         PR tree-optimization/39824
3323         * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
3324         make sure the types are compatible.
3325
3326 2009-04-22  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3327
3328         PR c++/14875
3329         * c-common.c (c_parse_error): Take a token_flags parameter.
3330         Use token_type for the token type instead.
3331         Pass token_flags to cpp_type2name.
3332         * c-common.h (c_parse_error): Update declaration.
3333         * c-parser.c (c_parser_error): Pass 0 as token flags.
3334
3335 2009-04-22  Andrey Belevantsev  <abel@ispras.ru>
3336
3337         PR rtl-optimization/39580
3338         * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert. 
3339         
3340 2009-04-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3341
3342         * function.c (expand_function_end): Do not emit a jump to the "naked"
3343         return label for fall-through returns.
3344         * except.c (sjlj_emit_function_exit): Always place the call to the
3345         unregister function at the location installed by expand_function_end.
3346
3347 2009-04-22  Richard Guenther  <rguenther@suse.de>
3348
3349         PR tree-optimization/39845
3350         * tree-switch-conversion.c (build_arrays): Add new referenced vars.
3351         (gen_inbound_check): Likewise.
3352
3353 2009-04-22  Nathan Sidwell  <nathan@codesourcery.com>
3354
3355         * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
3356         padding for PPC.
3357         (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
3358         * config/vxlib.c (__gthread_once): Add race guard for PPC.
3359
3360 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
3361
3362         * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
3363         sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
3364         shift counts to avoid out-of-bounds array accesses.
3365
3366 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
3367
3368         * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
3369         (Pmode): Move above.
3370
3371 2009-04-22  Uros Bizjak  <ubizjak@gmail.com>
3372
3373         * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
3374         NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
3375         GET_CODE macro.  Use IN_RANGE macro where appropriate.
3376         * config/alpha/alpha.h: Ditto.
3377         * config/alpha/alpha.md: Ditto.
3378         * config/alpha/constraints.md: Ditto.
3379         * config/alpha/predicates.md: Ditto.
3380         
3381 2009-04-22  Paolo Bonzini  <bonzini@gnu.org>
3382
3383         * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
3384         * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3385         * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3386         * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3387         * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3388         * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3389         * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3390         * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3391         * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3392         * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3393         * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3394         * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3395         * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3396         * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3397         * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3398         * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3399         * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3400         * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3401         * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3402         * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3403         * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3404         * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3405         * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3406         * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3407         * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3408         * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3409         * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3410
3411 2009-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
3412
3413         * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
3414         references from comments.
3415         * cfgbuild.c: (count_basic_blocks): Delete.
3416         (find_basic_blocks_1): Delete.
3417         (find_basic_blocks): Delete.
3418         * except.c (finish_eh_generation): Make static.  Move comment from
3419         except.h here.  Remove find_basic_blocks references from comments.
3420         * except.h (finish_eh_generation): Delete.
3421         * basic-block.h (find_basic_blocks): Delete.
3422         * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
3423
3424 2009-04-22  Dave Korn  <dave.korn.cygwin@gmail.com>
3425
3426         * sdbout.c (sdbout_symbol):  Pass VOIDmode to eliminate_regs.
3427         (sdbout_parms):  Likewise.
3428
3429 2009-04-21  Kaz Kojima  <kkojima@gcc.gnu.org>
3430
3431         * config/sh/sh.c (prepare_cbranch_operands): Use
3432         LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
3433         (expand_cbranchdi4): Likewise.
3434         (from_compare): Add cast to enum type.
3435         (expand_cbranchsi4): Use add_reg_note.
3436         (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
3437         (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
3438         (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
3439         (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
3440         * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
3441         instead of CODE_FOR_nothing.
3442         (cbranchdi4): Likewise.  Fix the order of arguments for
3443         gen_rtx_fmt_ee.
3444         (push_fpscr): Use add_reg_note.
3445         (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
3446         reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
3447         
3448 2009-04-21  Joseph Myers  <joseph@codesourcery.com>
3449
3450         * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
3451         ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
3452         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
3453         ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
3454         ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
3455         FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
3456         config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
3457         config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
3458         config/alpha/x-vms, config/arc/t-arc,
3459         config/arm/README-interworking, config/arm/arm-c.c,
3460         config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
3461         config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
3462         config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
3463         config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
3464         config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
3465         config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
3466         config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
3467         config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
3468         config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
3469         config/cris/t-elfmulti, config/crx/t-crx,
3470         config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
3471         config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
3472         config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
3473         config/h8300/t-h8300, config/i386/athlon.md,
3474         config/i386/darwin-libgcc.10.4.ver,
3475         config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
3476         config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
3477         config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
3478         config/i386/t-linux64, config/i386/t-nwld,
3479         config/i386/t-rtems-i386, config/i386/t-sol2-10,
3480         config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
3481         config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
3482         config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
3483         config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
3484         config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
3485         config/iq2000/t-iq2000, config/libgcc-glibc.ver,
3486         config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
3487         config/m32r/t-m32r, config/m68hc11/t-m68hc11,
3488         config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
3489         config/m68k/t-uclinux, config/mcore/t-mcore,
3490         config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
3491         config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
3492         config/mips/crtn.asm, config/mips/irix-crti.asm,
3493         config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
3494         config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
3495         config/mips/mips-fixed.md, config/mips/sb1.md,
3496         config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
3497         config/mips/t-iris6, config/mips/t-isa3264,
3498         config/mips/t-libgcc-mips16, config/mips/t-linux64,
3499         config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
3500         config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
3501         config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
3502         config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
3503         config/mn10300/t-linux, config/mn10300/t-mn10300,
3504         config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
3505         config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
3506         config/picochip/libgccExtras/clzsi2.asm,
3507         config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
3508         config/rs6000/darwin-libgcc.10.4.ver,
3509         config/rs6000/darwin-libgcc.10.5.ver,
3510         config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
3511         config/rs6000/t-aix43, config/rs6000/t-aix52,
3512         config/rs6000/t-darwin, config/rs6000/t-fprules,
3513         config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
3514         config/rs6000/t-lynx, config/rs6000/t-netbsd,
3515         config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
3516         config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
3517         config/rs6000/t-rtems, config/rs6000/t-spe,
3518         config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
3519         config/score/t-score-elf, config/sh/divcost-analysis,
3520         config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
3521         config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
3522         config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
3523         config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
3524         config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
3525         config/stormy16/stormy-abi, config/stormy16/t-stormy16,
3526         config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
3527         config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
3528         config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
3529         config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
3530         config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
3531         gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
3532         java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
3533         limitx.h, version.c, xcoff.h: Add copyright and license notices.
3534         * config/h8300/genmova.sh: Include copyright and license notices
3535         in generated output.
3536         * config/h8300/mova.md: Regenerate.
3537         * doc/install.texi2html: Include word "Copyright" in copyright
3538         notice and use name "Free Software Foundation, Inc.".
3539         * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
3540         ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
3541         ChangeLog-2007, ChangeLog-2008: Correct dates.
3542
3543 2009-04-21  Eric Botcazou  <ebotcazou@adacore.com>
3544
3545         * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
3546         NE_EXPR operations as well.
3547         * c-parser.c (c_parser_condition): Do not set location information on
3548         the condition.
3549         (c_parser_conditional_expression): Likewise.
3550         (c_parser_binary_expression): Set location information on operators.
3551         * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
3552         TRUTH_NOT_EXPR has been folded.
3553         * fold-const.c (fold_truth_not_expr): Copy location information from
3554         the incoming expression to the outgoing one.
3555         * gimplify.c (shortcut_cond_r): Add locus parameter.  Pass it to
3556         recursive calls on the LHS of the operator but pass that of the
3557         operator to recursive calls on the RHS of the operator.  Set it
3558         on the COND_EXPR.
3559         (shortcut_cond_expr): Set the locus of the operator on the second
3560         COND_EXPR and that of the expression on the first in degenerate cases.
3561         Pass the locus of the expression to calls to shortcut_cond_r.
3562         Set the locus of the 'then' block on the associated jump, if any.
3563         (gimplify_boolean_expr): Add locus parameter.  Set it on the COND_EXPR.
3564         (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
3565         expression to call to gimplify_boolean_expr.
3566
3567 2009-04-21  Kai Tietz  <kai.tietz@onevision.com>
3568
3569         * config.gcc: Add additional configuration for
3570         i686-w64-mingw* and x86_64-w64-mingw* triplet.
3571         * config/i386/mingw-w64.h: New mingw-w64 specific header.
3572         (CPP_SPEC): Redefine for allowing -municode option.
3573         (STARTFILE_SPEC): Likewise.
3574         * config/i386/t-mingw-w64: New.
3575         * config/i386/mingw-w64.opt: New.
3576         (municode): Add new target option.
3577         * doc/invoke.texi (municode): Add documentation for new option.
3578
3579 2009-04-21  Ian Lance Taylor  <iant@google.com>
3580
3581         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3582         Correct test for number of arguments.
3583         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
3584
3585 2009-04-21  Andreas Schwab  <schwab@linux-m68k.org>
3586
3587         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
3588         argument of emit_library_call.
3589
3590 2009-04-21  Richard Guenther  <rguenther@suse.de>
3591
3592         PR middle-end/39829
3593         * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
3594         inside VIEW_CONVERT_EXPRs.
3595
3596 2009-04-21  Martin Jambor  <mjambor@suse.cz>
3597
3598         * tree-switch-conversion.c (build_constructors): Split a long line.
3599         (constructor_contains_same_values_p): New function.
3600         (build_one_array): Create assigns of constants if possible, do not
3601         call mark_sym_for_renaming, call update_stmt.
3602         (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
3603         make_rename_temp.  Do not call mark_symbols_for_renaming, call
3604         update_stmt.
3605         (gen_def_assigns): Do not call mark_symbols_for_renaming or
3606         find_new_referenced_vars, call update_stmt.
3607         (gen_inbound_check): Use create_tmp_var and create ssa names manually
3608         instead of calling make_rename_temp.  Do not call
3609         find_new_referenced_vars or mark_symbols_for_renaming, call
3610         update_stmt.
3611
3612 2009-04-21  Richard Guenther  <rguenther@suse.de>
3613
3614         PR tree-optimization/39827
3615         * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
3616         (tree_ssa_phiprop): Pass the correct array size.
3617
3618 2009-04-21  Uros Bizjak  <ubizjak@gmail.com>
3619
3620         * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
3621
3622 2009-04-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3623
3624         PR 16202
3625         * c-typeck.c (lvalue_p): Move declaration ...
3626         * c-common.h (lvalue_p): ... to here.
3627         * c-common.c (candidate_equal_p): New.
3628         (add_tlist): Use it.
3629         (merge_tlist): Use it.
3630         (warn_for_collisions_1): Likewise.
3631         (warning_candidate_p): Accept more candidates.
3632         (verify_tree): A warning candidate can be an expression. Use
3633         candidate_equal_p.
3634
3635 2009-04-21  Ben Elliston  <bje@au.ibm.com>
3636
3637         PR target/5267
3638         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
3639         for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
3640         options.  Remove -mcall-solaris documentation.
3641
3642 2009-04-21  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3643
3644         PR c++/13358
3645         * doc/invoke.texi (-Wlong-long): Update description.
3646         * c-lex (interpret_integer): Only warn if there was no previous
3647         overflow and -Wlong-long is enabled.
3648         * c-decl.c (declspecs_add_type): Drop redundant flags.
3649         * c.opt (Wlong-long): Init to -1.
3650         * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
3651         and front-end warn_long_long. Wlong-long only depends on other
3652         flags if it is uninitialized.
3653         * c-parser.c (disable_extension_diagnostics): warn_long_long is
3654         the same for CPP and FE.
3655         (restore_extension_diagnostics): Likewise.
3656
3657 2009-04-20  Ian Lance Taylor  <iant@google.com>
3658
3659         Fix enum conversions which are invalid in C++:
3660         * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
3661         * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
3662         * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
3663         * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
3664         * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
3665         (dbxout_parms): Likewise.
3666         * df-core.c (df_set_flags): Change changeable_flags parameter to int.
3667         (df_clear_flags): Likewise.
3668         * df-problems.c (df_rd_bb_local_compute_process_def): Change
3669         top_flag parameter to int.
3670         (df_chain_create_bb_process_use): Likewise.
3671         (df_chain_add_problem): Change chain_flags parameter to unsigned int.
3672         Remove cast.
3673         * df-scan.c (df_ref_create): Change ref_flags parameter to int.
3674         (df_ref_create_structure, df_def_record_1): Likewise.
3675         (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
3676         (df_notes_rescan): Change 0 to VOIDmode in function call.
3677         (df_get_call_refs, df_insn_refs_collect): Likewise.
3678         (df_bb_regs_collect): Likewise.
3679         (df_entry_block_defs_collect): Likewise.
3680         (df_exit_block_uses_collect): Likewise.
3681         * df.h: Update declarations.
3682         * double-int.c (double_int_divmod): Add cast to enum type.
3683         * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
3684         * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
3685         (based_loc_descr): Likewise.
3686         (loc_descriptor_from_tree_1): Change first_op and second_op to
3687         enum dwarf_location_atom.  Add cast to enum type.
3688         * expmed.c (init_expmed): Change 0 to SET in function call.
3689         * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
3690         (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
3691         (do_store_flag): Likewise.
3692         * fixed-value.h (struct fixed_value): Change mode to enum
3693         machine_mode.
3694         * function.c (assign_parms): Change 0 to VOIDmode in function call.
3695         * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
3696         function call.
3697         (insert_insn_decl, insert_decl, insert_state): Likewise.
3698         (automata_list_finish): Likewise.
3699         * genrecog.c (process_define_predicate): Add cast to enum type.
3700         * gensupport.c (init_predicate_table): Add cast to enum type.
3701         * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
3702         function call.
3703         (gimple_build_call_1, gimple_build_label): Likewise.
3704         (gimple_build_goto, gimple_build_asm_1): Likewise.
3705         (gimple_build_switch_1, gimple_build_cdt): Likewise.
3706         * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
3707         (enum fallback): Rename from enum fallback_t.
3708         (fallback_t): Typedef as int.
3709         * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
3710         GSI_SAME_STMT in function call.
3711         * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
3712         enum type.
3713         (setup_reg_class_relations): Likewise.
3714         (setup_reg_class_nregs): Change cl to int.  Add casts to enum type.
3715         (setup_prohibited_class_mode_regs): Add cast to enum type.
3716         (setup_prohibited_mode_move_regs): Likewise.
3717         * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
3718         (record_address_regs): Change i to enum reg_class.
3719         * lists.c (alloc_EXPR_LIST): Add cast to enum type.
3720         * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
3721         (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
3722         (GET_MODE_2XWIDER_MODE): Likewise.
3723         (GET_CLASS_NARROWEST_MODE): Likewise.
3724         * omp-low.c (expand_omp_for): Add cast to enum type.
3725         * optabs.c (debug_optab_libfuncs): Add casts to enum type.
3726         * opts.c (enable_warning_as_error): Change kind to diagostic_t.
3727         * postreload.c (reload_cse_simplify_operands): Change rclass local
3728         to enum reg_class.
3729         * predict.c (combine_predictions_for_insn): Change best_predictor
3730         and predictor to enum br_predictor.
3731         (combine_predictions_for_bb): Likewise.
3732         (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
3733         use SET_PREDICT_EXPR_OUTCOME.
3734         * real.c (real_arithmetic): Change icode to code in function call.
3735         * reginfo.c (init_move_cost): Add casts to enum type.
3736         (init_reg_sets_1, init_fake_stack_mems): Likewise.
3737         * regmove.c (regclass_compatible_p): Change class0 and class1 to
3738         enum reg_class.
3739         * reload.c (find_valid_class): Add casts to enum type.
3740         (push_reload): Change 0 to NO_REGS in function call.
3741         (find_reloads): Change this_alternative to array of enum
3742         reg_class.  Remove some now-unnecessary casts.
3743         (make_memloc): Change 0 to VOIDmode in function call.
3744         * reload1.c (reload): Change 0 to VOIDmode in function call.
3745         (eliminate_regs_1, elimination_effects): Likewise.
3746         (eliminate_regs_in_insn): Likewise.
3747         (emit_input_reload_insns): Add cast to enum type.
3748         (delete_output_reload): Change 0 to VOIDmode in function call.
3749         * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
3750         to enum type in function call.
3751         * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
3752         (SET_PREDICT_EXPR_OUTCOME): Define.
3753         * tree-dump.c (get_dump_file_info): Change phase parameter to int.
3754         (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
3755         (dump_initialized_p, dump_flag_name, dump_end): Likewise.
3756         (dump_function): Likewise.
3757         * tree-dump.h: Update declarations.
3758         * tree-pass.h: Update declarations.
3759         * varasm.c (assemble_integer): Change mclass to enum mode_class.
3760         * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
3761         enum type.
3762         (arm_rtx_costs_1): Correct parenthesization.
3763         (arm_rtx_costs): Add casts to enum type.
3764         (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
3765         (vfp_emit_fstmd): Use add_rg_note.
3766         (emit_multi_reg_push, emit_sfm): Likewise.
3767         (thumb_set_frame_pointer): Likewise.
3768         (arm_expand_prologue): Likewise.
3769         (arm_regno_class): Change return type to enum reg_class.
3770         (thumb1_expand_prologue): Use add_reg_note.
3771         * config/arm/arm-protos.h (arm_regno_class): Update declaration.
3772         * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
3773         in function call.
3774         * config/arm/gentune.sh: Add cast to enum type.
3775         * config/arm/arm-tune.md: Rebuild.
3776         * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
3777         (ix86_split_fp_branch, predict_jump): Likewise.
3778         (ix86_expand_multi_arg_builtin): Change sub_code from enum
3779         insn_code to enum rtx_code.
3780         (ix86_builtin_vectorized_function): Add cast to enum type.
3781         * config/i386/i386.md (truncdfsf2): Change slot to enum
3782         ix86_stack_slot.
3783         (truncxf<mode>2, isinf<mode>2): Likewise.
3784         * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
3785         enum type.
3786         * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
3787         (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
3788         (insert_bundle_state): Change 1 to INSERT in function call.
3789         (ia64_add_bundle_selector_before): Likewise.
3790         * config/ia64/ia64.md (cpu attr): Add cast to enum type.
3791         (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
3792         (restore_stack_nonlocal): Likewise.
3793         * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
3794         function call.
3795         * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
3796         function call.
3797         (mips_rtx_costs): Likewise.
3798         (mips_override_options): Add casts to enum type.
3799         * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
3800         in function call.
3801         * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
3802         (store_reg, set_reg_plus_d): Likewise.
3803         (hppa_expand_prologue, hppa_profile_hook): Likewise.
3804         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
3805         cast to enum type.
3806         (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
3807         function call.
3808         (emit_unlikely_jump): Use add_reg_note.
3809         (rs6000_emit_allocate_stack): Likewise.
3810         (rs6000_frame_related, rs6000_emit_prologue): Likewise.
3811         (output_toc): Change 1 to INSERT in function call.
3812         (output_profile_hook): Change 0 to LCT_NORMAL in function call.
3813         (rs6000_initialize_trampoline): Likewise.
3814         (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
3815         function call.
3816         * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
3817         (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
3818         (s390_expand_setmem, s390_expand_cmpmem): Likewise.
3819         (save_gprs): Use add_reg_note.
3820         (s390_emit_prologue): Likewise.
3821         (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
3822         * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
3823         (sparc_fold_builtin): Add cast to enum type.
3824         * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
3825         enum insn_code.
3826         (spu_expand_prologue): Use add_reg_note.
3827         (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
3828
3829 2009-04-20  Ian Lance Taylor  <iant@google.com>
3830
3831         * c-parser.c (c_parser_attributes): Change VEC back to tree list.
3832         (c_parser_postfix_expression_after_primary): Get VEC for list of
3833         arguments.  Get original types of arguments.  Call
3834         build_function_call_vec.
3835         (cached_expr_list_1, cached_expr_list_2): New static variables.
3836         (c_parser_expr_list): Change return type to VEC *.  Add
3837         p_orig_types parameter.  Change all callers.
3838         (c_parser_release_expr): New static function.
3839         (c_parser_vec_to_tree_list): New static function.
3840         * c-typeck.c (build_function_call): Rewrite to build a VEC and
3841         call build_function_call_vec.
3842         (build_function_call_vec): New function, based on old
3843         build_function_call.
3844         (convert_arguments): Remove nargs and argarray parameters.  Change
3845         values to a VEC.  Add origtypes parameter.
3846         (build_modify_expr): Add rhs_origtype parameter.  Change all callers.
3847         (convert_for_assignment): Add origtype parameter.  Change all
3848         callers.  If warn_cxx_compat, check for conversion to an enum
3849         type when calling a function.
3850         (store_init_value): Add origtype parameter.  Change all callers.
3851         (digest_init): Likewise.
3852         (struct init_node): Add origtype field.
3853         (add_pending_init): Add origtype parameter.  Change all callers.
3854         (output_init_element): Likewise.
3855         (output_pending_init_elements): Pass origtype from init_node to
3856         output_init_element.
3857         (process_init_element): Pass origtype from c_expr to
3858         output_init_element.
3859         (c_finish_return): Add origtype parameter.  Change all callers.
3860         * c-common.c (sync_resolve_size): Change params to VEC *.  Change
3861         caller.
3862         (sync_resolve_params): Likewise.
3863         (sync_resolve_return): Change params to first_param.  Change caller.
3864         (resolve_overloaded_builtins): Change params to VEC *.  Change
3865         callers.  Save first parameter around call to build_function_call_vec.
3866         * c-decl.c (finish_decl): Add origtype parameter.  Change all
3867         callers.  Call build_function_call_vec rather than
3868         build_function_call for cleanup.
3869         * c-tree.h: Update declarations.
3870         * c-common.h: Update declarations.
3871         * stub-objc.c (objc_rewrite_function_call): Change parameter from
3872         params to first_param.
3873         * target.h (struct gcc_target): Change resolve_overloaded_builtin
3874         params parameter from tree to void *.
3875         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3876         Change arglist parameter to have type void *, and to be a pointer
3877         to a VEC.
3878         * config/rs6000/rs6000-protos.h
3879         (altivec_resolve_overloaded_builtin): Update declaration.
3880         * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
3881         fnargs parameter to have type void *, and to be a pointer to a
3882         VEC.  Call build_function_call_vec instead of
3883         build_function_call.
3884         * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
3885
3886 2009-04-20  Joey Ye  <joey.ye@intel.com>
3887             Xuepeng Guo  <xuepeng.guo@intel.com>
3888             H.J. Lu  <hongjiu.lu@intel.com>
3889
3890         * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
3891
3892         * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
3893         (IX86_LEA_PRIORITY): Likewise.
3894         (distance_non_agu_define): New function.
3895         (distance_agu_use): Likewise.
3896         (ix86_lea_for_add_ok): Likewise.
3897         (ix86_dep_by_shift_count): Likewise.
3898
3899         * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
3900         should split for LEA.
3901
3902         * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
3903         function.
3904         (ix86_dep_by_shift_count): Likewise.
3905
3906 2009-04-20  Richard Guenther  <rguenther@suse.de>
3907
3908         * expr.c (handled_component_p): Move ...
3909         * tree.h (handled_component_p): ... here.
3910         * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
3911         ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
3912         and REALPART_EXPR to be in one group.
3913
3914 2009-04-20  Richard Guenther  <rguenther@suse.de>
3915
3916         * basic-block.h (get_all_dominated_blocks): Declare.
3917         * dominance.c (get_all_dominated_blocks): New function.
3918         * tree-cfg.c (get_all_dominated_blocks): Remove.
3919         (remove_edge_and_dominated_blocks): Adjust.
3920         * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
3921         (tree_ssa_phiprop): ... here.  Use get_all_dominated_blocks
3922         instead of recursing.
3923
3924 2009-04-20  Doug Kwan  <dougkwan@google.com>
3925
3926         * cgraph.h (cgraph_node_ptr): New type for vector functions.
3927         (struct cgraph_node_set_def): New type.
3928         (cgraph_node_set) New type. Also declare vector functions.
3929         (struct cgraph_node_set_element_def): New type.
3930         (cgraph_node_set_element): Ditto.
3931         (cgraph_node_set_iterator): New iterator type.
3932         (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
3933         cgraph_node_set_remove, dump_cgraph_node_set,
3934         debug_cgraph_node_set): New prototypes.
3935         (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
3936         cgraph_node_set_size): New inlines.
3937         * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
3938         including cgraph.h.
3939         (struct ipa_opt_pass): Add struct cgraph_node_set_def
3940         argument to function 'write_summary'.
3941         * ipa.c: Include ggc.h.
3942         (hash_cgraph_node_set_element,
3943         eq_cgraph_node_set_element, cgraph_node_set_new,
3944         cgraph_node_set_add, cgraph_node_set_remove,
3945         cgraph_node_set_find, dump_cgraph_node_set,
3946         debug_cgraph_node_set): New functions.
3947         * Makefile.in (ipa.o): Add dependency on GGC_H.
3948
3949 2009-04-20  Ira Rosen  <irar@il.ibm.com>
3950
3951         PR tree-optimization/39675
3952         * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
3953         check of the return code of vect_schedule_slp. Check that
3954         stmt_vec_info still exists for the statement, before checking its
3955         vectorization type.
3956
3957 2009-04-20  Michael Matz  <matz@suse.de>
3958
3959         * Makefile.in (generated_files): Take out $(simple_generated_c).
3960
3961 2009-04-19  Dave Korn  <dave.korn.cygwin@gmail.com>
3962
3963         * config/i386/cygwin-stdint.h (INTPTR_TYPE):  Remove "long".
3964         (UINTPTR_TYPE):  Likewise.
3965
3966 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
3967
3968         PR c/37481
3969         * c-typeck.c (digest_init): Check for initializing an array with a
3970         string literal.
3971
3972 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
3973
3974         PR c/19771
3975         * c-semantics.c (pop_stmt_list): Propagate
3976         STATEMENT_LIST_HAS_LABEL to parent statement list.
3977
3978 2009-04-19  Adam Nemet  <anemet@caviumnetworks.com>
3979
3980         * config/mips/mips.h (mips_tune_attr): New macro.
3981         * config/mips/mips.md (cpu): Use it.
3982
3983 2009-04-19  Joseph Myers  <joseph@codesourcery.com>
3984
3985         PR c/38243
3986         * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
3987         declaring a tag.
3988
3989 2009-04-19  Diego Novillo  <dnovillo@google.com>
3990
3991         * toplev.c (compile_file): Move call to coverage_finish ...
3992         * cgraphunit.c (ipa_passes): ... here.
3993         Call cgraph_process_new_functions.
3994         * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
3995         * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
3996
3997 2009-04-19  Jan Hubicka  <jh@suse.cz>
3998
3999         * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
4000         cfun.
4001         (dump_cgraph_node): Dump can throw external flag.
4002         * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
4003
4004 2009-04-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4005
4006         PR c/32061
4007         PR c++/36954
4008         * doc/invoke.texi: Add -Wlogical-op to -Wextra.
4009         * common.opt (Wlogical-op): Move from here...
4010         * c.opt (Wlogical-op): ... to here.
4011         * c-typeck.c (parser_build_binary_op): Update call to
4012         warn_logical_operator.
4013         * c-opts.c (c_common_post_options): Enable warn_logical_op with
4014         extra_warnings.
4015         * c-common.c (warn_logical_op): Update.
4016         * c-common.h (warn_logical_op): Update declaration.
4017
4018 2009-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4019
4020         * tree.c (protected_set_expr_location): Fix formatting.
4021
4022 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
4023
4024         PR c/27676
4025         * c-typeck.c (readonly_warning): new.
4026         (build_unary_op, build_modify_expr): Use readonly_warning for
4027         storing into something readonly but not const-qualified.
4028
4029 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
4030
4031         PR c/22367
4032         * c-typeck.c (build_unary_op): Check for taking address of
4033         expression of type void.
4034
4035 2009-04-18  Joseph Myers  <joseph@codesourcery.com>
4036
4037         PR c/35210
4038         * c-typeck.c (build_function_call): Check for calling a function
4039         with qualified void return types.  Call require_complete_type when
4040         generating a trap.
4041
4042 2009-04-18  Jan Hubicka  <jh@suse.cz>
4043
4044         * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
4045         Set nothrow flag.
4046         * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
4047         can_throw_external flag.
4048         * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
4049         * ipa-pure-const.c (ignore_edge): New function.
4050         (propagate): Compute order for NOTHROW computation; set NOTHROWs
4051         only over can_throw_external edges.
4052         (local_pure_const): Add nothrow flag.
4053         * ipa-utils.c (searchc): Add ignore_edge callback.
4054         (ipa_utils_reduced_inorder): Add ignore_edge callback.
4055         * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
4056         (set_nothrow_function_flags): Update cgraph.
4057         * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
4058
4059 2009-04-18  Richard Guenther  <rguenther@suse.de>
4060
4061         PR middle-end/39804
4062         * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
4063         (fold_stmt): ... this and ...
4064         (fold_stmt_inplace): ... this.
4065         (fold_stmt_1): Fold references in calls and asms.
4066         * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
4067
4068 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
4069
4070         * tree-vrp.c (ssa_name_nonzero_p): Remove.
4071         * tree.h: Remove the prototype for ssa_name_nonzero_p.
4072
4073 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
4074
4075         * tree.c (function_args_count): Remove.
4076         * tree.h: Remove the prototype for function_args_count.
4077
4078 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
4079
4080         * tree-iterator.c (expr_only): Remove.
4081         * tree.h: Remove the prototype for expr_only.
4082
4083 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
4084
4085         * reginfo.c (cannot_change_mode_set_regs): Remove.
4086         * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
4087
4088 2009-04-08  Anatoly Sokolov  <aesok@post.ru>
4089
4090         * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
4091         whether operands 0 and 1 overlaps.
4092
4093 2009-04-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4094
4095         PR middle-end/36902
4096         * tree-vrp.c (check_array_ref): Pass a location_t instead of a
4097         pointer. Use warning_at instead of warning.
4098         (search_for_addr_array): Likewise.
4099         (check_array_bounds): Likewise.
4100         (check_all_array_refs): Check that the incoming edge is not in the
4101         list of edges to be removed.
4102         (check_all_array_refs): Avoid the temporal pointer.
4103         (vrp_visit_cond_stmt): Fix typo.
4104         (simplify_switch_using_ranges): Handle the case where the switch
4105         index is an integer constant.
4106
4107 2009-04-18  Adam Nemet  <anemet@caviumnetworks.com>
4108
4109         * config/mips/mips.c (mips_final_postscan_insn): Make it static.
4110
4111 2009-04-18  Kazu Hirata  <kazu@codesourcery.com>
4112
4113         * doc/extend.texi, doc/invoke.texi: Fix typos.
4114
4115 2009-04-17  Cary Coutant  <ccoutant@google.com>
4116
4117         * tree-flow-inline.h (get_lineno): Fix inverted test.
4118
4119 2009-04-17  Diego Novillo  <dnovillo@google.com>
4120
4121         * tree-ssa-pre.c (create_expression_by_pieces): Remove
4122         assertion for AVAIL_OUT.
4123
4124 2009-04-17  Mike Frysinger  <vapier@gentoo.org>
4125
4126         PR target/38627
4127         * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
4128         * config/sh/linux-atomic.asm: Likewise.
4129
4130 2009-04-17  Diego Novillo  <dnovillo@google.com>
4131
4132         * except.c (debug_eh_tree): New.
4133         (struct eh_region, struct eh_status): Move ...
4134         * except.h: ... here.
4135         (add_type_for_runtime): Declare extern.
4136         (lookup_type_for_runtime): Likewise.
4137         (debug_eh_tree): Declare.
4138         * Makefile.in (GTFILES): List except.h before except.c
4139
4140 2009-04-17  Diego Novillo  <dnovillo@google.com>
4141
4142         * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
4143         * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
4144         * tree-dfa.c (find_referenced_vars_in): Factor out of ...
4145         (find_vars_r): ... here.
4146         * tree-flow.h (find_referenced_vars_in): Declare.
4147         * tree-ssa-pre.c (create_expression_by_pieces): Assert
4148         that AVAIL_OUT exists for BLOCK.
4149         * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
4150         (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
4151         (tree-parloops.o): Likewise.
4152
4153 2009-04-17  Simon Baldwin  <simonb@google.com>
4154
4155         * toplev.c (default_tree_printer): Add handling for %E format.
4156
4157 2009-04-17  Diego Novillo  <dnovillo@google.com>
4158
4159         * tree-pretty-print.c (dump_generic_node): Add break after
4160         TREE_BINFO handler.  Handle COMPLEX_TYPE, REAL_TYPE and
4161         FIXED_POINT_TYPE.  Handle NULL TREE_TYPEs.  Handle METHOD_TYPE and
4162         FUNCTION_TYPE together.  Call print_struct_decl when printing
4163         structures and TDF_SLIM is not given.
4164         (print_struct_decl): Fix logic for detecting recursion.
4165
4166 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
4167
4168         PR 31567
4169         * gcc.c (create_at_file): New.
4170         (compile_input_file_p): New.
4171         (do_spec_1): Use @args files for %i. Use create_at_file for %o.
4172         * main.c (main): Update call to toplev_main.
4173         * toplev.c (toplev_main): Change signature. Call expandargv.
4174         * toplev.h (toplev_main): Change signature.
4175
4176 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4177
4178         * dwarf2out.c (field_byte_offset): Use the type size as the field size
4179         if the latter is not constant.
4180
4181 2009-04-17  David Edelsohn  <edelsohn@gnu.org>
4182
4183         * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
4184
4185 2009-04-17  Eric Botcazou  <ebotcazou@adacore.com>
4186
4187         * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
4188         * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
4189
4190 2009-04-17  Richard Guenther  <rguenther@suse.de>
4191
4192         * tree-ssa-structalias.c (get_constraint_for_component_ref):
4193         Handle component references view-converting an invariant address.
4194
4195 2009-04-17  Adam Nemet  <anemet@caviumnetworks.com>
4196
4197         * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
4198         TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
4199         TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
4200         TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
4201         Use @deftypevr rather than @deftypevar.
4202
4203 2009-04-17  Richard Guenther  <rguenther@suse.de>
4204
4205         * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
4206         (get_prop_source_stmt): Likewise.
4207         (can_propagate_from): Likewise.
4208
4209 2009-04-17  Andrew Stubbs  <ams@codesourcery.com>
4210
4211         * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
4212         TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
4213         (--with-multilib-list): Add default value.
4214         * configure: Regenerate.
4215         * Makefile.in (TM_ENDIAN_CONFIG): Define.
4216         (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
4217         * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
4218         TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
4219         Don't add default cpu to multilib list unnecessarily, but do enable
4220         the relevant compiler option..
4221         Add support for --with-multilib-list=<blank> and
4222         --with-multilib-list=!<somelib> to supress unwanted multilibs.
4223         * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
4224         (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
4225         (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
4226         TM_MULTILIB_CONFIG.
4227         (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
4228         (MULTILIB_OSDIRNAMES): New variable.
4229         * config/sh/t-1e: Delete file.
4230         * config/sh/t-mlib-sh1: Delete file.
4231         * config/sh/t-mlib-sh2: Delete file.
4232         * config/sh/t-mlib-sh2a: Delete file.
4233         * config/sh/t-mlib-sh2a-nofpu: Delete file.
4234         * config/sh/t-mlib-sh2a-single: Delete file.
4235         * config/sh/t-mlib-sh2a-single-only: Delete file.
4236         * config/sh/t-mlib-sh2e: Delete file.
4237         * config/sh/t-mlib-sh3e: Delete file.
4238         * config/sh/t-mlib-sh4: Delete file.
4239         * config/sh/t-mlib-sh4-nofpu: Delete file.
4240         * config/sh/t-mlib-sh4-single: Delete file.
4241         * config/sh/t-mlib-sh4-single-only: Delete file.
4242         * config/sh/t-mlib-sh4a: Delete file.
4243         * config/sh/t-mlib-sh4a-nofpu: Delete file.
4244         * config/sh/t-mlib-sh4a-single: Delete file.
4245         * config/sh/t-mlib-sh4a-single-only: Delete file.
4246         * config/sh/t-mlib-sh4al: Delete file.
4247         * config/sh/t-mlib-sh5-32media: Delete file.
4248         * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
4249         * config/sh/t-mlib-sh5-64media: Delete file.
4250         * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
4251         * config/sh/t-mlib-sh5-compact: Delete file.
4252         * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
4253         * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
4254         * doc/install.texi (Options specification): Add
4255         --with-multilib-list and --with-endian.
4256
4257 2009-04-17  Rafael Avila de Espindola  <espindola@google.com>
4258
4259         * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
4260         REVISION_c.
4261         (OBJS-common): Add plugin-version.o.
4262         (plugin-version.o): New.
4263         * gcc-plugin.h (plugin_gcc_version): New.
4264         (plugin_default_version_check): New.
4265         (plugin_init_func, plugin_init): Add version argument.
4266         * plugin-version.c: New.
4267         * plugin.c (str_plugin_gcc_version_name): New.
4268         (try_init_one_plugin): Read plugin_gcc_version from the plugin and
4269         pass it to the init function.
4270         (plugin_default_version_check): New.
4271
4272 2009-04-17  Richard Guenther  <rguenther@suse.de>
4273
4274         * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
4275         for decl-vs-decl disambiguation.
4276
4277 2009-04-17  Andreas Krebbel  <krebbel1@de.ibm.com>
4278
4279         * config/s390/s390.h (s390_tune_attr): New macro definition.
4280         * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
4281
4282 2009-04-17  Richard Guenther  <rguenther@suse.de>
4283
4284         * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
4285         (fold_stmt_r): Likewise.
4286         (maybe_fold_reference): New function.
4287         (fold_gimple_assign): Handle cases fold_stmt_r did.
4288         (fold_stmt): Do not use fold_stmt_r.
4289         (fold_stmt_inplace): Likewise.
4290
4291 2009-04-17  Richard Guenther  <rguenther@suse.de>
4292
4293         * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
4294         (record_equivalences_from_stmt): Remove useless checks and
4295         simplifications.
4296         * tree-ssa-pre.c (eliminate): Avoid converting a constant if
4297         the type is already suitable.
4298
4299 2009-04-17  Paolo Bonzini  <bonzini@gnu.org>
4300
4301         * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
4302
4303 2009-04-17  Uros Bizjak  <ubizjak@gmail.com>
4304
4305         * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
4306         (CMPtype): Define as __gcc_CMPtype.
4307
4308 2009-04-17  Aurelien Jarno  <aurelien@aurel32.net>
4309
4310         * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
4311         for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
4312
4313 2009-04-17  Richard Guenther  <rguenther@suse.de>
4314
4315         PR tree-optimization/39746
4316         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
4317         special-casing for builtins and static variable use/def.
4318         (call_may_clobber_ref_p_1): Likewise.
4319
4320 2009-04-16  Ian Lance Taylor  <iant@google.com>
4321
4322         * df.h: Include "timevar.h".
4323         (struct df_problem): Change tv_id field to timevar_id_t.
4324         * tree-pass.h: Include "timevar.h".
4325         (struct opt_pass): Change tv_id field to timevar_id_t.
4326         * timevar.h (timevar_id_t): Define TV_NONE.
4327         * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
4328         TV_NONE rather than tv_id != 0.
4329         (execute_one_pass): Likewise.
4330         * Makefile.in (DF_H): Add $(TIMEVAR_H).
4331         (TREE_PASS_H): Define.  Change all instances of tree-pass.h in
4332         dependencies to $(TREE_PASS_H).
4333         * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
4334         to TV_NONE.
4335         (pass_branch_target_load_optimize2): Likewise.
4336         * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
4337         (pass_outof_cfg_layout_mode): Likewise.
4338         * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
4339         (pass_rebuild_cgraph_edges): Likewise.
4340         (pass_remove_cgraph_callee_edges): Likewise.
4341         * df-core.c (pass_df_initialize_opt): Likewise.
4342         (pass_df_initialize_no_opt): Likewise.
4343         (pass_df_finish): Likewise.
4344         * emit-rtl.c (pass_unshare_all_rtl): Likewise.
4345         * except.c (pass_set_nothrow_function_flags): Likewise.
4346         (pass_convert_to_eh_region_ranges): Likewise.
4347         * final.c (pass_compute_alignments): Likewise.
4348         * function.c (pass_instantiate_virtual_regs): Likewise.
4349         (pass_init_function): Likewise.
4350         (pass_leaf_regs): Likewise.
4351         (pass_match_asm_constraints): Likewise.
4352         * gimple-low.c (pass_lower_cf): Likewise.
4353         (pass_mark_used_blocks): Likewise.
4354         * init-regs.c (pass_initialize_regs): Likewise.
4355         * integrate.c (pass_initial_value_sets): Likewise.
4356         * ira.c (pass_ira): Likewise.
4357         * jump.c (pass_cleanup_barriers): Likewise.
4358         * omp-low.c (pass_expand_omp): Likewise.
4359         (pass_lower_omp): Likewise.
4360         * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
4361         * recog.c (pass_split_all_insns): Likewise.
4362         (pass_split_after_reload): Likewise.
4363         (pass_split_before_regstack): Likewise.
4364         (pass_split_before_sched2): Likewise.
4365         (pass_split_for_shorten_branches): Likewise.
4366         * reginfo.c (pass_reginfo_init): Likewise.
4367         (pass_subregs_of_mode_init): Likewise.
4368         (pass_subregs_of_mode_finish): Likewise.
4369         * passes.c (pass_postreload): Likewise.
4370         * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
4371         * tree-cfg.c (pass_remove_useless_stmts): Likewise.
4372         (pass_warn_function_return): Likewise.
4373         (pass_warn_function_noreturn): Likewise.
4374         * tree-complex.c (pass_lower_complex): Likewise.
4375         (pass_lower_complex_O0): Likewise.
4376         * tree-if-conv.c (pass_if_conversion): Likewise.
4377         * tree-into-ssa.c (pass_build_ssa): Likewise.
4378         * tree-mudflap.c (pass_mudflap_1): Likewise.
4379         (pass_mudflap_2): Likewise.
4380         * tree-nomudflap.c (pass_mudflap_1): Likewise.
4381         (pass_mudflap_2): Likewise.
4382         * tree-nrv.c (pass_return_slot): Likewise.
4383         * tree-object-size.c (pass_object_sizes): Likewise.
4384         * tree-optimize.c (pass_all_optimizations): Likewise.
4385         (pass_early_local_passes): Likewise.
4386         (pass_all_early_optimizations): Likewise.
4387         (pass_cleanup_cfg): Likewise.
4388         (pass_cleanup_cfg_post_optimizing): Likewise.
4389         (pass_free_datastructures): Likewise.
4390         (pass_free_cfg_annotations): Likewise.
4391         (pass_fixup_cfg): Likewise.
4392         (pass_init_datastructures): Likewise.
4393         * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
4394         (pass_late_warn_uninitialized): Likewise.
4395         (pass_update_address_taken): Likewise.
4396         * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
4397         * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
4398         (pass_cse_sincos): Likewise.
4399         (pass_convert_to_rsqrt): Likewise.
4400         * tree-ssa-structalias.c (pass_build_alias): Likewise.
4401         * tree-stdarg.c (pass_stdarg): Likewise.
4402         * tree-tailcall.c (pass_tail_recursion): Likewise.
4403         (pass_tail_calls): Likewise.
4404         * tree-vect-generic.c (pass_lower_vector): Likewise.
4405         (pass_lower_vector_ssa): Likewise.
4406         * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
4407
4408 2009-04-16  Joseph Myers  <joseph@codesourcery.com>
4409
4410         * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
4411         XLR entry.
4412         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
4413         Handle -march=xlr.
4414         * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
4415         logical and signext.
4416
4417 2009-04-16  Kaz Kojima  <kkojima@gcc.gnu.org>
4418
4419         PR target/39767
4420         * config/sh/predicates.md (arith_operand): Check if the operand
4421         of TRUNCATE is a REG.
4422
4423 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
4424
4425         * cfgrtl.c (delete_insn_chain_and_edges): Remove.
4426         * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
4427
4428 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
4429
4430         * tree-iterator.c (tsi_split_statement_list_after,
4431         tsi_split_statement_list_before): Remove.
4432         * tree-iterator.h: Remove the prototypes for
4433         tsi_split_statement_list_after and tsi_split_statement_list_before.
4434
4435 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
4436
4437         * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
4438         * tree-ssa-propagate.h: Remove the prototype for
4439         stmt_makes_single_load.
4440
4441 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
4442
4443         * emit-rtl.c (set_mem_attrs_from_reg): Remove.
4444         * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
4445
4446 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
4447
4448         * tree-iterator.c (EXPR_LAST_BODY): Remove.
4449
4450 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
4451
4452         * except.c (eh_region_outer_p): Remove.
4453         * except.h: Remove the prototype for eh_region_outer_p.
4454
4455 2009-04-16  Kazu Hirata  <kazu@codesourcery.com>
4456
4457         * function.c (current_function_assembler_name): Remove.
4458         * function.h: Remove the prototype for
4459         current_function_assembler_name.
4460
4461 2009-04-16  Ian Lance Taylor  <iant@google.com>
4462
4463         * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
4464         (add_reg_note): Call alloc_reg_note.
4465         * rtl.h (alloc_reg_note): Declare.
4466         * combine.c (try_combine): Use alloc_reg_note.
4467         (recog_for_combine, move_deaths): Likewise.
4468         (distribute_notes): Use alloc_reg_note and add_reg_note.
4469         * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
4470         * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
4471         * reload1.c (eliminate_regs_1): Use alloc_reg_note.
4472
4473 2009-04-16  Vladimir Makarov  <vmakarov@redhat.com>
4474
4475         PR rtl-optimization/39762
4476         * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
4477         ira_may_move_out_cost): Add comments about way of their usage.
4478         (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
4479
4480         * ira-conflicts.c (process_regs_for_copy): Use function
4481         ira_get_register_move_cost instead of global
4482         ira_register_move_cost.
4483
4484         * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
4485         color_pass, move_spill_restore, update_curr_costs): Ditto.
4486
4487         * ira-lives.c (process_single_reg_class_operands): Ditto.
4488
4489         * ira-emit.c (emit_move_list): Ditto.
4490
4491         * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
4492         (record_reg_classes): Ditto.  Use functions
4493         ira_get_register_move_cost and ira_get_may_move_cost instead of
4494         global vars ira_register_move_cost, ira_may_move_out_cost and
4495         ira_may_move_in_cost.
4496         (record_address_regs): Don't call ira_init_register_move_cost.
4497         Use function ira_get_may_move_cost instead of global
4498         ira_may_move_in_cost.
4499         (process_bb_node_for_hard_reg_moves): Use function
4500         ira_get_register_move_cost instead of global ira_register_move_cost.
4501         (ira_costs): Don't call ira_init_register_move_cost.
4502
4503 2009-04-16  Richard Guenther  <rguenther@suse.de>
4504
4505         * tree-cfg.c (verify_gimple_assign_binary):
4506         Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
4507         * ipa-struct-reorg.c (gen_size): Fold the built expressions.
4508         (create_general_new_stmt): Note that this function is broken.
4509
4510 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
4511
4512         * common.opt (fhelp): Add Var(help_flag).
4513         * gcc-plugin.h (plugin_info): Add help.
4514         * plugin.c (plugin_name_args): Add help.
4515         (register_plugin_info): Set plugin->help.
4516         (print_help_one_plugin): New.
4517         (print_plugins_help): New.
4518         * plugin.h (print_plugins_help): New.
4519         * toplev.c (toplev_main): Call print_plugins_help if needed.
4520
4521 2009-04-16  Richard Guenther  <rguenther@suse.de>
4522
4523         * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
4524         (gimple_ior_addresses_taken_1): New function.
4525         (gimple_ior_addresses_taken): Likewise.
4526         * gimple.h (struct gimple_statement_with_ops_base): Remove
4527         addresses_taken member.
4528         (gimple_ior_addresses_taken): Declare.
4529         (gimple_addresses_taken, gimple_addresses_taken_ptr,
4530         gimple_set_addresses_taken): Remove.
4531         * ipa-reference.c (mark_address): New function.
4532         (scan_stmt_for_static_refs): Use it for marking addresses taken.
4533         * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
4534         (mark_address_taken): ... this.  Just set TREE_ADDRESSABLE.
4535         (gimple_add_to_addresses_taken): Remove.
4536         (get_tmr_operands): Call mark_address_taken.
4537         (get_asm_expr_operands): Likewise.
4538         (get_expr_operands): Likewise.
4539         (build_ssa_operands): Do not clear the addresses_taken bitmap.
4540         (free_stmt_operands): Do not free it.
4541         * tree-ssa.c (delete_tree_ssa): Likewise.
4542         (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
4543
4544 2009-04-16  Richard Guenther  <rguenther@suse.de>
4545
4546         * gimple.h (walk_stmt_load_store_addr_ops): Declare.
4547         (walk_stmt_load_store_ops): Likewise.
4548         * gimple.c (get_base_loadstore): New function.
4549         (walk_stmt_load_store_addr_ops): Likewise.
4550         (walk_stmt_load_store_ops): Likewise.
4551         * ipa-pure-const.c (check_op): Simplify.
4552         (check_load, check_store): New functions.
4553         (check_stmt): Use walk_stmt_load_store_ops.
4554         * ipa-reference.c (mark_load): Adjust signature.
4555         (mark_store): Likewise.
4556         (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
4557
4558 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
4559
4560         * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
4561         (plugin_info): New.
4562         * opts.c (common_handle_option): Don't call print_version.
4563         * plugin.c (plugin_name_args): Add version.
4564         (register_plugin_info): New.
4565         (register_callback): Handle PLUGIN_INFO.
4566         (try_init_one_plugin): New.
4567         (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
4568         if failed to init.
4569         (finalize_one_plugin): New.
4570         (finalize_plugins): New.
4571         (print_one_plugin): New.
4572         (print_plugins_versions): New.
4573         * plugin.h (print_plugins_versions): New.
4574         (finalize_plugins): New.
4575         * toplev.c (compile_file): Don't call initialize_plugins.
4576         (print_version): Call print_plugins_versions.
4577         (toplev_main): Call initialize_plugins. Print version if needed.
4578         Call finalize_plugins.
4579
4580 2009-04-16  Rafael Avila de Espindola  <espindola@google.com>
4581
4582         * common.opt (fversion): New.
4583         * gcc.c (print_version): New.
4584         (process_command): Don't print the version. Just set print_version.
4585         (main): Print version. Call subprocesses if print_version and
4586         verbose_flag are set.
4587         * opts.c (common_handle_option): Handle OPT_fversion.
4588
4589 2009-04-16  Richard Guenther  <rguenther@suse.de>
4590             Ira Rosen  <irar@il.ibm.com>
4591
4592         PR tree-optimization/39698
4593         * tree-vect-loop.c (get_initial_def_for_reduction): Use the
4594         type of the reduction variable.  Only generate the def if
4595         it is needed.
4596
4597         * omp-low.c (expand_omp_for_generic): When converting to a pointer
4598         make sure to first convert to an integer of the same precision.
4599         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
4600         the type of the evolution correctly in computing the new
4601         induction variable base.
4602
4603 2009-04-16  Richard Guenther  <rguenther@suse.de>
4604
4605         PR middle-end/39625
4606         * tree-cfg.c (make_blocks): Split statements with to-be
4607         abnormal SSA names on the lhs.
4608
4609 2009-04-16  Paolo Bonzini  <bonzini@gnu.org>
4610
4611         * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
4612         Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
4613         * c-typeck.c (really_start_incremental_init): Likewise.
4614         * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
4615         (TARGET_INITIALIZER): Remove it.
4616         * target.h (struct target): Remove vector_opaque_p.
4617         * tree.c (build_opaque_vector_type): New.
4618         * tree.h (TYPE_VECTOR_OPAQUE): New.
4619         (build_opaque_vector_type): Declare.
4620         * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
4621         * config/rs6000/rs6000.c (build_opaque_vector_type,
4622         rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
4623         (rs6000_init_builtins): Use build_opaque_vector_type for
4624         opaque_V4SI_type_node.
4625
4626 2009-04-15  Catherine Moore  <clm@codesourcery.com>
4627
4628         * debug.h (set_name):  Declare.
4629         * dwarf2out.c (dwarf2out_set_name): Declare.
4630         (dwarf2_debug_hooks): Add set_name.
4631         (find_AT_string): New.
4632         (add_AT_string): Call find_AT_string.
4633         (dwarf2out_set_name): New.
4634         * cp/decl.c (grokdeclarator): Call set_name.
4635         * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
4636         * debug.c (do_nothing_debug_hooks):  Likewise.
4637         * dbxout.c (dbx_debug_hooks): Likewise.
4638         * sdbout.c (sdb_debug_hooks): Likewise.
4639
4640 2009-04-15  Michael Eager  <eager@eagercon.com>
4641
4642         * config/rs6000/rs6000.c (rs6000_function_value): Set function return
4643         reg for single-precision FPU.
4644         * config/rs6000/rs6000.md (movsi_internal1): Only for
4645         !TARGET_SINGLE_FPU.
4646         (movsi_internal1_single): New. Add pattern to move SI values to/from
4647         single-precision FP regs.
4648
4649 2009-04-15  Richard Guenther  <rguenther@suse.de>
4650
4651         * omp-low.c (lower_rec_input_clauses): Build correct address
4652         expressions.
4653         (expand_omp_for_generic): Fix multiplication type.
4654         * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
4655         (generate_memset_zero): Fix types.
4656         * tree-profile.c (prepare_instrumented_value): Correctly
4657         widen a pointer.
4658
4659 2009-04-15  Ian Lance Taylor  <iant@google.com>
4660
4661         * c.opt (Wenum-compare): Enable for C and Objc.  Initialize to -1.
4662         * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
4663         for -Wall and for -Wc++-compat.
4664         (c_common_post_options): For C++, set warn_enum_compare if not
4665         already set.
4666         * c-tree.h (struct c_expr): Add field original_type.
4667         (build_external_ref): Update declaration.
4668         * c-parser.c (c_parser_braced_init): Set original_type.
4669         (c_parser_initelt): Likewise.
4670         (c_parser_expr_no_commas): Likewise.
4671         (c_parser_conditional_expression): Likewise.
4672         (c_parser_cast_expression): Likewise.
4673         (c_parser_unary_expression): Likewise.  Pull setting of
4674         original_code to top of function.
4675         (c_parser_sizeof_expression): Set original_type.
4676         (c_parser_alignof_expression): Likewise.
4677         (c_parser_postfix_expression): Likewise.  Pull setting of
4678         original_code to top of function.
4679         (c_parser_postfix_expression_after_paren_type): Set original_type.
4680         (c_parser_postfix_expression_after_primary): Likewise.
4681         (c_parser_expression): Likewise.
4682         * c-typeck.c (build_external_ref): Add type parameter.  Change all
4683         callers.
4684         (c_expr_sizeof_expr): Set original_type field.
4685         (parser_build_unary_op): Likewise.
4686         (parser_build_binary_op): Likewise.  Optionally warn about
4687         comparisons of enums of different types.
4688         (digest_init): Set original_type field.
4689         (really_start_incremental_init): Likewise.
4690         (push_init_level, pop_init_level): Likewise.
4691         * doc/invoke.texi (Warning Options): -Wenum-compare now
4692         supported in C.
4693
4694 2009-04-15  Richard Guenther  <rguenther@suse.de>
4695
4696         * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
4697         out a necessary conversion.
4698         * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
4699         names we didn't value number.
4700         * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
4701
4702 2009-04-15  Richard Guenther  <rguenther@suse.de>
4703
4704         PR tree-optimization/39764
4705         * tree-ssa-ccp.c (get_value): Canonicalize value with
4706         canonicalize_float_value.
4707
4708 2009-04-15  Jan Hubicka  <jh@suse.cz>
4709
4710         * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
4711         Wrong version of patch.
4712
4713 2009-04-15  Jan Hubicka  <jh@suse.cz>
4714
4715         * builtins.def (va_start, va_end, va_copy): Mark nothrow.
4716
4717 2009-04-15  Nathan Sidwell  <nathan@codesourcery.com>
4718
4719         * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
4720         our distinct integral and vector types.
4721
4722 2009-04-15  Rafael Avila de Espindola  <espindola@google.com>
4723
4724         * class.c (build_vtbl_ref_1): Remove call to assemble_external.
4725         * init.c (build_vtbl_address): Remove call to assemble_external.
4726
4727 2009-04-14  Daniel Jacobowitz  <dan@codesourcery.com>
4728
4729         * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
4730         output for other floating point modes.
4731
4732 2009-04-14  Diego Novillo  <dnovillo@google.com>
4733
4734         * diagnostic.c (diagnostic_report_diagnostic): Do not
4735         warn about loaded plugins for DK_ERROR and DK_WARNING.
4736         * c-decl.c (declspecs_add_type): Move call to
4737         invoke_plugin_callbacks ...
4738         * c-parser.c (c_parser_declspecs): ... here.
4739         * plugin.c (dump_active_plugins): Tidy output.
4740
4741 2009-04-14  Diego Novillo  <dnovillo@google.com>
4742             Le-Chun Wu  <lcwu@google.com>
4743
4744         * configure.ac: Add --enable-plugin support.
4745         Define ENABLE_PLUGIN and PLUGINLIBS when specified.
4746         * Makefile.in (PLUGIN_H): Define.
4747         Export ENABLE_PLUGIN and GMPINC to site.exp.
4748         Add PLUGINLIBS to link command.
4749         Add/modify dependencies for plugin.o and files including plugin.h.
4750         (plugin.o): New.
4751         * config.in: Regenerate.
4752
4753         * opts.c (common_handle_option): Handle OPT_fplugin_ and
4754         OPT_fplugin_arg_.
4755
4756 2009-04-14  Le-Chun Wu  <lcwu@google.com>
4757
4758         * tree-pass.h (register_one_dump_file): Add a prototype for
4759         register_one_dump_file.
4760         * toplev.c (compile_file): Call initialize_plugins.
4761         (do_compile): Call invoke_plugin_callbacks.
4762         (toplev_main): Call invoke_plugin_callbacks.
4763         * common.opt: Add -fplugin= and -fplugin-arg-.
4764         * gcc-plugin.h: New public header file for plugins to include.
4765         * plugin.c: New source file.
4766         * plugin.h: New internal header file.
4767         * passes.c (register_one_dump_file): Make it external.
4768
4769         * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
4770
4771 2009-04-14  Diego Novillo  <dnovillo@google.com>
4772
4773         * doc/plugins.texi: New.
4774         * doc/gccint.texi: Add reference to Plugins chapter.
4775         * doc/invoke.texi: Document -fplugin and -fplugin-arg
4776         * diagnostic.c (diagnostic_report_diagnostic): Warn about
4777         loaded plugins, if any.
4778         * timevar.def (TV_PLUGIN_INIT): Define.
4779         (TV_PLUGIN_RUN): Define.
4780         * plugin.c: Include timevar.h
4781         (plugins_active_p): New.
4782         (dump_active_plugins): New.
4783         (debug_active_plugins): New.
4784
4785 2009-04-14  Joseph Myers  <joseph@codesourcery.com>
4786
4787         * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
4788         library paths.
4789         * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
4790
4791 2009-04-14  Kazu Hirata  <kazu@codesourcery.com>
4792
4793         * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
4794         the same as a minus without a shift.
4795
4796 2009-04-14  Nick Clifton  <nickc@redhat.com>
4797
4798         * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
4799         comparisons with small integers will always produce a short
4800         branch.
4801
4802 2009-04-14  Rafael Avila de Espindola  <espindola@google.com>
4803
4804         Merge:
4805         2008-12-19  Diego Novillo  <dnovillo@google.com>
4806
4807         * cgraph.c (dump_cgraph_node): Show memory address of NODE.
4808
4809 2009-04-14  Richard Guenther  <rguenther@suse.de>
4810
4811         * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
4812         verification.
4813         (verify_gimple_assign_binary): Likewise.  Handle shifts and
4814         rotates correctly.
4815         (verify_gimple_phi): Print the mismatched argument position.
4816         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
4817         Fix types.
4818         (vect_update_init_of_dr): Likewise.
4819         * matrix-reorg.c (transform_access_sites): Do what the
4820         comment suggests.
4821         * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
4822
4823 2009-04-13  Michael Eager  <eager@eagercon.com>
4824
4825         * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
4826         _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
4827         * config/rs6000/xilinx.h: New.  Spec for powerpc-xilinx-eabi
4828         * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
4829         remove duplicate config
4830
4831 2009-04-13  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4832
4833         * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
4834         file_name:line_number type locator of the call site.
4835
4836 2009-04-13  Vladimir Makarov  <vmakarov@redhat.com>
4837
4838         * genautomata.c: Put blank after comma.
4839         (automaton_decls): New.
4840         (struct unit_usage): Add comments to member next.
4841         (store_alt_unit_usage): Keep the list ordered.
4842         (unit_present_on_list_p, equal_alternatives_p): New.
4843         (check_regexp_units_distribution): Check units distribution
4844         correctness correctly.
4845         (main): Don't write automata if error is found.  Return correct
4846         exit code.
4847
4848         * config/m68k/cf.md (cfv4_ds): Remove.
4849         (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
4850         cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
4851
4852         * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
4853         power4-load-ext, power4-store, power4-store-update,
4854         power4-fpstore, power4-fpstore-update, power4-two, power4-three,
4855         power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
4856         power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
4857         power4-sqrt, power4-isync): Modify reservation to make correct
4858         unit distribution to automata.
4859
4860         * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
4861         power5-store-update, power5-two, power5-three, power5-lmul,
4862         power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
4863
4864 2009-04-13  Adam Nemet  <anemet@caviumnetworks.com>
4865
4866         * except.c (pass_set_nothrow_function_flags): Set name and add
4867         TODO_dump_func.
4868         (set_nothrow_function_flags): Mention in the dump file when
4869         changing a function to nothrow.
4870
4871 2009-04-13  Ozkan Sezer  <sezeroz@gmail.com>
4872
4873         PR/39066
4874         * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
4875         instead of unsigned long.
4876
4877 2009-04-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4878
4879         * config/arm/arm.c (return_used_this_function): Remove.
4880         (arm_output_function_prologue): Remove use of
4881         return_used_this_function.
4882         (output_return_instruction): Replace use of
4883         return_used_this_function
4884         by cfun->machine->return_used_this_function.
4885         (arm_output_epilogue): Likewise.
4886         (arm_output_function_epilogue): Likewise.
4887         (thumb_unexpanded_epilogue): Likewise.
4888         * config/arm/arm.h (struct machine_function):
4889         New member return_used_this_function.
4890
4891 2009-04-12  Mark Mitchell  <mark@codesourcery.com>
4892
4893         * doc/install.texi: Correct description of default directory for
4894         --with-gxx-include-dir.
4895
4896 2009-04-12  Eric Botcazou  <ebotcazou@adacore.com>
4897
4898         * fold-const.c (build_range_check): Properly deal with enumeral and
4899         boolean base types.
4900
4901 2009-04-12  Steven Bosscher  <steven@gcc.gnu.org>
4902
4903         * doc/invoke.texi (max_gcse_passes): Remove documentation.
4904         * params.def (PARAM_MAX_GCSE_PASSES): Remove.
4905         * params.h (MAX_GCSE_PASSES): Remove.
4906         * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
4907         in sequence.  Remove ability to run multiple passes.
4908         (bypass_jumps): Report run as third CPROP pass.
4909
4910 2009-04-12  Adam Nemet  <anemet@caviumnetworks.com>
4911
4912         PR middle-end/39651
4913         * except.c (can_throw_external): Look at each insn in a SEQUENCE
4914         when deciding whether the whole SEQUENCE can throw.
4915
4916 2009-04-12  Uros Bizjak  <ubizjak@gmail.com>
4917
4918         PR target/39740
4919         * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
4920         offseted label references.
4921
4922 2009-04-11  Jan Hubicka  <jh@suse.cz>
4923
4924         * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
4925
4926 2009-04-11  Richard Guenther  <rguenther@suse.de>
4927
4928         PR middle-end/39732
4929         * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
4930         return variables as TREE_ADDRESSABLE.
4931
4932 2009-04-11  Richard Guenther  <rguenther@suse.de>
4933
4934         PR tree-optimization/39713
4935         * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
4936         reference trees have SSA_NAME operands.
4937
4938 2009-04-11  Richard Guenther  <rguenther@suse.de>
4939
4940         PR c/39712
4941         * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
4942         address expressions.
4943
4944 2009-04-11  Dave Korn  <dave.korn.cygwin@gmail.com>
4945
4946         * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE):  Update to
4947         match changes in Cygwin 1.7
4948         (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
4949         UINT_FAST16_TYPE, UINT_FAST32_TYPE):  Likewise.
4950
4951 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
4952
4953         PR tree-optimization/39701
4954         * doc/invoke.texi (Optimization Options): Document change in
4955         meaning and initialization of -fdelete-null-pointer-checks.
4956
4957 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
4958
4959         PR middle-end/39701
4960         * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
4961
4962         * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
4963         here.
4964
4965         * doc/invoke.texi: Update -fdelete-null-pointer-checks.
4966
4967 2009-04-10  Chao-ying Fu  <fu@mips.com>
4968
4969         * doc/tm.texi (Instruction Output): Document
4970         TARGET_ASM_FINAL_POSTSCAN_INSN.
4971         * target.h (final_postscan_insn): New field in asm_out.
4972         * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
4973         (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
4974         * final.c (final_scan_insn): Call
4975         targetm.asm_out.final_postscan_insn after outputting
4976         an asm macro and a normal instruction.
4977
4978         * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
4979         * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
4980         * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
4981         (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
4982         (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
4983
4984 2009-04-10  Paolo Bonzini  <bonzini@gnu.org>
4985
4986         PR middle-end/39701
4987         * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
4988         variables as non-NULL even with -fdelete-null-pointer-checks.
4989
4990 2009-04-10  H.J. Lu  <hongjiu.lu@intel.com>
4991
4992         * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
4993
4994 2009-04-09  H.J. Lu  <hongjiu.lu@intel.com>
4995
4996         PR target/39678
4997         * config/i386/i386.c (classify_argument): Handle SCmode with
4998         (bit_offset % 64) != 0.
4999
5000 2009-04-09  Sandra Loosemore  <sandra@codesourcery.com>
5001
5002         * doc/invoke.texi (Optimize Options): Add cross-reference to
5003         -Q --help=optimizers examples.
5004
5005 2009-04-10  Ben Elliston  <bje@au.ibm.com>
5006
5007         PR target/36800
5008         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
5009         regalign for the reg == fpr and TDmode case.
5010
5011 2009-04-09  David Ayers  <ayers@fsfe.org>
5012
5013         PR objc/29200
5014         * objc/objc-act.c (warn_with_method): Remove helper function.
5015         (check_duplicates): Call warning and inform directly.
5016         (really_start_method): Likewise.
5017
5018 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
5019
5020         * expmed.c (expand_divmod): Always use a comparison for a division
5021         by a large unsigned integer.
5022
5023         * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
5024         for things others than variables or functions as nonzero.
5025
5026 2009-04-09  Nick Clifton  <nickc@redhat.com>
5027
5028         * unwind-compat.c: Change copyright header to refer to version
5029         3 of the GNU General Public License with version 3.1 of the
5030         GCC Runtime Library Exception and to point readers at the
5031         COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
5032         * config/alpha/crtfastmath.c: Likewise.
5033         * config/alpha/linux-unwind.h: Likewise.
5034         * config/alpha/qrnnd.asm: Likewise.
5035         * config/alpha/vms-crt0-64.c: Likewise.
5036         * config/alpha/vms-crt0.c: Likewise.
5037         * config/alpha/vms-dwarf2.asm: Likewise.
5038         * config/alpha/vms-dwarf2eh.asm: Likewise.
5039         * config/alpha/vms-psxcrt0-64.c: Likewise.
5040         * config/alpha/vms-psxcrt0.c: Likewise.
5041         * config/alpha/vms_tramp.asm: Likewise.
5042         * config/arc/initfini.c: Likewise.
5043         * config/arc/lib1funcs.asm: Likewise.
5044         * config/arm/bpabi-v6m.S: Likewise.
5045         * config/arm/bpabi.S: Likewise.
5046         * config/arm/bpabi.c: Likewise.
5047         * config/arm/crti.asm: Likewise.
5048         * config/arm/crtn.asm: Likewise.
5049         * config/arm/ieee754-df.S: Likewise.
5050         * config/arm/ieee754-sf.S: Likewise.
5051         * config/arm/lib1funcs.asm: Likewise.
5052         * config/arm/libunwind.S: Likewise.
5053         * config/arm/linux-atomic.c: Likewise.
5054         * config/arm/mmintrin.h: Likewise.
5055         * config/arm/pr-support.c: Likewise.
5056         * config/arm/unaligned-funcs.c: Likewise.
5057         * config/arm/unwind-arm.c: Likewise.
5058         * config/arm/unwind-arm.h: Likewise.
5059         * config/avr/libgcc.S: Likewise.
5060         * config/bfin/crti.s: Likewise.
5061         * config/bfin/crtlibid.s: Likewise.
5062         * config/bfin/crtn.s: Likewise.
5063         * config/bfin/lib1funcs.asm: Likewise.
5064         * config/bfin/linux-unwind.h: Likewise.
5065         * config/cris/arit.c: Likewise.
5066         * config/cris/cris_abi_symbol.c: Likewise.
5067         * config/darwin-64.c: Likewise.
5068         * config/darwin-crt2.c: Likewise.
5069         * config/darwin-crt3.c: Likewise.
5070         * config/darwin.h: Likewise.
5071         * config/dbxelf.h: Likewise.
5072         * config/dfp-bit.c: Likewise.
5073         * config/dfp-bit.h: Likewise.
5074         * config/elfos.h: Likewise.
5075         * config/fixed-bit.c: Likewise.
5076         * config/fixed-bit.h: Likewise.
5077         * config/fp-bit.c: Likewise.
5078         * config/fp-bit.h: Likewise.
5079         * config/fr30/crti.asm: Likewise.
5080         * config/fr30/crtn.asm: Likewise.
5081         * config/fr30/lib1funcs.asm: Likewise.
5082         * config/freebsd-spec.h: Likewise.
5083         * config/frv/cmovd.c: Likewise.
5084         * config/frv/cmovh.c: Likewise.
5085         * config/frv/cmovw.c: Likewise.
5086         * config/frv/frvbegin.c: Likewise.
5087         * config/frv/frvend.c: Likewise.
5088         * config/frv/lib1funcs.asm: Likewise.
5089         * config/glibc-stdint.h: Likewise.
5090         * config/h8300/clzhi2.c: Likewise.
5091         * config/h8300/crti.asm: Likewise.
5092         * config/h8300/crtn.asm: Likewise.
5093         * config/h8300/ctzhi2.c: Likewise.
5094         * config/h8300/fixunssfsi.c: Likewise.
5095         * config/h8300/lib1funcs.asm: Likewise.
5096         * config/h8300/parityhi2.c: Likewise.
5097         * config/h8300/popcounthi2.c: Likewise.
5098         * config/i386/ammintrin.h: Likewise.
5099         * config/i386/att.h: Likewise.
5100         * config/i386/avxintrin.h: Likewise.
5101         * config/i386/biarch64.h: Likewise.
5102         * config/i386/bmmintrin.h: Likewise.
5103         * config/i386/cpuid.h: Likewise.
5104         * config/i386/cross-stdarg.h: Likewise.
5105         * config/i386/crtfastmath.c: Likewise.
5106         * config/i386/crtprec.c: Likewise.
5107         * config/i386/cygming-crtbegin.c: Likewise.
5108         * config/i386/cygming-crtend.c: Likewise.
5109         * config/i386/cygwin.asm: Likewise.
5110         * config/i386/emmintrin.h: Likewise.
5111         * config/i386/gmm_malloc.h: Likewise.
5112         * config/i386/gthr-win32.c: Likewise.
5113         * config/i386/i386.h: Likewise.
5114         * config/i386/immintrin.h: Likewise.
5115         * config/i386/linux-unwind.h: Likewise.
5116         * config/i386/linux64.h: Likewise.
5117         * config/i386/mm3dnow.h: Likewise.
5118         * config/i386/mmintrin-common.h: Likewise.
5119         * config/i386/mmintrin.h: Likewise.
5120         * config/i386/nmmintrin.h: Likewise.
5121         * config/i386/pmm_malloc.h: Likewise.
5122         * config/i386/pmmintrin.h: Likewise.
5123         * config/i386/smmintrin.h: Likewise.
5124         * config/i386/sol2-c1.asm: Likewise.
5125         * config/i386/sol2-ci.asm: Likewise.
5126         * config/i386/sol2-cn.asm: Likewise.
5127         * config/i386/sol2-gc1.asm: Likewise.
5128         * config/i386/tmmintrin.h: Likewise.
5129         * config/i386/unix.h: Likewise.
5130         * config/i386/w32-unwind.h: Likewise.
5131         * config/i386/wmmintrin.h: Likewise.
5132         * config/i386/x86-64.h: Likewise.
5133         * config/i386/x86intrin.h: Likewise.
5134         * config/i386/xmmintrin.h: Likewise.
5135         * config/ia64/crtbegin.asm: Likewise.
5136         * config/ia64/crtend.asm: Likewise.
5137         * config/ia64/crtfastmath.c: Likewise.
5138         * config/ia64/crti.asm: Likewise.
5139         * config/ia64/crtn.asm: Likewise.
5140         * config/ia64/fde-glibc.c: Likewise.
5141         * config/ia64/lib1funcs.asm: Likewise.
5142         * config/ia64/linux-unwind.h: Likewise.
5143         * config/ia64/quadlib.c: Likewise.
5144         * config/ia64/unwind-ia64.c: Likewise.
5145         * config/linux.h: Likewise.
5146         * config/m32c/m32c-lib1.S: Likewise.
5147         * config/m32c/m32c-lib2-trapv.c: Likewise.
5148         * config/m32c/m32c-lib2.c: Likewise.
5149         * config/m32r/initfini.c: Likewise.
5150         * config/m68hc11/larith.asm: Likewise.
5151         * config/m68hc11/m68hc11-crt0.S: Likewise.
5152         * config/m68k/cf.md: Likewise.
5153         * config/m68k/crti.s: Likewise.
5154         * config/m68k/crtn.s: Likewise.
5155         * config/m68k/lb1sf68.asm: Likewise.
5156         * config/m68k/linux-unwind.h: Likewise.
5157         * config/mcore/crti.asm: Likewise.
5158         * config/mcore/crtn.asm: Likewise.
5159         * config/mcore/lib1.asm: Likewise.
5160         * config/mips/linux-unwind.h: Likewise.
5161         * config/mips/loongson.h: Likewise.
5162         * config/mips/mips16.S: Likewise.
5163         * config/mmix/crti.asm: Likewise.
5164         * config/mmix/crtn.asm: Likewise.
5165         * config/pa/fptr.c: Likewise.
5166         * config/pa/hpux-unwind.h: Likewise.
5167         * config/pa/lib2funcs.asm: Likewise.
5168         * config/pa/linux-atomic.c: Likewise.
5169         * config/pa/linux-unwind.h: Likewise.
5170         * config/pa/milli64.S: Likewise.
5171         * config/pa/quadlib.c: Likewise.
5172         * config/pa/stublib.c: Likewise.
5173         * config/picochip/libgccExtras/adddi3.asm: Likewise.
5174         * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
5175         * config/picochip/libgccExtras/ashlsi3.c: Likewise.
5176         * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
5177         * config/picochip/libgccExtras/ashrsi3.c: Likewise.
5178         * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
5179         * config/picochip/libgccExtras/divmod15.asm: Likewise.
5180         * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
5181         * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
5182         * config/picochip/libgccExtras/longjmp.asm: Likewise.
5183         * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
5184         * config/picochip/libgccExtras/lshrsi3.c: Likewise.
5185         * config/picochip/libgccExtras/parityhi2.asm: Likewise.
5186         * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
5187         * config/picochip/libgccExtras/setjmp.asm: Likewise.
5188         * config/picochip/libgccExtras/subdi3.asm: Likewise.
5189         * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
5190         * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
5191         * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
5192         * config/rs6000/750cl.h: Likewise.
5193         * config/rs6000/altivec.h: Likewise.
5194         * config/rs6000/biarch64.h: Likewise.
5195         * config/rs6000/crtresfpr.asm: Likewise.
5196         * config/rs6000/crtresgpr.asm: Likewise.
5197         * config/rs6000/crtresxfpr.asm: Likewise.
5198         * config/rs6000/crtresxgpr.asm: Likewise.
5199         * config/rs6000/crtsavfpr.asm: Likewise.
5200         * config/rs6000/crtsavgpr.asm: Likewise.
5201         * config/rs6000/darwin-asm.h: Likewise.
5202         * config/rs6000/darwin-fallback.c: Likewise.
5203         * config/rs6000/darwin-fpsave.asm: Likewise.
5204         * config/rs6000/darwin-ldouble.c: Likewise.
5205         * config/rs6000/darwin-tramp.asm: Likewise.
5206         * config/rs6000/darwin-unwind.h: Likewise.
5207         * config/rs6000/darwin-vecsave.asm: Likewise.
5208         * config/rs6000/darwin-world.asm: Likewise.
5209         * config/rs6000/e500crtres32gpr.asm: Likewise.
5210         * config/rs6000/e500crtres64gpr.asm: Likewise.
5211         * config/rs6000/e500crtres64gprctr.asm: Likewise.
5212         * config/rs6000/e500crtrest32gpr.asm: Likewise.
5213         * config/rs6000/e500crtrest64gpr.asm: Likewise.
5214         * config/rs6000/e500crtresx32gpr.asm: Likewise.
5215         * config/rs6000/e500crtresx64gpr.asm: Likewise.
5216         * config/rs6000/e500crtsav32gpr.asm: Likewise.
5217         * config/rs6000/e500crtsav64gpr.asm: Likewise.
5218         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
5219         * config/rs6000/e500crtsavg32gpr.asm: Likewise.
5220         * config/rs6000/e500crtsavg64gpr.asm: Likewise.
5221         * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
5222         * config/rs6000/eabi-ci.asm: Likewise.
5223         * config/rs6000/eabi-cn.asm: Likewise.
5224         * config/rs6000/eabi.asm: Likewise.
5225         * config/rs6000/linux-unwind.h: Likewise.
5226         * config/rs6000/linux64.h: Likewise.
5227         * config/rs6000/paired.h: Likewise.
5228         * config/rs6000/paired.md: Likewise.
5229         * config/rs6000/ppc64-fp.c: Likewise.
5230         * config/rs6000/ppu_intrinsics.h: Likewise.
5231         * config/rs6000/rs6000.h: Likewise.
5232         * config/rs6000/si2vmx.h: Likewise.
5233         * config/rs6000/sol-ci.asm: Likewise.
5234         * config/rs6000/sol-cn.asm: Likewise.
5235         * config/rs6000/spe.h: Likewise.
5236         * config/rs6000/spu2vmx.h: Likewise.
5237         * config/rs6000/sysv4.h: Likewise.
5238         * config/rs6000/tramp.asm: Likewise.
5239         * config/rs6000/vec_types.h: Likewise.
5240         * config/s390/linux-unwind.h: Likewise.
5241         * config/s390/tpf-unwind.h: Likewise.
5242         * config/score/crti.asm: Likewise.
5243         * config/score/crtn.asm: Likewise.
5244         * config/sh/crt1.asm: Likewise.
5245         * config/sh/crti.asm: Likewise.
5246         * config/sh/crtn.asm: Likewise.
5247         * config/sh/divtab-sh4-300.c: Likewise.
5248         * config/sh/divtab-sh4.c: Likewise.
5249         * config/sh/divtab.c: Likewise.
5250         * config/sh/lib1funcs-4-300.asm: Likewise.
5251         * config/sh/lib1funcs-Os-4-200.asm: Likewise.
5252         * config/sh/lib1funcs.asm: Likewise.
5253         * config/sh/lib1funcs.h: Likewise.
5254         * config/sh/linux-atomic.asm: Likewise.
5255         * config/sh/linux-unwind.h: Likewise.
5256         * config/sh/shmedia.h: Likewise.
5257         * config/sh/sshmedia.h: Likewise.
5258         * config/sh/ushmedia.h: Likewise.
5259         * config/sparc/crtfastmath.c: Likewise.
5260         * config/sparc/linux-unwind.h: Likewise.
5261         * config/sparc/sol2-c1.asm: Likewise.
5262         * config/sparc/sol2-ci.asm: Likewise.
5263         * config/sparc/sol2-cn.asm: Likewise.
5264         * config/spu/divmodti4.c: Likewise.
5265         * config/spu/divv2df3.c: Likewise.
5266         * config/spu/float_disf.c: Likewise.
5267         * config/spu/float_unsdidf.c: Likewise.
5268         * config/spu/float_unsdisf.c: Likewise.
5269         * config/spu/float_unssidf.c: Likewise.
5270         * config/spu/mfc_multi_tag_release.c: Likewise.
5271         * config/spu/mfc_multi_tag_reserve.c: Likewise.
5272         * config/spu/mfc_tag_release.c: Likewise.
5273         * config/spu/mfc_tag_reserve.c: Likewise.
5274         * config/spu/mfc_tag_table.c: Likewise.
5275         * config/spu/multi3.c: Likewise.
5276         * config/spu/spu_internals.h: Likewise.
5277         * config/spu/spu_intrinsics.h: Likewise.
5278         * config/spu/spu_mfcio.h: Likewise.
5279         * config/spu/vec_types.h: Likewise.
5280         * config/spu/vmx2spu.h: Likewise.
5281         * config/stormy16/stormy16-lib2.c: Likewise.
5282         * config/svr4.h: Likewise.
5283         * config/sync.c: Likewise.
5284         * config/v850/lib1funcs.asm: Likewise.
5285         * config/vxlib-tls.c: Likewise.
5286         * config/vxlib.c: Likewise.
5287         * config/vxworks-dummy.h: Likewise.
5288         * config/xtensa/crti.asm: Likewise.
5289         * config/xtensa/crtn.asm: Likewise.
5290         * config/xtensa/ieee754-df.S: Likewise.
5291         * config/xtensa/ieee754-sf.S: Likewise.
5292         * config/xtensa/lib1funcs.asm: Likewise.
5293         * config/xtensa/lib2funcs.S: Likewise.
5294         * config/xtensa/linux-unwind.h: Likewise.
5295         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
5296         * config/xtensa/unwind-dw2-xtensa.h: Likewise.
5297         * coretypes.h: Likewise.
5298         * crtstuff.c: Likewise.
5299         * defaults.h: Likewise.
5300         * dwarf2.h: Likewise.
5301         * emutls.c: Likewise.
5302         * gbl-ctors.h: Likewise.
5303         * gcov-io.h: Likewise.
5304         * ginclude/float.h: Likewise.
5305         * ginclude/iso646.h: Likewise.
5306         * ginclude/stdarg.h: Likewise.
5307         * ginclude/stdbool.h: Likewise.
5308         * ginclude/stddef.h: Likewise.
5309         * ginclude/stdfix.h: Likewise.
5310         * ginclude/stdint-gcc.h: Likewise.
5311         * ginclude/tgmath.h: Likewise.
5312         * gthr-aix.h: Likewise.
5313         * gthr-dce.h: Likewise.
5314         * gthr-gnat.c: Likewise.
5315         * gthr-gnat.h: Likewise.
5316         * gthr-lynx.h: Likewise.
5317         * gthr-mipssde.h: Likewise.
5318         * gthr-nks.h: Likewise.
5319         * gthr-posix.c: Likewise.
5320         * gthr-posix.h: Likewise.
5321         * gthr-posix95.h: Likewise.
5322         * gthr-rtems.h: Likewise.
5323         * gthr-single.h: Likewise.
5324         * gthr-solaris.h: Likewise.
5325         * gthr-tpf.h: Likewise.
5326         * gthr-vxworks.h: Likewise.
5327         * gthr-win32.h: Likewise.
5328         * gthr.h: Likewise.
5329         * libgcc2.c: Likewise.
5330         * libgcc2.h: Likewise.
5331         * libgcov.c: Likewise.
5332         * tsystem.h: Likewise.
5333         * typeclass.h: Likewise.
5334         * unwind-c.c: Likewise.
5335         * unwind-compat.h: Likewise.
5336         * unwind-dw2-fde-compat.c: Likewise.
5337         * unwind-dw2-fde-darwin.c: Likewise.
5338         * unwind-dw2-fde-glibc.c: Likewise.
5339         * unwind-dw2-fde.c: Likewise.
5340         * unwind-dw2-fde.h: Likewise.
5341         * unwind-dw2.c: Likewise.
5342         * unwind-dw2.h: Likewise.
5343         * unwind-generic.h: Likewise.
5344         * unwind-pe.h: Likewise.
5345         * unwind-sjlj.c: Likewise.
5346         * unwind.inc: Likewise.
5347         * config/arm/neon-gen.ml: Change generated copyright header to
5348         refer to version 3 of the GNU General Public License with
5349         version 3.1 of the GCC Runtime Library Exception and to point
5350         readers at the COPYING3 and COPYING3.RUNTIME files and the
5351         FSF's license web page.
5352         * config/arm/arm_neon.h: Regenerate.
5353
5354 2009-04-09  Jakub Jelinek  <jakub@redhat.com>
5355
5356         * config/cris/cris.md: Change copyright header to refer to version
5357         3 of the GNU General Public License.
5358         * doc/install.texi2html: Change copyright header to refer to version
5359         3 of the GNU General Public License and to point readers at the
5360         COPYING3 file and the FSF's license web page.
5361         * config/vax/linux.h: Likewise.
5362
5363 2009-04-09  Paolo Bonzini  <bonzini@gnu.org>
5364
5365         * config/i386/i386.md (cmpcc): New.
5366         * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
5367         (sync_compare_and_swap_cc*): Delete.
5368
5369         * config/s390/s390.c (s390_compare_emitted): Remove.
5370         (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
5371         s390_compare_emitted used to be handled.  Assert that modes match.
5372         (s390_emit_compare_and_swap): Use s390_emit_compare, do not
5373         refer to sync_compare_and_swap_ccsi.
5374         * config/s390/s390.h (s390_compare_emitted): Remove.
5375         * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
5376         instead of s390_compare_emitted.
5377         (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
5378         instead of s390_compare_emitted.
5379         * config/s390/s390.md (cmpcc): New.
5380         (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
5381         CC_REGNUM, do not pretend it's set.
5382         (sync_compare_and_swap_cc*): Delete.
5383         * config/s390/predicates.md (cc_reg_operand): New.
5384
5385         * expr.c (sync_compare_and_swap_cc): Delete.
5386         * optabs.h (sync_compare_and_swap_cc): Delete.
5387         * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
5388         is being used with can_compare_p.
5389         (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
5390         (find_cc_set): New.
5391         (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
5392         look for a MODE_CC set instead.  Use emit_store_flag.
5393         (expand_compare_and_swap_loop): Likewise, with some additional
5394         complication to avoid a force_reg when useless.  Use
5395         emit_cmp_and_jump_insns.
5396         * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
5397         * doc/md.texi (sync_compare_and_swap_cc): Merge with
5398         sync_compare_and_swap documentation.
5399
5400 2009-04-09  Jan Hubicka  <jh@suse.cz>
5401
5402         * except.c (find_prev_try): Break out from ....
5403         (duplicate_eh_regions): ... here; properly update prev_try pointers
5404         when duplication part of tree.
5405         (dump_eh_tree): Improve dumping.
5406         (verify_eh_region): New.
5407         (verify_eh_tree): Use it.
5408
5409 2009-04-06  Richard Guenther  <rguenther@suse.de>
5410
5411         * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
5412         &ARRAY addresses by adjusting their types and prepending
5413         a conversion.
5414         * tree-cfg.c (verify_gimple_assign_single): Verify that
5415         addresses are correct.
5416
5417 2009-04-09  Richard Guenther  <rguenther@suse.de>
5418
5419         * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
5420         indices into an array reference if possible.
5421         * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
5422         Fold POINTER_PLUS_EXPR statements with invariant address.
5423
5424 2009-04-09  Alan Modra  <amodra@bigpond.net.au>
5425
5426         PR target/39634
5427         * config.gcc (powerpc64-*-linux*): Always build biarch.
5428
5429 2009-04-09  Joseph Myers  <joseph@codesourcery.com>
5430
5431         PR c/39613
5432         * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
5433         it and pedwarn if this results in an INTEGER_CST.
5434
5435 2009-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5436
5437         * doc/install.texi: Update minimum GMP version.  Remove obsolete
5438         text in MPFR section.
5439
5440 2009-04-08  Jakub Jelinek  <jakub@redhat.com>
5441
5442         * dwarf2out.c (class_scope_p): New static inline.
5443         (class_or_namespace_scope_p): Use it.
5444         (gen_variable_die): Use DW_TAG_member tag for static data member
5445         declarations instead of DW_TAG_variable.
5446
5447         PR middle-end/39573
5448         * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
5449         variables.
5450
5451 2009-04-08  Richard Guenther  <rguenther@suse.de>
5452
5453         * tree-ssa-sccvn.c (valueize_refs): Do not continue to
5454         valueize random data.
5455
5456 2009-04-08  David Edelsohn  <edelsohn@gnu.org>
5457
5458         * config.gcc (aix tm_file):  Add aix-stdint.h.
5459         (aix tm clause use_gcc_stdint):  Set to wrap.
5460         * config/rs6000/aix-stdint.h:  New file.
5461
5462 2009-04-08  Richard Guenther  <rguenther@suse.de>
5463
5464         PR middle-end/36291
5465         * tree-dfa.c (add_referenced_var): Do not recurse into
5466         global initializers.
5467         * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
5468         exposed variables.
5469         (fold_const_aggregate_ref): Likewise.
5470
5471 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
5472
5473         * recog.c (ordered_comparison_operator): New.
5474         * gensupport.c (std_preds): Add it.
5475         * doc/md.texi (Machine-Independent Predicates): Document it.
5476
5477 2009-04-08  Jan Hubicka  <jh@suse.cz>
5478
5479         * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
5480         * function.h (rtl_eh): Remove exception_handler_label_map.
5481         * except.c (ehl_hash, ehl_eq, add_ehl_entry,
5482         remove_exception_handler_label, for_each_eh_label_1): Remove.
5483         (rtl_remove_unreachable_regions): Remove.
5484         (convert_from_eh_region_ranges): Do not remove unreachable regions.
5485         (find_exception_handler_labels): Don't build the hashtable.
5486         (maybe_remove_eh_handler): Remove.
5487         (for_each_eh_label): Rewrite to walk the tree.
5488         (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
5489         * except.h (maybe_remove_eh_handler): Remove.
5490         * passes.c (init_optimization_passes): Schedule second EH cleanup
5491         before out-of-ssa.
5492         * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
5493         cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
5494
5495 2009-04-08  Paolo Bonzini  <bonzini@gnu.org>
5496
5497         * genoutput.c (validate_optab_operands): New.
5498         (gen_insn, gen_expand): Call it.
5499
5500         * genflags.c (gen_insn): Detect misused iterators.
5501         (main): Pass line_no to gen_insn, exit with status 1 on error.
5502
5503         * genextract.c (line_no): Make global.
5504         (VEC_safe_set_locstr): Change assertion to error message.
5505         (main): Exit with status 1 on error.
5506
5507 2009-04-08  Joseph Myers  <joseph@codesourcery.com>
5508
5509         PR c/39614
5510         PR c/39673
5511         * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
5512         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
5513         EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
5514         * c-convert.c (convert): Do not call fold on results of conversion
5515         functions when the result is a C_MAYBE_CONST_EXPR.
5516         * c-parser.c (c_parser_postfix_expression): Do not fold condition
5517         of __builtin_choose_expr.
5518         * c-typeck.c (remove_c_maybe_const_expr): New.
5519         (build_unary_op, build_conditional_expr, build_compound_expr,
5520         build_binary_op, c_objc_common_truthvalue_conversion): Call
5521         remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
5522         integer operands.
5523
5524 2009-04-08  Bingfeng Mei  <bmei@broadcom.com>
5525
5526         * fold-const.c (const_binop): Combine two VECTOR_CST under operation
5527         CODE to produce a new one. Add a prototype to use fold_convert_const
5528
5529 2009-04-08  Danny Smith  <dannysmith@users.sourceforge.net>
5530
5531         PR bootstrap/39660
5532         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
5533         mix declarations and code.
5534
5535 2009-04-08  Ben Elliston  <bje@au.ibm.com>
5536
5537         * gcc.c: Replace `CC' with `GCC' throughout.
5538
5539 2009-04-07  H.J. Lu  <hongjiu.lu@intel.com>
5540
5541         * doc/invoke.texi: Document Atom support.
5542
5543 2009-04-07  Jason Merrill  <jason@redhat.com>
5544
5545         PR c++/25185
5546         * c-common.h, c-common.c: Add flag_pretty_templates.
5547         * c-opts.c (c_common_handle_option): Set it.
5548         * c.opt: Add -fno-pretty-templates.
5549         * doc/invoke.texi (C++ Dialect Options): Likewise.
5550
5551 2009-04-07  Uros Bizjak  <ubizjak@gmail.com>
5552
5553         * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
5554         (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
5555         (ia64_expand_builtin): Likewise.
5556
5557 2009-04-07  Martin Jambor  <mjambor@suse.cz>
5558
5559         * tree-ssa-alias.c (refs_may_alias_p_1): Check for
5560         is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
5561         ADDR_EXPRS are include too.
5562
5563 2009-04-07  Richard Guenther  <rguenther@suse.de>
5564
5565         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
5566         decls are only used if passes as parameters or if they are
5567         local statics and the call is not to a builtin.
5568         (call_may_clobber_ref_p_1): Likewise.
5569
5570 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
5571
5572         * expr.c (do_store_flag): Remove last argument.  Simplify code
5573         to avoid duplication of tests already done by can_compare_p.
5574         (expand_expr_real_1): Adjust caller.
5575
5576 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
5577
5578         * optabs.c (can_compare_p): Test the predicate of a
5579         cbranch and cstore pattern.
5580
5581 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
5582
5583         * expr.c (convert_move): Use emit_store_flag instead of
5584         "emulating" it.
5585
5586 2009-04-07  Paolo Bonzini  <bonzini@gnu.org>
5587
5588         * config/i386/i386.c (ix86_compare_emitted): Remove.
5589         (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
5590         ix86_compare_op0 like ix86_compare_emitted used to be handled.
5591         * config/i386/i386.h (ix86_compare_emitted): Remove.
5592         * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
5593         instead of ix86_compare_emitted.
5594         * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
5595
5596 2009-04-07  Andrew Stubbs  <ams@codesourcery.com>
5597
5598         * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
5599         Add t-sysroot-suffix to tmake_file.
5600         * config/print-sysroot-suffix.sh: New file.
5601         * config/t-sysroot-suffix: New file.
5602
5603 2009-04-07  Ben Elliston  <bje@au.ibm.com>
5604
5605         * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
5606         as the latter produces a warning when the target does not support
5607         infinity.
5608
5609 2009-04-07  Ben Elliston  <bje@au.ibm.com>
5610
5611         * dfp.c: Replace type punning assignments with memcpy throughout.
5612         * Makefile.in (dfp.o-warn): Remove.
5613
5614 2009-04-07  Alan Modra  <amodra@bigpond.net.au>
5615
5616         PR target/39634
5617         * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
5618         Include soft-fp/t-softfp after rs6000/t-linux64.
5619
5620 2009-04-06  Eric Botcazou  <ebotcazou@adacore.com>
5621
5622         * stor-layout.c (set_sizetype): Use the full precision of their
5623         machine mode for bitsize types.
5624
5625 2009-04-06  H.J. Lu  <hongjiu.lu@intel.com>
5626
5627         * config/i386/i386.md: Revert 2 accidental checkins.
5628
5629 2009-04-06  Joey Ye  <joey.ye@intel.com>
5630             Xuepeng Guo  <xuepeng.guo@intel.com>
5631             H.J. Lu  <hongjiu.lu@intel.com>
5632
5633         Atom pipeline model, tuning and insn selection.
5634         * config.gcc (atom): Add atom config options and target.
5635
5636         * config/i386/atom.md: New.
5637
5638         * config/i386/i386.c (atom_cost): New cost.
5639         (m_ATOM): New macro flag.
5640         (initial_ix86_tune_features): Set m_ATOM.
5641         (x86_accumulate_outgoing_args): Likewise.
5642         (x86_arch_always_fancy_math_387): Likewise.
5643         (processor_target): Add Atom cost.
5644         (cpu_names): Add Atom cpu name.
5645         (override_options): Set Atom ISA.
5646         (ix86_issue_rate): New case PROCESSOR_ATOM.
5647         (ix86_adjust_cost): Likewise.
5648
5649         * config/i386/i386.h (TARGET_ATOM): New target macro.
5650         (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
5651         (TARGET_OPT_AGU): New target option.
5652         (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
5653         (processor_type): Add PROCESSOR_ATOM.
5654
5655         * config/i386/i386.md (cpu): Add new value "atom".
5656         (use_carry, movu): New attr.
5657         (atom.md): Include atom.md.
5658         (adddi3_carry_rex64): Set attr "use_carry".
5659         (addqi3_carry): Likewise.
5660         (addhi3_carry): Likewise.
5661         (addsi3_carry): Likewise.
5662         (*addsi3_carry_zext): Likewise.
5663         (subdi3_carry_rex64): Likewise.
5664         (subqi3_carry): Likewise.
5665         (subhi3_carry): Likewise.
5666         (subsi3_carry): Likewise.
5667         (x86_movdicc_0_m1_rex64): Likewise.
5668         (*x86_movdicc_0_m1_se): Likewise.
5669         (x86_movsicc_0_m1): Likewise.
5670         (*x86_movsicc_0_m1_se): Likewise.
5671         (*adddi_1_rex64): Emit add insn as much as possible.
5672         (*addsi_1): Likewise.
5673         (return_internal): Set atom_unit.
5674         (return_internal_long): Likewise.
5675         (return_pop_internal): Likewise.
5676         (*rcpsf2_sse): Set atom_sse_attr attr.
5677         (*qrt<mode>2_sse): Likewise.
5678         (*prefetch_sse): Likewise.
5679
5680         * config/i386/i386-c.c (ix86_target_macros_internal): New case
5681         PROCESSOR_ATOM.
5682         (ix86_target_macros_internal): Likewise.
5683
5684         * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
5685         (*prefetch_sse_rex): Likewise.
5686         (sse_rcpv4sf2): Likewise.
5687         (sse_vmrcpv4sf2): Likewise.
5688         (sse_sqrtv4sf2): Likewise.
5689         (<sse>_vmsqrt<mode>2): Likewise.
5690         (sse_ldmxcsr): Likewise.
5691         (sse_stmxcsr): Likewise.
5692         (*sse_sfence): Likewise.
5693         (sse2_clflush): Likewise.
5694         (*sse2_mfence): Likewise.
5695         (*sse2_lfence): Likewise.
5696         (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
5697         (<sse>_movup<ssemodesuffixf2c>): Likewise.
5698         (avx_movdqu<avxmodesuffix>): Likewise.
5699         (avx_lddqu<avxmodesuffix>): Likewise.
5700         (sse2_movntv2di): Change attr "type" to "ssemov".
5701         (sse2_movntsi): Likewise.
5702         (rsqrtv8sf2): Change attr "type" to "sseadd".
5703         (sse3_addsubv2df3): Set attr "atom_unit".
5704         (sse3_h<plusminus_insn>v4sf3): Likewise.
5705         (*sse2_pmaddwd): Likewise.
5706         (*vec_extractv2di_1_rex64): Likewise.
5707         (*vec_extractv2di_1_avx): Likewise.
5708         (sse2_psadbw): Likewise.
5709         (ssse3_phaddwv8hi3): Likewise.
5710         (ssse3_phaddwv4hi3): Likewise.
5711         (ssse3_phadddv4si3): Likewise.
5712         (ssse3_phadddv2si3): Likewise.
5713         (ssse3_phaddswv8hi3): Likewise.
5714         (ssse3_phaddswv4hi3): Likewise.
5715         (ssse3_phsubwv8hi3): Likewise.
5716         (ssse3_phsubwv4hi3): Likewise.
5717         (ssse3_phsubdv4si3): Likewise.
5718         (ssse3_phsubdv2si3): Likewise.
5719         (ssse3_phsubswv8hi3): Likewise.
5720         (ssse3_phsubswv4hi3): Likewise.
5721         (ssse3_pmaddubsw128): Likewise.
5722         (sse3_pmaddubsw: Likewise.
5723         (ssse3_palignrti): Likewise.
5724         (ssse3_palignrdi): Likewise.
5725
5726 2009-04-06  Gerald Pfeifer  <gerald@pfeifer.com>
5727
5728         * doc/install.texi (Specific): Fix two cross-references to MinGW.
5729
5730 2009-04-06  Richard Guenther  <rguenther@suse.de>
5731
5732         PR tree-optimization/28868
5733         * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
5734         of which PHI results we inserted.
5735         (insert_into_preds_of_block): Record inserted PHIs.
5736         (eliminate): Eliminate redundant PHI nodes.
5737         (init_pre): Init inserted_phi_names.
5738
5739 2009-04-06  Richard Guenther  <rguenther@suse.de>
5740
5741         PR tree-optimization/39643
5742         * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
5743         IMAGPART_EXPRs of complex constants.
5744         (execute_fold_all_builtins): If we folded a call queue
5745         TODO_update_address_taken.
5746
5747 2009-04-06  Jan Hubicka  <jh@suse.cz>
5748
5749         PR middle-end/39659
5750         * except.c (remove_unreachable_regions): Propagate may_contain_throw
5751         flag.
5752
5753 2009-04-06  Andrew Stubbs  <ams@codesourcery.com>
5754
5755         * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
5756         delay slot.
5757         (ic_invalidate_array): Likewise.
5758
5759 2009-04-06  Hariharan Sandanagobalane  <hariharan@picochip.com>
5760
5761         * calls.c (emit_library_call_value_1): Fix a problem with parameter
5762         alignment for library calls.
5763
5764 2009-04-06  Danny Smith  <dannysmith@users.sourceforge.net>
5765
5766         * config.gcc (mingw32 tm_file):  Add mingw-stdint.h.
5767         (mingw32 tm clause use_gcc_stdint):  Set to wrap.
5768         * config/i386/mingw-stdint.h:  New file.
5769
5770 2009-04-05  Richard Guenther  <rguenther@suse.de>
5771
5772         PR tree-optimization/39648
5773         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
5774         our &A vs. &A[0] IL deficiencies.
5775
5776 2009-04-04  Jan Hubicka  <jh@suse.cz>
5777
5778         * except.c (sjlj_find_directly_reachable_regions): Be ready for
5779         removed toplevel regions.
5780         (sjlj_mark_call_sites): Likewise.
5781
5782 2009-04-04  Dave Korn  <dave.korn.cygwin@gmail.com>
5783
5784         * config.gcc (cygwin tm_file):  Add cygwin-stdint.h.
5785         (cygwin tm clause use_gcc_stdint):  Set to wrap.
5786         * config/i386/cygwin-stdint.h:  New file.
5787
5788 2009-04-04  Richard Guenther  <rguenther@suse.de>
5789
5790         * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
5791         * tree-ssa-copy.c (init_copy_prop): Do not propagate through
5792         single-argument PHIs if we are in loop-closed SSA form.
5793         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
5794         for the pre-condition.
5795         (slpeel_tree_peel_loop_to_edge): Likewise.
5796         (vect_build_loop_niters): Take an optional sequence to append stmts.
5797         (vect_generate_tmps_on_preheader): Likewise.
5798         (vect_do_peeling_for_loop_bound): Take extra guards for the
5799         pre-condition.
5800         (vect_do_peeling_for_alignment): Adjust.  Unconditionally apply
5801         the cost model check.
5802         (vect_loop_versioning): Take stmt and stmt list to put pre-condition
5803         guards if we are going to peel.  Do not apply versioning in that case.
5804         * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
5805         (vect_do_peeling_for_loop_bound): Likewise.
5806         * tree-vect-loop.c (vect_transform_loop): If we are peeling for
5807         loop bound only record extra pre-conditions, do not apply loop
5808         versioning.
5809
5810 2009-04-04  Richard Guenther  <rguenther@suse.de>
5811
5812         * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
5813         renaming code.
5814
5815 2009-04-04  Jan Hubicka  <jh@suse.cz>
5816
5817         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
5818         last_basic_block for size of bb->index indexed array.
5819         * bt-load.c (compute_defs_uses_and_gen, compute_kill,
5820         compute_out, link_btr_uses, build_btr_def_use_webs,
5821         build_btr_def_use_webs, migrate_btr_defs): Likewise.
5822
5823 2009-04-04  Jan Hubicka  <jh@suse.cz>
5824
5825         * except.c (remove_eh_handler_and_replace): Break out from ...
5826         (remove_eh_handler): ... here.
5827         (bring_to_root): New function.
5828         (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
5829         handled ones, bring others to root of tree.
5830
5831 2009-04-04  Jan Hubicka  <jh@suse.cz>
5832
5833         * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
5834         (all_phis_safe_to_merge): New function.
5835         (update_info): New structure.
5836         (make_eh_edge_and_update_phi, update_eh_edges): New functions.
5837         (cleanup_empty_eh): Update SSA if possible.
5838
5839 2009-04-04  Richard Guenther  <rguenther@suse.de>
5840
5841         * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
5842         * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
5843         (append_vuse): Likewise.
5844
5845 2009-04-04  Jakub Jelinek  <jakub@redhat.com>
5846
5847         * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
5848         * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
5849         instead of REG_UNSAVED for DW_CFA_undefined.
5850         (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
5851         (uw_update_context): If RA column is REG_UNDEFINED, mark it as
5852         outermost frame.
5853
5854 2009-04-04  Richard Earnshaw  <rearnsha@arm.com>
5855
5856         PR target/39501
5857         * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
5858         * testsuite/gcc.c-torture/execute/pr39501.c: New file.
5859         * testsuite/gcc.c-torture/execute/pr39501.x: New file.
5860
5861 2009-04-04  Richard Guenther  <rguenther@suse.de>
5862
5863         PR tree-optimization/8781
5864         PR tree-optimization/37892
5865         * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
5866         * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
5867         (valueize_refs): Call it for *& valueizations.
5868         (shared_reference_ops_from_ref): Rename to ...
5869         (valueize_shared_reference_ops_from_ref): ... this and valueize.
5870         (shared_reference_ops_from_call): Rename to ...
5871         (valueize_shared_reference_ops_from_call): ... this and valueize.
5872         (vn_reference_lookup): Update.
5873         (visit_reference_op_call): Likewise.
5874         * tree-ssa-pre.c (phi_translate_1): Fold *&.
5875         (eliminate): Value-replace the call address in call statements.
5876
5877 2009-04-04  Richard Guenther  <rguenther@suse.de>
5878
5879         PR tree-optimization/39636
5880         * tree-ssa-forwprop.c
5881         (forward_propagate_addr_into_variable_array_index): Check for
5882         GIMPLE_ASSIGN before accessing the rhs code.
5883
5884 2009-04-03  Jason Merrill  <jason@redhat.com>
5885
5886         * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
5887
5888 2009-04-03  Steve Ellcey  <sje@cup.hp.com>
5889
5890         * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
5891         truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
5892         fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
5893         floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
5894         fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
5895         smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
5896         divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
5897         umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
5898         *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
5899         *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
5900         adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
5901         smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
5902         *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
5903         *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
5904         sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
5905         Use fr_reg_or_fp01_operand instead of fr_register_operand
5906
5907         * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
5908         recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
5909         divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
5910
5911 2009-04-03  Vladimir Makarov  <vmakarov@redhat.com>
5912
5913         PR rtl-optimization/39607
5914         PR rtl-optimization/39631
5915
5916         Revert:
5917
5918         2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
5919         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
5920         instead of DF_LR_OUT.
5921         * ira-lives.c (process_bb_node_lives): Ditto.
5922         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
5923         instead of DF_LR_{OUT,IN}.
5924         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
5925         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
5926
5927 2009-04-03  Steven Bosscher  <steven@gcc.gnu.org>
5928
5929         * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
5930         (execute_lower_omp): Always run but take the short way out if -fopenmp
5931         is not given.
5932         (gate_lower_omp): Remove, forcing the pass manager to always run the
5933         pass and always set PROP_gimple_lomp.
5934         (pass_lower_omp): Remove gate function.
5935         * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
5936         PROP_trees.  Instead, require it.
5937         * ipa-cp.c (pass_ipa_cp): Likewise.
5938         * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
5939         (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
5940         * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
5941         and PROP_gimple_leh.
5942
5943 2009-04-03  Richard Guenther  <rguenther@suse.de>
5944
5945         PR middle-end/13146
5946         PR tree-optimization/23940
5947         PR tree-optimization/33237
5948         PR middle-end/33974
5949         PR middle-end/34093
5950         PR tree-optimization/36201
5951         PR tree-optimization/36230
5952         PR tree-optimization/38049
5953         PR tree-optimization/38207
5954         PR tree-optimization/38230
5955         PR tree-optimization/38301
5956         PR tree-optimization/38585
5957         PR middle-end/38895
5958         PR tree-optimization/38985
5959         PR tree-optimization/39299
5960         * tree-ssa-structalias.h: Remove.
5961         * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
5962         (NULL_DEF_OPERAND_P): Make of type def_operand_p.
5963         (struct vuse_element_d): Remove.
5964         (struct vuse_vec_d): Likewise.
5965         (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
5966         VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
5967         SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
5968         VUSE_ELEMENT_VAR): Likewise.
5969         (struct voptype_d): Likewise.
5970         (NUM_VOP_FREE_BUCKETS): Likewise.
5971         (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
5972         (struct stmt_operands_d): Remove.
5973         (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
5974         VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
5975         VDEF_NUM, VDEF_VECT): Likewise.
5976         (copy_virtual_operands): Remove.
5977         (operand_build_cmp): Likewise.
5978         (create_ssa_artificial_load_stmt): Likewise.
5979         (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
5980         (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
5981         vuse_index and mayuse_index members.  Pack and move done and iter_type
5982         members to the front.
5983         (SSA_OP_VMAYUSE): Remove.
5984         (SSA_OP_VIRTUAL_USES): Adjust.
5985         (FOR_EACH_SSA_VDEF_OPERAND): Remove.
5986         (unlink_stmt_vdef): Declare.
5987         (add_to_addressable_set): Remove.
5988         * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
5989         (vrp_visit_stmt): Likewise.
5990         * doc/tree-ssa.texi (Alias analysis): Update.
5991         * doc/invoke.texi (max-aliased-vops): Remove docs.
5992         (avg-aliased-vops): Likewise.
5993         * tree-into-ssa.c (syms_to_rename): Remove.
5994         (need_to_update_vops_p): Likewise.
5995         (need_to_initialize_update_ssa_p): Rename to ...
5996         (update_ssa_initialized_fn): ... this.  Track function we are
5997         initialized for.
5998         (symbol_marked_for_renaming): Simplify.
5999         (add_new_name_mapping): Do not set need_to_update_vops_p.
6000         (dump_currdefs): Use SYMS_TO_RENAME.
6001         (rewrite_update_stmt): Always walk all uses/defs.
6002         (dump_update_ssa): Adjust.
6003         (init_update_ssa): Take function argument.  Track what we are
6004         initialized for.
6005         (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
6006         (create_new_def_for): Initialize for cfun, assert we are initialized
6007         for cfun.
6008         (mark_sym_for_renaming): Simplify.
6009         (mark_set_for_renaming): Do not initialize update-ssa.
6010         (need_ssa_update_p): Simplify.  Take function argument.
6011         (name_mappings_registered_p): Assert we ask for the correct function.
6012         (name_registered_for_update_p): Likewise.
6013         (ssa_names_to_replace): Likewise.
6014         (release_ssa_name_after_update_ssa): Likewise.
6015         (update_ssa): Likewise.  Use SYMS_TO_RENAME.
6016         (dump_decl_set): Do not print a newline.
6017         (debug_decl_set): Do it here.
6018         (dump_update_ssa): And here.
6019         * tree-ssa-loop-im.c (move_computations): Adjust.
6020         (movement_possibility): Likewise.
6021         (determine_max_movement): Likewise.
6022         (gather_mem_refs_stmt): Likewise.
6023         * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
6024         or NAME_MEMORY_TAG.
6025         * tree-complex.c (update_all_vops): Remove.
6026         (expand_complex_move): Adjust.
6027         * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
6028         Simplify test for memory referencing statement.  Exclude
6029         non-invariant ADDR_EXPRs.
6030         * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
6031         * tree-loop-distribution.c (generate_memset_zero): Adjust.
6032         (rdg_flag_uses): Likewise.
6033         * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
6034         related code.
6035         (tree_optimize_tail_calls_1): Also split the
6036         edge from the entry block if we have degenerate PHI nodes in
6037         the first basic block.
6038         * tree.c (init_ttree): Remove memory-tag related code.
6039         (tree_code_size): Likewise.
6040         (tree_node_structure): Likewise.
6041         (build7_stat): Re-write to be build6_stat.
6042         * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
6043         (SSA_VAR_P): Adjust.
6044         (struct tree_memory_tag): Remove.
6045         (struct tree_memory_partition_tag): Likewise.
6046         (union tree_node): Adjust.
6047         (build7): Re-write to be build6.
6048         * tree-pass.h (pass_reset_cc_flags): Remove.
6049         (TODO_update_address_taken): New flag.
6050         (pass_simple_dse): Remove.
6051         * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
6052         * params.h (MAX_ALIASED_VOPS): Remove.
6053         (AVG_ALIASED_VOPS): Likewise.
6054         * omp-low.c (expand_omp_taskreg): Update SSA form.
6055         * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
6056         aliases the lhs in a copy stmt.
6057         * tree-ssa-dse.c (struct address_walk_data): Remove.
6058         (memory_ssa_name_same): Likewise.
6059         (memory_address_same): Likewise.
6060         (get_kill_of_stmt_lhs): Likewise.
6061         (dse_possible_dead_store_p): Simplify, use the oracle.  Handle
6062         unused stores.  Look through PHI nodes into post-dominated regions.
6063         (dse_optimize_stmt): Simplify.  Properly remove stores.
6064         (tree_ssa_dse): Compute dominators.
6065         (execute_simple_dse): Remove.
6066         (pass_simple_dse): Likewise.
6067         * ipa-reference.c (scan_stmt_for_static_refs): Open-code
6068         gimple_loaded_syms and gimple_stored_syms computation.
6069         * toplev.c (dump_memory_report): Dump alias and pta stats.
6070         * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
6071         (vn_reference_eq): Likewise.
6072         (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
6073         copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
6074         valueize_vuses): Remove.
6075         (get_def_ref_stmt_vuses): Simplify.  Rename to ...
6076         (get_def_ref_stmt_vuse): ... this.
6077         (vn_reference_lookup_2): New function.
6078         (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
6079         walking equivalent vuses.  Simplify.
6080         (vn_reference_lookup): Likewise.
6081         (vn_reference_insert): Likewise.
6082         (vn_reference_insert_pieces): Likewise.
6083         (visit_reference_op_call): Simplify.
6084         (visit_reference_op_load): Likewise.
6085         (visit_reference_op_store): Likewise.
6086         (init_scc_vn): Remove shared_lookup_vuses initialization.
6087         (free_scc_vn): Remove shared_lookup_vuses freeing.
6088         (sort_vuses, sort_vuses_heap): Remove.
6089         (get_ref_from_reference_ops): Export.
6090         * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
6091         vector with single vuse pointer.
6092         (vn_reference_lookup_pieces, vn_reference_lookup,
6093         vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
6094         (shared_vuses_from_stmt): Remove.
6095         (get_ref_from_reference_ops): Declare.
6096         * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
6097         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
6098         memory-tag related code.
6099         * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
6100         (likely_value): Add comment, skip static-chain of call statements.
6101         (surely_varying_stmt_p): Adjust.
6102         (gimplify_and_update_call_from_tree): Likewise.
6103         (execute_fold_all_builtins): Do not rebuild alias info.
6104         (gimplify_and_update_call_from_tree): Properly update VOPs.
6105         * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
6106         (copy_ref_info): Remove memory-tag related code.
6107         * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
6108         * ipa-pure-const.c (check_decl): Remove memory-tag related code.
6109         (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
6110         computation.
6111         * tree-ssa-dom.c (gimple_p): Remove typedef.
6112         (eliminate_redundant_computations): Adjust.
6113         (record_equivalences_from_stmt): Likewise.
6114         (avail_expr_hash): Likewise.
6115         (avail_expr_eq): Likewise.
6116         * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
6117         (stmt_makes_single_load): Likewise.
6118         (stmt_makes_single_store): Likewise.
6119         * tree-ssa-alias.c: Rewrite completely.
6120         (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
6121         debug_mem_sym_stats, dump_mem_sym_stats_for_var,
6122         debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
6123         delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
6124         dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
6125         Remove public functions.
6126         (pass_reset_cc_flags): Remove.
6127         (pass_build_alias): Move ...
6128         * tree-ssa-structalias.c (pass_build_alias): ... here.
6129         * tree-ssa-alias.c (may_be_aliased): Move ...
6130         * tree-flow-inline.h (may_be_aliased): ... here.
6131         tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
6132         count_uses_and_derefs): Move ...
6133         * gimple.c: ... here.
6134         * gimple.h (count_uses_and_derefs): Declare.
6135         * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
6136         ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
6137         same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
6138         indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
6139         ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
6140         call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
6141         get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
6142         New functions.
6143         * tree-dfa.c (refs_may_alias_p): Move ...
6144         * tree-ssa-alias.c (refs_may_alias_p): ... here.  Extend.
6145         * tree-ssa-alias.h: New file.
6146         * tree-ssa-sink.c (is_hidden_global_store): Adjust.
6147         (statement_sink_location): Likewise.
6148         * opts.c (decode_options): Do not adjust max-aliased-vops or
6149         avg-aliased-vops values.
6150         * timevar.def (TV_TREE_MAY_ALIAS): Remove.
6151         (TV_CALL_CLOBBER): Likewise.
6152         (TV_FLOW_SENSITIVE): Likewise.
6153         (TV_FLOW_INSENSITIVE): Likewise.
6154         (TV_MEMORY_PARTITIONING): Likewise.
6155         (TV_ALIAS_STMT_WALK): New timevar.
6156         * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
6157         * tree-ssa-address.c (create_mem_ref_raw): Use build6.
6158         (get_address_description): Remove memory-tag related code.
6159         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
6160         * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
6161         * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
6162         and immediate uses in statements.  Document.
6163         * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
6164         (dump_symbols): Remove.
6165         (dump_gimple_mem_ops): Do not dump loaded or stored syms.
6166         * alias.c (get_deref_alias_set): New function split out from ...
6167         (get_alias_set): ... here.
6168         * alias.h (get_deref_alias_set): Declare.
6169         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
6170         type parameter.  Remove restrict pointer handling.  Create a
6171         ref-all pointer in case type-based alias sets do not conflict.
6172         (vect_analyze_data_refs): Remove SMT related code.
6173         * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
6174         (vectorizable_load): Likewise.
6175         * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
6176         (DR_SYMBOL_TAG, DR_VOPS): Remove.
6177         * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
6178         Ignore vops and SMTs.
6179         (dr_analyze_alias): Likewise..
6180         (free_data_ref): Likewise.
6181         (create_data_ref): Likewise.
6182         (analyze_all_data_dependences): Likewise.
6183         (get_references_in_stmt): Adjust.
6184         * tree-flow-inline.h (gimple_aliases_computed_p,
6185         gimple_addressable_vars, gimple_call_clobbered_vars,
6186         gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
6187         factoring_name_p, mark_call_clobbered, clear_call_clobbered,
6188         compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
6189         gimple_mem_ref_stats): Remove.
6190         (gimple_vop): New function.
6191         (op_iter_next_use): Remove vuses and mayuses cases.
6192         (op_iter_next_def): Remove vdefs case.
6193         (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
6194         (clear_and_done_ssa_iter): Do not set removed fields.
6195         (op_iter_init): Likewise.  Skip vuse and/or vdef if requested.
6196         Assert we are not iterating over vuses or vdefs if not also
6197         iterating over uses or defs.
6198         (op_iter_init_use): Likewise.
6199         (op_iter_init_def): Likewise.
6200         (op_iter_next_vdef): Remove.
6201         (op_iter_next_mustdef): Likewise.
6202         (op_iter_init_vdef): Likewise.
6203         (compare_ssa_operands_equal): Likewise.
6204         (link_use_stmts_after): Handle vuse operand.
6205         (is_call_used): Use is_call_clobbered.
6206         (is_call_clobbered): Global variables are always call clobbered,
6207         query the call-clobbers bitmap.
6208         (mark_call_clobbered): Ignore global variables.
6209         (clear_call_clobbered): Likewise.
6210         * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
6211         virtual operands sanity check.
6212         * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
6213         Remove.
6214         (TARGET_MEM_REF): Remove TMR_TAG operand.
6215         * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
6216         Remove call-clobber related code.
6217         (remove_referenced_var): Likewise.  Do not clear mpt or symbol_mem_tag.
6218         (dump_variable): Do not dump SMTs, memory stats, may-aliases or
6219         partitions or escape reason.
6220         (get_single_def_stmt, get_single_def_stmt_from_phi,
6221         get_single_def_stmt_with_phi): Remove.
6222         (dump_referenced_vars): Tidy.
6223         (get_ref_base_and_extent): Allow bare decls.
6224         (collect_dfa_stats): Adjust.
6225         * graphite.c (rename_variables_in_stmt): Adjust.
6226         (graphite_copy_stmts_from_block): Likewise.
6227         (translate_clast): Likewise.
6228         * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
6229         (EXPR_DIES): New.
6230         (translate_vuse_through_block): Use the oracle.
6231         (phi_translate_1): Adjust.
6232         (value_dies_in_block_x): Use the oracle.  Cache the outcome
6233         in EXPR_DIES.
6234         (valid_in_sets): Check if the VUSE for
6235         a REFERENCE is available.
6236         (eliminate): Do not remove stmts during elimination,
6237         instead queue and remove them afterwards.
6238         (do_pre): Do not rebuild alias info.
6239         (pass_pre): Run TODO_rebuild_alias before PRE.
6240         * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
6241         * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
6242         (mark_all_v_defs_stmt): Remove.
6243         (mark_all_v_defs_seq): Adjust.
6244         (sra_replace): Likewise.
6245         (scalarize_use): Likewise.
6246         (scalarize_copy): Likewise.
6247         (scalarize_init): Likewise.
6248         (scalarize_ldst): Likewise.
6249         (todoflags): Remove.
6250         (tree_sra): Do not rebuild alias info.
6251         (tree_sra_early): Adjust.
6252         (pass_sra): Run TODO_update_address_taken before SRA.
6253         * tree-predcom.c (set_alias_info): Remove.
6254         (prepare_initializers_chain): Do not call it.
6255         (mark_virtual_ops_for_renaming): Adjust.
6256         (mark_virtual_ops_for_renaming_list): Remove.
6257         (initialize_root_vars): Adjust.
6258         (initialize_root_vars_lm): Likewise.
6259         (prepare_initializers_chain): Likewise.
6260         * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
6261         (may_propagate_copy_into_stmt): Likewise.
6262         (merge_alias_info): Do nothing for now.
6263         (propagate_tree_value_into_stmt): Adjust.
6264         (stmt_may_generate_copy): Likewise.
6265         * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
6266         not mark symbols for renaming.
6267         (forward_propagate_addr_expr): Match up push/pop_stmt_changes
6268         with the same statement, make sure to update the new pointed-to one.
6269         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
6270         call statements, do not mark symbols for renaming.
6271         (mark_operand_necessary): Dump something.
6272         (ref_may_be_aliased): New function.
6273         (mark_aliased_reaching_defs_necessary_1): New helper function.
6274         (mark_aliased_reaching_defs_necessary): Likewise.
6275         (mark_all_reaching_defs_necessary_1): Likewise.
6276         (mark_all_reaching_defs_necessary): Likewise.
6277         (propagate_necessity): Do not process virtual PHIs.  For
6278         non-aliased loads mark all reaching definitions as necessary.
6279         For aliased loads and stores mark the immediate dominating
6280         aliased clobbers as necessary.
6281         (visited): New global static.
6282         (perform_tree_ssa_dce): Free visited bitmap after propagating
6283         necessity.
6284         (remove_dead_phis): Perform simple dead virtual PHI removal.
6285         (remove_dead_stmt): Properly unlink virtual operands when
6286         removing stores.
6287         (eliminate_unnecessary_stmts): Schedule PHI removal after
6288         stmt removal.
6289         * tree-ssa-ter.c (is_replaceable_p): Adjust.
6290         (process_replaceable): Likewise.
6291         (find_replaceable_in_bb): Likewise.
6292         * tree-ssa.c (verify_ssa_name): Verify all VOPs are
6293         based on the single gimple vop.
6294         (verify_flow_insensitive_alias_info): Remove.
6295         (verify_flow_sensitive_alias_info): Likewise.
6296         (verify_call_clobbering): Likewise.
6297         (verify_memory_partitions): Likewise.
6298         (verify_alias_info): Likewise.
6299         (verify_ssa): Adjust..
6300         (execute_update_addresses_taken): Export.  Update SSA
6301         manually.  Optimize only when optimizing.  Use a local bitmap.
6302         (pass_update_address_taken): Remove TODO_update_ssa, add
6303         TODO_dump_func.
6304         (pass_update_address_taken): Just use TODO_update_address_taken.
6305         (init_tree_ssa): Do not initialize addressable_vars.
6306         (verify_ssa): Verify new VUSE / VDEF properties.
6307         Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
6308         Do not call verify_alias_info.
6309         (delete_tree_ssa): Clear the VUSE, VDEF operands.
6310         Do not free the loaded and stored syms bitmaps.  Reset the escaped
6311         and callused solutions.  Do not free addressable_vars.
6312         Remove memory-tag related code.
6313         (warn_uninitialized_var): Aliases are always available.
6314         * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
6315         * lambda-code.c (can_put_in_inner_loop): Adjust.
6316         (can_put_after_inner_loop): Likewise.
6317         (perfect_nestify): Likewise.
6318         * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
6319         (vect_gen_widened_results_half): Remove CALL_EXPR handling.
6320         (vectorizable_conversion): Do not mark symbols for renaming.
6321         * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
6322         (expand_call_inline): Unlink the calls virtual operands before
6323         replacing it.
6324         (tree_function_versioning): Do not call update_ssa if we are not
6325         updating clones.  Simplify.
6326         * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
6327         (propagate_with_phi): Likewise..
6328         * tree-outof-ssa.c (create_temp): Remove memory tag and call
6329         clobber code.  Assert we are not aliased or global.
6330         * tree-flow.h: Include tree-ssa-alias.h
6331         (enum escape_type): Remove.
6332         (struct mem_sym_stats_d): Likewise.
6333         (struct mem_ref_stats_d): Likewise.
6334         (struct gimple_df): Add vop member.  Remove global_var,
6335         call_clobbered_vars, call_used_vars, addressable_vars,
6336         aliases_compted_p and mem_ref_stats members.  Add syms_to_rename,
6337         escaped and callused members.
6338         (struct ptr_info_def): Remove all members, add points-to solution
6339         member pt.
6340         (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
6341         call_clobbered, escape_mask, mpt and symbol_mem_tag members.
6342         * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
6343         (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
6344         (tree-ssa-alias.o): Likewise.
6345         (toplev.o): Add tree-ssa-alias.h
6346         (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
6347         * gimple.c (gimple_set_bb): Fix off-by-one error.
6348         (is_gimple_reg): Do not handle memory tags.
6349         (gimple_copy): Also copy virtual operands.
6350         Delay updating the statement.  Do not reset loaded and stored syms.
6351         (gimple_set_stored_syms): Remove.
6352         (gimple_set_loaded_syms): Likewise.
6353         (gimple_call_copy_skip_args): Copy the virtual operands
6354         and mark the new statement modified.
6355         * tree-ssa-structalias.c (may_alias_p): Remove.
6356         (set_uids_in_ptset): Take the alias set to prune with as
6357         parameter.  Fold in the alias test of may_alias_p.
6358         (compute_points_to_sets): Compute whether a ptr is dereferenced
6359         in a local sbitmap.
6360         (process_constraint): Deal with &ANYTHING on the lhs, reject all
6361         other ADDRESSOF constraints on the lhs.
6362         (get_constraint_for_component_ref): Assert that we don't get
6363         ADDRESSOF constraints from the base of the reference.
6364         Properly generate UNKNOWN_OFFSET for DEREF if needed.
6365         (struct variable_info): Remove collapsed_to member.
6366         (get_varinfo_fc): Remove.
6367         (new_var_info): Do not set collapsed_to.
6368         (dump_constraint): Do not follow cycles.
6369         (dump_constraint_graph): Likewise.
6370         (build_pred_graph): Likewise.
6371         (build_succ_graph): Likewise.
6372         (rewrite_constraints): Likewise.
6373         (do_simple_structure_copy): Remove.
6374         (do_rhs_deref_structure_copy): Remove.
6375         (do_lhs_deref_structure_copy): Remove.
6376         (collapse_rest_of_var): Remove.
6377         (do_structure_copy): Re-implement.
6378         (pta_stats): New global variable.
6379         (dump_pta_stats): New function.
6380         (struct constraint_expr): Make offset signed.
6381         (UNKNOWN_OFFSET): Define special value.
6382         (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
6383         (solution_set_expand): New helper function split out from ...
6384         (do_sd_constraint): ... here.
6385         (solution_set_add): Handle UNKNOWN_OFFSET.  Handle negative offsets.
6386         (do_ds_constraint): Likewise.
6387         (do_sd_constraint): Likewise.  Do not special-case ESCAPED = *ESCAPED
6388         and CALLUSED = *CALLUSED.
6389         (set_union_with_increment): Make inc argument signed.
6390         (type_safe): Remove.
6391         (get_constraint_for_ptr_offset): Handle unknown and negative
6392         constant offsets.
6393         (first_vi_for_offset): Handle offsets before start.  Bail
6394         out early for offsets beyond the variable extent.
6395         (first_or_preceding_vi_for_offset): New function.
6396         (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
6397         Together with ESCAPED = *ESCAPED this properly computes reachability.
6398         (find_what_var_points_to): New function.
6399         (find_what_p_points_to): Implement in terms of find_what_var_points_to.
6400         (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
6401         pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
6402         pt_solutions_intersect): New functions.
6403         (compute_call_used_vars): Remove.
6404         (compute_may_aliases): New main entry into PTA computation.
6405         * gimple.h (gimple_p): New typedef.
6406         (struct gimple_statement_base): Remove references_memory_p.
6407         (struct gimple_statement_with_memory_ops_base): Remove
6408         vdef_ops, vuse_ops, stores and loads members.  Add vdef and vuse
6409         members.
6410         (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
6411         gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
6412         gimple_set_references_memory): Remove.
6413         (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
6414         gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
6415         New functions.
6416         * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
6417         (verify_expr): Allow RESULT_DECL.
6418         (gimple_duplicate_bb): Do not copy virtual operands.
6419         (gimple_duplicate_sese_region): Adjust.
6420         (gimple_duplicate_sese_tail): Likewise.
6421         (mark_virtual_ops_in_region): Remove.
6422         (move_sese_region_to_fn): Do not call it.
6423         * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
6424         and pass_simple_dse.
6425         (execute_function_todo): Handle TODO_update_address_taken,
6426         call execute_update_addresses_taken for TODO_rebuild_alias.
6427         (execute_todo): Adjust.
6428         (execute_one_pass): Init dump files early.
6429         * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
6430         call-clobbered.
6431         (create_general_new_stmt): Clear vops.
6432         * tree-ssa-reassoc.c (get_rank): Adjust.
6433         * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
6434         symbols for renaming.
6435         * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
6436         (PARAM_AVG_ALIASED_VOPS): Likewise.
6437         * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
6438         (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
6439         * tree-ssa-operands.c: Simplify for new virtual operand representation.
6440         (operand_build_cmp, copy_virtual_operands,
6441         create_ssa_artificial_load_stmt, add_to_addressable_set,
6442         gimple_add_to_addresses_taken): Remove public functions.
6443         (unlink_stmt_vdef): New function.
6444
6445 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
6446
6447         * config.gcc (powerpc-*-linux*): Merge variants.
6448
6449 2009-04-02  Chao-ying Fu  <fu@mips.com>
6450             James Grosbach  <james.grosbach@microchip.com>
6451
6452         * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
6453         num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
6454         cop0_sp_offset.
6455         (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
6456         keep_interrupts_masked_p, use_debug_exception_return_p.
6457         (mips_attribute_table): Add interrupt, use_shadow_register_set,
6458         keep_interrupts_masked, use_debug_exception_return.
6459         (mips_interrupt_type_p, mips_use_shadow_register_set_p,
6460         mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
6461         New functions.
6462         (mips_function_ok_for_sibcall): Return false for interrupt handlers.
6463         (mips_print_operand): Process COP0 registers to print $0 .. $31
6464         correctly for GAS to process.
6465         (mips_interrupt_extra_call_saved_reg_p): New function.
6466         (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
6467         extra registers.
6468         (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
6469         (mips_compute_frame_info): Add supports for interrupt context that
6470         includes doubleword accumulators and COP0 registers.
6471         (mips_for_each_saved_acc): New function.
6472         (mips_for_each_saved_gpr_and_fpr): Change the function name from
6473         mips_for_each_saved_reg.
6474         (mips_save_reg): Save accumulators.
6475         (mips_kernel_reg_p): A new for_each_rtx callback.
6476         (mips_expand_prologue): Support interrupt handlers.
6477         (mips_restore_reg): Restore accumulators.
6478         (mips_expand_epilogue): Support interrupt handlers.
6479         (mips_can_use_return_insn): Return false for interrupt handlers.
6480         (mips_epilogue_uses): New function.
6481         * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
6482         UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
6483         (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
6484         cop0_move): New instructions.
6485         * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
6486         * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
6487         defines.
6488         (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
6489         New defines.
6490         (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
6491         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
6492         interrupt handlers, we use K0 as the temporary register.
6493         (EPILOGUE_USES): Change to a function call.
6494         * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
6495         handlers, we use K0 as the temporary register.
6496
6497         * doc/extend.texi (Function Attributes): Document interrupt,
6498         use_shadow_register_set, keep_interrupts_masked,
6499         use_debug_exception_return for MIPS attributes.
6500
6501 2009-04-03  Alan Modra  <amodra@bigpond.net.au>
6502
6503         * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
6504         Remove a number of t-files from tmake_file.
6505         * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
6506         * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
6507         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
6508         target_prototype, not TARGET_PROTOTYPE.
6509         (LINK_OS_GNU_SPEC): Define.
6510         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
6511         and darwin-ldoubdle.c.
6512
6513 2009-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
6514
6515         PR driver/39293
6516         * gcc.c (save_temps_flag): Add support for -save-temps=obj.
6517         (cpp_options): Ditto.
6518         (default_compilers): Ditto.
6519         (display_help): Ditto.
6520         (process_command): Ditto.
6521         (do_spec_1): Ditto.
6522         (set_input): Use lbasename instead of duplicate code.
6523         (save_temps_prefix): New static for -save-temps=obj.
6524         (save_temps_length): Ditto.
6525
6526         * doc/invoke.texi (-save-temps=obj): Document new variant to
6527         -save-temps switch.
6528
6529 2009-04-02  Jeff Law  <law@redhat.com>
6530
6531         * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
6532         variable.
6533
6534 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
6535
6536         * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
6537         * configure: Regenerated.
6538
6539 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
6540
6541         * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
6542         share the argument list.
6543
6544 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
6545
6546         Merge
6547
6548         2009-02-12  Diego Novillo  <dnovillo@google.com>
6549
6550         * varpool.c (debug_varpool): New.
6551         * cgraph.h (debug_varpool): Declare.
6552
6553 2009-04-02  Jan Hubicka  <jh@suse.cz>
6554
6555         * passes.c (init_optimization_passes): Remove two copies of ehcleanup
6556         pass.
6557
6558 2009-04-02  H.J. Lu  <hongjiu.lu@intel.com>
6559
6560         * config/i386/i386.c (ix86_abi): Move initialization to ...
6561         (override_options): Here.
6562
6563 2009-04-02  Christian Bruel  <christian.bruel@st.com>
6564
6565         * config/sh/sh.c (sh_dwarf_register_span): New function.
6566         (TARGET_DWARF_REGISTER_SPAN): Define.
6567         * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
6568
6569 2009-04-02  Ira Rosen  <irar@il.ibm.com>
6570
6571         PR tree-optimization/39595
6572         * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
6573         interleaved loads group is not  greater than the SLP group size.
6574
6575 2009-04-02  Rafael Avila de Espindola  <espindola@google.com>
6576
6577         * builtins.c (is_builtin_name): New.
6578         (called_as_built_in): Use is_builtin_name.
6579         * tree.h (is_builtin_name): New.
6580         * varasm.c (incorporeal_function_p): Use is_builtin_name
6581
6582 2009-04-02  Andrew Stubbs  <ams@codesourcery.com>
6583
6584         * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
6585
6586 2009-04-02  Dodji Seketeli  <dodji@redhat.com>
6587
6588         PR c++/26693
6589         * c-decl.c (clone_underlying_type): Move this ...
6590         * c-common.c (set_underlying_type): ... here.
6591         Also, make sure the function properly sets TYPE_STUB_DECL() on
6592         the newly created typedef variant type.
6593         * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
6594         * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
6595         points.
6596
6597 2009-04-02  Richard Guenther  <rguenther@suse.de>
6598
6599         PR tree-optimization/37221
6600         * tree-flow.h (degenerate_phi_result): Declare.
6601         * tree-ssa-dom.c (degenerate_phi_result): Export.
6602         * tree-scalar-evolution.c (analyze_initial_condition): If
6603         the initial condition is defined by a degenerate PHI node
6604         use the degenerate value.
6605
6606 2009-04-01  Eric Botcazou  <ebotcazou@adacore.com>
6607
6608         PR rtl-optimization/39588
6609         * combine.c (merge_outer_ops): Do not set the constant when this
6610         is not necessary.
6611         (simplify_shift_const_1): Do not modify it either in this case.
6612
6613 2009-04-01  Steven Bosscher  <steven@gcc.gnu.org>
6614
6615         * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
6616         tuning is deprecated if -mtune value is set to an Itanium1 variant.
6617
6618 2009-04-01  Janis Johnson  <janis187@us.ibm.com>
6619
6620         PR c/29027
6621         * c-lex.c (interpret_float): Default (no suffix) is double.
6622
6623 2009-04-1  Xinliang David Li  <davidxl@google.com>
6624
6625         * config/i386/i386.c (legitimate_constant_p): Recognize
6626         all one vector constant.
6627
6628 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
6629
6630         * config/vax/vax.c: Add #includes to silence warnings.
6631         Change #include order to silence two warnings.
6632
6633 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
6634
6635         * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
6636         (ASM_SPEC): Pass -k to the assembler for PIC code.
6637
6638 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
6639
6640         * config.gcc: Add vax-*-linux* to the switch.
6641         * config/vax/linux.h: New file. (TARGET_VERSION,
6642         TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
6643
6644 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
6645
6646         * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
6647         Use predicate macros instead of GET_CODE() == foo.
6648         * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
6649         ashlsi3, rotrsi3, <unnamed>): Likewise.
6650
6651 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
6652
6653         * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
6654         jbbccihi, jbbccisi): Remova trailing whitespace.
6655         * config/vax/constraints.md: Likewise.
6656         * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
6657         * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
6658         * config/vax/predicates.md: Likewise.
6659         * config/vax/vax.c (print_operand_address, vax_output_int_move,
6660         vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
6661         * config/vax/vax.h: Likewise.
6662         * config/vax/vax.md (nonlocal_goto): Likewise.
6663
6664 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
6665
6666         * config/vax/vax.c (vax_float_literal, vax_output_int_move)
6667         (indirectable_address_p, adjacent_operands_p): Add spaces around
6668         braces.
6669         * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
6670
6671 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
6672
6673         * config/vax/vax.c (legitimate_constant_address_p,
6674         legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
6675         index_term_p, reg_plus_index_p, legitimate_address_p,
6676         vax_mode_dependent_address_p): Update comments to match functions
6677         modified by the recent int->bool conversion.
6678
6679 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
6680
6681         * config/vax/builtins.md: Update copyright message.
6682         * config/vax/constraints.md: Likewise.
6683         * config/vax/netbsd-elf.h: Likewise.
6684         * config/vax/predicates.md: Likewise.
6685         * config/vax/vax-protos.h: Likewise.
6686         * config/vax/vax.c: Likewise.
6687         * config/vax/vax.h: Likewise.
6688         * config/vax/vax.md: Likewise.
6689         * config/vax/vax.opt: Likewise.
6690
6691 2009-04-01  Jan-Benedict Glaw  <jbglaw@jbglaw-dev.homezone.telefonica.de>
6692
6693         * config/vax/builtins.md (ffssi2, ffssi2_internal,
6694         sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
6695         * config/vax/constraints.md (B, R): Likewise.
6696         * config/vax/predicates.md (external_memory_operand,
6697         nonimmediate_addsub_di_operand): Likewise.
6698         * config/vax/vax.c (vax_output_int_add): Likewise.
6699         * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
6700         untyped_call): Likewise.
6701
6702 2009-04-01  Matt Thomas  <matt@3am-software.com>
6703
6704         * config/vax/predicates.md: New file.
6705         (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
6706         external_const_operand, nonsymbolic_operand, external_memory_operand,
6707         indirect_memory_operand, indexed_memory_operand,
6708         illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
6709         nonimmediate_addsub_di_operand, general_addsub_di_operand): New
6710         predicate.
6711         * config/vax/constraints.md: New file.
6712         (Z0, U06,  U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
6713         New constraint.
6714         * config/vax/builtins.md: New file.
6715         (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
6716         jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
6717         jbbccisi): Define.
6718         * config/vax/vax.opt (mqmath): Add option.
6719         * config/vax/vax.md (isfx): Extend with DI.
6720         (VAXintQH, VAXintQHSD): Define.
6721         (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
6722         mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
6723         and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
6724         one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
6725         (movdi): Update constraints and use vax_output_int_move().
6726         (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
6727         movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
6728         pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
6729         nonlocal_goto): New.
6730         (mov<mode>): Extend accepted operand types.
6731         (subdi3_old): Rename from subdi3, change update constraints and use
6732         a new implementation.
6733         * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
6734         (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
6735         MOVE_RATIO, CLEAR_RATIO): Define.
6736         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
6737         CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
6738         (PRINT_OPERAND): Redefine using a function instead of inlined code.
6739         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
6740         (split_quadword_operands): Make static and really allow variable
6741         splitting.
6742         (print_operand_address): Update for PIC generation.
6743         (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
6744         indexable_address_p, fixup_mathdi_operand,
6745         vax_expand_addsub_di_operands, adjacent_operands_p): New.
6746         (vax_float_literal, legitimate_constant_p,
6747         indirectable_constant_address_p, index_term_p,
6748         reg_plus_index_p): Return bool instead of int.
6749         (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
6750         where needed.
6751         (vax_output_int_move, vax_output_int_add): Extend to allow PIC
6752         generation.
6753         (vax_output_conditional_branch): Indent.
6754         (legitimate_constant_address_p, indirectable_constant_address_p,
6755         indirectable_address_p, nonindexed_address_p, legitimate_address_p,
6756         vax_mode_dependent_address_p): Return bool instead of int, update for
6757         PIC generation.
6758         * config/vax/vax-protos.h (legitimate_constant_address_p,
6759         legitimate_constant_p, legitimate_address_p,
6760         vax_mode_dependent_address_p): Change declaration to bool.
6761         (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
6762         vax_expand_addsub_di_operands, vax_output_int_subtract,
6763         vax_output_movmemsi): Declare.
6764         (split_quadword_operands, vax_float_literal): Delete declaration.
6765         * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
6766         * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
6767         VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
6768         ASM_OUTPUT_DWARF_PCREL): Define.
6769         (ASM_SPEC): Change definition to allow PIC generation.
6770
6771 2009-04-01  Steve Ellcey  <sje@cup.hp.com>
6772
6773         * doc/sourcebuild.texi: Update front-end requirements.
6774
6775 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
6776
6777         PR target/39226
6778         * config/rs6000/rs6000.md (andsi3_internal5_nomc,
6779         anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
6780         (booldi3_internal3): Use boolean_or_operator instead of
6781         boolean_operator.
6782
6783 2009-04-01  Joseph Myers  <joseph@codesourcery.com>
6784
6785         PR c/39605
6786         * c-decl.c (grokdeclarator): Pedwarn for file-scope array
6787         declarator whose size is not an integer constant expression but
6788         folds to an integer constant, then treat it as a constant
6789         subsequently.
6790
6791 2009-04-01  Richard Guenther  <rguenther@suse.de>
6792
6793         * fold-const.c (fold_plusminus_mult_expr): Do not fold
6794         i * 4 + 2 to (i * 2 + 1) * 2.
6795
6796 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
6797
6798         PR c/37772
6799         * c-parser.c (c_parser_asm_statement): Skip until close paren and
6800         return if c_parser_asm_string_literal returned NULL.
6801
6802 2009-04-01  Nick Clifton  <nickc@redhat.com>
6803
6804         * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
6805         already defined.
6806         * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
6807         * config/m32c/m32c-lib2.c: Remove unused typedefs.  Rename the
6808         other typedefs to avoid conflicts with libgcc2.c.  Define labels
6809         to gain 16-bit bit-manipulation functions from libgcc2.c and then
6810         include it.
6811         * config/m32c/m32c-lib2-trapv.c: New file.  Define labels
6812         to gain 16-bit trapping arithmetic functions from libgcc2.c and
6813         then include it.
6814
6815 2009-04-01  Rafael Avila de Espindola  <espindola@google.com>
6816
6817         * varasm.c (default_function_rodata_section): Declare DOT as
6818         const char*.
6819
6820 2009-04-01  Kai Tietz  <kai.tietz@onevision.com>
6821             Andrey Galkin  <agalkin@hypercom.com>
6822
6823         PR/39492
6824         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
6825         Make object_name unique for each process.
6826
6827 2009-04-01  Jakub Jelinek  <jakub@redhat.com>
6828
6829         PR other/39591
6830         * omp-low.c (remove_exit_barrier): Don't optimize if there are any
6831         addressable variables in the parallel that could go out of scope while
6832         running queued tasks.
6833
6834 2009-04-01  Anatoly Sokolov  <aesok@post.ru>
6835
6836         * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
6837         (CASE_VALUES_THRESHOLD): Redefine.
6838         * config/avr/avr.c (avr_override_options): Remove initialization of
6839         avr_case_values_threshold variable.
6840         (avr_case_values_threshold): Remove variable. Add new function.
6841         * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
6842         * config/avr/avr.opt (mno-tablejump): Remove option.
6843         * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
6844
6845 2009-04-01  DJ Delorie  <dj@redhat.com>
6846
6847         * varasm.c (default_function_rodata_section): Don't assume
6848         anything about where the first '.' in the section name is.
6849
6850 2009-04-01  Alan Modra  <amodra@bigpond.net.au>
6851
6852         * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
6853         rs6000_emit_stack_tie.
6854
6855 2009-03-31  Ian Lance Taylor  <iant@google.com>
6856
6857         * tree-eh.c (tree_remove_unreachable_handlers): Compare
6858         gimple_code with GIMPLE_RESX, not RESX.
6859
6860 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
6861
6862         * c-common.c (c_get_ident): New.
6863         (c_common_nodes_and_builtins): Call it for type names that may be NULL.
6864
6865 2009-04-01  Ben Elliston  <bje@au.ibm.com>
6866
6867         * config/rs6000/sysv4.opt (msdata): Improve option description.
6868
6869 2009-03-31  Steve Ellcey  <sje@cup.hp.com>
6870
6871         * config/ia64/ia64.md (divsf3_internal_lat): Remove.
6872         (divdf3_internal_lat): Remove.
6873         (divxf3_internal_lat): Remove.
6874         (divxf3_internal_thr): Remove.
6875         (divxf): Use divxf3_internal.
6876         * config/ia64/div.md (divsf3_internal_lat): New.
6877         (divdf3_internal_lat): New.
6878         (divxf3_internal): New.
6879
6880 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
6881
6882         PR c/448
6883         * Makefile.in (USE_GCC_STDINT): Define.
6884         (stmp-int-hdrs): Install stdint.h if applicable.
6885         * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
6886         if known.
6887         (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
6888         (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
6889         UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
6890         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
6891         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
6892         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
6893         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
6894         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
6895         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
6896         (c_common_nodes_and_builtins): Initialize
6897         underlying_wchar_type_node.  Do not initialize
6898         signed_wchar_type_node or unsigned_wchar_type_node.  Initialize
6899         nodes for new types.
6900         (c_stddef_cpp_builtins): Define macros for new types.
6901         * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
6902         Remove.
6903         (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
6904         CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
6905         CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
6906         CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
6907         CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
6908         CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
6909         CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
6910         CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
6911         CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
6912         (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
6913         (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
6914         int16_type_node, int32_type_node, int64_type_node,
6915         uint8_type_node, uint16_type_node, c_uint32_type_node,
6916         c_uint64_type_node, int_least8_type_node, int_least16_type_node,
6917         int_least32_type_node, int_least64_type_node,
6918         uint_least8_type_node, uint_least16_type_node,
6919         uint_least32_type_node, uint_least64_type_node,
6920         int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
6921         int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
6922         uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
6923         uintptr_type_node): Define.
6924         * c-cppbuiltin.c (builtin_define_constants,
6925         builtin_define_type_minmax): New.
6926         (builtin_define_stdint_macros): Define more macros.
6927         (c_cpp_builtins): Define more limit macros.
6928         (type_suffix): New.
6929         (builtin_define_type_max): Define in terms of
6930         builtin_define_type_minmax.  Remove is_long parameter.  All
6931         callers changed.
6932         * config.gcc (use_gcc_stdint): Define.
6933         (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
6934         Add newlib-stdint.h for generic targets.
6935         * config/glibc-stdint.h, config/newlib-stdint.h,
6936         ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
6937         * config/m32c/m32c.h (UINTPTR_TYPE): Define.
6938         * config/score/score.h (UINTPTR_TYPE): Define.
6939         * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
6940         INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
6941         UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
6942         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
6943         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
6944         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
6945         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
6946         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
6947         * config/spu/spu.h (STDINT_LONG32): Define.
6948         * configure.ac (use_gcc_stdint): Substitute.
6949         * configure: Regenerate.
6950         * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
6951         __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
6952         __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
6953         __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
6954         __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
6955         __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
6956         __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
6957         __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
6958         __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
6959         __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
6960         __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
6961         __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
6962         __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
6963         __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
6964         __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
6965         __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
6966         __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
6967         __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
6968         __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
6969         __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
6970         __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
6971         * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
6972         INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
6973         INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
6974         INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
6975         UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
6976         INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
6977         UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
6978         UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
6979
6980 2009-03-31  Bernd Schmidt  <bernd.schmidt@analog.com>
6981
6982         * loop-iv.c (suitable_set_for_replacement): Renamed from
6983         simplify_using_assignment; changed to return bool and to accept new
6984         args DEST and SRC.  Return true iff we find a source/destination pair
6985         that can be used to make a replacement, and fill SRC and DEST if so.
6986         Remove arg ALTERED.  Don't deal with altered regs here.  All callers
6987         changed.
6988         (simplify_using_initial_values): Deal with altered regs here and track
6989         more precisely the effect they have on the validity of our expression.
6990
6991         * loop-iv.c (simplify_using_condition): A condition of the form
6992         (EQ REG CONST) can be used to simply make a substitution.
6993         (simplify_using_initial_values): Keep track of conditions we have seen
6994         and keep using them to simplify new expressions, while applying the
6995         same substitutions to them as to the expression.
6996
6997         * simplify-rtx.c (simplify_relational_operation_1): Simplify
6998         (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
6999         GEU/LTU reversed.
7000
7001         * loop-iv.c (determine_max_iter): New arg OLD_NITER.  All callers
7002         changed.  Use this when trying to improve the upper bound.
7003         Generate the comparison by using simplify_gen_relational.
7004
7005         * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
7006
7007         * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
7008         functions.
7009         (simplify_using_assignment, simplify_using_initial_values): Call
7010         replace_in_expr to make replacements.  Call replace_single_def_regs
7011         once on the initial version of the expression.
7012
7013 2009-03-31  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
7014
7015         PR target/27237
7016         * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
7017
7018 2009-03-31  Richard Guenther  <rguenther@suse.de>
7019
7020         PR middle-end/31029
7021         * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
7022         equality comparisons.  Fold C - X CMP X if C % 2 == 1.
7023
7024 2009-03-31  Richard Guenther  <rguenther@suse.de>
7025
7026         * tree.h (div_if_zero_remainder): Declare.
7027         * fold-const.c (div_if_zero_remainder): Export.
7028         * tree-ssa-forwprop.c
7029         (forward_propagate_addr_into_variable_array_index): Handle
7030         constant array index addition outside of the variable index.
7031
7032 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
7033
7034         PR target/39592
7035         * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
7036         define_splits, floatunssi<mode>2): Require x87 conversions from
7037         DImode to be permitted.
7038
7039 2009-03-31  Joseph Myers  <joseph@codesourcery.com>
7040
7041         PR preprocessor/15638
7042         * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
7043
7044 2009-03-31  Richard Guenther  <rguenther@suse.de>
7045
7046         PR middle-end/23401
7047         PR middle-end/27810
7048         * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
7049         (struct tree_decl_with_vis): Remove gimple_formal_temp member.
7050         * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
7051         a separate statement.
7052         * gimplify.c (pop_gimplify_context): Remove formal temp handling.
7053         (lookup_tmp_var): Likewise.
7054         (is_gimple_formal_tmp_or_call_rhs): Remove.
7055         (is_gimple_reg_or_call_rhs): Rename to ...
7056         (is_gimple_reg_rhs_or_call): ... this.
7057         (is_gimple_mem_or_call_rhs): Rename to ...
7058         (is_gimple_mem_rhs_or_call): ... this.
7059         (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call.  Set
7060         DECL_GIMPLE_REG_P only if is_formal is true.
7061         (gimplify_compound_lval): Use is_gimple_reg.  Remove workaround
7062         for non-proper post-modify expression gimplification.
7063         (gimplify_self_mod_expr): For post-modify expressions gimplify
7064         the lvalue to a minimal lvalue.
7065         (rhs_predicate_for): Remove formal temp case.
7066         (gimplify_modify_expr_rhs): Likewise.
7067         (gimplify_addr_expr): Use is_gimple_reg.
7068         (gimplify_expr): Remove formal temp cases.
7069         (gimple_regimplify_operands): Likewise.
7070         * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
7071         and FILTER_EXPR like constants.
7072         * gimple.c (walk_gimple_op): Fix val_only initialization, use
7073         is_gimple_reg.
7074         (is_gimple_formal_tmp_rhs): Remove.
7075         (is_gimple_reg_rhs): Remove special casing.
7076         (is_gimple_mem_rhs): Fix.
7077         (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
7078         (is_gimple_formal_tmp_var): Remove.
7079         (is_gimple_formal_tmp_reg): Likewise.
7080         (is_gimple_min_lval): Allow invariant component ref parts.
7081         * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
7082         is_gimple_formal_tmp_reg): Remove declarations.
7083         * tree-cfg.c (verify_expr): Verify that variables with address
7084         taken do not have DECL_GIMPLE_REG_P set.
7085         * tree-mudflap.c (mf_build_check_statement_for): Use
7086         force_gimple_operand instead of gimplify_expr.
7087
7088 2009-03-31  Ayal Zaks  <zaks@il.ibm.com>
7089
7090         * modulo-sched.c (sms_schedule_by_order): Pass the actual
7091         schedulable rows to compute_split_row.
7092
7093 2009-03-31  Ben Elliston  <bje@au.ibm.com>
7094
7095         PR target/31635
7096         * config/rs6000/rs6000.c (rs6000_handle_option): Handle
7097         OPT_mvrsave.
7098
7099 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
7100
7101         * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
7102         * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
7103         * configure: Regenerate.
7104         * config.in: Regenerate.
7105         * config/rs6000/rs6000.opt (mtls-markers): Add.
7106         * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
7107         * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
7108         (tls_ld_aix, tls_ld_sysv): Likewise.
7109         (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
7110         (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
7111
7112 2009-03-31  Alan Modra  <amodra@bigpond.net.au>
7113
7114         * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
7115
7116 2009-03-30  Jan Hubicka  <jh@suse.cz>
7117
7118         * tree-eh.c (make_eh_edges): Set probability 100% to first edge
7119         out of RESX.
7120         (tree_remove_unreachable_handlers): Cleanup EH predecestor
7121         detection and label handling.
7122
7123 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7124
7125         * ira-int.h (ira_allocno): Rename left_conflicts_num to
7126         left_conflicts_size.
7127         (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
7128         ALLOCNO_LEFT_CONFLICTS_SIZE.
7129
7130         * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
7131         remove_allocno_from_bucket_and_push,
7132         allocno_spill_priority_compare, push_allocnos_to_stack,
7133         setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
7134         instead of ALLOCNO_LEFT_CONFLICTS_NUM.
7135         (setup_allocno_left_conflicts_num): Ditto.  Rename to
7136         setup_allocno_left_conflicts_size.
7137         (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
7138         instead of ALLOCNO_LEFT_CONFLICTS_NUM and
7139         setup_allocno_left_conflicts_size instead of
7140         setup_allocno_left_conflicts_num.
7141
7142         * ira-build.c (ira_create_allocno): Use
7143         ALLOCNO_LEFT_CONFLICTS_SIZE instead of
7144         ALLOCNO_LEFT_CONFLICTS_NUM.
7145
7146 2009-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7147
7148         * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
7149         instead of DF_LR_OUT.
7150
7151         * ira-lives.c (process_bb_node_lives): Ditto.
7152
7153         * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
7154         instead of DF_LR_{OUT,IN}.
7155
7156         * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
7157
7158         * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
7159
7160 2009-03-30  Jan Hubicka  <jh@suse.cz>
7161
7162         * except.c (label_to_region_map): Fix thinko.
7163
7164 2009-03-30  Steve Ellcey  <sje@cup.hp.com>
7165
7166         PR middle-end/38237
7167         * tree.h (tree_find_value): New declaration.
7168         * tree.c (tree_find_value): New function.
7169         * varasm.c (assemble_external): Avoid duplicate entries on lists.
7170
7171 2009-03-30  Jakub Jelinek  <jakub@redhat.com>
7172
7173         PR debug/39563
7174         * c-decl.c (struct c_binding): Add locus field.
7175         (bind): Add locus argument, set locus field from it.
7176         (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
7177         add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
7178         (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
7179         implicitly_declare, undeclared_variable, lookup_label,
7180         declare_label, c_make_fname_decl, c_builtin_function,
7181         c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
7182         bind callers.
7183
7184 2009-03-30  H.J. Lu  <hongjiu.lu@intel.com>
7185
7186         PR target/38781
7187         * config/i386/i386.c (classify_argument): Check total size of
7188         structure.
7189
7190 2009-03-30  Martin Jambor  <mjambor@suse.cz>
7191
7192         * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
7193         IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
7194         IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
7195         respectively.
7196
7197         * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
7198         seen_variable_array_ref while also traversing a union.
7199
7200         * tree-inline.c (optimize_inline_calls): Do not call
7201         cgraph_node_remove_callees.
7202         * cgraphbuild.c (remove_cgraph_callee_edges): New function.
7203         (pass_remove_cgraph_callee_edges): New variable.
7204         * passes.c (init_optimization_passes): Add
7205         pass_remove_cgraph_callee_edges after early inlining and before all
7206         late intraprocedural passes.
7207
7208         * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
7209
7210 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
7211
7212         * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
7213         Fix typos in names.
7214
7215 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
7216
7217         * combine.c (simplify_comparison): Use have_insn_for.
7218         * dojump.c (do_jump): Likewise.
7219
7220 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
7221
7222         * config/sparc/sparc.c (sparc_compare_emitted): Remove.
7223         (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
7224         sparc_compare_op0 like sparc_compare_emitted used to be handled.
7225         (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
7226         instead of sparc_compare_emitted.
7227         * config/sparc/sparc.h (sparc_compare_emitted): Remove.
7228         * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
7229         instead of sparc_compare_emitted.
7230
7231 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
7232
7233         * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
7234         enter/exit cfglayout mode.
7235         (pass_partition_block): Require it.
7236         * combine.c (find_single_use, reg_dead_at_p): Use CFG.
7237         (combine_instructions): Track basic blocks instead of labels.
7238         (update_cfg_for_uncondjump): New.
7239         (try_combine): Use it.  Update jumps after rescanning.
7240         (pass_combine): Require PROP_cfglayout.
7241         * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
7242
7243 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
7244
7245         * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
7246         Provide/destroy PROP_cfglayout respectively.
7247         * gcse.c (pass_jump_bypass, pass_gcse): Require it.
7248         * tree-pass.h (PROP_cfglayout): New.
7249
7250 2009-03-30  Paolo Bonzini  <bonzini@gnu.org>
7251
7252         * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
7253         fold_convert_const_fixed_from_fixed,
7254         fold_convert_const_fixed_from_int,
7255         fold_convert_const_fixed_from_real, fold_negate_const): Do not
7256         set TREE_CONSTANT_OVERFLOW.
7257         * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
7258         * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
7259
7260 2009-03-30  Ira Rosen  <irar@il.ibm.com>
7261
7262         * tree-vect-loop-manip.c: New file.
7263         * tree-vectorizer.c: Update documentation and included files.
7264         (vect_loop_location): Make extern.
7265         (rename_use_op): Move to tree-vect-loop-manip.c
7266         (rename_variables_in_bb, rename_variables_in_loop,
7267         slpeel_update_phis_for_duplicate_loop,
7268         slpeel_update_phi_nodes_for_guard1,
7269         slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
7270         slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
7271         slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
7272         set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
7273         find_loop_location): Likewise.
7274         (new_stmt_vec_info): Move to tree-vect-stmts.c.
7275         (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
7276         get_vectype_for_scalar_type, vect_is_simple_use,
7277         supportable_widening_operation, supportable_narrowing_operation):
7278         Likewise.
7279         (bb_in_loop_p): Move to tree-vect-loop.c.
7280         (new_loop_vec_info, destroy_loop_vec_info,
7281         reduction_code_for_scalar_code, report_vect_op,
7282         vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
7283         (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
7284         (vect_supportable_dr_alignment): Likewise.
7285         * tree-vectorizer.h (tree-data-ref.h): Include.
7286         (vect_loop_location): Declare.
7287         Reorganize function declarations according to the new file structure.
7288         * tree-vect-loop.c: New file.
7289         * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
7290         tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
7291         * tree-vect-data-refs.c: New file.
7292         * tree-vect-patterns.c (timevar.h): Don't include.
7293         * tree-vect-stmts.c: New file.
7294         * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
7295         tree-vect-slp.c, tree-vect-loop.c.
7296         * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
7297         tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
7298         tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
7299         (tree-vect-analyze.o): Remove.
7300         (tree-vect-transform.o): Likewise.
7301         (tree-vect-data-refs.o): Add rule.
7302         (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
7303         tree-vect-slp.o): Likewise.
7304         (tree-vect-patterns.o): Remove redundant dependencies.
7305         (tree-vectorizer.o): Likewise.
7306         * tree-vect-slp.c: New file.
7307
7308 2009-03-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7309
7310         * optc-gen.awk: Warn if an option flag has multiple different
7311         help strings.
7312
7313 2009-03-30  Sebastian Pop  <sebastian.pop@amd.com>
7314
7315         * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
7316         -floop-block): Document dependences on PPL, CLooG and Graphite.
7317
7318 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
7319
7320         PR rtl-optimization/323
7321         * c-common.c (c_fully_fold, convert_and_check,
7322         c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
7323         (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
7324         * c-common.def (EXCESS_PRECISION_EXPR): New.
7325         * c-cppbuiltin.c (builtin_define_float_constants): Define
7326         constants with enough digits for long double.
7327         * c-lex.c (interpret_float): Interpret constant with excess
7328         precision where appropriate.
7329         * c-opts.c (c_common_post_options): Set
7330         flag_excess_precision_cmdline.  Give an error for
7331         -fexcess-precision=standard for C++ for processors where the
7332         option is significant.
7333         * c-parser.c (c_parser_conditional_expression): Handle excess
7334         precision in condition.
7335         * c-typeck.c (convert_arguments): Handle arguments with excess
7336         precision.
7337         (build_unary_op): Move excess precision outside operation.
7338         (build_conditional_expr): Likewise.
7339         (build_compound_expr): Likewise.
7340         (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
7341         (build_modify_expr): Handle excess precision in RHS.
7342         (convert_for_assignment): Handle excess precision in converted
7343         value.
7344         (digest_init, output_init_element, process_init_element): Handle
7345         excess precision in initializer.
7346         (c_finish_return): Handle excess precision in return value.
7347         (build_binary_op): Handle excess precision in operands and add
7348         excess precision as needed for operation.
7349         * common.opt (-fexcess-precision=): New option.
7350         * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
7351         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
7352         For standard excess precision, output explicit conversion to and
7353         truncation from XFmode.
7354         (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
7355         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
7356         *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
7357         define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
7358         define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
7359         floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
7360         divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
7361         *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
7362         *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
7363         define_splits, sqrt<mode>2): Disable where appropriate for
7364         standard excess precision.
7365         * convert.c (convert_to_real): Do not shorten arithmetic to type
7366         for which excess precision would be used.
7367         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
7368         * doc/invoke.texi (-fexcess-precision=): Document option.
7369         (-mfpmath=): Correct index entry.
7370         * flags.h (enum excess_precision, flag_excess_precision_cmdline,
7371         flag_excess_precision): New.
7372         * langhooks.c (lhd_post_options): Set
7373         flag_excess_precision_cmdline.
7374         * opts.c (common_handle_option): Handle -fexcess-precision=.
7375         * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
7376         init_excess_precision): New.
7377         (lang_dependent_init_target): Call init_excess_precision.
7378         * tree.c (excess_precision_type): New.
7379         * tree.h (excess_precision_type): Declare.
7380
7381 2009-03-30  Joseph Myers  <joseph@codesourcery.com>
7382
7383         PR c/35235
7384         * c-typeck.c (build_component_ref): Do not copy qualifiers from
7385         non-lvalue to component.
7386
7387 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
7388
7389         PR preprocessor/34695
7390         * Makefile.in (c-opts.o): Depend on c-tree.h.
7391         * c-common.c: Move down include of diagnostic.h.
7392         (done_lexing, c_cpp_error): New.
7393         * c-common.h (done_lexing): Declare.
7394         * c-decl.c (c_write_global_declarations): Don't check cpp_errors
7395         (parse_in).
7396         * c-opts.c: Include c-tree.h.
7397         (c_common_init_options): Set preprocessor error callback.
7398         (c_common_handle_option): Do not set preprocessor
7399         inhibit_warnings, warnings_are_errors, warn_system_headers,
7400         pedantic_errors or inhibit_warnings flags.
7401         (c_common_post_options): Do not check cpp_errors (parse_in).
7402         (c_common_finish): Do not output dependencies if there were
7403         errors.  Do not check return value of cpp_finish.
7404         * c-ppoutput.c (pp_file_change): Set input_location.
7405         * c-tree.h (c_cpp_error): Declare.
7406         * diagnostic.c (diagnostic_set_info_translated): Also initialize
7407         override_column.
7408         (diagnostic_build_prefix): Check override_column.
7409         * diagnostic.h (diagnostic_info): Add override_column field.
7410         (diagnostic_override_column): Define.
7411
7412 2009-03-28  Paolo Bonzini  <bonzini@gnu.org>
7413
7414         * c-common.c (c_expand_expr, c_staticp): Remove.
7415         * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
7416         * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
7417         COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
7418         * c-gimplify.c (gimplify_compound_literal_expr,
7419         optimize_compound_literals_in_ctor): Remove.
7420         (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
7421         * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
7422         * c-semantics.c (emit_local_var): Remove.
7423
7424         * langhooks-def.h (lhd_expand_expr): Remove.
7425         * langhooks.c (lhd_expand_expr): Remove.
7426         * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
7427
7428         * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
7429         handling from c-semantics.c; don't call into langhook.
7430         (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
7431         * gimplify.c (gimplify_compound_literal_expr,
7432         optimize_compound_literals_in_ctor): Move from c-gimplify.c.
7433         (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
7434         (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
7435         as was done in c-gimplify.c.
7436         * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
7437         * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
7438         Move from c-common.h.
7439         * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
7440
7441         * tree.c (staticp): Do not call langhook.
7442         * langhooks.c (lhd_staticp): Delete.
7443         * langhooks-def.h (lhd_staticp): Delete prototype.
7444         (LANG_HOOKS_STATICP): Delete.
7445         (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
7446
7447         * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
7448         instead of DECL_STMTs.
7449
7450 2009-03-29  Joseph Myers  <joseph@codesourcery.com>
7451
7452         PR c/456
7453         PR c/5675
7454         PR c/19976
7455         PR c/29116
7456         PR c/31871
7457         PR c/35198
7458         * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
7459         void_type_node.
7460         (fold_call_expr): Return a NOP_EXPR from folding rather than the
7461         contained expression.
7462         * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
7463         (c_common_truthvalue_conversion): Use c_save_expr.  Do not fold
7464         conditional expressions for C.
7465         (decl_constant_value_for_optimization): Move from
7466         decl_constant_value_for_broken_optimization in c-typeck.c.  Check
7467         whether optimizing and that the expression is a VAR_DECL not of
7468         array type instead of doing such checks in the caller.  Do not
7469         check pedantic.  Call gcc_unreachable for C++.
7470         * c-common.def (C_MAYBE_CONST_EXPR): New.
7471         * c-common.h (c_fully_fold, c_save_expr,
7472         decl_constant_value_for_optimization): New prototypes.
7473         (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
7474         C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
7475         EXPR_INT_CONST_OPERANDS): Define.
7476         * c-convert.c (convert): Strip nops from expression.
7477         * c-decl.c (groktypename): Take extra parameters expr and
7478         expr_const_operands.  Update call to grokdeclarator.
7479         (start_decl): Update call to grokdeclarator.  Add statement for
7480         expressions used in type of decl.
7481         (grokparm): Update call to grokdeclarator.
7482         (push_parm_decl): Update call to grokdeclarator.
7483         (build_compound_literal): Add parameter non_const and build a
7484         C_MAYBE_COSNT_EXPR if applicable.
7485         (grokdeclarator): Take extra parameters expr and
7486         expr_const_operands.  Track expressions used in declaration
7487         specifiers and declarators.  Fold array sizes and track whether
7488         they are constant expressions and whether they are integer
7489         constant expressions.
7490         (parser_xref_tag): Set expr and expr_const_operands fields in
7491         return value.
7492         (grokfield): Update call to grokdeclarator.
7493         (start_function): Update call to grokdeclarator.
7494         (build_null_declspecs): Set expr and expr_const_operands fields in
7495         return value.
7496         (declspecs_add_type): Handle expressions in typeof specifiers.
7497         * c-parser.c (c_parser_declspecs): Set expr and
7498         expr_const_operands fields for declaration specifiers.
7499         (c_parser_enum_specifier): Likewise.
7500         (c_parser_struct_or_union_specifier): Likewise.
7501         (c_parser_typeof_specifier): Likewise.  Update call to
7502         groktypename.  Fold expression as needed.  Return expressions with
7503         type instead of adding statements.
7504         (c_parser_attributes): Update calls to c_parser_expr_list.
7505         (c_parser_statement_after_labels): Fold expression before passing
7506         to objc_build_throw_stmt.
7507         (c_parser_condition): Fold expression.
7508         (c_parser_asm_operands): Fold expression.
7509         (c_parser_conditional_expression): Use c_save_expr.  Update call
7510         to build_conditional_expr.
7511         (c_parser_alignof_expression): Update call to groktypename.
7512         (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
7513         original_code.  Fold expression argument of va_arg.  Create
7514         C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
7515         argument to va_arg.  Update calls to groktypename.  Fold array
7516         index for offsetof.  Verify that first argument to
7517         __builtin_choose_expr has integer type.
7518         (c_parser_postfix_expression_after_paren_type): Update calls to
7519         groktypename and build_compound_literal.  Handle expressions with
7520         side effects in type name.
7521         (c_parser_postfix_expression_after_primary): Update call to
7522         c_parser_expr_list.  Set original_code for calls to
7523         __builtin_constant_p.
7524         (c_parser_expr_list): Take extra parameter fold_p.  Fold
7525         expressions if requested.
7526         (c_parser_objc_type_name): Update call to groktypename.
7527         (c_parser_objc_synchronized_statement): Fold expression.
7528         (c_parser_objc_receiver): Fold expression.
7529         (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
7530         (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
7531         c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
7532         * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
7533         (struct c_typespec): Add elements expr and expr_const_operands.
7534         (struct c_declspecs): Add elements expr and expr_const_operands.
7535         (groktypename, build_conditional_expr, build_compound_literal):
7536         Update prototypes.
7537         (in_late_binary_op): Declare.
7538         * c-typeck.c (note_integer_operands): New function.
7539         (in_late_binary_op): New variable.
7540         (decl_constant_value_for_broken_optimization): Move to c-common.c
7541         and rename to decl_constant_value_for_optimization.
7542         (default_function_array_conversion): Do not strip nops.
7543         (default_conversion): Do not call
7544         decl_constant_value_for_broken_optimization.
7545         (build_array_ref): Do not fold result.
7546         (c_expr_sizeof_expr): Fold operand.  Use C_MAYBE_CONST_EXPR for
7547         result when operand is a VLA.
7548         (c_expr_sizeof_type): Update call to groktypename.  Handle
7549         expressions included in type name.  Use C_MAYBE_CONST_EXPR for
7550         result when operand names a VLA type.
7551         (build_function_call): Update call to build_compound_literal.
7552         Only fold result for calls to __builtin_* functions.  Strip
7553         NOP_EXPR from INTEGER_CST returned from such functions.  Fold
7554         the function designator.
7555         (convert_arguments): Fold arguments.  Update call to
7556         convert_for_assignment.
7557         (build_unary_op): Handle increment and decrement of
7558         C_MAYBE_CONST_EXPR.  Move lvalue checks for increment and
7559         decrement earlier.  Fold operand of increment and decrement.
7560         Handle address of C_MAYBE_CONST_EXPR.  Only fold expression being
7561         built for integer operand.  Wrap returns that are INTEGER_CSTs
7562         without being integer constant expressions or that have integer
7563         constant operands without being INTEGER_CSTs.
7564         (lvalue_p): Handle C_MAYBE_CONST_EXPR.
7565         (build_conditional_expr): Add operand ifexp_bcp.  Track whether
7566         result is an integer constant expression or can be used in
7567         unevaluated parts of one and avoid folding and wrap as
7568         appropriate.  Fold operands before possibly doing -Wsign-compare
7569         warnings.
7570         (build_compound_expr): Wrap result for C99 if operands can be used
7571         in integer constant expressions.
7572         (build_c_cast): Update call to digest_init.  Do not ignore
7573         overflow from casting floating-point constants to integers.  Wrap
7574         results that could be confused with integer constant expressions,
7575         null pointer constants or floating-point constants.
7576         (c_cast_expr): Update call to groktypename.  Handle expressions
7577         included in type name.
7578         (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR.  Fold
7579         lhs inside possible SAVE_EXPR.  Fold RHS before assignment.
7580         Update calls to convert_for_assignment.
7581         (convert_for_assignment): Take new parameter
7582         null_pointer_constant.  Do not strip nops or call
7583         decl_constant_value_for_broken_optimization.  Set
7584         in_late_binary_op for conversions to boolean.
7585         (store_init_value): Update call to digest_init.
7586         (digest_init): Take new parameter null_pointer_constant.  Do not
7587         call decl_constant_value_for_broken_optimization.  pedwarn for
7588         initializers not constant expressions.  Update calls to
7589         convert_for_assignment.
7590         (constructor_nonconst): New.
7591         (struct constructor_stack): Add nonconst element.
7592         (really_start_incremental_init, push_init_level, pop_init_level):
7593         Handle constructor_nonconst and nonconst element.
7594         (set_init_index): Call constant_expression_warning for array
7595         designators.
7596         (output_init_element): Fold value.  Set constructor_nonconst as
7597         applicable.  pedwarn for initializers not constant expressions.
7598         Update call to digest_init.  Call constant_expression_warning
7599         where constant initializers are required.
7600         (process_init_element): Use c_save_expr.
7601         (c_finish_goto_ptr): Fold expression.
7602         (c_finish_return): Fold return value.  Update call to
7603         convert_for_assignment.
7604         (c_start_case): Fold switch expression.
7605         (c_process_expr_stmt): Fold expression.
7606         (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
7607         ensure statement expression is not evaluated in constant expression.
7608         (build_binary_op): Track whether results are integer constant
7609         expressions or may occur in such, disable folding and wrap results
7610         as applicable.  Fold operands for -Wsign-compare warnings unless
7611         in_late_binary_op.
7612         (c_objc_common_truthvalue_conversion): Handle results folded to
7613         integer constants that are not integer constant expressions.
7614         * doc/extend.texi: Document when typeof operands are evaluated,
7615         that condition of __builtin_choose_expr is an integer constant
7616         expression, and more about use of __builtin_constant_p in
7617         initializers.
7618
7619 2009-03-29  Richard Guenther  <rguenther@suse.de>
7620
7621         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
7622         propagate addresses of array references.
7623
7624 2009-03-29  Steven Bosscher  <steven@gcc.gnu.org>
7625
7626         * regmove.c (perhaps_ends_bb_p): Remove.
7627         (optimize_reg_copy_1): Don't call perhaps_ends_bb_p.  Get basic block
7628         from INSN and check that the main loop stays within that basic block.
7629         (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
7630         (regmove_forward_pass): Split out from regmove_optimize.  Use
7631         FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
7632         (regmove_backward_pass): Split out from regmove_optimize.  Use
7633         FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
7634         (regmove_optimize): Simplify.
7635
7636 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
7637
7638         PR target/39545
7639         * config/i386/i386.c (classify_argument): Ignore flexible array
7640         member in struct and warn ABI change.
7641
7642 2009-03-29  H.J. Lu  <hongjiu.lu@intel.com>
7643
7644         * config/i386/i386-protos.h (ix86_agi_dependent): New.
7645
7646         * config/i386/i386.c (ix86_agi_dependent): Rewrite.
7647         (ix86_adjust_cost): Updated.
7648
7649 2009-03-29  Jan Hubicka  <jh@suse.cz>
7650
7651         PR middle-end/28850
7652         * tree-pass.h (pass_cleanup_eh): New function.
7653         (remove_unreachable_regions): Break code handling RTL
7654         to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
7655         that can not be reached by runtime.
7656         (can_be_reached_by_runtime): New function.
7657         (label_to_region_map): New function.
7658         (num_eh_regions): New function.
7659         (rtl_remove_unreachable_regions): New function.
7660         (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
7661         (remove_eh_region): New function.
7662         * except.h: Include sbitmap and vecprim.
7663         (remove_eh_region, remove_unreachable_regions, label_to_region_map,
7664         num_eh_regions): Declare.
7665         * passes.c (init_optimization_passes): Schedule cleanup_eh.
7666         * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
7667         * tree-eh.c (tree_remove_unreachable_handlers): New function.
7668         (tree_empty_eh_handler_p): New function.
7669         (cleanup_empty_eh): New function.
7670         (cleanup_eh): New function.
7671         (pass_cleanup_eh): New function.
7672
7673 2009-03-29  Jan Hubicka  <jh@suse.cz>
7674
7675         * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
7676         for removed regions.
7677
7678 2009-03-29  Jan Hubicka  <jh@suse.cz>
7679
7680         * except.c (dump_eh_tree): Dump all datastructures.
7681
7682 2009-03-29  Jan Hubicka  <jh@suse.cz>
7683
7684         * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
7685         (duplicate_eh_regions_1): Likewise.
7686         (duplicate_eh_regions): Likewise; cleanup code gorwing the region
7687         vector; call EH verification.
7688         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
7689         Be ready for region being removed.
7690
7691 2009-03-29  Jan Hubicka  <jh@suse.cz>
7692
7693         * bitmap.c (bitmap_last_set_bit): New function.
7694         * bitmap.h (bitmap_last_set_bit): Declare.
7695
7696 2009-03-29  David Ayers  <ayers@fsfe.org>
7697
7698         PR objc/27377
7699         * c-typeck.c (build_conditional_expr): Emit ObjC warnings
7700         by calling objc_compare_types and surpress warnings about
7701         incompatible C pointers that are compatible ObjC pointers.
7702
7703 2009-03-29  Adam Nemet  <anemet@caviumnetworks.com>
7704
7705         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
7706         call initialize_inline_failed.
7707         (initialize_inline_failed): Move it from here ...
7708         * cgraph.c (initialize_inline_failed): ... to here.
7709         (cgraph_create_edge): Call initialize_inline_failed rather than
7710         setting inline_failed directly.
7711
7712 2009-03-29  Ben Elliston  <bje@au.ibm.com>
7713
7714         PR target/32542
7715         * sysv4.opt (msdata): Improve comment.
7716         * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
7717         * sysv4.h (SVR4_ASM_SPEC): Likewise.
7718
7719 2009-03-29  Ben Elliston  <bje@au.ibm.com>
7720
7721         PR target/30451
7722         * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
7723         load and store attributes.
7724
7725 2009-03-29  Ben Elliston  <bje@au.ibm.com>
7726
7727         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
7728         (ix86_init_builtins): Add built-in function __builtin_huge_valq.
7729         (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
7730         * doc/extend.texi (X86 Built-in Functions): Add index entries for
7731         __builtin_infq and __builtin_huge_valq.
7732
7733 2009-03-28  Anatoly Sokolov  <aesok@post.ru>
7734
7735         * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
7736         atmega8m1 devices.
7737         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
7738         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
7739
7740 2009-03-28  Xinliang David Li  <davidxl@google.com>
7741
7742         * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
7743         (do_dbg_cnt): New function.
7744
7745 2009-03-28  Jan Hubicka  <jh@suse.cz>
7746
7747         Merge from pretty-ipa:
7748
7749         2009-03-27  Jan Hubicka  <jh@suse.cz>
7750
7751         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
7752         * tree-pass.h (function_called_by_processed_nodes_p): Declare.
7753         * passes.c (function_called_by_processed_nodes_p): New.
7754         * ipa-pure-const.c (check_call): Fix handling of operands.
7755         (analyze_function): Dump debug output for skipped bodies.
7756         (local_pure_const): Use function_called_by_processed_nodes_p.
7757         * dwarf2out.c (reference_to_unused): Use output.
7758         * passes.c (do_per_function_toporder): Likewise.
7759
7760         2008-11-12  Jan Hubicka  <jh@suse.cz>
7761
7762         * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
7763         * ipa-pure-const.c (funct_state_d): Add can throw field; make
7764         state_set_in_source enum
7765         (check_decl): Ignore memory tags; do not set fake looping flags;
7766         dump diagnostics.
7767         (check_operand, check_tree, check_rhs_var, check_lhs_var,
7768         get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
7769         (check_call, analyze_function): Rewrite.
7770         (check_stmt): New.
7771         (add_new_function): Update call of analyze_function.
7772         (generate_summary): Add call of analyze_function.
7773         (propagate): Propagate can_throw; handle state_set_in_source correctly.
7774         (local_pure_const): New function.
7775         (pass_local_pure_const): New pass.
7776         * ipa-inline.c (inline_transform): Set after_inlining.
7777         * tree-eh.c (stmt_can_throw_external): New.
7778         * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
7779         work with aliasing built.
7780         * tree-flow.h (stmt_can_throw_external): New.
7781         * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
7782         and local pure/const pass in early and late optimization queue.
7783
7784 2009-03-28  Martin Jambor  <mjambor@suse.cz>
7785
7786         * fold-const.c (get_pointer_modulus_and_residue): New parameter
7787         allow_func_align.
7788         (fold_binary): Allow function decl aligment consideration is the
7789         second argument is integer constant one.
7790         * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
7791         (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
7792         with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
7793
7794 2009-03-28  Jan Hubicka  <jh@suse.cz>
7795
7796         * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
7797         * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
7798         * function.h (rtl_data): Add nothrow flag.
7799         * except.c (set_nothrow_function_flags): Use crtl->nothrow;
7800         set DECL_NOTHROW for AVAILABLE functions.
7801
7802 2009-03-28  Jakub Jelinek  <jakub@redhat.com>
7803
7804         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
7805         following vector keyword has expansion starting with pixel or bool
7806         keyword, expand vector to __vector and pixel or bool to __pixel or
7807         __bool.
7808
7809         PR c++/39554
7810         * opts.c (warning_disallowed_functions, warn_disallowed_functions,
7811         warn_if_disallowed_function_p): Removed.
7812         (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
7813         * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
7814         warning_if_disallowed_function_p.
7815         * flags.h (warn_if_disallowed_function_p,
7816         warn_disallowed_functions): Removed.
7817         * common.opt (Wdisallowed-function-list=): Removed.
7818         * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
7819
7820 2009-03-28  Richard Guenther  <rguenther@suse.de>
7821
7822         PR tree-optimization/38723
7823         * tree-ssa-pre.c (compute_avail): Add all default definitions to
7824         the entry block.
7825
7826 2009-03-28  Jan Hubicka  <jh@suse.cz>
7827
7828         * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
7829         test introduced by my previous patch.
7830
7831 2009-03-28  Richard Guenther  <rguenther@suse.de>
7832
7833         * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
7834         the PHIs value undefined.
7835
7836 2009-03-28  Jan Hubicka  <jh@suse.cz>
7837
7838         * tree-pass.h (pass_fixup_cfg): New pass.
7839         * ipa-inline.c (inline_transform): Set
7840         always_inline_functions_inlined/after_inlining.
7841         * tree-optimize.c (execute_fixup_cfg): Do not set them here.
7842         (pass_fixup_cfg): New pass.
7843         * passes.c (init_optimization_passes): Add fixup_cfg.
7844
7845 2009-03-28  Richard Guenther  <rguenther@suse.de>
7846
7847         PR tree-optimization/38458
7848         * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
7849         argument use the arguments copy-of value.
7850
7851 2009-03-28  Richard Guenther  <rguenther@suse.de>
7852
7853         PR tree-optimization/38180
7854         * tree-ssa-ccp.c (get_default_value): Simplify.
7855         (likely_value): Likewise.
7856         (surely_varying_stmt_p): Properly handle VOP case.
7857         (ccp_initialize): Likewise.
7858         (ccp_fold): Handle propagating through *&.
7859         (fold_const_aggregate_ref): Also handle decls.
7860
7861 2009-03-28  Jan Hubicka  <jh@suse.cz>
7862
7863         * cgraph.c (dump_cgraph_node): Add replace output flag by process.
7864         * cgraph.h (cgraph_node): Likewise.
7865         * cgraphunit.c (cgraph_process_new_functions): Set process flag.
7866         (cgraph_reset_node): Use process flag.
7867         (cgraph_mark_functions_to_output): Likewise.
7868         (cgraph_expand_function): Likewise.
7869         (cgraph_expand_all_functions): Likewise.
7870         (cgraph_output_in_order): Likewise.
7871         * dwarf2out.c (reference_to_unused): Likewise.
7872         * passes.c do_per_function_toporder): Likewise.
7873
7874 2009-03-28  Jan Hubicka  <jh@suse.cz>
7875
7876         Bring from lto-branch:
7877
7878         2008-09-03  Doug Kwan  <dougkwan@google.com>
7879
7880         * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
7881         enums instead of reason strings.
7882         * cgraph.c (cgraph_create_edge): Same.
7883         (cgraph_inline_failed_string): New function.
7884         * cgraph.h (cgraph_inline_failed_t): New enum type.
7885         (cgraph_inline_failed_string): New prototype.
7886         (struct cgraph_edge): Change type of INLINED_FAILED from constant
7887         char pointer to cgraph_inline_failed_t.
7888         (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
7889         (cgraph_default_inline_p): Ditto.
7890         * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
7891         to cgraph_inline_failed_t pointer.
7892         * cif-code.def: New file.
7893         * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
7894         reason string.
7895         (cgraph_check_inline_limits): Change type of REASON to pointer to
7896         cgraph_inline_failed_t.  Replace reason strings with enums.
7897         (cgraph_default_inline_p): Ditto.
7898         (cgraph_recursive_inlining_p): Ditto.
7899         (update_caller_keys): Change type of FAILED_REASON to
7900         cgraph_inline_failed_t.
7901         (cgraph_set_inline_failed): Change type of REASON to pointer to
7902         cgraph_inline_failed_t.  Call cgraph_inline_failed_string to
7903         convert enums to strings for text output.
7904         (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
7905         to be of type cgraph_inline_failed_t.  Replace reason strings with
7906         enums.  Call cgraph_inline_failed_string to covert enums
7907         to strings for text output.
7908         (cgraph_decide_inlining): Replace reason strings with enums.
7909         (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
7910         to cgraph_inline_failed_t type.  Call cgraph_inline_failed_string
7911         for text output.
7912         * tree-inline.c (expand_call_inline): Change type of REASON
7913         to cgraph_inline_failed_t.  Replace reason strings with enums.
7914         Call cgraph_inline_failed_string for text output.
7915         * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
7916         (cgraph.o): Ditto.
7917
7918 2009-03-28  Jan Hubicka  <jh@suse.cz>
7919
7920         * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
7921         cgraph_clone_node): Remove master clone handling.
7922         (cgraph_is_master_clone, cgraph_master_clone): Remove.
7923         * cgraph.h (master_clone): Remove.
7924         (cgraph_is_master_clone, cgraph_master_clone): Remove.
7925         * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
7926         (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
7927
7928 2009-03-28  Jan Hubicka  <jh@suse.cz>
7929
7930         * cgraph.c (cgraph_function_body_availability): Functions declared
7931         inline are always safe to assume that it is not going to be replaced.
7932
7933 2009-03-28  Richard Guenther  <rguenther@suse.de>
7934
7935         PR tree-optimization/38513
7936         * tree-ssa-pre.c (eliminate): Remove redundant stores.
7937         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
7938         EXC_PTR_EXPR and FILTER_EXPR.
7939         (get_ref_from_reference_ops): Likewise.
7940
7941 2009-03-28  Richard Guenther  <rguenther@suse.de>
7942
7943         PR tree-optimization/38968
7944         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
7945         Use FLOOR_MOD_EXPR to compute misalignment.
7946
7947 2009-03-28  Richard Guenther  <rguenther@suse.de>
7948
7949         PR tree-optimization/37795
7950         * tree.h (combine_comparisons): Declare.
7951         * fold-const.c (combine_comparisons): Export.
7952         * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
7953         comparisons.
7954         (ifcombine_iforif): Use combine_comparisons.
7955
7956 2009-03-28  Jan Hubicka  <jh@suse.cz>
7957
7958         * tree-eh.c (inlinable_call_p): New function.
7959         (make_eh_edges): Use it.
7960         (verify_eh_edges): Use it.
7961         (stmt_can_throw_external, stmt_can_throw_internal): Use it.
7962         * except.c (reachable_next_level): Add inlinable_function argument
7963         (sjlj_find_directly_reachable_regions): Update.
7964         (add_reachable_handler): Do not set saw_any_handlers.
7965         (reachable_next_level): Handle MUST_NOT_THROW more curefully.
7966         (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
7967         Add new inlinable call parameter.
7968         (can_throw_internal, can_throw_external): Update.
7969         * except.h (can_throw_internal_1, can_throw_external_1,
7970         foreach_reachable_handler): Update declaration.
7971
7972 2009-03-28  Joseph Myers  <joseph@codesourcery.com>
7973
7974         * config/arm/t-arm-coff, config/h8300/coff.h,
7975         config/i386/i386-aout.h, config/i386/i386-coff.h,
7976         config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
7977         config/pdp11/2bsd.h, config/rs6000/aix41.h,
7978         config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
7979         fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
7980         scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
7981         sys-types.h: Remove.
7982         * Makefile.in: Remove protoize and fixproto support and references
7983         in comments.
7984         (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
7985         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
7986         Remove.
7987         (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
7988         (MOSTLYCLEANFILES): Remove protoize$(exeext) and
7989         unprotoize$(exeext).
7990         (rest.encap): Don't depend on $(STMP_FIXPROTO)
7991         (.PHONY): Don't depend on proto.
7992         (libgcc-support): Don't depend on $(STMP_FIXPROTO).
7993         (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
7994         protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
7995         deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
7996         build/gen-protos.o, build/scan.o, xsys-protos.h,
7997         build/fix-header$(build_exeext), build/fix-header.o,
7998         build/scan-decls.o, fixhdr.ready, stmp-fixproto,
7999         stmp-install-fixproto): Remove.
8000         (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
8001         SYSCALLS.c or fixproto files.
8002         (install-common): Don't install protoize.
8003         (install-headers-tar, install-headers-cpio, install-headers-cp):
8004         Don't depend on $(STMP_FIXPROTO).
8005         (install-mkheaders): Don't depend on $(STMP_FIXPROTO).  Don't
8006         install fixproto files or write out fixproto settings.
8007         (uninstall): Don't uninstall protoize.
8008         * config.gcc (use_fixproto): Remove.
8009         (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
8010         i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
8011         rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
8012         * config/m32r/t-linux (STMP_FIXPROTO): Remove.
8013         * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
8014         * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
8015         * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
8016         * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
8017         * config/t-svr4 (FIXPROTO_DEFINES): Remove.
8018         * config/t-vxworks (STMP_FIXPROTO): Remove.
8019         * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
8020         STMP_FIXPROTO): Remove.
8021         * config.in, configure: Regenerate.
8022         * crtstuff.c (gid_t, uid_t): Don't undefine.
8023         * doc/install.texi: Change m68k-coff to m68k-elf in example.
8024         (arm-*-coff, arm-*-aout: Remove target entries.
8025         (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
8026         Remove mention of AIX 4.1.
8027         (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
8028         * doc/invoke.texi (Running Protoize): Remove.
8029         * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
8030         (Protoize Caveats): Remove.
8031         * tsystem.h: Update comments on headers assumed to exist.
8032
8033 2009-03-27  Vladimir Makarov  <vmakarov@redhat.com>
8034
8035         * genautomata.c: Add a new year to the copyright.  Add a new
8036         reference.
8037         (struct insn_reserv_decl): Add comments for member bypass_list.
8038         (find_bypass): Remove.
8039         (insert_bypass): New.
8040         (process_decls): Use insert_bypass.
8041         (output_internal_insn_latency_func): Output all bypasses with the
8042         same input insn in one switch case.
8043
8044         * rtl.def (define_bypass): Describe bypass choice.
8045         * doc/md.texi (define_bypass): Ditto.
8046
8047 2009-03-27  Richard Guenther  <rguenther@suse.de>
8048
8049         * gimplify.c (mark_addressable): Export.
8050         * tree-flow.h (mark_addressable): Declare.
8051         * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
8052         * tree-ssa.c (verify_phi_args): Verify that address taken
8053         variables have TREE_ADDRESSABLE set.
8054
8055 2009-03-27  Richard Guenther  <rguenther@suse.de>
8056
8057         * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
8058         (build_fold_addr_expr_with_type): ... this.  Remove in_fold handling.
8059         Do not mark decls TREE_ADDRESSABLE.
8060         (build_fold_addr_expr): Adjust.
8061         (fold_addr_expr): Remove.
8062         (fold_unary): Use build_fold_addr_expr.
8063         (fold_comparison): Likewise.
8064         (split_address_to_core_and_offset): Likewise.
8065         * coverage.c (tree_coverage_counter_addr): Mark the array decl
8066         TREE_ADDRESSABLE.
8067         * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
8068         (gimplify_modify_expr_to_memcpy): Mark source and destination
8069         addressable.
8070         * omp-low.c (create_omp_child_function): Mark the object decl
8071         TREE_ADDRESSABLE.
8072         (lower_rec_input_clauses): Mark the var we take the address of
8073         TREE_ADDRESSABLE.
8074         (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
8075
8076 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8077
8078         PR middle-end/39315
8079         * cfgexpand.c (expand_one_stack_var_at): Change alignment
8080         limit to MAX_SUPPORTED_STACK_ALIGNMENT.
8081
8082 2009-03-27  Richard Guenther  <rguenther@suse.de>
8083
8084         PR tree-optimization/39120
8085         * tree-ssa-structalias.c (handle_rhs_call): Fill out return
8086         constraints.
8087         (handle_lhs_call): Process return constraints.  Add escape
8088         constraints if necessary.
8089         (handle_const_call): Fill out return constraints.  Make nested
8090         case more precise.  Avoid consttmp if possible.
8091         (handle_pure_call): Fill out return constraints.  Avoid
8092         callused if possible.
8093         (find_func_aliases): Simplify call handling.
8094
8095 2009-03-27  Richard Guenther  <rguenther@suse.de>
8096
8097         PR tree-optimization/39120
8098         * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
8099         as a representative.
8100         (solve_graph): Do propagate CALLUSED.
8101         (handle_pure_call): Use a scalar constraint from CALLUSED for
8102         the return value.
8103         (find_what_p_points_to): CALLUSED shall not appear in poins-to
8104         solutions.
8105
8106 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8107
8108         PR c/39323
8109         * c-common.c (handle_aligned_attribute): Properly check alignment
8110         overflow.  Use (1U << i) instead of (1 << i).
8111
8112         * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
8113
8114         * expr.h (get_mem_align_offset): Updated.
8115
8116         * tree.h (tree_decl_common): Change align to "unsigned int" and
8117         move it before pointer_alias_set.
8118
8119 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8120             Jakub Jelinek  <jakub@redhat.com>
8121
8122         PR target/38034
8123         * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
8124         gr_register_operand with gr_reg_or_0_operand.
8125         (cmpxchg_rel_di): Likewise.
8126         (sync_lock_test_and_set<mode>): Likewise.
8127
8128 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8129
8130         * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
8131         (true_regnum): Likewise.
8132
8133         * rtlanal.c (subreg_info): Moved to ...
8134         * rtl.h (subreg_info): Here.  New.
8135         (subreg_get_info): New.
8136
8137         * rtlanal.c (subreg_get_info): Make it extern.
8138
8139 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8140
8141         PR target/39472
8142         * config/i386/i386.c (ix86_abi): New.
8143         (override_options): Handle -mabi=.
8144         (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
8145         (ix86_call_abi_override): Likewise.
8146         (init_cumulative_args): Likewise.
8147         (function_arg_advance): Likewise.
8148         (function_arg_64): Likewise.
8149         (function_arg): Likewise.
8150         (ix86_pass_by_reference): Likewise.
8151         (ix86_function_value_regno_p): Likewise.
8152         (ix86_build_builtin_va_list_abi): Likewise.
8153         (setup_incoming_varargs_64): Likewise.
8154         (is_va_list_char_pointer): Likewise.
8155         (ix86_init_machine_status): Likewise.
8156         (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
8157         (ix86_function_type_abi): Return enum calling_abi.  Rewrite
8158         for 64bit.  Replace DEFAULT_ABI with ix86_abi.
8159         (ix86_function_abi): Make it static and return enum calling_abi.
8160         (ix86_cfun_abi): Return enum calling_abi.  Replace DEFAULT_ABI
8161         with ix86_abi.
8162         (ix86_fn_abi_va_list): Updated.
8163
8164         * config/i386/i386.h (ix86_abi): New.
8165         (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
8166         (CONDITIONAL_REGISTER_USAGE): Likewise.
8167         (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
8168         (machine_function): Likewise.
8169
8170         * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
8171         with ix86_abi.
8172         * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
8173         (STACK_BOUNDARY): Likewise.
8174         * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
8175
8176         * config/i386/i386.opt (mabi=): New.
8177
8178         * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
8179         return enum calling_abi.
8180         (ix86_function_type_abi): Likewise.
8181         (ix86_function_abi): Removed.
8182
8183         * doc/invoke.texi: Document -mabi= option for x86.
8184
8185 2009-03-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8186
8187         * builtins.c (real_dconstp): Delete.
8188         (fold_builtin_logarithm): Remove inaccurate log(e) special case.
8189
8190 2009-03-27  Dodji Seketeli  <dodji@redhat.com>
8191             Jakub Jelinek  <jakub@redhat.com>
8192
8193         PR debug/37959
8194         * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
8195         (gen_subprogram_die): When a function is explicit, generate the
8196         DW_AT_explicit attribute.
8197         * langhooks.h (struct lang_hooks_for_decls): Add
8198         function_decl_explicit_p langhook.
8199         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
8200         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
8201
8202 2009-03-27  Jakub Jelinek  <jakub@redhat.com>
8203
8204         * builtins.c (fold_builtin_memory_op): Optimize memmove
8205         into memcpy if we can prove source and destination don't overlap.
8206
8207         * tree-inline.c: Include gt-tree-inline.h.
8208         (clone_fn_id_num): New variable.
8209         (clone_function_name): New function.
8210         (tree_function_versioning): Use it.
8211         * Makefile.in (GTFILES): Add tree-inline.c.
8212
8213 2009-03-27  Mark Mitchell  <mark@codesourcery.com>
8214
8215         * BASE-VER: Change to 4.5.0.
8216
8217 2009-03-27  Xinliang David Li  <davidxl@google.com>
8218
8219         PR tree-optimization/39557
8220         * tree-ssa.c (warn_uninitialized_vars): free postdom info.
8221
8222 2009-03-27  Xinliang David Li  <davidxl@google.com>
8223
8224         PR tree-optimization/39548
8225         * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
8226         candidate check.
8227
8228 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8229
8230         * c-common.c (pointer_int_sum): Use %wd on return from
8231         tree_low_cst.
8232
8233 2009-03-27  H.J. Lu  <hongjiu.lu@intel.com>
8234
8235         * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
8236         on return from tree_low_cst.
8237
8238 2009-03-27  Andrew Pinski  <andrew_pinski@playstation.sony.com>
8239
8240         PR c++/36799
8241         * ginclude/stdarg.h (va_copy): Define also for
8242         __GXX_EXPERIMENTAL_CXX0X__.
8243
8244 2009-03-27  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
8245
8246         PR c++/35652
8247         * builtins.h (c_strlen): Do not warn here.
8248         * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
8249         * c-common.c (pointer_int_sum): Take an explicit location.
8250         Warn about offsets out of bounds.
8251         * c-common.h (pointer_int_sum): Adjust declaration.
8252
8253 2009-03-26  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8254
8255         * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
8256         markup glitch.
8257
8258 2009-03-26  Jakub Jelinek  <jakub@redhat.com>
8259
8260         PR c++/39554
8261         * opts.c (warn_if_disallowed_function_p): Don't assume
8262         get_callee_fndecl must return non-NULL.
8263
8264 2009-03-26  Vladimir Makarov  <vmakarov@redhat.com>
8265
8266         PR rtl-optimization/39522
8267         * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
8268         when reg_reloaded_valid is set.
8269
8270 2009-03-26  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8271
8272         * config/spu/divv2df3.c: New file.
8273         * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
8274         (DPBIT_FUNCS): Filter out _div_df.
8275
8276 2009-03-26  Bernd Schmidt  <bernd.schmidt@analog.com>
8277
8278         * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
8279         a jump insn, count that jump in the distance to the loop start.
8280
8281 2009-03-25  Kaz Kojima  <kkojima@gcc.gnu.org>
8282
8283         PR target/39523
8284         * config/sh/sh.c (calc_live_regs): Fix condition for global
8285         registers except PIC_OFFSET_TABLE_REGNUM.
8286
8287 2009-03-25  Kai Tietz  <kai.tietz@onevision.com>
8288
8289         PR/39518
8290         * doc/invoke.texi (-mconsole): New.
8291         (-mcygwin): New.
8292         (-mno-cygwin): New.
8293         (-mdll): New.
8294         (-mnop-fun-dllimport): New.
8295         (-mthread): New.
8296         (-mwin32): New.
8297         (-mwindows): New.
8298         (sub section "i386 and x86-64 Windows Options"): New.
8299
8300 2009-03-25  Ralf Corsépius  <ralf.corsepius@rtems.org>
8301
8302         * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
8303         * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
8304
8305 2009-03-25  Richard Guenther  <rguenther@suse.de>
8306
8307         PR middle-end/39497
8308         * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
8309         of -Wno-error.
8310
8311 2009-03-25  Andrey Belevantsev  <abel@ispras.ru>
8312
8313         * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
8314         neither of haifa/selective schedulers are working.
8315
8316 2009-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8317
8318         * doc/invoke.texi (Debugging Options): Fix description of
8319         -fno-merge-debug-strings.
8320
8321 2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
8322
8323         * config/cris/libgcc.ver: New version-script.
8324         * config/cris/t-linux (SHLIB_MAPFILES): Use it.
8325
8326         * configure.ac <GAS features, nop mnemonic>: Add pattern
8327         crisv32-*-* for "nop".
8328         <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
8329         * configure: Regenerate.
8330
8331 2009-03-24  Ira Rosen  <irar@il.ibm.com>
8332
8333         PR tree-optimization/39529
8334         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
8335         mark_sym_for_renaming for the tag copied to the new vector
8336         pointer.
8337
8338 2009-03-24  Arthur Loiret  <aloiret@debian.org>
8339
8340         * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
8341         * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
8342         EXTRA_SPEC_FUNCTIONS.
8343         (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
8344         * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
8345         * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
8346         -march and -mtune options.
8347
8348 2009-03-24  Ralf Corsépius  <ralf.corsepius@rtems.org>
8349
8350         * config/m68k/t-rtems: Add m5329 multilib.
8351
8352 2009-03-24  Dodji Seketeli  <dodji@redhat.com>
8353             Jakub Jelinek  <jakub@redhat.com>
8354
8355         PR debug/39524
8356         * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
8357         nodes.
8358
8359 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
8360
8361         PR c/39495
8362         * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
8363         instead of c_parser_expression_conv, if original_code isn't one of the
8364         4 allowed comparison codes, fail.
8365
8366 2009-03-23  Richard Guenther  <rguenther@suse.de>
8367
8368         * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
8369         * tree.h (struct tree_type): Likewise.
8370         * reload.h (struct insn_chain): Likewise.
8371         * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
8372         * function.h (struct function): Likewise.
8373         * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
8374
8375 2009-03-23  Jakub Jelinek  <jakub@redhat.com>
8376
8377         PR tree-optimization/39516
8378         * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
8379
8380 2009-03-23  Bingfeng Mei  <bmei@broadcom.com>
8381
8382         * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
8383         should be set true if BITS_PER_WORD of target is bigger than 32
8384
8385 2009-03-22  Hans-Peter Nilsson  <hp@axis.com>
8386
8387         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
8388         Translate -B-options to -rpath-link.  Correct existing
8389         rpath-link and conditionalize on !nostdlib.
8390
8391 2009-03-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8392
8393         * doc/extend.texi (Function Attributes, Variable Attributes):
8394         Fix typos.
8395         * doc/invoke.texi (Debugging Options, Optimize Options)
8396         (i386 and x86-64 Options, MCore Options): Likewise.
8397
8398 2009-03-20  Jakub Jelinek  <jakub@redhat.com>
8399
8400         PR debug/37890
8401         * dwarf2out.c (gen_namespace_die): Add context_die argument and use
8402         it for block local namespace aliases.
8403         (gen_decl_die): Pass context_die to gen_namespace_die.
8404
8405 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
8406
8407         PR c/39495
8408         * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
8409         minimum or maximum value.
8410
8411 2009-03-19  Alexandre Oliva  <aoliva@redhat.com>
8412
8413         * reginfo.c (globalize_reg): Recompute derived reg sets.
8414
8415 2009-03-19  Ozkan Sezer  <sezeroz@gmail.com>
8416
8417         PR target/39063
8418         * libgcc2.c (mprotect): Do not use signed arguments for
8419         VirtualProtect, use DWORD arguments.  Also fix the 'may
8420         be used uninitialized' warning for the np variable.
8421
8422 2009-03-19  Jakub Jelinek  <jakub@redhat.com>
8423
8424         PR target/39496
8425         * config/i386/i386.c (ix86_function_regparm): Don't optimize local
8426         functions using regparm calling conventions when not optimizing.
8427         (ix86_function_sseregparm): Similarly for sseregparm calling
8428         conventions.
8429
8430 2009-03-19  Li Feng  <nemokingdom@gmail.com>
8431
8432         PR middle-end/39500
8433         * tree-data-ref.c (analyze_subscript_affine_affine): There is no
8434         dependence if the first conflict is after niter iterations.
8435
8436 2009-03-19  Hans-Peter Nilsson  <hp@axis.com>
8437
8438         PR middle-end/38609
8439         * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
8440         functions with dynamic stack-pointer adjustments.
8441
8442 2009-03-19  Ben Elliston  <bje@au.ibm.com>
8443
8444         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
8445         option; change to -msdata=data.
8446
8447 2009-03-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8448
8449         * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
8450         and -fopenmp.
8451
8452 2009-03-18  Eric Botcazou  <ebotcazou@adacore.com>
8453
8454         PR target/35180
8455         * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
8456
8457 2009-03-18  Sandra Loosemore  <sandra@codesourcery.com>
8458
8459         * doc/invoke.texi (Code Gen Options): Expand discussion of
8460         -fno-common.
8461
8462 2009-03-18  Jakub Jelinek  <jakub@redhat.com>
8463
8464         * dse.c (struct group_info): Reorder fields for 64-bit hosts.
8465         * matrix-reorg.c (struct matrix_info): Likewise.
8466         * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
8467         * rtl.h (struct mem_attrs): Likewise.
8468         * df.h (struct df): Likewise.
8469         * tree-data-ref.h (struct data_dependence_relation): Likewise.
8470         * ira-int.h (struct ira_allocno): Likewise.
8471         * df-scan.c (struct df_collection_rec): Likewise.
8472         * ira.c (struct equivalence): Likewise.
8473         * function.c (struct temp_slot): Likewise.
8474         * cfgloop.h (struct loop): Likewise.
8475
8476         PR debug/39485
8477         * function.c (use_register_for_decl): When not optimizing, disregard
8478         register keyword for variables with types containing methods.
8479
8480 2009-03-18  Sebastian Pop  <sebastian.pop@amd.com>
8481
8482         PR middle-end/39447
8483         * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
8484         (is_simple_operand): Call contains_component_ref_p before calling data
8485         reference analysis that would fail on COMPONENT_REFs.
8486
8487         * tree-vrp.c (search_for_addr_array): Fix formatting.
8488
8489 2009-03-18  Richard Guenther  <rguenther@suse.de>
8490
8491         * tree-vect-transform.c (vect_loop_versioning): Fold the
8492         generated comparisons.
8493         * tree-vectorizer.c (set_prologue_iterations): Likewise.
8494         (slpeel_tree_peel_loop_to_edge): Likewise.
8495
8496 2009-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8497
8498         PR middle-end/37805
8499         * opts.c (print_specific_help): In addition to `undocumented',
8500         accept `separate' and `joined' flags if passed alone.  Describe
8501         output by the first matched one of those.
8502         (common_handle_option): Skip over empty strings.
8503         * gcc.c (display_help): Fix help string for `--help='.
8504         * doc/invoke.texi (Option Summary, Overall Options): With
8505         `--help=', classes and qualifiers can both be repeated, but
8506         only the latter can be negated.  One should not pass only
8507         negated qualifiers.  Fix markup and examples.
8508
8509         Revert
8510         2008-10-14  Jakub Jelinek  <jakub@redhat.com>
8511         PR middle-end/37805
8512         * opts.c (common_handle_option): Don't ICE on -fhelp=joined
8513         and -fhelp=separate.
8514
8515 2009-03-17  Jing Yu  <jingyu@google.com>
8516
8517         PR middle-end/39378
8518         * function.h (struct rtl_data): Move is_thunk from here...
8519         (struct function): ...to here.
8520         * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
8521         * varasm.c (assemble_start_function): Change is_thunk from crtl to
8522         cfun.
8523         * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
8524         cfun.
8525         (alpha_does_function_need_gp, alpha_start_function): Likewise.
8526         (alpha_output_function_end_prologue): Likewise.
8527         (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
8528         * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
8529         (rs6000_output_function_epilogue): Likewise.
8530         * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
8531
8532 2009-03-17  Uros Bizjak  <ubizjak@gmail.com>
8533
8534         PR target/39482
8535         * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
8536         from different units in a single alternative.
8537         (*truncdfsf_i387): Ditto.
8538         (*truncxfsf2_mixed): Ditto.
8539         (*truncxfdf2_mixed): Ditto.
8540
8541 2009-03-17  Jakub Jelinek  <jakub@redhat.com>
8542
8543         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
8544         non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
8545
8546         PR debug/39474
8547         * tree-ssa-live.c (remove_unused_locals): Don't remove local
8548         unused non-artificial variables when not optimizing.
8549
8550         PR debug/39471
8551         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
8552         DW_TAG_imported_module even if decl is IMPORTED_DECL with
8553         NAMESPACE_DECL in its DECL_INITIAL.
8554
8555         PR middle-end/39443
8556         * optabs.c (set_user_assembler_libfunc): New function.
8557         * expr.h (set_user_assembler_libfunc): New prototype.
8558         * c-common.c: Include libfuncs.h.
8559         (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
8560         for memcmp, memset, memcpy, memmove and abort.
8561         * Makefile.in (c-common.o): Depend on libfuncs.h.
8562
8563         PR debug/39412
8564         * dwarf2out.c (gen_inlined_enumeration_type_die,
8565         gen_inlined_structure_type_die, gen_inlined_union_type_die,
8566         gen_tagged_type_instantiation_die): Removed.
8567         (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
8568         do nothing.
8569
8570 2009-03-17  Janis Johnson  <janis187@us.ibm.com>
8571
8572         PR testsuite/38526
8573         * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
8574         its use.
8575         (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
8576         (check-parallel-%): Ditto.
8577         (check-consistency): Ditto.
8578
8579 2009-03-17  Kai Tietz  <kai.tietz@onevision.com>
8580
8581         * ipa-struct-reorg.c (create_general_new_stmt): Initialize
8582         local variable rhs by NULL_TREE.
8583
8584 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8585
8586         PR target/39477
8587         * doc/extend.texi: Correct register behavior for regparm on Intel 386.
8588
8589 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8590
8591         PR target/39476
8592         * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
8593
8594 2009-03-17  H.J. Lu  <hongjiu.lu@intel.com>
8595
8596         PR target/39473
8597         * config/i386/i386.c (ix86_expand_call): Check extra clobbers
8598         for ms->sysv ABI calls only in 64bit mode.
8599
8600         * config/i386/i386.md (untyped_call): Support 32bit.
8601
8602 2009-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8603
8604         * doc/extend.texi: Replace x86_65 with x86_64.
8605
8606 2009-03-16  Jakub Jelinek  <jakub@redhat.com>
8607
8608         PR tree-optimization/39455
8609         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
8610         mismatches for POINTER_TYPE_P (type).
8611         (number_of_iterations_le): Likewise.
8612
8613 2009-03-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
8614
8615         * config/picochip/picochip.c: Removed profiling support.
8616         * config/picochip/picochip.md: Removed profiling instruction.
8617         * config/picochip/picochip.h: Removed profiling builtin.
8618
8619 2009-03-16  Joseph Myers  <joseph@codesourcery.com>
8620
8621         * doc/install.texi (--with-host-libstdcxx): Document.
8622
8623 2009-03-14  Anatoly Sokolov  <aesok@post.ru>
8624
8625         PR target/34299
8626         * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
8627         generate a warning if the function name does not begin with
8628         "__vector" and the function has either the 'signal' or 'interrupt'
8629         attribute, from here to ...
8630         (avr_declare_function_name): ...here. New function.
8631         * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
8632         * config/avr/avr-protos.h (avr_declare_function_name): Declare.
8633
8634 2009-03-14  Jakub Jelinek  <jakub@redhat.com>
8635
8636         PR bootstrap/39454
8637         * cse.c (fold_rtx): Don't modify original const_arg1 when
8638         canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
8639         separate variable instead.
8640         * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
8641         from out of range shift counts.
8642         (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
8643
8644 2009-03-13  Catherine Moore  <clm@codesourcery.com>
8645
8646         * config/i386/x-mingw32 (host-mingw32.o): Replace
8647         diagnostic.h with $(DIAGNOSTIC_H).
8648
8649 2009-03-12  Jakub Jelinek  <jakub@redhat.com>
8650
8651         PR target/39431
8652         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
8653         predicate.
8654         * config/i386/sync.md (sync_compare_and_swap<mode>,
8655         sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
8656         if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
8657         into a register.
8658         (sync_double_compare_and_swapdi_pic,
8659         sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
8660         cmpxchg8b_pic_memory_operand instead of just memory_operand.
8661
8662 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
8663
8664         PR target/39445
8665         * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
8666
8667 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
8668
8669         PR target/39327
8670         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
8671         (avx_addsubv4df3): Likewise.
8672         (*avx_addsubv4sf3): Likewise.
8673         (sse3_addsubv4sf3): Likewise.
8674
8675 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
8676
8677         PR target/38824
8678         * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
8679
8680 2009-03-12  Vladimir Makarov  <vmakarov@redhat.com>
8681
8682         PR debug/39432
8683         * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
8684         * ira-conflicts.c (ira_build_conflicts): Prohibit call used
8685         registers for allocnos created from user-defined variables.
8686
8687 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8688
8689         PR target/39181
8690         * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
8691         of non-integer mode as well.
8692
8693 2009-03-11  Adam Nemet  <anemet@caviumnetworks.com>
8694
8695         * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
8696         for functions for which the parameter types are unknown.
8697
8698 2009-03-11  Jakub Jelinek  <jakub@redhat.com>
8699
8700         PR target/39137
8701         * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
8702         * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
8703         * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
8704         * config/i386/i386.c (ix86_local_alignment): For
8705         -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
8706         long long variables on the stack to avoid dynamic realignment.
8707         Allow the first argument to be a decl rather than type.
8708         * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
8709
8710 2009-03-11  Nick Clifton  <nickc@redhat.com>
8711
8712         PR target/5362
8713         * config/mcore/mcore.opt: Remove deprecated m4align and m8align
8714         options.
8715         Add description to mno-lsim option.
8716         * config/mcore/mcore.h: Remove comment about deprecated m4align
8717         option.
8718         (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
8719         * doc/invoke.texi: Add description of mno-lsim and
8720         mstack-increment options.
8721
8722         * config/fr30/fr30.opt: Document the -mno-lsim option.
8723         * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
8724         and -mno-lsim options.
8725
8726 2009-03-11  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8727
8728         * fold-const.c (fold_comparison): Only call fold_inf_compare
8729         if the mode supports infinities.
8730
8731 2009-03-11  Jason Merrill  <jason@redhat.com>
8732
8733         PR debug/39086
8734         * tree-nrv.c (tree_nrv): Don't do this optimization if the front
8735         end already did.  Notice GIMPLE_CALL modifications of the result.
8736         Don't copy debug information from an ignored decl or a decl from
8737         another function.
8738
8739 2009-03-10  Richard Guenther  <rguenther@suse.de>
8740             Nathan Froyd  <froydnj@codesourcery.com>
8741
8742         PR middle-end/37850
8743         * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
8744         (__divMODE3): Likewise.
8745
8746 2009-03-09  Jakub Jelinek  <jakub@redhat.com>
8747
8748         PR tree-optimization/39394
8749         * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
8750         DECL_SIZE_UNIT of variable length FIELD_DECLs.
8751
8752 2009-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8753
8754         * recog.c (verfiy_changes): Disallow renaming of hard regs in
8755         inline asms for register asm ("") declarations.
8756
8757 2009-03-09  Eric Botcazou  <ebotcazou@adacore.com>
8758
8759         * fold-const.c (fold_unary): Fix comment.
8760
8761 2009-03-07  Jan Hubicka  <jh@suse.cz>
8762
8763         PR target/39361
8764         * tree-inline.c (setup_one_parameter): Do replacement of const
8765         argument by constant in SSA form.
8766
8767 2009-03-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8768
8769         PR middle-end/38028
8770         * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
8771         determine alignment passed to assign_stack_local.
8772         (assign_parms_unsplit_complex): Likewise.
8773         * except.c (sjlj_build_landing_pads): Likewise.
8774
8775 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
8776
8777         PR middle-end/39360
8778         * tree-flow.h (add_referenced_var): Return bool instead of void.
8779         * tree-dfa.c (add_referenced_var): Return result of
8780         referenced_var_check_and_insert call.
8781         * tree-inline.c (expand_call_inline): Call add_referenced_var instead
8782         of referenced_var_check_and_insert.
8783
8784         PR debug/39372
8785         * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
8786         (gen_variable_die): Emit DW_AT_location on abstract static variable's
8787         DIE, don't emit it if abstract origin already has it.
8788         * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
8789         BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
8790
8791 2009-03-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8792
8793         * genpreds.c (needs_variable): Fix parentheses at variable name
8794         detection.
8795         (write_tm_constrs_h): Indent generated code.
8796
8797 2009-03-06  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8798
8799         * doc/extend.texi (Function Attributes): Add documentation
8800         for isr attributes.
8801
8802 2009-03-06  Jakub Jelinek  <jakub@redhat.com>
8803
8804         PR debug/39387
8805         * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
8806         take locus from its DECL_SOURCE_LOCATION instead of input_location.
8807
8808 2009-03-05  Bernd Schmidt  <bernd.schmidt@analog.com>
8809
8810         * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
8811         the loop as bad.
8812
8813 2009-03-05  Jakub Jelinek  <jakub@redhat.com>
8814
8815         PR debug/39379
8816         * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
8817         with blocks containing IMPORTED_DECLs in BLOCK_VARS.
8818
8819 2009-03-05  Uros Bizjak  <ubizjak@gmail.com>
8820
8821         * config/i386/i386.md (R8_REG, R9_REG): New constants.
8822         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
8823         constants instead of magic numbers.
8824         (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
8825         (QI_REG_P): Ditto.
8826         * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
8827         (x86_64_ms_abi_int_parameter_registers): Ditto.
8828         (x86_64_int_return_registers): Ditto.
8829         (ix86_maybe_switch_abi): Ditto.
8830         (ix86_expand_call): Ditto for clobbered_registers array.
8831         (ix86_hard_regno_mode_ok): Ditto.
8832         (x86_extended_QIreg_mentioned_p): Ditto.
8833
8834 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
8835
8836         PR tree-optimization/39349
8837         * cse.c (cse_insn): Fix loop to stop at VOIDmode.
8838
8839         * combine.c (gen_lowpart_for_combine): Use omode when generating
8840         clobber.
8841
8842 2009-03-04  J"orn Rennecke  <joern.rennecke@arc.com>
8843
8844         PR rtl-optimization/39235
8845         * loop-iv.c (get_simple_loop_desc): Use XCNEW.
8846
8847 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
8848
8849         * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
8850
8851 2009-03-04  Richard Guenther  <rguenther@suse.de>
8852
8853         PR tree-optimization/39362
8854         * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
8855         that occur in abnormal PHIs should be varying.
8856
8857 2009-03-04  Zdenek Dvorak  <ook@ucw.cz>
8858
8859         * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
8860         Extend comments.
8861         (simple_iv):  Take loop as an argument instead of statement.
8862         * tree-scalar-evolution.h (simple_iv): Declaration changed.
8863         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
8864         to simple_iv.
8865         * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
8866         Ditto.
8867         * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
8868         * matrix-reorg.c (analyze_transpose): Ditto.
8869         * tree-data-ref.c (dr_analyze_innermost): Ditto.
8870         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
8871         * tree-predcom.c (ref_at_iteration): Ditto.
8872         * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
8873
8874 2009-03-04  Richard Guenther  <rguenther@suse.de>
8875
8876         PR tree-optimization/39358
8877         * tree-ssa-structalias.c (do_sd_constraint): Fix check for
8878         escaped_id and callused_id.
8879         (solve_graph): Likewise.
8880
8881 2009-03-04  Richard Guenther  <rguenther@suse.de>
8882
8883         PR tree-optimization/39339
8884         * tree-sra.c (try_instantiate_multiple_fields): Make it
8885         no longer ICE on the above.
8886
8887 2009-03-03  Joseph Myers  <joseph@codesourcery.com>
8888
8889         * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
8890         that fits within Pmode.
8891
8892 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
8893
8894         PR middle-end/10109
8895         * tm.texi (LIBCALL_VALUE): Update description.
8896
8897 2009-03-03  Steve Ellcey  <sje@cup.hp.com>
8898
8899         PR middle-end/34443
8900         * doc/extend.texi (section): Update description.
8901
8902 2009-03-03  H.J. Lu  <hongjiu.lu@intel.com>
8903
8904         PR middle-end/39345
8905         * tree-inline.c (remapped_type): New.
8906         (can_be_nonlocal): Call remapped_type instead of remap_type.
8907
8908 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
8909
8910         PR fortran/39354
8911         * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
8912         TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
8913
8914 2009-03-03  Richard Guenther  <rguenther@suse.de>
8915
8916         PR middle-end/39272
8917         * tree.c (tree_nonartificial_location): New function.
8918         * tree.h (tree_nonartificial_location): Declare.
8919         * builtins.c (expand_builtin_memory_chk): Provide location
8920         of the call location for artificial function pieces.
8921         (maybe_emit_chk_warning): Likewise.
8922         (maybe_emit_sprintf_chk_warning): Likewise.
8923         (maybe_emit_free_warning): Likewise.
8924         * expr.c (expand_expr_real_1): Likewise.
8925
8926 2009-03-03  Jakub Jelinek  <jakub@redhat.com>
8927
8928         PR tree-optimization/39343
8929         * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
8930         COMPONENT_REF t has ARRAY_TYPE.
8931
8932 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
8933
8934         PR middle-end/39335
8935         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
8936         when the type precision of the induction variable should be
8937         larger than the type precision of nit.
8938         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
8939         * graphite.c (graphite_loop_normal_form): Same.
8940         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
8941
8942 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
8943
8944         * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
8945         (*call_1_rex64_ms_sysv): Use named constants instead of magic
8946         numbers to describe clobbered registers.
8947         (*call_value_0_rex64_ms_sysv): Ditto.
8948         * config/i386/mmx.md (mmx_emms): Ditto.
8949         (mmx_femms): Ditto.
8950
8951 2009-03-02  Richard Sandiford  <rdsandiford@googlemail.com>
8952
8953         * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
8954         of ABI_64.
8955
8956 2009-03-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8957
8958         * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
8959         (spu_section_type_flags): New function.
8960
8961 2009-03-02  Uros Bizjak  <ubizjak@gmail.com>
8962
8963         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
8964         reg_class_contents of FLOAT_REGS into a temporary.
8965
8966 2009-03-02  Richard Guenther  <rguenther@suse.de>
8967             Ira Rosen  <irar@il.ibm.com>
8968
8969         PR tree-optimization/39318
8970         * tree-vect-transform.c (vectorizable_call): Transfer the EH region
8971         information to the vectorized statement.
8972
8973 2009-03-01  Uros Bizjak  <ubizjak@gmail.com>
8974
8975         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
8976         variable.  Use defined names instead of magic constants for REX SSE
8977         registers.
8978
8979 2009-03-01  Richard Guenther  <rguenther@suse.de>
8980
8981         PR tree-optimization/39331
8982         * omp-low.c (lower_send_shared_vars): Do not receive new
8983         values for the reference of DECL_BY_REFERENCE parms or results.
8984
8985 2009-03-01  Jan Hubicka  <jh@suse.cz>
8986
8987         PR debug/39267
8988         * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
8989         BLOCK_NONLOCALIZED_VAR): New macros.
8990         (tree_block): Add nonlocalized_vars.
8991         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
8992         gen_decl_die): Add origin argument.  Allow generation of die with
8993         origin at hand only.
8994         (gen_member_die, gen_type_die_with_usage, force_decl_die,
8995         declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
8996         of gen_*.
8997         (gen_block_die): Fix checking for unused blocks.
8998         (process_scope_var): Break out from .... ; work with origins only.
8999         (decls_for_scope) ... here; process nonlocalized list.
9000         (dwarf2out_ignore_block): Look for nonlocalized vars.
9001         * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
9002         vars.
9003         (dump_scope_block): Dump them.
9004         * tree-inline.c (remap_decls): Handle nonlocalized vars.
9005         (remap_block): Likewise.
9006         (can_be_nonlocal): New predicate.
9007         (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
9008
9009 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9010
9011         * configure: Regenerate.
9012
9013 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9014
9015         * optc-gen.awk: No need to duplicate option flags twice.
9016         Reuse help texts for duplicate options which do not have any.
9017
9018         * gcc.c (display_help): Document --version.
9019
9020         * gcc.c (main): If print_help_list and verbose_flag, ensure
9021         driver output comes before subprocess output.
9022
9023         * optc-gen.awk: Assign all remaining fields to help string,
9024         space-separated, for multi-line help in *.opt.
9025
9026         * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
9027         -Wno-pedantic-ms-format is for MinGW targets only.
9028
9029         * doc/options.texi (Option file format): Fix bad indentation,
9030         restoring dropped sentence.
9031
9032 2009-02-28  Jan Hubicka  <jh@suse.cz>
9033
9034         * tree-inline.c (tree_function_versioning): Output debug info.
9035
9036 2009-02-28  Jan Hubicka  <jh@suse.cz>
9037
9038         PR debug/39267
9039         * tree-inline.c (setup_one_parameter): Do not copy propagate
9040         arguments when not optimizing.
9041
9042 2009-02-28  H.J. Lu  <hongjiu.lu@intel.com>
9043
9044         PR target/39327
9045         * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
9046         (avx_addsubv4df3): Likewise.
9047         (*avx_addsubv4sf3): Likewise.
9048         (sse3_addsubv4sf3): Likewise.
9049         (*avx_addsubv2df3): Likewise.
9050         (sse3_addsubv2df3): Likewise.
9051         (avx_unpckhps256): Correct item selectors.
9052         (avx_unpcklps256): Likewise.
9053         (avx_unpckhpd256): Likewise.
9054         (avx_unpcklpd256): Likewise.
9055
9056 2009-02-28  Jan Hubicka  <jh@suse.cz>
9057
9058         * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
9059         static vars.
9060         (copy_arguments_for_versioning): If var is declared don't declare it.
9061         (tree_function_versioning): First setup substitutions and then copy
9062         args.
9063
9064 2009-02-27  Jan Hubicka  <jh@suse.cz>
9065
9066         PR debug/39267
9067         * cgraph.h (varpool_output_debug_info): Remove.
9068         * cgraphunit.c (varpool_output_debug_info): Remove.
9069         * dwarf2out.c (deferred_locations_struct): New struct
9070         (deferred_locations): New type.
9071         (deferred_locations_list): New static var.
9072         (deffer_location): New function.
9073         (gen_variable_die): Use it.
9074         (decls_for_scope): Output info on local static vars.
9075         (dwarf2out_finish): Process deferred locations.
9076         * varpool.c (varpool_output_debug_info): Remove.
9077
9078 2009-02-27  Jan Hubicka  <jh@suse.cz>
9079
9080         PR debug/39267
9081         * tree.h (TREE_PROTECTED): Fix comment.
9082         (BLOCK_HANDLER_BLOCK): Remove.
9083         (struct tree_block): Remove handler_block add body_block.
9084         (inlined_function_outer_scope_p): New.
9085         (is_body_block): Remove.
9086         * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
9087         * dwarf2out.c (is_inlined_entry_point): Remove.
9088         (add_high_low_attributes): Use inlined_function_outer_scope_p.
9089         (gen_block_die): Use is_inlined_entry_point check.  Remove body block
9090         code.
9091         * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
9092         * gimplify.c (gimplify_expr): Gimplify body blocks.
9093         * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
9094         block with multiple subblocks.
9095         (dump_scope_block): Prettier output; dump more flags and info.
9096         (dump_scope_blocks): New.
9097         (remove_unused_locals): Use dump_scope_blocks.
9098         * tree-flow.h (dump_scope_blocks): Declare.
9099         * tree-cfg.c (execute_build_cfg): Dump scope blocks.
9100         * stmt.c (is_body_block): Remove.
9101         * tree-inline.c (remap_block): Copy BODY_BLOCK info.
9102         * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
9103
9104 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
9105
9106         PR middle-end/39308
9107         * graphite.c (graphite_loop_normal_form): Do not call
9108         number_of_iterations_exit from a gcc_assert.
9109
9110 2009-02-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9111
9112         * config/s390/s390.c (s390_swap_cmp): Look for conditional
9113         jumps if COND is NULL.
9114         (find_cond_jump): New function.
9115         (s390_z10_optimize_cmp): Handling for reg-reg compares added.
9116         * config/s390/s390.md: Remove z10_cobra attribute value.
9117
9118 2009-02-26  Uros Bizjak  <ubizjak@gmail.com>
9119
9120         * config/alpha/alpha.h (alpha_expand_mov): Return false if
9121         force_const_mem returns NULL_RTX.
9122
9123 2009-02-26  Jan Hubicka  <jh@suse.cz>
9124
9125         PR debug/39267
9126         * cgraph.h (varpool_output_debug_info): Remove.
9127         * cgraphunit.c (varpool_output_debug_info): Remove.
9128         * dwarf2out.c (deferred_locations_struct): New struct
9129         (deferred_locations): New type.
9130         (deferred_locations_list): New static var.
9131         (deffer_location): New function.
9132         (gen_variable_die): Use it.
9133         (decls_for_scope): Output info on local static vars.
9134         (dwarf2out_finish): Process deferred locations.
9135         * varpool.c (varpool_output_debug_info): Remove.
9136
9137 2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
9138
9139         PR rtl-optimization/39241
9140         * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
9141         to subreg_offset_representable_p.
9142
9143 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
9144
9145         * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
9146         execute function prototype.  Get f and nregs from max_reg_num
9147         and get_insns.  Remove the first backward pass as it's dead,
9148         guard the forward pass by flag_expensive_optimizations.
9149         (rest_of_handle_regmove): Delete.
9150         (pass_regmove): Replace it with regmove_optimize.
9151
9152 2009-02-25  Martin Jambor  <mjambor@suse.cz>
9153
9154         PR tree-optimization/39259
9155         * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
9156         calls_alloca function flags.
9157         (copy_bb): Set calls_setjmp and alls_alloca function flags if such
9158         calls are detected.
9159
9160 2009-02-25  Paolo Bonzini  <bonzini@gnu.org>
9161
9162         * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
9163         flags_set_1_rtx, flags_set_1_set): Delete.
9164         (regmove_optimize): Do not call mark_flags_life_zones.
9165
9166 2009-02-24  Julian Brown  <julian@codesourcery.com>
9167
9168         PR target/35965
9169         * config/arm/arm.c (require_pic_register): Only set
9170         cfun->machine->pic_reg once per function.
9171
9172 2009-02-24  Sandra Loosemore  <sandra@codesourcery.com>
9173
9174         * doc/invoke.texi (Link Options): Document an easier way to pass
9175         options that take arguments to the GNU linker using -Xlinker and -Wl.
9176
9177 2009-02-24  Steve Ellcey  <sje@cup.hp.com>
9178
9179         PR target/33785
9180         * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
9181
9182 2009-02-24  Richard Guenther  <rguenther@suse.de>
9183
9184         PR debug/39285
9185         * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
9186
9187 2009-02-24  Richard Guenther  <rguenther@suse.de>
9188             Zdenek Dvorak  <ook@ucw.cz>
9189
9190         PR tree-optimization/39233
9191         * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
9192         from converting them to a generic type.
9193
9194 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
9195
9196         PR tree-optimization/39260
9197         * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
9198         contains a condition with a real type.
9199         (build_scop_conditions_1): Conditions are always last_stmt of a bb.
9200
9201 2009-02-23  Jason Merrill  <jason@redhat.com>
9202
9203         PR c++/38880
9204         * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
9205         narrowing_initializer_constant_valid_p.
9206         (narrowing_initializer_constant_valid_p): Don't return
9207         null_pointer_node for adding a pointer to itself.
9208
9209 2009-02-23  Jan Hubicka  <jh@suse.cz>
9210
9211         PR c/12245
9212         * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
9213         resizing.
9214
9215 2009-02-23  Jan Hubicka  <jh@suse.cz>
9216
9217         PR tree-optimization/37709
9218         * tree.c (block_ultimate_origin): Move here from dwarf2out.
9219         * tree.h (block_ultimate_origin): Declare.
9220         * dwarf2out.c (block_ultimate_origin): Move to tree.c
9221         * tree-ssa-live.c (remove_unused_scope_block_p):
9222         Eliminate blocks containig no instructions nor live variables nor
9223         nested blocks.
9224         (dump_scope_block): New function.
9225         (remove_unused_locals): Enable removal of dead blocks by default;
9226         enable dumping at TDF_DETAILS.
9227
9228 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
9229
9230         * config/i386/i386.c (classify_argument): Don't allow COImode
9231         and OImode.
9232         (function_arg_advance_32): Don't allow OImode.
9233         (function_arg_32): Likewise.
9234         (function_value_32): Likewise.
9235         (return_in_memory_32): Likewise.
9236         (function_arg_64): Remove OImode comment.
9237
9238 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
9239
9240         PR target/39261
9241         * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
9242         ix86_expand_vector_set for V4DImode in 64bit mode only.
9243         (ix86_expand_vector_init_one_var): Likewise.
9244
9245 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
9246
9247         * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
9248
9249 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
9250
9251         PR bootstrap/39257
9252         * loop-iv.c: Revert last change.
9253         * emit-rtl.c: Likewise.
9254
9255 2009-02-21  H.J. Lu  <hongjiu.lu@intel.com>
9256
9257         PR target/39256
9258         * config/i386/i386.c (type_natural_mode): Remove an extra
9259         space in the warning message.
9260         (function_value_32): Handle 32-byte vector modes.
9261         (return_in_memory_32): Likewise.
9262
9263 2009-02-21  Richard Sandiford  <rdsandiford@googlemail.com>
9264
9265         * loop-iv.c (truncate_value): New function.
9266         (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
9267         of lowpart_subreg.
9268         (lowpart_subreg): Move to...
9269         * emit-rtl.c: ...here.
9270
9271 2009-02-21  Danny Smith  <dannysmith@users.sourceforge.net>
9272
9273         * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
9274         accidental and undocumented change at revision 140860.
9275
9276 2009-02-21  Joseph Myers  <joseph@codesourcery.com>
9277
9278         * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
9279         take gimple_seq * arguments.
9280         (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
9281         types_compatible_p langhook.
9282
9283 2009-02-20  Mark Mitchell  <mark@codesourcery.com>
9284             Joseph Myers  <joseph@codesourcery.com>
9285
9286         * config/arm/arm.c (arm_builtin_va_list): New function.
9287         (arm_expand_builtin_va_start): Likewise.
9288         (arm_gimplify_va_arg_expr): Likewise.
9289         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
9290         (TARGET_BUILD_BUILTIN_VA_START): Likewise.
9291         (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
9292         (va_list_type): New variable.
9293         (arm_mangle_type): Mangle va_list_type appropriately.
9294
9295 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
9296
9297         PR middle-end/39157
9298         * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
9299         * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
9300         * params.def (loop-invariant-max-bbs-in-loop): New parameter.
9301         * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
9302         parameter to 1000 for -O1 by default.
9303         * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
9304         parameter.
9305         * loop-invariant.c: Include params.h.
9306         (move_loop_invariants): Don't call move_single_loop_invariants on
9307         very large loops.
9308
9309 2009-02-20  Jaka Mocnik  <jaka@xlab.si>
9310
9311         * calls.c (emit_library_call_value_1): Use slot_offset instead of
9312         offset when calculating bounds for indexing stack_usage_map.  Fixes
9313         a buffer overflow with certain target setups.
9314
9315 2009-02-20  Jakub Jelinek  <jakub@redhat.com>
9316
9317         PR target/39240
9318         * calls.c (expand_call): Clear try_tail_call if caller and callee
9319         disagree in promotion of function return value.
9320
9321 2009-02-19  Jakub Jelinek  <jakub@redhat.com>
9322
9323         PR target/39175
9324         * c-common.c (c_determine_visibility): If visibility changed and
9325         DECL_RTL has been already set, call make_decl_rtl to update symbol
9326         flags.
9327
9328 2009-02-19  H.J. Lu  <hongjiu.lu@intel.com>
9329
9330         PR c++/39188
9331         * varasm.c (assemble_variable): Don't check DECL_NAME when
9332         globalizing a variable.
9333
9334 2009-02-19  Joseph Myers  <joseph@codesourcery.com>
9335
9336         PR c/38483
9337         * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
9338         expression before any __builtin_trap call.
9339         * c-typeck.c (build_function_call): Convert and check function
9340         arguments before generating a call to a trap.  Evaluate the
9341         function arguments before the trap.
9342
9343 2009-02-19  Uros Bizjak  <ubizjak@gmail.com>
9344
9345         PR target/39228
9346         * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
9347         (UNSPEC_FXAM_MEM): New unspec.
9348         (fxam<mode>2_i387_with_temp): New insn and split pattern.
9349         (isinf<mode>2): Use MODEF mode iterator.  Force operand[1] through
9350         memory using fxam<mode>2_i387_with_temp to remove excess precision.
9351
9352 2009-02-19  Richard Guenther  <rguenther@suse.de>
9353
9354         PR tree-optimization/39207
9355         PR tree-optimization/39074
9356         * tree-ssa-structalias.c (storedanything_id, var_storedanything,
9357         storedanything_tree): New.
9358         (do_ds_constraint): Simplify ANYTHING shortcutting.  Update
9359         the STOREDANYTHING solution if the lhs solution contains ANYTHING.
9360         (build_succ_graph): Add edges from STOREDANYTHING to all
9361         non-direct nodes.
9362         (init_base_vars): Initialize STOREDANYTHING.
9363         (compute_points_to_sets): Free substitution info after
9364         building the succ graph.
9365         (ipa_pta_execute): Likewise.
9366
9367         * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
9368         field.
9369         (do_ds_constraint): Do not add to special var or non-pointer
9370         field solutions.
9371         (type_could_have_pointers): Split out from ...
9372         (could_have_pointers): ... here.  For arrays use the element type.
9373         (create_variable_info_for): Initialize may_have_pointers.
9374         (new_var_info): Likewise.
9375         (handle_lhs_call): Make the HEAP variable unknown-sized.
9376         (intra_create_variable_infos): Use a type with pointers for
9377         PARM_NOALIAS, make it unknown-sized.
9378
9379 2009-02-18  H.J. Lu  <hongjiu.lu@intel.com>
9380
9381         PR target/39224
9382         * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
9383
9384 2009-02-18  Jason Merrill  <jason@redhat.com>
9385
9386         PR target/39179
9387         * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
9388         value if DECL_EXTERNAL.
9389         * tree-sra.c (sra_walk_gimple_assign): Likewise.
9390         * target.h (gcc_target::binds_local_p): Clarify "module".
9391         * tree.h (TREE_PUBLIC): Clarify "module".
9392
9393 2009-02-17  Xuepeng Guo  <xuepeng.guo@intel.com>
9394
9395         PR target/38891
9396         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
9397         initialization for MS_ABI prior to the hunk of !TARGET_MMX.
9398
9399 2009-02-17  H.J. Lu  <hongjiu.lu@intel.com>
9400
9401         PR target/39082
9402         * c.opt (Wabi): Support C and ObjC.
9403         (Wpsabi): New.
9404
9405         * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
9406
9407         * config/i386/i386.c (classify_argument): Warn once about the ABI
9408         change when passing union with long double.
9409
9410         * doc/invoke.texi: Update -Wabi for warning psABI changes.
9411
9412 2009-02-18  Joseph Myers  <joseph@codesourcery.com>
9413
9414         PR c/35447
9415         * c-parser.c (c_parser_compound_statement): Always enter and leave
9416         a scope.
9417
9418 2009-02-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9419
9420         PR target/34587
9421         * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
9422
9423 2009-02-18  Jakub Jelinek  <jakub@redhat.com>
9424
9425         PR tree-optimization/36922
9426         * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
9427         * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
9428         Likewise.
9429
9430 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
9431
9432         * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
9433         to 0 for EABI64.
9434
9435 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
9436
9437         * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
9438
9439 2009-02-17  Richard Sandiford  <rdsandiford@googlemail.com>
9440
9441         * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
9442         tree sharing.
9443
9444 2009-02-17  Ruan Beihong  <ruanbeihong@gmail.com>
9445             Richard Sandiford  <rdsandiford@googlemail.com>
9446
9447         * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
9448         * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
9449         (loongson_biadd): ...this.
9450
9451 2009-02-17  Richard Guenther  <rguenther@suse.de>
9452
9453         PR tree-optimization/39202
9454         * tree-ssa-structalias.c (do_structure_copy): Before collapsing
9455         a var make sure to follow existing collapses.
9456
9457 2009-02-17  Richard Guenther  <rguenther@suse.de>
9458
9459         PR middle-end/39214
9460         * langhooks.c (lhd_print_error_function): Check for NULL block.
9461
9462 2009-02-17  Richard Guenther  <rguenther@suse.de>
9463
9464         PR tree-optimization/39204
9465         * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
9466         of the PHI arg.
9467
9468 2009-02-17  Uros Bizjak  <ubizjak@gmail.com>
9469
9470         * config/soft-fp/double.h: Update from glibc CVS.
9471
9472 2009-02-17  Richard Guenther  <rguenther@suse.de>
9473
9474         PR tree-optimization/39207
9475         * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
9476         strict-aliasing warnings for pointers pointing to NULL.
9477
9478 2009-02-16  Joseph Myers  <joseph@codesourcery.com>
9479
9480         PR c/35446
9481         * c-parser.c (c_parser_braced_init): Call pop_init_level when
9482         skipping until next close brace.
9483
9484 2009-02-16  H.J. Lu  <hongjiu.lu@intel.com>
9485
9486         PR target/37049
9487         * config/i386/i386.c (ix86_expand_push): Set memory alignment
9488         to function argument boundary.
9489
9490 2009-02-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
9491
9492         * config/picochip/picochip.md (lea_add): Allow any nonimmediate
9493         in the lea_add. Reload eventually constraints it properly.
9494         * config/picochip/constraints.md: Remove the target constraint
9495         "b", since it is not needed anymore.
9496
9497 2009-02-16  Jakub Jelinek  <jakub@redhat.com>
9498
9499         * gthr-dce.h: Uglify function parameter and local variable names.
9500         * gthr-gnat.h: Likewise.
9501         * gthr-mipssde.h: Likewise.
9502         * gthr-nks.h: Likewise.
9503         * gthr-posix95.h: Likewise.
9504         * gthr-posix.h: Likewise.
9505         * gthr-rtems.h: Likewise.
9506         * gthr-single.h: Likewise.
9507         * gthr-solaris.h: Likewise.
9508         * gthr-tpf.h: Likewise.
9509         * gthr-vxworks.h: Likewise.
9510         * gthr-win32.h: Likewise.
9511
9512 2009-02-15  H.J. Lu  <hongjiu.lu@intel.com>
9513
9514         PR target/39196
9515         * config/i386/i386.md: Restrict the new peephole2 to move
9516         between MMX/SSE registers.
9517
9518 2009-02-15  Richard Guenther  <rguenther@suse.de>
9519
9520         Revert
9521         2009-02-13  Richard Guenther  <rguenther@suse.de>
9522
9523         * configure.ac: Enable LFS.
9524         * configure: Re-generate.
9525         * config.in: Likewise.
9526
9527 2009-02-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9528
9529         * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
9530         spu_srqwbyte, spu_srqwbytebc): Define.
9531         * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
9532         spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
9533         * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
9534         "shrqby_<mode>"): New insn-and-split patterns.
9535         * config/spu/spu.c (expand_builtin_args): Determine and return
9536         number of operands using spu_builtin_description data.
9537         (spu_expand_builtin_1): Use it.
9538
9539 2009-02-13  Steve Ellcey  <sje@cup.hp.com>
9540
9541         PR target/38056
9542         * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
9543         TARGET_CONST_GP.
9544
9545 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
9546
9547         PR target/39149
9548         * config/i386/i386.c (override_options): Correct warning
9549         messages for -malign-loops, -malign-jumps and -malign-functions.
9550
9551 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
9552
9553         PR target/39152
9554         * config/i386/i386.md: Restrict the new peephole2 to move
9555         between the general purpose registers.
9556
9557 2009-02-13  H.J. Lu  <hongjiu.lu@intel.com>
9558
9559         PR target/39162
9560         * config/i386/i386.c (type_natural_mode): Add a new argument.
9561         Return the original mode and warn ABI change if vector size is 32byte.
9562         (function_arg_advance): Updated.
9563         (function_arg): Likewise.
9564         (ix86_function_value): Likewise.
9565         (ix86_return_in_memory): Likewise.
9566         (ix86_sol10_return_in_memory): Likewise.
9567         (ix86_gimplify_va_arg): Likewise.
9568         (function_arg_32): Don't warn ABX ABI change here.
9569         (function_arg_64): Likewise.
9570
9571 2009-02-13  Bernd Schmidt  <bernd.schmidt@analog.com>
9572
9573         * loop-iv.c (implies_p): In the final case, test that operands 0
9574         of the two comparisons match.
9575
9576         * config/bfin/bfin.c (find_prev_insn_start): New function.
9577         (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
9578         (find_next_insn_start): Move.
9579
9580 2009-02-13  Richard Guenther  <rguenther@suse.de>
9581
9582         * configure.ac: Enable LFS.
9583         * configure: Re-generate.
9584         * config.in: Likewise.
9585
9586 2009-02-13  Joseph Myers  <joseph@codesourcery.com>
9587
9588         PR c/35444
9589         * c-parser.c (c_parser_parms_list_declarator): Discard pending
9590         sizes on syntax error after some arguments have been parsed.
9591
9592 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
9593
9594         * doc/invoke.texi (-fira): Remove.
9595
9596 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
9597
9598         * caller-save.c: Replace regclass.c with reginfo.c in comments.
9599         * recog.c: Likewise.
9600         * rtl.h: Likewise.
9601
9602 2009-02-12  Uros Bizjak  <ubizjak@gmail.com>
9603
9604         * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
9605         (umul_ppmm): Likewise.
9606         (count_leading_zeros): Likewise.
9607         (count_trailing_zeros): Likewise.
9608         (UMUL_TIME): Likewise.
9609
9610 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
9611
9612         * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
9613         soft-fp/t-softfp to tmake_file.
9614
9615         * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
9616         (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
9617         (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
9618         IA64_BUILTIN_INFQ]: New.
9619         (ia64_init_builtins): Initialize __builtin_infq,
9620         __builtin_fabsq and __builtin_copysignq if not HPUX.
9621         (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
9622         IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
9623
9624         * config/ia64/lib1funcs.asm (__divtf3): Define only if
9625         SHARED is defined.
9626         (__fixtfti): Likewise.
9627         (__fixunstfti): Likewise.
9628         (__floattitf): Likewise.
9629
9630         * config/ia64/libgcc-glibc.ver: New.
9631         * config/ia64/t-fprules-softfp: Likewise.
9632         * config/ia64/sfp-machine.h: Likewise.
9633
9634         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
9635         (LIBGCC2_TF_CEXT): Likewise.
9636         (TF_SIZE): Likewise.
9637         (TARGET_INIT_LIBFUNCS): Likewise.
9638
9639         * config/ia64/t-glibc (SHLINB_MAPFILES):
9640         Add $(srcdir)/config/ia64/libgcc-glibc.ver.
9641
9642 2009-02-12  H.J. Lu  <hongjiu.lu@intel.com>
9643
9644         * config/i386/i386.c (construct_container): Rewrite processing
9645         BLKmode with X86_64_SSE_CLASS.
9646
9647 2009-02-12  Paolo Bonzini  <bonzini@gnu.org>
9648
9649         PR target/39152
9650         * config/i386/i386.md: Replace simplify_replace_rtx with
9651         replace_rtx in the new peephole2.
9652
9653 2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
9654
9655         * doc/invoke.texi (Optimize Options): Stop claiming inlining and
9656         loop unrolling do not happen at -O2.
9657
9658 2009-02-12  Michael Matz  <matz@suse.de>
9659
9660         * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
9661
9662 2009-02-12  Jakub Jelinek  <jakub@redhat.com>
9663
9664         * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
9665         for -g3.
9666
9667 2009-02-12  Ben Elliston  <bje@au.ibm.com>
9668
9669         * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
9670         patterns when updating the back chain.  Missed in the 2009-02-10
9671         change.
9672
9673 2009-02-11  Janis Johnson  <janis187@us.ibm.com>
9674
9675         * doc/extend.texi (Decimal Floating Types): Update identifier of
9676         draft TR and list of missing support.
9677
9678 2009-02-11  Jakub Jelinek  <jakub@redhat.com>
9679
9680         PR middle-end/39154
9681         * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
9682         bit to variable length decl's flags, add it also to its
9683         pointer replacement variable.
9684
9685 2009-02-11  Uros Bizjak  <ubizjak@gmail.com>
9686             Jakub Jelinek  <jakub@redhat.com>
9687
9688         PR target/39118
9689         * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
9690         (memory_blockage): New expander.
9691         (*memory_blockage): New insn pattern.
9692         * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
9693         instead of general blockage at the end of function prologue when
9694         frame pointer is used to access red zone area.  Do not emit blockage
9695         when profiling, it is emitted in generic code.
9696         (ix86_expand_epilogue): Emit memory_blockage at the beginning of
9697         function epilogue when frame pointer is used to access red zone area.
9698
9699 2009-02-11  Paolo Bonzini  <bonzini@gnu.org>
9700
9701         PR target/38824
9702         * config/i386/i386.md: Add two new peephole2 to avoid mov followed
9703         by arithmetic with memory operands.
9704         * config/i386/predicates.md (commutative_operator): New.
9705
9706 2009-02-10  Janis Johnson  <janis187@us.ibm.com>
9707
9708         * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
9709         bulleted lists.
9710
9711 2009-02-10  Eric Botcazou  <ebotcazou@adacore.com>
9712
9713         * alias.h (record_alias_subset): Declare.
9714         * alias.c (record_alias_subset): Make global.
9715
9716 2009-02-10  Nick Clifton  <nickc@redhat.com>
9717
9718         * tree-parloops.c: Change license to GPLv3.
9719         * ipa-struct-reorg.c: Change license to GPLv3.
9720         * ipa-struct-reorg.h: Change license to GPLv3.
9721
9722 2009-02-10  Steve Ellcey  <sje@cup.hp.com>
9723
9724         PR c/39084
9725         * c-decl.c (start_struct): Return NULL on error.
9726
9727 2009-02-10  Jakub Jelinek  <jakub@redhat.com>
9728
9729         PR middle-end/39124
9730         * cfgloopmanip.c (remove_path): Call remove_bbs after
9731         cancel_loop_tree, not before it.
9732
9733         PR target/39139
9734         * function.h (struct function): Add has_local_explicit_reg_vars bit.
9735         * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
9736         VAR_DECLs were seen.
9737         * tree-ssa-live.c (remove_unused_locals): Recompute
9738         cfun->has_local_explicit_reg_vars.
9739         * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
9740         copies or clearings if cfun->has_local_explicit_reg_vars.
9741
9742 2009-02-10  Uros Bizjak  <ubizjak@gmail.com>
9743
9744         PR target/39118
9745         * config/i386/i386.c (expand_prologue): Emit blockage at the end
9746         of function prologue when frame pointer is used to access
9747         red zone area.
9748
9749 2009-02-10  Richard Guenther  <rguenther@suse.de>
9750
9751         PR middle-end/39127
9752         * gimplify.c (gimple_regimplify_operands): Always look if
9753         we need to create a temporary.
9754
9755 2009-02-10  Richard Guenther  <rguenther@suse.de>
9756
9757         PR tree-optimization/39132
9758         * tree-loop-distribution.c (todo): New global var.
9759         (generate_memset_zero): Trigger TODO_rebuild_alias.
9760         (tree_loop_distribution): Return todo.
9761
9762 2009-02-10  H.J. Lu  <hongjiu.lu@intel.com>
9763
9764         PR target/39119
9765         * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
9766         (x86_64_reg_class_name): Removed.
9767         (classify_argument): Return 0 if bytes > 32.  Return 0 if the
9768         first one isn't X86_64_SSE_CLASS or any other ones aren't
9769         X86_64_SSEUP_CLASS when size > 16bytes.  Don't turn
9770         X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
9771         is X86_64_SSEUP_CLASS.  Set AVX modes to 1 X86_64_SSE_CLASS
9772         and 3 X86_64_SSEUP_CLASS.
9773         (construct_container): Remove X86_64_AVX_CLASS.  Handle 4
9774         registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
9775
9776 2009-02-10  Ben Elliston  <bje@au.ibm.com>
9777
9778         * config/rs6000/rs6000.md (allocate_stack): Always use an update
9779         form instruction to update the stack back chain word, even if the
9780         user has disabled the generation of update instructions.
9781         (movdi_<mode>_update_stack): New.
9782         (movsi_update_stack): Likewise.
9783         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
9784         always use an update form instruction to update the stack back
9785         chain word.
9786
9787 2009-02-09  Sebastian Pop  <sebastian.pop@amd.com>
9788
9789         PR middle-end/38953
9790         * graphite.c (if_region_set_false_region): After moving a region in
9791         the false branch of a condition, remove the empty dummy basic block.
9792         (gloog): Remove wrong fix for PR38953.
9793
9794 2009-02-09  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9795
9796         * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
9797         generation due to implicit sign extension.
9798
9799 2009-02-09  Eric Botcazou  <ebotcazou@adacore.com>
9800
9801         PR middle-end/38981
9802         * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
9803         at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
9804
9805 2009-02-09  Richard Guenther  <rguenther@suse.de>
9806
9807         PR middle-end/35202
9808         * convert.c (convert_to_real): Disable (float)fn((double)x)
9809         to fnf(x) conversion if errno differences may occur and
9810         -fmath-errno is set.
9811
9812 2009-02-07  Anatoly Sokolov  <aesok@post.ru>
9813
9814         * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
9815         * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
9816         * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
9817
9818 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
9819
9820         PR c/35434
9821         * c-common.c (handle_alias_attribute): Disallow attribute for
9822         anything not a FUNCTION_DECL or VAR_DECL.
9823
9824 2009-02-06  Janis Johnson  <janis187@us.ibm.com>
9825
9826         PR c/39035
9827         * real.c (do_compare): Special-case compare of zero against
9828         decimal float value.
9829
9830 2009-02-06  Joseph Myers  <joseph@codesourcery.com>
9831
9832         PR c/36432
9833         * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
9834         as indicating flexible array members unless the field itself is
9835         being declarared as the incomplete array.
9836
9837 2009-02-06  Jan Hubicka  <jh@suse.cz>
9838
9839         PR tree-optimization/38844
9840         * ipa-inline.c (try_inline): Stop inlining recursion when edge
9841         is already inlined.
9842
9843 2009-02-06  Richard Guenther  <rguenther@suse.de>
9844
9845         PR middle-end/38977
9846         * tree-cfg.c (need_fake_edge_p): Force a fake edge for
9847         fork because we may expand it as __gcov_fork.
9848
9849 2009-02-06  Nick Clifton  <nickc@redhat.com>
9850
9851         * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
9852
9853 2009-02-06  Paolo Bonzini  <bonzini@gnu.org>
9854
9855         PR tree-optimization/35659
9856         * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
9857         vn_phi_eq): Shortcut if hashcode does not match.
9858         (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
9859         NULL operands.
9860         * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
9861         and avoid iterative_hash_expr.
9862         (FOR_EACH_VALUE_ID_IN_SET): New.
9863         (value_id_compare): Remove.
9864         (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
9865         sort expressions by value id.
9866
9867 2009-02-05  Kaz Kojima  <kkojima@gcc.gnu.org>
9868
9869         PR target/38991
9870         * config/sh/predicates.md (general_movsrc_operand): Don't check
9871         the subreg of system registers here.
9872
9873 2009-02-05  Jakub Jelinek  <jakub@redhat.com>
9874
9875         PR c++/39106
9876         * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
9877         on the copied decl.
9878
9879 2009-02-05  Paolo Bonzini  <bonzini@gnu.org>
9880
9881         PR rtl-optimization/39110
9882         * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
9883         addresses, not aligned ones.
9884
9885 2009-02-05  Daniel Berlin  <dberlin@dberlin.org>
9886             Richard Guenther  <rguenther@suse.de>
9887
9888         PR tree-optimization/39100
9889         * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
9890         comment says and add edges.
9891
9892 2009-02-05  Joseph Myers  <joseph@codesourcery.com>
9893
9894         PR c/35435
9895         * c-common.c (handle_tls_model_attribute): Ignore attribute for
9896         non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
9897
9898 2009-02-04  Tobias Grosser  <grosser@fim.uni-passau.de>
9899
9900         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
9901         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
9902         register_bb_in_sese, new_sese, free_sese): Moved.
9903         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
9904         outermost_loop_in_scop, build_scop_iteration_domain,
9905         expand_scalar_variables_ssa_name, get_vdef_before_scop,
9906         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
9907         Use loop_in_sese_p instead of loop_in_scop_p.
9908         (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
9909         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
9910         (scopdet_basic_block_info): Fix bug in scop detection.
9911         (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
9912         eq_loop_to_cloog_loop): Remove.
9913         (nb_loops_around_loop_in_scop, nb_loop
9914         ref_nb_loops): Moved here...
9915         * graphite.h (ref_nb_loops): ... from here.
9916         (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
9917         (loop_domain_dim, loop_iteration_vector_dim): Remove.
9918         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
9919         * testsuite/gcc.dg/graphite/scop-19.c: New
9920
9921 2009-02-04  Paolo Bonzini  <bonzini@gnu.org>
9922             Hans-Peter Nilsson  <hp@axis.com>
9923
9924         PR rtl-optimization/37889
9925         * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
9926         Move offset handling from PLUS to before the switch.  Use new
9927         arguments when considering SYMBOL_REFs too.
9928         (rtx_addr_can_trap_p): Pass dummy offset and size.
9929         (enum may_trap_p_flags): Remove.
9930         (may_trap_p_1): Pass size from MEM_SIZE.
9931
9932         PR rtl-optimization/38921
9933         * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
9934         * rtl.h (may_trap_after_code_motion_p): Delete prototype.
9935         * rtlanal.c (may_trap_after_code_motion_p): Delete.
9936         (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
9937
9938 2009-02-04  H.J. Lu  <hongjiu.lu@intel.com>
9939
9940         AVX Programming Reference (January, 2009)
9941         * config/i386/sse.md (*vpclmulqdq): New.
9942
9943 2009-02-04  Jakub Jelinek  <jakub@redhat.com>
9944
9945         PR tree-optimization/38977
9946         PR gcov-profile/38292
9947         * calls.c (special_function_p): Disregard __builtin_ prefix.
9948
9949 2009-02-04  Hariharan Sandanagobalane  <hariharan@picochip.com>
9950
9951         * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
9952         non-indexable addresses even before reload.
9953
9954 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
9955
9956         PR c/29129
9957         * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
9958         as having variable size.  Do not give an error for unnamed
9959         parameters with [*] declarators.  Give a warning for type names
9960         with [*] declarators and mark them as variable size.
9961         * c-parser.c (c_parser_sizeof_expression): Do not give an error
9962         for sizeof applied to [*] type names.
9963
9964 2009-02-03  Andrew Pinski  <andrew_pinski@playstation.sony.com>
9965
9966         PR C++/36607
9967         * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
9968
9969 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
9970
9971         * gcc.c (process_command): Update copyright notice dates.
9972         * gcov.c (print_version): Likewise.
9973         * gcov-dump.c (print_version): Likewise.
9974         * mips-tfile.c (main): Likewise.
9975         * mips-tdump.c (main): Likewise.
9976
9977 2009-02-03  Joseph Myers  <joseph@codesourcery.com>
9978
9979         PR c/35433
9980         * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
9981         for composite type involving a zero-length array type.
9982
9983 2009-02-03  Jakub Jelinek  <jakub@redhat.com>
9984
9985         PR target/35318
9986         * function.c (match_asm_constraints_1): Skip over
9987         initial optional % in the constraint.
9988
9989         PR inline-asm/39059
9990         * c-parser.c (c_parser_postfix_expression): If fixed point is not
9991         supported, don't accept FIXED_CSTs.
9992         * c-decl.c (finish_declspecs): Error if fixed point is not supported
9993         and _Sat is used without _Fract/_Accum.  Set specs->type to
9994         integer_type_node for cts_fract/cts_accum if fixed point is not
9995         supported.
9996
9997 2009-02-02  Catherine Moore  <clm@codesourcery.com>
9998
9999         * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
10000
10001 2009-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
10002
10003         * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
10004         (ABI_HAS_64BIT_SYMBOLS): Use it.
10005         (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
10006
10007 2009-02-02  Paul Brook  <paul@codesourcery.com>
10008
10009         * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
10010
10011 2009-02-02  Jakub Jelinek  <jakub@redhat.com>
10012
10013         PR inline-asm/39058
10014         * recog.h (asm_operand_ok): Add constraints argument.
10015         * recog.c (asm_operand_ok): Likewise.  If it is set, for digits
10016         recurse on matching constraint.
10017         (check_asm_operands): Pass constraints as 3rd argument to
10018         asm_operand_ok.  Don't look up matching constraint here.
10019         * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
10020         to asm_operand_ok.
10021
10022 2009-02-02  Ben Elliston  <bje@au.ibm.com>
10023
10024         * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
10025         TARGET_NARROW_VOLATILE_BITFIELD macro names.
10026
10027 2009-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10028
10029         * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
10030         information.  Remove some obsolete information.  Reorganize.
10031
10032         * config/pa/fptr.c: Revert license to GPL 2.
10033         * config/pa/milli64.S: Likewise.
10034
10035 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
10036
10037         PR target/38904
10038         * mkmap-flat.awk (END):  Use pe_dll command-line arg to pass
10039         LIBRARY name in, instead of hard-coding it.
10040         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*):  Add an
10041         extra target make frag to tmake_files according to EH model.
10042         (i[34567]86-*-mingw* | x86_64-*-mingw*):  Likewise.
10043         * config/i386/t-dw2-eh, config/i386/t-sjlj-eh:  Add new target
10044         frags that define makefile variable EH_MODEL appropriately.
10045         * config/i386/cygming.h (DWARF2_UNWIND_INFO):  Add comment.
10046         * config/i386/cygwin.h (LIBGCC_EH_EXTN):  Define to nothing or
10047         to "-sjlj" according to type of EH configured.
10048         (LIBGCC_SONAME):  Concatenate it to shared library base name.
10049         * config/i386/mingw32.h (LIBGCC_EH_EXTN):  Define to "_dw2" or
10050         to "_sjlj" according to type of EH configured.
10051         (LIBGCC_SONAME):  Concatenate it to shared library base name.
10052         * config/i386/t-cygming (SHLIB_SONAME):  Use EH_MODEL.
10053         (SHLIB_LINK):  Add missing semicolon to if-else construct.
10054         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
10055         string value of "pe_dll" command-line option.
10056         * config/i386/t-cygwin (SHLIB_EH_EXTENSION):  New helper.
10057         (SHLIB_SONAME):  Use it when overriding t-cygming default.
10058         (SHLIB_IMPLIB):  Override t-cygming default.
10059         (SHLIB_MKMAP_OPTS):  Pass library name to mkmap-flat.awk as
10060         string value of "pe_dll" command-line option.
10061
10062 2009-01-31  Dave Korn  <dave.korn.cygwin@gmail.com>
10063
10064         PR target/38952
10065         * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
10066         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
10067
10068 2009-01-31  Richard Guenther  <rguenther@suse.de>
10069
10070         PR tree-optimization/38937
10071         * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
10072         computing the transitive closure.
10073
10074 2009-01-30  Richard Guenther  <rguenther@suse.de>
10075
10076         PR tree-optimization/39041
10077         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
10078         Propagate variable indices only if the types match for this stmt.
10079
10080 2009-01-30  Jakub Jelinek  <jakub@redhat.com>
10081
10082         PR target/39013
10083         * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
10084         inline but never defined.
10085
10086 2009-01-30  Wolfgang Gellerich  <gellerich@de.ibm.com>
10087
10088         * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
10089         (*insv_h_di_reg_extimm): New insn.
10090         (*insv_l<mode>_reg_extimm): New insn.
10091
10092 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
10093
10094         * config/picochip/picochip.c (flag_conserve_stack): set
10095         PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
10096         fconserve-stack. Reduce call-overhead used by inliner.
10097
10098 2009-01-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
10099
10100         PR/38157
10101         * common.opt (flag_conserve_stack): Initialised to zero.
10102
10103 2009-01-30  Kai Tietz  <kai.tietz@onevision.com>
10104
10105         PR/39002
10106         * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
10107         (ix86_expand_epilogue): Take nsseregs in account to use proper restore
10108         method.
10109
10110 2009-01-29  H.J. Lu  <hongjiu.lu@intel.com>
10111
10112         * ira-color.c (allocno_reload_assign): Update comments.
10113         * regmove.c (regmove_optimize): Likewise.
10114
10115         * ra.h: Removed.
10116
10117 2009-01-29  Robert Millan  <rmh@aybabtu.com>
10118
10119         * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
10120         * config/i386/kopensolaris-gnu.h: New file.  Undefine
10121         `MD_UNWIND_SUPPORT'.
10122         * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
10123
10124 2009-01-29  Kazu Hirata  <kazu@codesourcery.com>
10125
10126         PR tree-optimization/39007
10127         * tree-loop-distribution.c (generate_builtin): Use
10128         recompute_dominator to compute the immediate dominator of the
10129         basic block just after the loop.
10130
10131 2009-01-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10132
10133         * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
10134         (ASM_OUTPUT_DWARF_PCREL): Define.
10135
10136 2009-01-29  Vladimir Makarov  <vmakarov@redhat.com>
10137
10138         * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
10139         * doc/passes.texi: Remove entries about regclass, local-alloc, and
10140         global.  Modify entries about regmove and IRA.
10141
10142         * ra-conflict.c: Remove the file.
10143
10144         * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
10145
10146         * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
10147         (pass_regclass_init): Rename to pass_reginfo_init.
10148
10149         * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
10150
10151         * toplev.h (flag_ira): Remove.
10152
10153         * caller-save.c (setup_save_areas): Remove flag_ira.
10154
10155         * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
10156
10157         * global.c: Remove the file.
10158
10159         * opts.c (decode_options): Remove flag_ira.
10160
10161         * hard-reg-set.h (losing_caller_save_reg_set): Remove.
10162
10163         * regmove.c: Modify file description.
10164         (find_use_as_address, try_auto_increment): Define them only if
10165         AUTO_INC_DEC is defined.
10166         (replacement_quality, replace_in_call_usage, fixup_match_1,
10167         stable_and_no_regs_but_for_p): Remove.
10168         (reg_set_in_bb): Make it static.
10169         (regmove_optimize): Remove flag_ira and code which worked for
10170         !flag_ira.
10171
10172         * local-alloc.c: Remove the file.
10173
10174         * common.opt (fira): Remove.
10175
10176         * ira.c: Include except.h.
10177         (eliminable_regset): Move from global.c.
10178         (mark_elimination): Ditto.  Remove flag_ira.
10179         (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
10180         equiv_mem_modified, validate_equiv_mem_from_store,
10181         validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
10182         contains_replace_regs, memref_referenced_p, memref_used_between_p,
10183         no_equiv, recorded_label_ref): Move from local-alloc.c.
10184         (update_equiv_regs): Ditto.  Make it static.
10185         (print_insn_chain, print_insn_chains): Move it from global.c.
10186         (pseudo_for_reload_consideration_p): Ditto.  Remove flag_ira.
10187         (build_insn_chain): Ditto.  Make it static.
10188         (ra_init_live_subregs): Move from ra-conflict.c.  Make it static.
10189         Rename to init_live_subregs.
10190         (gate_ira): Remove flag_ira.
10191
10192         * regclass.c: Rename reginfo.c.  Change file description.
10193         (FORBIDDEN_INC_DEC_CLASSES): Remove.
10194         (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
10195         (init_reg_sets_1): Remove code for evaluation of
10196         reg_class_superclasses and losing_caller_save_reg_set.
10197         (init_regs): Remove init_reg_autoinc.
10198         (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
10199         ok_for_base_p_nonstrict): Remove.
10200         (regclass_init): Rename to reginfo_init.  Don't initialize init_cost.
10201         (pass_regclass_init): Rename to pass_reginfo_init.  Modify
10202         corresponding entries.
10203         (dump_regclass, record_operand_costs, scan_one_insn,
10204         init_reg_autoinc, regclass, record_reg_classes, copy_cost,
10205         record_address_regs, auto_inc_dec_reg_p): Remove.
10206         (gt-regclass.h): Rename to gt-reginfo.h.
10207
10208         * rtl.h (dump_global_regs, retry_global_alloc,
10209         build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
10210
10211         * Makefile.in (RA_H): Remove.
10212         (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
10213         Rename regclass.o to reginfo.o.
10214         (regclass.o): Rename to reginfo.o.  Rename gt-regclass.h to
10215         gt-reginfo.h.
10216         (global.o, local-alloc.o, ra-conflict.o): Remove entries.
10217         (GTFILES): Rename regclass.c to reginfo.c.
10218
10219         * passes.c (init_optimization_passes): Remove pass_local_alloc and
10220         pass_global_alloc.  Rename pass_regclass_init to pass_reginfo_init.
10221
10222         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
10223         count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
10224         Remove flag_ira.
10225         (finish_spills): Ditto.  Remove code for !flag_ira.
10226
10227 2009-01-29  Kenneth Zadeck  <zadeck@naturalbridge.com>
10228
10229         PR middle-end/35854
10230         * doc/invoke.texi (rtl debug options): Complete rewrite.
10231         * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
10232         to auto_inc_dec".
10233         * mode-switching.c (pass_mode_switching): Rename pass from
10234         "mode-sw" to "mode_sw".
10235         * except.c (pass_convert_to_eh_ranges): Rename pass from
10236         "eh-ranges" to "eh_ranges".
10237         * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
10238         to "subreg1".
10239
10240
10241 2009-01-29  Andrey Belevantsev  <abel@ispras.ru>
10242             Alexander Monakov  <amonakov@ispras.ru>
10243
10244         PR middle-end/38857
10245         * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
10246         register.
10247         (move_exprs_to_boundary): Change return type and pass through
10248         should_move from move_op.  Relax assert.  Update usage ...
10249         (schedule_expr_on_boundary): ... here.  Use should_move instead of
10250         cant_move.
10251         (move_op_orig_expr_found): Indicate that insn was disconnected from
10252         stream.
10253         (code_motion_process_successors): Do not call after_merge_succs
10254         callback if original expression was not found when traversing any of
10255         the branches.
10256         (code_motion_path_driver): Change return type.  Update prototype.
10257         (move_op): Update comment.  Add a new parameter (should_move).  Update
10258         prototype.  Set *should_move based on indication provided by
10259         move_op_orig_expr_found.
10260
10261 2009-01-28  Pat Haugen  <pthaugen@us.ibm.com>
10262
10263         * doc/invoke.texi (avoid-indexed-addresses): Document new option.
10264         * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
10265         * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
10266         * config/rs6000/rs6000.c (rs6000_override_options): Default
10267         avoid-indexed-addresses on for Power6, off for everything else.
10268         (avoiding_indexed_address_p): New function.
10269         (rs6000_legitimize_address): Use it.
10270         (rs6000_legitimate_address): Likewise.
10271         * config/rs6000/rs6000.md (movXX_updateX): Likewise
10272
10273 2009-01-28  Kazu Hirata  <kazu@codesourcery.com>
10274
10275         PR tree-optimization/38997
10276         * tree-loop-distribution.c (generate_memset_zero): Use
10277         POINTER_PLUS_EXPR for a pointer addition.
10278
10279 2009-01-28  Andreas Krebbel  <krebbel1@de.ibm.com>
10280
10281         * config/s390/s390.md (bswap<mode>2): New pattern added.
10282
10283 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
10284
10285         * config/s390/s390.md (*tls_load_31): Added type attribute.
10286
10287 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
10288
10289         * config/s390/s390.md: Fix a few comments.
10290
10291 2009-01-28  Wolfgang Gellerich  <gellerich@de.ibm.com>
10292
10293         * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
10294         (*tm<mode>_full): Fixed z10prop attribute.
10295         (*tst<mode>_extimm): Fixed z10prop attribute.
10296         (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
10297         (*tstqiCCT_cconly): Fixed z10prop attribute.
10298         (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
10299         (*movsi_larl): Fixed z10prop attribute.
10300         (*movsi_zarch): Fixed z10prop attribute.
10301         (*movsi_eas): Fixed z10prop attribute.
10302         (*movhi): Fixed z10prop attribute.
10303         (*movqi): Fixed z10prop attribute.
10304         (*movstrictqi): Fixed z10prop attribute.
10305         (*mov<mode>): Fixed z10prop attribute.
10306         (*movcc): Fixed z10prop attribute.
10307         (*sethighpartdi_64): Fixed z10prop attribute.
10308         (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
10309         (*negdi2_sign_cc): Fixed z10prop attribute.
10310         (*negdi2_sign): Fixed z10prop attribute.
10311         (*absdi2_sign_cc): Fixed z10prop attribute.
10312         (*absdi2_sign): Fixed z10prop attribute.
10313         (*negabsdi2_sign_cc): Fixed z10prop attribute.
10314         (*negabsdi2_sign): Fixed z10prop attribute.
10315         (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
10316         (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
10317         (doloop_si64): Fixed z10prop attribute.
10318         (doloop_si31): Fixed z10prop attribute.
10319         (doloop_long): Fixed z10prop attribute.
10320         (indirect_jump): Fixed z10prop attribute.
10321         (nop): Fixed z10prop attribute.
10322         (main_base_64): Fixed z10prop attribute.
10323         (reload_base_64): Fixed z10prop attribute.
10324
10325 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
10326
10327         PR rtl-optimization/38740
10328         * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
10329         if !optimize.
10330         * config/mips/mips.c (mips_reorg): Likewise.
10331
10332 2009-01-28  Richard Guenther  <rguenther@suse.de>
10333
10334         PR tree-optimization/38926
10335         * tree-ssa-pre.c (add_to_value): Assert we add only expressions
10336         with the correct value id to a value.
10337         (do_regular_insertion): Use the value number of edoubleprime
10338         for the value number of the expr.
10339
10340         Revert
10341         2008-08-21  Richard Guenther  <rguenther@suse.de>
10342
10343         * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
10344         a PHI ask VN if it is already available.
10345         * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
10346         * tree-ssa-sccvn.c (vn_phi_lookup): Export.
10347
10348 2009-01-28  Jakub Jelinek  <jakub@redhat.com>
10349
10350         PR middle-end/38934
10351         * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
10352         set to varying whenever max has TREE_OVERFLOW set, similarly
10353         for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
10354
10355 2009-01-28  Richard Guenther  <rguenther@suse.de>
10356
10357         PR middle-end/38908
10358         * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
10359         uninitialized aggregate uses in call arguments.
10360
10361 2009-01-28  Paolo Bonzini  <bonzini@gnu.org>
10362
10363         PR tree-optimization/38984
10364         * tree-ssa-structalias.c (get_constraints_for_1): Do not use
10365         the nothing_id variable if -fno-delete-null-pointer-checks.
10366
10367 2009-01-28  Uros Bizjak  <ubizjak@gmail.com>
10368
10369         PR target/38988
10370         * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
10371         (set_got_offset_rex64): Ditto.
10372
10373 2009-01-27  H.J. Lu  <hongjiu.lu@intel.com>
10374
10375         PR target/38941
10376         * doc/extend.texi: Improve local variable with asm reg.
10377
10378 2009-01-27  Adam Nemet  <anemet@caviumnetworks.com>
10379
10380         * c.opt (Wpacked-bitfield-compat): Change init value to -1.
10381         * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
10382         was not supplied then set warn_packed_bitfield_compat to the
10383         default value of 1.
10384         * stor-layout.c (place_field): Check warn_packed_bitfield_compat
10385         against 1.
10386
10387 2009-01-27  Richard Guenther  <rguenther@suse.de>
10388
10389         PR tree-optimization/38503
10390         * cfgexpand.c (expand_gimple_basic_block): Ignore
10391         GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
10392         * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
10393         variables that cannot have TBAA applied.
10394         (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
10395         statements.
10396
10397 2009-01-27  Uros Bizjak  <ubizjak@gmail.com>
10398
10399         PR middle-end/38969
10400         * calls.c (initialize_argument_information): Do not wrap complex
10401         arguments in SAVE_EXPR.
10402
10403 2009-01-26  Andreas Tobler  <a.tobler@schweiz.org>
10404
10405         * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
10406         (INSTALL_LIBGCC): Revert typo commit.
10407
10408 2009-01-26  Richard Guenther  <rguenther@suse.de>
10409
10410         PR tree-optimization/38745
10411         * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
10412         from special handling.
10413
10414 2009-01-26  Richard Guenther  <rguenther@suse.de>
10415
10416         PR tree-optimization/38745
10417         * tree-ssa.c (execute_update_addresses_taken): Do not include
10418         variables that cannot possibly be a register in not_reg_needs.
10419         Do not clear TREE_ADDRESSABLE on vars that may not become
10420         registers.
10421         * tree-ssa.c (update_alias_info_1): Include those in the set
10422         of addressable vars.
10423
10424 2009-01-26  Richard Guenther  <rguenther@suse.de>
10425
10426         PR middle-end/38851
10427         * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
10428         * tree-ssa-dse.c: Include langhooks.h
10429         (execute_simple_dse): Remove stores with zero size.
10430
10431 2009-01-24  Jakub Jelinek  <jakub@redhat.com>
10432
10433         PR c/38957
10434         * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
10435         as PLUS_EXPR.
10436
10437 2009-01-24  Julian Brown  <julian@codesourcery.com>
10438
10439         * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
10440         config/arm/linux-atomic.c.
10441         * config/arm/linux-atomic.c: New.
10442
10443 2009-01-24  Eric Botcazou  <ebotcazou@adacore.com>
10444
10445         * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
10446         * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
10447         * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
10448
10449 2009-01-24  H.J. Lu  <hongjiu.lu@intel.com>
10450
10451         PR c/38938
10452         * c-opts.c (c_common_handle_option): Update warn_pointer_sign
10453         properly.
10454
10455 2009-01-24  Sebastian Pop  <sebastian.pop@amd.com>
10456
10457         PR tree-optimization/38953
10458         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
10459         (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
10460         (gloog): Split the exit of the scop when the scop exit is a loop exit.
10461         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
10462         changed the CFG.
10463
10464 2009-01-24  Paul Brook  <paul@codesourcery.com>
10465
10466         * config/arm/neon.md (neon_type): Move to arm.md.
10467         (neon_mov<VSTRUCT>): Add neon_type attribute.
10468         * config/arm/arm.md (neon_type): Move to here.
10469         (conds): Add "unconditioal" and use as default for NEON insns.
10470
10471 2009-01-24  Ben Elliston  <bje@au.ibm.com>
10472
10473         * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
10474         void *' warning from -Wc++-compat.
10475         * Makefile.in (dominance.o-warn): Remove.
10476
10477 2009-01-23  Paolo Bonzini  <bonzini@gnu.org>
10478
10479         PR tree-optimization/38932
10480         * fold-const.c (fold_unary_ignore_overflow): New.
10481         * tree.h (fold_unary_ignore_overflow): Declare.
10482         * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
10483         * tree-ssa-sccvn.c (visit_reference_op_load,
10484         simplify_unary_expression): Likewise.
10485
10486 2009-01-22  Adam Nemet  <anemet@caviumnetworks.com>
10487
10488         * c-decl.c (finish_struct): Move code to set DECL_PACKED after
10489         DECL_BIT_FIELD is alreay known.  Also inherit packed for bitfields
10490         regardless of their type.
10491         * c-common.c (handle_packed_attribute): Don't ignore packed on
10492         bitfields.
10493         * c.opt (Wpacked-bitfield-compat): New warning option.
10494         * stor-layout.c (place_field): Warn if offset of a field changed.
10495         * doc/extend.texi (packed): Mention the ABI change.
10496         * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
10497         (Warning Options): Add it to the list.
10498
10499 2009-01-22  H.J. Lu  <hongjiu.lu@intel.com>
10500
10501         * c-opts.c (c_common_post_options): Fix a typo in comments.
10502
10503 2009-01-22  Steve Ellcey  <sje@cup.hp.com>
10504
10505         PR middle-end/38615
10506         * gimplify.c (gimplify_init_constructor): Fix promotion of const
10507         variables to static.
10508         * doc/invoke.texi (-fmerge-all-constants): Update description.
10509
10510 2009-01-22  Uros Bizjak  <ubizjak@gmail.com>
10511
10512         PR target/38931
10513         * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
10514         (*movdi_1_rex64): Use type "mmx" for alternative 5.
10515
10516 2009-01-22  Richard Earnshaw  <rearnsha@arm.com>
10517
10518         * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
10519         a word boundary.
10520         (LOCAL_ALIGNMENT): Similarly.
10521
10522 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
10523             Joseph Myers  <joseph@codesourcery.com>
10524
10525         * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
10526         * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
10527         * config/arm/arm-tune.md: Regenerate.
10528         * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
10529         -march=iwmmxt2.
10530
10531 2009-01-22  Mark Shinwell  <shinwell@codesourcery.com>
10532
10533         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
10534         version number to five.
10535
10536 2009-01-22  Dodji Seketeli  <dodji@redhat.com>
10537
10538         PR c++/38930
10539         * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
10540         * c-common.c (set_underlying_type): Likewise.
10541         (is_typedef_decl ): Likewise
10542         * tree.h: Likewise
10543         (set_underlying_type): Likewise.
10544         (is_typedef_type): Likewise.
10545
10546 2009-01-21  Vladimir Makarov  <vmakarov@redhat.com>
10547
10548         PR middle-end/38587
10549         * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
10550         crossing setjmps.
10551
10552 2009-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
10553
10554         PR bootstrap/37660
10555         * config/i386/cygwin.h (SHARED_LIBGCC_SPEC):  New helper macro.
10556         (LIBGCC_SPEC):  Don't define.
10557         (REAL_LIBGCC_SPEC):  Define instead, using SHARED_LIBGCC_SPEC.
10558
10559 2009-01-21  Uros Bizjak  <ubizjak@gmail.com>
10560
10561         PR rtl-optimization/38879
10562         * alias.c (base_alias_check): Unaligned access via AND address can
10563         alias all surrounding object types except those with sizes equal
10564         or wider than the size of unaligned access.
10565
10566 2009-01-21  Dodji Seketeli  <dodji@redhat.com>
10567
10568         PR c++/26693
10569         * c-decl.c (clone_underlying_type): Move this ...
10570         * c-common.c (set_underlying_type): ... here.
10571         Also, make sure the function properly sets TYPE_STUB_DECL() on
10572         the newly created typedef variant type.
10573         (is_typedef_decl ): New entry point.
10574         * tree.h: Added a new member member_types_needing_access_check to
10575         struct tree_decl_non_common.
10576         (set_underlying_type): New entry point.
10577         (is_typedef_type): Likewise.
10578
10579 2009-01-21  Bingfeng Mei  <bmei@broadcom.com>
10580
10581         * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
10582         Check whether two instructions have memory references that
10583         belong to conflicting alias sets.  walk_mems_1 and walk_mems_2
10584         are helper functions for traversing.
10585         * alias.h (insn_alias_sets_confilict_p): New prototypes.
10586         * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
10587         not to draw dependency edge for instructions with non-conflicting
10588         alias sets.
10589
10590 2009-01-20  Joseph Myers  <joseph@codesourcery.com>
10591
10592         PR other/38758
10593         * longlong.h: Update copyright years.  Use soft-fp license notice.
10594         Sync __clz_tab declaration with glibc.
10595
10596 2009-01-20  Steve Ellcey  <sje@cup.hp.com>
10597
10598         PR target/30687
10599         * doc/extend.texi (syscall_linkage): New.
10600         (version_id): Modify.
10601
10602 2009-01-20  Andrew Pinski  <andrew_pinski@playstation.sony.com>
10603             Richard Guenther  <rguenther@suse.de>
10604
10605         PR tree-optimization/38747
10606         PR tree-optimization/38748
10607         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
10608         conversion if the base address is an indirect reference and the
10609         aliasing sets could cause issues.
10610
10611 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
10612
10613         * common.opt (fgraphite, fgraphite-identity): Add comment for
10614         explaining why these options are not documented.
10615
10616 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
10617
10618         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
10619         gimple_call_lhs is NULL.
10620
10621 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
10622
10623         PR target/38868
10624         * emit-rtl.c (adjust_address_1): Make sure memref is never
10625         overwritten.
10626
10627 2009-01-20  Ben Elliston  <bje@au.ibm.com>
10628
10629         * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
10630         const qualifier from arg parameter. Remove unnecessary cast to char *.
10631         * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
10632         const qualifier from arg 2.
10633
10634 2009-01-19  Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
10635
10636         * config/darwin.h: Add static-libgfortran to LINK_SPEC.
10637
10638 2009-01-19  Vladimir Makarov  <vmakarov@redhat.com>
10639
10640         PR c/38869
10641         * rtl.h (reinit_regs): New prototype.
10642         * regclass.c: Include ira.h.
10643         (reinit_regs): New.
10644         * Makefile.in (regclass.o): Add ira.h.
10645         * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
10646
10647 2009-01-18  H.J. Lu  <hongjiu.lu@intel.com>
10648
10649         PR target/38736
10650         * c-common.c (handle_aligned_attribute): Use
10651         ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
10652         default alignment value.
10653
10654         * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
10655
10656         * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
10657         * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
10658
10659         * doc/extend.texi: Update __attribute__ ((aligned)).  Document
10660         __BIGGEST_ALIGNMENT__.
10661
10662         * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
10663
10664 2009-01-18  Richard Guenther  <rguenther@suse.de>
10665
10666         PR tree-optimization/38819
10667         * tree-flow.h (operation_could_trap_helper_p): Declare.
10668         * tree-eh.c (operation_could_trap_helper_p): Export.
10669         * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
10670         * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
10671         * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
10672         are about to insert a possibly trapping instruction and fail
10673         in this case.
10674
10675 2009-01-18  Andreas Schwab  <schwab@suse.de>
10676
10677         * doc/install.texi (Configuration): Remove obsolete paragraph
10678         about use of --with-gnu-ld with --with-gnu-as.
10679
10680 2009-01-18  Kazu Hirata  <kazu@codesourcery.com>
10681
10682         * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
10683         doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
10684         Follow spelling conventions.
10685
10686 2009-01-18  Ben Elliston  <bje@au.ibm.com>
10687
10688         * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
10689         C++ warning about implicit conversion from void * to struct
10690         bitmap_head_def *.
10691         (bitmap_obstack_free): Likewise for bitmap_element *.
10692         * Makefile.in (bitmap.o-warn): Remove.
10693
10694 2009-01-17  Dave Korn  <dave.korn.cygwin@gmail.com>
10695
10696         * Makefile.in (BACKENDLIBS):  Reorder to match dependencies.
10697
10698 2009-01-17  Sebastian Pop  <sebastian.pop@amd.com>
10699             Tobias Grosser  <tobi.grosser@amd.com>
10700
10701         * graphite.c (graphite_trans_scop_block): Do not block single
10702         nested loops.
10703
10704 2009-01-16  Alexandre Oliva  <aoliva@redhat.com>
10705
10706         * ebitmap.h (ebitmap_iter_init): Initialize all fields.
10707         * ipa-struct-reorg.c (gen_struct_type): Replace known-true
10708         test with assertion.
10709
10710 2009-01-16  Richard Guenther  <rguenther@suse.de>
10711
10712         PR tree-optimization/38835
10713         PR middle-end/36227
10714         * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
10715         and INT + PTR -> (INT)(PTR p+ INT) folding.
10716         * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
10717
10718 2009-01-16  Adam Nemet  <anemet@caviumnetworks.com>
10719
10720         PR target/38554
10721         * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
10722         the subreg from a lowpart subreg if it is also casting the value.
10723
10724 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10725             Tobias Grosser  <tobi.grosser@amd.com>
10726
10727         * graphite.c (compare_prefix_loops): New.
10728         (build_scop_canonical_schedules): Rewritten.
10729         (graphite_transform_loops): Move build_scop_canonical_schedules
10730         after build_scop_iteration_domain.
10731
10732 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
10733             Tobias Grosser  <tobi.grosser@amd.com>
10734
10735         * graphite.c (add_conditions_to_domain): Add the loops to
10736         the dimension of the iteration domain.  Do copy the domain
10737         only when it exists.
10738         (build_scop_conditions_1): Do not call add_conditions_to_domain.
10739         (add_conditions_to_constraints): New.
10740         (can_generate_code_stmt, can_generate_code): Removed.
10741         (gloog): Do not call can_generate_code.
10742         (graphite_transform_loops): Call add_conditions_to_constraints
10743         after building the iteration domain.
10744
10745 2009-01-16  Jakub Jelinek  <jakub@redhat.com>
10746
10747         PR tree-optimization/38789
10748         * tree-ssa-threadedge.c
10749         (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
10750         __builtin_constant_p.
10751
10752 2009-01-16  Kenneth Zadeck  <zadeck@naturalbridge.com>
10753
10754         * dce.c (delete_unmarked_insns): Reversed the order that insns are
10755         examined before deleting them.
10756
10757 2009-01-16  Richard Earnshaw  <rearnsha@arm.com>
10758
10759         * function.c (aggregate_value_p): Correctly extract the function
10760         type from CALL_EXPR_FN lookup.
10761
10762 2009-01-16  Hariharan Sandanagobalane  <hariharan@picochip.com>
10763
10764         * config/picochip/picochip.c (picochip_override_options): Revert
10765         CFI asm flag disable commited previously.
10766
10767 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
10768             Tobias Grosser  <tobi.grosser@amd.com>
10769             Jan Sjodin  <jan.sjodin@amd.com>
10770
10771         * graphite.c (scan_tree_for_params): On substractions negate
10772         all the coefficients of the term.
10773         (clast_to_gcc_expression_red): New.  Handle reduction expressions
10774         of more than two operands.
10775         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
10776         (get_vdef_before_scop): Handle also the case of default definitions.
10777
10778 2009-01-15  Richard Sandiford  <rdsandiford@googlemail.com>
10779
10780         * caller-save.c (add_used_regs_1, add_used_regs): New functions.
10781         (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
10782         Also use them when walking CALL_INSN_FUNCTION_USAGE.
10783
10784 2009-01-15  H.J. Lu  <hongjiu.lu@intel.com>
10785             Joey Ye  <joey.ye@intel.com>
10786
10787         PR middle-end/37843
10788         * cfgexpand.c (expand_stack_alignment): Don't update stack
10789         boundary nor check incoming stack boundary here.
10790         (gimple_expand_cfg): Update stack boundary and check incoming
10791         stack boundary here.
10792
10793 2009-01-15  Kenneth Zadeck  <zadeck@naturalbridge.com>
10794
10795         * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
10796
10797 2009-01-14  Jakub Jelinek  <jakub@redhat.com>
10798
10799         PR rtl-optimization/38245
10800         * calls.c (expand_call): Add stack arguments to
10801         CALL_INSN_FUNCTION_USAGE even for pure calls (when
10802         ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
10803         in regs and partially in memory or BLKmode arguments.
10804         (emit_library_call_value_1): Add stack arguments to
10805         CALL_INSN_FUNCTION_USAGE even for pure calls (when
10806         ACCUMULATE_OUTGOING_ARGS).
10807         * dce.c: Include tm_p.h.
10808         (find_call_stack_args): New function.
10809         (deletable_insn_p): Call it for CALL_P insns.  Add ARG_STORES
10810         argument.
10811         (mark_insn): Call find_call_stack_args for CALL_Ps.
10812         (prescan_insns_for_dce): Walk insns backwards in bb rather than
10813         forwards.  Allocate and free arg_stores bitmap if needed, pass it
10814         down to deletable_insn_p, don't mark stores set in arg_stores
10815         bitmap, clear the bitmap at the beginning of each bb.
10816         * Makefile.in (dce.o): Depend on $(TM_P_H).
10817
10818 2009-01-14  Michael Meissner  <gnu@the-meissners.org>
10819
10820         PR target/22599
10821         * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
10822         to make sure the insn is a conditional test (bug 22599).  Reformat a
10823         few long lines.
10824
10825 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
10826
10827         PR middle-end/38431
10828         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
10829         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
10830         (gloog): Do not call cleanup_tree_cfg.
10831         (graphite_transform_loops): Call cleanup_tree_cfg after all
10832         scops have been code generated.
10833
10834 2009-01-14  Basile Starynkevitch  <basile@starynkevitch.net>
10835         * doc/gty.texi (Invoking the garbage collector): Added new node
10836         and section documenting ggc_collect.
10837
10838 2009-01-14  Richard Guenther  <rguenther@suse.de>
10839
10840         PR tree-optimization/38826
10841         PR middle-end/38477
10842         * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
10843         initialization notes only if we actually emitted a warning.
10844         (intra_create_variable_infos): Add constraints for a result decl
10845         that is passed by hidden reference.
10846         (build_pred_graph): Mark all related variables non-direct on
10847         address-taking.
10848
10849 2009-01-14  Nick Clifton  <nickc@redhat.com>
10850
10851         * ira-conflicts.c: Include addresses.h for the definition of
10852         base_reg_class.
10853         (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
10854         * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
10855
10856 2009-01-13  Vladimir Makarov  <vmakarov@redhat.com>
10857
10858         PR target/38811
10859         * Makefile.in (ira-lives.o): Add except.h.
10860
10861         * ira-lives.c: Include except.h.
10862         (process_bb_node_lives): Process can_throw_internal.
10863
10864 2009-01-13  Jakub Jelinek  <jakub@redhat.com>
10865
10866         PR rtl-optimization/38774
10867         * combine.c (simplify_set): When undoing cc_use change, don't do
10868         PUT_CODE on the newly created comparison, but instead put back the
10869         old comparison.
10870
10871 2009-01-13  Joseph Myers  <joseph@codesourcery.com>
10872
10873         * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
10874         values.  Remove duplicate arm8 entry.
10875
10876 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
10877
10878         PR tree-optimization/38786
10879         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
10880         the SSA_NAME case of expand_scalar_variables_expr.
10881         Set the type of an expression to the type of its assign statement.
10882         (expand_scalar_variables_expr): Also gather the scalar computation
10883         used to index the memory access.  Do not pass loop_p.
10884         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
10885         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
10886         the gimple_stmt_iterator where it inserts new code.
10887         Do not pass loop_p.
10888         (copy_bb_and_scalar_dependences): Do not pass loop_p.
10889         (translate_clast): Update call to copy_bb_and_scalar_dependences.
10890
10891 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
10892
10893         * graphite.h (debug_value): Removed.
10894         * graphite.c (debug_value): Removed.
10895
10896 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
10897
10898         * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
10899         ldrd/strd with two 32-bit instructions.
10900
10901 2009-01-13  Richard Earnshaw  <rearnsha@arm.com>
10902
10903         * config/arm/arm.c (struct processors): Pass for speed down into
10904         cost helper functions.
10905         (const_ok_for_op): Handle COMPARE and inequality nodes.
10906         (arm_rtx_costs_1): Rewrite.
10907         (arm_size_rtx_costs): Update prototype.
10908         (arm_rtx_costs): Pass speed down to helper functions.
10909         (arm_slowmul_rtx_costs): Rework cost calculations.
10910         (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
10911         (arm_9e_rtx_costs): Likewise.
10912
10913 2009-01-13  Uros Bizjak  <ubizjak@gmail.com>
10914
10915         * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
10916         relocations of local symbols wider than UNITS_PER_WORD are not valid.
10917         (alpha_legitimize_address): Do not split local symbols wider than
10918         UNITS_PER_WORD into HIGH/LO_SUM parts.
10919
10920 2009-01-13  Danny Smith  <dannysmith@users.sourceforge.net>
10921
10922         PR bootstrap/38580
10923         * gcc.c (process_command): Replace call to execvp with calls
10924         to pex_one and exit.
10925
10926 2009-01-03  Anatoly Sokolov  <aesok@post.ru>
10927
10928         PR target/29141
10929         * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
10930         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
10931         variant for devices with 3-byte PC.
10932         (__tablejump_elpm__): New.
10933
10934 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
10935
10936         PR c/32041
10937         * c-parser.c (c_parser_postfix_expression): Allow `->' in
10938         offsetof member-designator, handle it as `[0].'.
10939
10940 2009-01-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10941
10942         * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
10943         function when not using named sections on targets with named sections
10944         if branch distance is less than 262132.
10945
10946 2009-01-12  Richard Earnshaw  <rearnsha@arm.com>
10947
10948         * combine.c (combine_instructions):  Recompute
10949         optimize_this_for_speed_p  for each BB in the main combine loop.
10950
10951 2009-01-12  Tomas Bily  <tbily@suse.cz>
10952
10953         PR middlend/38385
10954         * tree-loop-distribution.c (prop_phis): New function.
10955         (generate_builtin): Call prop_phis.
10956         * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
10957
10958 2009-01-12  Jakub Jelinek  <jakub@redhat.com>
10959
10960         PR tree-optimization/38807
10961         * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
10962         gimple_visited_p unless stmt is GIMPLE_ASSIGN.
10963
10964 2009-01-11  Adam Nemet  <anemet@caviumnetworks.com>
10965
10966         * expmed.c (store_bit_field_1): Properly truncate the paradoxical
10967         subreg of op0 to the original op0.
10968
10969 2009-01-11  Laurent GUERBY  <laurent@guerby.net>
10970
10971         * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
10972
10973 2009-01-11  Markus Schoepflin  <markus.schoepflin@comsoft.de>
10974
10975         PR debug/7055
10976         * mips-tfile.c (parse_def): Fix parsing of def strings
10977         starting with digits.
10978
10979 2009-01-10  Jakub Jelinek  <jakub@redhat.com>
10980
10981         PR target/38695
10982         * config/arm/arm.c (arm_is_long_call_p): Don't call
10983         arm_function_in_section_p if decl isn't a FUNCTION_DECL.
10984
10985 2009-01-09  Steven Bosscher  <steven@gcc.gnu.org>
10986
10987         * regrename.c (regrename_optimize): Fix dumping.
10988         (find_oldest_value_reg): Preserve REG_POINTER.
10989         (copy_hardreg_forward_1): Likewise.
10990
10991 2009-01-09  Diego Novillo  <dnovillo@google.com>
10992
10993         * gimple.h (struct gimple_statement_base) <uid>: Document
10994         the restrictions on its use.
10995         (gimple_uid): Tidy.
10996         (gimple_set_uid): Tidy.
10997
10998 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
10999
11000         * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
11001         zero guard even if align_bytes != 0 and count is smaller than
11002         size_needed.
11003
11004 2009-01-09  Vladimir Makarov  <vmakarov@redhat.com>
11005
11006         PR rtl-optimization/38495
11007         * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
11008         (add_range_and_copies_from_move_list): Print all added ranges.
11009         Add ranges to memory optimized destination.
11010
11011 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
11012
11013         PR target/38686
11014         PR target/38708
11015         * config/i386/i386.c (override_options): Reject
11016         -mstringop-strategy=rep_8byte with -m32.
11017         (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
11018         to 1.  Do count comparison against epilogue_size_needed at compile
11019         time even when count_exp was constant forced into register.  For
11020         size_needed don't jump to epilogue, instead just avoid aligning
11021         and invoke the body algorithm.  If need_zero_guard, add zero guard
11022         even if count is non-zero, but smaller than size_needed + number of
11023         bytes that could be stored for alignment.
11024         (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
11025         to 1.  If need_zero_guard, add zero guard even if count is non-zero,
11026         but smaller than size_needed + number of bytes that could be stored
11027         for alignment.  Compare size_needed with epilogue_size_needed instead
11028         of desired_align - align, don't adjust size_needed, pass
11029         epilogue_size_needed to the epilogue expanders.
11030
11031         PR c/35742
11032         * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
11033
11034 2009-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11035
11036         * pa.c (last_address): Change to unsigned.
11037         (update_total_code_bytes): Change argument to unsigned.  Don't
11038         check if insn addresses are set.
11039         (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
11040         addresses are not set.
11041         (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
11042
11043 2009-01-09  Nick Clifton  <nickc@redhat.com>
11044
11045         * config/sh/symbian.c: Replace uses of DECL_INLINE with
11046         DECL_DECLARED_INLINE_P.
11047
11048 2009-01-09  Jakub Jelinek  <jakub@redhat.com>
11049
11050         PR middle-end/38347
11051         * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
11052         GET_MODE (op0) in operand_subword_force calls.
11053
11054         PR middle-end/38771
11055         * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
11056         fold_convert arg0 operands to TREE_TYPE (op0) first.
11057
11058 2009-01-08  Vladimir Makarov  <vmakarov@redhat.com>
11059
11060         * params.def (ira-max-conflict-table-size): Decrease default value
11061         to 1000.
11062
11063 2009-01-08  Jakub Jelinek  <jakub@redhat.com>
11064
11065         PR tree-optimization/37031
11066         * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
11067         on parameter_set.
11068         (build_access_matrix): Reserve correct size for AM_MATRIX vector,
11069         allocate it using gc instead of heap, use VEC_quick_push instead of
11070         VEC_safe_push.
11071         * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
11072         instead of heap, use VEC_quick_push instead of VEC_safe_push.
11073         * tree-data-ref.h (struct access_matrix): Change matrix to gc
11074         allocated vector from heap allocated.
11075         * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
11076         * tree-loop-linear.c (linear_transform_loops): Allocate nest
11077         vector only after perfect_loop_nest_depth call.
11078
11079 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
11080             Jan Sjodin  <jan.sjodin@amd.com>
11081
11082         PR tree-optimization/38559
11083         * graphite.c (debug_value, copy_constraint,
11084         swap_constraint_variables, scale_constraint_variable, ): New.
11085         (get_lower_bound, get_upper_bound): Removed.
11086         (graphite_trans_bb_strip_mine): Clean up this code that works
11087         only for constant number of iterations.  Fully copy upper and
11088         lower bound constraints, not only the constant part of them.
11089         * graphite.h (debug_value): Declared.
11090
11091 2009-01-08  Ira Rosen  <irar@il.ibm.com>
11092
11093         PR tree-optimization/37194
11094         * tree-vect-transform.c (vect_estimate_min_profitable_iters):
11095         Don't add the cost of cost model guard in prologue to scalar
11096         outside cost in case of known number of iterations.
11097
11098 2009-01-07  Nathan Froyd  <froydnj@codesourcery.com>
11099             Alan Modra  <amodra@bigpond.net.au>
11100
11101         * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
11102         non-word-aligned REG+CONST addressing.
11103
11104 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
11105
11106         PR target/38706
11107         * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
11108         free_after_compilation when outputting a thunk.
11109         (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
11110         Do not call free_after_compilation here.
11111
11112 2009-01-07  Uros Bizjak  <ubizjak@gmail.com>
11113
11114         * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
11115         (ix86_valid_target_attribute_inner_p): Ditto.
11116
11117 2009-01-07  Jan Sjodin  <jan.sjodin@amd.com>
11118
11119         PR tree-optimization/38492
11120         PR tree-optimization/38498
11121         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
11122         * tree-chrec.h (scev_is_linear_expression): Declared.
11123         * graphite.c (graphite_cannot_represent_loop_niter): New.
11124         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
11125         (graphite_loop_normal_form): Use gcc_assert.
11126         (scan_tree_for_params): Use CASE_CONVERT.
11127         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
11128         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
11129         Use gcc_assert.  Discard scops that contain unhandled cases.
11130         (build_scop_conditions): Return a boolean status for unhandled cases.
11131         (strip_mine_profitable_p): Print the loop number, not its depth.
11132         (is_interchange_valid): Pass the depth of the loop nest, don't
11133         recompute it wrongly.
11134         (graphite_trans_bb_block): Same.
11135         (graphite_trans_bb_block): Print tentative of loop blocking.
11136         (graphite_trans_scop_block): Do not print that the loop has been
11137         blocked.
11138         (graphite_transform_loops): Do not handle scops that contain condition
11139         scalar phi nodes.
11140
11141 2009-01-07  H.J. Lu  <hongjiu.lu@intel.com>
11142
11143         AVX Programming Reference (December, 2008)
11144         * config/i386/avxintrin.h (_mm256_stream_si256): New.
11145         (_mm256_stream_pd): Likewise.
11146         (_mm256_stream_ps): Likewise.
11147
11148         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
11149         IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
11150         (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
11151         (bdesc_special_args): Add __builtin_ia32_movntdq256,
11152         __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
11153         (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
11154         (ix86_expand_special_args_builtin): Likewise.
11155
11156         * config/i386/sse.md (AVXMODEDI): New.
11157         (avx_movnt<mode>): Likewise.
11158         (avx_movnt<mode>): Likewise.
11159         (<sse>_movnt<mode>): Remove AVX support.
11160         (sse2_movntv2di): Likewise.
11161
11162 2009-01-07  Richard Guenther  <rguenther@suse.de>
11163
11164         PR middle-end/38751
11165         * fold-const.c (extract_muldiv): Remove obsolete comment.
11166         (fold_plusminus_mult_expr): Undo MINUS_EXPR
11167         to PLUS_EXPR canonicalization for the canonicalization.
11168
11169 2009-01-07  Gerald Pfeifer  <gerald@pfeifer.com>
11170
11171         * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
11172         hosted cross-compilers generating less efficient code.
11173
11174 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
11175
11176         * function.h (rtl_data): Add a dbr_scheduled_p field.
11177         * reorg.c (dbr_schedule): Set it.
11178         (gate_handle_delay_slots): Check it.
11179         * config/mips/mips.c (mips_base_delayed_branch): Delete.
11180         (mips_reorg): Check flag_delayed_branch instead of
11181         mips_base_delayed_branch.
11182         (mips_override_options): Don't set mips_base_delayed_branch
11183         or flag_delayed_branch.
11184
11185 2009-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
11186
11187         PR rtl-optimization/38426.
11188         * ira.c (ira): Set current_function_is_leaf earlier.
11189
11190 2009-01-06  Jakub Jelinek  <jakub@redhat.com>
11191
11192         PR rtl-optimization/38722
11193         * combine.c (try_combine): Don't modify PATTERN (i3) and notes
11194         too early, only set a flag and modify after last possible
11195         undo_all point.
11196
11197 2009-01-06  Janis Johnson  <janis187@us.ibm.com>
11198
11199         PR c/34252
11200         * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
11201         * real.c (decimal_single_format): Correct values of emin and emax.
11202         (decimal_double_format): Ditto.
11203         (decimal_quad_format): Ditto.
11204         * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
11205         computation of DECnn_MIN and DECnn_MAX for corrected values of
11206         emin and emax.  Define __DECnn_SUBNORMAL_MIN__ instead of
11207         __DECnn_MIN__, and adjust its computation for the corrected value
11208         of emin.
11209
11210 2009-01-06  Jan Hubicka  <jh@suse.cz>
11211
11212         PR target/38744
11213         * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
11214
11215 2009-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
11216
11217         * doc/contrib.texi (Contributors): Slightly adjust the end note.
11218         Add Robert Clark to the list of testers.
11219
11220 2009-01-06  Jan Hubicka  <jh@suse.cz>
11221             Kai Tietz  <kai.tietz@onevision.com>
11222
11223         * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
11224         * config/i386/i386.c (ix86_expand_call): Add clobbers.
11225
11226 2009-01-06  Jan Hubicka  <jh@suse.cz>
11227             Kai Tietz  <kai.tietz@onevision.com>
11228
11229         * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
11230         for w64 ABI.
11231         * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
11232         (ix86_nsaved_regs): Count only general purpose regs.
11233         (ix86_nsaved_sseregs): New.
11234         (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
11235         to 16 for w64; compute padding and size of sse reg save area.
11236         (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
11237         general purpose regs.
11238         (ix86_emit_save_sse_regs_using_mov): New.
11239         (ix86_expand_prologue): Save SSE regs if needed.
11240         (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
11241         (ix86_emit_restore_sse_regs_using_mov): New.
11242         (ix86_expand_epilogue): Save SSE regs if needed.
11243
11244 2009-01-06  Jan Hubicka  <jh@suse.cz>
11245             Kai Tietz  <kai.tietz@onevision.com>
11246
11247         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
11248         * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
11249         functions when accumulate outgoing args is off.
11250
11251 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
11252
11253         PR bootstrap/38742
11254         * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
11255         before using pseudos_have_intersected_live_ranges_p.
11256
11257         * ira-int.h (ira_assert): Always define.
11258
11259 2009-01-06  H.J. Lu  <hongjiu.lu@intel.com>
11260
11261         AVX Programming Reference (December, 2008)
11262         * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
11263         (_mm256_permute2_pd): Likewise.
11264         (_mm_permute2_ps): Likewise.
11265         (_mm256_permute2_ps): Likewise.
11266         * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
11267         * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
11268
11269         * config/i386/i386.c (ix86_builtins): Remove
11270         IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
11271         IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
11272         (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
11273         V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
11274         and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
11275         (bdesc_args): Remove __builtin_ia32_vpermil2pd,
11276         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
11277         __builtin_ia32_vpermil2ps256.
11278         (ix86_init_mmx_sse_builtins): Updated.
11279         (ix86_expand_args_builtin): Likewise.
11280
11281 2009-01-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11282
11283         * pa.c (output_call): Relocate non-jump insns in the delay slot of
11284         long absolute calls when generating PA 2.0 code.
11285
11286 2009-01-05  Vladimir Makarov  <vmakarov@redhat.com>
11287
11288         PR rtl-optimization/38583
11289         * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
11290
11291         * params.def (ira-max-conflict-table-size): New.
11292
11293         * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
11294
11295         * ira.h (ira_conflicts_p): New external definition.
11296
11297         * ira-conflicts.c (build_conflict_bit_table): Do not build too big
11298         table.  Report this.  Return result of building.
11299         (ira_build_conflicts): Use ira_conflicts_p.  Check result of
11300         building conflict table.
11301
11302         * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
11303         (ira_color): Use ira_conflicts_p.
11304
11305         * global.c: Include ira.h.
11306         (pseudo_for_reload_consideration_p, build_insn_chain): Use
11307         ira_conflicts_p.
11308
11309         * Makefile.in (global.o): Add ira.h.
11310
11311         * ira-build.c (mark_all_loops_for_removal,
11312         propagate_some_info_from_allocno): New.
11313         (remove_unnecessary_allocnos): Call
11314         propagate_some_info_from_allocno.
11315         (remove_low_level_allocnos): New.
11316         (remove_unnecessary_regions): Add parameter.  Call
11317         mark_all_loops_for_removal and remove_low_level_allocnos.  Pass
11318         parameter to remove_unnecessary_regions.
11319         (ira_build): Remove all regions but root if the conflict table was
11320         not built.  Update conflict hard regs for allocnos crossing calls.
11321
11322         * ira.c (ira_conflicts_p): New global.
11323         (ira): Define and use ira_conflicts_p.
11324
11325         * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
11326         count_spilled_pseudo, find_reg, alter_reg, finish_spills,
11327         emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
11328
11329 2009-01-06  Ben Elliston  <bje@au.ibm.com>
11330
11331         * gengtype-lex.l (YY_NO_INPUT): Define.
11332
11333 2009-01-05  Andrew Pinski  <andrew_pinski@playstation.sony.com>
11334
11335         PR c/34911
11336         * c-common.c (handle_vector_size_attribute): Also reject
11337         BOOLEAN_TYPE types.
11338
11339 2009-01-05  Sebastian Pop  <sebastian.pop@amd.com>
11340
11341         PR tree-optimization/38492
11342         * graphite.c (rename_map_elt, debug_rename_elt,
11343         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
11344         rename_map_elt_info, eq_rename_map_elts,
11345         get_new_name_from_old_name, bb_in_sese_p): Moved around.
11346         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
11347         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
11348         (sese_build_livein_liveouts): New.
11349         (new_sese, free_sese): New.
11350         (new_scop): Call new_sese.
11351         (free_scop): Call free_sese.
11352         (rename_variables_from_edge, rename_phis_end_scop): Removed.
11353         (register_old_new_names): Renamed register_old_and_new_names.
11354         (register_scop_liveout_renames, add_loop_exit_phis,
11355         insert_loop_close_phis, struct igp,
11356         default_liveout_before_guard, add_guard_exit_phis,
11357         insert_guard_phis, copy_renames): New.
11358         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
11359         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
11360         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
11361         (scop_adjust_phis_for_liveouts): New.
11362         (gloog): Call scop_adjust_phis_for_liveouts.
11363
11364         * graphite.h (struct sese): Documented.  Added fields liveout,
11365         num_ver and livein.
11366         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
11367         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
11368         (struct scop): Added field liveout_renames.
11369         (SCOP_LIVEOUT_RENAMES): New.
11370
11371 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
11372
11373         PR tree-optimization/38510
11374         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
11375         (translate_clast): Call recompute_all_dominators before
11376         graphite_verify.
11377         (gloog): Call recompute_all_dominators before graphite_verify.
11378
11379 2009-01-05  Harsha Jagasia  <harsha.jagasia@amd.com>
11380             Jan Sjodin  <jan.sjodin@amd.com>
11381
11382         PR tree-optimization/38500
11383         * graphite.c (create_sese_edges): Call fix_loop_structure after
11384         splitting blocks.
11385
11386 2009-01-05  Joel Sherrill  <joel.sherrill@oarcorp.com>
11387
11388         * config.gcc: Add m32r*-*-rtems*.
11389         * config/m32r/rtems.h: New file.
11390
11391 2009-01-05  Ben Elliston  <bje@au.ibm.com>
11392
11393         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
11394         (.po.pox): Likewise.
11395         (po/gcc.pot): Likewise.
11396
11397 2009-01-04  David S. Miller  <davem@davemloft.net>
11398
11399         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
11400         (STARTING_FRAME_OFFSET): Always set to zero.
11401
11402 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
11403
11404         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
11405         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
11406         fixed-point types, and vectors of the same.
11407
11408 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
11409
11410         * config/mips/sync.md (*mb_barrier): Rename to...
11411         (*memory_barrier): ...this.
11412
11413 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
11414
11415         * doc/extend.texi (Function Attributes): Move @cindex after @item
11416         for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
11417         and put in alphabetical order. Fix 'target' name and put in order.
11418         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
11419         typos.
11420
11421 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
11422
11423         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
11424         (memory_barrier): Expand as unspec instead of unspec_volatile.
11425         Remove mem:BLK from insn operands.  Use Pmode scratch register.
11426         (*memory_barrier): Define as unspec instead of unspec_volatile.
11427         Use (match_dup 0) as input operand.
11428
11429         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
11430         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
11431         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
11432         scratch register.  Remove operand 1.
11433         (*stbar): Define as unspec instead of unspec_volatile.
11434         Use (match_dup 0) as input operand, remove (const_int 8).
11435         (*membar): Define as unspec instead of unspec_volatile.
11436         Use (match_dup 0) as input operand, remove input operand 2.
11437
11438         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
11439         (memory_barrier): Expand as unspec instead of unspec_volatile.
11440         Remove mem:BLK from insn operands.  Use Pmode scratch register.
11441         (*memory_barrier): Define as unspec instead of unspec_volatile.
11442         Use (match_dup 0) as input operand.
11443
11444         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
11445         Remove mem:BLK from insn operands.  Use Pmode scratch register.
11446         Set volatile flag on operand 0.
11447         (*memory_barrier): New insn pattern.
11448
11449         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
11450         insn operands.
11451         (*memory_barrier): Use (match_dup 0) as input operand.
11452
11453         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
11454         Remove mem:BLK from insn operands.  Use Pmode scratch register.
11455         Set volatile flag on operand 0.
11456         (*mb_internal): New insn pattern.
11457
11458         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
11459
11460 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
11461
11462         PR middle-end/38586
11463         * function.c (struct temp_slot): Move to the section of the file
11464         that deals with temp slots.  Remove field 'address'.
11465         (temp_slot_address_table): New hash table of address -> temp slot.
11466         (struct temp_slot_address_entry): New struct, items for the table.
11467         (temp_slot_address_compute_hash, temp_slot_address_hash,
11468         temp_slot_address_eq, insert_temp_slot_address): Support functions
11469         for the new table.
11470         (find_temp_slot_from_address): Rewrite to use the new hash table.
11471         (remove_unused_temp_slot_addresses): Remove addresses of temp
11472         slots that have been made available.
11473         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
11474         worker function for remove_unused_temp_slot_addresses.
11475         (assign_stack_temp_for_type): Don't clear the temp slot address list.
11476         Add the temp slot address to the address -> temp slot map.
11477         (update_temp_slot_address): Update via insert_temp_slot_address.
11478         (free_temp_slots): Call remove_unused_temp_slot_addresses.
11479         (pop_temp_slots): Likewise.
11480         (init_temp_slots): Allocate the address -> temp slot map, or empty
11481         the map if it is already allocated.
11482         (prepare_function_start): Initialize temp slot processing.
11483
11484 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
11485
11486         PR middle-end/38584
11487         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
11488         Calculate the size of all stack vars assuming no packing of stack
11489         vars will happen, replacing a quadratic algorithm with a linear one.
11490
11491 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
11492
11493         PR target/38707
11494         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
11495         can't be used.
11496
11497 2009-01-03  Diego Novillo  <dnovillo@google.com>
11498
11499         * doc/contrib.texi: Update contributions.
11500
11501 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
11502
11503         PR c++/38705
11504         * builtins.c (fold_builtin_memory_op): Give up if either operand
11505         is volatile.  Set srctype or desttype to non-qualified version
11506         of the other type.
11507
11508         PR c/38700
11509         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
11510         and FUNCTION_DECLs.
11511
11512 2009-01-02  Kenneth Zadeck  <zadeck@naturalbridge.com>
11513
11514         PR rtl-optimization/35805
11515         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
11516         problem if fast dce is able to remove any instructions.
11517         * dce.c (dce_process_block): Fix dump message.
11518
11519 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
11520
11521         PR 33649
11522         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
11523
11524 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
11525
11526         PR middle-end/38690
11527         * tree-flow.h (op_code_prio, op_prio): New prototypes.
11528         * tree-pretty-print.c (op_code_prio): New function.
11529         (op_prio): No longer static.  Use op_code_prio.
11530         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
11531         Use op_prio and op_code_prio to determine if () should be
11532         printed around operand(s) or not.
11533
11534         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
11535         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
11536         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
11537         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
11538         pp_character instead of pp_string for single letter printing.
11539
11540 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
11541
11542         * doc/extend.texi: Fix '#pragma GCC option' typo.
11543
11544 2009-01-02  Richard Guenther  <rguenther@suse.de>
11545
11546         * doc/install.texi (--enable-checking): Mention different
11547         default for stage1.
11548         (--enable-stage1-checking): Document.
11549
11550 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
11551
11552         PR middle-end/30142
11553         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
11554         case to be an error.
11555
11556 2009-01-02  Ben Elliston  <bje@au.ibm.com>
11557
11558         * config/fp-bit.h (pack_d): Constify argument.
11559         * config/fp-bit.c (makenan): Constify return type. Remove casts.
11560         (isnan): Constify argument.
11561         (isinf): Likewise.
11562         (iszero): Likewise.
11563         (pack_d): Likewise.
11564         (_fpadd_parts): Constify return type.
11565         (_fpmul_parts): Likewise.
11566         (_fpdiv_parts): Likewise.
11567
11568 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
11569
11570         PR c/36489
11571         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
11572         warn about overwriting initializer with side-effects or
11573         -Woverride-init if !IMPLICIT.
11574         (output_init_element): Likewise.  Pass IMPLICIT down to
11575         add_pending_init.
11576         (process_init_element): Add IMPLICIT argument.  Pass it down
11577         to output_init_element.
11578         (push_init_element, pop_init_level, set_designator): Adjust
11579         process_init_element callers.
11580         (set_nonincremental_init, set_nonincremental_init_from_string):
11581         Adjust add_pending_init callers.
11582         (output_pending_init_elements): Adjust output_init_element callers.
11583         * c-tree.h (process_init_element): Adjust prototype.
11584         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
11585         process_init_element callers.
11586
11587 \f
11588 Copyright (C) 2009 Free Software Foundation, Inc.
11589
11590 Copying and distribution of this file, with or without modification,
11591 are permitted in any medium without royalty provided the copyright
11592 notice and this notice are preserved.