1 2009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
3 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
4 (sh_legitimate_address_p): Likewise.
5 * config/sh/sh.c (sh_legitimate_index_p): New.
6 (sh_legitimate_address_p): Likewise.
7 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
8 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
9 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
10 (MAYBE_BASE_REGISTER_RTX_P): New macro.
11 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
12 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
13 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
14 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
15 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
17 2009-05-12 Jan Hubicka <jh@suse.cz>
19 * tree-inline.c (estimate_operator_cost): Add operands;
20 when division happens by constant, it is cheap.
21 (estimate_num_insns): Loads and stores are not having cost of 0;
22 EH magic stuff is cheap; when computing runtime cost of switch,
23 use log2 base of amount of its cases; builtin_expect has cost of 0;
24 compute cost for moving return value of call.
25 (init_inline_once): Initialize time_based flags.
26 * tree-inline.h (eni_weights_d): Add time_based flag.
28 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
30 * df-core.c: Update head documentation.
32 2009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
35 * rs6000.c (rs6000_generate_compare): Use op1b instead of
36 shadowing exisiting variable op1.
38 2009-05-12 Uros Bizjak <ubizjak@gmail.com>
41 * config/i386/driver-i386.c (processor_signatures): New enum.
42 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
43 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
44 processor signature to detect geode processor.
46 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
50 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
52 * optabs.c (prepare_cmp_insn): Temporarily disable test that
53 causes spurious differences between trunk and cond-optab branch.
55 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
57 * dojump.c (compare_from_rtx): Delete.
58 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
59 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
60 if the comparison does not satisfy the predicate; test predicates for
61 operands 2 and 3 of a cstore pattern. Don't try cstore optab
62 further if one existing pattern fails.
63 * expr.h (compare_from_rtx): Delete.
64 (prepare_operand): Declare it.
65 * optabs.c: Change "lib call" to "libcall" throughout.
66 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
67 HAVE_conditional_trap, emit_cmp_insn): Delete.
68 (can_compare_p): Delete cmp_optab case.
69 (prepare_float_lib_cmp): Return an rtx and a machine mode.
70 Accept other parameters by value.
71 (prepare_operand): Make non-static.
72 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
73 other parameters by value. Try to widen operands here based on
74 an optab_methods argument and looking at cbranch_optab.
75 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
76 loop. Use cbranch_optab directly.
77 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
78 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
80 (emit_conditional_move, emit_conditional_add): Inline what's needed
81 of compare_from_rtx, using new prepare_cmp_insn for the rest.
82 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
83 with COMPARE. Move cmov_optab and cstore_optab above
84 with cbranch_optab, move cmp_optab down with ucmp_optab,
85 remove tst_otpab. Do not initialize trap_rtx.
86 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
87 for trap code. Do not check HAVE_conditional_trap. Use
88 prepare_cmp_insn. Accept no predicate for operand 3.
89 * optabs.h (OTI_cmp): Mark as used only for libcalls.
90 (OTI_ctrap, ctrap_optab): New.
92 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
93 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
94 with lookup of ctrap_optab.
95 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn,
96 setcc_gen_code): Delete.
99 * combine.c (combine_simplify_rtx, simplify_set): Do not
100 special case comparing against zero for cc0 machines.
101 * simplify-rtx.c (simplify_binary_operation_1): Never remove
102 COMPARE on cc0 machines.
103 (simplify_relational_operation): Return a new expression when
104 a COMPARE could be removed.
105 * final.c (final_scan_insn): Compare cc_status values
106 against LHS of a (compare FOO (const_int 0)) cc0 source.
107 Also check if cc_status.value is the full compare.
109 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
110 (cstoreMM4): Document.
111 (conditional_trap): Document ctrapMM4 instead.
112 (sync_compare_and_swapMM): Refer to cbranchcc4.
113 (Dependent Patterns): Eliminate obsolete information referring to
114 the old jump optimization phase.
115 (Canonicalization): Include cbranchcc4 case, omit canonicalization
116 of compares with 0 on cc0 machines.
117 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
118 avoiding references to cc0. Remove text about storing operands
120 * doc/tm.texi (Condition Codes): Include blurb on different
121 condition code representations, separate into subsections for
122 CC0, MODE_CC and conditional execution.
124 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
125 alpha_emit_setcc): Accept operands and a machine mode.
126 * config/alpha/alpha.c (alpha_emit_conditional_branch):
127 Get code/op0/op1 from operands, use machine mode argument
128 instead of alpha_compare.fp_p. Emit the branch here.
129 (alpha_emit_setcc): Likewise, and return boolean.
130 (alpha_emit_conditional_move): Likewise. Assert that
131 cmp_op_mode == cmp_mode, and simplify accordingly.
132 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
133 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
134 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
136 (stack probe test): Use cbranchdi4.
137 * config/alpha/predicates.md (alpha_cbranch_operator): New.
139 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
140 * config/arc/arc.h (movsicc, movsfcc): Use it.
141 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
142 (cbranchsi4, cstoresi4): New.
143 (cmpsi, bCC and sCC expanders): Remove.
145 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
146 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
147 * config/arm/predicates.md (arm_comparison_operator): Only include
148 floating-point operators if there is a hardware floating-point unit.
149 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
150 deferring to cbranch_cc and cstore_cc respectively.
151 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
152 cbranch_cc, cstore_cc): New.
153 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
155 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
157 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
158 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
160 (adjust_insn_length): Adjust calls.
161 (avr_reorg): Handle (compare (foo) (const_int 0)).
162 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
163 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
164 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
165 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
167 (cbranchqi4, cbranchhi4, cbranchsi4): New.
168 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
170 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
171 (cbranchsi4, cstorebi4, cstoresi4): New.
172 (movbisi): This insn is duplicate, split it to zero_extend.
173 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
174 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
175 (bfin_optimize_loop): Use cbranch expander.
176 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
177 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
178 (bfin_bimode_comparison_operator): ... this.
179 (bfin_direct_comparison_operator): New.
181 * config/cris/cris.c (cris_normal_notice_update_cc): Look
182 inside (compare FOO (const_int 0)).
183 (cris_rtx_costs): Handle ZERO_EXTRACT.
184 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
185 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
186 (*tstdi_v32): Delete.
187 (*cmpdi_non_v32): Add M alternative for operand 1.
188 (cmpsi, cmp<mode>): Make private.
189 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
191 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
193 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
194 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
195 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
196 (cc_reg_operand): New.
198 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
199 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
200 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
201 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
202 crx_expand_scond): Delete.
204 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
206 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
207 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
209 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
210 cstoresi4, cstoresf4, cstoredf4): New.
211 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
212 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
213 Receive the entire operands array.
214 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
215 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
216 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
217 Get test/op0/op1 from the operands array.
218 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
220 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
221 (h8300_expand_store): New.
222 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
224 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
225 (h8300_expand_store): New.
226 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
227 or do not try to produce (set (cc0) REG).
228 (peepholes): Wrap arguments with COMPARE. Add a peephole to
229 change a compare into a move to a scratch register. Disable some
230 peepholes when comparing with zero.
231 (tstsi, tsthi, tstsi, cmpqi): Make private.
234 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
237 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
238 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
239 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
240 (ix86_emit_i387_log1p): Use cbranchxf2.
241 (ix86_expand_setcc): Return void.
242 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
243 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
244 cmp<MODEF>, cmpcc): Remove.
245 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
246 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
247 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
248 (sCC and bCC expanders): Remove.
249 (stack_protect_test): Use cbranchcc4.
251 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
253 (ia64_expand_compare): Accept three rtx by reference and return void.
254 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
255 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
256 from *expr. Update *expr with the BImode comparison to do.
257 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
258 cmptf, bCC, sCC, conditional_trap): Delete.
259 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
260 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
261 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
262 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
263 * config/ia64/predicates.md (ia64_cbranch_operator): New.
265 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
266 type of last argument.
267 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
268 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
269 use machine mode argument instead of branch_type. Remove dead
270 code for floating-point comparisons.
271 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
272 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
274 (cbranchsi4, cstoresi4): New.
275 * config/iq2000/predicates.md (reg_or_const_operand): New.
277 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
278 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
279 (b<code>_op): Rewrite to...
280 (bcc_op): ... this, using match_operator.
281 (s<code>_op): Rewrite to...
282 (scc_op): ... this, using match_operator.
283 (s<code>_24_op): Rewrite to...
284 (scc_op_24): ... this, using match_operator.
285 (s<code>_<mode>): Rewrite to...
286 (cstore<mode>4): ... this, using match_operator.
287 (s<code>_<mode>_24): Rewrite to...
288 (cstore<mode>4_24): ... this, using match_operator.
289 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
290 m32c_unpend_compare, m32c_expand_scc): Delete.
291 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
292 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
293 (m32c_expand_movcc): Change NE to EQ if necessary.
294 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
296 * config/m32r/m32r-protos.h (gen_cond_store): New.
297 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
298 (gen_cond_store): New, from sCC patterns.
299 (m32r_expand_block_move): Use cbranchsi4.
300 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
301 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
302 (cbranchsi4, cstoresi4): New.
304 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
306 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
307 (m68hc11_notice_update_cc): Look into a compare with 0.
308 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
310 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
311 cmphi, cmpqi, bCC): Delete.
312 (cbranchsi4, cbranchhi4, cbranchqi4): New.
313 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
314 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
317 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
318 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
319 * config/m68k/constraints.md (H): New.
320 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
321 the define_insn below.
322 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
323 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
324 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
325 patterns): Wrap RHS with COMPARE.
326 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
327 (*cmpdi_internal): Name this pattern.
328 (cmpdi): Change to define_insn.
329 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
330 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
331 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
333 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
334 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
335 (conditional_trap): Change to...
336 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
337 (*conditional_trap): Use the ordered_comparison_operator and
338 const1_operand predicates.
339 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
340 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
341 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
342 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
344 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
345 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
346 (mcore_gen_compare): New.
347 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
348 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
349 (mcore_gen_compare): ... this.
350 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
351 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
352 (stack probe pattern): Use cbranchsi4.
354 * config/mips/predicates.md (mips_cstore_operator): New.
355 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
356 * config/mips/mips.md (any_cond): Delete.
357 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
359 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
360 fixuns_truncsfdi2): Use cbranch patterns.
361 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
362 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
363 Adjust call to mips_expand_conditional_branch.
364 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
366 * config/mips/mips-protos.h (mips_expand_conditional_branch,
367 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
368 * config/mips/mips.c (cmp_operands): Delete.
369 (mips_emit_compare): Get comparison operands from *op0/*op1.
370 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
371 that it succeeds. Use op0/op1 instead of cmp_operands.
372 (mips_expand_conditional_branch, mips_expand_conditional_move,
373 mips_expand_conditional_trap): Likewise.
374 (mips_block_move_loop): Use cbranch patterns.
375 * config/mips/mips.h (cmp_operands): Delete.
377 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
378 (mmix_gen_compare_reg): Just return a register in the right CC mode.
379 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
380 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
381 (*cmpcc_folded): Rename to...
382 (*cmpdi_folded): this.
383 (*cmpcc): Rename to...
385 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
388 (cbranchdf4): New. Handle invalid comparisons here.
389 * config/mmix/predicates.md (float_comparison_operator): New.
391 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
392 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
393 * config/mn10300/mn10300.md (tst): Delete.
394 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
395 Name these patterns and wrap RHS in a compare.
396 (*cmpsi): Make this pattern private. Include tst.
397 (*cmpsf): Make this pattern private.
398 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
399 (compare with zero peepholes): Likewise.
401 (cbranchsi4, cbranchsf4): New.
402 (casesi): Use cbranchsi4.
404 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
405 hppa_branch_type): Delete.
406 (return_addr_rtx): Use cbranchsi4.
407 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
408 Emit CCFPmode comparison here.
409 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
410 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
411 hppa_branch_type): Delete.
412 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
413 (movsicc, movdicc): Remove references to hppa_compare_op0,
414 hppa_compare_op1 and compare_from_rtx.
415 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
416 (casesi): Use cbranchsi4.
418 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
419 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
420 * config/pdp11/pdp11.md (register_or_const0_operand): New.
421 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
422 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
424 (cbranchdf4, cbranchhi4, cbranchqi4): New.
425 (*branch, *branch_inverted): New.
427 * config/picochip/picochip.md (cbranchhi4): Use
428 ordered_comparison_operator.
429 (cmphi, bCC): Remove.
431 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
432 (trap_comparison_operator): Delete.
433 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
434 rs6000_emit_cbranch): Accept mode and operands.
435 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
436 rs6000_compare_fp_p): Delete.
437 (rs6000_generate_compare): Accept mode and comparison. Extract code
438 and op0/op1 from there. Replace references to rs6000_compare_op0
439 and rs6000_compare_op1.
440 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
441 extract result from passed operands.
442 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
443 extract loc from passed operands.
444 (rs6000_emit_cmove): Likewise.
445 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
446 rs6000_compare_fp_p): Delete.
447 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
448 (cbranch<GPR>4, cbranch<FP>4): New.
449 (cstore<mode>4): New. Consolidate here all choices about when to use
450 portable or specialized sCC sequences.
451 (stack_protect_test): Use cbranchsi4.
452 (conditional_trap): Replace with ctrap<GPR>4.
453 (conditional trap insn): Replace trap_comparison_operator with
454 ordered_comparison_operator.
456 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
457 (s390_emit_prologue): Use ctrap.
458 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
459 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
460 New predicates replacing...
461 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
462 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
463 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
464 (add<mode>cc): Do not use s390_compare_op0/op1.
465 (s<code>): Change to...
466 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
468 (cstorecc4): ... this. Handle EQ or NE equally.
469 (*sne): Un-privatize for use in cstorecc4.
470 (b<code>): Change to...
471 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
472 (conditional_trap): Replace with...
473 (ctrap<GPR>4, ctrap<FP>4): ... these.
474 (stack_protect): Use cbranchcc4.
476 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
477 * config/score/score-protos.h (score_gen_cmp): Delete.
478 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
479 (score_block_move-loop): Use cbranchsi4.
480 * config/score/score.md (cbranchsi4): New.
481 (cmpsi, bCC): Delete.
482 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
483 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
484 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
485 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
486 * config/score/score3.h (score3_gen_cmp): Delete.
487 * config/score/score7.h (score7_gen_cmp): Delete.
489 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
490 (sh_emit_scc_to_t): ... this. Return void.
491 (from_compare): Rename to...
492 (sh_emit_compare_and_branch): ... this.
493 (sh_emit_compare_and_set): New.
494 (sh_expand_t_scc): Accept operands.
495 * config/sh/predicates.md (sh_float_comparison_operator): New.
496 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
497 (prepare_scc_operands): Rename to...
498 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
500 (sh_emit_cheap_store_flag): New.
501 (sh_emit_set_t_insn): New.
502 (from_compare): Rename to...
503 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
504 handling of TARGET_SH2E floating point to avoid recursive call.
505 Generate branch here.
506 (sh_emit_compare_and_set): New.
507 (sh_expand_t_scc): Get op0/op1 from arguments.
508 (sh_emit_cheap_store_flag): New.
509 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
511 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
512 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
513 (movsicc, movdicc): Do nothing when it recreated operands from
514 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
515 prepare_scc_operands (now sh_emit_scc_to_t).
516 (udivdi3): Use cstoresi4.
517 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
518 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
519 (cbranchint4_media, cbranchfp4_media): New.
520 (casesi): Use cbranchdi4.
521 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
523 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
524 (movnegt): Remove second operand.
525 (cbranchsf4, cbranchdf4): New.
526 (stack_protect): Use cbranchdi4/cbranchsi4.
528 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
529 (gen_compare_reg): Accept comparison, extract part of it to...
530 (gen_compare_reg_1): ... this.
531 (gen_compare_operator): Delete.
532 (gen_v9_scc): Accept separate destination, comparison code and arms.
533 Do not use sparc_compare_op0/sparc_compare_op1.
534 (emit_scc_insn, emit_conditional_branch_insn): New.
535 (emit_v9_brxx): Make static. Remove useless assertion.
536 (sparc_emit_float_lib_cmp): Return RTL instead of calling
538 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
539 * config/sparc/sparc-protos.h (gen_compare_reg,
540 sparc_emit_float_lib_cmp): Adjust prototype.
541 (emit_scc_insn, emit_conditional_branch_insn): New.
542 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
543 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
544 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
545 iterators to the top.
546 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
547 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
548 snedi_special_trunc): Delete.
549 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
550 and snedi_special_trunc.
551 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
552 cbranchdi4, cbranch<F:mode>4): New.
553 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
554 here. Use gen_compare_reg instead of gen_compare_operator.
555 (conditional_trap): Replace with...
556 (ctrapsi4, ctrapdi4): ... this.
557 (stack_protect_test): Use cbranchcc4.
559 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
561 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
562 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
563 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
564 from operands[0] or operands[3] depending on is_set.
565 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
566 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
567 cmpdf, bCC), sCC: Remove.
568 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
569 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
571 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
572 spu_emit_branch_or_set.
574 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
576 * config/stormy16/stormy16.h (xstormy16_compare_op0,
577 xstormy16_compare_op1): Delete.
578 * config/stormy16/stormy16.c (xstormy16_compare_op0,
579 xstormy16_compare_op1): Delete.
580 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
582 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
583 (cmphi, cmpsi, bCC): Remove.
585 * config/v850/v850.md (tstsi, cmpsi): Fold into...
586 (*cmpsi): ... this one.
587 (cbranchsi4, cstoresi4): New.
588 (bCC expanders): Delete.
589 (sCC insns): Fold into...
590 (*setcc): ... this one.
591 (casesi): Do not use gen_cmpsi and gen_bgtu.
592 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
594 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
596 * config/vax/vax-protos.h (cond_name): New.
597 (vax_output_conditional_branch): Remove.
598 * config/vax/vax.c (cond_name): New.
599 (vax_output_conditional_branch): Remove.
600 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
601 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
602 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
603 (bit<VAXint>): Wrap source with (compare).
604 (b<code> and following unnamed pattern): Rename to *branch and
605 *branch_reversed. Change macroization to match_operator.
606 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
608 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
609 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
610 Change last argument to machine_mode.
611 (xtensa_expand_scc): Add machine_mode argument.
612 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
613 (gen_conditional_move, xtensa_expand_conditional_branch,
614 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
615 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
616 Adjust operand numbers.
617 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
619 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
620 (cmpsi, cmpsf, b<code>, s<code>): Delete.
621 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
623 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
625 * optabs.c (prepare_cmp_insn): Temporarily disable test that
626 causes spurious differences between trunk and cond-optab branch.
628 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
631 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
633 2009-05-12 Alexandre Oliva <aoliva@redhat.com>
635 * tree.c (iterative_hash_pointer): Delete.
636 (iterative_hash_expr): Short-circuit handling of NULL pointer.
637 Hash UIDs and versions of SSA names. Don't special-case built-in
638 function declarations.
640 2009-05-11 Ian Lance Taylor <iant@google.com>
643 * graphite.c: Force -Wc++-compat to only be a warning before
644 #including "cloog/cloog.h".
646 2009-05-11 Martin Jambor <mjambor@suse.cz>
648 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
650 2009-05-11 Jan Hubicka <jh@suse.cz>
652 * tree-ssa-loop-ivcanon.c: Include target.h
653 (struct loop_size): new structure.
654 (constant_after_peeling): New predicate.
655 (tree_estimate_loop_size): New function.
656 (estimated_unrolled_size): Rewrite for new estimates.
657 (try_unroll_loop_completely): Use new estimates.
658 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
660 2009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
662 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
663 libcpp interface change.
664 (spu_macro_to_expand): Likewise.
666 2009-05-11 Paolo Bonzini <bonzini@gnu.org>
668 PR tree-optimization/40026
669 * gimplify.c (gimplify_init_constructor): Change initial conditional
670 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
671 optimize_compound_literals_in_ctor.
673 2009-05-11 Nathan Sidwell <nathan@codesourcery.com>
675 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
677 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
679 2009-05-11 H.J. Lu <hongjiu.lu@intel.com>
681 * tree-vect-data-refs.c (vect_analyze_group_access): Use
682 HOST_WIDE_INT for gap.
684 2009-05-11 Ira Rosen <irar@il.ibm.com>
686 PR tree-optimization/40074
687 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
688 account in group size and step comparison.
690 2009-05-11 Richard Guenther <rguenther@suse.de>
692 * passes.c (init_optimization_passes): Strip now incorrect comment.
693 (execute_function_todo): Do not set PROP_alias.
694 * tree-pass.h (PROP_alias): Remove.
695 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
696 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
697 * tree-nrv.c (pass_return_slot): Likewise.
698 * tree-object-size.c (pass_object_sizes): Likewise.
699 * tree-ssa-dom.c (pass_dominator): Likewise.
700 (pass_phi_only_cprop): Likewise.
701 * tree-ssa-dse.c (pass_dse): Likewise.
702 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
703 (pass_cselim): Likewise.
704 * tree-ssa-pre.c (pass_pre): Likewise.
705 (pass_fre): Likewise.
706 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
707 * tree-ssa-sink.c (pass_sink_code): Likewise.
708 * tree-stdarg.c (pass_stdarg): Likewise.
709 * tree-tailcall.c (pass_tail_calls): Likewise.
710 * tree-vrp.c (pass_vrp): Likewise.
712 2009-05-10 Ian Lance Taylor <iant@google.com>
714 * basic-block.h (enum profile_status): Break out of struct
716 * cgraph.h (struct inline_summary): Break out of struct
718 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
719 of struct cgraph_order_sort.
720 * combine.c (enum undo_kind): New enum, broken out of struct undo.
721 * cse.c (struct branch_path): Break out of struct
722 cse_basic_block_data.
723 * except.h (enum eh_region_type): Break out of struct eh_region.
724 * gcc.c (enum add_del): Break out of struct modify_target.
725 * genrecog.c (enum decision_type): Break out of struct decision_test.
726 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
728 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
729 * regmove.c (enum match_use): New enum, broken out of struct match.
730 * sched-int.h (enum post_call_group): New enum, broken out of
732 (struct deps_reg): Break out of struct deps.
733 * target.h (struct asm_int_op): Break out of struct gcc_target.
734 * tree-eh.c (struct goto_queue_node): Break out of struct
736 * tree-inline.h (enum copy_body_cge_which): Break out of
738 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
740 * c-decl.c (in_struct, struct_types): New static variables.
741 (pushtag): Add loc parameter. Change all callers.
742 (lookup_tag): Add ploc parameter. Change all callers.
743 (check_compound_literal_type): New function.
744 (parser_xref_tag): Add loc parameter. Change all callers. If
745 -Wc++-compat, warn about struct/union/enum types defined within a
747 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
748 and loc parameters. Change all callers. Change error calls to
749 error_at, using loc. For a redefinition, if the location of the
750 original definition is known, report it. Set in_struct and
751 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
752 (finish_struct): Add new parameters enclosing_in_struct and
753 enclosing_struct_types. Change all callers. Set
754 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
755 in the struct. If in a struct, add this struct to struct_types.
756 (start_enum): Add loc parameter. Change all callers. Use
757 error_at for errors, using loc. For a redefinition, if the
758 location of the original definition is known, report it. If in a
759 struct, add this enum type to struct_types. If -Wc++-compat warn
760 if in sizeof, typeof, or alignof.
761 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
762 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
763 (c_parser_enum_specifier): Get enum location for start_enum.
764 (c_parser_struct_or_union_specifier): Get struct location for
765 start_struct. Save in_struct and struct_types status between
766 start_struct and finish_struct.
767 (c_parser_cast_expression): Get location of cast.
768 (c_parser_alignof_expression): Get location of type.
769 (c_parser_postfix_expression): Likewise.
770 (c_parser_postfix_expression_after_paren_type): Add type_loc
771 parameter. Change all callers. Call check_compound_literal_type.
772 Use type_loc for error about variable size type.
773 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
774 of an enum constant from an enum type defined in a struct or union.
775 (c_cast_expr): Add loc parameter. Change all callers. If
776 -Wc++-compat, warn about defining a type in a cast.
777 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
778 (start_enum, start_struct, finish_struct): Update declarations.
779 (parser_xref_tag, c_cast_expr): Update declarations.
780 (check_compound_literal_type): Declare.
782 2009-05-11 Ben Elliston <bje@au.ibm.com>
784 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
785 for recent libcpp interface change.
786 (rs6000_macro_to_expand): Likewise.
788 2009-05-10 Michael Matz <matz@suse.de>
791 * config/arm/arm.c (require_pic_register): Emit on entry edge,
792 not at entry of function.
794 2009-05-10 Richard Guenther <rguenther@suse.de>
796 PR tree-optimization/40081
798 * tree-sra.c (instantiate_element): Instantiate scalar replacements
799 using the main variant of the element type. Do not fiddle with
800 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
802 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
803 structs with volatile fields.
805 2009-05-10 Jan Hubicka <jh@suse.cz>
807 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
808 (estimate_move_cost): Assert that it does not get called for
810 (estimate_num_insns): Skip VOID types in argument handling.
811 (optimize_inline_calls): Delete unreachable blocks and verify that
814 2009-05-10 Jan Hubicka <jh@suse.cz>
816 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
817 * cgraph.c (cgraph_mark_address_taken_node): New function.
818 (dump_cgraph_node): Dump new flag.
819 * cgraph.h (struct cgraph_node): Add address_taken.
820 (cgraph_mark_address_taken_node): New function.
821 * ipa.c (cgraph_postorder): Prioritize functions with address taken
822 since new direct calls can be born.
824 2009-05-10 Joseph Myers <joseph@codesourcery.com>
826 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
829 2009-05-10 Jan Hubicka <jh@suse.cz>
832 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
834 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
835 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
836 * tree-inline.c (copy_bb): Set frequency correctly.
837 (fold_marked_statements): Update call to
838 cgraph_update_edges_for_call_stmt.
840 2009-05-10 Joseph Myers <joseph@codesourcery.com>
842 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
843 identifiers in diagnostics.
844 * config/arm/arm.c (arm_handle_fndecl_attribute,
845 arm_handle_isr_attribute): Likewise.
846 * config/avr/avr.c (avr_handle_progmem_attribute,
847 avr_handle_fndecl_attribute, avr_handle_fntype_attribute):
849 * config/bfin/bfin.c (handle_int_attribute,
850 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
851 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
852 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
854 * config/darwin.c (darwin_handle_kext_attribute,
855 darwin_handle_weak_import_attribute): Likewise.
856 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
857 h8300_handle_eightbit_data_attribute,
858 h8300_handle_tiny_data_attribute): Likewise.
859 * config/i386/i386.c (ix86_handle_cconv_attribute,
860 ix86_handle_abi_attribute, ix86_handle_struct_attribute):
862 * config/i386/winnt.c (ix86_handle_shared_attribute,
863 ix86_handle_selectany_attribute): Likewise.
864 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
865 * config/m32c/m32c.c (function_vector_handler): Likewise.
866 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
867 m68hc11_handle_fntype_attribute): Likewise.
868 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
869 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
870 * config/mips/mips.c (mips_insert_attributes,
871 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
872 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
873 rs6000_handle_struct_attribute): Likewise.
874 * config/sh/sh.c (sh_insert_attributes,
875 sh_handle_resbank_handler_attribute,
876 sh_handle_interrupt_handler_attribute,
877 sh2a_handle_function_vector_handler_attribute,
878 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
880 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
881 * config/spu/spu.c (spu_handle_fndecl_attribute,
882 spu_handle_vector_attribute): Likewise.
883 * config/stormy16/stormy16.c
884 (xstormy16_handle_interrupt_attribute): Likewise.
885 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
886 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
888 2009-05-10 Joseph Myers <joseph@codesourcery.com>
890 * pretty-print.h (struct pretty_print_info): Add
891 translate_identifiers.
892 (pp_translate_identifiers): New.
893 (pp_identifier): Only conditionally translate identifier to locale
895 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
896 (pp_base_tree_identifier): Only conditionally translate identifier
897 to locale character set.
898 * c-pretty-print.c (M_): Define.
899 (pp_c_type_specifier, pp_c_primary_expression): Mark English
900 fragments for conditional translation with M_.
901 * tree-pretty-print.c (maybe_init_pretty_print): Disable
902 identifier translation.
904 2009-05-10 Richard Guenther <rguenther@suse.de>
906 PR tree-optimization/40081
907 * tree-sra.c (instantiate_element): Instantiate scalar replacements
908 using the main variant of the element type. Do not fiddle with
909 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
911 2009-05-09 Jan Hubicka <jh@suse.cz>
914 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
915 indirect calls; verify cgraph afterwards.
917 2009-05-09 Jan Hubicka <jh@suse.cz>
920 * ipa.c (update_inlined_to_pointer): New function.
921 (cgraph_remove_unreachable_nodes): Use it.
923 2009-05-09 Jan Hubicka <jh@suse.cz>
925 * tree-eh.c (struct leh_state): Remove prev_try.
926 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
928 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
929 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
930 remove_eh_handler_and_replace, foreach_reachable_handler,
931 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
932 * except.h (struct eh_region): Remove eh_region_u_cleanup.
933 (gen_eh_region_cleanup): Update prototype.
935 2009-05-09 Jan Hubicka <jh@suse.cz>
938 * except.c (copy_eh_region): Always set prev_try.
939 (redirect_eh_edge_to_label): Find outer try.
940 (foreach_reachable_handler): When looking for prev try
941 handle case where previous try is not going to be taken.
943 2009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
945 PR tree-optimization/40049
946 * tree-vect-stmts.c (vectorizable_operation): If the machine has
947 only vector/vector shifts, convert the type of the constant to the
948 appropriate type to avoid building incorrect trees, which
949 eventually have problems with garbage collection.
951 2009-05-08 Joseph Myers <joseph@codesourcery.com>
953 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
954 -1 for complex floating-point types if honoring signed zeros.
956 2009-05-08 Jan Hubicka <jh@suse.cz>
958 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
959 argument; handle correctly when profile is absent.
960 (build_cgraph_edges): Update.
961 (rebuild_cgraph_edges): Update.
962 * cgraph.c: Do not include varray.h.
963 (cgraph_set_call_stmt_including_clones): New function.
964 (cgraph_create_edge_including_clones): Likewise
965 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
966 (cgraph_update_edges_for_call_stmt): Handle clones.
967 (cgraph_remove_node): Handle clone tree.
968 (cgraph_remove_node_and_inline_clones): New function.
969 (dump_cgraph_node): Dump clone tree.
970 (cgraph_clone_node): Handle clone tree.
971 (clone_function_name): Bring here from tree-inline.c.
972 (cgraph_create_virtual_clone): New function.
973 * cgraph.h (ipa_replace_map): Move here from ipa.h.
974 (cgraph_clone_info): New function.
975 (strut cgraph_node): Add clone_info and new clone tree pointers.
976 (cgraph_remove_node_and_inline_clones,
977 cgraph_set_call_stmt_including_clones,
978 cgraph_create_edge_including_clones,
979 cgraph_create_virtual_clone): Declare.
980 (cgraph_function_versioning): Use VEC argument.
981 (compute_call_stmt_bb_frequency): Update prototype.
982 (cgraph_materialize_all_clones): New function.
983 * ipa-cp.c (ipcp_update_cloned_node): Remove.
984 (ipcp_create_replace_map): Update to VECtors.
985 (ipcp_update_callgraph): Use virtual clones.
986 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
987 (ipcp_update_profiling): Do not update local profiling.
988 (ipcp_insert_stage): Use VECtors and virtual clones.
989 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
990 (clone_of_p): New function.
991 (cgraph_preserve_function_body_p): Use clone tree.
992 (cgraph_optimize): Materialize clones.
993 (cgraph_function_versioning): Update for VECtors.
994 (save_inline_function_body): Use clone tree.
995 (cgraph_materialize_clone): New function.
996 (cgraph_materialize_all_clones): Likewise.
997 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
998 * ipa.c: Include gimple.h.
999 (cgraph_remove_unreachable_nodes): Use clone tree.
1000 * ipa-prop.c (ipa_note_param_call): Update call to
1001 compute_call_stmt_bb_frequencycall.
1002 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
1003 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
1004 (copy_bb): Handle updating of clone tree; add new edge when new call
1006 (expand_call_inline): Be strict about every call having edge.
1007 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
1008 (delete_unreachable_blocks_update_callgraph): New function.
1009 (tree_function_versioning): Use VECtors; always remove unreachable
1010 blocks and fold conditionals.
1011 * tree-inline.h: Do not include varray.h.
1012 (tree_function_versioning): Remove.
1013 * Makefile.in (GTFILES): Remove tree-inline.c
1014 * passes.c (do_per_function): Do only functions having body.
1015 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
1018 2009-05-08 H.J. Lu <hongjiu.lu@intel.com>
1019 Andrew Morrow <acm@google.com>
1022 * c-common.c (c_common_attribute_table): Permit deprecated
1023 attribute to take an optional argument.
1024 (handle_deprecated_attribute): If the optional argument to
1025 __attribute__((deprecated)) is not a string ignore the attribute
1028 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
1029 * c-typeck.c (build_component_ref): Likewise.
1030 (build_external_ref): Likewise.
1032 * toplev.c (warn_deprecated_use): Add an attribute argument.
1033 Emit the message associated with __attribute__((deprecated)).
1035 * toplev.h (warn_deprecated_use): Updated.
1037 * doc/extend.texi: Document new optional parameter to
1038 __attribute__((deprecated))
1040 2009-05-08 Michael Eager <eager@eagercon.com>
1042 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
1043 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
1045 2009-05-08 Richard Guenther <rguenther@suse.de>
1047 PR tree-optimization/40062
1048 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
1049 Avoid exponential behavior.
1051 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
1053 PR rtl-optimization/33928
1055 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
1056 process_uses, build_single_def_use_links): New.
1057 (update_df): Update use_def_ref.
1058 (forward_propagate_into): Use get_def_for_use instead of use-def
1060 (fwprop_init): Call build_single_def_use_links and let it initialize
1062 (fwprop_done): Free use_def_ref.
1063 (fwprop_addr): Eliminate duplicate call to df_set_flags.
1064 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
1065 df_rd_simulate_one_insn): New.
1066 (df_rd_bb_local_compute_process_def): Update head comment.
1067 (df_chain_create_bb): Use the new RD simulation functions.
1068 * df.h (df_rd_simulate_artificial_defs_at_top,
1069 df_rd_simulate_one_insn): New.
1070 * opts.c (decode_options): Enable fwprop at -O1.
1071 * doc/invoke.texi (-fforward-propagate): Document this.
1073 2009-05-08 Joseph Myers <joseph@codesourcery.com>
1076 * c-typeck.c (build_binary_op): Handle arithmetic between one real
1077 and one complex operand specially.
1078 * tree-complex.c (some_nonzerop): Do not identify a real value as
1079 zero if flag_signed_zeros.
1081 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
1083 PR rtl-optimization/33928
1084 * loop-invariant.c (record_use): Fix && vs. || mishap.
1086 2009-05-08 Paolo Bonzini <bonzini@gnu.org>
1088 PR rtl-optimization/33928
1089 * loop-invariant.c (struct use): Add addr_use_p.
1090 (struct def): Add n_addr_uses.
1091 (struct invariant): Add cheap_address.
1092 (create_new_invariant): Set cheap_address.
1093 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
1094 (record_uses): Pass df_ref to record_use.
1095 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
1098 2009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
1100 * config/sh/sh.c: Do not include c-pragma.h.
1102 2009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
1104 * config/spu/spu.c: Remove include of c-common.h.
1106 2009-05-07 Janis Johnson <janis187@us.ibm.com>
1109 * c-common.h (mark_valid_location_for_stdc_pragma,
1110 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
1111 clear_float_const_decimal64, float_const_decimal64_p): New.
1112 * c.opt (Wunsuffixed-float-constants): New.
1113 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
1114 unsuffixed float constant, handle new warning.
1115 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
1116 * c-decl.c (c_scope): New flag float_const_decimal64.
1117 (set_float_const_decimal64, clear_float_const_decimal64,
1118 float_const_decimal64_p): New.
1119 (push_scope): Set new flag.
1120 * c-parser.c (c_parser_translation_unit): Mark when it's valid
1121 to use STDC pragmas.
1122 (c_parser_external_declaration): Ditto.
1123 (c_parser_compound_statement_nostart): Ditto.
1124 * c-pragma.c (valid_location_for_stdc_pragma,
1125 mark_valid_location_for_stdc_pragma,
1126 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
1127 handle_pragma_float_const_decimal64): New.
1128 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
1129 * cp/semantics.c (valid_location_for_stdc_pragma_p,
1130 set_float_const_decimal64, clear_float_const_decimal64,
1131 float_const_decimal64_p): New dummy functions.
1132 * doc/extend.texi (Decimal Float): Remove statement that the
1133 pragma, and suffix for double constants, are not supported.
1134 * doc/invoke.texi (Warning Options): List new option.
1135 (-Wunsuffixed-float-constants): New.
1137 2009-05-08 Steven Bosscher <steven@gcc.gnu.org>
1139 * config/i386/i386.c: Do not include c-common.h.
1141 2009-05-07 Mark Heffernan <meheff@google.com>
1143 * doc/invoke.texi (Debugging Options): Document change of debugging
1145 * opts.c (decode_options): Make dump_base_name relative to
1146 aux_base_name directory.
1148 2009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
1150 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
1151 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
1153 2009-05-07 Rafael Avila de Espindola <espindola@google.com>
1155 * Makefile.in (install-plugin): Simplify a bit.
1157 2009-05-07 Paolo Bonzini <bonzini@gnu.org>
1159 * Makefile.in (OBJS-common): Add regcprop.o.
1161 * timevar.def (TV_CPROP_REGISTERS): New.
1162 * regrename.c (regrename_optimize): Return 0.
1163 (rest_of_handle_regrename): Delete.
1164 (pass_rename_registers): Point to regrename_optimize.
1165 (struct value_data_entry, struct value_data,
1166 kill_value_one_regno, kill_value_regno, kill_value,
1167 set_value_regno, init_value_data, kill_clobbered_value,
1168 kill_set_value, kill_autoinc_value, copy_value,
1169 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
1170 replace_oldest_value_reg, replace_oldest_value_addr,
1171 replace_oldest_value_mem, copyprop_hardreg_forward_1,
1172 debug_value_data, validate_value_data): Move...
1173 * regcprop.c: ... here.
1174 (rest_of_handle_cprop): Delete.
1175 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
1177 2009-05-07 Jakub Jelinek <jakub@redhat.com>
1180 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
1181 GEN_INT for 1 << bitnum.
1182 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
1185 2009-05-07 Uros Bizjak <ubizjak@gmail.com>
1187 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
1188 Remove wrong description of "nand" operation.
1190 2009-05-06 Richard Guenther <rguenther@suse.de>
1191 Adam Nemet <anemet@caviumnetworks.com>
1193 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
1194 comment. Add that if LHS is not a gimple register, then RHS1 has
1195 to be a single object (GIMPLE_SINGLE_RHS).
1197 2009-05-06 Adam Nemet <anemet@caviumnetworks.com>
1199 * expr.c (get_def_for_expr): Move it up in the file.
1200 (store_field): When expanding a bit-field store, look at the
1201 defining gimple stmt for the masking conversion.
1203 2009-05-06 Janis Johnson <janis187@us.ibm.com>
1206 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
1207 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
1208 32-bit memcpy into long.
1210 2009-05-06 Jakub Jelinek <jakub@redhat.com>
1212 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
1213 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
1215 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
1216 instead of appending DW_OP_deref*.
1218 2009-05-06 Michael Matz <matz@suse.de>
1221 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
1222 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
1224 2009-05-06 Rafael Avila de Espindola <espindola@google.com>
1226 * Makefile.in (install-plugin): Fix srcdir handling.
1228 2009-05-06 Andrey Belevantsev <abel@ispras.ru>
1230 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
1231 when processing for not_regs_needed bitmap.
1232 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
1233 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
1234 handling it for rhs.
1236 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
1238 * config/i386/i386.md (unnamed inc/dec peephole): Use
1239 optimize_insn_for_size_p instead of optimize_size.
1240 * config/i386/predicates.md (incdec_operand): Likewise.
1241 (aligned_operand): Likewise.
1242 * config/i386/sse.md (divv8sf3): Likewise.
1243 (sqrtv8sf2): Likewise.
1245 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
1247 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
1249 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
1251 2009-05-06 H.J. Lu <hongjiu.lu@intel.com>
1253 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
1254 ssemodesuffixf2c with avxmodesuffixf2c.
1256 2009-05-06 Joseph Myers <joseph@codesourcery.com>
1259 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
1261 2009-05-05 Jakub Jelinek <jakub@redhat.com>
1263 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
1264 (struct tree_base): Adjust spacing for 8 bit boundaries.
1265 (struct tree_decl_common): Add decl_by_reference_flag bit.
1266 (DECL_BY_REFERENCE): Adjust.
1267 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
1268 print DECL_BY_REFERENCE bit.
1269 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
1270 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
1271 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
1272 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
1276 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
1277 range of the type, but default label is missing, add it with one
1278 of the existing labels instead of adding a new label for it.
1280 2009-05-05 Joseph Myers <joseph@codesourcery.com>
1284 2009-05-05 Rafael Avila de Espindola <espindola@google.com>
1286 * Makefile.in (enable_plugin, plugin_includedir): New.
1287 (install): Depend on install-plugin.
1288 (PLUGIN_HEADERS): New.
1289 (install-plugin): New.
1290 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
1292 2009-05-05 Richard Guenther <rguenther@suse.de>
1294 PR tree-optimization/40022
1295 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
1297 (phivn_valid_p): Fix tuplification error, simplify.
1298 (phiprop_insert_phi): Add dumps.
1299 (propagate_with_phi): Simplify.
1301 2009-05-05 Richard Guenther <rguenther@suse.de>
1304 * builtins.c (gimplify_va_arg_expr): Properly build the address.
1306 2009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
1308 * tree.h (strip_float_extensions): Remove duplicate declaration.
1309 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
1310 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
1311 block_ultimate_origin): Rearrange the declarations line to match the
1312 comment that indicates the .c file which the functions are defined.
1313 (dwarf2out_*, set_decl_rtl): Add comment.
1314 (get_base_address): Adjust comment.
1315 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
1316 declarations line and add comment.
1317 (is_builtin_name): Add blank after function name, for clarity.
1319 2009-05-04 Joseph Myers <joseph@codesourcery.com>
1321 * attribs.c (decl_attributes): Use %qE for identifiers in
1323 * cgraphunit.c (verify_cgraph_node): Translate function names to
1324 locale character set in diagnostics.
1325 * coverage.c (get_coverage_counts): Use %qE for identifiers in
1327 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
1328 Document that functions are named in UTF-8.
1329 * expr.c (expand_expr_real_1): Translate function names to locale
1330 character set in diagnostics.
1331 * gimplify.c (omp_notice_variable, omp_is_private,
1332 gimplify_scan_omp_clauses): Use %qE for identifiers in
1334 * langhooks.c (lhd_print_error_function): Translate function names
1335 to locale character set.
1336 * langhooks.h (decl_printable_name): Document that return value is
1337 in internal character set.
1338 * stmt.c: Include pretty-print.h
1339 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
1341 (resolve_operand_name_1): Translate named operand name to locale
1343 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
1345 * toplev.c (announce_function): Translate function names to locale
1347 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
1348 (default_tree_printer): Use pp_identifier or translate identifiers
1349 to locale character set. Mark "<anonymous>" for translation.
1350 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
1351 for identifiers in diagnostics.
1352 * tree.c (handle_dll_attribute): Use %qE for identifiers in
1354 * varasm.c (output_constructor): Use %qE for identifiers in
1357 2009-05-04 Rafael Avila de Espindola <espindola@google.com>
1359 * configure.ac: use ` ` instead of $()
1360 * configure: Regenerate.
1362 2009-05-05 Ben Elliston <bje@au.ibm.com>
1364 * config/pa/linux-atomic.c: Eliminate conditional include of
1365 errno.h on non-LP64 systems to simplify build requirements.
1367 2009-05-04 Joseph Myers <joseph@codesourcery.com>
1369 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
1371 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
1372 and pass value to identifier_to_locale.
1373 (warn_variable_length_array): Make name a tree.
1374 (grokdeclarator): Separate diagnostic texts for named and unnamed
1375 declarators. Use %qE for named declarators.
1376 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
1378 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
1379 identifiers in diagnostics.
1380 * c-typeck.c (push_member_name, start_init): Pass identifiers to
1381 identifier_to_locale. Mark "anonymous" strings for translation.
1383 2009-05-04 Michael Eager <eager@eagercon.com>
1385 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
1386 address for DImode/DFmode only if double-precision FP regs.
1388 2009-05-04 Michael Eager <eager@eagercon.com>
1390 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
1391 TARGET_SINGLE_FLOAT check.
1393 2009-05-04 Michael Eager <eager@eagercon.com>
1395 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
1397 2009-05-04 Michael Eager <eager@eagercon.com>
1399 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
1400 * config/rs6000/t-xilinx: New
1402 2009-05-04 Paolo Bonzini <bonzini@gnu.org>
1404 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
1405 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
1406 * gcc/explow.c (memory_address): Use target hook.
1407 * gcc/targhooks.c (default_legitimize_address): New.
1408 * gcc/targhooks.h (default_legitimize_address): New.
1409 * gcc/target.h (legitimize_address): New.
1410 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
1411 (TARGET_INITIALIZER): Include it.
1412 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
1414 * config/bfin/bfin-protos.h (legitimize_address): Remove.
1415 * config/bfin/bfin.c (legitimize_address): Remove.
1416 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
1417 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
1419 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
1420 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
1422 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
1423 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
1424 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
1425 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
1426 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
1427 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
1428 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
1429 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
1430 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
1431 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
1432 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
1433 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
1434 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
1435 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
1436 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
1437 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
1438 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
1439 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
1440 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
1441 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
1442 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
1443 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
1444 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
1446 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
1447 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
1448 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
1449 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
1450 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
1451 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
1452 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
1453 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
1454 (thumb_legitimize_address): Delete.
1455 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
1456 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
1457 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
1458 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
1459 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
1460 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
1462 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
1465 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
1466 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
1467 * config/m32r/m32r.c (m32r_legitimize_address): New.
1468 * config/m68k/m68k.c (m68k_legitimize_address): New.
1469 * config/score/score.c (score_legitimize_address): Standardize.
1470 * config/score/score3.c (score3_legitimize_address): Standardize.
1471 * config/score/score3.h (score3_legitimize_address): Adjust.
1472 * config/score/score7.c (score7_legitimize_address): Standardize.
1473 * config/score/score7.h (score7_legitimize_address): Adjust.
1474 * config/sh/sh.c (sh_legitimize_address): New.
1475 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
1477 * gcc/config/s390/s390.c (legitimize_address): Rename to...
1478 (s390_legitimize_address): ... this.
1479 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
1480 (sparc_legitimize_address): ... this.
1481 * gcc/config/i386/i386.c (legitimize_address): Rename to...
1482 (ix86_legitimize_address): ... this.
1483 * gcc/config/avr/avr.c (legitimize_address): Rename to...
1484 (avr_legitimize_address): ... this.
1485 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
1486 (mn10300_legitimize_address): ... this.
1487 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
1488 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
1489 (alpha_expand_mov): Adjust call.
1491 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
1492 * config/spu/spu.c (spu_legitimize_address): Likewise.
1493 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
1494 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
1496 2009-05-04 Joseph Myers <joseph@codesourcery.com>
1498 * intl.c (locale_encoding, locale_utf8): New.
1499 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
1500 * intl.h (locale_encoding, locale_utf8): Declare.
1501 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
1502 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
1504 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
1506 (pp_tree_identifier): Define to call pp_base_tree_identifier.
1507 (pp_base_tree_identifier): Declare as function.
1508 (identifier_to_locale): Declare.
1509 * Makefile.in (pretty-print.o): Update dependencies.
1510 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
1512 2009-05-04 Richard Guenther <rguenther@suse.de>
1515 * builtins.c (fold_builtin_memory_op): Do not decay to element
1516 type if the size matches the whole array.
1518 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
1520 * expmed.c (synth_mult): When trying out a shift, pass the result
1523 2009-05-04 Kazu Hirata <kazu@codesourcery.com>
1525 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
1526 (shiftsub1_cost): New.
1527 (init_expmed): Compute shiftsub1_cost.
1528 (synth_mult): Optimize multiplications by constants of the form
1529 -(2^^m-1) for some constant positive integer m.
1531 2009-05-03 Richard Guenther <rguenther@suse.de>
1534 * c-typeck.c (array_to_pointer_conversion): Do not built
1535 ADDR_EXPRs of arrays of pointer-to-element type.
1536 * c-gimplify.c (c_gimplify_expr): Revert change fixing
1537 up wrong ADDR_EXPRs after-the-fact.
1538 * c-common.c (strict_aliasing_warning): Strip pointer
1539 conversions for obtaining the original type.
1540 * builtins.c (fold_builtin_memset): Handle array types.
1541 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
1544 2009-05-03 Richard Guenther <rguenther@suse.de>
1547 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
1548 Do not lose casts from array types with unknown extent to array
1549 types with known extent.
1550 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
1551 alias set compatibility.
1553 2009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
1555 * flags.h (extra_warnings): Delete.
1556 * toplev.c (process_options): Handle Wuninitialized here.
1557 * opts.c (extra_warnings): Delete.
1558 (set_Wextra): Delete.
1559 (common_handle_option): -Wextra can be handled automatically.
1560 * c-opts.c (c_common_handle_option): Delete obsolete code.
1561 (c_common_post_options): Simplify comment.
1562 * common.opt (W): Add Var.
1564 (Wuninitialized): Initialize to -1.
1566 2009-05-03 Adam Nemet <anemet@caviumnetworks.com>
1567 Richard Guenther <rguenther@suse.de>
1569 * expr.c (get_def_for_expr): New function.
1570 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
1571 SSA rather than trees.
1572 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
1573 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
1575 2009-05-03 Joseph Myers <joseph@codesourcery.com>
1577 * c-common.c (reswords): Add _Imaginary.
1578 * c-common.c (enum rid): Add RID_IMAGINARY.
1580 2009-05-03 Paolo Bonzini <bonzini@gnu.org>
1582 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
1583 Patch by Richard Guenther.
1585 2009-05-03 Anatoly Sokolov <aesok@post.ru>
1587 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
1588 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
1589 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
1590 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
1591 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
1592 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
1593 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
1594 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
1595 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
1596 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
1597 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
1598 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
1599 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
1600 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
1601 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
1602 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
1603 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
1604 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
1606 2009-05-02 Richard Guenther <rguenther@suse.de>
1608 PR tree-optimization/39940
1609 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
1612 2009-05-02 Richard Guenther <rguenther@suse.de>
1615 * tree-ssa.c (execute_update_addresses_taken): Properly check
1616 if we can mark a variable DECL_GIMPLE_REG_P.
1617 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
1618 back to the end of the function.
1619 (is_gimple_reg_type): Remove complex type special casing.
1620 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
1623 2009-05-02 Ben Elliston <bje@au.ibm.com>
1625 * doc/collect2.texi (Collect2): Document search path behaviour
1626 when configured with --with-ld.
1628 2009-05-02 Jan Hubicka <jh@suse.cz>
1630 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
1631 parameter; update callers.
1632 (coalesce_cost_edge): EH edges are costier because they needs
1633 splitting even if not critical and even more costier when there are
1634 multiple EH predecestors.
1636 2009-05-02 Jan Hubicka <jh@suse.cz>
1638 * except.c (remove_eh_handler_and_replace): Handle updating after
1639 removing TRY blocks.
1641 2009-05-02 Eric Botcazou <ebotcazou@adacore.com>
1643 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
1645 2009-05-02 Steven Bosscher <steven@gcc.gnu.org>
1647 * varasm.c: Do not include c-pragma.h.
1648 * attribs.c: Do not incude c-common.h.
1650 2009-05-01 Michael Matz <matz@suse.de>
1652 * calls.c (initialize_argument_information): Handle SSA names like
1653 decls with a non MEM_P DECL_RTL.
1655 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
1657 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
1658 * ipa-utils.c: Likewise.
1659 * ipa-type-escape.c: Likewise.
1660 * cgraphunit.c Do not include c-common.h.
1661 * ipa-pure-const.c: Likewise.
1662 * tree-if-conv.c: Likewise.
1663 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
1664 * ipa-struct-reorg.c: Likewise.
1665 * tree-nomudflap.c: Likewise.
1666 * tree-ssa-structalias.c: Likewise.
1668 2009-05-01 Steven Bosscher <steven@gcc.gnu.org>
1670 * store-motion.c: Many cleanups to make this pass a first-class
1671 citizen instead of an appendix to gcse load motion. Add TODO list
1672 to make this pass faster/cleaner/better.
1674 (struct ls_expr): Post gcse.c-split cleanups.
1675 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
1676 "stores" field to "avail_stores".
1677 (pre_ldst_mems): Rename to store_motion_mems.
1678 (pre_ldst_table): Rename to store_motion_mems_table.
1679 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
1680 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
1681 (ldst_entry): Rename to st_expr_entry, update users.
1682 (free_ldst_entry): Rename to free_st_expr_entry, update users.
1683 (free_ldst_mems): Rename to free_store_motion_mems, update users.
1684 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
1686 (first_ls_expr): Rename to first_st_expr, update users.
1687 (next_ls_expr): Rename to next_st_expr, update users.
1688 (print_ldst_list): Rename to print_store_motion_mems. Print names of
1689 fields properly for store motion instead of names inherited from load
1691 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
1692 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
1695 (ae_kill): Rename to st_kill, update users.
1696 (ae_gen): Rename to st_avloc, update users.
1697 (transp): Rename to st_transp, update users.
1698 (pre_insert_map): Rename to st_insert_map, update users.
1699 (pre_delete_map): Rename to st_delete_map, update users.
1700 (insert_store, build_store_vectors, free_store_memory,
1701 one_store_motion_pass): Update for abovementioned changes.
1703 (gcse_subst_count, gcse_create_count): Remove.
1704 (one_store_motion_pass): New statistics counters "n_stores_deleted"
1705 and "n_stores_created", local variables.
1707 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
1710 (regvec, compute_store_table_current_insn): Remove.
1711 (reg_set_info, reg_clear_last_set): Remove.
1712 (compute_store_table): Use DF caches instead of local dataflow
1715 2009-05-01 Joseph Myers <joseph@codesourcery.com>
1717 * c-objc-common.c (c_tree_printer): Print identifiers with
1718 pp_identifier, not pp_string. Mark "({anonymous})" for
1720 * c-pretty-print.c (pp_c_ws_string): New.
1721 (pp_c_cv_qualifier, pp_c_type_specifier,
1722 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
1723 pp_c_storage_class_specifier, pp_c_function_specifier,
1724 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
1725 pp_c_primary_expression, pp_c_postfix_expression,
1726 pp_c_unary_expression, pp_c_shift_expression,
1727 pp_c_relational_expression, pp_c_equality_expression,
1728 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
1729 use pp_string and pp_c_ws_string in place of pp_identifier and
1730 pp_c_identifier for non-identifiers. Mark English strings for
1732 * c-pretty-print.h (pp_c_ws_string): Declare.
1734 2009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
1735 Roland McGrath <roland@redhat.com>
1737 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
1738 (ENABLE_LD_BUILDID): New configuration option.
1739 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
1740 (LINK_BUILDID_SPEC): New macro.
1741 (init_spec): If defined, prepend it between LINK_EH_SPEC and
1743 * doc/install.texi: Document --enable-linker-build-id option.
1744 * configure: Rebuild.
1745 * config.in: Rebuild.
1747 2009-04-30 Adam Nemet <anemet@caviumnetworks.com>
1749 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
1750 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
1751 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
1752 MIPS_GP_SAVE_AREA_SIZE.
1753 * config/mips/mips.c (struct mips_frame_info): Update comment
1754 before arg_pointer_offset and hard_frame_pointer_offset.
1755 (mips_compute_frame_info): Update diagram before function: to
1756 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
1757 indicate the position of frame_pointer_rtx with -fstack-protector and
1758 to show args_size. Don't allocate cprestore area for leaf functions
1759 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
1761 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
1763 2009-04-30 Michael Matz <matz@suse.de>
1765 PR tree-optimization/39955
1766 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
1768 2009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
1770 * ira.c (setup_cover_and_important_classes): Use safe macro
1771 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
1773 * genpreds.c (write_tm_preds_h): Output suitable definition of
1774 REG_CLASS_FOR_CONSTRAINT.
1776 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
1778 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
1780 * bitmap.c (bitmap_descriptor): Likewise.
1781 * ggc-common.c (loc_descriptor): Likewise.
1782 * varray.c (varray_descriptor): Likewise.
1783 * vec.c (vec_descriptor): Likewise.
1785 2009-04-30 Eric Botcazou <ebotcazou@adacore.com>
1787 * Makefile.in (dce.o): Add $(EXCEPT_H).
1788 * dce.c: Include except.h and delete redundant vector definitions.
1789 (deletable_insn_p): Return false for non-call insns that can throw
1792 2009-04-30 Steven Bosscher <steven@gcc.gnu.org>
1794 * gcse.c (ae_gen): Remove.
1795 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
1796 and make non-static function to make it available in store-motion.c.
1797 Update call sites with search-and-replace.
1798 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
1799 extract_mentioned_regs, extract_mentioned_regs_helper,
1800 find_moveable_store, compute_store_table, load_kills_store, find_loads,
1801 store_killed_in_insn, store_killed_after, store_killed_before,
1802 build_store_vectors, insert_insn_start_basic_block, insert-store,
1803 remove_reachable_equiv_notes, replace_store_insn, delete_store,
1804 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
1805 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
1806 * store-motion.c: ...new file. Also copy data structures from gcse.c
1807 and clean up to remove parts not used by store motion.
1808 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
1809 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
1811 2009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1814 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
1815 when optimizing for size.
1817 2009-04-30 Hans-Peter Nilsson <hp@axis.com>
1819 * gcse.c (gcse_constant_p): Fix typo in last change.
1821 2009-04-30 Rafael Avila de Espindola <espindola@google.com>
1823 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
1825 2009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
1827 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
1829 2009-04-29 James E. Wilson <wilson@codesourcery.com>
1831 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
1832 CONST_HIGH_PART result.
1834 2009-04-29 Anatoly Sokolov <aesok@post.ru>
1836 * config/avr/avr.c (initial_elimination_offset): Rename to
1837 avr_initial_elimination_offset.
1838 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
1839 change return type to bool.
1840 (avr_can_eliminate): New function.
1841 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
1842 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
1843 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
1844 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
1845 avr_initial_elimination_offset.
1846 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
1847 (avr_initial_elimination_offset): Define.
1849 2009-04-29 Eric Botcazou <ebotcazou@adacore.com>
1850 Steven Bosscher <steven@gcc.gnu.org>
1852 PR rtl-optimization/39938
1853 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
1854 * cfgrtl.c: Include insn-attr.h.
1855 (rest_of_pass_free_cfg): New function.
1856 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
1857 * resource.c (init_resource_info): Remove call to df_analyze.
1859 2009-04-29 Richard Guenther <rguenther@suse.de>
1862 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
1863 allow conversion to signed integers.
1865 2009-04-29 Richard Guenther <rguenther@suse.de>
1867 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
1868 shifts of floating point vectors if the shift amount is
1869 a constant multiple of the element size.
1871 2009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
1872 Michael Matz <matz@suse.de>
1876 * tree-outof-ssa.c (emit_partition_copy): New function.
1877 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
1878 insert_part_to_rtx_on_edge): Perform the partition base var
1879 copy using emit_partition_copy.
1880 (insert_value_copy_on_edge): Convert constants to the right mode.
1881 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
1882 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
1884 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
1886 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
1887 scan backwards to try to find a constant to initialize it.
1889 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
1890 insn before the loop_end instruction, don't look past labels.
1892 2009-04-29 Richard Guenther <rguenther@suse.de>
1895 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
1896 loose type conversions.
1897 (forward_propagate_addr_expr): Fix tuplification bug. Remove
1898 stmts only if there are no uses of its definition.
1900 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
1902 * config/bfin/bfin.h (splitting_loops): Declare.
1903 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
1904 Reorder bit definitions to be ascending.
1905 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
1906 * config/bfin/bfin.c (splitting_loops): New variable.
1907 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
1908 (struct loop_info): Remove members INIT and LOOP_INIT.
1909 (bfin_optimize_loop): Don't set them. Reorder the code that generates
1910 the LSETUP sequence. Allow LC to be loaded from any register, but
1911 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
1912 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
1914 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
1915 of reload_completed.
1918 * config/bfin/bfin.md (movsi_insn): Refine constraints.
1920 2009-04-29 Rafael Avila de Espindola <espindola@google.com>
1922 * Makefile.in (PLUGIN_VERSION_H): New.
1923 (OBJS-common): Remove plugin-version.o.
1924 (plugin.o): Depend on (PLUGIN_VERSION_H).
1925 (plugin-version.o): Remove.
1926 * configure: Regenerate
1927 * configure.ac: Create plugin-version.h.
1928 * gcc-plugin.h (plugin_gcc_version): Remove.
1929 (plugin_default_version_check): Change signature.
1930 * plugin-version.c: Remove.
1931 * plugin.c: Include plugin-version.h.
1932 (str_plugin_gcc_version_name): Remove.
1933 (try_init_one_plugin): Pass gcc version to plugin_init.
1934 (plugin_default_version_check): Both gcc and plugin versions are now
1937 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
1939 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
1940 problematic last insns. Test for TYPE_CALL rather than CALL_P.
1941 Remove special case testing for last insn of inner loops. Don't fail
1942 if the loop ends with a jump, emit an extra nop instead.
1944 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
1945 DREGS rather than comparing directly. Remove code that tries to
1946 account for latencies.
1948 2009-04-29 Richard Guenther <rguenther@suse.de>
1950 PR tree-optimization/39941
1951 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
1952 eliminating an indirect call.
1954 2009-04-29 Richard Guenther <rguenther@suse.de>
1956 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
1957 parameter. Allow invariants as base if !require_lvalue.
1958 (verify_gimple_assign_single): Adjust.
1960 2009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
1962 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
1963 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
1964 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
1965 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
1966 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
1968 * config/bfin/bfin.c (bfin_expand_builtin,
1969 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
1971 2009-04-28 Richard Guenther <rguenther@suse.de>
1973 * tree-vect-loop.c (get_initial_def_for_induction): Use
1974 correct types for pointer increment.
1976 2009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1978 * toplev.c (print_version): Update GMP version string calculation.
1980 2009-04-28 Eric Botcazou <ebotcazou@adacore.com>
1982 PR rtl-optimization/39938
1983 * resource.c (init_resource_info): Add call to df_analyze.
1985 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
1987 * config/alpha/alpha.md (usegp): Cast the result of
1988 alpha_find_lo_sum_using_gp to enum attr_usegp.
1989 * config/alpha/alpha.c (override_options): Remove end-of-structure
1990 marker element from cpu_table. Use array size of cpu_table to handle
1991 -mcpu and -mtune options.
1992 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
1994 2009-04-28 Joseph Myers <joseph@codesourcery.com>
1996 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
1997 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
1998 tune_32 and tune_64.
1999 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
2001 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
2002 * config/rs6000/option-defaults.h: ... here. New file.
2003 (OPT_64, OPT_32): Define.
2004 (MASK_64BIT): Define to 0 if not already defined.
2005 (OPT_ARCH64, OPT_ARCH32): Define.
2006 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
2009 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2011 * config/arm/arm.c (arm_override_options): Emit error on using
2014 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
2016 PR rtl-optimization/39914
2017 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
2018 registers for allocnos created from user-defined variables only
2019 when not optimizing.
2021 2009-04-28 Richard Guenther <rguenther@suse.de>
2024 * fold-const.c (fold_binary): Use distribute_real_division only
2027 2009-04-28 Steve Ellcey <sje@cup.hp.com>
2029 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
2030 add hpux-stdint.h to tm_file.
2031 (hppa[12]*-*-hpux11*): Ditto.
2032 (ia64*-*-hpux*): Ditto.
2033 * config/hpux-stdint.h: New.
2034 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
2035 __STDC_EXT__ for all compiles.
2036 * config/pa/pa-hpux.h: Ditto.
2037 * config/pa/pa-hpux10.h: Ditto.
2038 * config/pa/pa-hpux11.h: Ditto.
2040 2009-04-28 Catherine Moore <clm@codesourcery.com>
2042 * debug.h (set_name): Add comment.
2044 2009-04-28 Andrew Pinski <pinskia@gmail.com>
2047 * config/darwin.c (machopic_gen_offset): Check
2048 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
2049 * config/arm/arm.c (require_pic_register): Likewise.
2051 2009-04-28 Paolo Bonzini <bonzini@gnu.org>
2053 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
2054 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
2055 m32c_promote_prototypes): Delete.
2057 2009-04-28 Michael Matz <matz@suse.de>
2060 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
2063 2009-04-28 Richard Guenther <rguenther@suse.de>
2065 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
2067 2009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2069 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
2070 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
2071 * config/arm/arm-tune.md: Regenerate.
2073 2009-04-28 Alexander Monakov <amonakov@ispras.ru>
2075 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
2076 block if there are complex incoming edges.
2077 (sel_merge_blocks): Remove useless assert.
2078 (sel_redirect_edge_and_branch): Check that edge was redirected.
2079 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
2080 (sel_find_rgns): Delete declaration.
2081 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
2082 the region when it is not a preheader.
2084 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
2087 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
2089 2009-04-28 Richard Guenther <rguenther@suse.de>
2091 * tree.h (SSA_NAME_VALUE): Remove.
2092 (struct tree_ssa_name): Remove value_handle member.
2093 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
2094 array for jump threading.
2095 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
2097 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
2098 * tree-flow.h (threadedge_initialize_values): Declare.
2099 (threadedge_finalize_values): Likewise.
2100 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
2101 (SSA_NAME_VALUE): Define.
2102 (threadedge_initialize_values): New function.
2103 (threadedge_finalize_values): Likewise.
2104 * tree-ssa-dom.c (ssa_name_values): New global variable.
2105 (SSA_NAME_VALUE): Define.
2106 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
2108 2009-04-28 Ira Rosen <irar@il.ibm.com>
2110 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
2111 Use REPORT_VECTORIZED_LOCATIONS instead
2112 REPORT_VECTORIZED_LOOPS.
2113 * tree-vectorizer.c (vect_verbosity_level): Make static.
2114 (vect_loop_location): Rename to vect_location.
2115 (vect_set_verbosity_level): Update comment.
2116 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
2118 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
2119 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
2120 instead REPORT_UNVECTORIZED_LOOPS.
2121 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
2122 and vect_loop_def to vect_external_def and vect_internal_def.
2123 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
2124 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
2125 REPORT_UNVECTORIZED_LOCATIONS.
2126 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
2127 and vect_used_in_loop and to vect_unused_in_scope and
2129 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
2130 (vect_verbosity_level): Remove declaration.
2131 (vect_analyze_operations): Likewise.
2132 (vect_analyze_stmt): Declare.
2133 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
2134 REPORT_UNVECTORIZED_LOCATIONS.
2135 (vect_get_loop_niters): Fix indentation.
2136 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
2137 (vect_analyze_loop_operations): New function.
2138 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
2139 vect_analyze_operations.
2140 (vect_is_simple_reduction): Use new names.
2141 (vectorizable_live_operation, vect_transform_loop): Likewise.
2142 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
2143 to specify whether the data references can be a part of interleaving
2145 (vect_analyze_data_ref_dependence): Use new names.
2146 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
2147 (vect_create_addr_base_for_vector_ref): Remove redundant code.
2148 * tree-vect-patterns.c (widened_name_p): Use new names.
2149 (vect_recog_dot_prod_pattern): Likewise.
2150 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
2151 (process_use, vect_mark_stmts_to_be_vectorized,
2152 vect_model_simple_cost, vect_model_store_cost,
2153 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
2154 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
2155 vectorizable_operation, vectorizable_type_demotion,
2156 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
2157 vectorizable_condition): Likewise.
2158 (vect_analyze_operations): Split into vect_analyze_loop_operations
2160 (vect_analyze_stmt): ... new function.
2161 (new_stmt_vec_info): Use new names.
2162 (vect_is_simple_use): Use new names and fix comment.
2163 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
2164 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
2166 2009-04-28 Uros Bizjak <ubizjak@gmail.com>
2169 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
2170 and integer modes for x87 operands. Do not ICE for unsupported size,
2171 generate error instead. Generate error for unsupported operand types.
2172 ['z']: Do not handle HImode memory operands specially. Warning
2173 for floating-point operands. Fallthru to 'Z' for unsupported operand
2174 types. Do not ICE for unsupported size, generate error instead.
2175 (output_387_binary_op): Use %Z to output operands.
2176 (output_fp_compare): Ditto.
2177 (output_387_reg_move): Ditto.
2179 2009-04-28 Ben Elliston <bje@au.ibm.com>
2184 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2186 * builtins.c (c_strlen): Do not warn here.
2187 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
2188 * c-common.c (pointer_int_sum): Take an explicit location.
2189 Warn about offsets out of bounds.
2190 * c-common.h (pointer_int_sum): Adjust declaration.
2192 2009-04-27 Ian Lance Taylor <iant@google.com>
2194 * collect2.c (is_ctor_dtor): Change type of ret field in struct
2196 * dce.c (run_fast_df_dce): Change type of old_flags to int.
2197 * df-core.c (df_set_flags): Change return type to int. Change
2198 type of old_flags to int.
2199 (df_clear_flags): Likewise.
2200 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
2201 (df_get_conditional_uses): Likewise.
2202 * df.h (df_set_flags, df_clear_flags): Update declarations.
2203 * dwarf2out.c (struct indirect_string_node): Change type of form
2204 field to enum dwarf_form.
2205 (AT_string_form): Change return type to enum dwarf_form.
2206 * fixed-value.c (fixed_compare): Add cast to enum type.
2207 * fwprop.c (update_df): Change 0 to VOIDmode.
2208 * gensupport.c: Change 0 to UNKNOWN.
2209 * gimple.h (gimple_cond_code): Add cast to enum type.
2210 * haifa-sched.c (reemit_notes): Add cast to enum type.
2211 * hooks.c (hook_int_void_no_regs): Remove function.
2212 * hooks.h (hook_int_void_no_regs): Remove declaration.
2213 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
2214 * predict.c (combine_predictions_for_insn): Add casts to enum type.
2215 * real.c (real_arithmetic): Add cast to enum type.
2216 (real_compare): Likewise.
2217 * target.h (struct gcc_target): Change return type of
2218 branch_target_register_class to enum reg_class.
2219 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
2220 default_branch_target_register_class.
2221 * targhooks.c (default_branch_target_register_class): New function.
2222 * targhooks.h (default_branch_target_register_class): Declare.
2223 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
2224 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
2226 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
2228 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
2229 vect_uninitialized_def. Change 0 to ERROR_MARK.
2230 * tree-vect-stmts.c (supportable_widening_operation): Don't
2231 initialize icode1 and icode2.
2232 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
2233 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
2235 (cmn_err_flag_specs): Change 0 to STD_C89.
2236 (cmn_err_char_table): Likewise.
2237 * config/arm/arm.c (get_arm_condition_code): Change type of code
2238 to enum arm_cond_code.
2239 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
2240 (IWMMXT_BUILTIN2): Likewise.
2241 (neon_builtin_type_bits): Don't define typedef.
2242 (neon_builtin_datum): Change type of bits field to int.
2243 (arm_expand_neon_args): Add cast to enum type.
2244 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
2246 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
2248 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
2250 * config/mips/mips.md (jal_macro): Return enum constant.
2251 (single_insn): Likewise.
2252 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
2254 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2256 * config/s390/s390.c (s390_tune_flags): Change type to int.
2257 (s390_arch_flags): Likewise.
2258 (s390_handle_arch_option): Change flags field of struct pta to int.
2259 * config/s390/s390.h (s390_tune_flags): Update declaration.
2260 (s390_arch_flags): Likewise.
2261 * config/sh/sh.c (prepare_move_operands): Compare
2262 tls_symbolic_operand result with enum constant.
2263 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
2264 (sh_expand_prologue): Add cast to enum type.
2265 (sh_expand_epilogue): Likewise.
2266 (tls_symbolic_operand): Change return type to enum tls_model.
2267 (fpscr_set_from_mem): Add cast to enum type.
2268 (legitimize_pic_address): Compare tls_symbolic_operand result with
2270 (sh_target_reg_class): Change return type to enum reg_class.
2271 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
2273 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
2274 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
2275 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
2276 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
2277 (delayed_branch, tls_call_delay): Likewise.
2278 (eligible_for_sibcall_delay): Likewise.
2279 (eligible_for_return_delay): Likewise.
2280 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
2281 (spu_expand_builtin_1): Likewise.
2283 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
2284 for all types of conversions.
2285 (output_init_element): Issue -Wc++-compat warning if needed when
2286 initializing a bitfield with enum type.
2287 * c-parser.c (c_parser_expression): Set original_type to
2288 original_type of right hand operand of comman operator.
2290 2009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2292 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
2294 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
2295 * doc/cpp.texi (Standard Predefined Macros)
2296 (Implementation-defined behavior): Likewise.
2297 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
2298 * doc/gimple.texi (GIMPLE Exception Handling)
2299 (@code{GIMPLE_ASSIGN}): Likewise.
2300 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
2301 * doc/invoke.texi (Warning Options, Optimize Options)
2302 (AVR Options, Darwin Options): Likewise.
2303 (Optimize Options): Reformulate -fwhole-program description.
2304 * doc/loop.texi (Lambda): Likewise.
2305 * doc/md.texi (Output Template, Define Constraints)
2306 (Standard Names, Insn Splitting): Likewise.
2307 * doc/options.texi (Option properties): Likewise.
2308 * doc/passes.texi (Tree-SSA passes): Likewise.
2309 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
2310 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
2311 (File Names and DBX): Likewise.
2312 * doc/trouble.texi (Incompatibilities): Likewise.
2314 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
2316 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
2317 instruction is correct.
2319 2009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
2321 Allow non-constant arguments to conversion intrinsics.
2322 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
2323 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
2324 * spu.c (print_operand): Handle 'v' and 'w'.
2325 (exp2_immediate_p, spu_gen_exp2): Define.
2326 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
2327 spu_convtf_1): Update parameter descriptions.
2328 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
2329 * constraints.md ('v', 'w'): New.
2330 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
2332 (i2f, I2F): New define_mode_attr.
2333 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
2334 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
2335 fixuns_truncv4sfv4si2): Update to use mode attribute.
2336 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
2337 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
2338 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
2339 patterns for combine.
2341 2009-04-27 Steven Bosscher <steven@gcc.gnu.org>
2343 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
2344 (cprop, hoist, pre, store_motion): New debug counters.
2345 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
2346 is not an RTL pass anymore.
2347 (pass_profiling): Remove extern decl for pass removed in 2005.
2348 (pass_gcse, pass_jump_bypass): Remove.
2349 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
2350 to 0 for clean state.
2351 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
2352 * cse.c (gate_handle_cse_after_global_opts,
2353 rest_of_handle_cse_after_global_opts): New functions.
2354 (pass_cse_after_global_opts): New pass, does local CSE.
2355 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
2356 (TV_CPROP): New timevar.
2357 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
2358 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
2359 (gcse_main, recompute_all_luids): Remove.
2360 (compute_hash_table_work): Call max_reg_num instead of reading
2362 (cprop_jump): Don't set run_jump_opt_after_gcse.
2363 (constprop_register): Always allow to alter jumps.
2364 (cprop_insn): Likewise.
2365 (do_local_cprop): Likewise.
2366 (local_cprop_pass): Likewise. Return non-zero if something changed.
2367 (cprop): Remove function, fold interesting bits into one_cprop_pass.
2368 (find_implicit_sets): Add note about missed optimization opportunity.
2369 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
2370 pass_rtl_cprop execute function.
2371 Don't bother tracking the pass number, each pass gets its own dumpfile
2373 Always allow to alter jumpsand bypass jumps.
2374 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
2375 will just find no suitable set.
2376 (pre_edge_insert): Fix dumping, this function is for PRE only.
2377 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
2378 pass_rtl_pre execute function.
2379 (hoist_code): Return non-zero if something changed. Keep track of
2380 substitutions and insertions for statistics gathering similar to PRE.
2381 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
2382 called from the pass_rtl_hoist execute function. Show pass statistics.
2383 (compute_store_table): Use max_reg_num directly instead of using the
2384 formerly global max_gcse_regno.
2385 (build_store_vectors): Likewise.
2386 (replace_store_insn): Fix dumping.
2387 (store_motion): Rename to ...
2388 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
2389 pass, called from the pass_rtl_store_motion execute function. Keep
2390 track of substitutions and insertions for statistics gathering similar
2392 (bypass_jumps): Remove, fold interesting bits into ...
2393 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
2394 from the pass_rtl_cprop execute function.
2395 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
2396 pass_jump_bypass): Remove.
2397 (gate_handle_gcse, rest_of_handle_gcse): Remove.
2398 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
2399 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
2400 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
2401 (gate_rtl_store_motion, execute_rtl_store_motion,
2402 pass_rtl_store_motion): New.
2403 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
2404 make it clear that -fcse-skip-blocks is a no-op for backward compat.
2405 * passes.c (init_optimization_passes): Remove pass_gcse and
2406 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
2407 and cse_after_global_opts in place of pass_gcse. Schedule cprop
2408 instead of pass_jump_bypass.
2410 2009-04-27 Richard Guenther <rguenther@suse.de>
2413 * gimplify.c (gimplify_expr): If we are required to create
2414 a temporary make sure it ends up as register.
2416 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
2419 * config/i386/i386.c (construct_container): Don't call
2420 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
2421 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
2423 2009-04-27 Michael Matz <matz@suse.de>
2425 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
2426 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
2427 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
2428 (dump_replaceable_exprs): Take a bitmap.
2429 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
2431 (expand_gimple_basic_block): Likewise.
2432 * tree-ssa-ter.c (struct temp_expr_table_d): Make
2433 replaceable_expressions member a bitmap.
2434 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
2435 (mark_replaceable): Likewise.
2436 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
2437 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
2439 2009-04-27 Richard Guenther <rguenther@suse.de>
2441 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
2442 (verify_stmts): Dispatch to gimple/type verification code.
2443 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
2444 issue with call argument types.
2446 2009-04-27 Michael Matz <matz@suse.de>
2448 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
2449 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
2452 2009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
2453 Eric Botcazou <ebotcazou@adacore.com>
2455 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
2456 a label's basic block.
2457 (mark_target_live_regs): Tidy and rework obsolete comments.
2458 Change back DF problem to LIVE. If a label starts a basic block,
2459 assume that all registers that used to be live then still are.
2460 (init_resource_info): If a label starts a basic block, set its
2461 BLOCK_FOR_INSN accordingly.
2462 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
2464 2009-04-27 Richard Guenther <rguenther@suse.de>
2466 * tree-flow-inline.h (function_ann): Remove.
2467 (get_function_ann): Likewise.
2468 * tree-dfa.c (create_function_ann): Remove.
2469 * tree-flow.h (struct static_var_ann_d): Remove.
2470 (struct function_ann_d): Likewise.
2471 (union tree_ann_d): Remove fdecl member.
2472 (function_ann_t): Remove.
2473 (function_ann, get_function_ann, create_function_ann): Remove
2476 2009-04-27 Uros Bizjak <ubizjak@gmail.com>
2478 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
2480 2009-04-27 Jan Hubicka <jh@suse.cz>
2482 * ipa-pure-const.c (struct funct_state_d): New fields
2483 state_previously_known, looping_previously_known; remove
2484 state_set_in_source.
2485 (analyze_function): Use new fields.
2486 (propagate): Avoid assumption that state_set_in_source imply
2489 * tree-ssa-loop-niter.c (finite_loop_p): New function.
2490 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
2491 * cfgloop.h (finite_loop_p): Declare.
2493 2009-04-26 Michael Matz <matz@suse.de>
2495 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
2497 2009-04-26 Michael Matz <matz@suse.de>
2499 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
2500 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
2501 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
2502 pass_mark_used_blocks): Remove.
2503 * tree-optimize.c (pass_free_datastructures,
2504 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
2505 * passes.c (init_optimization_passes): Don't call
2506 pass_mark_used_blocks, remove dead code.
2508 2009-04-26 H.J. Lu <hongjiu.lu@intel.com>
2510 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
2511 * tree-ssa-live.h (register_ssa_partition): Likewise.
2513 2009-04-26 Michael Matz <matz@suse.de>
2516 * builtins.c (fold_builtin_next_arg): Handle SSA names.
2517 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
2518 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
2520 (compare_pairs): Swap cost comparison.
2521 (coalesce_ssa_name): Don't use change_partition_var.
2522 * tree-nrv.c (struct nrv_data): Add modified member.
2523 (finalize_nrv_r): Set it.
2524 (tree_nrv): Use it to update statements.
2525 (pass_nrv): Require PROP_ssa.
2526 * tree-mudflap.c (mf_decl_cache_locals,
2527 mf_build_check_statement_for): Use make_rename_temp.
2528 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
2529 * alias.c (find_base_decl): Handle SSA names.
2530 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
2531 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
2532 * rtl.h (set_reg_attrs_for_parm): Declare.
2533 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
2534 to "optimized", remove unused locals at finish.
2535 (execute_free_datastructures): Make global, call
2536 delete_tree_cfg_annotations.
2537 (execute_free_cfg_annotations): Don't call
2538 delete_tree_cfg_annotations.
2540 * ssaexpand.h: New file.
2541 * expr.c (toplevel): Include ssaexpand.h.
2542 (expand_assignment): Handle SSA names the same as register variables.
2543 (expand_expr_real_1): Expand SSA names.
2544 * cfgexpand.c (toplevel): Include ssaexpand.h.
2545 (SA): New global variable.
2546 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
2547 (SSAVAR): New macro.
2548 (set_rtl): New helper function.
2549 (add_stack_var): Deal with SSA names, use set_rtl.
2550 (expand_one_stack_var_at): Likewise.
2551 (expand_one_stack_var): Deal with SSA names.
2552 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
2553 before unique numbers.
2554 (expand_stack_vars): Use set_rtl.
2555 (expand_one_var): Accept SSA names, add asserts for them, feed them
2556 to above subroutines.
2557 (expand_used_vars): Expand all partitions (without default defs),
2558 then only the local decls (ignoring those expanded already).
2559 (expand_gimple_cond): Remove edges when jumpif() expands an
2561 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
2562 or remove abnormal edges. Ignore insns setting the LHS of a TERed
2564 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
2565 members of SA; deal with PARM_DECL partitions here; expand
2566 all PHI nodes, free tree datastructures and SA. Commit instructions
2567 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
2568 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
2569 info and statements at start, collect garbage at finish.
2570 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
2571 (VAR_ANN_PARTITION) Remove.
2572 (change_partition_var): Don't declare.
2573 (partition_to_var): Always return SSA names.
2574 (var_to_partition): Only accept SSA names.
2575 (register_ssa_partition): Only check argument.
2576 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
2578 (delete_var_map): Don't free it.
2579 (var_union): Only accept SSA names, simplify.
2580 (partition_view_init): Mark only useful SSA names as used.
2581 (partition_view_fini): Only deal with SSA names.
2582 (change_partition_var): Remove.
2583 (dump_var_map): Use ssa_name instead of partition_to_var member.
2584 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
2586 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
2587 (struct _elim_graph): New member const_dests; nodes member vector of
2589 (set_location_for_edge): New static helper.
2590 (create_temp): Remove.
2591 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
2592 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
2593 (new_elim_graph): Allocate const_dests member.
2594 (clean_elim_graph): Truncate const_dests member.
2595 (delete_elim_graph): Free const_dests member.
2596 (elim_graph_size): Adapt to new type of nodes member.
2597 (elim_graph_add_node): Likewise.
2598 (eliminate_name): Likewise.
2599 (eliminate_build): Don't take basic block argument, deal only with
2600 partition numbers, not variables.
2601 (get_temp_reg): New static helper.
2602 (elim_create): Use it, deal with RTL temporaries instead of trees.
2603 (eliminate_phi): Adjust all calls to new signature.
2604 (assign_vars, replace_use_variable, replace_def_variable): Remove.
2605 (rewrite_trees): Only do checking.
2606 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
2607 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
2608 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
2609 contains_tree_r, MAX_STMTS_IN_LATCH,
2610 process_single_block_loop_latch, analyze_edges_for_bb,
2611 perform_edge_inserts): Remove.
2612 (expand_phi_nodes): New global function.
2613 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
2614 functions, initialize new parameter, remember partitions having a
2616 (finish_out_of_ssa): New global function.
2617 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
2618 don't reset in_ssa_p here, don't disable TER when mudflap.
2619 (pass_del_ssa): Remove.
2620 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
2622 (execute_free_datastructures): Declare.
2623 * Makefile.in (SSAEXPAND_H): New variable.
2624 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
2625 * basic-block.h (commit_one_edge_insertion): Declare.
2626 * passes.c (init_optimization_passes): Move pass_nrv and
2627 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
2628 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
2629 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
2630 (redirect_branch_edge): Deal with super block when expanding, split
2631 out jump patching itself into ...
2632 (patch_jump_insn): ... here, new static helper.
2634 2009-04-26 Michael Matz <matz@suse.de>
2636 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
2637 beyond num_ssa_names.
2638 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
2639 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
2641 2009-04-26 Jakub Jelinek <jakub@redhat.com>
2644 * fwprop.c (forward_propagate_asm): New function.
2645 (forward_propagate_and_simplify): Propagate also into __asm, if it
2646 doesn't increase the number of referenced registers.
2649 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
2651 2009-04-26 Jakub Jelinek <jakub@redhat.com>
2653 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
2654 note_nonlocal_vla_type for nonlocal VLAs.
2655 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
2656 contains_remapped_vars, remap_vla_decls): New functions.
2657 (convert_nonlocal_reference_stmt): If not optimizing, call
2658 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
2659 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
2660 if it wasn't found in var_map.
2661 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
2662 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
2663 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
2665 * gimplify.c (nonlocal_vlas): New variable.
2666 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
2668 (gimplify_body): Create and destroy nonlocal_vlas.
2670 * dwarf2out.c (loc_descr_plus_const): New function.
2671 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
2672 mem_loc_descriptor, loc_descriptor_from_tree_1,
2673 descr_info_loc, gen_variable_die): Use it.
2675 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
2676 !TREE_STATIC VAR_DECLs.
2677 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
2678 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
2679 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
2680 DECL_BY_REFERENCE is valid.
2681 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
2682 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
2683 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
2684 Copy DECL_BY_REFERENCE.
2685 (struct nesting_copy_body_data): New type.
2686 (nesting_copy_decl): New function.
2687 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
2688 if they have variable length.
2690 2009-04-26 Michael Matz <matz@suse.de>
2692 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
2693 mark new temporaries for renaming.
2695 2009-04-26 Joseph Myers <joseph@codesourcery.com>
2698 * c-decl.c (global_bindings_p): Return negative value.
2699 (c_variable_size): New. Based on variable_size from
2701 (grokdeclarator): Call c_variable_size not variable_size.
2703 2009-04-26 Uros Bizjak <ubizjak@gmail.com>
2705 * config/i386/i386.c (print_operand) ['z']: Fix typo.
2707 2009-04-26 Kai Tietz <kai.tietz@onevision.com>
2709 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
2710 Redefine it to just use mingw/include.
2711 (ASM_SPEC): Rules for -m32 and -m64.
2712 (LINK_SPEC): Use Likewise.
2713 (SPEC_32): New define.
2714 (SPEC_64): Likewise.
2715 (SUB_LINK_SPEC): Likewise.
2716 (MULTILIB_DEFAULTS): New define.
2717 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
2718 Add multilib options.
2719 (MULTILIB_DIRNAMES): Likewise.
2720 (MULTILIB_OSDIRNAMES): Likewise.
2722 (INSTALL_LIBGCC): Likewise.
2724 2009-04-26 Joseph Myers <joseph@codesourcery.com>
2727 * c-tree.h (enum c_inline_static_type): New.
2728 (record_inline_static): Declare.
2729 * c-decl.c (struct c_inline_static, c_inline_statics,
2730 record_inline_static, check_inline_statics): New.
2731 (pop_file_scope): Call check_inline_statics.
2732 (start_decl): Call record_inline_static instead of pedwarning
2733 directly for static in inline function.
2734 * c-typeck.c (build_external_ref): Call record_inline_static
2735 instead of pedwarning directly for static referenced in inline
2738 2009-04-26 Steven Bosscher <steven@gcc.gnu.org>
2740 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
2741 not new but only being rescanned.
2742 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
2743 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
2744 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
2745 record_set_info, compute_set, grealloc): Remove.
2746 (recompute_all_luids): New function.
2747 (gcse_main): Don't compute sets, and don't do related memory
2748 allocations/free-ing. If something changed before the end of the
2749 pass, update LUIDs using recompute_all_luids.
2750 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
2751 (free_gcse_mem): Don't free it either.
2752 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
2753 Use the df insn LUIDs.
2754 (load_killed_in_block): Likewise.
2755 (compute_hash_table_work): Don't compute reg_set_in_block.
2756 (compute_transp): Use DF_REG_DEF_CHAINs.
2757 (local_cprop_pass): Don't use compute_sets and related functions.
2758 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
2759 Use get_max_uid() instead of max_cuid.
2760 (insert_insn_end_basic_block, pre_insert_copy_insn,
2761 update_ld_motion_stores): Don't try to
2762 keep reg_set tables up to date.
2763 (pre_insert_copies): Use df insn LUIDs.
2764 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
2765 (reg_set_info): Don't use extra bitmap argument.
2766 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
2767 information to compute regs_set_in_block.
2768 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
2769 (bypass_jumps): Don't use compute_sets and friends.
2771 2009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2774 * opts.c (undocumented_msg): Do not leave blank even with
2777 2009-04-25 Joseph Myers <joseph@codesourcery.com>
2779 * c-decl.c (build_enumerator): Allow values folding to integer
2780 constants but not integer constant expressions with a pedwarn if
2783 2009-04-25 Joseph Myers <joseph@codesourcery.com>
2786 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
2787 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
2788 type is an integer constant.
2790 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
2793 * config/i386/i386.c (print_operand) ['z']: Revert handling of
2796 2009-04-25 Joseph Myers <joseph@codesourcery.com>
2799 * c-decl.c (grokdeclarator): Diagnose declarations of functions
2800 with variably modified return type and no storage class
2801 specifiers, except for the case of nested functions. Distinguish
2802 extern declarations of functions with variably modified return
2803 types from those of objects with variably modified types.
2805 2009-04-25 Jan Hubicka <jh@suse.cz>
2807 * tree.c (list_equal_p): New function.
2808 * tree.h (list_equal_p): Declare.
2809 * coretypes.h (edge_def, edge, const_edge, basic_block_def
2810 basic_block_def, basic_block, const_basic_block): New.
2811 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
2812 (redirect_eh_edge): New function.
2813 (make_eh_edge_update_phi): EH edges are not abnormal.
2814 * except.c: Include tree-flow.h.
2815 (list_match): New function.
2816 (eh_region_replaceable_by_p): New function.
2817 (replace_region): New function.
2818 (hash_type_list): New function.
2819 (hash_eh_region): New function.
2820 (eh_regions_equal_p): New function.
2821 (merge_peers): New function.
2822 (remove_unreachable_regions): Verify EH tree when checking;
2824 (copy_eh_region_1): New function.
2825 (copy_eh_region): New function.
2826 (push_reachable_handler): New function.
2827 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
2828 regions without label but with live RESX.
2829 * except.h (redirect_eh_edge_to_label): New.
2830 * tree-flow.h (redirect_eh_edge): New.
2831 * coretypes.h (edge_def, edge, const_edge, basic_block_def
2832 basic_block_def, basic_block, const_basic_block): Remove.
2833 * Makefile.in (except.o): Add dependency on tree-flow.h
2834 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
2835 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
2838 2009-04-25 Eric Botcazou <ebotcazou@adacore.com>
2841 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
2842 on the destination of memcpy.
2844 2009-04-25 Paolo Bonzini <bonzini@gnu.org>
2846 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
2847 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
2848 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
2850 2009-04-25 Jan Hubicka <jh@suse.cz>
2852 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
2853 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
2854 to be reached by different label than left.
2855 (update_eh_edges): Update comment; remove edge_to_remove if possible
2856 and return true if suceeded.
2857 (cleanup_empty_eh): Accept sharing map; handle shared regions.
2858 (cleanup_eh): Compute sharing map.
2859 * except.c (remove_eh_handler_and_replace): Add argument if we should
2861 (remove_unreachable_regions): Update for label sharing.
2862 (label_to_region_map): Likewise.
2863 (get_next_region_sharing_label): New function.
2864 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
2866 (remove_eh_handler): Update.
2867 (remove_eh_region_and_replace_by_outer_of): New function.
2868 * except.h (struct eh_region): Add next_region_sharing_label.
2869 (remove_eh_region_and_replace_by_outer_of,
2870 get_next_region_sharing_label): Declare.
2871 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
2873 2009-04-25 Jan Hubicka <jh@suse.cz>
2875 * tree-cfg.c (split_critical_edges): Split also edges where we can't
2876 insert code even if they are not critical.
2878 2009-04-25 Jan Hubicka <jh@suse.cz>
2880 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
2881 (gimple_can_remove_branch_p): EH edges won't remove branch by
2883 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
2884 updating of non-abnormal EH edges.
2885 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
2886 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
2887 (split_critical_edges): Split also edges where emitting code on them
2888 will lead to splitting later.
2890 2009-04-25 Uros Bizjak <ubizjak@gmail.com>
2891 H.J. Lu <hongjiu.lu@intel.com>
2894 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
2895 the configured assembler supports fildq and fistpq mnemonics.
2896 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
2897 * configure: Regenerated.
2900 * config/i386/i386.c (print_operand): Handle 'Z'.
2901 ['z']: Remove handling of special fild/fist suffixes.
2902 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
2903 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
2904 suffix of fild insn.
2905 (*floatsi<mode>2_vector_mixed): Ditto.
2906 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
2907 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
2908 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
2909 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
2910 * config/i386/gas.h (GAS_MNEMONICS): Remove.
2912 2009-04-25 Ben Elliston <bje@au.ibm.com>
2914 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
2915 the source of a set operation.
2917 2009-04-25 Anatoly Sokolov <aesok@post.ru>
2919 * target.h (struct gcc_target): Add case_values_threshold field.
2920 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
2921 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
2922 * targhooks.c (default_case_values_threshold): New function.
2923 * targhooks.h (default_case_values_threshold): Declare function.
2924 * stmt.c (expand_case): Use case_values_threshold target hook.
2925 * expr.h (case_values_threshold): Remove declartation.
2926 * expr.c (case_values_threshold): Remove function.
2927 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
2929 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
2930 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2931 (avr_case_values_threshold): Declare as static.
2932 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
2934 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
2935 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
2936 (mn10300_case_values_threshold): New function.
2938 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
2940 * ira.c (setup_cover_and_important_classes): Add enum cast.
2942 2009-04-24 Vladimir Makarov <vmakarov@redhat.com>
2944 * genpreds.c (write_enum_constraint_num): Output definition of
2945 CONSTRAINT_NUM_DEFINED_P macro.
2946 * ira.c (setup_cover_and_important_classes): Use
2947 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
2949 2009-04-24 DJ Delorie <dj@redhat.com>
2951 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
2952 __SH2A_SINGLE_ONLY__ also.
2954 2009-04-24 Steve Ellcey <sje@cup.hp.com>
2956 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
2957 (movdf_internal): Ditto.
2958 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
2959 SFmode and DFmode constants.
2960 (ia64_print_operand): Add 'G' format for printing
2961 floating point constants.
2963 2009-04-24 Richard Guenther <rguenther@suse.de>
2965 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
2966 from unsigned additions.
2968 2009-04-24 Joseph Myers <joseph@codesourcery.com>
2970 * c-typeck.c (set_init_index): Allow array designators that are
2971 not integer constant expressions with a pedwarn if pedantic.
2973 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
2975 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
2976 zero if no overlap in nonzero bits between the operands.
2978 2009-04-24 Ian Lance Taylor <iant@google.com>
2980 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
2981 (record_dead_and_set_regs): Likewise.
2982 * df.h (struct df_mw_hardreg): Change flags field to int.
2983 (struct df_base_ref): Likewise.
2984 (struct df): Change changeable_flags field to int.
2985 * df-scan.c (df_defs_record): Change clobber_flags to int.
2986 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
2987 constants rather than #define macros.
2988 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
2989 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
2990 (enum dwarf_calling_convention): Likewise.
2991 (enum dwarf_line_number_x_ops): Likewise.
2992 (enum dwarf_call_frame_info): Likewise.
2993 (enum dwarf_source_language): Likewise.
2994 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
2995 (add_calling_convention_attribute): Likewise.
2996 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
2997 (combine_comparisons): Change compcode to int. Add cast to enum type.
2998 * genrecog.c (maybe_both_true_2): Change c to int.
2999 (write_switch): Likewise. Add cast to enum type.
3000 * gimplify.c (gimplify_omp_for): Handle return values from
3001 gimplify_expr using MIN rather than bitwise or.
3002 (gimplify_expr): Add cast to enum type.
3003 * ipa-prop.c (update_jump_functions_after_inlining): Change
3004 IPA_BOTTOM to IPA_JF_UNKNOWN.
3005 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
3006 Add casts to enum type.
3007 (setup_cover_and_important_classes): Change cl to int. Add casts
3009 (setup_class_translate): Change cl and mode to int.
3010 (ira_init_once): Change mode to int.
3011 (free_register_move_costs): Likewise.
3012 (setup_prohibited_mode_move_regs): Add casts to enum type.
3013 * langhooks.c (add_builtin_function_common): Rework assertion that
3014 value fits bitfield.
3015 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
3016 * omega.c (omega_do_elimination): Avoid math on enum types.
3017 * optabs.c (expand_vec_shift_expr): Remove casts to int.
3018 * opts.c (set_debug_level): Change 2 to enum constant. Use new
3019 int local to handle integral_argment value.
3020 * regmove.c (try_auto_increment): Change PUT_MODE to
3022 * reload.c (push_secondary_reload): Add casts to enum type.
3023 (secondary_reload_class, find_valid_class): Likewise.
3024 * reload1.c (emit_input_reload_insns): Likewise.
3025 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
3026 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
3027 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
3029 * tree.c (build_common_builtin_nodes): Add casts to enum type.
3030 * tree-complex.c (complex_lattice_t): Typedef to int rather than
3032 (expand_complex_libcall): Add casts to enum type.
3033 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
3034 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
3035 with ERROR_MARK, not NUM_TREE_CODES.
3036 (vect_create_epilog_for_reduction): Likewise.
3037 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
3038 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
3039 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
3041 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
3042 vect_unused_in_loop. Change 0 to loop_vect.
3043 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
3044 * var-tracking.c (get_init_value): Change return type to enum
3046 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
3047 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
3049 (arm_override_options): Add casts to enum type.
3050 (arm_emit_tls_decoration): Likewise.
3051 * config/i386/i386.c (ix86_function_specific_restore): Add casts
3053 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
3054 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
3055 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
3057 * config/s390/s390.c (code_for_builtin_64): Change to array of
3059 (code_for_builtin_31): Likewise.
3060 (s390_expand_builtin): Change code_for_builtin to enum insn_code
3062 * config/sparc/sparc.c (sparc_override_options): Change value
3063 field in struct code_model to enum cmodel. In initializer change
3064 0 to NULL and add cast to enum type.
3066 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
3067 Change all callers. Issue a -Wc++-compat warning using
3068 lhs_origtype if necessary.
3069 (convert_for_assignment): Issue -Wc++-compat warnings about
3070 invalid conversions to enum type on assignment.
3071 * c-common.h (build_modify_expr): Update declaration.
3073 2009-04-24 Nick Clifton <nickc@redhat.com>
3075 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
3076 (function_arg_advance): Likewise.
3077 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
3080 2009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
3082 * config/s390/constraints.md ('I', 'J'): Fix condition.
3084 2009-04-24 Diego Novillo <dnovillo@google.com>
3086 * gengtype-parse.c (parse_error): Add newline after message.
3088 2009-04-24 H.J. Lu <hongjiu.lu@intel.com>
3090 * config/i386/sse.md (avxmodesuffixs): Removed.
3091 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
3092 (*avx_pinsr<ssevecsize>): This.
3094 2009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
3096 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
3097 follow chains of regs with a single definition, and allow expressions
3098 that are function_invariant_p.
3099 (simple_rhs_p): Allow expressions that are function_invariant_p.
3101 2009-04-24 Paolo Bonzini <bonzini@gnu.org>
3104 * fold-const.c (fold_cond_expr_with_comparison): When folding
3105 > and >= to MAX, make sure the MAX uses the same type as the
3106 comparison's operands.
3108 2009-04-24 Nick Clifton <nickc@redhat.com>
3110 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
3111 addressing for DImode accesses.
3112 (frv_print_operand_address): Handle PLUS case.
3113 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
3115 2009-04-24 Jakub Jelinek <jakub@redhat.com>
3117 PR rtl-optimization/39794
3118 * alias.c (canon_true_dependence): Add x_addr argument.
3119 * rtl.h (canon_true_dependence): Adjust prototype.
3120 * cse.c (check_dependence): Adjust canon_true_dependence callers.
3121 * cselib.c (cselib_invalidate_mem): Likewise.
3122 * gcse.c (compute_transp): Likewise.
3123 * dse.c (scan_reads_nospill): Likewise.
3124 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
3125 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
3126 canon_base_addr of the group, plus optional offset.
3127 (struct group_info): Rename canon_base_mem to
3129 (get_group_info): Set canon_base_addr to canon_rtx of base, not
3130 canon_rtx of base_mem.
3132 2009-04-23 Paolo Bonzini <bonzini@gnu.org>
3134 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
3135 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
3137 2009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3139 * config/spu/spu-builtins.h: Delete file.
3141 * config/spu/spu.h (enum spu_builtin_type): Move here from
3143 (struct spu_builtin_description): Likewise. Add GTY marker.
3144 Do not use enum spu_function_code or enum insn_code.
3145 (spu_builtins): Add extern declaration.
3147 * config/spu/spu.c: Do not include "spu-builtins.h".
3148 (enum spu_function_code, enum spu_builtin_type_index,
3149 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
3150 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
3151 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
3152 unsigned_V2DI_type_node): Move here from spu-builtins.h.
3153 (spu_builtin_types): Make static. Add GTY marker.
3154 (spu_builtins): Add extern declaration with GTY marker.
3157 * config/spu/spu-c.c: Do not include "spu-builtins.h".
3158 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
3159 Check programmatically whether all parameters are scalar.
3161 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
3163 2009-04-23 Eric Botcazou <ebotcazou@adacore.com>
3165 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
3166 assignment from the constructor either if the target is volatile.
3168 2009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
3170 * config/arm/arm.md (insv): Do not share operands[0].
3172 2009-04-23 Nathan Sidwell <nathan@codesourcery.com>
3174 * config/vxlib-tls.c (active_tls_threads): Delete.
3175 (delete_hook_installed): New.
3176 (tls_delete_hook): Don't delete the delete hook.
3177 (tls_destructor): Delete it here.
3178 (__gthread_set_specific): Adjust installing the delete hook.
3179 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
3180 __gthread_leave_tsd_dtor_context.
3182 2009-04-23 Rafael Avila de Espindola <espindola@google.com>
3184 * c-format.c (gcc_tdiag_char_table): Add support for %E.
3186 2009-04-23 Uros Bizjak <ubizjak@gmail.com>
3188 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
3190 (alpha_rtx_costs): Ditto.
3191 (emit_unlikely_jump): Use add_reg_note.
3192 (emit_frame_store_1): Ditto.
3193 (alpha_expand_prologue): Ditto.
3194 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
3195 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
3197 2009-04-23 Nick Clifton <nickc@redhat.com>
3199 * config/v850/v850.md (epilogue): Remove suppressed code.
3200 (return): Rename to return_simple and remove test of frame size.
3201 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
3202 to gen_return_simple.
3204 2009-04-22 Jing Yu <jingyu@google.com>
3207 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
3209 2009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
3212 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
3213 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
3214 value is a VECTOR_CST, the element type is the element type of the
3217 2009-04-22 DJ Delorie <dj@redhat.com>
3219 * config/m32c/m32c.h: Update GTY annotations to new syntax.
3221 2009-04-22 Jakub Jelinek <jakub@redhat.com>
3223 * alias.c (find_base_term): Move around LO_SUM case, so that
3224 CONST falls through into PLUS/MINUS handling.
3227 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
3228 into 0, use omit_one_operand.
3230 2009-04-23 Ben Elliston <bje@au.ibm.com>
3232 * config/rs6000/linux-unwind.h (get_regs): Remove type
3233 puns. Change the type of `pc' to an array of unsigned ints and
3234 update all users. Constify frame24.
3236 2009-04-22 DJ Delorie <dj@redhat.com>
3238 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
3239 declarations before code.
3240 (current_function_special_page_vector): Likewise.
3241 (m32c_expand_insv): Silence a warning.
3243 2009-04-21 Taras Glek <tglek@mozilla.com>
3245 * alias.c: Update GTY annotations to new syntax.
3246 * basic-block.h: Likewise.
3247 * bitmap.h: Likewise.
3248 * c-common.h: Likewise.
3249 * c-decl.c: Likewise.
3250 * c-parser.c: Likewise.
3251 * c-pragma.c: Likewise.
3252 * c-tree.h: Likewise.
3253 * cfgloop.h: Likewise.
3254 * cgraph.h: Likewise.
3255 * config/alpha/alpha.c: Likewise.
3256 * config/arm/arm.h: Likewise.
3257 * config/avr/avr.h: Likewise.
3258 * config/bfin/bfin.c: Likewise.
3259 * config/cris/cris.c: Likewise.
3260 * config/darwin.c: Likewise.
3261 * config/frv/frv.c: Likewise.
3262 * config/i386/i386.c: Likewise.
3263 * config/i386/i386.h: Likewise.
3264 * config/i386/winnt.c: Likewise.
3265 * config/ia64/ia64.h: Likewise.
3266 * config/iq2000/iq2000.c: Likewise.
3267 * config/mips/mips.c: Likewise.
3268 * config/mmix/mmix.h: Likewise.
3269 * config/pa/pa.c: Likewise.
3270 * config/pa/pa.h: Likewise.
3271 * config/rs6000/rs6000.c: Likewise.
3272 * config/s390/s390.c: Likewise.
3273 * config/sparc/sparc.c: Likewise.
3274 * config/xtensa/xtensa.c: Likewise.
3275 * cselib.h: Likewise.
3276 * dbxout.c: Likewise.
3277 * dwarf2out.c: Likewise.
3278 * except.c: Likewise.
3279 * except.h: Likewise.
3280 * fixed-value.h: Likewise.
3281 * function.c: Likewise.
3282 * function.h: Likewise.
3283 * gimple.h: Likewise.
3284 * integrate.c: Likewise.
3285 * optabs.c: Likewise.
3286 * output.h: Likewise.
3289 * stringpool.c: Likewise.
3290 * tree-data-ref.c: Likewise.
3291 * tree-flow.h: Likewise.
3292 * tree-scalar-evolution.c: Likewise.
3293 * tree-ssa-address.c: Likewise.
3294 * tree-ssa-alias.h: Likewise.
3295 * tree-ssa-operands.h: Likewise.
3298 * varasm.c: Likewise.
3299 * varray.h: Likewise.
3301 * coretypes.h: Do not define GTY macro if it is already defined.
3302 * doc/gty.texi: Update GTY documentation to new syntax.
3303 * gengtype-lex.l: Enforce attribute-like syntax for GTY
3304 annotations on structs.
3305 * gengtype-parse.c: Likewise.
3307 2009-04-22 Mark Heffernan <meheff@google.com>
3309 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
3311 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
3313 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
3316 2009-04-22 Kazu Hirata <kazu@codesourcery.com>
3318 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
3319 the same as a PLUS without a shift. Increase the cost of a
3322 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3324 * Makefile.in: Update dependencies.
3325 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
3326 * errors.h: Remove bogus comment about compatibility.
3327 (warning): Update declaration.
3328 * genautomata.c: Update all calls to warning.
3329 * gimple.c: Do not include errors.h. Include toplev.h.
3330 * tree-ssa-structalias.c: Do not include errors.h.
3331 * omega.c: Likewise.
3332 * tree-ssa-reassoc.c: Likewise.
3333 * config/spu/spu-c.c: Likewise.
3334 * config/spu/t-spu-elf: Update dependencies.
3336 2009-04-22 Richard Guenther <rguenther@suse.de>
3338 PR tree-optimization/39824
3339 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
3340 make sure the types are compatible.
3342 2009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3345 * c-common.c (c_parse_error): Take a token_flags parameter.
3346 Use token_type for the token type instead.
3347 Pass token_flags to cpp_type2name.
3348 * c-common.h (c_parse_error): Update declaration.
3349 * c-parser.c (c_parser_error): Pass 0 as token flags.
3351 2009-04-22 Andrey Belevantsev <abel@ispras.ru>
3353 PR rtl-optimization/39580
3354 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
3356 2009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3358 * function.c (expand_function_end): Do not emit a jump to the "naked"
3359 return label for fall-through returns.
3360 * except.c (sjlj_emit_function_exit): Always place the call to the
3361 unregister function at the location installed by expand_function_end.
3363 2009-04-22 Richard Guenther <rguenther@suse.de>
3365 PR tree-optimization/39845
3366 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
3367 (gen_inbound_check): Likewise.
3369 2009-04-22 Nathan Sidwell <nathan@codesourcery.com>
3371 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
3373 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
3374 * config/vxlib.c (__gthread_once): Add race guard for PPC.
3376 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
3378 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
3379 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
3380 shift counts to avoid out-of-bounds array accesses.
3382 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
3384 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
3385 (Pmode): Move above.
3387 2009-04-22 Uros Bizjak <ubizjak@gmail.com>
3389 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
3390 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
3391 GET_CODE macro. Use IN_RANGE macro where appropriate.
3392 * config/alpha/alpha.h: Ditto.
3393 * config/alpha/alpha.md: Ditto.
3394 * config/alpha/constraints.md: Ditto.
3395 * config/alpha/predicates.md: Ditto.
3397 2009-04-22 Paolo Bonzini <bonzini@gnu.org>
3399 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
3400 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3401 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3402 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3403 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3404 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3405 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3406 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3407 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3408 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3409 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3410 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3411 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3412 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3413 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3414 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3415 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3416 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3417 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3418 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3419 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3420 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3421 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3422 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3423 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3424 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3425 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
3427 2009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3429 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
3430 references from comments.
3431 * cfgbuild.c: (count_basic_blocks): Delete.
3432 (find_basic_blocks_1): Delete.
3433 (find_basic_blocks): Delete.
3434 * except.c (finish_eh_generation): Make static. Move comment from
3435 except.h here. Remove find_basic_blocks references from comments.
3436 * except.h (finish_eh_generation): Delete.
3437 * basic-block.h (find_basic_blocks): Delete.
3438 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
3440 2009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
3442 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
3443 (sdbout_parms): Likewise.
3445 2009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
3447 * config/sh/sh.c (prepare_cbranch_operands): Use
3448 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
3449 (expand_cbranchdi4): Likewise.
3450 (from_compare): Add cast to enum type.
3451 (expand_cbranchsi4): Use add_reg_note.
3452 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
3453 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
3454 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
3455 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
3456 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
3457 instead of CODE_FOR_nothing.
3458 (cbranchdi4): Likewise. Fix the order of arguments for
3460 (push_fpscr): Use add_reg_note.
3461 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
3462 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
3464 2009-04-21 Joseph Myers <joseph@codesourcery.com>
3466 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
3467 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
3468 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
3469 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
3470 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
3471 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
3472 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
3473 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
3474 config/alpha/x-vms, config/arc/t-arc,
3475 config/arm/README-interworking, config/arm/arm-c.c,
3476 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
3477 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
3478 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
3479 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
3480 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
3481 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
3482 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
3483 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
3484 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
3485 config/cris/t-elfmulti, config/crx/t-crx,
3486 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
3487 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
3488 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
3489 config/h8300/t-h8300, config/i386/athlon.md,
3490 config/i386/darwin-libgcc.10.4.ver,
3491 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
3492 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
3493 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
3494 config/i386/t-linux64, config/i386/t-nwld,
3495 config/i386/t-rtems-i386, config/i386/t-sol2-10,
3496 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
3497 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
3498 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
3499 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
3500 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
3501 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
3502 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
3503 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
3504 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
3505 config/m68k/t-uclinux, config/mcore/t-mcore,
3506 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
3507 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
3508 config/mips/crtn.asm, config/mips/irix-crti.asm,
3509 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
3510 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
3511 config/mips/mips-fixed.md, config/mips/sb1.md,
3512 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
3513 config/mips/t-iris6, config/mips/t-isa3264,
3514 config/mips/t-libgcc-mips16, config/mips/t-linux64,
3515 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
3516 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
3517 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
3518 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
3519 config/mn10300/t-linux, config/mn10300/t-mn10300,
3520 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
3521 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
3522 config/picochip/libgccExtras/clzsi2.asm,
3523 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
3524 config/rs6000/darwin-libgcc.10.4.ver,
3525 config/rs6000/darwin-libgcc.10.5.ver,
3526 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
3527 config/rs6000/t-aix43, config/rs6000/t-aix52,
3528 config/rs6000/t-darwin, config/rs6000/t-fprules,
3529 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
3530 config/rs6000/t-lynx, config/rs6000/t-netbsd,
3531 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
3532 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
3533 config/rs6000/t-rtems, config/rs6000/t-spe,
3534 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
3535 config/score/t-score-elf, config/sh/divcost-analysis,
3536 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
3537 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
3538 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
3539 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
3540 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
3541 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
3542 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
3543 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
3544 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
3545 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
3546 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
3547 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
3548 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
3549 limitx.h, version.c, xcoff.h: Add copyright and license notices.
3550 * config/h8300/genmova.sh: Include copyright and license notices
3551 in generated output.
3552 * config/h8300/mova.md: Regenerate.
3553 * doc/install.texi2html: Include word "Copyright" in copyright
3554 notice and use name "Free Software Foundation, Inc.".
3555 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
3556 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
3557 ChangeLog-2007, ChangeLog-2008: Correct dates.
3559 2009-04-21 Eric Botcazou <ebotcazou@adacore.com>
3561 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
3562 NE_EXPR operations as well.
3563 * c-parser.c (c_parser_condition): Do not set location information on
3565 (c_parser_conditional_expression): Likewise.
3566 (c_parser_binary_expression): Set location information on operators.
3567 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
3568 TRUTH_NOT_EXPR has been folded.
3569 * fold-const.c (fold_truth_not_expr): Copy location information from
3570 the incoming expression to the outgoing one.
3571 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
3572 recursive calls on the LHS of the operator but pass that of the
3573 operator to recursive calls on the RHS of the operator. Set it
3575 (shortcut_cond_expr): Set the locus of the operator on the second
3576 COND_EXPR and that of the expression on the first in degenerate cases.
3577 Pass the locus of the expression to calls to shortcut_cond_r.
3578 Set the locus of the 'then' block on the associated jump, if any.
3579 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
3580 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
3581 expression to call to gimplify_boolean_expr.
3583 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
3585 * config.gcc: Add additional configuration for
3586 i686-w64-mingw* and x86_64-w64-mingw* triplet.
3587 * config/i386/mingw-w64.h: New mingw-w64 specific header.
3588 (CPP_SPEC): Redefine for allowing -municode option.
3589 (STARTFILE_SPEC): Likewise.
3590 * config/i386/t-mingw-w64: New.
3591 * config/i386/mingw-w64.opt: New.
3592 (municode): Add new target option.
3593 * doc/invoke.texi (municode): Add documentation for new option.
3595 2009-04-21 Ian Lance Taylor <iant@google.com>
3597 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3598 Correct test for number of arguments.
3599 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
3601 2009-04-21 Andreas Schwab <schwab@linux-m68k.org>
3603 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
3604 argument of emit_library_call.
3606 2009-04-21 Richard Guenther <rguenther@suse.de>
3609 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
3610 inside VIEW_CONVERT_EXPRs.
3612 2009-04-21 Martin Jambor <mjambor@suse.cz>
3614 * tree-switch-conversion.c (build_constructors): Split a long line.
3615 (constructor_contains_same_values_p): New function.
3616 (build_one_array): Create assigns of constants if possible, do not
3617 call mark_sym_for_renaming, call update_stmt.
3618 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
3619 make_rename_temp. Do not call mark_symbols_for_renaming, call
3621 (gen_def_assigns): Do not call mark_symbols_for_renaming or
3622 find_new_referenced_vars, call update_stmt.
3623 (gen_inbound_check): Use create_tmp_var and create ssa names manually
3624 instead of calling make_rename_temp. Do not call
3625 find_new_referenced_vars or mark_symbols_for_renaming, call
3628 2009-04-21 Richard Guenther <rguenther@suse.de>
3630 PR tree-optimization/39827
3631 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
3632 (tree_ssa_phiprop): Pass the correct array size.
3634 2009-04-21 Uros Bizjak <ubizjak@gmail.com>
3636 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
3638 2009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
3641 * c-typeck.c (lvalue_p): Move declaration ...
3642 * c-common.h (lvalue_p): ... to here.
3643 * c-common.c (candidate_equal_p): New.
3644 (add_tlist): Use it.
3645 (merge_tlist): Use it.
3646 (warn_for_collisions_1): Likewise.
3647 (warning_candidate_p): Accept more candidates.
3648 (verify_tree): A warning candidate can be an expression. Use
3651 2009-04-21 Ben Elliston <bje@au.ibm.com>
3654 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
3655 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
3656 options. Remove -mcall-solaris documentation.
3658 2009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3661 * doc/invoke.texi (-Wlong-long): Update description.
3662 * c-lex (interpret_integer): Only warn if there was no previous
3663 overflow and -Wlong-long is enabled.
3664 * c-decl.c (declspecs_add_type): Drop redundant flags.
3665 * c.opt (Wlong-long): Init to -1.
3666 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
3667 and front-end warn_long_long. Wlong-long only depends on other
3668 flags if it is uninitialized.
3669 * c-parser.c (disable_extension_diagnostics): warn_long_long is
3670 the same for CPP and FE.
3671 (restore_extension_diagnostics): Likewise.
3673 2009-04-20 Ian Lance Taylor <iant@google.com>
3675 Fix enum conversions which are invalid in C++:
3676 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
3677 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
3678 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
3679 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
3680 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
3681 (dbxout_parms): Likewise.
3682 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
3683 (df_clear_flags): Likewise.
3684 * df-problems.c (df_rd_bb_local_compute_process_def): Change
3685 top_flag parameter to int.
3686 (df_chain_create_bb_process_use): Likewise.
3687 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
3689 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
3690 (df_ref_create_structure, df_def_record_1): Likewise.
3691 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
3692 (df_notes_rescan): Change 0 to VOIDmode in function call.
3693 (df_get_call_refs, df_insn_refs_collect): Likewise.
3694 (df_bb_regs_collect): Likewise.
3695 (df_entry_block_defs_collect): Likewise.
3696 (df_exit_block_uses_collect): Likewise.
3697 * df.h: Update declarations.
3698 * double-int.c (double_int_divmod): Add cast to enum type.
3699 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
3700 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
3701 (based_loc_descr): Likewise.
3702 (loc_descriptor_from_tree_1): Change first_op and second_op to
3703 enum dwarf_location_atom. Add cast to enum type.
3704 * expmed.c (init_expmed): Change 0 to SET in function call.
3705 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
3706 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
3707 (do_store_flag): Likewise.
3708 * fixed-value.h (struct fixed_value): Change mode to enum
3710 * function.c (assign_parms): Change 0 to VOIDmode in function call.
3711 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
3713 (insert_insn_decl, insert_decl, insert_state): Likewise.
3714 (automata_list_finish): Likewise.
3715 * genrecog.c (process_define_predicate): Add cast to enum type.
3716 * gensupport.c (init_predicate_table): Add cast to enum type.
3717 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
3719 (gimple_build_call_1, gimple_build_label): Likewise.
3720 (gimple_build_goto, gimple_build_asm_1): Likewise.
3721 (gimple_build_switch_1, gimple_build_cdt): Likewise.
3722 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
3723 (enum fallback): Rename from enum fallback_t.
3724 (fallback_t): Typedef as int.
3725 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
3726 GSI_SAME_STMT in function call.
3727 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
3729 (setup_reg_class_relations): Likewise.
3730 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
3731 (setup_prohibited_class_mode_regs): Add cast to enum type.
3732 (setup_prohibited_mode_move_regs): Likewise.
3733 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
3734 (record_address_regs): Change i to enum reg_class.
3735 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
3736 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
3737 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
3738 (GET_MODE_2XWIDER_MODE): Likewise.
3739 (GET_CLASS_NARROWEST_MODE): Likewise.
3740 * omp-low.c (expand_omp_for): Add cast to enum type.
3741 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
3742 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
3743 * postreload.c (reload_cse_simplify_operands): Change rclass local
3745 * predict.c (combine_predictions_for_insn): Change best_predictor
3746 and predictor to enum br_predictor.
3747 (combine_predictions_for_bb): Likewise.
3748 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
3749 use SET_PREDICT_EXPR_OUTCOME.
3750 * real.c (real_arithmetic): Change icode to code in function call.
3751 * reginfo.c (init_move_cost): Add casts to enum type.
3752 (init_reg_sets_1, init_fake_stack_mems): Likewise.
3753 * regmove.c (regclass_compatible_p): Change class0 and class1 to
3755 * reload.c (find_valid_class): Add casts to enum type.
3756 (push_reload): Change 0 to NO_REGS in function call.
3757 (find_reloads): Change this_alternative to array of enum
3758 reg_class. Remove some now-unnecessary casts.
3759 (make_memloc): Change 0 to VOIDmode in function call.
3760 * reload1.c (reload): Change 0 to VOIDmode in function call.
3761 (eliminate_regs_1, elimination_effects): Likewise.
3762 (eliminate_regs_in_insn): Likewise.
3763 (emit_input_reload_insns): Add cast to enum type.
3764 (delete_output_reload): Change 0 to VOIDmode in function call.
3765 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
3766 to enum type in function call.
3767 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
3768 (SET_PREDICT_EXPR_OUTCOME): Define.
3769 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
3770 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
3771 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
3772 (dump_function): Likewise.
3773 * tree-dump.h: Update declarations.
3774 * tree-pass.h: Update declarations.
3775 * varasm.c (assemble_integer): Change mclass to enum mode_class.
3776 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
3778 (arm_rtx_costs_1): Correct parenthesization.
3779 (arm_rtx_costs): Add casts to enum type.
3780 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
3781 (vfp_emit_fstmd): Use add_rg_note.
3782 (emit_multi_reg_push, emit_sfm): Likewise.
3783 (thumb_set_frame_pointer): Likewise.
3784 (arm_expand_prologue): Likewise.
3785 (arm_regno_class): Change return type to enum reg_class.
3786 (thumb1_expand_prologue): Use add_reg_note.
3787 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
3788 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
3790 * config/arm/gentune.sh: Add cast to enum type.
3791 * config/arm/arm-tune.md: Rebuild.
3792 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
3793 (ix86_split_fp_branch, predict_jump): Likewise.
3794 (ix86_expand_multi_arg_builtin): Change sub_code from enum
3795 insn_code to enum rtx_code.
3796 (ix86_builtin_vectorized_function): Add cast to enum type.
3797 * config/i386/i386.md (truncdfsf2): Change slot to enum
3799 (truncxf<mode>2, isinf<mode>2): Likewise.
3800 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
3802 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
3803 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
3804 (insert_bundle_state): Change 1 to INSERT in function call.
3805 (ia64_add_bundle_selector_before): Likewise.
3806 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
3807 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
3808 (restore_stack_nonlocal): Likewise.
3809 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
3811 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
3813 (mips_rtx_costs): Likewise.
3814 (mips_override_options): Add casts to enum type.
3815 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
3817 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
3818 (store_reg, set_reg_plus_d): Likewise.
3819 (hppa_expand_prologue, hppa_profile_hook): Likewise.
3820 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
3822 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
3824 (emit_unlikely_jump): Use add_reg_note.
3825 (rs6000_emit_allocate_stack): Likewise.
3826 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
3827 (output_toc): Change 1 to INSERT in function call.
3828 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
3829 (rs6000_initialize_trampoline): Likewise.
3830 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
3832 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
3833 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
3834 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
3835 (save_gprs): Use add_reg_note.
3836 (s390_emit_prologue): Likewise.
3837 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
3838 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
3839 (sparc_fold_builtin): Add cast to enum type.
3840 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
3842 (spu_expand_prologue): Use add_reg_note.
3843 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
3845 2009-04-20 Ian Lance Taylor <iant@google.com>
3847 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
3848 (c_parser_postfix_expression_after_primary): Get VEC for list of
3849 arguments. Get original types of arguments. Call
3850 build_function_call_vec.
3851 (cached_expr_list_1, cached_expr_list_2): New static variables.
3852 (c_parser_expr_list): Change return type to VEC *. Add
3853 p_orig_types parameter. Change all callers.
3854 (c_parser_release_expr): New static function.
3855 (c_parser_vec_to_tree_list): New static function.
3856 * c-typeck.c (build_function_call): Rewrite to build a VEC and
3857 call build_function_call_vec.
3858 (build_function_call_vec): New function, based on old
3859 build_function_call.
3860 (convert_arguments): Remove nargs and argarray parameters. Change
3861 values to a VEC. Add origtypes parameter.
3862 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
3863 (convert_for_assignment): Add origtype parameter. Change all
3864 callers. If warn_cxx_compat, check for conversion to an enum
3865 type when calling a function.
3866 (store_init_value): Add origtype parameter. Change all callers.
3867 (digest_init): Likewise.
3868 (struct init_node): Add origtype field.
3869 (add_pending_init): Add origtype parameter. Change all callers.
3870 (output_init_element): Likewise.
3871 (output_pending_init_elements): Pass origtype from init_node to
3872 output_init_element.
3873 (process_init_element): Pass origtype from c_expr to
3874 output_init_element.
3875 (c_finish_return): Add origtype parameter. Change all callers.
3876 * c-common.c (sync_resolve_size): Change params to VEC *. Change
3878 (sync_resolve_params): Likewise.
3879 (sync_resolve_return): Change params to first_param. Change caller.
3880 (resolve_overloaded_builtins): Change params to VEC *. Change
3881 callers. Save first parameter around call to build_function_call_vec.
3882 * c-decl.c (finish_decl): Add origtype parameter. Change all
3883 callers. Call build_function_call_vec rather than
3884 build_function_call for cleanup.
3885 * c-tree.h: Update declarations.
3886 * c-common.h: Update declarations.
3887 * stub-objc.c (objc_rewrite_function_call): Change parameter from
3888 params to first_param.
3889 * target.h (struct gcc_target): Change resolve_overloaded_builtin
3890 params parameter from tree to void *.
3891 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3892 Change arglist parameter to have type void *, and to be a pointer
3894 * config/rs6000/rs6000-protos.h
3895 (altivec_resolve_overloaded_builtin): Update declaration.
3896 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
3897 fnargs parameter to have type void *, and to be a pointer to a
3898 VEC. Call build_function_call_vec instead of
3899 build_function_call.
3900 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
3902 2009-04-20 Joey Ye <joey.ye@intel.com>
3903 Xuepeng Guo <xuepeng.guo@intel.com>
3904 H.J. Lu <hongjiu.lu@intel.com>
3906 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
3908 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
3909 (IX86_LEA_PRIORITY): Likewise.
3910 (distance_non_agu_define): New function.
3911 (distance_agu_use): Likewise.
3912 (ix86_lea_for_add_ok): Likewise.
3913 (ix86_dep_by_shift_count): Likewise.
3915 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
3916 should split for LEA.
3918 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
3920 (ix86_dep_by_shift_count): Likewise.
3922 2009-04-20 Richard Guenther <rguenther@suse.de>
3924 * expr.c (handled_component_p): Move ...
3925 * tree.h (handled_component_p): ... here.
3926 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
3927 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
3928 and REALPART_EXPR to be in one group.
3930 2009-04-20 Richard Guenther <rguenther@suse.de>
3932 * basic-block.h (get_all_dominated_blocks): Declare.
3933 * dominance.c (get_all_dominated_blocks): New function.
3934 * tree-cfg.c (get_all_dominated_blocks): Remove.
3935 (remove_edge_and_dominated_blocks): Adjust.
3936 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
3937 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
3938 instead of recursing.
3940 2009-04-20 Doug Kwan <dougkwan@google.com>
3942 * cgraph.h (cgraph_node_ptr): New type for vector functions.
3943 (struct cgraph_node_set_def): New type.
3944 (cgraph_node_set) New type. Also declare vector functions.
3945 (struct cgraph_node_set_element_def): New type.
3946 (cgraph_node_set_element): Ditto.
3947 (cgraph_node_set_iterator): New iterator type.
3948 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
3949 cgraph_node_set_remove, dump_cgraph_node_set,
3950 debug_cgraph_node_set): New prototypes.
3951 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
3952 cgraph_node_set_size): New inlines.
3953 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
3955 (struct ipa_opt_pass): Add struct cgraph_node_set_def
3956 argument to function 'write_summary'.
3957 * ipa.c: Include ggc.h.
3958 (hash_cgraph_node_set_element,
3959 eq_cgraph_node_set_element, cgraph_node_set_new,
3960 cgraph_node_set_add, cgraph_node_set_remove,
3961 cgraph_node_set_find, dump_cgraph_node_set,
3962 debug_cgraph_node_set): New functions.
3963 * Makefile.in (ipa.o): Add dependency on GGC_H.
3965 2009-04-20 Ira Rosen <irar@il.ibm.com>
3967 PR tree-optimization/39675
3968 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
3969 check of the return code of vect_schedule_slp. Check that
3970 stmt_vec_info still exists for the statement, before checking its
3973 2009-04-20 Michael Matz <matz@suse.de>
3975 * Makefile.in (generated_files): Take out $(simple_generated_c).
3977 2009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
3979 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
3980 (UINTPTR_TYPE): Likewise.
3982 2009-04-19 Joseph Myers <joseph@codesourcery.com>
3985 * c-typeck.c (digest_init): Check for initializing an array with a
3988 2009-04-19 Joseph Myers <joseph@codesourcery.com>
3991 * c-semantics.c (pop_stmt_list): Propagate
3992 STATEMENT_LIST_HAS_LABEL to parent statement list.
3994 2009-04-19 Adam Nemet <anemet@caviumnetworks.com>
3996 * config/mips/mips.h (mips_tune_attr): New macro.
3997 * config/mips/mips.md (cpu): Use it.
3999 2009-04-19 Joseph Myers <joseph@codesourcery.com>
4002 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
4005 2009-04-19 Diego Novillo <dnovillo@google.com>
4007 * toplev.c (compile_file): Move call to coverage_finish ...
4008 * cgraphunit.c (ipa_passes): ... here.
4009 Call cgraph_process_new_functions.
4010 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
4011 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
4013 2009-04-19 Jan Hubicka <jh@suse.cz>
4015 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
4017 (dump_cgraph_node): Dump can throw external flag.
4018 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
4020 2009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
4024 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
4025 * common.opt (Wlogical-op): Move from here...
4026 * c.opt (Wlogical-op): ... to here.
4027 * c-typeck.c (parser_build_binary_op): Update call to
4028 warn_logical_operator.
4029 * c-opts.c (c_common_post_options): Enable warn_logical_op with
4031 * c-common.c (warn_logical_op): Update.
4032 * c-common.h (warn_logical_op): Update declaration.
4034 2009-04-19 Eric Botcazou <ebotcazou@adacore.com>
4036 * tree.c (protected_set_expr_location): Fix formatting.
4038 2009-04-18 Joseph Myers <joseph@codesourcery.com>
4041 * c-typeck.c (readonly_warning): new.
4042 (build_unary_op, build_modify_expr): Use readonly_warning for
4043 storing into something readonly but not const-qualified.
4045 2009-04-18 Joseph Myers <joseph@codesourcery.com>
4048 * c-typeck.c (build_unary_op): Check for taking address of
4049 expression of type void.
4051 2009-04-18 Joseph Myers <joseph@codesourcery.com>
4054 * c-typeck.c (build_function_call): Check for calling a function
4055 with qualified void return types. Call require_complete_type when
4058 2009-04-18 Jan Hubicka <jh@suse.cz>
4060 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
4062 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
4063 can_throw_external flag.
4064 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
4065 * ipa-pure-const.c (ignore_edge): New function.
4066 (propagate): Compute order for NOTHROW computation; set NOTHROWs
4067 only over can_throw_external edges.
4068 (local_pure_const): Add nothrow flag.
4069 * ipa-utils.c (searchc): Add ignore_edge callback.
4070 (ipa_utils_reduced_inorder): Add ignore_edge callback.
4071 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
4072 (set_nothrow_function_flags): Update cgraph.
4073 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
4075 2009-04-18 Richard Guenther <rguenther@suse.de>
4078 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
4079 (fold_stmt): ... this and ...
4080 (fold_stmt_inplace): ... this.
4081 (fold_stmt_1): Fold references in calls and asms.
4082 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
4084 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
4086 * tree-vrp.c (ssa_name_nonzero_p): Remove.
4087 * tree.h: Remove the prototype for ssa_name_nonzero_p.
4089 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
4091 * tree.c (function_args_count): Remove.
4092 * tree.h: Remove the prototype for function_args_count.
4094 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
4096 * tree-iterator.c (expr_only): Remove.
4097 * tree.h: Remove the prototype for expr_only.
4099 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
4101 * reginfo.c (cannot_change_mode_set_regs): Remove.
4102 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
4104 2009-04-08 Anatoly Sokolov <aesok@post.ru>
4106 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
4107 whether operands 0 and 1 overlaps.
4109 2009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
4112 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
4113 pointer. Use warning_at instead of warning.
4114 (search_for_addr_array): Likewise.
4115 (check_array_bounds): Likewise.
4116 (check_all_array_refs): Check that the incoming edge is not in the
4117 list of edges to be removed.
4118 (check_all_array_refs): Avoid the temporal pointer.
4119 (vrp_visit_cond_stmt): Fix typo.
4120 (simplify_switch_using_ranges): Handle the case where the switch
4121 index is an integer constant.
4123 2009-04-18 Adam Nemet <anemet@caviumnetworks.com>
4125 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
4127 2009-04-18 Kazu Hirata <kazu@codesourcery.com>
4129 * doc/extend.texi, doc/invoke.texi: Fix typos.
4131 2009-04-17 Cary Coutant <ccoutant@google.com>
4133 * tree-flow-inline.h (get_lineno): Fix inverted test.
4135 2009-04-17 Diego Novillo <dnovillo@google.com>
4137 * tree-ssa-pre.c (create_expression_by_pieces): Remove
4138 assertion for AVAIL_OUT.
4140 2009-04-17 Mike Frysinger <vapier@gentoo.org>
4143 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
4144 * config/sh/linux-atomic.asm: Likewise.
4146 2009-04-17 Diego Novillo <dnovillo@google.com>
4148 * except.c (debug_eh_tree): New.
4149 (struct eh_region, struct eh_status): Move ...
4150 * except.h: ... here.
4151 (add_type_for_runtime): Declare extern.
4152 (lookup_type_for_runtime): Likewise.
4153 (debug_eh_tree): Declare.
4154 * Makefile.in (GTFILES): List except.h before except.c
4156 2009-04-17 Diego Novillo <dnovillo@google.com>
4158 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
4159 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
4160 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
4161 (find_vars_r): ... here.
4162 * tree-flow.h (find_referenced_vars_in): Declare.
4163 * tree-ssa-pre.c (create_expression_by_pieces): Assert
4164 that AVAIL_OUT exists for BLOCK.
4165 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
4166 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
4167 (tree-parloops.o): Likewise.
4169 2009-04-17 Simon Baldwin <simonb@google.com>
4171 * toplev.c (default_tree_printer): Add handling for %E format.
4173 2009-04-17 Diego Novillo <dnovillo@google.com>
4175 * tree-pretty-print.c (dump_generic_node): Add break after
4176 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
4177 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
4178 FUNCTION_TYPE together. Call print_struct_decl when printing
4179 structures and TDF_SLIM is not given.
4180 (print_struct_decl): Fix logic for detecting recursion.
4182 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
4185 * gcc.c (create_at_file): New.
4186 (compile_input_file_p): New.
4187 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
4188 * main.c (main): Update call to toplev_main.
4189 * toplev.c (toplev_main): Change signature. Call expandargv.
4190 * toplev.h (toplev_main): Change signature.
4192 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
4194 * dwarf2out.c (field_byte_offset): Use the type size as the field size
4195 if the latter is not constant.
4197 2009-04-17 David Edelsohn <edelsohn@gnu.org>
4199 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
4201 2009-04-17 Eric Botcazou <ebotcazou@adacore.com>
4203 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
4204 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
4206 2009-04-17 Richard Guenther <rguenther@suse.de>
4208 * tree-ssa-structalias.c (get_constraint_for_component_ref):
4209 Handle component references view-converting an invariant address.
4211 2009-04-17 Adam Nemet <anemet@caviumnetworks.com>
4213 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
4214 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
4215 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
4216 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
4217 Use @deftypevr rather than @deftypevar.
4219 2009-04-17 Richard Guenther <rguenther@suse.de>
4221 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
4222 (get_prop_source_stmt): Likewise.
4223 (can_propagate_from): Likewise.
4225 2009-04-17 Andrew Stubbs <ams@codesourcery.com>
4227 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
4228 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
4229 (--with-multilib-list): Add default value.
4230 * configure: Regenerate.
4231 * Makefile.in (TM_ENDIAN_CONFIG): Define.
4232 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
4233 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
4234 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
4235 Don't add default cpu to multilib list unnecessarily, but do enable
4236 the relevant compiler option..
4237 Add support for --with-multilib-list=<blank> and
4238 --with-multilib-list=!<somelib> to supress unwanted multilibs.
4239 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
4240 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
4241 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
4243 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
4244 (MULTILIB_OSDIRNAMES): New variable.
4245 * config/sh/t-1e: Delete file.
4246 * config/sh/t-mlib-sh1: Delete file.
4247 * config/sh/t-mlib-sh2: Delete file.
4248 * config/sh/t-mlib-sh2a: Delete file.
4249 * config/sh/t-mlib-sh2a-nofpu: Delete file.
4250 * config/sh/t-mlib-sh2a-single: Delete file.
4251 * config/sh/t-mlib-sh2a-single-only: Delete file.
4252 * config/sh/t-mlib-sh2e: Delete file.
4253 * config/sh/t-mlib-sh3e: Delete file.
4254 * config/sh/t-mlib-sh4: Delete file.
4255 * config/sh/t-mlib-sh4-nofpu: Delete file.
4256 * config/sh/t-mlib-sh4-single: Delete file.
4257 * config/sh/t-mlib-sh4-single-only: Delete file.
4258 * config/sh/t-mlib-sh4a: Delete file.
4259 * config/sh/t-mlib-sh4a-nofpu: Delete file.
4260 * config/sh/t-mlib-sh4a-single: Delete file.
4261 * config/sh/t-mlib-sh4a-single-only: Delete file.
4262 * config/sh/t-mlib-sh4al: Delete file.
4263 * config/sh/t-mlib-sh5-32media: Delete file.
4264 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
4265 * config/sh/t-mlib-sh5-64media: Delete file.
4266 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
4267 * config/sh/t-mlib-sh5-compact: Delete file.
4268 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
4269 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
4270 * doc/install.texi (Options specification): Add
4271 --with-multilib-list and --with-endian.
4273 2009-04-17 Rafael Avila de Espindola <espindola@google.com>
4275 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
4277 (OBJS-common): Add plugin-version.o.
4278 (plugin-version.o): New.
4279 * gcc-plugin.h (plugin_gcc_version): New.
4280 (plugin_default_version_check): New.
4281 (plugin_init_func, plugin_init): Add version argument.
4282 * plugin-version.c: New.
4283 * plugin.c (str_plugin_gcc_version_name): New.
4284 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
4285 pass it to the init function.
4286 (plugin_default_version_check): New.
4288 2009-04-17 Richard Guenther <rguenther@suse.de>
4290 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
4291 for decl-vs-decl disambiguation.
4293 2009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
4295 * config/s390/s390.h (s390_tune_attr): New macro definition.
4296 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
4298 2009-04-17 Richard Guenther <rguenther@suse.de>
4300 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
4301 (fold_stmt_r): Likewise.
4302 (maybe_fold_reference): New function.
4303 (fold_gimple_assign): Handle cases fold_stmt_r did.
4304 (fold_stmt): Do not use fold_stmt_r.
4305 (fold_stmt_inplace): Likewise.
4307 2009-04-17 Richard Guenther <rguenther@suse.de>
4309 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
4310 (record_equivalences_from_stmt): Remove useless checks and
4312 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
4313 the type is already suitable.
4315 2009-04-17 Paolo Bonzini <bonzini@gnu.org>
4317 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
4319 2009-04-17 Uros Bizjak <ubizjak@gmail.com>
4321 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
4322 (CMPtype): Define as __gcc_CMPtype.
4324 2009-04-17 Aurelien Jarno <aurelien@aurel32.net>
4326 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
4327 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
4329 2009-04-17 Richard Guenther <rguenther@suse.de>
4331 PR tree-optimization/39746
4332 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
4333 special-casing for builtins and static variable use/def.
4334 (call_may_clobber_ref_p_1): Likewise.
4336 2009-04-16 Ian Lance Taylor <iant@google.com>
4338 * df.h: Include "timevar.h".
4339 (struct df_problem): Change tv_id field to timevar_id_t.
4340 * tree-pass.h: Include "timevar.h".
4341 (struct opt_pass): Change tv_id field to timevar_id_t.
4342 * timevar.h (timevar_id_t): Define TV_NONE.
4343 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
4344 TV_NONE rather than tv_id != 0.
4345 (execute_one_pass): Likewise.
4346 * Makefile.in (DF_H): Add $(TIMEVAR_H).
4347 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
4348 dependencies to $(TREE_PASS_H).
4349 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
4351 (pass_branch_target_load_optimize2): Likewise.
4352 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
4353 (pass_outof_cfg_layout_mode): Likewise.
4354 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
4355 (pass_rebuild_cgraph_edges): Likewise.
4356 (pass_remove_cgraph_callee_edges): Likewise.
4357 * df-core.c (pass_df_initialize_opt): Likewise.
4358 (pass_df_initialize_no_opt): Likewise.
4359 (pass_df_finish): Likewise.
4360 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
4361 * except.c (pass_set_nothrow_function_flags): Likewise.
4362 (pass_convert_to_eh_region_ranges): Likewise.
4363 * final.c (pass_compute_alignments): Likewise.
4364 * function.c (pass_instantiate_virtual_regs): Likewise.
4365 (pass_init_function): Likewise.
4366 (pass_leaf_regs): Likewise.
4367 (pass_match_asm_constraints): Likewise.
4368 * gimple-low.c (pass_lower_cf): Likewise.
4369 (pass_mark_used_blocks): Likewise.
4370 * init-regs.c (pass_initialize_regs): Likewise.
4371 * integrate.c (pass_initial_value_sets): Likewise.
4372 * ira.c (pass_ira): Likewise.
4373 * jump.c (pass_cleanup_barriers): Likewise.
4374 * omp-low.c (pass_expand_omp): Likewise.
4375 (pass_lower_omp): Likewise.
4376 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
4377 * recog.c (pass_split_all_insns): Likewise.
4378 (pass_split_after_reload): Likewise.
4379 (pass_split_before_regstack): Likewise.
4380 (pass_split_before_sched2): Likewise.
4381 (pass_split_for_shorten_branches): Likewise.
4382 * reginfo.c (pass_reginfo_init): Likewise.
4383 (pass_subregs_of_mode_init): Likewise.
4384 (pass_subregs_of_mode_finish): Likewise.
4385 * passes.c (pass_postreload): Likewise.
4386 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
4387 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
4388 (pass_warn_function_return): Likewise.
4389 (pass_warn_function_noreturn): Likewise.
4390 * tree-complex.c (pass_lower_complex): Likewise.
4391 (pass_lower_complex_O0): Likewise.
4392 * tree-if-conv.c (pass_if_conversion): Likewise.
4393 * tree-into-ssa.c (pass_build_ssa): Likewise.
4394 * tree-mudflap.c (pass_mudflap_1): Likewise.
4395 (pass_mudflap_2): Likewise.
4396 * tree-nomudflap.c (pass_mudflap_1): Likewise.
4397 (pass_mudflap_2): Likewise.
4398 * tree-nrv.c (pass_return_slot): Likewise.
4399 * tree-object-size.c (pass_object_sizes): Likewise.
4400 * tree-optimize.c (pass_all_optimizations): Likewise.
4401 (pass_early_local_passes): Likewise.
4402 (pass_all_early_optimizations): Likewise.
4403 (pass_cleanup_cfg): Likewise.
4404 (pass_cleanup_cfg_post_optimizing): Likewise.
4405 (pass_free_datastructures): Likewise.
4406 (pass_free_cfg_annotations): Likewise.
4407 (pass_fixup_cfg): Likewise.
4408 (pass_init_datastructures): Likewise.
4409 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
4410 (pass_late_warn_uninitialized): Likewise.
4411 (pass_update_address_taken): Likewise.
4412 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
4413 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
4414 (pass_cse_sincos): Likewise.
4415 (pass_convert_to_rsqrt): Likewise.
4416 * tree-ssa-structalias.c (pass_build_alias): Likewise.
4417 * tree-stdarg.c (pass_stdarg): Likewise.
4418 * tree-tailcall.c (pass_tail_recursion): Likewise.
4419 (pass_tail_calls): Likewise.
4420 * tree-vect-generic.c (pass_lower_vector): Likewise.
4421 (pass_lower_vector_ssa): Likewise.
4422 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
4424 2009-04-16 Joseph Myers <joseph@codesourcery.com>
4426 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
4428 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
4430 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
4431 logical and signext.
4433 2009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
4436 * config/sh/predicates.md (arith_operand): Check if the operand
4437 of TRUNCATE is a REG.
4439 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
4441 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
4442 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
4444 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
4446 * tree-iterator.c (tsi_split_statement_list_after,
4447 tsi_split_statement_list_before): Remove.
4448 * tree-iterator.h: Remove the prototypes for
4449 tsi_split_statement_list_after and tsi_split_statement_list_before.
4451 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
4453 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
4454 * tree-ssa-propagate.h: Remove the prototype for
4455 stmt_makes_single_load.
4457 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
4459 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
4460 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
4462 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
4464 * tree-iterator.c (EXPR_LAST_BODY): Remove.
4466 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
4468 * except.c (eh_region_outer_p): Remove.
4469 * except.h: Remove the prototype for eh_region_outer_p.
4471 2009-04-16 Kazu Hirata <kazu@codesourcery.com>
4473 * function.c (current_function_assembler_name): Remove.
4474 * function.h: Remove the prototype for
4475 current_function_assembler_name.
4477 2009-04-16 Ian Lance Taylor <iant@google.com>
4479 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
4480 (add_reg_note): Call alloc_reg_note.
4481 * rtl.h (alloc_reg_note): Declare.
4482 * combine.c (try_combine): Use alloc_reg_note.
4483 (recog_for_combine, move_deaths): Likewise.
4484 (distribute_notes): Use alloc_reg_note and add_reg_note.
4485 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
4486 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
4487 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
4489 2009-04-16 Vladimir Makarov <vmakarov@redhat.com>
4491 PR rtl-optimization/39762
4492 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
4493 ira_may_move_out_cost): Add comments about way of their usage.
4494 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
4496 * ira-conflicts.c (process_regs_for_copy): Use function
4497 ira_get_register_move_cost instead of global
4498 ira_register_move_cost.
4500 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
4501 color_pass, move_spill_restore, update_curr_costs): Ditto.
4503 * ira-lives.c (process_single_reg_class_operands): Ditto.
4505 * ira-emit.c (emit_move_list): Ditto.
4507 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
4508 (record_reg_classes): Ditto. Use functions
4509 ira_get_register_move_cost and ira_get_may_move_cost instead of
4510 global vars ira_register_move_cost, ira_may_move_out_cost and
4511 ira_may_move_in_cost.
4512 (record_address_regs): Don't call ira_init_register_move_cost.
4513 Use function ira_get_may_move_cost instead of global
4514 ira_may_move_in_cost.
4515 (process_bb_node_for_hard_reg_moves): Use function
4516 ira_get_register_move_cost instead of global ira_register_move_cost.
4517 (ira_costs): Don't call ira_init_register_move_cost.
4519 2009-04-16 Richard Guenther <rguenther@suse.de>
4521 * tree-cfg.c (verify_gimple_assign_binary):
4522 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
4523 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
4524 (create_general_new_stmt): Note that this function is broken.
4526 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
4528 * common.opt (fhelp): Add Var(help_flag).
4529 * gcc-plugin.h (plugin_info): Add help.
4530 * plugin.c (plugin_name_args): Add help.
4531 (register_plugin_info): Set plugin->help.
4532 (print_help_one_plugin): New.
4533 (print_plugins_help): New.
4534 * plugin.h (print_plugins_help): New.
4535 * toplev.c (toplev_main): Call print_plugins_help if needed.
4537 2009-04-16 Richard Guenther <rguenther@suse.de>
4539 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
4540 (gimple_ior_addresses_taken_1): New function.
4541 (gimple_ior_addresses_taken): Likewise.
4542 * gimple.h (struct gimple_statement_with_ops_base): Remove
4543 addresses_taken member.
4544 (gimple_ior_addresses_taken): Declare.
4545 (gimple_addresses_taken, gimple_addresses_taken_ptr,
4546 gimple_set_addresses_taken): Remove.
4547 * ipa-reference.c (mark_address): New function.
4548 (scan_stmt_for_static_refs): Use it for marking addresses taken.
4549 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
4550 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
4551 (gimple_add_to_addresses_taken): Remove.
4552 (get_tmr_operands): Call mark_address_taken.
4553 (get_asm_expr_operands): Likewise.
4554 (get_expr_operands): Likewise.
4555 (build_ssa_operands): Do not clear the addresses_taken bitmap.
4556 (free_stmt_operands): Do not free it.
4557 * tree-ssa.c (delete_tree_ssa): Likewise.
4558 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
4560 2009-04-16 Richard Guenther <rguenther@suse.de>
4562 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
4563 (walk_stmt_load_store_ops): Likewise.
4564 * gimple.c (get_base_loadstore): New function.
4565 (walk_stmt_load_store_addr_ops): Likewise.
4566 (walk_stmt_load_store_ops): Likewise.
4567 * ipa-pure-const.c (check_op): Simplify.
4568 (check_load, check_store): New functions.
4569 (check_stmt): Use walk_stmt_load_store_ops.
4570 * ipa-reference.c (mark_load): Adjust signature.
4571 (mark_store): Likewise.
4572 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
4574 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
4576 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
4578 * opts.c (common_handle_option): Don't call print_version.
4579 * plugin.c (plugin_name_args): Add version.
4580 (register_plugin_info): New.
4581 (register_callback): Handle PLUGIN_INFO.
4582 (try_init_one_plugin): New.
4583 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
4585 (finalize_one_plugin): New.
4586 (finalize_plugins): New.
4587 (print_one_plugin): New.
4588 (print_plugins_versions): New.
4589 * plugin.h (print_plugins_versions): New.
4590 (finalize_plugins): New.
4591 * toplev.c (compile_file): Don't call initialize_plugins.
4592 (print_version): Call print_plugins_versions.
4593 (toplev_main): Call initialize_plugins. Print version if needed.
4594 Call finalize_plugins.
4596 2009-04-16 Rafael Avila de Espindola <espindola@google.com>
4598 * common.opt (fversion): New.
4599 * gcc.c (print_version): New.
4600 (process_command): Don't print the version. Just set print_version.
4601 (main): Print version. Call subprocesses if print_version and
4602 verbose_flag are set.
4603 * opts.c (common_handle_option): Handle OPT_fversion.
4605 2009-04-16 Richard Guenther <rguenther@suse.de>
4606 Ira Rosen <irar@il.ibm.com>
4608 PR tree-optimization/39698
4609 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
4610 type of the reduction variable. Only generate the def if
4613 * omp-low.c (expand_omp_for_generic): When converting to a pointer
4614 make sure to first convert to an integer of the same precision.
4615 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
4616 the type of the evolution correctly in computing the new
4617 induction variable base.
4619 2009-04-16 Richard Guenther <rguenther@suse.de>
4622 * tree-cfg.c (make_blocks): Split statements with to-be
4623 abnormal SSA names on the lhs.
4625 2009-04-16 Paolo Bonzini <bonzini@gnu.org>
4627 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
4628 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
4629 * c-typeck.c (really_start_incremental_init): Likewise.
4630 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
4631 (TARGET_INITIALIZER): Remove it.
4632 * target.h (struct target): Remove vector_opaque_p.
4633 * tree.c (build_opaque_vector_type): New.
4634 * tree.h (TYPE_VECTOR_OPAQUE): New.
4635 (build_opaque_vector_type): Declare.
4636 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
4637 * config/rs6000/rs6000.c (build_opaque_vector_type,
4638 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
4639 (rs6000_init_builtins): Use build_opaque_vector_type for
4640 opaque_V4SI_type_node.
4642 2009-04-15 Catherine Moore <clm@codesourcery.com>
4644 * debug.h (set_name): Declare.
4645 * dwarf2out.c (dwarf2out_set_name): Declare.
4646 (dwarf2_debug_hooks): Add set_name.
4647 (find_AT_string): New.
4648 (add_AT_string): Call find_AT_string.
4649 (dwarf2out_set_name): New.
4650 * cp/decl.c (grokdeclarator): Call set_name.
4651 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
4652 * debug.c (do_nothing_debug_hooks): Likewise.
4653 * dbxout.c (dbx_debug_hooks): Likewise.
4654 * sdbout.c (sdb_debug_hooks): Likewise.
4656 2009-04-15 Michael Eager <eager@eagercon.com>
4658 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
4659 reg for single-precision FPU.
4660 * config/rs6000/rs6000.md (movsi_internal1): Only for
4662 (movsi_internal1_single): New. Add pattern to move SI values to/from
4663 single-precision FP regs.
4665 2009-04-15 Richard Guenther <rguenther@suse.de>
4667 * omp-low.c (lower_rec_input_clauses): Build correct address
4669 (expand_omp_for_generic): Fix multiplication type.
4670 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
4671 (generate_memset_zero): Fix types.
4672 * tree-profile.c (prepare_instrumented_value): Correctly
4675 2009-04-15 Ian Lance Taylor <iant@google.com>
4677 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
4678 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
4679 for -Wall and for -Wc++-compat.
4680 (c_common_post_options): For C++, set warn_enum_compare if not
4682 * c-tree.h (struct c_expr): Add field original_type.
4683 (build_external_ref): Update declaration.
4684 * c-parser.c (c_parser_braced_init): Set original_type.
4685 (c_parser_initelt): Likewise.
4686 (c_parser_expr_no_commas): Likewise.
4687 (c_parser_conditional_expression): Likewise.
4688 (c_parser_cast_expression): Likewise.
4689 (c_parser_unary_expression): Likewise. Pull setting of
4690 original_code to top of function.
4691 (c_parser_sizeof_expression): Set original_type.
4692 (c_parser_alignof_expression): Likewise.
4693 (c_parser_postfix_expression): Likewise. Pull setting of
4694 original_code to top of function.
4695 (c_parser_postfix_expression_after_paren_type): Set original_type.
4696 (c_parser_postfix_expression_after_primary): Likewise.
4697 (c_parser_expression): Likewise.
4698 * c-typeck.c (build_external_ref): Add type parameter. Change all
4700 (c_expr_sizeof_expr): Set original_type field.
4701 (parser_build_unary_op): Likewise.
4702 (parser_build_binary_op): Likewise. Optionally warn about
4703 comparisons of enums of different types.
4704 (digest_init): Set original_type field.
4705 (really_start_incremental_init): Likewise.
4706 (push_init_level, pop_init_level): Likewise.
4707 * doc/invoke.texi (Warning Options): -Wenum-compare now
4710 2009-04-15 Richard Guenther <rguenther@suse.de>
4712 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
4713 out a necessary conversion.
4714 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
4715 names we didn't value number.
4716 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
4718 2009-04-15 Richard Guenther <rguenther@suse.de>
4720 PR tree-optimization/39764
4721 * tree-ssa-ccp.c (get_value): Canonicalize value with
4722 canonicalize_float_value.
4724 2009-04-15 Jan Hubicka <jh@suse.cz>
4726 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
4727 Wrong version of patch.
4729 2009-04-15 Jan Hubicka <jh@suse.cz>
4731 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
4733 2009-04-15 Nathan Sidwell <nathan@codesourcery.com>
4735 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
4736 our distinct integral and vector types.
4738 2009-04-15 Rafael Avila de Espindola <espindola@google.com>
4740 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
4741 * init.c (build_vtbl_address): Remove call to assemble_external.
4743 2009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4745 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
4746 output for other floating point modes.
4748 2009-04-14 Diego Novillo <dnovillo@google.com>
4750 * diagnostic.c (diagnostic_report_diagnostic): Do not
4751 warn about loaded plugins for DK_ERROR and DK_WARNING.
4752 * c-decl.c (declspecs_add_type): Move call to
4753 invoke_plugin_callbacks ...
4754 * c-parser.c (c_parser_declspecs): ... here.
4755 * plugin.c (dump_active_plugins): Tidy output.
4757 2009-04-14 Diego Novillo <dnovillo@google.com>
4758 Le-Chun Wu <lcwu@google.com>
4760 * configure.ac: Add --enable-plugin support.
4761 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
4762 * Makefile.in (PLUGIN_H): Define.
4763 Export ENABLE_PLUGIN and GMPINC to site.exp.
4764 Add PLUGINLIBS to link command.
4765 Add/modify dependencies for plugin.o and files including plugin.h.
4767 * config.in: Regenerate.
4769 * opts.c (common_handle_option): Handle OPT_fplugin_ and
4772 2009-04-14 Le-Chun Wu <lcwu@google.com>
4774 * tree-pass.h (register_one_dump_file): Add a prototype for
4775 register_one_dump_file.
4776 * toplev.c (compile_file): Call initialize_plugins.
4777 (do_compile): Call invoke_plugin_callbacks.
4778 (toplev_main): Call invoke_plugin_callbacks.
4779 * common.opt: Add -fplugin= and -fplugin-arg-.
4780 * gcc-plugin.h: New public header file for plugins to include.
4781 * plugin.c: New source file.
4782 * plugin.h: New internal header file.
4783 * passes.c (register_one_dump_file): Make it external.
4785 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
4787 2009-04-14 Diego Novillo <dnovillo@google.com>
4789 * doc/plugins.texi: New.
4790 * doc/gccint.texi: Add reference to Plugins chapter.
4791 * doc/invoke.texi: Document -fplugin and -fplugin-arg
4792 * diagnostic.c (diagnostic_report_diagnostic): Warn about
4793 loaded plugins, if any.
4794 * timevar.def (TV_PLUGIN_INIT): Define.
4795 (TV_PLUGIN_RUN): Define.
4796 * plugin.c: Include timevar.h
4797 (plugins_active_p): New.
4798 (dump_active_plugins): New.
4799 (debug_active_plugins): New.
4801 2009-04-14 Joseph Myers <joseph@codesourcery.com>
4803 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
4805 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
4807 2009-04-14 Kazu Hirata <kazu@codesourcery.com>
4809 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
4810 the same as a minus without a shift.
4812 2009-04-14 Nick Clifton <nickc@redhat.com>
4814 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
4815 comparisons with small integers will always produce a short
4818 2009-04-14 Rafael Avila de Espindola <espindola@google.com>
4821 2008-12-19 Diego Novillo <dnovillo@google.com>
4823 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
4825 2009-04-14 Richard Guenther <rguenther@suse.de>
4827 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
4829 (verify_gimple_assign_binary): Likewise. Handle shifts and
4831 (verify_gimple_phi): Print the mismatched argument position.
4832 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
4834 (vect_update_init_of_dr): Likewise.
4835 * matrix-reorg.c (transform_access_sites): Do what the
4837 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
4839 2009-04-13 Michael Eager <eager@eagercon.com>
4841 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
4842 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
4843 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
4844 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
4845 remove duplicate config
4847 2009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4849 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
4850 file_name:line_number type locator of the call site.
4852 2009-04-13 Vladimir Makarov <vmakarov@redhat.com>
4854 * genautomata.c: Put blank after comma.
4855 (automaton_decls): New.
4856 (struct unit_usage): Add comments to member next.
4857 (store_alt_unit_usage): Keep the list ordered.
4858 (unit_present_on_list_p, equal_alternatives_p): New.
4859 (check_regexp_units_distribution): Check units distribution
4860 correctness correctly.
4861 (main): Don't write automata if error is found. Return correct
4864 * config/m68k/cf.md (cfv4_ds): Remove.
4865 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
4866 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
4868 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
4869 power4-load-ext, power4-store, power4-store-update,
4870 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
4871 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
4872 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
4873 power4-sqrt, power4-isync): Modify reservation to make correct
4874 unit distribution to automata.
4876 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
4877 power5-store-update, power5-two, power5-three, power5-lmul,
4878 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
4880 2009-04-13 Adam Nemet <anemet@caviumnetworks.com>
4882 * except.c (pass_set_nothrow_function_flags): Set name and add
4884 (set_nothrow_function_flags): Mention in the dump file when
4885 changing a function to nothrow.
4887 2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
4890 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
4891 instead of unsigned long.
4893 2009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4895 * config/arm/arm.c (return_used_this_function): Remove.
4896 (arm_output_function_prologue): Remove use of
4897 return_used_this_function.
4898 (output_return_instruction): Replace use of
4899 return_used_this_function
4900 by cfun->machine->return_used_this_function.
4901 (arm_output_epilogue): Likewise.
4902 (arm_output_function_epilogue): Likewise.
4903 (thumb_unexpanded_epilogue): Likewise.
4904 * config/arm/arm.h (struct machine_function):
4905 New member return_used_this_function.
4907 2009-04-12 Mark Mitchell <mark@codesourcery.com>
4909 * doc/install.texi: Correct description of default directory for
4910 --with-gxx-include-dir.
4912 2009-04-12 Eric Botcazou <ebotcazou@adacore.com>
4914 * fold-const.c (build_range_check): Properly deal with enumeral and
4917 2009-04-12 Steven Bosscher <steven@gcc.gnu.org>
4919 * doc/invoke.texi (max_gcse_passes): Remove documentation.
4920 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
4921 * params.h (MAX_GCSE_PASSES): Remove.
4922 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
4923 in sequence. Remove ability to run multiple passes.
4924 (bypass_jumps): Report run as third CPROP pass.
4926 2009-04-12 Adam Nemet <anemet@caviumnetworks.com>
4929 * except.c (can_throw_external): Look at each insn in a SEQUENCE
4930 when deciding whether the whole SEQUENCE can throw.
4932 2009-04-12 Uros Bizjak <ubizjak@gmail.com>
4935 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
4936 offseted label references.
4938 2009-04-11 Jan Hubicka <jh@suse.cz>
4940 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
4942 2009-04-11 Richard Guenther <rguenther@suse.de>
4945 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
4946 return variables as TREE_ADDRESSABLE.
4948 2009-04-11 Richard Guenther <rguenther@suse.de>
4950 PR tree-optimization/39713
4951 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
4952 reference trees have SSA_NAME operands.
4954 2009-04-11 Richard Guenther <rguenther@suse.de>
4957 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
4958 address expressions.
4960 2009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
4962 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
4963 match changes in Cygwin 1.7
4964 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
4965 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
4967 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
4969 PR tree-optimization/39701
4970 * doc/invoke.texi (Optimization Options): Document change in
4971 meaning and initialization of -fdelete-null-pointer-checks.
4973 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
4976 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
4978 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
4981 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
4983 2009-04-10 Chao-ying Fu <fu@mips.com>
4985 * doc/tm.texi (Instruction Output): Document
4986 TARGET_ASM_FINAL_POSTSCAN_INSN.
4987 * target.h (final_postscan_insn): New field in asm_out.
4988 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
4989 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
4990 * final.c (final_scan_insn): Call
4991 targetm.asm_out.final_postscan_insn after outputting
4992 an asm macro and a normal instruction.
4994 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
4995 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
4996 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
4997 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
4998 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
5000 2009-04-10 Paolo Bonzini <bonzini@gnu.org>
5003 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
5004 variables as non-NULL even with -fdelete-null-pointer-checks.
5006 2009-04-10 H.J. Lu <hongjiu.lu@intel.com>
5008 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
5010 2009-04-09 H.J. Lu <hongjiu.lu@intel.com>
5013 * config/i386/i386.c (classify_argument): Handle SCmode with
5014 (bit_offset % 64) != 0.
5016 2009-04-09 Sandra Loosemore <sandra@codesourcery.com>
5018 * doc/invoke.texi (Optimize Options): Add cross-reference to
5019 -Q --help=optimizers examples.
5021 2009-04-10 Ben Elliston <bje@au.ibm.com>
5024 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
5025 regalign for the reg == fpr and TDmode case.
5027 2009-04-09 David Ayers <ayers@fsfe.org>
5030 * objc/objc-act.c (warn_with_method): Remove helper function.
5031 (check_duplicates): Call warning and inform directly.
5032 (really_start_method): Likewise.
5034 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
5036 * expmed.c (expand_divmod): Always use a comparison for a division
5037 by a large unsigned integer.
5039 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
5040 for things others than variables or functions as nonzero.
5042 2009-04-09 Nick Clifton <nickc@redhat.com>
5044 * unwind-compat.c: Change copyright header to refer to version
5045 3 of the GNU General Public License with version 3.1 of the
5046 GCC Runtime Library Exception and to point readers at the
5047 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
5048 * config/alpha/crtfastmath.c: Likewise.
5049 * config/alpha/linux-unwind.h: Likewise.
5050 * config/alpha/qrnnd.asm: Likewise.
5051 * config/alpha/vms-crt0-64.c: Likewise.
5052 * config/alpha/vms-crt0.c: Likewise.
5053 * config/alpha/vms-dwarf2.asm: Likewise.
5054 * config/alpha/vms-dwarf2eh.asm: Likewise.
5055 * config/alpha/vms-psxcrt0-64.c: Likewise.
5056 * config/alpha/vms-psxcrt0.c: Likewise.
5057 * config/alpha/vms_tramp.asm: Likewise.
5058 * config/arc/initfini.c: Likewise.
5059 * config/arc/lib1funcs.asm: Likewise.
5060 * config/arm/bpabi-v6m.S: Likewise.
5061 * config/arm/bpabi.S: Likewise.
5062 * config/arm/bpabi.c: Likewise.
5063 * config/arm/crti.asm: Likewise.
5064 * config/arm/crtn.asm: Likewise.
5065 * config/arm/ieee754-df.S: Likewise.
5066 * config/arm/ieee754-sf.S: Likewise.
5067 * config/arm/lib1funcs.asm: Likewise.
5068 * config/arm/libunwind.S: Likewise.
5069 * config/arm/linux-atomic.c: Likewise.
5070 * config/arm/mmintrin.h: Likewise.
5071 * config/arm/pr-support.c: Likewise.
5072 * config/arm/unaligned-funcs.c: Likewise.
5073 * config/arm/unwind-arm.c: Likewise.
5074 * config/arm/unwind-arm.h: Likewise.
5075 * config/avr/libgcc.S: Likewise.
5076 * config/bfin/crti.s: Likewise.
5077 * config/bfin/crtlibid.s: Likewise.
5078 * config/bfin/crtn.s: Likewise.
5079 * config/bfin/lib1funcs.asm: Likewise.
5080 * config/bfin/linux-unwind.h: Likewise.
5081 * config/cris/arit.c: Likewise.
5082 * config/cris/cris_abi_symbol.c: Likewise.
5083 * config/darwin-64.c: Likewise.
5084 * config/darwin-crt2.c: Likewise.
5085 * config/darwin-crt3.c: Likewise.
5086 * config/darwin.h: Likewise.
5087 * config/dbxelf.h: Likewise.
5088 * config/dfp-bit.c: Likewise.
5089 * config/dfp-bit.h: Likewise.
5090 * config/elfos.h: Likewise.
5091 * config/fixed-bit.c: Likewise.
5092 * config/fixed-bit.h: Likewise.
5093 * config/fp-bit.c: Likewise.
5094 * config/fp-bit.h: Likewise.
5095 * config/fr30/crti.asm: Likewise.
5096 * config/fr30/crtn.asm: Likewise.
5097 * config/fr30/lib1funcs.asm: Likewise.
5098 * config/freebsd-spec.h: Likewise.
5099 * config/frv/cmovd.c: Likewise.
5100 * config/frv/cmovh.c: Likewise.
5101 * config/frv/cmovw.c: Likewise.
5102 * config/frv/frvbegin.c: Likewise.
5103 * config/frv/frvend.c: Likewise.
5104 * config/frv/lib1funcs.asm: Likewise.
5105 * config/glibc-stdint.h: Likewise.
5106 * config/h8300/clzhi2.c: Likewise.
5107 * config/h8300/crti.asm: Likewise.
5108 * config/h8300/crtn.asm: Likewise.
5109 * config/h8300/ctzhi2.c: Likewise.
5110 * config/h8300/fixunssfsi.c: Likewise.
5111 * config/h8300/lib1funcs.asm: Likewise.
5112 * config/h8300/parityhi2.c: Likewise.
5113 * config/h8300/popcounthi2.c: Likewise.
5114 * config/i386/ammintrin.h: Likewise.
5115 * config/i386/att.h: Likewise.
5116 * config/i386/avxintrin.h: Likewise.
5117 * config/i386/biarch64.h: Likewise.
5118 * config/i386/bmmintrin.h: Likewise.
5119 * config/i386/cpuid.h: Likewise.
5120 * config/i386/cross-stdarg.h: Likewise.
5121 * config/i386/crtfastmath.c: Likewise.
5122 * config/i386/crtprec.c: Likewise.
5123 * config/i386/cygming-crtbegin.c: Likewise.
5124 * config/i386/cygming-crtend.c: Likewise.
5125 * config/i386/cygwin.asm: Likewise.
5126 * config/i386/emmintrin.h: Likewise.
5127 * config/i386/gmm_malloc.h: Likewise.
5128 * config/i386/gthr-win32.c: Likewise.
5129 * config/i386/i386.h: Likewise.
5130 * config/i386/immintrin.h: Likewise.
5131 * config/i386/linux-unwind.h: Likewise.
5132 * config/i386/linux64.h: Likewise.
5133 * config/i386/mm3dnow.h: Likewise.
5134 * config/i386/mmintrin-common.h: Likewise.
5135 * config/i386/mmintrin.h: Likewise.
5136 * config/i386/nmmintrin.h: Likewise.
5137 * config/i386/pmm_malloc.h: Likewise.
5138 * config/i386/pmmintrin.h: Likewise.
5139 * config/i386/smmintrin.h: Likewise.
5140 * config/i386/sol2-c1.asm: Likewise.
5141 * config/i386/sol2-ci.asm: Likewise.
5142 * config/i386/sol2-cn.asm: Likewise.
5143 * config/i386/sol2-gc1.asm: Likewise.
5144 * config/i386/tmmintrin.h: Likewise.
5145 * config/i386/unix.h: Likewise.
5146 * config/i386/w32-unwind.h: Likewise.
5147 * config/i386/wmmintrin.h: Likewise.
5148 * config/i386/x86-64.h: Likewise.
5149 * config/i386/x86intrin.h: Likewise.
5150 * config/i386/xmmintrin.h: Likewise.
5151 * config/ia64/crtbegin.asm: Likewise.
5152 * config/ia64/crtend.asm: Likewise.
5153 * config/ia64/crtfastmath.c: Likewise.
5154 * config/ia64/crti.asm: Likewise.
5155 * config/ia64/crtn.asm: Likewise.
5156 * config/ia64/fde-glibc.c: Likewise.
5157 * config/ia64/lib1funcs.asm: Likewise.
5158 * config/ia64/linux-unwind.h: Likewise.
5159 * config/ia64/quadlib.c: Likewise.
5160 * config/ia64/unwind-ia64.c: Likewise.
5161 * config/linux.h: Likewise.
5162 * config/m32c/m32c-lib1.S: Likewise.
5163 * config/m32c/m32c-lib2-trapv.c: Likewise.
5164 * config/m32c/m32c-lib2.c: Likewise.
5165 * config/m32r/initfini.c: Likewise.
5166 * config/m68hc11/larith.asm: Likewise.
5167 * config/m68hc11/m68hc11-crt0.S: Likewise.
5168 * config/m68k/cf.md: Likewise.
5169 * config/m68k/crti.s: Likewise.
5170 * config/m68k/crtn.s: Likewise.
5171 * config/m68k/lb1sf68.asm: Likewise.
5172 * config/m68k/linux-unwind.h: Likewise.
5173 * config/mcore/crti.asm: Likewise.
5174 * config/mcore/crtn.asm: Likewise.
5175 * config/mcore/lib1.asm: Likewise.
5176 * config/mips/linux-unwind.h: Likewise.
5177 * config/mips/loongson.h: Likewise.
5178 * config/mips/mips16.S: Likewise.
5179 * config/mmix/crti.asm: Likewise.
5180 * config/mmix/crtn.asm: Likewise.
5181 * config/pa/fptr.c: Likewise.
5182 * config/pa/hpux-unwind.h: Likewise.
5183 * config/pa/lib2funcs.asm: Likewise.
5184 * config/pa/linux-atomic.c: Likewise.
5185 * config/pa/linux-unwind.h: Likewise.
5186 * config/pa/milli64.S: Likewise.
5187 * config/pa/quadlib.c: Likewise.
5188 * config/pa/stublib.c: Likewise.
5189 * config/picochip/libgccExtras/adddi3.asm: Likewise.
5190 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
5191 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
5192 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
5193 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
5194 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
5195 * config/picochip/libgccExtras/divmod15.asm: Likewise.
5196 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
5197 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
5198 * config/picochip/libgccExtras/longjmp.asm: Likewise.
5199 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
5200 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
5201 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
5202 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
5203 * config/picochip/libgccExtras/setjmp.asm: Likewise.
5204 * config/picochip/libgccExtras/subdi3.asm: Likewise.
5205 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
5206 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
5207 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
5208 * config/rs6000/750cl.h: Likewise.
5209 * config/rs6000/altivec.h: Likewise.
5210 * config/rs6000/biarch64.h: Likewise.
5211 * config/rs6000/crtresfpr.asm: Likewise.
5212 * config/rs6000/crtresgpr.asm: Likewise.
5213 * config/rs6000/crtresxfpr.asm: Likewise.
5214 * config/rs6000/crtresxgpr.asm: Likewise.
5215 * config/rs6000/crtsavfpr.asm: Likewise.
5216 * config/rs6000/crtsavgpr.asm: Likewise.
5217 * config/rs6000/darwin-asm.h: Likewise.
5218 * config/rs6000/darwin-fallback.c: Likewise.
5219 * config/rs6000/darwin-fpsave.asm: Likewise.
5220 * config/rs6000/darwin-ldouble.c: Likewise.
5221 * config/rs6000/darwin-tramp.asm: Likewise.
5222 * config/rs6000/darwin-unwind.h: Likewise.
5223 * config/rs6000/darwin-vecsave.asm: Likewise.
5224 * config/rs6000/darwin-world.asm: Likewise.
5225 * config/rs6000/e500crtres32gpr.asm: Likewise.
5226 * config/rs6000/e500crtres64gpr.asm: Likewise.
5227 * config/rs6000/e500crtres64gprctr.asm: Likewise.
5228 * config/rs6000/e500crtrest32gpr.asm: Likewise.
5229 * config/rs6000/e500crtrest64gpr.asm: Likewise.
5230 * config/rs6000/e500crtresx32gpr.asm: Likewise.
5231 * config/rs6000/e500crtresx64gpr.asm: Likewise.
5232 * config/rs6000/e500crtsav32gpr.asm: Likewise.
5233 * config/rs6000/e500crtsav64gpr.asm: Likewise.
5234 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
5235 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
5236 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
5237 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
5238 * config/rs6000/eabi-ci.asm: Likewise.
5239 * config/rs6000/eabi-cn.asm: Likewise.
5240 * config/rs6000/eabi.asm: Likewise.
5241 * config/rs6000/linux-unwind.h: Likewise.
5242 * config/rs6000/linux64.h: Likewise.
5243 * config/rs6000/paired.h: Likewise.
5244 * config/rs6000/paired.md: Likewise.
5245 * config/rs6000/ppc64-fp.c: Likewise.
5246 * config/rs6000/ppu_intrinsics.h: Likewise.
5247 * config/rs6000/rs6000.h: Likewise.
5248 * config/rs6000/si2vmx.h: Likewise.
5249 * config/rs6000/sol-ci.asm: Likewise.
5250 * config/rs6000/sol-cn.asm: Likewise.
5251 * config/rs6000/spe.h: Likewise.
5252 * config/rs6000/spu2vmx.h: Likewise.
5253 * config/rs6000/sysv4.h: Likewise.
5254 * config/rs6000/tramp.asm: Likewise.
5255 * config/rs6000/vec_types.h: Likewise.
5256 * config/s390/linux-unwind.h: Likewise.
5257 * config/s390/tpf-unwind.h: Likewise.
5258 * config/score/crti.asm: Likewise.
5259 * config/score/crtn.asm: Likewise.
5260 * config/sh/crt1.asm: Likewise.
5261 * config/sh/crti.asm: Likewise.
5262 * config/sh/crtn.asm: Likewise.
5263 * config/sh/divtab-sh4-300.c: Likewise.
5264 * config/sh/divtab-sh4.c: Likewise.
5265 * config/sh/divtab.c: Likewise.
5266 * config/sh/lib1funcs-4-300.asm: Likewise.
5267 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
5268 * config/sh/lib1funcs.asm: Likewise.
5269 * config/sh/lib1funcs.h: Likewise.
5270 * config/sh/linux-atomic.asm: Likewise.
5271 * config/sh/linux-unwind.h: Likewise.
5272 * config/sh/shmedia.h: Likewise.
5273 * config/sh/sshmedia.h: Likewise.
5274 * config/sh/ushmedia.h: Likewise.
5275 * config/sparc/crtfastmath.c: Likewise.
5276 * config/sparc/linux-unwind.h: Likewise.
5277 * config/sparc/sol2-c1.asm: Likewise.
5278 * config/sparc/sol2-ci.asm: Likewise.
5279 * config/sparc/sol2-cn.asm: Likewise.
5280 * config/spu/divmodti4.c: Likewise.
5281 * config/spu/divv2df3.c: Likewise.
5282 * config/spu/float_disf.c: Likewise.
5283 * config/spu/float_unsdidf.c: Likewise.
5284 * config/spu/float_unsdisf.c: Likewise.
5285 * config/spu/float_unssidf.c: Likewise.
5286 * config/spu/mfc_multi_tag_release.c: Likewise.
5287 * config/spu/mfc_multi_tag_reserve.c: Likewise.
5288 * config/spu/mfc_tag_release.c: Likewise.
5289 * config/spu/mfc_tag_reserve.c: Likewise.
5290 * config/spu/mfc_tag_table.c: Likewise.
5291 * config/spu/multi3.c: Likewise.
5292 * config/spu/spu_internals.h: Likewise.
5293 * config/spu/spu_intrinsics.h: Likewise.
5294 * config/spu/spu_mfcio.h: Likewise.
5295 * config/spu/vec_types.h: Likewise.
5296 * config/spu/vmx2spu.h: Likewise.
5297 * config/stormy16/stormy16-lib2.c: Likewise.
5298 * config/svr4.h: Likewise.
5299 * config/sync.c: Likewise.
5300 * config/v850/lib1funcs.asm: Likewise.
5301 * config/vxlib-tls.c: Likewise.
5302 * config/vxlib.c: Likewise.
5303 * config/vxworks-dummy.h: Likewise.
5304 * config/xtensa/crti.asm: Likewise.
5305 * config/xtensa/crtn.asm: Likewise.
5306 * config/xtensa/ieee754-df.S: Likewise.
5307 * config/xtensa/ieee754-sf.S: Likewise.
5308 * config/xtensa/lib1funcs.asm: Likewise.
5309 * config/xtensa/lib2funcs.S: Likewise.
5310 * config/xtensa/linux-unwind.h: Likewise.
5311 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
5312 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
5313 * coretypes.h: Likewise.
5314 * crtstuff.c: Likewise.
5315 * defaults.h: Likewise.
5316 * dwarf2.h: Likewise.
5317 * emutls.c: Likewise.
5318 * gbl-ctors.h: Likewise.
5319 * gcov-io.h: Likewise.
5320 * ginclude/float.h: Likewise.
5321 * ginclude/iso646.h: Likewise.
5322 * ginclude/stdarg.h: Likewise.
5323 * ginclude/stdbool.h: Likewise.
5324 * ginclude/stddef.h: Likewise.
5325 * ginclude/stdfix.h: Likewise.
5326 * ginclude/stdint-gcc.h: Likewise.
5327 * ginclude/tgmath.h: Likewise.
5328 * gthr-aix.h: Likewise.
5329 * gthr-dce.h: Likewise.
5330 * gthr-gnat.c: Likewise.
5331 * gthr-gnat.h: Likewise.
5332 * gthr-lynx.h: Likewise.
5333 * gthr-mipssde.h: Likewise.
5334 * gthr-nks.h: Likewise.
5335 * gthr-posix.c: Likewise.
5336 * gthr-posix.h: Likewise.
5337 * gthr-posix95.h: Likewise.
5338 * gthr-rtems.h: Likewise.
5339 * gthr-single.h: Likewise.
5340 * gthr-solaris.h: Likewise.
5341 * gthr-tpf.h: Likewise.
5342 * gthr-vxworks.h: Likewise.
5343 * gthr-win32.h: Likewise.
5345 * libgcc2.c: Likewise.
5346 * libgcc2.h: Likewise.
5347 * libgcov.c: Likewise.
5348 * tsystem.h: Likewise.
5349 * typeclass.h: Likewise.
5350 * unwind-c.c: Likewise.
5351 * unwind-compat.h: Likewise.
5352 * unwind-dw2-fde-compat.c: Likewise.
5353 * unwind-dw2-fde-darwin.c: Likewise.
5354 * unwind-dw2-fde-glibc.c: Likewise.
5355 * unwind-dw2-fde.c: Likewise.
5356 * unwind-dw2-fde.h: Likewise.
5357 * unwind-dw2.c: Likewise.
5358 * unwind-dw2.h: Likewise.
5359 * unwind-generic.h: Likewise.
5360 * unwind-pe.h: Likewise.
5361 * unwind-sjlj.c: Likewise.
5362 * unwind.inc: Likewise.
5363 * config/arm/neon-gen.ml: Change generated copyright header to
5364 refer to version 3 of the GNU General Public License with
5365 version 3.1 of the GCC Runtime Library Exception and to point
5366 readers at the COPYING3 and COPYING3.RUNTIME files and the
5367 FSF's license web page.
5368 * config/arm/arm_neon.h: Regenerate.
5370 2009-04-09 Jakub Jelinek <jakub@redhat.com>
5372 * config/cris/cris.md: Change copyright header to refer to version
5373 3 of the GNU General Public License.
5374 * doc/install.texi2html: Change copyright header to refer to version
5375 3 of the GNU General Public License and to point readers at the
5376 COPYING3 file and the FSF's license web page.
5377 * config/vax/linux.h: Likewise.
5379 2009-04-09 Paolo Bonzini <bonzini@gnu.org>
5381 * config/i386/i386.md (cmpcc): New.
5382 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
5383 (sync_compare_and_swap_cc*): Delete.
5385 * config/s390/s390.c (s390_compare_emitted): Remove.
5386 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
5387 s390_compare_emitted used to be handled. Assert that modes match.
5388 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
5389 refer to sync_compare_and_swap_ccsi.
5390 * config/s390/s390.h (s390_compare_emitted): Remove.
5391 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
5392 instead of s390_compare_emitted.
5393 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
5394 instead of s390_compare_emitted.
5395 * config/s390/s390.md (cmpcc): New.
5396 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
5397 CC_REGNUM, do not pretend it's set.
5398 (sync_compare_and_swap_cc*): Delete.
5399 * config/s390/predicates.md (cc_reg_operand): New.
5401 * expr.c (sync_compare_and_swap_cc): Delete.
5402 * optabs.h (sync_compare_and_swap_cc): Delete.
5403 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
5404 is being used with can_compare_p.
5405 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
5407 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
5408 look for a MODE_CC set instead. Use emit_store_flag.
5409 (expand_compare_and_swap_loop): Likewise, with some additional
5410 complication to avoid a force_reg when useless. Use
5411 emit_cmp_and_jump_insns.
5412 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
5413 * doc/md.texi (sync_compare_and_swap_cc): Merge with
5414 sync_compare_and_swap documentation.
5416 2009-04-09 Jan Hubicka <jh@suse.cz>
5418 * except.c (find_prev_try): Break out from ....
5419 (duplicate_eh_regions): ... here; properly update prev_try pointers
5420 when duplication part of tree.
5421 (dump_eh_tree): Improve dumping.
5422 (verify_eh_region): New.
5423 (verify_eh_tree): Use it.
5425 2009-04-06 Richard Guenther <rguenther@suse.de>
5427 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
5428 &ARRAY addresses by adjusting their types and prepending
5430 * tree-cfg.c (verify_gimple_assign_single): Verify that
5431 addresses are correct.
5433 2009-04-09 Richard Guenther <rguenther@suse.de>
5435 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
5436 indices into an array reference if possible.
5437 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
5438 Fold POINTER_PLUS_EXPR statements with invariant address.
5440 2009-04-09 Alan Modra <amodra@bigpond.net.au>
5443 * config.gcc (powerpc64-*-linux*): Always build biarch.
5445 2009-04-09 Joseph Myers <joseph@codesourcery.com>
5448 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
5449 it and pedwarn if this results in an INTEGER_CST.
5451 2009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5453 * doc/install.texi: Update minimum GMP version. Remove obsolete
5454 text in MPFR section.
5456 2009-04-08 Jakub Jelinek <jakub@redhat.com>
5458 * dwarf2out.c (class_scope_p): New static inline.
5459 (class_or_namespace_scope_p): Use it.
5460 (gen_variable_die): Use DW_TAG_member tag for static data member
5461 declarations instead of DW_TAG_variable.
5464 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
5467 2009-04-08 Richard Guenther <rguenther@suse.de>
5469 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
5470 valueize random data.
5472 2009-04-08 David Edelsohn <edelsohn@gnu.org>
5474 * config.gcc (aix tm_file): Add aix-stdint.h.
5475 (aix tm clause use_gcc_stdint): Set to wrap.
5476 * config/rs6000/aix-stdint.h: New file.
5478 2009-04-08 Richard Guenther <rguenther@suse.de>
5481 * tree-dfa.c (add_referenced_var): Do not recurse into
5482 global initializers.
5483 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
5485 (fold_const_aggregate_ref): Likewise.
5487 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
5489 * recog.c (ordered_comparison_operator): New.
5490 * gensupport.c (std_preds): Add it.
5491 * doc/md.texi (Machine-Independent Predicates): Document it.
5493 2009-04-08 Jan Hubicka <jh@suse.cz>
5495 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
5496 * function.h (rtl_eh): Remove exception_handler_label_map.
5497 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
5498 remove_exception_handler_label, for_each_eh_label_1): Remove.
5499 (rtl_remove_unreachable_regions): Remove.
5500 (convert_from_eh_region_ranges): Do not remove unreachable regions.
5501 (find_exception_handler_labels): Don't build the hashtable.
5502 (maybe_remove_eh_handler): Remove.
5503 (for_each_eh_label): Rewrite to walk the tree.
5504 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
5505 * except.h (maybe_remove_eh_handler): Remove.
5506 * passes.c (init_optimization_passes): Schedule second EH cleanup
5508 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
5509 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
5511 2009-04-08 Paolo Bonzini <bonzini@gnu.org>
5513 * genoutput.c (validate_optab_operands): New.
5514 (gen_insn, gen_expand): Call it.
5516 * genflags.c (gen_insn): Detect misused iterators.
5517 (main): Pass line_no to gen_insn, exit with status 1 on error.
5519 * genextract.c (line_no): Make global.
5520 (VEC_safe_set_locstr): Change assertion to error message.
5521 (main): Exit with status 1 on error.
5523 2009-04-08 Joseph Myers <joseph@codesourcery.com>
5527 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
5528 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
5529 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
5530 * c-convert.c (convert): Do not call fold on results of conversion
5531 functions when the result is a C_MAYBE_CONST_EXPR.
5532 * c-parser.c (c_parser_postfix_expression): Do not fold condition
5533 of __builtin_choose_expr.
5534 * c-typeck.c (remove_c_maybe_const_expr): New.
5535 (build_unary_op, build_conditional_expr, build_compound_expr,
5536 build_binary_op, c_objc_common_truthvalue_conversion): Call
5537 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
5540 2009-04-08 Bingfeng Mei <bmei@broadcom.com>
5542 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
5543 CODE to produce a new one. Add a prototype to use fold_convert_const
5545 2009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
5548 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
5549 mix declarations and code.
5551 2009-04-08 Ben Elliston <bje@au.ibm.com>
5553 * gcc.c: Replace `CC' with `GCC' throughout.
5555 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
5557 * doc/invoke.texi: Document Atom support.
5559 2009-04-07 Jason Merrill <jason@redhat.com>
5562 * c-common.h, c-common.c: Add flag_pretty_templates.
5563 * c-opts.c (c_common_handle_option): Set it.
5564 * c.opt: Add -fno-pretty-templates.
5565 * doc/invoke.texi (C++ Dialect Options): Likewise.
5567 2009-04-07 Uros Bizjak <ubizjak@gmail.com>
5569 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
5570 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
5571 (ia64_expand_builtin): Likewise.
5573 2009-04-07 Martin Jambor <mjambor@suse.cz>
5575 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
5576 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
5577 ADDR_EXPRS are include too.
5579 2009-04-07 Richard Guenther <rguenther@suse.de>
5581 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
5582 decls are only used if passes as parameters or if they are
5583 local statics and the call is not to a builtin.
5584 (call_may_clobber_ref_p_1): Likewise.
5586 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
5588 * expr.c (do_store_flag): Remove last argument. Simplify code
5589 to avoid duplication of tests already done by can_compare_p.
5590 (expand_expr_real_1): Adjust caller.
5592 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
5594 * optabs.c (can_compare_p): Test the predicate of a
5595 cbranch and cstore pattern.
5597 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
5599 * expr.c (convert_move): Use emit_store_flag instead of
5602 2009-04-07 Paolo Bonzini <bonzini@gnu.org>
5604 * config/i386/i386.c (ix86_compare_emitted): Remove.
5605 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
5606 ix86_compare_op0 like ix86_compare_emitted used to be handled.
5607 * config/i386/i386.h (ix86_compare_emitted): Remove.
5608 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
5609 instead of ix86_compare_emitted.
5610 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
5612 2009-04-07 Andrew Stubbs <ams@codesourcery.com>
5614 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
5615 Add t-sysroot-suffix to tmake_file.
5616 * config/print-sysroot-suffix.sh: New file.
5617 * config/t-sysroot-suffix: New file.
5619 2009-04-07 Ben Elliston <bje@au.ibm.com>
5621 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
5622 as the latter produces a warning when the target does not support
5625 2009-04-07 Ben Elliston <bje@au.ibm.com>
5627 * dfp.c: Replace type punning assignments with memcpy throughout.
5628 * Makefile.in (dfp.o-warn): Remove.
5630 2009-04-07 Alan Modra <amodra@bigpond.net.au>
5633 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
5634 Include soft-fp/t-softfp after rs6000/t-linux64.
5636 2009-04-06 Eric Botcazou <ebotcazou@adacore.com>
5638 * stor-layout.c (set_sizetype): Use the full precision of their
5639 machine mode for bitsize types.
5641 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
5643 * config/i386/i386.md: Revert 2 accidental checkins.
5645 2009-04-06 Joey Ye <joey.ye@intel.com>
5646 Xuepeng Guo <xuepeng.guo@intel.com>
5647 H.J. Lu <hongjiu.lu@intel.com>
5649 Atom pipeline model, tuning and insn selection.
5650 * config.gcc (atom): Add atom config options and target.
5652 * config/i386/atom.md: New.
5654 * config/i386/i386.c (atom_cost): New cost.
5655 (m_ATOM): New macro flag.
5656 (initial_ix86_tune_features): Set m_ATOM.
5657 (x86_accumulate_outgoing_args): Likewise.
5658 (x86_arch_always_fancy_math_387): Likewise.
5659 (processor_target): Add Atom cost.
5660 (cpu_names): Add Atom cpu name.
5661 (override_options): Set Atom ISA.
5662 (ix86_issue_rate): New case PROCESSOR_ATOM.
5663 (ix86_adjust_cost): Likewise.
5665 * config/i386/i386.h (TARGET_ATOM): New target macro.
5666 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
5667 (TARGET_OPT_AGU): New target option.
5668 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
5669 (processor_type): Add PROCESSOR_ATOM.
5671 * config/i386/i386.md (cpu): Add new value "atom".
5672 (use_carry, movu): New attr.
5673 (atom.md): Include atom.md.
5674 (adddi3_carry_rex64): Set attr "use_carry".
5675 (addqi3_carry): Likewise.
5676 (addhi3_carry): Likewise.
5677 (addsi3_carry): Likewise.
5678 (*addsi3_carry_zext): Likewise.
5679 (subdi3_carry_rex64): Likewise.
5680 (subqi3_carry): Likewise.
5681 (subhi3_carry): Likewise.
5682 (subsi3_carry): Likewise.
5683 (x86_movdicc_0_m1_rex64): Likewise.
5684 (*x86_movdicc_0_m1_se): Likewise.
5685 (x86_movsicc_0_m1): Likewise.
5686 (*x86_movsicc_0_m1_se): Likewise.
5687 (*adddi_1_rex64): Emit add insn as much as possible.
5688 (*addsi_1): Likewise.
5689 (return_internal): Set atom_unit.
5690 (return_internal_long): Likewise.
5691 (return_pop_internal): Likewise.
5692 (*rcpsf2_sse): Set atom_sse_attr attr.
5693 (*qrt<mode>2_sse): Likewise.
5694 (*prefetch_sse): Likewise.
5696 * config/i386/i386-c.c (ix86_target_macros_internal): New case
5698 (ix86_target_macros_internal): Likewise.
5700 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
5701 (*prefetch_sse_rex): Likewise.
5702 (sse_rcpv4sf2): Likewise.
5703 (sse_vmrcpv4sf2): Likewise.
5704 (sse_sqrtv4sf2): Likewise.
5705 (<sse>_vmsqrt<mode>2): Likewise.
5706 (sse_ldmxcsr): Likewise.
5707 (sse_stmxcsr): Likewise.
5708 (*sse_sfence): Likewise.
5709 (sse2_clflush): Likewise.
5710 (*sse2_mfence): Likewise.
5711 (*sse2_lfence): Likewise.
5712 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
5713 (<sse>_movup<ssemodesuffixf2c>): Likewise.
5714 (avx_movdqu<avxmodesuffix>): Likewise.
5715 (avx_lddqu<avxmodesuffix>): Likewise.
5716 (sse2_movntv2di): Change attr "type" to "ssemov".
5717 (sse2_movntsi): Likewise.
5718 (rsqrtv8sf2): Change attr "type" to "sseadd".
5719 (sse3_addsubv2df3): Set attr "atom_unit".
5720 (sse3_h<plusminus_insn>v4sf3): Likewise.
5721 (*sse2_pmaddwd): Likewise.
5722 (*vec_extractv2di_1_rex64): Likewise.
5723 (*vec_extractv2di_1_avx): Likewise.
5724 (sse2_psadbw): Likewise.
5725 (ssse3_phaddwv8hi3): Likewise.
5726 (ssse3_phaddwv4hi3): Likewise.
5727 (ssse3_phadddv4si3): Likewise.
5728 (ssse3_phadddv2si3): Likewise.
5729 (ssse3_phaddswv8hi3): Likewise.
5730 (ssse3_phaddswv4hi3): Likewise.
5731 (ssse3_phsubwv8hi3): Likewise.
5732 (ssse3_phsubwv4hi3): Likewise.
5733 (ssse3_phsubdv4si3): Likewise.
5734 (ssse3_phsubdv2si3): Likewise.
5735 (ssse3_phsubswv8hi3): Likewise.
5736 (ssse3_phsubswv4hi3): Likewise.
5737 (ssse3_pmaddubsw128): Likewise.
5738 (sse3_pmaddubsw: Likewise.
5739 (ssse3_palignrti): Likewise.
5740 (ssse3_palignrdi): Likewise.
5742 2009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
5744 * doc/install.texi (Specific): Fix two cross-references to MinGW.
5746 2009-04-06 Richard Guenther <rguenther@suse.de>
5748 PR tree-optimization/28868
5749 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
5750 of which PHI results we inserted.
5751 (insert_into_preds_of_block): Record inserted PHIs.
5752 (eliminate): Eliminate redundant PHI nodes.
5753 (init_pre): Init inserted_phi_names.
5755 2009-04-06 Richard Guenther <rguenther@suse.de>
5757 PR tree-optimization/39643
5758 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
5759 IMAGPART_EXPRs of complex constants.
5760 (execute_fold_all_builtins): If we folded a call queue
5761 TODO_update_address_taken.
5763 2009-04-06 Jan Hubicka <jh@suse.cz>
5766 * except.c (remove_unreachable_regions): Propagate may_contain_throw
5769 2009-04-06 Andrew Stubbs <ams@codesourcery.com>
5771 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
5773 (ic_invalidate_array): Likewise.
5775 2009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
5777 * calls.c (emit_library_call_value_1): Fix a problem with parameter
5778 alignment for library calls.
5780 2009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
5782 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
5783 (mingw32 tm clause use_gcc_stdint): Set to wrap.
5784 * config/i386/mingw-stdint.h: New file.
5786 2009-04-05 Richard Guenther <rguenther@suse.de>
5788 PR tree-optimization/39648
5789 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
5790 our &A vs. &A[0] IL deficiencies.
5792 2009-04-04 Jan Hubicka <jh@suse.cz>
5794 * except.c (sjlj_find_directly_reachable_regions): Be ready for
5795 removed toplevel regions.
5796 (sjlj_mark_call_sites): Likewise.
5798 2009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
5800 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
5801 (cygwin tm clause use_gcc_stdint): Set to wrap.
5802 * config/i386/cygwin-stdint.h: New file.
5804 2009-04-04 Richard Guenther <rguenther@suse.de>
5806 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
5807 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
5808 single-argument PHIs if we are in loop-closed SSA form.
5809 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
5810 for the pre-condition.
5811 (slpeel_tree_peel_loop_to_edge): Likewise.
5812 (vect_build_loop_niters): Take an optional sequence to append stmts.
5813 (vect_generate_tmps_on_preheader): Likewise.
5814 (vect_do_peeling_for_loop_bound): Take extra guards for the
5816 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
5817 the cost model check.
5818 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
5819 guards if we are going to peel. Do not apply versioning in that case.
5820 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
5821 (vect_do_peeling_for_loop_bound): Likewise.
5822 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
5823 loop bound only record extra pre-conditions, do not apply loop
5826 2009-04-04 Richard Guenther <rguenther@suse.de>
5828 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
5831 2009-04-04 Jan Hubicka <jh@suse.cz>
5833 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
5834 last_basic_block for size of bb->index indexed array.
5835 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
5836 compute_out, link_btr_uses, build_btr_def_use_webs,
5837 build_btr_def_use_webs, migrate_btr_defs): Likewise.
5839 2009-04-04 Jan Hubicka <jh@suse.cz>
5841 * except.c (remove_eh_handler_and_replace): Break out from ...
5842 (remove_eh_handler): ... here.
5843 (bring_to_root): New function.
5844 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
5845 handled ones, bring others to root of tree.
5847 2009-04-04 Jan Hubicka <jh@suse.cz>
5849 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
5850 (all_phis_safe_to_merge): New function.
5851 (update_info): New structure.
5852 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
5853 (cleanup_empty_eh): Update SSA if possible.
5855 2009-04-04 Richard Guenther <rguenther@suse.de>
5857 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
5858 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
5859 (append_vuse): Likewise.
5861 2009-04-04 Jakub Jelinek <jakub@redhat.com>
5863 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
5864 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
5865 instead of REG_UNSAVED for DW_CFA_undefined.
5866 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
5867 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
5870 2009-04-04 Richard Earnshaw <rearnsha@arm.com>
5873 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
5874 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
5875 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
5877 2009-04-04 Richard Guenther <rguenther@suse.de>
5879 PR tree-optimization/8781
5880 PR tree-optimization/37892
5881 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
5882 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
5883 (valueize_refs): Call it for *& valueizations.
5884 (shared_reference_ops_from_ref): Rename to ...
5885 (valueize_shared_reference_ops_from_ref): ... this and valueize.
5886 (shared_reference_ops_from_call): Rename to ...
5887 (valueize_shared_reference_ops_from_call): ... this and valueize.
5888 (vn_reference_lookup): Update.
5889 (visit_reference_op_call): Likewise.
5890 * tree-ssa-pre.c (phi_translate_1): Fold *&.
5891 (eliminate): Value-replace the call address in call statements.
5893 2009-04-04 Richard Guenther <rguenther@suse.de>
5895 PR tree-optimization/39636
5896 * tree-ssa-forwprop.c
5897 (forward_propagate_addr_into_variable_array_index): Check for
5898 GIMPLE_ASSIGN before accessing the rhs code.
5900 2009-04-03 Jason Merrill <jason@redhat.com>
5902 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
5904 2009-04-03 Steve Ellcey <sje@cup.hp.com>
5906 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
5907 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
5908 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
5909 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
5910 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
5911 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
5912 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
5913 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
5914 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
5915 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
5916 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
5917 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
5918 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
5919 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
5920 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
5921 Use fr_reg_or_fp01_operand instead of fr_register_operand
5923 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
5924 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
5925 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
5927 2009-04-03 Vladimir Makarov <vmakarov@redhat.com>
5929 PR rtl-optimization/39607
5930 PR rtl-optimization/39631
5934 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
5935 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
5936 instead of DF_LR_OUT.
5937 * ira-lives.c (process_bb_node_lives): Ditto.
5938 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
5939 instead of DF_LR_{OUT,IN}.
5940 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
5941 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
5943 2009-04-03 Steven Bosscher <steven@gcc.gnu.org>
5945 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
5946 (execute_lower_omp): Always run but take the short way out if -fopenmp
5948 (gate_lower_omp): Remove, forcing the pass manager to always run the
5949 pass and always set PROP_gimple_lomp.
5950 (pass_lower_omp): Remove gate function.
5951 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
5952 PROP_trees. Instead, require it.
5953 * ipa-cp.c (pass_ipa_cp): Likewise.
5954 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
5955 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
5956 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
5957 and PROP_gimple_leh.
5959 2009-04-03 Richard Guenther <rguenther@suse.de>
5962 PR tree-optimization/23940
5963 PR tree-optimization/33237
5966 PR tree-optimization/36201
5967 PR tree-optimization/36230
5968 PR tree-optimization/38049
5969 PR tree-optimization/38207
5970 PR tree-optimization/38230
5971 PR tree-optimization/38301
5972 PR tree-optimization/38585
5974 PR tree-optimization/38985
5975 PR tree-optimization/39299
5976 * tree-ssa-structalias.h: Remove.
5977 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
5978 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
5979 (struct vuse_element_d): Remove.
5980 (struct vuse_vec_d): Likewise.
5981 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
5982 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
5983 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
5984 VUSE_ELEMENT_VAR): Likewise.
5985 (struct voptype_d): Likewise.
5986 (NUM_VOP_FREE_BUCKETS): Likewise.
5987 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
5988 (struct stmt_operands_d): Remove.
5989 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
5990 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
5991 VDEF_NUM, VDEF_VECT): Likewise.
5992 (copy_virtual_operands): Remove.
5993 (operand_build_cmp): Likewise.
5994 (create_ssa_artificial_load_stmt): Likewise.
5995 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
5996 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
5997 vuse_index and mayuse_index members. Pack and move done and iter_type
5998 members to the front.
5999 (SSA_OP_VMAYUSE): Remove.
6000 (SSA_OP_VIRTUAL_USES): Adjust.
6001 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
6002 (unlink_stmt_vdef): Declare.
6003 (add_to_addressable_set): Remove.
6004 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
6005 (vrp_visit_stmt): Likewise.
6006 * doc/tree-ssa.texi (Alias analysis): Update.
6007 * doc/invoke.texi (max-aliased-vops): Remove docs.
6008 (avg-aliased-vops): Likewise.
6009 * tree-into-ssa.c (syms_to_rename): Remove.
6010 (need_to_update_vops_p): Likewise.
6011 (need_to_initialize_update_ssa_p): Rename to ...
6012 (update_ssa_initialized_fn): ... this. Track function we are
6014 (symbol_marked_for_renaming): Simplify.
6015 (add_new_name_mapping): Do not set need_to_update_vops_p.
6016 (dump_currdefs): Use SYMS_TO_RENAME.
6017 (rewrite_update_stmt): Always walk all uses/defs.
6018 (dump_update_ssa): Adjust.
6019 (init_update_ssa): Take function argument. Track what we are
6021 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
6022 (create_new_def_for): Initialize for cfun, assert we are initialized
6024 (mark_sym_for_renaming): Simplify.
6025 (mark_set_for_renaming): Do not initialize update-ssa.
6026 (need_ssa_update_p): Simplify. Take function argument.
6027 (name_mappings_registered_p): Assert we ask for the correct function.
6028 (name_registered_for_update_p): Likewise.
6029 (ssa_names_to_replace): Likewise.
6030 (release_ssa_name_after_update_ssa): Likewise.
6031 (update_ssa): Likewise. Use SYMS_TO_RENAME.
6032 (dump_decl_set): Do not print a newline.
6033 (debug_decl_set): Do it here.
6034 (dump_update_ssa): And here.
6035 * tree-ssa-loop-im.c (move_computations): Adjust.
6036 (movement_possibility): Likewise.
6037 (determine_max_movement): Likewise.
6038 (gather_mem_refs_stmt): Likewise.
6039 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
6041 * tree-complex.c (update_all_vops): Remove.
6042 (expand_complex_move): Adjust.
6043 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
6044 Simplify test for memory referencing statement. Exclude
6045 non-invariant ADDR_EXPRs.
6046 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
6047 * tree-loop-distribution.c (generate_memset_zero): Adjust.
6048 (rdg_flag_uses): Likewise.
6049 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
6051 (tree_optimize_tail_calls_1): Also split the
6052 edge from the entry block if we have degenerate PHI nodes in
6053 the first basic block.
6054 * tree.c (init_ttree): Remove memory-tag related code.
6055 (tree_code_size): Likewise.
6056 (tree_node_structure): Likewise.
6057 (build7_stat): Re-write to be build6_stat.
6058 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
6059 (SSA_VAR_P): Adjust.
6060 (struct tree_memory_tag): Remove.
6061 (struct tree_memory_partition_tag): Likewise.
6062 (union tree_node): Adjust.
6063 (build7): Re-write to be build6.
6064 * tree-pass.h (pass_reset_cc_flags): Remove.
6065 (TODO_update_address_taken): New flag.
6066 (pass_simple_dse): Remove.
6067 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
6068 * params.h (MAX_ALIASED_VOPS): Remove.
6069 (AVG_ALIASED_VOPS): Likewise.
6070 * omp-low.c (expand_omp_taskreg): Update SSA form.
6071 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
6072 aliases the lhs in a copy stmt.
6073 * tree-ssa-dse.c (struct address_walk_data): Remove.
6074 (memory_ssa_name_same): Likewise.
6075 (memory_address_same): Likewise.
6076 (get_kill_of_stmt_lhs): Likewise.
6077 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
6078 unused stores. Look through PHI nodes into post-dominated regions.
6079 (dse_optimize_stmt): Simplify. Properly remove stores.
6080 (tree_ssa_dse): Compute dominators.
6081 (execute_simple_dse): Remove.
6082 (pass_simple_dse): Likewise.
6083 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
6084 gimple_loaded_syms and gimple_stored_syms computation.
6085 * toplev.c (dump_memory_report): Dump alias and pta stats.
6086 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
6087 (vn_reference_eq): Likewise.
6088 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
6089 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
6090 valueize_vuses): Remove.
6091 (get_def_ref_stmt_vuses): Simplify. Rename to ...
6092 (get_def_ref_stmt_vuse): ... this.
6093 (vn_reference_lookup_2): New function.
6094 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
6095 walking equivalent vuses. Simplify.
6096 (vn_reference_lookup): Likewise.
6097 (vn_reference_insert): Likewise.
6098 (vn_reference_insert_pieces): Likewise.
6099 (visit_reference_op_call): Simplify.
6100 (visit_reference_op_load): Likewise.
6101 (visit_reference_op_store): Likewise.
6102 (init_scc_vn): Remove shared_lookup_vuses initialization.
6103 (free_scc_vn): Remove shared_lookup_vuses freeing.
6104 (sort_vuses, sort_vuses_heap): Remove.
6105 (get_ref_from_reference_ops): Export.
6106 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
6107 vector with single vuse pointer.
6108 (vn_reference_lookup_pieces, vn_reference_lookup,
6109 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
6110 (shared_vuses_from_stmt): Remove.
6111 (get_ref_from_reference_ops): Declare.
6112 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
6113 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
6114 memory-tag related code.
6115 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
6116 (likely_value): Add comment, skip static-chain of call statements.
6117 (surely_varying_stmt_p): Adjust.
6118 (gimplify_and_update_call_from_tree): Likewise.
6119 (execute_fold_all_builtins): Do not rebuild alias info.
6120 (gimplify_and_update_call_from_tree): Properly update VOPs.
6121 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
6122 (copy_ref_info): Remove memory-tag related code.
6123 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
6124 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
6125 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
6127 * tree-ssa-dom.c (gimple_p): Remove typedef.
6128 (eliminate_redundant_computations): Adjust.
6129 (record_equivalences_from_stmt): Likewise.
6130 (avail_expr_hash): Likewise.
6131 (avail_expr_eq): Likewise.
6132 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
6133 (stmt_makes_single_load): Likewise.
6134 (stmt_makes_single_store): Likewise.
6135 * tree-ssa-alias.c: Rewrite completely.
6136 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
6137 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
6138 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
6139 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
6140 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
6141 Remove public functions.
6142 (pass_reset_cc_flags): Remove.
6143 (pass_build_alias): Move ...
6144 * tree-ssa-structalias.c (pass_build_alias): ... here.
6145 * tree-ssa-alias.c (may_be_aliased): Move ...
6146 * tree-flow-inline.h (may_be_aliased): ... here.
6147 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
6148 count_uses_and_derefs): Move ...
6149 * gimple.c: ... here.
6150 * gimple.h (count_uses_and_derefs): Declare.
6151 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
6152 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
6153 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
6154 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
6155 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
6156 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
6157 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
6159 * tree-dfa.c (refs_may_alias_p): Move ...
6160 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
6161 * tree-ssa-alias.h: New file.
6162 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
6163 (statement_sink_location): Likewise.
6164 * opts.c (decode_options): Do not adjust max-aliased-vops or
6165 avg-aliased-vops values.
6166 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
6167 (TV_CALL_CLOBBER): Likewise.
6168 (TV_FLOW_SENSITIVE): Likewise.
6169 (TV_FLOW_INSENSITIVE): Likewise.
6170 (TV_MEMORY_PARTITIONING): Likewise.
6171 (TV_ALIAS_STMT_WALK): New timevar.
6172 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
6173 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
6174 (get_address_description): Remove memory-tag related code.
6175 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
6176 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
6177 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
6178 and immediate uses in statements. Document.
6179 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
6180 (dump_symbols): Remove.
6181 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
6182 * alias.c (get_deref_alias_set): New function split out from ...
6183 (get_alias_set): ... here.
6184 * alias.h (get_deref_alias_set): Declare.
6185 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
6186 type parameter. Remove restrict pointer handling. Create a
6187 ref-all pointer in case type-based alias sets do not conflict.
6188 (vect_analyze_data_refs): Remove SMT related code.
6189 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
6190 (vectorizable_load): Likewise.
6191 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
6192 (DR_SYMBOL_TAG, DR_VOPS): Remove.
6193 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
6194 Ignore vops and SMTs.
6195 (dr_analyze_alias): Likewise..
6196 (free_data_ref): Likewise.
6197 (create_data_ref): Likewise.
6198 (analyze_all_data_dependences): Likewise.
6199 (get_references_in_stmt): Adjust.
6200 * tree-flow-inline.h (gimple_aliases_computed_p,
6201 gimple_addressable_vars, gimple_call_clobbered_vars,
6202 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
6203 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
6204 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
6205 gimple_mem_ref_stats): Remove.
6206 (gimple_vop): New function.
6207 (op_iter_next_use): Remove vuses and mayuses cases.
6208 (op_iter_next_def): Remove vdefs case.
6209 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
6210 (clear_and_done_ssa_iter): Do not set removed fields.
6211 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
6212 Assert we are not iterating over vuses or vdefs if not also
6213 iterating over uses or defs.
6214 (op_iter_init_use): Likewise.
6215 (op_iter_init_def): Likewise.
6216 (op_iter_next_vdef): Remove.
6217 (op_iter_next_mustdef): Likewise.
6218 (op_iter_init_vdef): Likewise.
6219 (compare_ssa_operands_equal): Likewise.
6220 (link_use_stmts_after): Handle vuse operand.
6221 (is_call_used): Use is_call_clobbered.
6222 (is_call_clobbered): Global variables are always call clobbered,
6223 query the call-clobbers bitmap.
6224 (mark_call_clobbered): Ignore global variables.
6225 (clear_call_clobbered): Likewise.
6226 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
6227 virtual operands sanity check.
6228 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
6230 (TARGET_MEM_REF): Remove TMR_TAG operand.
6231 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
6232 Remove call-clobber related code.
6233 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
6234 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
6235 partitions or escape reason.
6236 (get_single_def_stmt, get_single_def_stmt_from_phi,
6237 get_single_def_stmt_with_phi): Remove.
6238 (dump_referenced_vars): Tidy.
6239 (get_ref_base_and_extent): Allow bare decls.
6240 (collect_dfa_stats): Adjust.
6241 * graphite.c (rename_variables_in_stmt): Adjust.
6242 (graphite_copy_stmts_from_block): Likewise.
6243 (translate_clast): Likewise.
6244 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
6246 (translate_vuse_through_block): Use the oracle.
6247 (phi_translate_1): Adjust.
6248 (value_dies_in_block_x): Use the oracle. Cache the outcome
6250 (valid_in_sets): Check if the VUSE for
6251 a REFERENCE is available.
6252 (eliminate): Do not remove stmts during elimination,
6253 instead queue and remove them afterwards.
6254 (do_pre): Do not rebuild alias info.
6255 (pass_pre): Run TODO_rebuild_alias before PRE.
6256 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
6257 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
6258 (mark_all_v_defs_stmt): Remove.
6259 (mark_all_v_defs_seq): Adjust.
6260 (sra_replace): Likewise.
6261 (scalarize_use): Likewise.
6262 (scalarize_copy): Likewise.
6263 (scalarize_init): Likewise.
6264 (scalarize_ldst): Likewise.
6265 (todoflags): Remove.
6266 (tree_sra): Do not rebuild alias info.
6267 (tree_sra_early): Adjust.
6268 (pass_sra): Run TODO_update_address_taken before SRA.
6269 * tree-predcom.c (set_alias_info): Remove.
6270 (prepare_initializers_chain): Do not call it.
6271 (mark_virtual_ops_for_renaming): Adjust.
6272 (mark_virtual_ops_for_renaming_list): Remove.
6273 (initialize_root_vars): Adjust.
6274 (initialize_root_vars_lm): Likewise.
6275 (prepare_initializers_chain): Likewise.
6276 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
6277 (may_propagate_copy_into_stmt): Likewise.
6278 (merge_alias_info): Do nothing for now.
6279 (propagate_tree_value_into_stmt): Adjust.
6280 (stmt_may_generate_copy): Likewise.
6281 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
6282 not mark symbols for renaming.
6283 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
6284 with the same statement, make sure to update the new pointed-to one.
6285 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
6286 call statements, do not mark symbols for renaming.
6287 (mark_operand_necessary): Dump something.
6288 (ref_may_be_aliased): New function.
6289 (mark_aliased_reaching_defs_necessary_1): New helper function.
6290 (mark_aliased_reaching_defs_necessary): Likewise.
6291 (mark_all_reaching_defs_necessary_1): Likewise.
6292 (mark_all_reaching_defs_necessary): Likewise.
6293 (propagate_necessity): Do not process virtual PHIs. For
6294 non-aliased loads mark all reaching definitions as necessary.
6295 For aliased loads and stores mark the immediate dominating
6296 aliased clobbers as necessary.
6297 (visited): New global static.
6298 (perform_tree_ssa_dce): Free visited bitmap after propagating
6300 (remove_dead_phis): Perform simple dead virtual PHI removal.
6301 (remove_dead_stmt): Properly unlink virtual operands when
6303 (eliminate_unnecessary_stmts): Schedule PHI removal after
6305 * tree-ssa-ter.c (is_replaceable_p): Adjust.
6306 (process_replaceable): Likewise.
6307 (find_replaceable_in_bb): Likewise.
6308 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
6309 based on the single gimple vop.
6310 (verify_flow_insensitive_alias_info): Remove.
6311 (verify_flow_sensitive_alias_info): Likewise.
6312 (verify_call_clobbering): Likewise.
6313 (verify_memory_partitions): Likewise.
6314 (verify_alias_info): Likewise.
6315 (verify_ssa): Adjust..
6316 (execute_update_addresses_taken): Export. Update SSA
6317 manually. Optimize only when optimizing. Use a local bitmap.
6318 (pass_update_address_taken): Remove TODO_update_ssa, add
6320 (pass_update_address_taken): Just use TODO_update_address_taken.
6321 (init_tree_ssa): Do not initialize addressable_vars.
6322 (verify_ssa): Verify new VUSE / VDEF properties.
6323 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
6324 Do not call verify_alias_info.
6325 (delete_tree_ssa): Clear the VUSE, VDEF operands.
6326 Do not free the loaded and stored syms bitmaps. Reset the escaped
6327 and callused solutions. Do not free addressable_vars.
6328 Remove memory-tag related code.
6329 (warn_uninitialized_var): Aliases are always available.
6330 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
6331 * lambda-code.c (can_put_in_inner_loop): Adjust.
6332 (can_put_after_inner_loop): Likewise.
6333 (perfect_nestify): Likewise.
6334 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
6335 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
6336 (vectorizable_conversion): Do not mark symbols for renaming.
6337 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
6338 (expand_call_inline): Unlink the calls virtual operands before
6340 (tree_function_versioning): Do not call update_ssa if we are not
6341 updating clones. Simplify.
6342 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
6343 (propagate_with_phi): Likewise..
6344 * tree-outof-ssa.c (create_temp): Remove memory tag and call
6345 clobber code. Assert we are not aliased or global.
6346 * tree-flow.h: Include tree-ssa-alias.h
6347 (enum escape_type): Remove.
6348 (struct mem_sym_stats_d): Likewise.
6349 (struct mem_ref_stats_d): Likewise.
6350 (struct gimple_df): Add vop member. Remove global_var,
6351 call_clobbered_vars, call_used_vars, addressable_vars,
6352 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
6353 escaped and callused members.
6354 (struct ptr_info_def): Remove all members, add points-to solution
6356 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
6357 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
6358 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
6359 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
6360 (tree-ssa-alias.o): Likewise.
6361 (toplev.o): Add tree-ssa-alias.h
6362 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
6363 * gimple.c (gimple_set_bb): Fix off-by-one error.
6364 (is_gimple_reg): Do not handle memory tags.
6365 (gimple_copy): Also copy virtual operands.
6366 Delay updating the statement. Do not reset loaded and stored syms.
6367 (gimple_set_stored_syms): Remove.
6368 (gimple_set_loaded_syms): Likewise.
6369 (gimple_call_copy_skip_args): Copy the virtual operands
6370 and mark the new statement modified.
6371 * tree-ssa-structalias.c (may_alias_p): Remove.
6372 (set_uids_in_ptset): Take the alias set to prune with as
6373 parameter. Fold in the alias test of may_alias_p.
6374 (compute_points_to_sets): Compute whether a ptr is dereferenced
6376 (process_constraint): Deal with &ANYTHING on the lhs, reject all
6377 other ADDRESSOF constraints on the lhs.
6378 (get_constraint_for_component_ref): Assert that we don't get
6379 ADDRESSOF constraints from the base of the reference.
6380 Properly generate UNKNOWN_OFFSET for DEREF if needed.
6381 (struct variable_info): Remove collapsed_to member.
6382 (get_varinfo_fc): Remove.
6383 (new_var_info): Do not set collapsed_to.
6384 (dump_constraint): Do not follow cycles.
6385 (dump_constraint_graph): Likewise.
6386 (build_pred_graph): Likewise.
6387 (build_succ_graph): Likewise.
6388 (rewrite_constraints): Likewise.
6389 (do_simple_structure_copy): Remove.
6390 (do_rhs_deref_structure_copy): Remove.
6391 (do_lhs_deref_structure_copy): Remove.
6392 (collapse_rest_of_var): Remove.
6393 (do_structure_copy): Re-implement.
6394 (pta_stats): New global variable.
6395 (dump_pta_stats): New function.
6396 (struct constraint_expr): Make offset signed.
6397 (UNKNOWN_OFFSET): Define special value.
6398 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
6399 (solution_set_expand): New helper function split out from ...
6400 (do_sd_constraint): ... here.
6401 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
6402 (do_ds_constraint): Likewise.
6403 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
6404 and CALLUSED = *CALLUSED.
6405 (set_union_with_increment): Make inc argument signed.
6406 (type_safe): Remove.
6407 (get_constraint_for_ptr_offset): Handle unknown and negative
6409 (first_vi_for_offset): Handle offsets before start. Bail
6410 out early for offsets beyond the variable extent.
6411 (first_or_preceding_vi_for_offset): New function.
6412 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
6413 Together with ESCAPED = *ESCAPED this properly computes reachability.
6414 (find_what_var_points_to): New function.
6415 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
6416 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
6417 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
6418 pt_solutions_intersect): New functions.
6419 (compute_call_used_vars): Remove.
6420 (compute_may_aliases): New main entry into PTA computation.
6421 * gimple.h (gimple_p): New typedef.
6422 (struct gimple_statement_base): Remove references_memory_p.
6423 (struct gimple_statement_with_memory_ops_base): Remove
6424 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
6426 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
6427 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
6428 gimple_set_references_memory): Remove.
6429 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
6430 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
6432 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
6433 (verify_expr): Allow RESULT_DECL.
6434 (gimple_duplicate_bb): Do not copy virtual operands.
6435 (gimple_duplicate_sese_region): Adjust.
6436 (gimple_duplicate_sese_tail): Likewise.
6437 (mark_virtual_ops_in_region): Remove.
6438 (move_sese_region_to_fn): Do not call it.
6439 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
6440 and pass_simple_dse.
6441 (execute_function_todo): Handle TODO_update_address_taken,
6442 call execute_update_addresses_taken for TODO_rebuild_alias.
6443 (execute_todo): Adjust.
6444 (execute_one_pass): Init dump files early.
6445 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
6447 (create_general_new_stmt): Clear vops.
6448 * tree-ssa-reassoc.c (get_rank): Adjust.
6449 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
6450 symbols for renaming.
6451 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
6452 (PARAM_AVG_ALIASED_VOPS): Likewise.
6453 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
6454 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
6455 * tree-ssa-operands.c: Simplify for new virtual operand representation.
6456 (operand_build_cmp, copy_virtual_operands,
6457 create_ssa_artificial_load_stmt, add_to_addressable_set,
6458 gimple_add_to_addresses_taken): Remove public functions.
6459 (unlink_stmt_vdef): New function.
6461 2009-04-03 Alan Modra <amodra@bigpond.net.au>
6463 * config.gcc (powerpc-*-linux*): Merge variants.
6465 2009-04-02 Chao-ying Fu <fu@mips.com>
6466 James Grosbach <james.grosbach@microchip.com>
6468 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
6469 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
6471 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
6472 keep_interrupts_masked_p, use_debug_exception_return_p.
6473 (mips_attribute_table): Add interrupt, use_shadow_register_set,
6474 keep_interrupts_masked, use_debug_exception_return.
6475 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
6476 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
6478 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
6479 (mips_print_operand): Process COP0 registers to print $0 .. $31
6480 correctly for GAS to process.
6481 (mips_interrupt_extra_call_saved_reg_p): New function.
6482 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
6484 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
6485 (mips_compute_frame_info): Add supports for interrupt context that
6486 includes doubleword accumulators and COP0 registers.
6487 (mips_for_each_saved_acc): New function.
6488 (mips_for_each_saved_gpr_and_fpr): Change the function name from
6489 mips_for_each_saved_reg.
6490 (mips_save_reg): Save accumulators.
6491 (mips_kernel_reg_p): A new for_each_rtx callback.
6492 (mips_expand_prologue): Support interrupt handlers.
6493 (mips_restore_reg): Restore accumulators.
6494 (mips_expand_epilogue): Support interrupt handlers.
6495 (mips_can_use_return_insn): Return false for interrupt handlers.
6496 (mips_epilogue_uses): New function.
6497 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
6498 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
6499 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
6500 cop0_move): New instructions.
6501 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
6502 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
6504 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
6506 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
6507 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
6508 interrupt handlers, we use K0 as the temporary register.
6509 (EPILOGUE_USES): Change to a function call.
6510 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
6511 handlers, we use K0 as the temporary register.
6513 * doc/extend.texi (Function Attributes): Document interrupt,
6514 use_shadow_register_set, keep_interrupts_masked,
6515 use_debug_exception_return for MIPS attributes.
6517 2009-04-03 Alan Modra <amodra@bigpond.net.au>
6519 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
6520 Remove a number of t-files from tmake_file.
6521 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
6522 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
6523 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
6524 target_prototype, not TARGET_PROTOTYPE.
6525 (LINK_OS_GNU_SPEC): Define.
6526 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
6527 and darwin-ldoubdle.c.
6529 2009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
6532 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
6533 (cpp_options): Ditto.
6534 (default_compilers): Ditto.
6535 (display_help): Ditto.
6536 (process_command): Ditto.
6538 (set_input): Use lbasename instead of duplicate code.
6539 (save_temps_prefix): New static for -save-temps=obj.
6540 (save_temps_length): Ditto.
6542 * doc/invoke.texi (-save-temps=obj): Document new variant to
6545 2009-04-02 Jeff Law <law@redhat.com>
6547 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
6550 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
6552 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
6553 * configure: Regenerated.
6555 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
6557 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
6558 share the argument list.
6560 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
6564 2009-02-12 Diego Novillo <dnovillo@google.com>
6566 * varpool.c (debug_varpool): New.
6567 * cgraph.h (debug_varpool): Declare.
6569 2009-04-02 Jan Hubicka <jh@suse.cz>
6571 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
6574 2009-04-02 H.J. Lu <hongjiu.lu@intel.com>
6576 * config/i386/i386.c (ix86_abi): Move initialization to ...
6577 (override_options): Here.
6579 2009-04-02 Christian Bruel <christian.bruel@st.com>
6581 * config/sh/sh.c (sh_dwarf_register_span): New function.
6582 (TARGET_DWARF_REGISTER_SPAN): Define.
6583 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
6585 2009-04-02 Ira Rosen <irar@il.ibm.com>
6587 PR tree-optimization/39595
6588 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
6589 interleaved loads group is not greater than the SLP group size.
6591 2009-04-02 Rafael Avila de Espindola <espindola@google.com>
6593 * builtins.c (is_builtin_name): New.
6594 (called_as_built_in): Use is_builtin_name.
6595 * tree.h (is_builtin_name): New.
6596 * varasm.c (incorporeal_function_p): Use is_builtin_name
6598 2009-04-02 Andrew Stubbs <ams@codesourcery.com>
6600 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
6602 2009-04-02 Dodji Seketeli <dodji@redhat.com>
6605 * c-decl.c (clone_underlying_type): Move this ...
6606 * c-common.c (set_underlying_type): ... here.
6607 Also, make sure the function properly sets TYPE_STUB_DECL() on
6608 the newly created typedef variant type.
6609 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
6610 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
6613 2009-04-02 Richard Guenther <rguenther@suse.de>
6615 PR tree-optimization/37221
6616 * tree-flow.h (degenerate_phi_result): Declare.
6617 * tree-ssa-dom.c (degenerate_phi_result): Export.
6618 * tree-scalar-evolution.c (analyze_initial_condition): If
6619 the initial condition is defined by a degenerate PHI node
6620 use the degenerate value.
6622 2009-04-01 Eric Botcazou <ebotcazou@adacore.com>
6624 PR rtl-optimization/39588
6625 * combine.c (merge_outer_ops): Do not set the constant when this
6627 (simplify_shift_const_1): Do not modify it either in this case.
6629 2009-04-01 Steven Bosscher <steven@gcc.gnu.org>
6631 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
6632 tuning is deprecated if -mtune value is set to an Itanium1 variant.
6634 2009-04-01 Janis Johnson <janis187@us.ibm.com>
6637 * c-lex.c (interpret_float): Default (no suffix) is double.
6639 2009-04-1 Xinliang David Li <davidxl@google.com>
6641 * config/i386/i386.c (legitimate_constant_p): Recognize
6642 all one vector constant.
6644 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6646 * config/vax/vax.c: Add #includes to silence warnings.
6647 Change #include order to silence two warnings.
6649 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6651 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
6652 (ASM_SPEC): Pass -k to the assembler for PIC code.
6654 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6656 * config.gcc: Add vax-*-linux* to the switch.
6657 * config/vax/linux.h: New file. (TARGET_VERSION,
6658 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
6660 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6662 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
6663 Use predicate macros instead of GET_CODE() == foo.
6664 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
6665 ashlsi3, rotrsi3, <unnamed>): Likewise.
6667 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6669 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
6670 jbbccihi, jbbccisi): Remova trailing whitespace.
6671 * config/vax/constraints.md: Likewise.
6672 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
6673 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
6674 * config/vax/predicates.md: Likewise.
6675 * config/vax/vax.c (print_operand_address, vax_output_int_move,
6676 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
6677 * config/vax/vax.h: Likewise.
6678 * config/vax/vax.md (nonlocal_goto): Likewise.
6680 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6682 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
6683 (indirectable_address_p, adjacent_operands_p): Add spaces around
6685 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
6687 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6689 * config/vax/vax.c (legitimate_constant_address_p,
6690 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
6691 index_term_p, reg_plus_index_p, legitimate_address_p,
6692 vax_mode_dependent_address_p): Update comments to match functions
6693 modified by the recent int->bool conversion.
6695 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6697 * config/vax/builtins.md: Update copyright message.
6698 * config/vax/constraints.md: Likewise.
6699 * config/vax/netbsd-elf.h: Likewise.
6700 * config/vax/predicates.md: Likewise.
6701 * config/vax/vax-protos.h: Likewise.
6702 * config/vax/vax.c: Likewise.
6703 * config/vax/vax.h: Likewise.
6704 * config/vax/vax.md: Likewise.
6705 * config/vax/vax.opt: Likewise.
6707 2009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
6709 * config/vax/builtins.md (ffssi2, ffssi2_internal,
6710 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
6711 * config/vax/constraints.md (B, R): Likewise.
6712 * config/vax/predicates.md (external_memory_operand,
6713 nonimmediate_addsub_di_operand): Likewise.
6714 * config/vax/vax.c (vax_output_int_add): Likewise.
6715 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
6716 untyped_call): Likewise.
6718 2009-04-01 Matt Thomas <matt@3am-software.com>
6720 * config/vax/predicates.md: New file.
6721 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
6722 external_const_operand, nonsymbolic_operand, external_memory_operand,
6723 indirect_memory_operand, indexed_memory_operand,
6724 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
6725 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
6727 * config/vax/constraints.md: New file.
6728 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
6730 * config/vax/builtins.md: New file.
6731 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
6732 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
6734 * config/vax/vax.opt (mqmath): Add option.
6735 * config/vax/vax.md (isfx): Extend with DI.
6736 (VAXintQH, VAXintQHSD): Define.
6737 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
6738 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
6739 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
6740 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
6741 (movdi): Update constraints and use vax_output_int_move().
6742 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
6743 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
6744 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
6745 nonlocal_goto): New.
6746 (mov<mode>): Extend accepted operand types.
6747 (subdi3_old): Rename from subdi3, change update constraints and use
6748 a new implementation.
6749 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
6750 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
6751 MOVE_RATIO, CLEAR_RATIO): Define.
6752 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
6753 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
6754 (PRINT_OPERAND): Redefine using a function instead of inlined code.
6755 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
6756 (split_quadword_operands): Make static and really allow variable
6758 (print_operand_address): Update for PIC generation.
6759 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
6760 indexable_address_p, fixup_mathdi_operand,
6761 vax_expand_addsub_di_operands, adjacent_operands_p): New.
6762 (vax_float_literal, legitimate_constant_p,
6763 indirectable_constant_address_p, index_term_p,
6764 reg_plus_index_p): Return bool instead of int.
6765 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
6767 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
6769 (vax_output_conditional_branch): Indent.
6770 (legitimate_constant_address_p, indirectable_constant_address_p,
6771 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
6772 vax_mode_dependent_address_p): Return bool instead of int, update for
6774 * config/vax/vax-protos.h (legitimate_constant_address_p,
6775 legitimate_constant_p, legitimate_address_p,
6776 vax_mode_dependent_address_p): Change declaration to bool.
6777 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
6778 vax_expand_addsub_di_operands, vax_output_int_subtract,
6779 vax_output_movmemsi): Declare.
6780 (split_quadword_operands, vax_float_literal): Delete declaration.
6781 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
6782 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
6783 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
6784 ASM_OUTPUT_DWARF_PCREL): Define.
6785 (ASM_SPEC): Change definition to allow PIC generation.
6787 2009-04-01 Steve Ellcey <sje@cup.hp.com>
6789 * doc/sourcebuild.texi: Update front-end requirements.
6791 2009-04-01 Jakub Jelinek <jakub@redhat.com>
6794 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
6795 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
6796 (booldi3_internal3): Use boolean_or_operator instead of
6799 2009-04-01 Joseph Myers <joseph@codesourcery.com>
6802 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
6803 declarator whose size is not an integer constant expression but
6804 folds to an integer constant, then treat it as a constant
6807 2009-04-01 Richard Guenther <rguenther@suse.de>
6809 * fold-const.c (fold_plusminus_mult_expr): Do not fold
6810 i * 4 + 2 to (i * 2 + 1) * 2.
6812 2009-04-01 Jakub Jelinek <jakub@redhat.com>
6815 * c-parser.c (c_parser_asm_statement): Skip until close paren and
6816 return if c_parser_asm_string_literal returned NULL.
6818 2009-04-01 Nick Clifton <nickc@redhat.com>
6820 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
6822 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
6823 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
6824 other typedefs to avoid conflicts with libgcc2.c. Define labels
6825 to gain 16-bit bit-manipulation functions from libgcc2.c and then
6827 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
6828 to gain 16-bit trapping arithmetic functions from libgcc2.c and
6831 2009-04-01 Rafael Avila de Espindola <espindola@google.com>
6833 * varasm.c (default_function_rodata_section): Declare DOT as
6836 2009-04-01 Kai Tietz <kai.tietz@onevision.com>
6837 Andrey Galkin <agalkin@hypercom.com>
6840 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
6841 Make object_name unique for each process.
6843 2009-04-01 Jakub Jelinek <jakub@redhat.com>
6846 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
6847 addressable variables in the parallel that could go out of scope while
6848 running queued tasks.
6850 2009-04-01 Anatoly Sokolov <aesok@post.ru>
6852 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
6853 (CASE_VALUES_THRESHOLD): Redefine.
6854 * config/avr/avr.c (avr_override_options): Remove initialization of
6855 avr_case_values_threshold variable.
6856 (avr_case_values_threshold): Remove variable. Add new function.
6857 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
6858 * config/avr/avr.opt (mno-tablejump): Remove option.
6859 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
6861 2009-04-01 DJ Delorie <dj@redhat.com>
6863 * varasm.c (default_function_rodata_section): Don't assume
6864 anything about where the first '.' in the section name is.
6866 2009-04-01 Alan Modra <amodra@bigpond.net.au>
6868 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
6869 rs6000_emit_stack_tie.
6871 2009-03-31 Ian Lance Taylor <iant@google.com>
6873 * tree-eh.c (tree_remove_unreachable_handlers): Compare
6874 gimple_code with GIMPLE_RESX, not RESX.
6876 2009-03-31 Joseph Myers <joseph@codesourcery.com>
6878 * c-common.c (c_get_ident): New.
6879 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
6881 2009-04-01 Ben Elliston <bje@au.ibm.com>
6883 * config/rs6000/sysv4.opt (msdata): Improve option description.
6885 2009-03-31 Steve Ellcey <sje@cup.hp.com>
6887 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
6888 (divdf3_internal_lat): Remove.
6889 (divxf3_internal_lat): Remove.
6890 (divxf3_internal_thr): Remove.
6891 (divxf): Use divxf3_internal.
6892 * config/ia64/div.md (divsf3_internal_lat): New.
6893 (divdf3_internal_lat): New.
6894 (divxf3_internal): New.
6896 2009-03-31 Joseph Myers <joseph@codesourcery.com>
6899 * Makefile.in (USE_GCC_STDINT): Define.
6900 (stmp-int-hdrs): Install stdint.h if applicable.
6901 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
6903 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
6904 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
6905 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
6906 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
6907 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
6908 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
6909 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
6910 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
6911 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
6912 (c_common_nodes_and_builtins): Initialize
6913 underlying_wchar_type_node. Do not initialize
6914 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
6915 nodes for new types.
6916 (c_stddef_cpp_builtins): Define macros for new types.
6917 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
6919 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
6920 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
6921 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
6922 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
6923 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
6924 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
6925 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
6926 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
6927 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
6928 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
6929 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
6930 int16_type_node, int32_type_node, int64_type_node,
6931 uint8_type_node, uint16_type_node, c_uint32_type_node,
6932 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
6933 int_least32_type_node, int_least64_type_node,
6934 uint_least8_type_node, uint_least16_type_node,
6935 uint_least32_type_node, uint_least64_type_node,
6936 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
6937 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
6938 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
6939 uintptr_type_node): Define.
6940 * c-cppbuiltin.c (builtin_define_constants,
6941 builtin_define_type_minmax): New.
6942 (builtin_define_stdint_macros): Define more macros.
6943 (c_cpp_builtins): Define more limit macros.
6945 (builtin_define_type_max): Define in terms of
6946 builtin_define_type_minmax. Remove is_long parameter. All
6948 * config.gcc (use_gcc_stdint): Define.
6949 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
6950 Add newlib-stdint.h for generic targets.
6951 * config/glibc-stdint.h, config/newlib-stdint.h,
6952 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
6953 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
6954 * config/score/score.h (UINTPTR_TYPE): Define.
6955 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
6956 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
6957 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
6958 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
6959 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
6960 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
6961 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
6962 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
6963 * config/spu/spu.h (STDINT_LONG32): Define.
6964 * configure.ac (use_gcc_stdint): Substitute.
6965 * configure: Regenerate.
6966 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
6967 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
6968 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
6969 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
6970 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
6971 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
6972 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
6973 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
6974 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
6975 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
6976 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
6977 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
6978 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
6979 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
6980 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
6981 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
6982 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
6983 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
6984 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
6985 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
6986 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
6987 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
6988 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
6989 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
6990 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
6991 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
6992 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
6993 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
6994 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
6996 2009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
6998 * loop-iv.c (suitable_set_for_replacement): Renamed from
6999 simplify_using_assignment; changed to return bool and to accept new
7000 args DEST and SRC. Return true iff we find a source/destination pair
7001 that can be used to make a replacement, and fill SRC and DEST if so.
7002 Remove arg ALTERED. Don't deal with altered regs here. All callers
7004 (simplify_using_initial_values): Deal with altered regs here and track
7005 more precisely the effect they have on the validity of our expression.
7007 * loop-iv.c (simplify_using_condition): A condition of the form
7008 (EQ REG CONST) can be used to simply make a substitution.
7009 (simplify_using_initial_values): Keep track of conditions we have seen
7010 and keep using them to simplify new expressions, while applying the
7011 same substitutions to them as to the expression.
7013 * simplify-rtx.c (simplify_relational_operation_1): Simplify
7014 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
7017 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
7018 changed. Use this when trying to improve the upper bound.
7019 Generate the comparison by using simplify_gen_relational.
7021 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
7023 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
7025 (simplify_using_assignment, simplify_using_initial_values): Call
7026 replace_in_expr to make replacements. Call replace_single_def_regs
7027 once on the initial version of the expression.
7029 2009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7032 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
7034 2009-03-31 Richard Guenther <rguenther@suse.de>
7037 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
7038 equality comparisons. Fold C - X CMP X if C % 2 == 1.
7040 2009-03-31 Richard Guenther <rguenther@suse.de>
7042 * tree.h (div_if_zero_remainder): Declare.
7043 * fold-const.c (div_if_zero_remainder): Export.
7044 * tree-ssa-forwprop.c
7045 (forward_propagate_addr_into_variable_array_index): Handle
7046 constant array index addition outside of the variable index.
7048 2009-03-31 Joseph Myers <joseph@codesourcery.com>
7051 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
7052 define_splits, floatunssi<mode>2): Require x87 conversions from
7053 DImode to be permitted.
7055 2009-03-31 Joseph Myers <joseph@codesourcery.com>
7057 PR preprocessor/15638
7058 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
7060 2009-03-31 Richard Guenther <rguenther@suse.de>
7064 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
7065 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
7066 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
7067 a separate statement.
7068 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
7069 (lookup_tmp_var): Likewise.
7070 (is_gimple_formal_tmp_or_call_rhs): Remove.
7071 (is_gimple_reg_or_call_rhs): Rename to ...
7072 (is_gimple_reg_rhs_or_call): ... this.
7073 (is_gimple_mem_or_call_rhs): Rename to ...
7074 (is_gimple_mem_rhs_or_call): ... this.
7075 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
7076 DECL_GIMPLE_REG_P only if is_formal is true.
7077 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
7078 for non-proper post-modify expression gimplification.
7079 (gimplify_self_mod_expr): For post-modify expressions gimplify
7080 the lvalue to a minimal lvalue.
7081 (rhs_predicate_for): Remove formal temp case.
7082 (gimplify_modify_expr_rhs): Likewise.
7083 (gimplify_addr_expr): Use is_gimple_reg.
7084 (gimplify_expr): Remove formal temp cases.
7085 (gimple_regimplify_operands): Likewise.
7086 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
7087 and FILTER_EXPR like constants.
7088 * gimple.c (walk_gimple_op): Fix val_only initialization, use
7090 (is_gimple_formal_tmp_rhs): Remove.
7091 (is_gimple_reg_rhs): Remove special casing.
7092 (is_gimple_mem_rhs): Fix.
7093 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
7094 (is_gimple_formal_tmp_var): Remove.
7095 (is_gimple_formal_tmp_reg): Likewise.
7096 (is_gimple_min_lval): Allow invariant component ref parts.
7097 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
7098 is_gimple_formal_tmp_reg): Remove declarations.
7099 * tree-cfg.c (verify_expr): Verify that variables with address
7100 taken do not have DECL_GIMPLE_REG_P set.
7101 * tree-mudflap.c (mf_build_check_statement_for): Use
7102 force_gimple_operand instead of gimplify_expr.
7104 2009-03-31 Ayal Zaks <zaks@il.ibm.com>
7106 * modulo-sched.c (sms_schedule_by_order): Pass the actual
7107 schedulable rows to compute_split_row.
7109 2009-03-31 Ben Elliston <bje@au.ibm.com>
7112 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
7115 2009-03-31 Alan Modra <amodra@bigpond.net.au>
7117 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
7118 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
7119 * configure: Regenerate.
7120 * config.in: Regenerate.
7121 * config/rs6000/rs6000.opt (mtls-markers): Add.
7122 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
7123 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
7124 (tls_ld_aix, tls_ld_sysv): Likewise.
7125 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
7126 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
7128 2009-03-31 Alan Modra <amodra@bigpond.net.au>
7130 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
7132 2009-03-30 Jan Hubicka <jh@suse.cz>
7134 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
7136 (tree_remove_unreachable_handlers): Cleanup EH predecestor
7137 detection and label handling.
7139 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
7141 * ira-int.h (ira_allocno): Rename left_conflicts_num to
7142 left_conflicts_size.
7143 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
7144 ALLOCNO_LEFT_CONFLICTS_SIZE.
7146 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
7147 remove_allocno_from_bucket_and_push,
7148 allocno_spill_priority_compare, push_allocnos_to_stack,
7149 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
7150 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
7151 (setup_allocno_left_conflicts_num): Ditto. Rename to
7152 setup_allocno_left_conflicts_size.
7153 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
7154 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
7155 setup_allocno_left_conflicts_size instead of
7156 setup_allocno_left_conflicts_num.
7158 * ira-build.c (ira_create_allocno): Use
7159 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
7160 ALLOCNO_LEFT_CONFLICTS_NUM.
7162 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
7164 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
7165 instead of DF_LR_OUT.
7167 * ira-lives.c (process_bb_node_lives): Ditto.
7169 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
7170 instead of DF_LR_{OUT,IN}.
7172 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
7174 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
7176 2009-03-30 Jan Hubicka <jh@suse.cz>
7178 * except.c (label_to_region_map): Fix thinko.
7180 2009-03-30 Steve Ellcey <sje@cup.hp.com>
7183 * tree.h (tree_find_value): New declaration.
7184 * tree.c (tree_find_value): New function.
7185 * varasm.c (assemble_external): Avoid duplicate entries on lists.
7187 2009-03-30 Jakub Jelinek <jakub@redhat.com>
7190 * c-decl.c (struct c_binding): Add locus field.
7191 (bind): Add locus argument, set locus field from it.
7192 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
7193 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
7194 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
7195 implicitly_declare, undeclared_variable, lookup_label,
7196 declare_label, c_make_fname_decl, c_builtin_function,
7197 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
7200 2009-03-30 H.J. Lu <hongjiu.lu@intel.com>
7203 * config/i386/i386.c (classify_argument): Check total size of
7206 2009-03-30 Martin Jambor <mjambor@suse.cz>
7208 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
7209 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
7210 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
7213 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
7214 seen_variable_array_ref while also traversing a union.
7216 * tree-inline.c (optimize_inline_calls): Do not call
7217 cgraph_node_remove_callees.
7218 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
7219 (pass_remove_cgraph_callee_edges): New variable.
7220 * passes.c (init_optimization_passes): Add
7221 pass_remove_cgraph_callee_edges after early inlining and before all
7222 late intraprocedural passes.
7224 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
7226 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
7228 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
7231 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
7233 * combine.c (simplify_comparison): Use have_insn_for.
7234 * dojump.c (do_jump): Likewise.
7236 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
7238 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
7239 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
7240 sparc_compare_op0 like sparc_compare_emitted used to be handled.
7241 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
7242 instead of sparc_compare_emitted.
7243 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
7244 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
7245 instead of sparc_compare_emitted.
7247 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
7249 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
7250 enter/exit cfglayout mode.
7251 (pass_partition_block): Require it.
7252 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
7253 (combine_instructions): Track basic blocks instead of labels.
7254 (update_cfg_for_uncondjump): New.
7255 (try_combine): Use it. Update jumps after rescanning.
7256 (pass_combine): Require PROP_cfglayout.
7257 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
7259 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
7261 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
7262 Provide/destroy PROP_cfglayout respectively.
7263 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
7264 * tree-pass.h (PROP_cfglayout): New.
7266 2009-03-30 Paolo Bonzini <bonzini@gnu.org>
7268 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
7269 fold_convert_const_fixed_from_fixed,
7270 fold_convert_const_fixed_from_int,
7271 fold_convert_const_fixed_from_real, fold_negate_const): Do not
7272 set TREE_CONSTANT_OVERFLOW.
7273 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
7274 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
7276 2009-03-30 Ira Rosen <irar@il.ibm.com>
7278 * tree-vect-loop-manip.c: New file.
7279 * tree-vectorizer.c: Update documentation and included files.
7280 (vect_loop_location): Make extern.
7281 (rename_use_op): Move to tree-vect-loop-manip.c
7282 (rename_variables_in_bb, rename_variables_in_loop,
7283 slpeel_update_phis_for_duplicate_loop,
7284 slpeel_update_phi_nodes_for_guard1,
7285 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
7286 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
7287 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
7288 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
7289 find_loop_location): Likewise.
7290 (new_stmt_vec_info): Move to tree-vect-stmts.c.
7291 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
7292 get_vectype_for_scalar_type, vect_is_simple_use,
7293 supportable_widening_operation, supportable_narrowing_operation):
7295 (bb_in_loop_p): Move to tree-vect-loop.c.
7296 (new_loop_vec_info, destroy_loop_vec_info,
7297 reduction_code_for_scalar_code, report_vect_op,
7298 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
7299 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
7300 (vect_supportable_dr_alignment): Likewise.
7301 * tree-vectorizer.h (tree-data-ref.h): Include.
7302 (vect_loop_location): Declare.
7303 Reorganize function declarations according to the new file structure.
7304 * tree-vect-loop.c: New file.
7305 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
7306 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
7307 * tree-vect-data-refs.c: New file.
7308 * tree-vect-patterns.c (timevar.h): Don't include.
7309 * tree-vect-stmts.c: New file.
7310 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
7311 tree-vect-slp.c, tree-vect-loop.c.
7312 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
7313 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
7314 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
7315 (tree-vect-analyze.o): Remove.
7316 (tree-vect-transform.o): Likewise.
7317 (tree-vect-data-refs.o): Add rule.
7318 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
7319 tree-vect-slp.o): Likewise.
7320 (tree-vect-patterns.o): Remove redundant dependencies.
7321 (tree-vectorizer.o): Likewise.
7322 * tree-vect-slp.c: New file.
7324 2009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7326 * optc-gen.awk: Warn if an option flag has multiple different
7329 2009-03-30 Sebastian Pop <sebastian.pop@amd.com>
7331 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
7332 -floop-block): Document dependences on PPL, CLooG and Graphite.
7334 2009-03-30 Joseph Myers <joseph@codesourcery.com>
7336 PR rtl-optimization/323
7337 * c-common.c (c_fully_fold, convert_and_check,
7338 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
7339 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
7340 * c-common.def (EXCESS_PRECISION_EXPR): New.
7341 * c-cppbuiltin.c (builtin_define_float_constants): Define
7342 constants with enough digits for long double.
7343 * c-lex.c (interpret_float): Interpret constant with excess
7344 precision where appropriate.
7345 * c-opts.c (c_common_post_options): Set
7346 flag_excess_precision_cmdline. Give an error for
7347 -fexcess-precision=standard for C++ for processors where the
7348 option is significant.
7349 * c-parser.c (c_parser_conditional_expression): Handle excess
7350 precision in condition.
7351 * c-typeck.c (convert_arguments): Handle arguments with excess
7353 (build_unary_op): Move excess precision outside operation.
7354 (build_conditional_expr): Likewise.
7355 (build_compound_expr): Likewise.
7356 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
7357 (build_modify_expr): Handle excess precision in RHS.
7358 (convert_for_assignment): Handle excess precision in converted
7360 (digest_init, output_init_element, process_init_element): Handle
7361 excess precision in initializer.
7362 (c_finish_return): Handle excess precision in return value.
7363 (build_binary_op): Handle excess precision in operands and add
7364 excess precision as needed for operation.
7365 * common.opt (-fexcess-precision=): New option.
7366 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
7367 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
7368 For standard excess precision, output explicit conversion to and
7369 truncation from XFmode.
7370 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
7371 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
7372 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
7373 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
7374 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
7375 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
7376 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
7377 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
7378 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
7379 define_splits, sqrt<mode>2): Disable where appropriate for
7380 standard excess precision.
7381 * convert.c (convert_to_real): Do not shorten arithmetic to type
7382 for which excess precision would be used.
7383 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
7384 * doc/invoke.texi (-fexcess-precision=): Document option.
7385 (-mfpmath=): Correct index entry.
7386 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
7387 flag_excess_precision): New.
7388 * langhooks.c (lhd_post_options): Set
7389 flag_excess_precision_cmdline.
7390 * opts.c (common_handle_option): Handle -fexcess-precision=.
7391 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
7392 init_excess_precision): New.
7393 (lang_dependent_init_target): Call init_excess_precision.
7394 * tree.c (excess_precision_type): New.
7395 * tree.h (excess_precision_type): Declare.
7397 2009-03-30 Joseph Myers <joseph@codesourcery.com>
7400 * c-typeck.c (build_component_ref): Do not copy qualifiers from
7401 non-lvalue to component.
7403 2009-03-29 Joseph Myers <joseph@codesourcery.com>
7405 PR preprocessor/34695
7406 * Makefile.in (c-opts.o): Depend on c-tree.h.
7407 * c-common.c: Move down include of diagnostic.h.
7408 (done_lexing, c_cpp_error): New.
7409 * c-common.h (done_lexing): Declare.
7410 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
7412 * c-opts.c: Include c-tree.h.
7413 (c_common_init_options): Set preprocessor error callback.
7414 (c_common_handle_option): Do not set preprocessor
7415 inhibit_warnings, warnings_are_errors, warn_system_headers,
7416 pedantic_errors or inhibit_warnings flags.
7417 (c_common_post_options): Do not check cpp_errors (parse_in).
7418 (c_common_finish): Do not output dependencies if there were
7419 errors. Do not check return value of cpp_finish.
7420 * c-ppoutput.c (pp_file_change): Set input_location.
7421 * c-tree.h (c_cpp_error): Declare.
7422 * diagnostic.c (diagnostic_set_info_translated): Also initialize
7424 (diagnostic_build_prefix): Check override_column.
7425 * diagnostic.h (diagnostic_info): Add override_column field.
7426 (diagnostic_override_column): Define.
7428 2009-03-28 Paolo Bonzini <bonzini@gnu.org>
7430 * c-common.c (c_expand_expr, c_staticp): Remove.
7431 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
7432 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
7433 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
7434 * c-gimplify.c (gimplify_compound_literal_expr,
7435 optimize_compound_literals_in_ctor): Remove.
7436 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
7437 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
7438 * c-semantics.c (emit_local_var): Remove.
7440 * langhooks-def.h (lhd_expand_expr): Remove.
7441 * langhooks.c (lhd_expand_expr): Remove.
7442 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
7444 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
7445 handling from c-semantics.c; don't call into langhook.
7446 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
7447 * gimplify.c (gimplify_compound_literal_expr,
7448 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
7449 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
7450 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
7451 as was done in c-gimplify.c.
7452 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
7453 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
7454 Move from c-common.h.
7455 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
7457 * tree.c (staticp): Do not call langhook.
7458 * langhooks.c (lhd_staticp): Delete.
7459 * langhooks-def.h (lhd_staticp): Delete prototype.
7460 (LANG_HOOKS_STATICP): Delete.
7461 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
7463 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
7464 instead of DECL_STMTs.
7466 2009-03-29 Joseph Myers <joseph@codesourcery.com>
7474 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
7476 (fold_call_expr): Return a NOP_EXPR from folding rather than the
7477 contained expression.
7478 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
7479 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
7480 conditional expressions for C.
7481 (decl_constant_value_for_optimization): Move from
7482 decl_constant_value_for_broken_optimization in c-typeck.c. Check
7483 whether optimizing and that the expression is a VAR_DECL not of
7484 array type instead of doing such checks in the caller. Do not
7485 check pedantic. Call gcc_unreachable for C++.
7486 * c-common.def (C_MAYBE_CONST_EXPR): New.
7487 * c-common.h (c_fully_fold, c_save_expr,
7488 decl_constant_value_for_optimization): New prototypes.
7489 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
7490 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
7491 EXPR_INT_CONST_OPERANDS): Define.
7492 * c-convert.c (convert): Strip nops from expression.
7493 * c-decl.c (groktypename): Take extra parameters expr and
7494 expr_const_operands. Update call to grokdeclarator.
7495 (start_decl): Update call to grokdeclarator. Add statement for
7496 expressions used in type of decl.
7497 (grokparm): Update call to grokdeclarator.
7498 (push_parm_decl): Update call to grokdeclarator.
7499 (build_compound_literal): Add parameter non_const and build a
7500 C_MAYBE_COSNT_EXPR if applicable.
7501 (grokdeclarator): Take extra parameters expr and
7502 expr_const_operands. Track expressions used in declaration
7503 specifiers and declarators. Fold array sizes and track whether
7504 they are constant expressions and whether they are integer
7505 constant expressions.
7506 (parser_xref_tag): Set expr and expr_const_operands fields in
7508 (grokfield): Update call to grokdeclarator.
7509 (start_function): Update call to grokdeclarator.
7510 (build_null_declspecs): Set expr and expr_const_operands fields in
7512 (declspecs_add_type): Handle expressions in typeof specifiers.
7513 * c-parser.c (c_parser_declspecs): Set expr and
7514 expr_const_operands fields for declaration specifiers.
7515 (c_parser_enum_specifier): Likewise.
7516 (c_parser_struct_or_union_specifier): Likewise.
7517 (c_parser_typeof_specifier): Likewise. Update call to
7518 groktypename. Fold expression as needed. Return expressions with
7519 type instead of adding statements.
7520 (c_parser_attributes): Update calls to c_parser_expr_list.
7521 (c_parser_statement_after_labels): Fold expression before passing
7522 to objc_build_throw_stmt.
7523 (c_parser_condition): Fold expression.
7524 (c_parser_asm_operands): Fold expression.
7525 (c_parser_conditional_expression): Use c_save_expr. Update call
7526 to build_conditional_expr.
7527 (c_parser_alignof_expression): Update call to groktypename.
7528 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
7529 original_code. Fold expression argument of va_arg. Create
7530 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
7531 argument to va_arg. Update calls to groktypename. Fold array
7532 index for offsetof. Verify that first argument to
7533 __builtin_choose_expr has integer type.
7534 (c_parser_postfix_expression_after_paren_type): Update calls to
7535 groktypename and build_compound_literal. Handle expressions with
7536 side effects in type name.
7537 (c_parser_postfix_expression_after_primary): Update call to
7538 c_parser_expr_list. Set original_code for calls to
7539 __builtin_constant_p.
7540 (c_parser_expr_list): Take extra parameter fold_p. Fold
7541 expressions if requested.
7542 (c_parser_objc_type_name): Update call to groktypename.
7543 (c_parser_objc_synchronized_statement): Fold expression.
7544 (c_parser_objc_receiver): Fold expression.
7545 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
7546 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
7547 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
7548 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
7549 (struct c_typespec): Add elements expr and expr_const_operands.
7550 (struct c_declspecs): Add elements expr and expr_const_operands.
7551 (groktypename, build_conditional_expr, build_compound_literal):
7553 (in_late_binary_op): Declare.
7554 * c-typeck.c (note_integer_operands): New function.
7555 (in_late_binary_op): New variable.
7556 (decl_constant_value_for_broken_optimization): Move to c-common.c
7557 and rename to decl_constant_value_for_optimization.
7558 (default_function_array_conversion): Do not strip nops.
7559 (default_conversion): Do not call
7560 decl_constant_value_for_broken_optimization.
7561 (build_array_ref): Do not fold result.
7562 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
7563 result when operand is a VLA.
7564 (c_expr_sizeof_type): Update call to groktypename. Handle
7565 expressions included in type name. Use C_MAYBE_CONST_EXPR for
7566 result when operand names a VLA type.
7567 (build_function_call): Update call to build_compound_literal.
7568 Only fold result for calls to __builtin_* functions. Strip
7569 NOP_EXPR from INTEGER_CST returned from such functions. Fold
7570 the function designator.
7571 (convert_arguments): Fold arguments. Update call to
7572 convert_for_assignment.
7573 (build_unary_op): Handle increment and decrement of
7574 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
7575 decrement earlier. Fold operand of increment and decrement.
7576 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
7577 built for integer operand. Wrap returns that are INTEGER_CSTs
7578 without being integer constant expressions or that have integer
7579 constant operands without being INTEGER_CSTs.
7580 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
7581 (build_conditional_expr): Add operand ifexp_bcp. Track whether
7582 result is an integer constant expression or can be used in
7583 unevaluated parts of one and avoid folding and wrap as
7584 appropriate. Fold operands before possibly doing -Wsign-compare
7586 (build_compound_expr): Wrap result for C99 if operands can be used
7587 in integer constant expressions.
7588 (build_c_cast): Update call to digest_init. Do not ignore
7589 overflow from casting floating-point constants to integers. Wrap
7590 results that could be confused with integer constant expressions,
7591 null pointer constants or floating-point constants.
7592 (c_cast_expr): Update call to groktypename. Handle expressions
7593 included in type name.
7594 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
7595 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
7596 Update calls to convert_for_assignment.
7597 (convert_for_assignment): Take new parameter
7598 null_pointer_constant. Do not strip nops or call
7599 decl_constant_value_for_broken_optimization. Set
7600 in_late_binary_op for conversions to boolean.
7601 (store_init_value): Update call to digest_init.
7602 (digest_init): Take new parameter null_pointer_constant. Do not
7603 call decl_constant_value_for_broken_optimization. pedwarn for
7604 initializers not constant expressions. Update calls to
7605 convert_for_assignment.
7606 (constructor_nonconst): New.
7607 (struct constructor_stack): Add nonconst element.
7608 (really_start_incremental_init, push_init_level, pop_init_level):
7609 Handle constructor_nonconst and nonconst element.
7610 (set_init_index): Call constant_expression_warning for array
7612 (output_init_element): Fold value. Set constructor_nonconst as
7613 applicable. pedwarn for initializers not constant expressions.
7614 Update call to digest_init. Call constant_expression_warning
7615 where constant initializers are required.
7616 (process_init_element): Use c_save_expr.
7617 (c_finish_goto_ptr): Fold expression.
7618 (c_finish_return): Fold return value. Update call to
7619 convert_for_assignment.
7620 (c_start_case): Fold switch expression.
7621 (c_process_expr_stmt): Fold expression.
7622 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
7623 ensure statement expression is not evaluated in constant expression.
7624 (build_binary_op): Track whether results are integer constant
7625 expressions or may occur in such, disable folding and wrap results
7626 as applicable. Fold operands for -Wsign-compare warnings unless
7628 (c_objc_common_truthvalue_conversion): Handle results folded to
7629 integer constants that are not integer constant expressions.
7630 * doc/extend.texi: Document when typeof operands are evaluated,
7631 that condition of __builtin_choose_expr is an integer constant
7632 expression, and more about use of __builtin_constant_p in
7635 2009-03-29 Richard Guenther <rguenther@suse.de>
7637 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
7638 propagate addresses of array references.
7640 2009-03-29 Steven Bosscher <steven@gcc.gnu.org>
7642 * regmove.c (perhaps_ends_bb_p): Remove.
7643 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
7644 from INSN and check that the main loop stays within that basic block.
7645 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
7646 (regmove_forward_pass): Split out from regmove_optimize. Use
7647 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
7648 (regmove_backward_pass): Split out from regmove_optimize. Use
7649 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
7650 (regmove_optimize): Simplify.
7652 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
7655 * config/i386/i386.c (classify_argument): Ignore flexible array
7656 member in struct and warn ABI change.
7658 2009-03-29 H.J. Lu <hongjiu.lu@intel.com>
7660 * config/i386/i386-protos.h (ix86_agi_dependent): New.
7662 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
7663 (ix86_adjust_cost): Updated.
7665 2009-03-29 Jan Hubicka <jh@suse.cz>
7668 * tree-pass.h (pass_cleanup_eh): New function.
7669 (remove_unreachable_regions): Break code handling RTL
7670 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
7671 that can not be reached by runtime.
7672 (can_be_reached_by_runtime): New function.
7673 (label_to_region_map): New function.
7674 (num_eh_regions): New function.
7675 (rtl_remove_unreachable_regions): New function.
7676 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
7677 (remove_eh_region): New function.
7678 * except.h: Include sbitmap and vecprim.
7679 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
7680 num_eh_regions): Declare.
7681 * passes.c (init_optimization_passes): Schedule cleanup_eh.
7682 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
7683 * tree-eh.c (tree_remove_unreachable_handlers): New function.
7684 (tree_empty_eh_handler_p): New function.
7685 (cleanup_empty_eh): New function.
7686 (cleanup_eh): New function.
7687 (pass_cleanup_eh): New function.
7689 2009-03-29 Jan Hubicka <jh@suse.cz>
7691 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
7692 for removed regions.
7694 2009-03-29 Jan Hubicka <jh@suse.cz>
7696 * except.c (dump_eh_tree): Dump all datastructures.
7698 2009-03-29 Jan Hubicka <jh@suse.cz>
7700 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
7701 (duplicate_eh_regions_1): Likewise.
7702 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
7703 vector; call EH verification.
7704 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
7705 Be ready for region being removed.
7707 2009-03-29 Jan Hubicka <jh@suse.cz>
7709 * bitmap.c (bitmap_last_set_bit): New function.
7710 * bitmap.h (bitmap_last_set_bit): Declare.
7712 2009-03-29 David Ayers <ayers@fsfe.org>
7715 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
7716 by calling objc_compare_types and surpress warnings about
7717 incompatible C pointers that are compatible ObjC pointers.
7719 2009-03-29 Adam Nemet <anemet@caviumnetworks.com>
7721 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
7722 call initialize_inline_failed.
7723 (initialize_inline_failed): Move it from here ...
7724 * cgraph.c (initialize_inline_failed): ... to here.
7725 (cgraph_create_edge): Call initialize_inline_failed rather than
7726 setting inline_failed directly.
7728 2009-03-29 Ben Elliston <bje@au.ibm.com>
7731 * sysv4.opt (msdata): Improve comment.
7732 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
7733 * sysv4.h (SVR4_ASM_SPEC): Likewise.
7735 2009-03-29 Ben Elliston <bje@au.ibm.com>
7738 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
7739 load and store attributes.
7741 2009-03-29 Ben Elliston <bje@au.ibm.com>
7743 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
7744 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
7745 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
7746 * doc/extend.texi (X86 Built-in Functions): Add index entries for
7747 __builtin_infq and __builtin_huge_valq.
7749 2009-03-28 Anatoly Sokolov <aesok@post.ru>
7751 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
7753 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
7754 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
7756 2009-03-28 Xinliang David Li <davidxl@google.com>
7758 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
7759 (do_dbg_cnt): New function.
7761 2009-03-28 Jan Hubicka <jh@suse.cz>
7763 Merge from pretty-ipa:
7765 2009-03-27 Jan Hubicka <jh@suse.cz>
7767 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
7768 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
7769 * passes.c (function_called_by_processed_nodes_p): New.
7770 * ipa-pure-const.c (check_call): Fix handling of operands.
7771 (analyze_function): Dump debug output for skipped bodies.
7772 (local_pure_const): Use function_called_by_processed_nodes_p.
7773 * dwarf2out.c (reference_to_unused): Use output.
7774 * passes.c (do_per_function_toporder): Likewise.
7776 2008-11-12 Jan Hubicka <jh@suse.cz>
7778 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
7779 * ipa-pure-const.c (funct_state_d): Add can throw field; make
7780 state_set_in_source enum
7781 (check_decl): Ignore memory tags; do not set fake looping flags;
7783 (check_operand, check_tree, check_rhs_var, check_lhs_var,
7784 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
7785 (check_call, analyze_function): Rewrite.
7787 (add_new_function): Update call of analyze_function.
7788 (generate_summary): Add call of analyze_function.
7789 (propagate): Propagate can_throw; handle state_set_in_source correctly.
7790 (local_pure_const): New function.
7791 (pass_local_pure_const): New pass.
7792 * ipa-inline.c (inline_transform): Set after_inlining.
7793 * tree-eh.c (stmt_can_throw_external): New.
7794 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
7795 work with aliasing built.
7796 * tree-flow.h (stmt_can_throw_external): New.
7797 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
7798 and local pure/const pass in early and late optimization queue.
7800 2009-03-28 Martin Jambor <mjambor@suse.cz>
7802 * fold-const.c (get_pointer_modulus_and_residue): New parameter
7804 (fold_binary): Allow function decl aligment consideration is the
7805 second argument is integer constant one.
7806 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
7807 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
7808 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
7810 2009-03-28 Jan Hubicka <jh@suse.cz>
7812 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
7813 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
7814 * function.h (rtl_data): Add nothrow flag.
7815 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
7816 set DECL_NOTHROW for AVAILABLE functions.
7818 2009-03-28 Jakub Jelinek <jakub@redhat.com>
7820 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
7821 following vector keyword has expansion starting with pixel or bool
7822 keyword, expand vector to __vector and pixel or bool to __pixel or
7826 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
7827 warn_if_disallowed_function_p): Removed.
7828 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
7829 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
7830 warning_if_disallowed_function_p.
7831 * flags.h (warn_if_disallowed_function_p,
7832 warn_disallowed_functions): Removed.
7833 * common.opt (Wdisallowed-function-list=): Removed.
7834 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
7836 2009-03-28 Richard Guenther <rguenther@suse.de>
7838 PR tree-optimization/38723
7839 * tree-ssa-pre.c (compute_avail): Add all default definitions to
7842 2009-03-28 Jan Hubicka <jh@suse.cz>
7844 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
7845 test introduced by my previous patch.
7847 2009-03-28 Richard Guenther <rguenther@suse.de>
7849 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
7850 the PHIs value undefined.
7852 2009-03-28 Jan Hubicka <jh@suse.cz>
7854 * tree-pass.h (pass_fixup_cfg): New pass.
7855 * ipa-inline.c (inline_transform): Set
7856 always_inline_functions_inlined/after_inlining.
7857 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
7858 (pass_fixup_cfg): New pass.
7859 * passes.c (init_optimization_passes): Add fixup_cfg.
7861 2009-03-28 Richard Guenther <rguenther@suse.de>
7863 PR tree-optimization/38458
7864 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
7865 argument use the arguments copy-of value.
7867 2009-03-28 Richard Guenther <rguenther@suse.de>
7869 PR tree-optimization/38180
7870 * tree-ssa-ccp.c (get_default_value): Simplify.
7871 (likely_value): Likewise.
7872 (surely_varying_stmt_p): Properly handle VOP case.
7873 (ccp_initialize): Likewise.
7874 (ccp_fold): Handle propagating through *&.
7875 (fold_const_aggregate_ref): Also handle decls.
7877 2009-03-28 Jan Hubicka <jh@suse.cz>
7879 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
7880 * cgraph.h (cgraph_node): Likewise.
7881 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
7882 (cgraph_reset_node): Use process flag.
7883 (cgraph_mark_functions_to_output): Likewise.
7884 (cgraph_expand_function): Likewise.
7885 (cgraph_expand_all_functions): Likewise.
7886 (cgraph_output_in_order): Likewise.
7887 * dwarf2out.c (reference_to_unused): Likewise.
7888 * passes.c do_per_function_toporder): Likewise.
7890 2009-03-28 Jan Hubicka <jh@suse.cz>
7892 Bring from lto-branch:
7894 2008-09-03 Doug Kwan <dougkwan@google.com>
7896 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
7897 enums instead of reason strings.
7898 * cgraph.c (cgraph_create_edge): Same.
7899 (cgraph_inline_failed_string): New function.
7900 * cgraph.h (cgraph_inline_failed_t): New enum type.
7901 (cgraph_inline_failed_string): New prototype.
7902 (struct cgraph_edge): Change type of INLINED_FAILED from constant
7903 char pointer to cgraph_inline_failed_t.
7904 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
7905 (cgraph_default_inline_p): Ditto.
7906 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
7907 to cgraph_inline_failed_t pointer.
7908 * cif-code.def: New file.
7909 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
7911 (cgraph_check_inline_limits): Change type of REASON to pointer to
7912 cgraph_inline_failed_t. Replace reason strings with enums.
7913 (cgraph_default_inline_p): Ditto.
7914 (cgraph_recursive_inlining_p): Ditto.
7915 (update_caller_keys): Change type of FAILED_REASON to
7916 cgraph_inline_failed_t.
7917 (cgraph_set_inline_failed): Change type of REASON to pointer to
7918 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
7919 convert enums to strings for text output.
7920 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
7921 to be of type cgraph_inline_failed_t. Replace reason strings with
7922 enums. Call cgraph_inline_failed_string to covert enums
7923 to strings for text output.
7924 (cgraph_decide_inlining): Replace reason strings with enums.
7925 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
7926 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
7928 * tree-inline.c (expand_call_inline): Change type of REASON
7929 to cgraph_inline_failed_t. Replace reason strings with enums.
7930 Call cgraph_inline_failed_string for text output.
7931 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
7934 2009-03-28 Jan Hubicka <jh@suse.cz>
7936 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
7937 cgraph_clone_node): Remove master clone handling.
7938 (cgraph_is_master_clone, cgraph_master_clone): Remove.
7939 * cgraph.h (master_clone): Remove.
7940 (cgraph_is_master_clone, cgraph_master_clone): Remove.
7941 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
7942 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
7944 2009-03-28 Jan Hubicka <jh@suse.cz>
7946 * cgraph.c (cgraph_function_body_availability): Functions declared
7947 inline are always safe to assume that it is not going to be replaced.
7949 2009-03-28 Richard Guenther <rguenther@suse.de>
7951 PR tree-optimization/38513
7952 * tree-ssa-pre.c (eliminate): Remove redundant stores.
7953 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
7954 EXC_PTR_EXPR and FILTER_EXPR.
7955 (get_ref_from_reference_ops): Likewise.
7957 2009-03-28 Richard Guenther <rguenther@suse.de>
7959 PR tree-optimization/38968
7960 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
7961 Use FLOOR_MOD_EXPR to compute misalignment.
7963 2009-03-28 Richard Guenther <rguenther@suse.de>
7965 PR tree-optimization/37795
7966 * tree.h (combine_comparisons): Declare.
7967 * fold-const.c (combine_comparisons): Export.
7968 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
7970 (ifcombine_iforif): Use combine_comparisons.
7972 2009-03-28 Jan Hubicka <jh@suse.cz>
7974 * tree-eh.c (inlinable_call_p): New function.
7975 (make_eh_edges): Use it.
7976 (verify_eh_edges): Use it.
7977 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
7978 * except.c (reachable_next_level): Add inlinable_function argument
7979 (sjlj_find_directly_reachable_regions): Update.
7980 (add_reachable_handler): Do not set saw_any_handlers.
7981 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
7982 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
7983 Add new inlinable call parameter.
7984 (can_throw_internal, can_throw_external): Update.
7985 * except.h (can_throw_internal_1, can_throw_external_1,
7986 foreach_reachable_handler): Update declaration.
7988 2009-03-28 Joseph Myers <joseph@codesourcery.com>
7990 * config/arm/t-arm-coff, config/h8300/coff.h,
7991 config/i386/i386-aout.h, config/i386/i386-coff.h,
7992 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
7993 config/pdp11/2bsd.h, config/rs6000/aix41.h,
7994 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
7995 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
7996 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
7997 sys-types.h: Remove.
7998 * Makefile.in: Remove protoize and fixproto support and references
8000 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
8001 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
8003 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
8004 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
8005 unprotoize$(exeext).
8006 (rest.encap): Don't depend on $(STMP_FIXPROTO)
8007 (.PHONY): Don't depend on proto.
8008 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
8009 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
8010 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
8011 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
8012 build/gen-protos.o, build/scan.o, xsys-protos.h,
8013 build/fix-header$(build_exeext), build/fix-header.o,
8014 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
8015 stmp-install-fixproto): Remove.
8016 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
8017 SYSCALLS.c or fixproto files.
8018 (install-common): Don't install protoize.
8019 (install-headers-tar, install-headers-cpio, install-headers-cp):
8020 Don't depend on $(STMP_FIXPROTO).
8021 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
8022 install fixproto files or write out fixproto settings.
8023 (uninstall): Don't uninstall protoize.
8024 * config.gcc (use_fixproto): Remove.
8025 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
8026 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
8027 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
8028 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
8029 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
8030 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
8031 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
8032 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
8033 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
8034 * config/t-vxworks (STMP_FIXPROTO): Remove.
8035 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
8036 STMP_FIXPROTO): Remove.
8037 * config.in, configure: Regenerate.
8038 * crtstuff.c (gid_t, uid_t): Don't undefine.
8039 * doc/install.texi: Change m68k-coff to m68k-elf in example.
8040 (arm-*-coff, arm-*-aout: Remove target entries.
8041 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
8042 Remove mention of AIX 4.1.
8043 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
8044 * doc/invoke.texi (Running Protoize): Remove.
8045 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
8046 (Protoize Caveats): Remove.
8047 * tsystem.h: Update comments on headers assumed to exist.
8049 2009-03-27 Vladimir Makarov <vmakarov@redhat.com>
8051 * genautomata.c: Add a new year to the copyright. Add a new
8053 (struct insn_reserv_decl): Add comments for member bypass_list.
8054 (find_bypass): Remove.
8055 (insert_bypass): New.
8056 (process_decls): Use insert_bypass.
8057 (output_internal_insn_latency_func): Output all bypasses with the
8058 same input insn in one switch case.
8060 * rtl.def (define_bypass): Describe bypass choice.
8061 * doc/md.texi (define_bypass): Ditto.
8063 2009-03-27 Richard Guenther <rguenther@suse.de>
8065 * gimplify.c (mark_addressable): Export.
8066 * tree-flow.h (mark_addressable): Declare.
8067 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
8068 * tree-ssa.c (verify_phi_args): Verify that address taken
8069 variables have TREE_ADDRESSABLE set.
8071 2009-03-27 Richard Guenther <rguenther@suse.de>
8073 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
8074 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
8075 Do not mark decls TREE_ADDRESSABLE.
8076 (build_fold_addr_expr): Adjust.
8077 (fold_addr_expr): Remove.
8078 (fold_unary): Use build_fold_addr_expr.
8079 (fold_comparison): Likewise.
8080 (split_address_to_core_and_offset): Likewise.
8081 * coverage.c (tree_coverage_counter_addr): Mark the array decl
8083 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
8084 (gimplify_modify_expr_to_memcpy): Mark source and destination
8086 * omp-low.c (create_omp_child_function): Mark the object decl
8088 (lower_rec_input_clauses): Mark the var we take the address of
8090 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
8092 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
8095 * cfgexpand.c (expand_one_stack_var_at): Change alignment
8096 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
8098 2009-03-27 Richard Guenther <rguenther@suse.de>
8100 PR tree-optimization/39120
8101 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
8103 (handle_lhs_call): Process return constraints. Add escape
8104 constraints if necessary.
8105 (handle_const_call): Fill out return constraints. Make nested
8106 case more precise. Avoid consttmp if possible.
8107 (handle_pure_call): Fill out return constraints. Avoid
8108 callused if possible.
8109 (find_func_aliases): Simplify call handling.
8111 2009-03-27 Richard Guenther <rguenther@suse.de>
8113 PR tree-optimization/39120
8114 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
8115 as a representative.
8116 (solve_graph): Do propagate CALLUSED.
8117 (handle_pure_call): Use a scalar constraint from CALLUSED for
8119 (find_what_p_points_to): CALLUSED shall not appear in poins-to
8122 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
8125 * c-common.c (handle_aligned_attribute): Properly check alignment
8126 overflow. Use (1U << i) instead of (1 << i).
8128 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
8130 * expr.h (get_mem_align_offset): Updated.
8132 * tree.h (tree_decl_common): Change align to "unsigned int" and
8133 move it before pointer_alias_set.
8135 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
8136 Jakub Jelinek <jakub@redhat.com>
8139 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
8140 gr_register_operand with gr_reg_or_0_operand.
8141 (cmpxchg_rel_di): Likewise.
8142 (sync_lock_test_and_set<mode>): Likewise.
8144 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
8146 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
8147 (true_regnum): Likewise.
8149 * rtlanal.c (subreg_info): Moved to ...
8150 * rtl.h (subreg_info): Here. New.
8151 (subreg_get_info): New.
8153 * rtlanal.c (subreg_get_info): Make it extern.
8155 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
8158 * config/i386/i386.c (ix86_abi): New.
8159 (override_options): Handle -mabi=.
8160 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
8161 (ix86_call_abi_override): Likewise.
8162 (init_cumulative_args): Likewise.
8163 (function_arg_advance): Likewise.
8164 (function_arg_64): Likewise.
8165 (function_arg): Likewise.
8166 (ix86_pass_by_reference): Likewise.
8167 (ix86_function_value_regno_p): Likewise.
8168 (ix86_build_builtin_va_list_abi): Likewise.
8169 (setup_incoming_varargs_64): Likewise.
8170 (is_va_list_char_pointer): Likewise.
8171 (ix86_init_machine_status): Likewise.
8172 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
8173 (ix86_function_type_abi): Return enum calling_abi. Rewrite
8174 for 64bit. Replace DEFAULT_ABI with ix86_abi.
8175 (ix86_function_abi): Make it static and return enum calling_abi.
8176 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
8178 (ix86_fn_abi_va_list): Updated.
8180 * config/i386/i386.h (ix86_abi): New.
8181 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
8182 (CONDITIONAL_REGISTER_USAGE): Likewise.
8183 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
8184 (machine_function): Likewise.
8186 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
8188 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
8189 (STACK_BOUNDARY): Likewise.
8190 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
8192 * config/i386/i386.opt (mabi=): New.
8194 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
8195 return enum calling_abi.
8196 (ix86_function_type_abi): Likewise.
8197 (ix86_function_abi): Removed.
8199 * doc/invoke.texi: Document -mabi= option for x86.
8201 2009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8203 * builtins.c (real_dconstp): Delete.
8204 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
8206 2009-03-27 Dodji Seketeli <dodji@redhat.com>
8207 Jakub Jelinek <jakub@redhat.com>
8210 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
8211 (gen_subprogram_die): When a function is explicit, generate the
8212 DW_AT_explicit attribute.
8213 * langhooks.h (struct lang_hooks_for_decls): Add
8214 function_decl_explicit_p langhook.
8215 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
8216 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
8218 2009-03-27 Jakub Jelinek <jakub@redhat.com>
8220 * builtins.c (fold_builtin_memory_op): Optimize memmove
8221 into memcpy if we can prove source and destination don't overlap.
8223 * tree-inline.c: Include gt-tree-inline.h.
8224 (clone_fn_id_num): New variable.
8225 (clone_function_name): New function.
8226 (tree_function_versioning): Use it.
8227 * Makefile.in (GTFILES): Add tree-inline.c.
8229 2009-03-27 Mark Mitchell <mark@codesourcery.com>
8231 * BASE-VER: Change to 4.5.0.
8233 2009-03-27 Xinliang David Li <davidxl@google.com>
8235 PR tree-optimization/39557
8236 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
8238 2009-03-27 Xinliang David Li <davidxl@google.com>
8240 PR tree-optimization/39548
8241 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
8244 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
8246 * c-common.c (pointer_int_sum): Use %wd on return from
8249 2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
8251 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
8252 on return from tree_low_cst.
8254 2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
8257 * ginclude/stdarg.h (va_copy): Define also for
8258 __GXX_EXPERIMENTAL_CXX0X__.
8260 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8263 * builtins.h (c_strlen): Do not warn here.
8264 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
8265 * c-common.c (pointer_int_sum): Take an explicit location.
8266 Warn about offsets out of bounds.
8267 * c-common.h (pointer_int_sum): Adjust declaration.
8269 2009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8271 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
8274 2009-03-26 Jakub Jelinek <jakub@redhat.com>
8277 * opts.c (warn_if_disallowed_function_p): Don't assume
8278 get_callee_fndecl must return non-NULL.
8280 2009-03-26 Vladimir Makarov <vmakarov@redhat.com>
8282 PR rtl-optimization/39522
8283 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
8284 when reg_reloaded_valid is set.
8286 2009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8288 * config/spu/divv2df3.c: New file.
8289 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
8290 (DPBIT_FUNCS): Filter out _div_df.
8292 2009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
8294 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
8295 a jump insn, count that jump in the distance to the loop start.
8297 2009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
8300 * config/sh/sh.c (calc_live_regs): Fix condition for global
8301 registers except PIC_OFFSET_TABLE_REGNUM.
8303 2009-03-25 Kai Tietz <kai.tietz@onevision.com>
8306 * doc/invoke.texi (-mconsole): New.
8310 (-mnop-fun-dllimport): New.
8314 (sub section "i386 and x86-64 Windows Options"): New.
8316 2009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
8318 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
8319 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
8321 2009-03-25 Richard Guenther <rguenther@suse.de>
8324 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
8327 2009-03-25 Andrey Belevantsev <abel@ispras.ru>
8329 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
8330 neither of haifa/selective schedulers are working.
8332 2009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8334 * doc/invoke.texi (Debugging Options): Fix description of
8335 -fno-merge-debug-strings.
8337 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
8339 * config/cris/libgcc.ver: New version-script.
8340 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
8342 * configure.ac <GAS features, nop mnemonic>: Add pattern
8343 crisv32-*-* for "nop".
8344 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
8345 * configure: Regenerate.
8347 2009-03-24 Ira Rosen <irar@il.ibm.com>
8349 PR tree-optimization/39529
8350 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
8351 mark_sym_for_renaming for the tag copied to the new vector
8354 2009-03-24 Arthur Loiret <aloiret@debian.org>
8356 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
8357 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
8358 EXTRA_SPEC_FUNCTIONS.
8359 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
8360 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
8361 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
8362 -march and -mtune options.
8364 2009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
8366 * config/m68k/t-rtems: Add m5329 multilib.
8368 2009-03-24 Dodji Seketeli <dodji@redhat.com>
8369 Jakub Jelinek <jakub@redhat.com>
8372 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
8375 2009-03-23 Jakub Jelinek <jakub@redhat.com>
8378 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
8379 instead of c_parser_expression_conv, if original_code isn't one of the
8380 4 allowed comparison codes, fail.
8382 2009-03-23 Richard Guenther <rguenther@suse.de>
8384 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
8385 * tree.h (struct tree_type): Likewise.
8386 * reload.h (struct insn_chain): Likewise.
8387 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
8388 * function.h (struct function): Likewise.
8389 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
8391 2009-03-23 Jakub Jelinek <jakub@redhat.com>
8393 PR tree-optimization/39516
8394 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
8396 2009-03-23 Bingfeng Mei <bmei@broadcom.com>
8398 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
8399 should be set true if BITS_PER_WORD of target is bigger than 32
8401 2009-03-22 Hans-Peter Nilsson <hp@axis.com>
8403 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
8404 Translate -B-options to -rpath-link. Correct existing
8405 rpath-link and conditionalize on !nostdlib.
8407 2009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8409 * doc/extend.texi (Function Attributes, Variable Attributes):
8411 * doc/invoke.texi (Debugging Options, Optimize Options)
8412 (i386 and x86-64 Options, MCore Options): Likewise.
8414 2009-03-20 Jakub Jelinek <jakub@redhat.com>
8417 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
8418 it for block local namespace aliases.
8419 (gen_decl_die): Pass context_die to gen_namespace_die.
8421 2009-03-19 Jakub Jelinek <jakub@redhat.com>
8424 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
8425 minimum or maximum value.
8427 2009-03-19 Alexandre Oliva <aoliva@redhat.com>
8429 * reginfo.c (globalize_reg): Recompute derived reg sets.
8431 2009-03-19 Ozkan Sezer <sezeroz@gmail.com>
8434 * libgcc2.c (mprotect): Do not use signed arguments for
8435 VirtualProtect, use DWORD arguments. Also fix the 'may
8436 be used uninitialized' warning for the np variable.
8438 2009-03-19 Jakub Jelinek <jakub@redhat.com>
8441 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
8442 functions using regparm calling conventions when not optimizing.
8443 (ix86_function_sseregparm): Similarly for sseregparm calling
8446 2009-03-19 Li Feng <nemokingdom@gmail.com>
8449 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
8450 dependence if the first conflict is after niter iterations.
8452 2009-03-19 Hans-Peter Nilsson <hp@axis.com>
8455 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
8456 functions with dynamic stack-pointer adjustments.
8458 2009-03-19 Ben Elliston <bje@au.ibm.com>
8460 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
8461 option; change to -msdata=data.
8463 2009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8465 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
8468 2009-03-18 Eric Botcazou <ebotcazou@adacore.com>
8471 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
8473 2009-03-18 Sandra Loosemore <sandra@codesourcery.com>
8475 * doc/invoke.texi (Code Gen Options): Expand discussion of
8478 2009-03-18 Jakub Jelinek <jakub@redhat.com>
8480 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
8481 * matrix-reorg.c (struct matrix_info): Likewise.
8482 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
8483 * rtl.h (struct mem_attrs): Likewise.
8484 * df.h (struct df): Likewise.
8485 * tree-data-ref.h (struct data_dependence_relation): Likewise.
8486 * ira-int.h (struct ira_allocno): Likewise.
8487 * df-scan.c (struct df_collection_rec): Likewise.
8488 * ira.c (struct equivalence): Likewise.
8489 * function.c (struct temp_slot): Likewise.
8490 * cfgloop.h (struct loop): Likewise.
8493 * function.c (use_register_for_decl): When not optimizing, disregard
8494 register keyword for variables with types containing methods.
8496 2009-03-18 Sebastian Pop <sebastian.pop@amd.com>
8499 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
8500 (is_simple_operand): Call contains_component_ref_p before calling data
8501 reference analysis that would fail on COMPONENT_REFs.
8503 * tree-vrp.c (search_for_addr_array): Fix formatting.
8505 2009-03-18 Richard Guenther <rguenther@suse.de>
8507 * tree-vect-transform.c (vect_loop_versioning): Fold the
8508 generated comparisons.
8509 * tree-vectorizer.c (set_prologue_iterations): Likewise.
8510 (slpeel_tree_peel_loop_to_edge): Likewise.
8512 2009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8515 * opts.c (print_specific_help): In addition to `undocumented',
8516 accept `separate' and `joined' flags if passed alone. Describe
8517 output by the first matched one of those.
8518 (common_handle_option): Skip over empty strings.
8519 * gcc.c (display_help): Fix help string for `--help='.
8520 * doc/invoke.texi (Option Summary, Overall Options): With
8521 `--help=', classes and qualifiers can both be repeated, but
8522 only the latter can be negated. One should not pass only
8523 negated qualifiers. Fix markup and examples.
8526 2008-10-14 Jakub Jelinek <jakub@redhat.com>
8528 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
8529 and -fhelp=separate.
8531 2009-03-17 Jing Yu <jingyu@google.com>
8534 * function.h (struct rtl_data): Move is_thunk from here...
8535 (struct function): ...to here.
8536 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
8537 * varasm.c (assemble_start_function): Change is_thunk from crtl to
8539 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
8541 (alpha_does_function_need_gp, alpha_start_function): Likewise.
8542 (alpha_output_function_end_prologue): Likewise.
8543 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
8544 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
8545 (rs6000_output_function_epilogue): Likewise.
8546 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
8548 2009-03-17 Uros Bizjak <ubizjak@gmail.com>
8551 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
8552 from different units in a single alternative.
8553 (*truncdfsf_i387): Ditto.
8554 (*truncxfsf2_mixed): Ditto.
8555 (*truncxfdf2_mixed): Ditto.
8557 2009-03-17 Jakub Jelinek <jakub@redhat.com>
8559 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
8560 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
8563 * tree-ssa-live.c (remove_unused_locals): Don't remove local
8564 unused non-artificial variables when not optimizing.
8567 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
8568 DW_TAG_imported_module even if decl is IMPORTED_DECL with
8569 NAMESPACE_DECL in its DECL_INITIAL.
8572 * optabs.c (set_user_assembler_libfunc): New function.
8573 * expr.h (set_user_assembler_libfunc): New prototype.
8574 * c-common.c: Include libfuncs.h.
8575 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
8576 for memcmp, memset, memcpy, memmove and abort.
8577 * Makefile.in (c-common.o): Depend on libfuncs.h.
8580 * dwarf2out.c (gen_inlined_enumeration_type_die,
8581 gen_inlined_structure_type_die, gen_inlined_union_type_die,
8582 gen_tagged_type_instantiation_die): Removed.
8583 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
8586 2009-03-17 Janis Johnson <janis187@us.ibm.com>
8589 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
8591 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
8592 (check-parallel-%): Ditto.
8593 (check-consistency): Ditto.
8595 2009-03-17 Kai Tietz <kai.tietz@onevision.com>
8597 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
8598 local variable rhs by NULL_TREE.
8600 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
8603 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
8605 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
8608 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
8610 2009-03-17 H.J. Lu <hongjiu.lu@intel.com>
8613 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
8614 for ms->sysv ABI calls only in 64bit mode.
8616 * config/i386/i386.md (untyped_call): Support 32bit.
8618 2009-03-16 H.J. Lu <hongjiu.lu@intel.com>
8620 * doc/extend.texi: Replace x86_65 with x86_64.
8622 2009-03-16 Jakub Jelinek <jakub@redhat.com>
8624 PR tree-optimization/39455
8625 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
8626 mismatches for POINTER_TYPE_P (type).
8627 (number_of_iterations_le): Likewise.
8629 2009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
8631 * config/picochip/picochip.c: Removed profiling support.
8632 * config/picochip/picochip.md: Removed profiling instruction.
8633 * config/picochip/picochip.h: Removed profiling builtin.
8635 2009-03-16 Joseph Myers <joseph@codesourcery.com>
8637 * doc/install.texi (--with-host-libstdcxx): Document.
8639 2009-03-14 Anatoly Sokolov <aesok@post.ru>
8642 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
8643 generate a warning if the function name does not begin with
8644 "__vector" and the function has either the 'signal' or 'interrupt'
8645 attribute, from here to ...
8646 (avr_declare_function_name): ...here. New function.
8647 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
8648 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
8650 2009-03-14 Jakub Jelinek <jakub@redhat.com>
8653 * cse.c (fold_rtx): Don't modify original const_arg1 when
8654 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
8655 separate variable instead.
8656 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
8657 from out of range shift counts.
8658 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
8660 2009-03-13 Catherine Moore <clm@codesourcery.com>
8662 * config/i386/x-mingw32 (host-mingw32.o): Replace
8663 diagnostic.h with $(DIAGNOSTIC_H).
8665 2009-03-12 Jakub Jelinek <jakub@redhat.com>
8668 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
8670 * config/i386/sync.md (sync_compare_and_swap<mode>,
8671 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
8672 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
8674 (sync_double_compare_and_swapdi_pic,
8675 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
8676 cmpxchg8b_pic_memory_operand instead of just memory_operand.
8678 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
8681 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
8683 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
8686 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
8687 (avx_addsubv4df3): Likewise.
8688 (*avx_addsubv4sf3): Likewise.
8689 (sse3_addsubv4sf3): Likewise.
8691 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
8694 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
8696 2009-03-12 Vladimir Makarov <vmakarov@redhat.com>
8699 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
8700 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
8701 registers for allocnos created from user-defined variables.
8703 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8706 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
8707 of non-integer mode as well.
8709 2009-03-11 Adam Nemet <anemet@caviumnetworks.com>
8711 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
8712 for functions for which the parameter types are unknown.
8714 2009-03-11 Jakub Jelinek <jakub@redhat.com>
8717 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
8718 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
8719 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
8720 * config/i386/i386.c (ix86_local_alignment): For
8721 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
8722 long long variables on the stack to avoid dynamic realignment.
8723 Allow the first argument to be a decl rather than type.
8724 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
8726 2009-03-11 Nick Clifton <nickc@redhat.com>
8729 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
8731 Add description to mno-lsim option.
8732 * config/mcore/mcore.h: Remove comment about deprecated m4align
8734 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
8735 * doc/invoke.texi: Add description of mno-lsim and
8736 mstack-increment options.
8738 * config/fr30/fr30.opt: Document the -mno-lsim option.
8739 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
8740 and -mno-lsim options.
8742 2009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8744 * fold-const.c (fold_comparison): Only call fold_inf_compare
8745 if the mode supports infinities.
8747 2009-03-11 Jason Merrill <jason@redhat.com>
8750 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
8751 end already did. Notice GIMPLE_CALL modifications of the result.
8752 Don't copy debug information from an ignored decl or a decl from
8755 2009-03-10 Richard Guenther <rguenther@suse.de>
8756 Nathan Froyd <froydnj@codesourcery.com>
8759 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
8760 (__divMODE3): Likewise.
8762 2009-03-09 Jakub Jelinek <jakub@redhat.com>
8764 PR tree-optimization/39394
8765 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
8766 DECL_SIZE_UNIT of variable length FIELD_DECLs.
8768 2009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8770 * recog.c (verfiy_changes): Disallow renaming of hard regs in
8771 inline asms for register asm ("") declarations.
8773 2009-03-09 Eric Botcazou <ebotcazou@adacore.com>
8775 * fold-const.c (fold_unary): Fix comment.
8777 2009-03-07 Jan Hubicka <jh@suse.cz>
8780 * tree-inline.c (setup_one_parameter): Do replacement of const
8781 argument by constant in SSA form.
8783 2009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8786 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
8787 determine alignment passed to assign_stack_local.
8788 (assign_parms_unsplit_complex): Likewise.
8789 * except.c (sjlj_build_landing_pads): Likewise.
8791 2009-03-06 Jakub Jelinek <jakub@redhat.com>
8794 * tree-flow.h (add_referenced_var): Return bool instead of void.
8795 * tree-dfa.c (add_referenced_var): Return result of
8796 referenced_var_check_and_insert call.
8797 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
8798 of referenced_var_check_and_insert.
8801 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
8802 (gen_variable_die): Emit DW_AT_location on abstract static variable's
8803 DIE, don't emit it if abstract origin already has it.
8804 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
8805 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
8807 2009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8809 * genpreds.c (needs_variable): Fix parentheses at variable name
8811 (write_tm_constrs_h): Indent generated code.
8813 2009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8815 * doc/extend.texi (Function Attributes): Add documentation
8818 2009-03-06 Jakub Jelinek <jakub@redhat.com>
8821 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
8822 take locus from its DECL_SOURCE_LOCATION instead of input_location.
8824 2009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
8826 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
8829 2009-03-05 Jakub Jelinek <jakub@redhat.com>
8832 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
8833 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
8835 2009-03-05 Uros Bizjak <ubizjak@gmail.com>
8837 * config/i386/i386.md (R8_REG, R9_REG): New constants.
8838 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
8839 constants instead of magic numbers.
8840 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
8842 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
8843 (x86_64_ms_abi_int_parameter_registers): Ditto.
8844 (x86_64_int_return_registers): Ditto.
8845 (ix86_maybe_switch_abi): Ditto.
8846 (ix86_expand_call): Ditto for clobbered_registers array.
8847 (ix86_hard_regno_mode_ok): Ditto.
8848 (x86_extended_QIreg_mentioned_p): Ditto.
8850 2009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
8852 PR tree-optimization/39349
8853 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
8855 * combine.c (gen_lowpart_for_combine): Use omode when generating
8858 2009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
8860 PR rtl-optimization/39235
8861 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
8863 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
8865 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
8867 2009-03-04 Richard Guenther <rguenther@suse.de>
8869 PR tree-optimization/39362
8870 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
8871 that occur in abnormal PHIs should be varying.
8873 2009-03-04 Zdenek Dvorak <ook@ucw.cz>
8875 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
8877 (simple_iv): Take loop as an argument instead of statement.
8878 * tree-scalar-evolution.h (simple_iv): Declaration changed.
8879 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
8881 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
8883 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
8884 * matrix-reorg.c (analyze_transpose): Ditto.
8885 * tree-data-ref.c (dr_analyze_innermost): Ditto.
8886 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
8887 * tree-predcom.c (ref_at_iteration): Ditto.
8888 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
8890 2009-03-04 Richard Guenther <rguenther@suse.de>
8892 PR tree-optimization/39358
8893 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
8894 escaped_id and callused_id.
8895 (solve_graph): Likewise.
8897 2009-03-04 Richard Guenther <rguenther@suse.de>
8899 PR tree-optimization/39339
8900 * tree-sra.c (try_instantiate_multiple_fields): Make it
8901 no longer ICE on the above.
8903 2009-03-03 Joseph Myers <joseph@codesourcery.com>
8905 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
8906 that fits within Pmode.
8908 2009-03-03 Steve Ellcey <sje@cup.hp.com>
8911 * tm.texi (LIBCALL_VALUE): Update description.
8913 2009-03-03 Steve Ellcey <sje@cup.hp.com>
8916 * doc/extend.texi (section): Update description.
8918 2009-03-03 H.J. Lu <hongjiu.lu@intel.com>
8921 * tree-inline.c (remapped_type): New.
8922 (can_be_nonlocal): Call remapped_type instead of remap_type.
8924 2009-03-03 Jakub Jelinek <jakub@redhat.com>
8927 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
8928 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
8930 2009-03-03 Richard Guenther <rguenther@suse.de>
8933 * tree.c (tree_nonartificial_location): New function.
8934 * tree.h (tree_nonartificial_location): Declare.
8935 * builtins.c (expand_builtin_memory_chk): Provide location
8936 of the call location for artificial function pieces.
8937 (maybe_emit_chk_warning): Likewise.
8938 (maybe_emit_sprintf_chk_warning): Likewise.
8939 (maybe_emit_free_warning): Likewise.
8940 * expr.c (expand_expr_real_1): Likewise.
8942 2009-03-03 Jakub Jelinek <jakub@redhat.com>
8944 PR tree-optimization/39343
8945 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
8946 COMPONENT_REF t has ARRAY_TYPE.
8948 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
8951 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
8952 when the type precision of the induction variable should be
8953 larger than the type precision of nit.
8954 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
8955 * graphite.c (graphite_loop_normal_form): Same.
8956 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
8958 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
8960 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
8961 (*call_1_rex64_ms_sysv): Use named constants instead of magic
8962 numbers to describe clobbered registers.
8963 (*call_value_0_rex64_ms_sysv): Ditto.
8964 * config/i386/mmx.md (mmx_emms): Ditto.
8967 2009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
8969 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
8972 2009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8974 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
8975 (spu_section_type_flags): New function.
8977 2009-03-02 Uros Bizjak <ubizjak@gmail.com>
8979 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
8980 reg_class_contents of FLOAT_REGS into a temporary.
8982 2009-03-02 Richard Guenther <rguenther@suse.de>
8983 Ira Rosen <irar@il.ibm.com>
8985 PR tree-optimization/39318
8986 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
8987 information to the vectorized statement.
8989 2009-03-01 Uros Bizjak <ubizjak@gmail.com>
8991 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
8992 variable. Use defined names instead of magic constants for REX SSE
8995 2009-03-01 Richard Guenther <rguenther@suse.de>
8997 PR tree-optimization/39331
8998 * omp-low.c (lower_send_shared_vars): Do not receive new
8999 values for the reference of DECL_BY_REFERENCE parms or results.
9001 2009-03-01 Jan Hubicka <jh@suse.cz>
9004 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
9005 BLOCK_NONLOCALIZED_VAR): New macros.
9006 (tree_block): Add nonlocalized_vars.
9007 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
9008 gen_decl_die): Add origin argument. Allow generation of die with
9009 origin at hand only.
9010 (gen_member_die, gen_type_die_with_usage, force_decl_die,
9011 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
9013 (gen_block_die): Fix checking for unused blocks.
9014 (process_scope_var): Break out from .... ; work with origins only.
9015 (decls_for_scope) ... here; process nonlocalized list.
9016 (dwarf2out_ignore_block): Look for nonlocalized vars.
9017 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
9019 (dump_scope_block): Dump them.
9020 * tree-inline.c (remap_decls): Handle nonlocalized vars.
9021 (remap_block): Likewise.
9022 (can_be_nonlocal): New predicate.
9023 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
9025 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9027 * configure: Regenerate.
9029 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9031 * optc-gen.awk: No need to duplicate option flags twice.
9032 Reuse help texts for duplicate options which do not have any.
9034 * gcc.c (display_help): Document --version.
9036 * gcc.c (main): If print_help_list and verbose_flag, ensure
9037 driver output comes before subprocess output.
9039 * optc-gen.awk: Assign all remaining fields to help string,
9040 space-separated, for multi-line help in *.opt.
9042 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
9043 -Wno-pedantic-ms-format is for MinGW targets only.
9045 * doc/options.texi (Option file format): Fix bad indentation,
9046 restoring dropped sentence.
9048 2009-02-28 Jan Hubicka <jh@suse.cz>
9050 * tree-inline.c (tree_function_versioning): Output debug info.
9052 2009-02-28 Jan Hubicka <jh@suse.cz>
9055 * tree-inline.c (setup_one_parameter): Do not copy propagate
9056 arguments when not optimizing.
9058 2009-02-28 H.J. Lu <hongjiu.lu@intel.com>
9061 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
9062 (avx_addsubv4df3): Likewise.
9063 (*avx_addsubv4sf3): Likewise.
9064 (sse3_addsubv4sf3): Likewise.
9065 (*avx_addsubv2df3): Likewise.
9066 (sse3_addsubv2df3): Likewise.
9067 (avx_unpckhps256): Correct item selectors.
9068 (avx_unpcklps256): Likewise.
9069 (avx_unpckhpd256): Likewise.
9070 (avx_unpcklpd256): Likewise.
9072 2009-02-28 Jan Hubicka <jh@suse.cz>
9074 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
9076 (copy_arguments_for_versioning): If var is declared don't declare it.
9077 (tree_function_versioning): First setup substitutions and then copy
9080 2009-02-27 Jan Hubicka <jh@suse.cz>
9083 * cgraph.h (varpool_output_debug_info): Remove.
9084 * cgraphunit.c (varpool_output_debug_info): Remove.
9085 * dwarf2out.c (deferred_locations_struct): New struct
9086 (deferred_locations): New type.
9087 (deferred_locations_list): New static var.
9088 (deffer_location): New function.
9089 (gen_variable_die): Use it.
9090 (decls_for_scope): Output info on local static vars.
9091 (dwarf2out_finish): Process deferred locations.
9092 * varpool.c (varpool_output_debug_info): Remove.
9094 2009-02-27 Jan Hubicka <jh@suse.cz>
9097 * tree.h (TREE_PROTECTED): Fix comment.
9098 (BLOCK_HANDLER_BLOCK): Remove.
9099 (struct tree_block): Remove handler_block add body_block.
9100 (inlined_function_outer_scope_p): New.
9101 (is_body_block): Remove.
9102 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
9103 * dwarf2out.c (is_inlined_entry_point): Remove.
9104 (add_high_low_attributes): Use inlined_function_outer_scope_p.
9105 (gen_block_die): Use is_inlined_entry_point check. Remove body block
9107 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
9108 * gimplify.c (gimplify_expr): Gimplify body blocks.
9109 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
9110 block with multiple subblocks.
9111 (dump_scope_block): Prettier output; dump more flags and info.
9112 (dump_scope_blocks): New.
9113 (remove_unused_locals): Use dump_scope_blocks.
9114 * tree-flow.h (dump_scope_blocks): Declare.
9115 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
9116 * stmt.c (is_body_block): Remove.
9117 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
9118 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
9120 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
9123 * graphite.c (graphite_loop_normal_form): Do not call
9124 number_of_iterations_exit from a gcc_assert.
9126 2009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9128 * config/s390/s390.c (s390_swap_cmp): Look for conditional
9129 jumps if COND is NULL.
9130 (find_cond_jump): New function.
9131 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
9132 * config/s390/s390.md: Remove z10_cobra attribute value.
9134 2009-02-26 Uros Bizjak <ubizjak@gmail.com>
9136 * config/alpha/alpha.h (alpha_expand_mov): Return false if
9137 force_const_mem returns NULL_RTX.
9139 2009-02-26 Jan Hubicka <jh@suse.cz>
9142 * cgraph.h (varpool_output_debug_info): Remove.
9143 * cgraphunit.c (varpool_output_debug_info): Remove.
9144 * dwarf2out.c (deferred_locations_struct): New struct
9145 (deferred_locations): New type.
9146 (deferred_locations_list): New static var.
9147 (deffer_location): New function.
9148 (gen_variable_die): Use it.
9149 (decls_for_scope): Output info on local static vars.
9150 (dwarf2out_finish): Process deferred locations.
9151 * varpool.c (varpool_output_debug_info): Remove.
9153 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
9155 PR rtl-optimization/39241
9156 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
9157 to subreg_offset_representable_p.
9159 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
9161 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
9162 execute function prototype. Get f and nregs from max_reg_num
9163 and get_insns. Remove the first backward pass as it's dead,
9164 guard the forward pass by flag_expensive_optimizations.
9165 (rest_of_handle_regmove): Delete.
9166 (pass_regmove): Replace it with regmove_optimize.
9168 2009-02-25 Martin Jambor <mjambor@suse.cz>
9170 PR tree-optimization/39259
9171 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
9172 calls_alloca function flags.
9173 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
9176 2009-02-25 Paolo Bonzini <bonzini@gnu.org>
9178 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
9179 flags_set_1_rtx, flags_set_1_set): Delete.
9180 (regmove_optimize): Do not call mark_flags_life_zones.
9182 2009-02-24 Julian Brown <julian@codesourcery.com>
9185 * config/arm/arm.c (require_pic_register): Only set
9186 cfun->machine->pic_reg once per function.
9188 2009-02-24 Sandra Loosemore <sandra@codesourcery.com>
9190 * doc/invoke.texi (Link Options): Document an easier way to pass
9191 options that take arguments to the GNU linker using -Xlinker and -Wl.
9193 2009-02-24 Steve Ellcey <sje@cup.hp.com>
9196 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
9198 2009-02-24 Richard Guenther <rguenther@suse.de>
9201 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
9203 2009-02-24 Richard Guenther <rguenther@suse.de>
9204 Zdenek Dvorak <ook@ucw.cz>
9206 PR tree-optimization/39233
9207 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
9208 from converting them to a generic type.
9210 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
9212 PR tree-optimization/39260
9213 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
9214 contains a condition with a real type.
9215 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
9217 2009-02-23 Jason Merrill <jason@redhat.com>
9220 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
9221 narrowing_initializer_constant_valid_p.
9222 (narrowing_initializer_constant_valid_p): Don't return
9223 null_pointer_node for adding a pointer to itself.
9225 2009-02-23 Jan Hubicka <jh@suse.cz>
9228 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
9231 2009-02-23 Jan Hubicka <jh@suse.cz>
9233 PR tree-optimization/37709
9234 * tree.c (block_ultimate_origin): Move here from dwarf2out.
9235 * tree.h (block_ultimate_origin): Declare.
9236 * dwarf2out.c (block_ultimate_origin): Move to tree.c
9237 * tree-ssa-live.c (remove_unused_scope_block_p):
9238 Eliminate blocks containig no instructions nor live variables nor
9240 (dump_scope_block): New function.
9241 (remove_unused_locals): Enable removal of dead blocks by default;
9242 enable dumping at TDF_DETAILS.
9244 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
9246 * config/i386/i386.c (classify_argument): Don't allow COImode
9248 (function_arg_advance_32): Don't allow OImode.
9249 (function_arg_32): Likewise.
9250 (function_value_32): Likewise.
9251 (return_in_memory_32): Likewise.
9252 (function_arg_64): Remove OImode comment.
9254 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
9257 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
9258 ix86_expand_vector_set for V4DImode in 64bit mode only.
9259 (ix86_expand_vector_init_one_var): Likewise.
9261 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
9263 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
9265 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
9268 * loop-iv.c: Revert last change.
9269 * emit-rtl.c: Likewise.
9271 2009-02-21 H.J. Lu <hongjiu.lu@intel.com>
9274 * config/i386/i386.c (type_natural_mode): Remove an extra
9275 space in the warning message.
9276 (function_value_32): Handle 32-byte vector modes.
9277 (return_in_memory_32): Likewise.
9279 2009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
9281 * loop-iv.c (truncate_value): New function.
9282 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
9284 (lowpart_subreg): Move to...
9285 * emit-rtl.c: ...here.
9287 2009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
9289 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
9290 accidental and undocumented change at revision 140860.
9292 2009-02-21 Joseph Myers <joseph@codesourcery.com>
9294 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
9295 take gimple_seq * arguments.
9296 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
9297 types_compatible_p langhook.
9299 2009-02-20 Mark Mitchell <mark@codesourcery.com>
9300 Joseph Myers <joseph@codesourcery.com>
9302 * config/arm/arm.c (arm_builtin_va_list): New function.
9303 (arm_expand_builtin_va_start): Likewise.
9304 (arm_gimplify_va_arg_expr): Likewise.
9305 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
9306 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
9307 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
9308 (va_list_type): New variable.
9309 (arm_mangle_type): Mangle va_list_type appropriately.
9311 2009-02-20 Jakub Jelinek <jakub@redhat.com>
9314 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
9315 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
9316 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
9317 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
9318 parameter to 1000 for -O1 by default.
9319 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
9321 * loop-invariant.c: Include params.h.
9322 (move_loop_invariants): Don't call move_single_loop_invariants on
9325 2009-02-20 Jaka Mocnik <jaka@xlab.si>
9327 * calls.c (emit_library_call_value_1): Use slot_offset instead of
9328 offset when calculating bounds for indexing stack_usage_map. Fixes
9329 a buffer overflow with certain target setups.
9331 2009-02-20 Jakub Jelinek <jakub@redhat.com>
9334 * calls.c (expand_call): Clear try_tail_call if caller and callee
9335 disagree in promotion of function return value.
9337 2009-02-19 Jakub Jelinek <jakub@redhat.com>
9340 * c-common.c (c_determine_visibility): If visibility changed and
9341 DECL_RTL has been already set, call make_decl_rtl to update symbol
9344 2009-02-19 H.J. Lu <hongjiu.lu@intel.com>
9347 * varasm.c (assemble_variable): Don't check DECL_NAME when
9348 globalizing a variable.
9350 2009-02-19 Joseph Myers <joseph@codesourcery.com>
9353 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
9354 expression before any __builtin_trap call.
9355 * c-typeck.c (build_function_call): Convert and check function
9356 arguments before generating a call to a trap. Evaluate the
9357 function arguments before the trap.
9359 2009-02-19 Uros Bizjak <ubizjak@gmail.com>
9362 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
9363 (UNSPEC_FXAM_MEM): New unspec.
9364 (fxam<mode>2_i387_with_temp): New insn and split pattern.
9365 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
9366 memory using fxam<mode>2_i387_with_temp to remove excess precision.
9368 2009-02-19 Richard Guenther <rguenther@suse.de>
9370 PR tree-optimization/39207
9371 PR tree-optimization/39074
9372 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
9373 storedanything_tree): New.
9374 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
9375 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
9376 (build_succ_graph): Add edges from STOREDANYTHING to all
9378 (init_base_vars): Initialize STOREDANYTHING.
9379 (compute_points_to_sets): Free substitution info after
9380 building the succ graph.
9381 (ipa_pta_execute): Likewise.
9383 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
9385 (do_ds_constraint): Do not add to special var or non-pointer
9387 (type_could_have_pointers): Split out from ...
9388 (could_have_pointers): ... here. For arrays use the element type.
9389 (create_variable_info_for): Initialize may_have_pointers.
9390 (new_var_info): Likewise.
9391 (handle_lhs_call): Make the HEAP variable unknown-sized.
9392 (intra_create_variable_infos): Use a type with pointers for
9393 PARM_NOALIAS, make it unknown-sized.
9395 2009-02-18 H.J. Lu <hongjiu.lu@intel.com>
9398 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
9400 2009-02-18 Jason Merrill <jason@redhat.com>
9403 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
9404 value if DECL_EXTERNAL.
9405 * tree-sra.c (sra_walk_gimple_assign): Likewise.
9406 * target.h (gcc_target::binds_local_p): Clarify "module".
9407 * tree.h (TREE_PUBLIC): Clarify "module".
9409 2009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
9412 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
9413 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
9415 2009-02-17 H.J. Lu <hongjiu.lu@intel.com>
9418 * c.opt (Wabi): Support C and ObjC.
9421 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
9423 * config/i386/i386.c (classify_argument): Warn once about the ABI
9424 change when passing union with long double.
9426 * doc/invoke.texi: Update -Wabi for warning psABI changes.
9428 2009-02-18 Joseph Myers <joseph@codesourcery.com>
9431 * c-parser.c (c_parser_compound_statement): Always enter and leave
9434 2009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9437 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
9439 2009-02-18 Jakub Jelinek <jakub@redhat.com>
9441 PR tree-optimization/36922
9442 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
9443 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
9446 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
9448 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
9451 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
9453 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
9455 2009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
9457 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
9460 2009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
9461 Richard Sandiford <rdsandiford@googlemail.com>
9463 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
9464 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
9465 (loongson_biadd): ...this.
9467 2009-02-17 Richard Guenther <rguenther@suse.de>
9469 PR tree-optimization/39202
9470 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
9471 a var make sure to follow existing collapses.
9473 2009-02-17 Richard Guenther <rguenther@suse.de>
9476 * langhooks.c (lhd_print_error_function): Check for NULL block.
9478 2009-02-17 Richard Guenther <rguenther@suse.de>
9480 PR tree-optimization/39204
9481 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
9484 2009-02-17 Uros Bizjak <ubizjak@gmail.com>
9486 * config/soft-fp/double.h: Update from glibc CVS.
9488 2009-02-17 Richard Guenther <rguenther@suse.de>
9490 PR tree-optimization/39207
9491 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
9492 strict-aliasing warnings for pointers pointing to NULL.
9494 2009-02-16 Joseph Myers <joseph@codesourcery.com>
9497 * c-parser.c (c_parser_braced_init): Call pop_init_level when
9498 skipping until next close brace.
9500 2009-02-16 H.J. Lu <hongjiu.lu@intel.com>
9503 * config/i386/i386.c (ix86_expand_push): Set memory alignment
9504 to function argument boundary.
9506 2009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
9508 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
9509 in the lea_add. Reload eventually constraints it properly.
9510 * config/picochip/constraints.md: Remove the target constraint
9511 "b", since it is not needed anymore.
9513 2009-02-16 Jakub Jelinek <jakub@redhat.com>
9515 * gthr-dce.h: Uglify function parameter and local variable names.
9516 * gthr-gnat.h: Likewise.
9517 * gthr-mipssde.h: Likewise.
9518 * gthr-nks.h: Likewise.
9519 * gthr-posix95.h: Likewise.
9520 * gthr-posix.h: Likewise.
9521 * gthr-rtems.h: Likewise.
9522 * gthr-single.h: Likewise.
9523 * gthr-solaris.h: Likewise.
9524 * gthr-tpf.h: Likewise.
9525 * gthr-vxworks.h: Likewise.
9526 * gthr-win32.h: Likewise.
9528 2009-02-15 H.J. Lu <hongjiu.lu@intel.com>
9531 * config/i386/i386.md: Restrict the new peephole2 to move
9532 between MMX/SSE registers.
9534 2009-02-15 Richard Guenther <rguenther@suse.de>
9537 2009-02-13 Richard Guenther <rguenther@suse.de>
9539 * configure.ac: Enable LFS.
9540 * configure: Re-generate.
9541 * config.in: Likewise.
9543 2009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9545 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
9546 spu_srqwbyte, spu_srqwbytebc): Define.
9547 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
9548 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
9549 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
9550 "shrqby_<mode>"): New insn-and-split patterns.
9551 * config/spu/spu.c (expand_builtin_args): Determine and return
9552 number of operands using spu_builtin_description data.
9553 (spu_expand_builtin_1): Use it.
9555 2009-02-13 Steve Ellcey <sje@cup.hp.com>
9558 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
9561 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
9564 * config/i386/i386.c (override_options): Correct warning
9565 messages for -malign-loops, -malign-jumps and -malign-functions.
9567 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
9570 * config/i386/i386.md: Restrict the new peephole2 to move
9571 between the general purpose registers.
9573 2009-02-13 H.J. Lu <hongjiu.lu@intel.com>
9576 * config/i386/i386.c (type_natural_mode): Add a new argument.
9577 Return the original mode and warn ABI change if vector size is 32byte.
9578 (function_arg_advance): Updated.
9579 (function_arg): Likewise.
9580 (ix86_function_value): Likewise.
9581 (ix86_return_in_memory): Likewise.
9582 (ix86_sol10_return_in_memory): Likewise.
9583 (ix86_gimplify_va_arg): Likewise.
9584 (function_arg_32): Don't warn ABX ABI change here.
9585 (function_arg_64): Likewise.
9587 2009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
9589 * loop-iv.c (implies_p): In the final case, test that operands 0
9590 of the two comparisons match.
9592 * config/bfin/bfin.c (find_prev_insn_start): New function.
9593 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
9594 (find_next_insn_start): Move.
9596 2009-02-13 Richard Guenther <rguenther@suse.de>
9598 * configure.ac: Enable LFS.
9599 * configure: Re-generate.
9600 * config.in: Likewise.
9602 2009-02-13 Joseph Myers <joseph@codesourcery.com>
9605 * c-parser.c (c_parser_parms_list_declarator): Discard pending
9606 sizes on syntax error after some arguments have been parsed.
9608 2009-02-12 Jakub Jelinek <jakub@redhat.com>
9610 * doc/invoke.texi (-fira): Remove.
9612 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
9614 * caller-save.c: Replace regclass.c with reginfo.c in comments.
9615 * recog.c: Likewise.
9618 2009-02-12 Uros Bizjak <ubizjak@gmail.com>
9620 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
9621 (umul_ppmm): Likewise.
9622 (count_leading_zeros): Likewise.
9623 (count_trailing_zeros): Likewise.
9624 (UMUL_TIME): Likewise.
9626 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
9628 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
9629 soft-fp/t-softfp to tmake_file.
9631 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
9632 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
9633 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
9634 IA64_BUILTIN_INFQ]: New.
9635 (ia64_init_builtins): Initialize __builtin_infq,
9636 __builtin_fabsq and __builtin_copysignq if not HPUX.
9637 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
9638 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
9640 * config/ia64/lib1funcs.asm (__divtf3): Define only if
9642 (__fixtfti): Likewise.
9643 (__fixunstfti): Likewise.
9644 (__floattitf): Likewise.
9646 * config/ia64/libgcc-glibc.ver: New.
9647 * config/ia64/t-fprules-softfp: Likewise.
9648 * config/ia64/sfp-machine.h: Likewise.
9650 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
9651 (LIBGCC2_TF_CEXT): Likewise.
9652 (TF_SIZE): Likewise.
9653 (TARGET_INIT_LIBFUNCS): Likewise.
9655 * config/ia64/t-glibc (SHLINB_MAPFILES):
9656 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
9658 2009-02-12 H.J. Lu <hongjiu.lu@intel.com>
9660 * config/i386/i386.c (construct_container): Rewrite processing
9661 BLKmode with X86_64_SSE_CLASS.
9663 2009-02-12 Paolo Bonzini <bonzini@gnu.org>
9666 * config/i386/i386.md: Replace simplify_replace_rtx with
9667 replace_rtx in the new peephole2.
9669 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
9671 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
9672 loop unrolling do not happen at -O2.
9674 2009-02-12 Michael Matz <matz@suse.de>
9676 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
9678 2009-02-12 Jakub Jelinek <jakub@redhat.com>
9680 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
9683 2009-02-12 Ben Elliston <bje@au.ibm.com>
9685 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
9686 patterns when updating the back chain. Missed in the 2009-02-10
9689 2009-02-11 Janis Johnson <janis187@us.ibm.com>
9691 * doc/extend.texi (Decimal Floating Types): Update identifier of
9692 draft TR and list of missing support.
9694 2009-02-11 Jakub Jelinek <jakub@redhat.com>
9697 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
9698 bit to variable length decl's flags, add it also to its
9699 pointer replacement variable.
9701 2009-02-11 Uros Bizjak <ubizjak@gmail.com>
9702 Jakub Jelinek <jakub@redhat.com>
9705 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
9706 (memory_blockage): New expander.
9707 (*memory_blockage): New insn pattern.
9708 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
9709 instead of general blockage at the end of function prologue when
9710 frame pointer is used to access red zone area. Do not emit blockage
9711 when profiling, it is emitted in generic code.
9712 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
9713 function epilogue when frame pointer is used to access red zone area.
9715 2009-02-11 Paolo Bonzini <bonzini@gnu.org>
9718 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
9719 by arithmetic with memory operands.
9720 * config/i386/predicates.md (commutative_operator): New.
9722 2009-02-10 Janis Johnson <janis187@us.ibm.com>
9724 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
9727 2009-02-10 Eric Botcazou <ebotcazou@adacore.com>
9729 * alias.h (record_alias_subset): Declare.
9730 * alias.c (record_alias_subset): Make global.
9732 2009-02-10 Nick Clifton <nickc@redhat.com>
9734 * tree-parloops.c: Change license to GPLv3.
9735 * ipa-struct-reorg.c: Change license to GPLv3.
9736 * ipa-struct-reorg.h: Change license to GPLv3.
9738 2009-02-10 Steve Ellcey <sje@cup.hp.com>
9741 * c-decl.c (start_struct): Return NULL on error.
9743 2009-02-10 Jakub Jelinek <jakub@redhat.com>
9746 * cfgloopmanip.c (remove_path): Call remove_bbs after
9747 cancel_loop_tree, not before it.
9750 * function.h (struct function): Add has_local_explicit_reg_vars bit.
9751 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
9752 VAR_DECLs were seen.
9753 * tree-ssa-live.c (remove_unused_locals): Recompute
9754 cfun->has_local_explicit_reg_vars.
9755 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
9756 copies or clearings if cfun->has_local_explicit_reg_vars.
9758 2009-02-10 Uros Bizjak <ubizjak@gmail.com>
9761 * config/i386/i386.c (expand_prologue): Emit blockage at the end
9762 of function prologue when frame pointer is used to access
9765 2009-02-10 Richard Guenther <rguenther@suse.de>
9768 * gimplify.c (gimple_regimplify_operands): Always look if
9769 we need to create a temporary.
9771 2009-02-10 Richard Guenther <rguenther@suse.de>
9773 PR tree-optimization/39132
9774 * tree-loop-distribution.c (todo): New global var.
9775 (generate_memset_zero): Trigger TODO_rebuild_alias.
9776 (tree_loop_distribution): Return todo.
9778 2009-02-10 H.J. Lu <hongjiu.lu@intel.com>
9781 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
9782 (x86_64_reg_class_name): Removed.
9783 (classify_argument): Return 0 if bytes > 32. Return 0 if the
9784 first one isn't X86_64_SSE_CLASS or any other ones aren't
9785 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
9786 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
9787 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
9788 and 3 X86_64_SSEUP_CLASS.
9789 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
9790 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
9792 2009-02-10 Ben Elliston <bje@au.ibm.com>
9794 * config/rs6000/rs6000.md (allocate_stack): Always use an update
9795 form instruction to update the stack back chain word, even if the
9796 user has disabled the generation of update instructions.
9797 (movdi_<mode>_update_stack): New.
9798 (movsi_update_stack): Likewise.
9799 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
9800 always use an update form instruction to update the stack back
9803 2009-02-09 Sebastian Pop <sebastian.pop@amd.com>
9806 * graphite.c (if_region_set_false_region): After moving a region in
9807 the false branch of a condition, remove the empty dummy basic block.
9808 (gloog): Remove wrong fix for PR38953.
9810 2009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9812 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
9813 generation due to implicit sign extension.
9815 2009-02-09 Eric Botcazou <ebotcazou@adacore.com>
9818 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
9819 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
9821 2009-02-09 Richard Guenther <rguenther@suse.de>
9824 * convert.c (convert_to_real): Disable (float)fn((double)x)
9825 to fnf(x) conversion if errno differences may occur and
9826 -fmath-errno is set.
9828 2009-02-07 Anatoly Sokolov <aesok@post.ru>
9830 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
9831 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
9832 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
9834 2009-02-06 Joseph Myers <joseph@codesourcery.com>
9837 * c-common.c (handle_alias_attribute): Disallow attribute for
9838 anything not a FUNCTION_DECL or VAR_DECL.
9840 2009-02-06 Janis Johnson <janis187@us.ibm.com>
9843 * real.c (do_compare): Special-case compare of zero against
9844 decimal float value.
9846 2009-02-06 Joseph Myers <joseph@codesourcery.com>
9849 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
9850 as indicating flexible array members unless the field itself is
9851 being declarared as the incomplete array.
9853 2009-02-06 Jan Hubicka <jh@suse.cz>
9855 PR tree-optimization/38844
9856 * ipa-inline.c (try_inline): Stop inlining recursion when edge
9859 2009-02-06 Richard Guenther <rguenther@suse.de>
9862 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
9863 fork because we may expand it as __gcov_fork.
9865 2009-02-06 Nick Clifton <nickc@redhat.com>
9867 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
9869 2009-02-06 Paolo Bonzini <bonzini@gnu.org>
9871 PR tree-optimization/35659
9872 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
9873 vn_phi_eq): Shortcut if hashcode does not match.
9874 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
9876 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
9877 and avoid iterative_hash_expr.
9878 (FOR_EACH_VALUE_ID_IN_SET): New.
9879 (value_id_compare): Remove.
9880 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
9881 sort expressions by value id.
9883 2009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
9886 * config/sh/predicates.md (general_movsrc_operand): Don't check
9887 the subreg of system registers here.
9889 2009-02-05 Jakub Jelinek <jakub@redhat.com>
9892 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
9895 2009-02-05 Paolo Bonzini <bonzini@gnu.org>
9897 PR rtl-optimization/39110
9898 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
9899 addresses, not aligned ones.
9901 2009-02-05 Daniel Berlin <dberlin@dberlin.org>
9902 Richard Guenther <rguenther@suse.de>
9904 PR tree-optimization/39100
9905 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
9906 comment says and add edges.
9908 2009-02-05 Joseph Myers <joseph@codesourcery.com>
9911 * c-common.c (handle_tls_model_attribute): Ignore attribute for
9912 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
9914 2009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
9916 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
9917 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
9918 register_bb_in_sese, new_sese, free_sese): Moved.
9919 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
9920 outermost_loop_in_scop, build_scop_iteration_domain,
9921 expand_scalar_variables_ssa_name, get_vdef_before_scop,
9922 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
9923 Use loop_in_sese_p instead of loop_in_scop_p.
9924 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
9925 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
9926 (scopdet_basic_block_info): Fix bug in scop detection.
9927 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
9928 eq_loop_to_cloog_loop): Remove.
9929 (nb_loops_around_loop_in_scop, nb_loop
9930 ref_nb_loops): Moved here...
9931 * graphite.h (ref_nb_loops): ... from here.
9932 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
9933 (loop_domain_dim, loop_iteration_vector_dim): Remove.
9934 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
9935 * testsuite/gcc.dg/graphite/scop-19.c: New
9937 2009-02-04 Paolo Bonzini <bonzini@gnu.org>
9938 Hans-Peter Nilsson <hp@axis.com>
9940 PR rtl-optimization/37889
9941 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
9942 Move offset handling from PLUS to before the switch. Use new
9943 arguments when considering SYMBOL_REFs too.
9944 (rtx_addr_can_trap_p): Pass dummy offset and size.
9945 (enum may_trap_p_flags): Remove.
9946 (may_trap_p_1): Pass size from MEM_SIZE.
9948 PR rtl-optimization/38921
9949 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
9950 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
9951 * rtlanal.c (may_trap_after_code_motion_p): Delete.
9952 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
9954 2009-02-04 H.J. Lu <hongjiu.lu@intel.com>
9956 AVX Programming Reference (January, 2009)
9957 * config/i386/sse.md (*vpclmulqdq): New.
9959 2009-02-04 Jakub Jelinek <jakub@redhat.com>
9961 PR tree-optimization/38977
9962 PR gcov-profile/38292
9963 * calls.c (special_function_p): Disregard __builtin_ prefix.
9965 2009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
9967 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
9968 non-indexable addresses even before reload.
9970 2009-02-03 Joseph Myers <joseph@codesourcery.com>
9973 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
9974 as having variable size. Do not give an error for unnamed
9975 parameters with [*] declarators. Give a warning for type names
9976 with [*] declarators and mark them as variable size.
9977 * c-parser.c (c_parser_sizeof_expression): Do not give an error
9978 for sizeof applied to [*] type names.
9980 2009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
9983 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
9985 2009-02-03 Jakub Jelinek <jakub@redhat.com>
9987 * gcc.c (process_command): Update copyright notice dates.
9988 * gcov.c (print_version): Likewise.
9989 * gcov-dump.c (print_version): Likewise.
9990 * mips-tfile.c (main): Likewise.
9991 * mips-tdump.c (main): Likewise.
9993 2009-02-03 Joseph Myers <joseph@codesourcery.com>
9996 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
9997 for composite type involving a zero-length array type.
9999 2009-02-03 Jakub Jelinek <jakub@redhat.com>
10002 * function.c (match_asm_constraints_1): Skip over
10003 initial optional % in the constraint.
10005 PR inline-asm/39059
10006 * c-parser.c (c_parser_postfix_expression): If fixed point is not
10007 supported, don't accept FIXED_CSTs.
10008 * c-decl.c (finish_declspecs): Error if fixed point is not supported
10009 and _Sat is used without _Fract/_Accum. Set specs->type to
10010 integer_type_node for cts_fract/cts_accum if fixed point is not
10013 2009-02-02 Catherine Moore <clm@codesourcery.com>
10015 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
10017 2009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
10019 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
10020 (ABI_HAS_64BIT_SYMBOLS): Use it.
10021 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
10023 2009-02-02 Paul Brook <paul@codesourcery.com>
10025 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
10027 2009-02-02 Jakub Jelinek <jakub@redhat.com>
10029 PR inline-asm/39058
10030 * recog.h (asm_operand_ok): Add constraints argument.
10031 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
10032 recurse on matching constraint.
10033 (check_asm_operands): Pass constraints as 3rd argument to
10034 asm_operand_ok. Don't look up matching constraint here.
10035 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
10038 2009-02-02 Ben Elliston <bje@au.ibm.com>
10040 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
10041 TARGET_NARROW_VOLATILE_BITFIELD macro names.
10043 2009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10045 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
10046 information. Remove some obsolete information. Reorganize.
10048 * config/pa/fptr.c: Revert license to GPL 2.
10049 * config/pa/milli64.S: Likewise.
10051 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
10054 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
10055 LIBRARY name in, instead of hard-coding it.
10056 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
10057 extra target make frag to tmake_files according to EH model.
10058 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
10059 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
10060 frags that define makefile variable EH_MODEL appropriately.
10061 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
10062 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
10063 to "-sjlj" according to type of EH configured.
10064 (LIBGCC_SONAME): Concatenate it to shared library base name.
10065 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
10066 to "_sjlj" according to type of EH configured.
10067 (LIBGCC_SONAME): Concatenate it to shared library base name.
10068 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
10069 (SHLIB_LINK): Add missing semicolon to if-else construct.
10070 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
10071 string value of "pe_dll" command-line option.
10072 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
10073 (SHLIB_SONAME): Use it when overriding t-cygming default.
10074 (SHLIB_IMPLIB): Override t-cygming default.
10075 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
10076 string value of "pe_dll" command-line option.
10078 2009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
10081 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
10082 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
10084 2009-01-31 Richard Guenther <rguenther@suse.de>
10086 PR tree-optimization/38937
10087 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
10088 computing the transitive closure.
10090 2009-01-30 Richard Guenther <rguenther@suse.de>
10092 PR tree-optimization/39041
10093 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
10094 Propagate variable indices only if the types match for this stmt.
10096 2009-01-30 Jakub Jelinek <jakub@redhat.com>
10099 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
10100 inline but never defined.
10102 2009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
10104 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
10105 (*insv_h_di_reg_extimm): New insn.
10106 (*insv_l<mode>_reg_extimm): New insn.
10108 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
10110 * config/picochip/picochip.c (flag_conserve_stack): set
10111 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
10112 fconserve-stack. Reduce call-overhead used by inliner.
10114 2009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
10117 * common.opt (flag_conserve_stack): Initialised to zero.
10119 2009-01-30 Kai Tietz <kai.tietz@onevision.com>
10122 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
10123 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
10126 2009-01-29 H.J. Lu <hongjiu.lu@intel.com>
10128 * ira-color.c (allocno_reload_assign): Update comments.
10129 * regmove.c (regmove_optimize): Likewise.
10133 2009-01-29 Robert Millan <rmh@aybabtu.com>
10135 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
10136 * config/i386/kopensolaris-gnu.h: New file. Undefine
10137 `MD_UNWIND_SUPPORT'.
10138 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
10140 2009-01-29 Kazu Hirata <kazu@codesourcery.com>
10142 PR tree-optimization/39007
10143 * tree-loop-distribution.c (generate_builtin): Use
10144 recompute_dominator to compute the immediate dominator of the
10145 basic block just after the loop.
10147 2009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10149 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
10150 (ASM_OUTPUT_DWARF_PCREL): Define.
10152 2009-01-29 Vladimir Makarov <vmakarov@redhat.com>
10154 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
10155 * doc/passes.texi: Remove entries about regclass, local-alloc, and
10156 global. Modify entries about regmove and IRA.
10158 * ra-conflict.c: Remove the file.
10160 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
10162 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
10163 (pass_regclass_init): Rename to pass_reginfo_init.
10165 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
10167 * toplev.h (flag_ira): Remove.
10169 * caller-save.c (setup_save_areas): Remove flag_ira.
10171 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
10173 * global.c: Remove the file.
10175 * opts.c (decode_options): Remove flag_ira.
10177 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
10179 * regmove.c: Modify file description.
10180 (find_use_as_address, try_auto_increment): Define them only if
10181 AUTO_INC_DEC is defined.
10182 (replacement_quality, replace_in_call_usage, fixup_match_1,
10183 stable_and_no_regs_but_for_p): Remove.
10184 (reg_set_in_bb): Make it static.
10185 (regmove_optimize): Remove flag_ira and code which worked for
10188 * local-alloc.c: Remove the file.
10190 * common.opt (fira): Remove.
10192 * ira.c: Include except.h.
10193 (eliminable_regset): Move from global.c.
10194 (mark_elimination): Ditto. Remove flag_ira.
10195 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
10196 equiv_mem_modified, validate_equiv_mem_from_store,
10197 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
10198 contains_replace_regs, memref_referenced_p, memref_used_between_p,
10199 no_equiv, recorded_label_ref): Move from local-alloc.c.
10200 (update_equiv_regs): Ditto. Make it static.
10201 (print_insn_chain, print_insn_chains): Move it from global.c.
10202 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
10203 (build_insn_chain): Ditto. Make it static.
10204 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
10205 Rename to init_live_subregs.
10206 (gate_ira): Remove flag_ira.
10208 * regclass.c: Rename reginfo.c. Change file description.
10209 (FORBIDDEN_INC_DEC_CLASSES): Remove.
10210 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
10211 (init_reg_sets_1): Remove code for evaluation of
10212 reg_class_superclasses and losing_caller_save_reg_set.
10213 (init_regs): Remove init_reg_autoinc.
10214 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
10215 ok_for_base_p_nonstrict): Remove.
10216 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
10217 (pass_regclass_init): Rename to pass_reginfo_init. Modify
10218 corresponding entries.
10219 (dump_regclass, record_operand_costs, scan_one_insn,
10220 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
10221 record_address_regs, auto_inc_dec_reg_p): Remove.
10222 (gt-regclass.h): Rename to gt-reginfo.h.
10224 * rtl.h (dump_global_regs, retry_global_alloc,
10225 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
10227 * Makefile.in (RA_H): Remove.
10228 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
10229 Rename regclass.o to reginfo.o.
10230 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
10232 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
10233 (GTFILES): Rename regclass.c to reginfo.c.
10235 * passes.c (init_optimization_passes): Remove pass_local_alloc and
10236 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
10238 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
10239 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
10241 (finish_spills): Ditto. Remove code for !flag_ira.
10243 2009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
10245 PR middle-end/35854
10246 * doc/invoke.texi (rtl debug options): Complete rewrite.
10247 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
10249 * mode-switching.c (pass_mode_switching): Rename pass from
10250 "mode-sw" to "mode_sw".
10251 * except.c (pass_convert_to_eh_ranges): Rename pass from
10252 "eh-ranges" to "eh_ranges".
10253 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
10257 2009-01-29 Andrey Belevantsev <abel@ispras.ru>
10258 Alexander Monakov <amonakov@ispras.ru>
10260 PR middle-end/38857
10261 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
10263 (move_exprs_to_boundary): Change return type and pass through
10264 should_move from move_op. Relax assert. Update usage ...
10265 (schedule_expr_on_boundary): ... here. Use should_move instead of
10267 (move_op_orig_expr_found): Indicate that insn was disconnected from
10269 (code_motion_process_successors): Do not call after_merge_succs
10270 callback if original expression was not found when traversing any of
10272 (code_motion_path_driver): Change return type. Update prototype.
10273 (move_op): Update comment. Add a new parameter (should_move). Update
10274 prototype. Set *should_move based on indication provided by
10275 move_op_orig_expr_found.
10277 2009-01-28 Pat Haugen <pthaugen@us.ibm.com>
10279 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
10280 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
10281 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
10282 * config/rs6000/rs6000.c (rs6000_override_options): Default
10283 avoid-indexed-addresses on for Power6, off for everything else.
10284 (avoiding_indexed_address_p): New function.
10285 (rs6000_legitimize_address): Use it.
10286 (rs6000_legitimate_address): Likewise.
10287 * config/rs6000/rs6000.md (movXX_updateX): Likewise
10289 2009-01-28 Kazu Hirata <kazu@codesourcery.com>
10291 PR tree-optimization/38997
10292 * tree-loop-distribution.c (generate_memset_zero): Use
10293 POINTER_PLUS_EXPR for a pointer addition.
10295 2009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
10297 * config/s390/s390.md (bswap<mode>2): New pattern added.
10299 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
10301 * config/s390/s390.md (*tls_load_31): Added type attribute.
10303 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
10305 * config/s390/s390.md: Fix a few comments.
10307 2009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
10309 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
10310 (*tm<mode>_full): Fixed z10prop attribute.
10311 (*tst<mode>_extimm): Fixed z10prop attribute.
10312 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
10313 (*tstqiCCT_cconly): Fixed z10prop attribute.
10314 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
10315 (*movsi_larl): Fixed z10prop attribute.
10316 (*movsi_zarch): Fixed z10prop attribute.
10317 (*movsi_eas): Fixed z10prop attribute.
10318 (*movhi): Fixed z10prop attribute.
10319 (*movqi): Fixed z10prop attribute.
10320 (*movstrictqi): Fixed z10prop attribute.
10321 (*mov<mode>): Fixed z10prop attribute.
10322 (*movcc): Fixed z10prop attribute.
10323 (*sethighpartdi_64): Fixed z10prop attribute.
10324 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
10325 (*negdi2_sign_cc): Fixed z10prop attribute.
10326 (*negdi2_sign): Fixed z10prop attribute.
10327 (*absdi2_sign_cc): Fixed z10prop attribute.
10328 (*absdi2_sign): Fixed z10prop attribute.
10329 (*negabsdi2_sign_cc): Fixed z10prop attribute.
10330 (*negabsdi2_sign): Fixed z10prop attribute.
10331 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
10332 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
10333 (doloop_si64): Fixed z10prop attribute.
10334 (doloop_si31): Fixed z10prop attribute.
10335 (doloop_long): Fixed z10prop attribute.
10336 (indirect_jump): Fixed z10prop attribute.
10337 (nop): Fixed z10prop attribute.
10338 (main_base_64): Fixed z10prop attribute.
10339 (reload_base_64): Fixed z10prop attribute.
10341 2009-01-28 Jakub Jelinek <jakub@redhat.com>
10343 PR rtl-optimization/38740
10344 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
10346 * config/mips/mips.c (mips_reorg): Likewise.
10348 2009-01-28 Richard Guenther <rguenther@suse.de>
10350 PR tree-optimization/38926
10351 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
10352 with the correct value id to a value.
10353 (do_regular_insertion): Use the value number of edoubleprime
10354 for the value number of the expr.
10357 2008-08-21 Richard Guenther <rguenther@suse.de>
10359 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
10360 a PHI ask VN if it is already available.
10361 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
10362 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
10364 2009-01-28 Jakub Jelinek <jakub@redhat.com>
10366 PR middle-end/38934
10367 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
10368 set to varying whenever max has TREE_OVERFLOW set, similarly
10369 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
10371 2009-01-28 Richard Guenther <rguenther@suse.de>
10373 PR middle-end/38908
10374 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
10375 uninitialized aggregate uses in call arguments.
10377 2009-01-28 Paolo Bonzini <bonzini@gnu.org>
10379 PR tree-optimization/38984
10380 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
10381 the nothing_id variable if -fno-delete-null-pointer-checks.
10383 2009-01-28 Uros Bizjak <ubizjak@gmail.com>
10386 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
10387 (set_got_offset_rex64): Ditto.
10389 2009-01-27 H.J. Lu <hongjiu.lu@intel.com>
10392 * doc/extend.texi: Improve local variable with asm reg.
10394 2009-01-27 Adam Nemet <anemet@caviumnetworks.com>
10396 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
10397 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
10398 was not supplied then set warn_packed_bitfield_compat to the
10399 default value of 1.
10400 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
10403 2009-01-27 Richard Guenther <rguenther@suse.de>
10405 PR tree-optimization/38503
10406 * cfgexpand.c (expand_gimple_basic_block): Ignore
10407 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
10408 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
10409 variables that cannot have TBAA applied.
10410 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
10413 2009-01-27 Uros Bizjak <ubizjak@gmail.com>
10415 PR middle-end/38969
10416 * calls.c (initialize_argument_information): Do not wrap complex
10417 arguments in SAVE_EXPR.
10419 2009-01-26 Andreas Tobler <a.tobler@schweiz.org>
10421 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
10422 (INSTALL_LIBGCC): Revert typo commit.
10424 2009-01-26 Richard Guenther <rguenther@suse.de>
10426 PR tree-optimization/38745
10427 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
10428 from special handling.
10430 2009-01-26 Richard Guenther <rguenther@suse.de>
10432 PR tree-optimization/38745
10433 * tree-ssa.c (execute_update_addresses_taken): Do not include
10434 variables that cannot possibly be a register in not_reg_needs.
10435 Do not clear TREE_ADDRESSABLE on vars that may not become
10437 * tree-ssa.c (update_alias_info_1): Include those in the set
10438 of addressable vars.
10440 2009-01-26 Richard Guenther <rguenther@suse.de>
10442 PR middle-end/38851
10443 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
10444 * tree-ssa-dse.c: Include langhooks.h
10445 (execute_simple_dse): Remove stores with zero size.
10447 2009-01-24 Jakub Jelinek <jakub@redhat.com>
10450 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
10453 2009-01-24 Julian Brown <julian@codesourcery.com>
10455 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
10456 config/arm/linux-atomic.c.
10457 * config/arm/linux-atomic.c: New.
10459 2009-01-24 Eric Botcazou <ebotcazou@adacore.com>
10461 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
10462 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
10463 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
10465 2009-01-24 H.J. Lu <hongjiu.lu@intel.com>
10468 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
10471 2009-01-24 Sebastian Pop <sebastian.pop@amd.com>
10473 PR tree-optimization/38953
10474 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
10475 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
10476 (gloog): Split the exit of the scop when the scop exit is a loop exit.
10477 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
10480 2009-01-24 Paul Brook <paul@codesourcery.com>
10482 * config/arm/neon.md (neon_type): Move to arm.md.
10483 (neon_mov<VSTRUCT>): Add neon_type attribute.
10484 * config/arm/arm.md (neon_type): Move to here.
10485 (conds): Add "unconditioal" and use as default for NEON insns.
10487 2009-01-24 Ben Elliston <bje@au.ibm.com>
10489 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
10490 void *' warning from -Wc++-compat.
10491 * Makefile.in (dominance.o-warn): Remove.
10493 2009-01-23 Paolo Bonzini <bonzini@gnu.org>
10495 PR tree-optimization/38932
10496 * fold-const.c (fold_unary_ignore_overflow): New.
10497 * tree.h (fold_unary_ignore_overflow): Declare.
10498 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
10499 * tree-ssa-sccvn.c (visit_reference_op_load,
10500 simplify_unary_expression): Likewise.
10502 2009-01-22 Adam Nemet <anemet@caviumnetworks.com>
10504 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
10505 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
10506 regardless of their type.
10507 * c-common.c (handle_packed_attribute): Don't ignore packed on
10509 * c.opt (Wpacked-bitfield-compat): New warning option.
10510 * stor-layout.c (place_field): Warn if offset of a field changed.
10511 * doc/extend.texi (packed): Mention the ABI change.
10512 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
10513 (Warning Options): Add it to the list.
10515 2009-01-22 H.J. Lu <hongjiu.lu@intel.com>
10517 * c-opts.c (c_common_post_options): Fix a typo in comments.
10519 2009-01-22 Steve Ellcey <sje@cup.hp.com>
10521 PR middle-end/38615
10522 * gimplify.c (gimplify_init_constructor): Fix promotion of const
10523 variables to static.
10524 * doc/invoke.texi (-fmerge-all-constants): Update description.
10526 2009-01-22 Uros Bizjak <ubizjak@gmail.com>
10529 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
10530 (*movdi_1_rex64): Use type "mmx" for alternative 5.
10532 2009-01-22 Richard Earnshaw <rearnsha@arm.com>
10534 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
10536 (LOCAL_ALIGNMENT): Similarly.
10538 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
10539 Joseph Myers <joseph@codesourcery.com>
10541 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
10542 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
10543 * config/arm/arm-tune.md: Regenerate.
10544 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
10547 2009-01-22 Mark Shinwell <shinwell@codesourcery.com>
10549 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
10550 version number to five.
10552 2009-01-22 Dodji Seketeli <dodji@redhat.com>
10555 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
10556 * c-common.c (set_underlying_type): Likewise.
10557 (is_typedef_decl ): Likewise
10559 (set_underlying_type): Likewise.
10560 (is_typedef_type): Likewise.
10562 2009-01-21 Vladimir Makarov <vmakarov@redhat.com>
10564 PR middle-end/38587
10565 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
10568 2009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
10571 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
10572 (LIBGCC_SPEC): Don't define.
10573 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
10575 2009-01-21 Uros Bizjak <ubizjak@gmail.com>
10577 PR rtl-optimization/38879
10578 * alias.c (base_alias_check): Unaligned access via AND address can
10579 alias all surrounding object types except those with sizes equal
10580 or wider than the size of unaligned access.
10582 2009-01-21 Dodji Seketeli <dodji@redhat.com>
10585 * c-decl.c (clone_underlying_type): Move this ...
10586 * c-common.c (set_underlying_type): ... here.
10587 Also, make sure the function properly sets TYPE_STUB_DECL() on
10588 the newly created typedef variant type.
10589 (is_typedef_decl ): New entry point.
10590 * tree.h: Added a new member member_types_needing_access_check to
10591 struct tree_decl_non_common.
10592 (set_underlying_type): New entry point.
10593 (is_typedef_type): Likewise.
10595 2009-01-21 Bingfeng Mei <bmei@broadcom.com>
10597 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
10598 Check whether two instructions have memory references that
10599 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
10600 are helper functions for traversing.
10601 * alias.h (insn_alias_sets_confilict_p): New prototypes.
10602 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
10603 not to draw dependency edge for instructions with non-conflicting
10606 2009-01-20 Joseph Myers <joseph@codesourcery.com>
10609 * longlong.h: Update copyright years. Use soft-fp license notice.
10610 Sync __clz_tab declaration with glibc.
10612 2009-01-20 Steve Ellcey <sje@cup.hp.com>
10615 * doc/extend.texi (syscall_linkage): New.
10616 (version_id): Modify.
10618 2009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
10619 Richard Guenther <rguenther@suse.de>
10621 PR tree-optimization/38747
10622 PR tree-optimization/38748
10623 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
10624 conversion if the base address is an indirect reference and the
10625 aliasing sets could cause issues.
10627 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
10629 * common.opt (fgraphite, fgraphite-identity): Add comment for
10630 explaining why these options are not documented.
10632 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
10634 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
10635 gimple_call_lhs is NULL.
10637 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
10640 * emit-rtl.c (adjust_address_1): Make sure memref is never
10643 2009-01-20 Ben Elliston <bje@au.ibm.com>
10645 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
10646 const qualifier from arg parameter. Remove unnecessary cast to char *.
10647 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
10648 const qualifier from arg 2.
10650 2009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10652 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
10654 2009-01-19 Vladimir Makarov <vmakarov@redhat.com>
10657 * rtl.h (reinit_regs): New prototype.
10658 * regclass.c: Include ira.h.
10659 (reinit_regs): New.
10660 * Makefile.in (regclass.o): Add ira.h.
10661 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
10663 2009-01-18 H.J. Lu <hongjiu.lu@intel.com>
10666 * c-common.c (handle_aligned_attribute): Use
10667 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
10668 default alignment value.
10670 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
10672 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
10673 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
10675 * doc/extend.texi: Update __attribute__ ((aligned)). Document
10676 __BIGGEST_ALIGNMENT__.
10678 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
10680 2009-01-18 Richard Guenther <rguenther@suse.de>
10682 PR tree-optimization/38819
10683 * tree-flow.h (operation_could_trap_helper_p): Declare.
10684 * tree-eh.c (operation_could_trap_helper_p): Export.
10685 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
10686 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
10687 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
10688 are about to insert a possibly trapping instruction and fail
10691 2009-01-18 Andreas Schwab <schwab@suse.de>
10693 * doc/install.texi (Configuration): Remove obsolete paragraph
10694 about use of --with-gnu-ld with --with-gnu-as.
10696 2009-01-18 Kazu Hirata <kazu@codesourcery.com>
10698 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
10699 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
10700 Follow spelling conventions.
10702 2009-01-18 Ben Elliston <bje@au.ibm.com>
10704 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
10705 C++ warning about implicit conversion from void * to struct
10707 (bitmap_obstack_free): Likewise for bitmap_element *.
10708 * Makefile.in (bitmap.o-warn): Remove.
10710 2009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
10712 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
10714 2009-01-17 Sebastian Pop <sebastian.pop@amd.com>
10715 Tobias Grosser <tobi.grosser@amd.com>
10717 * graphite.c (graphite_trans_scop_block): Do not block single
10720 2009-01-16 Alexandre Oliva <aoliva@redhat.com>
10722 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
10723 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
10724 test with assertion.
10726 2009-01-16 Richard Guenther <rguenther@suse.de>
10728 PR tree-optimization/38835
10729 PR middle-end/36227
10730 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
10731 and INT + PTR -> (INT)(PTR p+ INT) folding.
10732 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
10734 2009-01-16 Adam Nemet <anemet@caviumnetworks.com>
10737 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
10738 the subreg from a lowpart subreg if it is also casting the value.
10740 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
10741 Tobias Grosser <tobi.grosser@amd.com>
10743 * graphite.c (compare_prefix_loops): New.
10744 (build_scop_canonical_schedules): Rewritten.
10745 (graphite_transform_loops): Move build_scop_canonical_schedules
10746 after build_scop_iteration_domain.
10748 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
10749 Tobias Grosser <tobi.grosser@amd.com>
10751 * graphite.c (add_conditions_to_domain): Add the loops to
10752 the dimension of the iteration domain. Do copy the domain
10753 only when it exists.
10754 (build_scop_conditions_1): Do not call add_conditions_to_domain.
10755 (add_conditions_to_constraints): New.
10756 (can_generate_code_stmt, can_generate_code): Removed.
10757 (gloog): Do not call can_generate_code.
10758 (graphite_transform_loops): Call add_conditions_to_constraints
10759 after building the iteration domain.
10761 2009-01-16 Jakub Jelinek <jakub@redhat.com>
10763 PR tree-optimization/38789
10764 * tree-ssa-threadedge.c
10765 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
10766 __builtin_constant_p.
10768 2009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
10770 * dce.c (delete_unmarked_insns): Reversed the order that insns are
10771 examined before deleting them.
10773 2009-01-16 Richard Earnshaw <rearnsha@arm.com>
10775 * function.c (aggregate_value_p): Correctly extract the function
10776 type from CALL_EXPR_FN lookup.
10778 2009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
10780 * config/picochip/picochip.c (picochip_override_options): Revert
10781 CFI asm flag disable commited previously.
10783 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
10784 Tobias Grosser <tobi.grosser@amd.com>
10785 Jan Sjodin <jan.sjodin@amd.com>
10787 * graphite.c (scan_tree_for_params): On substractions negate
10788 all the coefficients of the term.
10789 (clast_to_gcc_expression_red): New. Handle reduction expressions
10790 of more than two operands.
10791 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
10792 (get_vdef_before_scop): Handle also the case of default definitions.
10794 2009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
10796 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
10797 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
10798 Also use them when walking CALL_INSN_FUNCTION_USAGE.
10800 2009-01-15 H.J. Lu <hongjiu.lu@intel.com>
10801 Joey Ye <joey.ye@intel.com>
10803 PR middle-end/37843
10804 * cfgexpand.c (expand_stack_alignment): Don't update stack
10805 boundary nor check incoming stack boundary here.
10806 (gimple_expand_cfg): Update stack boundary and check incoming
10807 stack boundary here.
10809 2009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
10811 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
10813 2009-01-14 Jakub Jelinek <jakub@redhat.com>
10815 PR rtl-optimization/38245
10816 * calls.c (expand_call): Add stack arguments to
10817 CALL_INSN_FUNCTION_USAGE even for pure calls (when
10818 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
10819 in regs and partially in memory or BLKmode arguments.
10820 (emit_library_call_value_1): Add stack arguments to
10821 CALL_INSN_FUNCTION_USAGE even for pure calls (when
10822 ACCUMULATE_OUTGOING_ARGS).
10823 * dce.c: Include tm_p.h.
10824 (find_call_stack_args): New function.
10825 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
10827 (mark_insn): Call find_call_stack_args for CALL_Ps.
10828 (prescan_insns_for_dce): Walk insns backwards in bb rather than
10829 forwards. Allocate and free arg_stores bitmap if needed, pass it
10830 down to deletable_insn_p, don't mark stores set in arg_stores
10831 bitmap, clear the bitmap at the beginning of each bb.
10832 * Makefile.in (dce.o): Depend on $(TM_P_H).
10834 2009-01-14 Michael Meissner <gnu@the-meissners.org>
10837 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
10838 to make sure the insn is a conditional test (bug 22599). Reformat a
10841 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
10843 PR middle-end/38431
10844 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
10845 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
10846 (gloog): Do not call cleanup_tree_cfg.
10847 (graphite_transform_loops): Call cleanup_tree_cfg after all
10848 scops have been code generated.
10850 2009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
10851 * doc/gty.texi (Invoking the garbage collector): Added new node
10852 and section documenting ggc_collect.
10854 2009-01-14 Richard Guenther <rguenther@suse.de>
10856 PR tree-optimization/38826
10857 PR middle-end/38477
10858 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
10859 initialization notes only if we actually emitted a warning.
10860 (intra_create_variable_infos): Add constraints for a result decl
10861 that is passed by hidden reference.
10862 (build_pred_graph): Mark all related variables non-direct on
10865 2009-01-14 Nick Clifton <nickc@redhat.com>
10867 * ira-conflicts.c: Include addresses.h for the definition of
10869 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
10870 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
10872 2009-01-13 Vladimir Makarov <vmakarov@redhat.com>
10875 * Makefile.in (ira-lives.o): Add except.h.
10877 * ira-lives.c: Include except.h.
10878 (process_bb_node_lives): Process can_throw_internal.
10880 2009-01-13 Jakub Jelinek <jakub@redhat.com>
10882 PR rtl-optimization/38774
10883 * combine.c (simplify_set): When undoing cc_use change, don't do
10884 PUT_CODE on the newly created comparison, but instead put back the
10887 2009-01-13 Joseph Myers <joseph@codesourcery.com>
10889 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
10890 values. Remove duplicate arm8 entry.
10892 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
10894 PR tree-optimization/38786
10895 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
10896 the SSA_NAME case of expand_scalar_variables_expr.
10897 Set the type of an expression to the type of its assign statement.
10898 (expand_scalar_variables_expr): Also gather the scalar computation
10899 used to index the memory access. Do not pass loop_p.
10900 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
10901 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
10902 the gimple_stmt_iterator where it inserts new code.
10903 Do not pass loop_p.
10904 (copy_bb_and_scalar_dependences): Do not pass loop_p.
10905 (translate_clast): Update call to copy_bb_and_scalar_dependences.
10907 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
10909 * graphite.h (debug_value): Removed.
10910 * graphite.c (debug_value): Removed.
10912 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
10914 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
10915 ldrd/strd with two 32-bit instructions.
10917 2009-01-13 Richard Earnshaw <rearnsha@arm.com>
10919 * config/arm/arm.c (struct processors): Pass for speed down into
10920 cost helper functions.
10921 (const_ok_for_op): Handle COMPARE and inequality nodes.
10922 (arm_rtx_costs_1): Rewrite.
10923 (arm_size_rtx_costs): Update prototype.
10924 (arm_rtx_costs): Pass speed down to helper functions.
10925 (arm_slowmul_rtx_costs): Rework cost calculations.
10926 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
10927 (arm_9e_rtx_costs): Likewise.
10929 2009-01-13 Uros Bizjak <ubizjak@gmail.com>
10931 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
10932 relocations of local symbols wider than UNITS_PER_WORD are not valid.
10933 (alpha_legitimize_address): Do not split local symbols wider than
10934 UNITS_PER_WORD into HIGH/LO_SUM parts.
10936 2009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
10939 * gcc.c (process_command): Replace call to execvp with calls
10940 to pex_one and exit.
10942 2009-01-03 Anatoly Sokolov <aesok@post.ru>
10945 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
10946 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
10947 variant for devices with 3-byte PC.
10948 (__tablejump_elpm__): New.
10950 2009-01-12 Jakub Jelinek <jakub@redhat.com>
10953 * c-parser.c (c_parser_postfix_expression): Allow `->' in
10954 offsetof member-designator, handle it as `[0].'.
10956 2009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10958 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
10959 function when not using named sections on targets with named sections
10960 if branch distance is less than 262132.
10962 2009-01-12 Richard Earnshaw <rearnsha@arm.com>
10964 * combine.c (combine_instructions): Recompute
10965 optimize_this_for_speed_p for each BB in the main combine loop.
10967 2009-01-12 Tomas Bily <tbily@suse.cz>
10970 * tree-loop-distribution.c (prop_phis): New function.
10971 (generate_builtin): Call prop_phis.
10972 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
10974 2009-01-12 Jakub Jelinek <jakub@redhat.com>
10976 PR tree-optimization/38807
10977 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
10978 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
10980 2009-01-11 Adam Nemet <anemet@caviumnetworks.com>
10982 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
10983 subreg of op0 to the original op0.
10985 2009-01-11 Laurent GUERBY <laurent@guerby.net>
10987 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
10989 2009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
10992 * mips-tfile.c (parse_def): Fix parsing of def strings
10993 starting with digits.
10995 2009-01-10 Jakub Jelinek <jakub@redhat.com>
10998 * config/arm/arm.c (arm_is_long_call_p): Don't call
10999 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
11001 2009-01-09 Steven Bosscher <steven@gcc.gnu.org>
11003 * regrename.c (regrename_optimize): Fix dumping.
11004 (find_oldest_value_reg): Preserve REG_POINTER.
11005 (copy_hardreg_forward_1): Likewise.
11007 2009-01-09 Diego Novillo <dnovillo@google.com>
11009 * gimple.h (struct gimple_statement_base) <uid>: Document
11010 the restrictions on its use.
11011 (gimple_uid): Tidy.
11012 (gimple_set_uid): Tidy.
11014 2009-01-09 Jakub Jelinek <jakub@redhat.com>
11016 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
11017 zero guard even if align_bytes != 0 and count is smaller than
11020 2009-01-09 Vladimir Makarov <vmakarov@redhat.com>
11022 PR rtl-optimization/38495
11023 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
11024 (add_range_and_copies_from_move_list): Print all added ranges.
11025 Add ranges to memory optimized destination.
11027 2009-01-09 Jakub Jelinek <jakub@redhat.com>
11031 * config/i386/i386.c (override_options): Reject
11032 -mstringop-strategy=rep_8byte with -m32.
11033 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
11034 to 1. Do count comparison against epilogue_size_needed at compile
11035 time even when count_exp was constant forced into register. For
11036 size_needed don't jump to epilogue, instead just avoid aligning
11037 and invoke the body algorithm. If need_zero_guard, add zero guard
11038 even if count is non-zero, but smaller than size_needed + number of
11039 bytes that could be stored for alignment.
11040 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
11041 to 1. If need_zero_guard, add zero guard even if count is non-zero,
11042 but smaller than size_needed + number of bytes that could be stored
11043 for alignment. Compare size_needed with epilogue_size_needed instead
11044 of desired_align - align, don't adjust size_needed, pass
11045 epilogue_size_needed to the epilogue expanders.
11048 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
11050 2009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11052 * pa.c (last_address): Change to unsigned.
11053 (update_total_code_bytes): Change argument to unsigned. Don't
11054 check if insn addresses are set.
11055 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
11056 addresses are not set.
11057 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
11059 2009-01-09 Nick Clifton <nickc@redhat.com>
11061 * config/sh/symbian.c: Replace uses of DECL_INLINE with
11062 DECL_DECLARED_INLINE_P.
11064 2009-01-09 Jakub Jelinek <jakub@redhat.com>
11066 PR middle-end/38347
11067 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
11068 GET_MODE (op0) in operand_subword_force calls.
11070 PR middle-end/38771
11071 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
11072 fold_convert arg0 operands to TREE_TYPE (op0) first.
11074 2009-01-08 Vladimir Makarov <vmakarov@redhat.com>
11076 * params.def (ira-max-conflict-table-size): Decrease default value
11079 2009-01-08 Jakub Jelinek <jakub@redhat.com>
11081 PR tree-optimization/37031
11082 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
11084 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
11085 allocate it using gc instead of heap, use VEC_quick_push instead of
11087 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
11088 instead of heap, use VEC_quick_push instead of VEC_safe_push.
11089 * tree-data-ref.h (struct access_matrix): Change matrix to gc
11090 allocated vector from heap allocated.
11091 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
11092 * tree-loop-linear.c (linear_transform_loops): Allocate nest
11093 vector only after perfect_loop_nest_depth call.
11095 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
11096 Jan Sjodin <jan.sjodin@amd.com>
11098 PR tree-optimization/38559
11099 * graphite.c (debug_value, copy_constraint,
11100 swap_constraint_variables, scale_constraint_variable, ): New.
11101 (get_lower_bound, get_upper_bound): Removed.
11102 (graphite_trans_bb_strip_mine): Clean up this code that works
11103 only for constant number of iterations. Fully copy upper and
11104 lower bound constraints, not only the constant part of them.
11105 * graphite.h (debug_value): Declared.
11107 2009-01-08 Ira Rosen <irar@il.ibm.com>
11109 PR tree-optimization/37194
11110 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
11111 Don't add the cost of cost model guard in prologue to scalar
11112 outside cost in case of known number of iterations.
11114 2009-01-07 Nathan Froyd <froydnj@codesourcery.com>
11115 Alan Modra <amodra@bigpond.net.au>
11117 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
11118 non-word-aligned REG+CONST addressing.
11120 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
11123 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
11124 free_after_compilation when outputting a thunk.
11125 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
11126 Do not call free_after_compilation here.
11128 2009-01-07 Uros Bizjak <ubizjak@gmail.com>
11130 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
11131 (ix86_valid_target_attribute_inner_p): Ditto.
11133 2009-01-07 Jan Sjodin <jan.sjodin@amd.com>
11135 PR tree-optimization/38492
11136 PR tree-optimization/38498
11137 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
11138 * tree-chrec.h (scev_is_linear_expression): Declared.
11139 * graphite.c (graphite_cannot_represent_loop_niter): New.
11140 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
11141 (graphite_loop_normal_form): Use gcc_assert.
11142 (scan_tree_for_params): Use CASE_CONVERT.
11143 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
11144 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
11145 Use gcc_assert. Discard scops that contain unhandled cases.
11146 (build_scop_conditions): Return a boolean status for unhandled cases.
11147 (strip_mine_profitable_p): Print the loop number, not its depth.
11148 (is_interchange_valid): Pass the depth of the loop nest, don't
11149 recompute it wrongly.
11150 (graphite_trans_bb_block): Same.
11151 (graphite_trans_bb_block): Print tentative of loop blocking.
11152 (graphite_trans_scop_block): Do not print that the loop has been
11154 (graphite_transform_loops): Do not handle scops that contain condition
11157 2009-01-07 H.J. Lu <hongjiu.lu@intel.com>
11159 AVX Programming Reference (December, 2008)
11160 * config/i386/avxintrin.h (_mm256_stream_si256): New.
11161 (_mm256_stream_pd): Likewise.
11162 (_mm256_stream_ps): Likewise.
11164 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
11165 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
11166 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
11167 (bdesc_special_args): Add __builtin_ia32_movntdq256,
11168 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
11169 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
11170 (ix86_expand_special_args_builtin): Likewise.
11172 * config/i386/sse.md (AVXMODEDI): New.
11173 (avx_movnt<mode>): Likewise.
11174 (avx_movnt<mode>): Likewise.
11175 (<sse>_movnt<mode>): Remove AVX support.
11176 (sse2_movntv2di): Likewise.
11178 2009-01-07 Richard Guenther <rguenther@suse.de>
11180 PR middle-end/38751
11181 * fold-const.c (extract_muldiv): Remove obsolete comment.
11182 (fold_plusminus_mult_expr): Undo MINUS_EXPR
11183 to PLUS_EXPR canonicalization for the canonicalization.
11185 2009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
11187 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
11188 hosted cross-compilers generating less efficient code.
11190 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11192 * function.h (rtl_data): Add a dbr_scheduled_p field.
11193 * reorg.c (dbr_schedule): Set it.
11194 (gate_handle_delay_slots): Check it.
11195 * config/mips/mips.c (mips_base_delayed_branch): Delete.
11196 (mips_reorg): Check flag_delayed_branch instead of
11197 mips_base_delayed_branch.
11198 (mips_override_options): Don't set mips_base_delayed_branch
11199 or flag_delayed_branch.
11201 2009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
11203 PR rtl-optimization/38426.
11204 * ira.c (ira): Set current_function_is_leaf earlier.
11206 2009-01-06 Jakub Jelinek <jakub@redhat.com>
11208 PR rtl-optimization/38722
11209 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
11210 too early, only set a flag and modify after last possible
11213 2009-01-06 Janis Johnson <janis187@us.ibm.com>
11216 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
11217 * real.c (decimal_single_format): Correct values of emin and emax.
11218 (decimal_double_format): Ditto.
11219 (decimal_quad_format): Ditto.
11220 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
11221 computation of DECnn_MIN and DECnn_MAX for corrected values of
11222 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
11223 __DECnn_MIN__, and adjust its computation for the corrected value
11226 2009-01-06 Jan Hubicka <jh@suse.cz>
11229 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
11231 2009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
11233 * doc/contrib.texi (Contributors): Slightly adjust the end note.
11234 Add Robert Clark to the list of testers.
11236 2009-01-06 Jan Hubicka <jh@suse.cz>
11237 Kai Tietz <kai.tietz@onevision.com>
11239 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
11240 * config/i386/i386.c (ix86_expand_call): Add clobbers.
11242 2009-01-06 Jan Hubicka <jh@suse.cz>
11243 Kai Tietz <kai.tietz@onevision.com>
11245 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
11247 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
11248 (ix86_nsaved_regs): Count only general purpose regs.
11249 (ix86_nsaved_sseregs): New.
11250 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
11251 to 16 for w64; compute padding and size of sse reg save area.
11252 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
11253 general purpose regs.
11254 (ix86_emit_save_sse_regs_using_mov): New.
11255 (ix86_expand_prologue): Save SSE regs if needed.
11256 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
11257 (ix86_emit_restore_sse_regs_using_mov): New.
11258 (ix86_expand_epilogue): Save SSE regs if needed.
11260 2009-01-06 Jan Hubicka <jh@suse.cz>
11261 Kai Tietz <kai.tietz@onevision.com>
11263 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
11264 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
11265 functions when accumulate outgoing args is off.
11267 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
11270 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
11271 before using pseudos_have_intersected_live_ranges_p.
11273 * ira-int.h (ira_assert): Always define.
11275 2009-01-06 H.J. Lu <hongjiu.lu@intel.com>
11277 AVX Programming Reference (December, 2008)
11278 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
11279 (_mm256_permute2_pd): Likewise.
11280 (_mm_permute2_ps): Likewise.
11281 (_mm256_permute2_ps): Likewise.
11282 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
11283 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
11285 * config/i386/i386.c (ix86_builtins): Remove
11286 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
11287 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
11288 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
11289 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
11290 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
11291 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
11292 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
11293 __builtin_ia32_vpermil2ps256.
11294 (ix86_init_mmx_sse_builtins): Updated.
11295 (ix86_expand_args_builtin): Likewise.
11297 2009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11299 * pa.c (output_call): Relocate non-jump insns in the delay slot of
11300 long absolute calls when generating PA 2.0 code.
11302 2009-01-05 Vladimir Makarov <vmakarov@redhat.com>
11304 PR rtl-optimization/38583
11305 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
11307 * params.def (ira-max-conflict-table-size): New.
11309 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
11311 * ira.h (ira_conflicts_p): New external definition.
11313 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
11314 table. Report this. Return result of building.
11315 (ira_build_conflicts): Use ira_conflicts_p. Check result of
11316 building conflict table.
11318 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
11319 (ira_color): Use ira_conflicts_p.
11321 * global.c: Include ira.h.
11322 (pseudo_for_reload_consideration_p, build_insn_chain): Use
11325 * Makefile.in (global.o): Add ira.h.
11327 * ira-build.c (mark_all_loops_for_removal,
11328 propagate_some_info_from_allocno): New.
11329 (remove_unnecessary_allocnos): Call
11330 propagate_some_info_from_allocno.
11331 (remove_low_level_allocnos): New.
11332 (remove_unnecessary_regions): Add parameter. Call
11333 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
11334 parameter to remove_unnecessary_regions.
11335 (ira_build): Remove all regions but root if the conflict table was
11336 not built. Update conflict hard regs for allocnos crossing calls.
11338 * ira.c (ira_conflicts_p): New global.
11339 (ira): Define and use ira_conflicts_p.
11341 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
11342 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
11343 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
11345 2009-01-06 Ben Elliston <bje@au.ibm.com>
11347 * gengtype-lex.l (YY_NO_INPUT): Define.
11349 2009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
11352 * c-common.c (handle_vector_size_attribute): Also reject
11353 BOOLEAN_TYPE types.
11355 2009-01-05 Sebastian Pop <sebastian.pop@amd.com>
11357 PR tree-optimization/38492
11358 * graphite.c (rename_map_elt, debug_rename_elt,
11359 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
11360 rename_map_elt_info, eq_rename_map_elts,
11361 get_new_name_from_old_name, bb_in_sese_p): Moved around.
11362 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
11363 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
11364 (sese_build_livein_liveouts): New.
11365 (new_sese, free_sese): New.
11366 (new_scop): Call new_sese.
11367 (free_scop): Call free_sese.
11368 (rename_variables_from_edge, rename_phis_end_scop): Removed.
11369 (register_old_new_names): Renamed register_old_and_new_names.
11370 (register_scop_liveout_renames, add_loop_exit_phis,
11371 insert_loop_close_phis, struct igp,
11372 default_liveout_before_guard, add_guard_exit_phis,
11373 insert_guard_phis, copy_renames): New.
11374 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
11375 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
11376 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
11377 (scop_adjust_phis_for_liveouts): New.
11378 (gloog): Call scop_adjust_phis_for_liveouts.
11380 * graphite.h (struct sese): Documented. Added fields liveout,
11381 num_ver and livein.
11382 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
11383 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
11384 (struct scop): Added field liveout_renames.
11385 (SCOP_LIVEOUT_RENAMES): New.
11387 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
11389 PR tree-optimization/38510
11390 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
11391 (translate_clast): Call recompute_all_dominators before
11393 (gloog): Call recompute_all_dominators before graphite_verify.
11395 2009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
11396 Jan Sjodin <jan.sjodin@amd.com>
11398 PR tree-optimization/38500
11399 * graphite.c (create_sese_edges): Call fix_loop_structure after
11402 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
11404 * config.gcc: Add m32r*-*-rtems*.
11405 * config/m32r/rtems.h: New file.
11407 2009-01-05 Ben Elliston <bje@au.ibm.com>
11409 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
11410 (.po.pox): Likewise.
11411 (po/gcc.pot): Likewise.
11413 2009-01-04 David S. Miller <davem@davemloft.net>
11415 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
11416 (STARTING_FRAME_OFFSET): Always set to zero.
11418 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
11420 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
11421 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
11422 fixed-point types, and vectors of the same.
11424 2009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
11426 * config/mips/sync.md (*mb_barrier): Rename to...
11427 (*memory_barrier): ...this.
11429 2009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
11431 * doc/extend.texi (Function Attributes): Move @cindex after @item
11432 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
11433 and put in alphabetical order. Fix 'target' name and put in order.
11434 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
11437 2009-01-04 Uros Bizjak <ubizjak@gmail.com>
11439 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
11440 (memory_barrier): Expand as unspec instead of unspec_volatile.
11441 Remove mem:BLK from insn operands. Use Pmode scratch register.
11442 (*memory_barrier): Define as unspec instead of unspec_volatile.
11443 Use (match_dup 0) as input operand.
11445 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
11446 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
11447 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
11448 scratch register. Remove operand 1.
11449 (*stbar): Define as unspec instead of unspec_volatile.
11450 Use (match_dup 0) as input operand, remove (const_int 8).
11451 (*membar): Define as unspec instead of unspec_volatile.
11452 Use (match_dup 0) as input operand, remove input operand 2.
11454 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
11455 (memory_barrier): Expand as unspec instead of unspec_volatile.
11456 Remove mem:BLK from insn operands. Use Pmode scratch register.
11457 (*memory_barrier): Define as unspec instead of unspec_volatile.
11458 Use (match_dup 0) as input operand.
11460 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
11461 Remove mem:BLK from insn operands. Use Pmode scratch register.
11462 Set volatile flag on operand 0.
11463 (*memory_barrier): New insn pattern.
11465 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
11467 (*memory_barrier): Use (match_dup 0) as input operand.
11469 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
11470 Remove mem:BLK from insn operands. Use Pmode scratch register.
11471 Set volatile flag on operand 0.
11472 (*mb_internal): New insn pattern.
11474 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
11476 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
11478 PR middle-end/38586
11479 * function.c (struct temp_slot): Move to the section of the file
11480 that deals with temp slots. Remove field 'address'.
11481 (temp_slot_address_table): New hash table of address -> temp slot.
11482 (struct temp_slot_address_entry): New struct, items for the table.
11483 (temp_slot_address_compute_hash, temp_slot_address_hash,
11484 temp_slot_address_eq, insert_temp_slot_address): Support functions
11486 (find_temp_slot_from_address): Rewrite to use the new hash table.
11487 (remove_unused_temp_slot_addresses): Remove addresses of temp
11488 slots that have been made available.
11489 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
11490 worker function for remove_unused_temp_slot_addresses.
11491 (assign_stack_temp_for_type): Don't clear the temp slot address list.
11492 Add the temp slot address to the address -> temp slot map.
11493 (update_temp_slot_address): Update via insert_temp_slot_address.
11494 (free_temp_slots): Call remove_unused_temp_slot_addresses.
11495 (pop_temp_slots): Likewise.
11496 (init_temp_slots): Allocate the address -> temp slot map, or empty
11497 the map if it is already allocated.
11498 (prepare_function_start): Initialize temp slot processing.
11500 2009-01-04 Steven Bosscher <steven@gcc.gnu.org>
11502 PR middle-end/38584
11503 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
11504 Calculate the size of all stack vars assuming no packing of stack
11505 vars will happen, replacing a quadratic algorithm with a linear one.
11507 2009-01-03 Jakub Jelinek <jakub@redhat.com>
11510 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
11513 2009-01-03 Diego Novillo <dnovillo@google.com>
11515 * doc/contrib.texi: Update contributions.
11517 2009-01-03 Jakub Jelinek <jakub@redhat.com>
11520 * builtins.c (fold_builtin_memory_op): Give up if either operand
11521 is volatile. Set srctype or desttype to non-qualified version
11525 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
11526 and FUNCTION_DECLs.
11528 2009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
11530 PR rtl-optimization/35805
11531 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
11532 problem if fast dce is able to remove any instructions.
11533 * dce.c (dce_process_block): Fix dump message.
11535 2009-01-02 Mark Mitchell <mark@codesourcery.com>
11538 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
11540 2009-01-02 Jakub Jelinek <jakub@redhat.com>
11542 PR middle-end/38690
11543 * tree-flow.h (op_code_prio, op_prio): New prototypes.
11544 * tree-pretty-print.c (op_code_prio): New function.
11545 (op_prio): No longer static. Use op_code_prio.
11546 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
11547 Use op_prio and op_code_prio to determine if () should be
11548 printed around operand(s) or not.
11550 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
11551 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
11552 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
11553 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
11554 pp_character instead of pp_string for single letter printing.
11556 2009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
11558 * doc/extend.texi: Fix '#pragma GCC option' typo.
11560 2009-01-02 Richard Guenther <rguenther@suse.de>
11562 * doc/install.texi (--enable-checking): Mention different
11563 default for stage1.
11564 (--enable-stage1-checking): Document.
11566 2009-01-01 Andrew Pinski <pinskia@gmail.com>
11568 PR middle-end/30142
11569 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
11570 case to be an error.
11572 2009-01-02 Ben Elliston <bje@au.ibm.com>
11574 * config/fp-bit.h (pack_d): Constify argument.
11575 * config/fp-bit.c (makenan): Constify return type. Remove casts.
11576 (isnan): Constify argument.
11578 (iszero): Likewise.
11579 (pack_d): Likewise.
11580 (_fpadd_parts): Constify return type.
11581 (_fpmul_parts): Likewise.
11582 (_fpdiv_parts): Likewise.
11584 2009-01-01 Jakub Jelinek <jakub@redhat.com>
11587 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
11588 warn about overwriting initializer with side-effects or
11589 -Woverride-init if !IMPLICIT.
11590 (output_init_element): Likewise. Pass IMPLICIT down to
11592 (process_init_element): Add IMPLICIT argument. Pass it down
11593 to output_init_element.
11594 (push_init_element, pop_init_level, set_designator): Adjust
11595 process_init_element callers.
11596 (set_nonincremental_init, set_nonincremental_init_from_string):
11597 Adjust add_pending_init callers.
11598 (output_pending_init_elements): Adjust output_init_element callers.
11599 * c-tree.h (process_init_element): Adjust prototype.
11600 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
11601 process_init_element callers.
11604 Copyright (C) 2009 Free Software Foundation, Inc.
11606 Copying and distribution of this file, with or without modification,
11607 are permitted in any medium without royalty provided the copyright
11608 notice and this notice are preserved.