1 2010-05-22 Anatoly Sokolov <aesok@post.ru>
3 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
4 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5 (sparc_mode_dependent_address_p): New function.
7 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
9 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
11 * timevar.c: Do not include any core headers.
12 (timevar_print): De-i18n-ize.
13 (print_time): Likewise.
14 * timevar.h (timevar_push, timevar_pop): Make inline functions.
16 2010-05-21 Joseph Myers <joseph@codesourcery.com>
18 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
20 (diagnostic_initialize): Initialize x_data not last_function.
21 (diagnostic_report_current_function): Move to tree-diagnostic.c.
22 (default_diagnostic_starter): Call
23 diagnostic_report_current_module not
24 diagnostic_report_current_function.
25 (diagnostic_report_diagnostic): Initialize x_data not
28 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
30 (struct diagnostic_context): Change last_function to x_data.
31 (diagnostic_auxiliary_data): Replace with
32 diagnostic_context_auxiliary_data and
33 diagnostic_info_auxiliary_data.
34 (diagnostic_last_function_changed, diagnostic_set_last_function,
35 diagnostic_report_current_function): Move to tree-diagnostic.h.
36 (print_declaration, dump_generic_node, print_generic_stmt,
37 print_generic_stmt_indented, print_generic_expr,
38 print_generic_decl, debug_c_tree, dump_omp_clauses,
39 print_call_name, debug_generic_expr, debug_generic_stmt,
40 debug_tree_chain, default_tree_printer): Move to
42 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
43 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
44 gimple-pretty-print.h.
45 * pretty-print.c: Don't include tree.h
46 (pp_base_format): Don't handle %K here.
47 (pp_base_tree_identifier): Move to tree-pretty-print.c.
48 * pretty-print.h (text_info): Change abstract_origin to x_data.
49 (pp_tree_identifier, pp_unsupported_tree,
50 pp_base_tree_identifier): Move to tree-pretty-print.h.
51 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
52 tree-pretty-print.h: New files.
53 * tree-pretty-print.c: Include tree-pretty-print.h.
54 (percent_K_format): New. Moved from pretty-print.c.
55 (pp_base_tree_identifier): Move from pretty-print.c.
56 * c-objc-common.c: Include tree-pretty-print.h.
57 (c_tree_printer): Handle %K here.
58 * langhooks.c: Include tree-diagnostic.h.
59 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
60 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
61 (default_tree_printer): Handle %K using percent_K_format.
62 (general_init): Use default_tree_diagnostic_starter.
63 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
64 (free_lang_data): Use default_tree_diagnostic_starter.
65 * c-pretty-print.c: Include tree-pretty-print.h.
66 * cfgexpand.c: Include tree-pretty-print.h and
67 gimple-pretty-print.h.
68 * cgraphunit.c: Include tree-pretty-print.h and
69 gimple-pretty-print.h.
70 * dwarf2out.c: Include tree-pretty-print.h.
71 * except.c: Include tree-pretty-print.h.
72 * gimple-pretty-print.c: Include tree-pretty-print.h and
73 gimple-pretty-print.h.
74 * gimplify.c: Include tree-pretty-print.h.
75 * graphite-poly.c: Include tree-pretty-print.h and
76 gimple-pretty-print.h.
77 * ipa-cp.c: Include tree-pretty-print.h.
78 * ipa-inline.c: Include gimple-pretty-print.h.
79 * ipa-prop.c: Include tree-pretty-print.h and
80 gimple-pretty-print.h.
81 * ipa-pure-const.c: Include gimple-pretty-print.h.
82 * ipa-struct-reorg.c: Include tree-pretty-print.h and
83 gimple-pretty-print.h.
84 * ipa-type-escape.c: Include tree-pretty-print.h.
85 * print-rtl.c: Include tree-pretty-print.h.
86 * print-tree.c: Include gimple-pretty-print.h.
87 * sese.c: Include tree-pretty-print.h.
88 * tree-affine.c: Include tree-pretty-print.h.
89 * tree-browser.c: Include tree-pretty-print.h.
90 * tree-call-cdce.c: Include gimple-pretty-print.h.
91 * tree-cfg.c: Include tree-pretty-print.h and
92 gimple-pretty-print.h.
93 * tree-chrec.c: Include tree-pretty-print.h.
94 * tree-data-ref.c: Include tree-pretty-print.h and
95 gimple-pretty-print.h.
96 * tree-dfa.c: Include tree-pretty-print.h.
97 * tree-if-conv.c: Include tree-pretty-print.h and
98 gimple-pretty-print.h.
99 * tree-inline.c: Include tree-pretty-print.h.
100 * tree-into-ssa.c: Include tree-pretty-print.h and
101 gimple-pretty-print.h.
102 * tree-nrv.c: Include tree-pretty-print.h.
103 * tree-object-size.c: Include tree-pretty-print.h and
104 gimple-pretty-print.h.
105 * tree-outof-ssa.c: Include tree-pretty-print.h and
106 gimple-pretty-print.h.
107 * tree-parloops.c: Include tree-pretty-print.h and
108 gimple-pretty-print.h.
109 * tree-predcom.c: Include tree-pretty-print.h and
110 gimple-pretty-print.h.
111 * tree-scalar-evolution.c: Include tree-pretty-print.h and
112 gimple-pretty-print.h.
113 * tree-sra.c: Include tree-pretty-print.h.
114 * tree-ssa-address.c: Include tree-pretty-print.h.
115 * tree-ssa-alias.c: Include tree-pretty-print.h.
116 * tree-ssa-ccp.c: Include tree-pretty-print.h and
117 gimple-pretty-print.h.
118 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
119 * tree-ssa-copy.c: Include tree-pretty-print.h and
120 gimple-pretty-print.h.
121 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
122 * tree-ssa-dce.c: Include tree-pretty-print.h and
123 gimple-pretty-print.h.
124 * tree-ssa-dom.c: Include tree-pretty-print.h and
125 gimple-pretty-print.h.
126 * tree-ssa-dse.c: Include gimple-pretty-print.h.
127 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
128 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
129 * tree-ssa-live.c: Include tree-pretty-print.h and
130 gimple-pretty-print.h.
131 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
132 gimple-pretty-print.h.
133 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
134 gimple-pretty-print.h.
135 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
136 gimple-pretty-print.h.
137 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
138 gimple-pretty-print.h.
139 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
140 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
141 * tree-ssa-operands.c: Include tree-pretty-print.h and
142 gimple-pretty-print.h.
143 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
144 gimple-pretty-print.h.
145 * tree-ssa-pre.c: Include tree-pretty-print.h and
146 gimple-pretty-print.h.
147 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
148 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
149 gimple-pretty-print.h.
150 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
151 gimple-pretty-print.h.
152 * tree-ssa-sink.c: Include gimple-pretty-print.h.
153 * tree-ssa-ter.c: Include tree-pretty-print.h and
154 gimple-pretty-print.h.
155 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
156 * tree-ssa.c: Include tree-pretty-print.h and
157 gimple-pretty-print.h.
158 * tree-stdarg.c: Include gimple-pretty-print.h.
159 * tree-switch-conversion.c: Include gimple-pretty-print.h.
160 * tree-tailcall.c: Include tree-pretty-print.h and
161 gimple-pretty-print.h.
162 * tree-vect-data-refs.c: Include tree-pretty-print.h and
163 gimple-pretty-print.h.
164 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
165 gimple-pretty-print.h.
166 * tree-vect-loop.c: Include tree-pretty-print.h and
167 gimple-pretty-print.h.
168 * tree-vect-patterns.c: Include gimple-pretty-print.h.
169 * tree-vect-slp.c: Include tree-pretty-print.h and
170 gimple-pretty-print.h.
171 * tree-vect-stmts.c: Include tree-pretty-print.h and
172 gimple-pretty-print.h.
173 * tree-vectorizer.c: Include tree-pretty-print.h.
174 * tree-vrp.c: Include tree-pretty-print.h and
175 gimple-pretty-print.h.
176 * value-prof.c: Include tree-pretty-print.h and
177 gimple-pretty-print.h.
178 * var-tracking.c: Include tree-pretty-print.h.
179 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
180 (tree-diagnostic.o): New dependencies.
181 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
182 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
183 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
184 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
185 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
186 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
187 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
188 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
189 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
190 tree-ssa-address.o, tree-ssa-loop-niter.o,
191 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
192 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
193 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
194 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
195 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
196 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
197 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
198 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
199 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
200 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
201 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
202 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
203 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
204 tree-switch-conversion.o, var-tracking.o, value-prof.o,
205 cfgexpand.o, pretty-print.o): Update dependencies.
207 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
209 * tree-ssa-structalias.c: Remove tm_p.h from include.
211 2010-05-21 Jeff Law <law@redhat.com>
213 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
215 2010-05-21 Jason Merrill <jason@redhat.com>
217 * tree-eh.c (cleanup_is_dead_in): New.
218 (lower_try_finally): Don't generate a dead cleanup region.
219 (lower_cleanup): Likewise.
221 2010-05-21 Jakub Jelinek <jakub@redhat.com>
224 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
225 unchain each use from the cyclic next_regno_use chain first.
227 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
229 * real: Do not include gmp.h, mpfr.h, and mpc.h.
230 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
231 (real_value_negate, real_value_abs): New prototypes.
232 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
233 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
234 new include file for interface between MPFR and REAL_VALUE_TYPE.
235 * real.c: Include realmpfr.h.
236 (real_arithmetic2): Remove legacy function.
237 (real_value_negate): New.
238 (real_value_abs): New.
239 (mfpr_from_real, real_from_mpfr): Move from here...
240 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
241 * builtins.c: Include realmpfr.h.
242 * fold-const.c: Include realmpfr.h.
243 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
244 (fold_negate_const): Likewise.
245 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
246 * toplev.c: Include realmpfr.h.
247 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
248 and real_value_negate.
249 * fixed-value.c (check_real_for_fixed_mode): Likewise.
250 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
251 (vfp3_const_double_index): Likewise.
252 (arm_print_operand): Likewise.
253 * Makefile.in: Update dependencies.
255 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
257 * config/s390/s390.c (override_options): Increase the default
258 of max-completely-peel-times.
260 2010-05-21 Julian Brown <julian@codesourcery.com>
261 Mark Mitchell <mark@codesourcery.com>
263 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
264 sibling calls for Thumb-1.
265 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
266 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
268 (*call_insn, *call_value_insn): Don't use for Thumb-2.
269 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
271 (return): New expander.
272 (*arm_return): New name for ARM return insn.
273 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
275 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
277 * config.gcc (sparc64-*-rtems*): New target.
279 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
281 * tree.c (build_function_decl_skip_args): Fix grammar.
282 (build_function_type_list_1): Fix typos, adjust formatting.
284 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
286 * tree.h: Include real.h and fixed-value.h as basic datatypes.
287 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
288 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
289 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
290 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
291 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
292 tree-pretty-print.c, tree-loop-distribution.c,
293 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
294 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
295 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
296 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
297 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
298 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
299 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
300 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
301 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
302 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
303 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
304 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
305 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
306 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
307 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
308 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
309 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
310 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
311 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
312 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
313 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
314 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
315 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
316 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
317 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
318 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
319 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
320 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
321 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
322 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
323 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
324 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
325 config/score/score7.c, config/score/score.c, config/arm/arm.c,
326 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
327 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
329 Clean up redundant includes.
330 * Makefile.in: Update accordingly.
332 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
335 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
336 statement has no arguments.
338 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
341 * varasm.c (emutls_decl): Merge attributes to new decl.
343 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
346 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
347 around the uniquized constructor if its type requires a conversion.
349 2010-05-21 Jakub Jelinek <jakub@redhat.com>
352 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
353 at -O0 goto_locus of any of the incoming edges differs from
354 goto_locus of outgoing edge, or gimple_location of any of the
357 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
359 * ira.c (ira_non_ordered_class_hard_regs): Define.
360 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
361 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
362 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
363 cost of unaligned hard regs when allocating multi-reg pseudos.
365 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
367 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
368 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
370 * config/mips/mips.c (mips_file_start): Expand conditional expression
371 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
372 (mips_override_options): Move -mno-float override -msoft-float and
374 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
375 Condition(TARGET_SUPPORTS_NO_FLOAT).
376 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
377 __mips_no_float here.
378 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
379 (TARGET_SUPPORTS_NO_FLOAT): Define.
380 * config/mips/sdemtk.opt: Delete.
382 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
384 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail
387 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
390 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
391 * configure: Regenerate.
392 * config.in: Regenerate.
393 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
394 instead of sahf only for 64bit targets.
396 2010-05-20 Jakub Jelinek <jakub@redhat.com>
399 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
400 setup_ref_regs for DEBUG_INSNs.
402 2010-05-20 Jan Hubicka <jh@suse.cz>
405 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
407 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
410 * df-scan.c (df_ref_compare): Stabilize sort.
412 2010-05-20 Jakub Jelinek <jakub@redhat.com>
414 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
415 argument. Don't use DW_OP_piece if offset is non-zero,
416 put offset into second DW_OP_bit_piece argument.
417 (dw_sra_loc_expr): Adjust callers. For memory expressions
420 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
423 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
424 settings for 16-bit-constant "addo" alternative.
426 2010-05-19 James E. Wilson <wilson@codesourcery.com>
428 * config/mips/mips-dsp.md (add<DSPV:mode>3,
429 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
432 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
433 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
436 2010-05-19 Joseph Myers <joseph@codesourcery.com>
438 * diagnostic.c (FLOAT, FFS): Don't undefine.
439 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
440 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
443 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
445 * combine.c (propagate_for_debug): Call make_compound_operation
447 (try_combine): When implementing a split chosen by find_split_point,
448 either copy i2src or set it to null. Assert that i2src is not null
449 before substituting into CALL_INSN_FUNCTION_USAGE.
451 2010-05-19 Anatoly Sokolov <aesok@post.ru>
453 * double-int.h (double_int_ior): New function.
454 * tree.h (build_int_cst_wide_type): Remove.
455 * tree.c (build_int_cst_wide_type): Remove.
456 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
457 of build_int_cst_wide_type.
458 * stor-layout.c (set_sizetype): (Ditto.).
459 * dojump.c (do_jump): Use build_int_cstu instead of
460 build_int_cst_wide_type.
462 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
464 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
465 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
466 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
467 * gimplify.c: (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
468 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
469 propagate the 'data' argument to copy_tree_r.
470 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
471 Propagate 'data' argument to walk_tree.
472 (copy_if_shared): New function.
473 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
474 (unmark_visited): New function.
475 (unshare_body): Call copy_if_shared instead of doing it manually.
476 (unvisit_body): Call unmark_visited instead of doing it manually.
478 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
480 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
481 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
483 * target-def.h (TARGET_FOLD_BUILTIN): Define to
484 hook_tree_tree_int_treep_bool_null.
485 * target.h: (struct gcc_target): Update signature of fold_builtin
487 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
488 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
489 instead of the call expression.
490 (fold_builtin_call_array): Pass n and argarray directly.
491 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
493 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
494 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
495 `i' and use it in place of `arity'.
496 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
497 Dereference `args' directly.
498 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
500 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
502 * doc/sourcebuild.texi (Effective-Target Keywords): Document
504 (Directives): Document optional dg-require-effective-target
507 2010-05-19 Richard Guenther <rguenther@suse.de>
510 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
512 2010-05-19 Richard Guenther <rguenther@suse.de>
514 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
515 * common.opt (fwhopr=): New.
516 * opts.c (common_handle_option): Handle OPT_fwhopr.
517 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
518 * collect2.c (main): Match -fwhopr*.
519 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
520 Execute ltrans stage in parallel when jobs is bigger than 1.
522 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
524 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
525 pentiumpro on Solaris 8/x86 with Sun as.
526 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
528 (gcc_cv_as_ix86_quad): Check for .quad directive.
529 * configure: Regenerate.
530 * config.in: Regenerate.
531 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
533 2010-05-19 Martin Jambor <mjambor@suse.cz>
535 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
536 also for indirect edges. Actual printing moved...
537 (ipa_print_node_jump_functions_for_edge): ...here.
538 (ipa_compute_jump_functions): Renamed to
539 ipa_compute_jump_functions_for_edge and made static.
540 (ipa_compute_jump_functions): New function.
541 (make_edge_direct_to_target): Check if the number of arguments on
542 the newly direct edge is the same as the number of parametrs of
544 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
545 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
546 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
547 analysis functions unconditionally, call the new
548 ipa_analyze_params_uses on the node instead of every edge.
550 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
552 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
554 (dump_mem_ref): Adopt debug code to handle a tree as step. This
555 also checks for a constant int vs. non-constant but
556 loop-invariant steps.
557 (find_or_create_group): Change the sort algorithm to only consider
558 steps that are constant ints.
559 (idx_analyze_ref): Adopt code to handle a tree instead of a
560 HOST_WIDE_INT for step.
561 (gather_memory_references_ref): Handle tree instead of int and be
562 prepared to see a NULL_TREE.
563 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
564 prefetches if the step cannot be calculated at compile time.
565 (issue_prefetch_ref): Issue prefetches for non-constant but
566 loop-invariant steps.
568 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
571 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
573 * tree.h (build_call_list): Remove.
574 * tree.c (build_call_list): Remove.
576 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
578 * tree.h (build_call_list): Remove.
579 * tree.c (build_call_list): Remove.
581 2010-05-18 Jan Hubicka <jh@suse.cz>
583 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
585 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
587 PR rtl-optimization/43332
588 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
590 2010-05-18 Anatoly Sokolov <aesok@post.ru>
592 * tree.h (build_int_cstu): Implement as static inline.
593 * tree.c (build_int_cstu): Remove function.
594 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
597 2010-05-18 Richard Guenther <rguenther@suse.de>
600 * lto-wrapper.c (verbose): New variable. Initialize from -v.
601 (debug): Initialize from -save-temps.
602 (collect_execute): Print command-line when verbose.
603 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
604 for ltrans invocation. Produce -dumpbase flag again.
605 (process_args): Remove.
607 * collect2.c (maybe_run_lto_and_relink): Only pass object
608 files to lto-wrapper.
609 * gcc.c (LINK_COMMAND_SPEC): Likewise.
611 2010-05-18 Jan Hubicka <jh@suse.cz>
613 * opts.c (decode_options): Do not disable whopr at ipa_cp.
614 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
616 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
619 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
621 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
624 2010-05-18 Jakub Jelinek <jakub@redhat.com>
627 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
630 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
632 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
633 lto-macho as lto_binary_reader.
635 * darwin.c (darwin_asm_named_section): Do not add assembler comment
636 after .section directive; just print it before the directive instead.
638 2010-05-17 Jan Hubicka <jh@suse.cz>
640 * cgraph.c (cgraph_create_virtual_clone): Only check
641 versionable_function_p when not in wpa and checking is enabled.
642 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
643 there are no more functions to materialize.
645 2010-05-17 Jan Hubicka <jh@suse.cz>
647 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
648 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
650 (output_cgraph): Call output_cgraph_opt_summary.
651 (input_cgrpah): Call input_cgraph_opt_summary.
652 (output_cgraph_opt_summary_p, output_node_opt_summary,
653 input_node_opt_summary, input_cgraph_opt_section): New functions.
654 * lto-section-in.c (lto_section_name): Add cgraphopt.
655 * tree-inline.c (tree_function_versioning): Handle parm_num.
656 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
657 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
659 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
661 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
662 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
663 the insn to prefetch ratio heuristic to loops with known trip count.
665 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
667 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
668 (schedule_prefetches): Do not generate a prefetch if the unroll factor
669 is far from what is required by the prefetch.
671 2010-05-17 Jan Hubicka <jh@suse.cz>
673 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
674 (ipcp_estimate_growth): Likewise.
675 (ipcp_const_param_count): Likewise.
676 (ipcp_insert_stage): Likewise.
677 * ipa-prop.c (visit_load_for_mod_analysis): New function.
678 (visit_store_addr_for_mod_analysis): Set used flag.
679 (ipa_detect_param_modifications): Set used flag for SSE params;
680 update use of walk_stmt_load_store_addr_ops.
681 (ipa_print_node_params): Print used flag.
682 (ipa_write_node_info): Stream used flag.
683 (ipa_read_node_info): Likewise.
684 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
685 (ipa_is_param_used): New function.
686 (lto_ipa_fixup_call_notes): Remove unused declaration.
688 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
691 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
692 * configure: Regenerate.
693 * config.in: Regenerate.
694 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
695 !HAVE_AS_IX86_REP_LOCK_PREFIX.
696 Don't emit whitespace.
697 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
698 (*rep_movsi): Likewise.
699 (*rep_movsi_rex64): Likewise.
700 (*rep_movqi): Likewise.
701 (*rep_movqi_rex64): Likewise.
702 (*rep_stosdi_rex64): Likewise.
703 (*rep_stossi): Likewise.
704 (*rep_stossi_rex64): Likewise.
705 (*rep_stosqi): Likewise.
706 (*rep_stosqi_rex64): Likewise.
707 (*cmpstrnqi_nz_1): Use {%;} after repz.
708 (*cmpstrnqi_nz_rex_1): Likewise.
709 (*cmpstrnqi_1): Likewise.
710 (*cmpstrnqi_rex_1): Likewise.
711 (*strlenqi_1): Use {%;} after repnz.
712 (*strlenqi_rex_1): Likewise.
713 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
714 (*sync_compare_and_swap<mode>): Likewise.
715 (sync_double_compare_and_swap<mode>): Likewise.
716 (*sync_double_compare_and_swapdi_pic): Likewise.
717 (sync_old_add<mode>): Likewise.
718 (sync_add<mode>): Likewise.
719 (sync_sub<mode>): Likewise.
720 (sync_<code><mode>): Likewise.
722 2010-05-17 Martin Jambor <mjambor@suse.cz>
724 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
725 otr_token and polymorphic.
726 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
727 (cgraph_clone_edge): Copy the above fields.
728 * tree.c (get_binfo_at_offset): New function.
729 * tree.h (get_binfo_at_offset): Declare.
730 * ipa-prop.h (enum jump_func_type): Added known_type jump function
731 type, reordered items, updated comments.
732 (union jump_func_value): Added base_type field, reordered fields.
733 (enum ipa_lattice_type): Moved down in the file.
734 (struct ipa_param_descriptor): New field polymorphic.
735 (ipa_is_param_polymorphic): New function.
736 * ipa-prop.c: Include gimple.h and gimple-fold.h.
737 (ipa_print_node_jump_functions): Print known type jump functions.
738 (compute_complex_pass_through): Renamed to...
739 (compute_complex_assign_jump_func): this.
740 (compute_complex_ancestor_jump_func): New function.
741 (compute_known_type_jump_func): Likewise.
742 (compute_scalar_jump_functions): Create known type and complex ancestor
744 (ipa_note_param_call): New parameter polymorphic, set the corresponding
745 flag in the call note accordingly.
746 (ipa_analyze_call_uses): Renamed to...
747 (ipa_analyze_indirect_call_uses): this. New parameter target, define
748 variable var only in the block where it is used.
749 (ipa_analyze_virtual_call_uses): New function.
750 (ipa_analyze_call_uses): Likewise.
751 (combine_known_type_and_ancestor_jfs): Likewise.
752 (update_jump_functions_after_inlining): Implemented handling of a
753 number of new jump function types combination.
754 (print_edge_addition_message): Removed.
755 (make_edge_direct_to_target): New function.
756 (try_make_edge_direct_simple_call): Likewise.
757 (try_make_edge_direct_virtual_call): Likewise.
758 (update_call_notes_after_inlining): Renamed to...
759 (update_indirect_edges_after_inlining): this. Moved edge creation for
760 indirect calls to try_make_edge_direct_simple_call, also calls
761 try_make_edge_direct_virtual_call for virtual calls.
762 (ipa_print_node_params): Changed the header message.
763 (ipa_write_jump_function): Stream also known type jump functions.
764 (ipa_read_jump_function): Likewise.
765 (ipa_write_indirect_edge_info): Stream new fields in
766 cgraph_indirect_call_info.
767 (ipa_read_indirect_edge_info): Likewise.
768 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
771 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
773 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
775 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
777 * tree.h (CALL_EXPR_ARGS): Delete.
778 (call_expr_arglist): Delete.
779 * tree.c (call_expr_arglist): Delete.
780 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
781 targetm.fold_builtin.
782 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
783 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
784 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
785 arglist parameter. Use CALL_EXPR_ARG.
786 (picochip_expand_builtin_3op): Likewise.
787 (picochip_expand_builtin_2opvoid): Likewise.
788 (picochip_expand_array_get): Likewise.
789 (picochip_expand_array_put): Likewise.
790 (picochip_expand_array_testport): Likewise.
791 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
793 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
795 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
796 than TREE_VALUE and TREE_CHAIN.
797 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
798 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
801 2010-05-17 Jakub Jelinek <jakub@redhat.com>
804 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
805 to have no fallthru edge.
808 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
809 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
810 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
811 add BARRIER after previous bb if needed.
813 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
815 * tree.c (build_function_type_list_1): Remove bogus assert condition.
817 2010-05-17 Alan Modra <amodra@gmail.com>
819 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
820 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
821 with copy_reg rtx param.
822 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
823 Correct cases where code for ABI_V4 did not initialise the reg
824 used to access frame. Also leave frame_reg_rtx as sp for large
825 frames that save no regs.
827 2010-05-17 Martin Jambor <mjambor@suse.cz>
830 * tree-sra.c (create_access_replacement): New parameter rename, mark
831 the replaement for renaming only when it is true.
832 (get_access_replacement): Pass true in the rename parameter of
833 create_access_replacement.
834 (get_unrenamed_access_replacement): New function.
835 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
836 replacement declaration from it.
838 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
840 * function.c (try_fit_stack_local, add_frame_space): New static
842 (assign_stack_local_1): Use them. Look for opportunities to use
843 space previously wasted on alignment.
844 * function.h (struct frame_space): New.
845 (struct rtl_data): Add FRAME_SPACE_LIST member.
846 * reload1.c (something_was_spilled): New static variable.
848 (reload): Test it in addition to testing if the frame size changed.
850 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
852 * config/s390/s390.c: Define sane prefetch settings and activate
853 flag_prefetch_loop_arrays on -O3.
854 * config/s390/s390.h: Declare that read can use write prefetch.
856 2010-05-17 Jakub Jelinek <jakub@redhat.com>
858 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
861 2010-05-16 Jan Hubicka <jh@suse.cz>
863 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
864 function body; do not check stdarg field of struct function.
866 2010-05-16 Jan Hubicka <jh@suse.cz>
868 * cgraph.c (dump_cgraph_node): Dump versionable flag.
869 * cgraph.h (cgraph_local_info): Add versionable flag.
870 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
871 (ipcp_versionable_function_p): Use it.
872 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
875 2010-05-16 Jan Hubicka <jh@suse.cz>
877 * cgraph.c (cgraph_clone_node): Take decl argument and insert
878 clone into hash when it is different from orig.
879 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
880 * cgraph.h (cgraph_clone_node): Update prototype.
881 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
882 (lto_cgraph_encoder_delete): Delete body map.
883 (lto_cgraph_encoder_size): Move to header.
884 (lto_cgraph_encoder_encode_body_p,
885 lto_set_cgraph_encoder_encode_body): New.
886 (lto_output_node): Do not take written_decls argument; output clone_of
888 (add_node_to): Add include_body_argument; call
889 lto_set_cgraph_encoder_encode_body on master of the clone.
890 (add_references): Update use of add_node_to.
891 (compute_ltrans_boundary): Likewise.
892 (output_cgraph): Do not create written_decls bitmap.
893 (input_node): Take nodes argument; stream in clone_of correctly.
894 (input_cgraph_1): Update use of input_node.
895 * lto-streamer-out.c (lto_output): Use encoder info to decide
896 what bodies to output.
897 * ipa-inline.c (cgraph_clone_inlined_nodes,
898 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
899 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
900 (lto_cgraph_encoder_size): Define here.
901 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
904 2010-05-16 Richard Guenther <rguenther@suse.de>
906 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
908 * ipa-type-escape.c (gate_type_escape_vars): Run when
909 -fipa-struct-reorg runs.
910 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
911 * common.opt (fipa-type-escape): Remove.
913 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
915 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
916 (decode_options): Likewise.
917 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
919 2010-05-16 Jan Hubicka <jh@suse.cz>
921 * ipa.c (function_and_variable_visibility): Also bring local all
924 2010-05-16 Richard Guenther <rguenther@suse.de>
926 * alias.c (nonoverlapping_memrefs_p): Remove use of
927 IPA type-escape information.
929 2010-05-16 Joseph Myers <joseph@codesourcery.com>
931 * c-common.c (c_common_reswords): Add _Static_assert for C.
932 * c-parser.c (c_token_starts_declaration,
933 c_parser_next_token_starts_declaration,
934 c_parser_static_assert_declaration_no_semi,
935 c_parser_static_assert_declaration): New.
936 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
937 Handle static assertions if static_assert_ok.
938 (c_parser_external_declaration, c_parser_declaration_or_fndef,
939 c_parser_compound_statement_nostart, c_parser_label,
940 c_parser_for_statement, c_parser_objc_methodprotolist,
941 c_parser_omp_for_loop): All callers of
942 c_parser_declaration_or_fndef changed.
943 (c_parser_struct_declaration): Handle static assertions.
944 (c_parser_compound_statement_nostart): Use
945 c_parser_next_token_starts_declaration and
946 c_token_starts_declaration to detect start of declarations.
947 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
950 2010-05-16 Anatoly Sokolov <aesok@post.ru>
952 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
953 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
954 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
955 TARGET_FUNCTION_VALUE_REGNO_P): Define.
956 (mmix_function_outgoing_value): Rename to...
957 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
958 (mmix_function_value_regno_p): Make static.
959 (mmix_libcall_value): New function.
960 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
961 mmix_function_value_regno_p): Remove declaration.
963 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
965 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
966 BUILT_IN_ALLOCA if stack checking is enabled.
968 2010-05-16 Richard Guenther <rguenther@suse.de>
970 * var-tracking.c (vars_copy_1): Inline ...
971 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
972 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
973 (variable_merge_over_cur): Adjust. Merge asserts.
974 (variable_merge_over_src): Likewise.
975 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
976 (variable_post_merge_new_vals): Merge asserts.
977 (variable_post_merge_perm_vals): Likewise.
978 (find_mem_expr_in_1pdv): Likewise.
979 (dataflow_set_different_value): Remove.
980 (onepart_variable_different_p): Merge asserts.
981 (variable_different_p): Likewise.
982 (dataflow_set_different_1): Inline ...
983 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
984 (emit_notes_for_differences_1): Merge asserts.
986 2010-05-16 Richard Guenther <rguenther@suse.de>
988 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
989 * optabs.c (libfunc_decl_hash): Likewise.
990 * varasm.c (emutls_decl): Likewise.
992 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
994 * c-decl.c: Don't include gimple.h.
995 (merge_decls): Do not copy gimple_body.
997 2010-05-15 Jason Merrill <jason@redhat.com>
999 * c.opt: Add -fnothrow-opt.
1001 2010-05-15 Jan Hubicka <jh@suse.cz>
1003 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
1005 * passes.c (ipa_write_summaries): Write all analyzed nodes.
1007 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
1009 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
1010 * Makefile.in: Add it.
1011 Fix all other Makefile dependencies for changes below.
1012 * tree.h: Include it instead of defining VEC primitives here.
1013 * gimple.h: Likewise.
1015 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
1016 * except.h: Include vecir.h, break dependence on tree.h.
1018 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
1020 * tree-iterator.c: ...to here.
1021 * tree-iterator.h: Fix file introduction comment. Add extern markers.
1023 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
1025 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
1026 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
1027 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
1028 tree-mudflap.h, and target.h.
1029 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
1030 predict.h, tree-inline.h, gimple.h, and langhooks.h.
1031 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
1032 Add FIXME for why gimple.h is still included (should be unnecessary
1033 since GCC 4.5 gimplification unit-at-a-time).
1034 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
1035 * c-pragma.c: Add FIXME for why function.h needs to be included just
1036 for cfun, at front-end level.
1037 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
1038 Do not include ggc.h, but include vecprim.h for VEC(char).
1039 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
1040 Explain why target.h is included.
1041 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
1042 Explain why gimple.h is included.
1043 * c-ppoutput.c: Do not include tm.h.
1044 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
1045 * c-parses.c: Explain why rtl.h is included, and that this (and only
1046 this) is also why tm.h must be included.
1047 Do not include except.h.
1048 * c-lang.c: Do not include ggc.h.
1050 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
1052 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
1054 2010-05-15 Joseph Myers <joseph@codesourcery.com>
1056 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
1057 unions by default if those structs and unions have no tags. Do
1058 not condition anonymous struct and unions handling on flag_iso.
1059 Allow anonymous structs and unions for C1X.
1060 (finish_struct): Do not diagnose lack of named fields when
1061 anonymous structs and unions present for C1X. Accept flexible
1062 array members in structure with anonymous structs or unions but no
1063 directly named fields.
1064 * doc/extend.texi (Unnamed Fields): Update.
1066 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
1068 * gimple.h (compare_field_offset): Rename into...
1069 (gimple_compare_field_offset): ...this.
1070 * gimple.c (compare_field_offset): Rename into...
1071 (gimple_compare_field_offset): ...this. Compare the full access if
1072 the offset is self-referential.
1073 (gimple_types_compatible_p): Adjust for above renaming.
1074 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
1075 DECL_NONADDRESSABLE_P flag of fields before merging them.
1077 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
1079 * tree.h (ctor_to_list): Delete.
1080 * tree.c (ctor_to_list): Delete.
1082 2010-05-15 Jan Hubicka <jh@suse.cz>
1084 * ipa-reference.c: Include toplev.h
1085 (is_proper_for_analysis): Only add to all_module_statics
1087 (write_node_summary_p, stream_out_bitmap,
1088 ipa_reference_write_optimization_summary,
1089 ipa_reference_read_optimization_summary): New.
1090 (struct ipa_opt_pass_d pass_ipa_reference): Add
1091 optimization summary streaming.
1092 * lto-cgraph.c (referenced_from_this_partition_p,
1093 reachable_from_this_partition_p): New functions.
1094 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1095 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
1096 * opts.c (decode_options): Enable ipa_reference.
1097 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
1098 * lto-streamer.h (referenced_from_this_partition_p,
1099 reachable_from_this_partition_p): Declare.
1101 2010-05-15 Richard Guenther <rguenther@suse.de>
1103 PR tree-optimization/44038
1104 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
1105 taking the address of a V_C_E of a constant.
1107 2010-05-14 Jan Hubicka <jh@suse.cz>
1109 * tree.h (memory_identifier_string): Remove.
1110 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
1111 (ipa_reference_global_vars_info_d): Remove statics_not_read and
1112 statics_not_written.
1113 (ipa_reference_optimization_summary_d): New structure.
1114 (ipa_reference_optimization_summary_t): New type and vector.
1115 (ipa_reference_vars_info_d): Embedd structures instead of using
1117 (reference_vars_to_consider): Remove out of GGC space.
1118 (module_statics_escape): Remove.
1119 (global_info_obstack): Rename to ...
1120 (optimization_summary_obstack): ... this one.
1121 (initialization_status_t): Remove.
1122 (memory_identifier_string): Remove.
1123 (get_reference_vars_info): Fix indenting.
1124 (set_reference_vars_info): Likewise.
1125 (get_reference_optimization_summary): New.
1126 (set_reference_optimization_summary): New.
1127 (get_global_reference_vars_info): Remove.
1128 (ipa_reference_get_read_global): Remove.
1129 (ipa_reference_get_written_global): Remove.
1130 (ipa_reference_get_not_read_global): Update.
1131 (ipa_reference_get_not_written_global): Update.
1132 (is_proper_for_analysis): Outlaw addressable.
1133 (propagate_bits): Update for new datastructures.
1134 (analyze_variable): Remove.
1135 (init_function_info): Update for new datastructures.
1136 (clean_function_local_data): Remove.
1137 (clean_function): Remove.
1138 (copy_global_bitmap): Use optimizations_summary_obstack.
1139 (duplicate_node_data): Duplicate optimization summary only.
1140 (remove_node_data): Remove optimization summary only.
1141 (generate_summary): Do not analyze variables; do not compute
1142 module_statics_escape; do not prune solutions by it.
1143 (read_write_all_from_decl): Fix typos in comments.
1144 (propagate): Doscover readonly and nonaddressable first;
1145 update for new datastructures; share global bitmaps.
1146 * ipa-reference.h (ipa_reference_get_read_global,
1147 ipa_reference_get_written_global): Remove.
1148 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
1149 * Makefile.in: Remove ipa-refereference from GT files.
1151 2010-05-14 Jakub Jelinek <jakub@redhat.com>
1154 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
1155 for all SYMBOL_REF_DECLs.
1157 2010-05-14 Jan Hubicka <jh@suse.cz>
1159 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
1160 (varpool_all_refs_explicit_p): New inline function.
1161 * ipa-reference.c: Update comment.
1162 (module_statics_written): Remove.
1163 (get_static_decl): Remove.
1164 (ipa_init): Do not initialize module_statics_written.
1165 (analyze_function): Likewise.
1166 (generate_summary): Likewise; do not compute module_statics_readonly
1167 and do not update variable flags.
1168 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
1169 * ipa.c: Inlucde flags.h
1170 (cgraph_local_node_p): New.
1171 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
1172 promote functions to local.
1173 (ipa_discover_readonly_nonaddressable_vars): New function.
1174 (function_and_variable_visibility): Use cgraph_local_node_p.
1175 * varpool.c (varpool_finalize_decl): Set force_output for
1176 DECL_PRESERVE_P vars.
1178 2010-05-14 Jan Hubicka <jh@suse.cz>
1180 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
1182 2010-05-14 Richard Guenther <rguenther@suse.de>
1184 PR tree-optimization/44119
1185 * tree-ssa-pre.c (eliminate): Properly mark replacement of
1186 a PHI node necessary.
1188 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
1190 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
1192 2010-05-14 Jason Merrill <jason@redhat.com>
1195 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
1196 (gimple_call_set_nothrow): New.
1197 * gimple.c (gimple_build_call_from_tree): Call it.
1198 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
1201 * gimplify.c (gimplify_seq_add_stmt): No longer static.
1202 * gimple.h: Declare it.
1203 * gimple.c (gimple_build_eh_filter): No ops.
1205 2010-05-14 Jan Hubicka <jh@suse.cz>
1207 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
1208 nodes already in queue.
1209 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
1212 2010-05-14 Jakub Jelinek <jakub@redhat.com>
1215 * cfgexpand.c (expand_debug_expr): If non-memory op0
1216 has BLKmode, return NULL.
1218 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
1220 * config.gcc: Add support for --with-cpu option for bdver1.
1221 * config/i386/i386.h (TARGET_BDVER1): New macro.
1222 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
1223 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
1224 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
1225 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
1226 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
1227 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
1228 (processor_type): Add PROCESSOR_BDVER1.
1229 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
1230 processor_type in config/i386/i386.h.
1231 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
1232 movaps <reg, reg> instead of movapd <reg, reg> when replacing
1233 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
1234 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
1235 to emit packed xor instead of packed double/packed integer
1236 xor for SSE and AVX when moving a zero value.
1237 * config/i386/sse.md: Add check for
1238 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
1239 movapd/movdqa for SSE and AVX.
1240 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
1241 single logical operations i.e and, or and xor instead of packed double
1242 logical operations for SSE and AVX.
1243 * config/i386/i386-c.c (ix86_target_macros_internal):
1244 Add PROCESSOR_BDVER1.
1245 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
1246 (has_fma4, has_xop): New.
1247 * config/i386/i386.c (bdver1_cost): New variable.
1248 (m_BDVER1): New macro.
1249 (m_AMD_MULTIPLE): Add m_BDVER1.
1250 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
1251 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
1252 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
1253 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
1254 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
1255 x86_tune_sse_partial_reg_dependency,
1256 x86_tune_sse_unaligned_load_optimal,
1257 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
1258 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
1259 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
1260 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
1261 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
1262 Enable/disable for bdver1.
1263 (processor_target_table): Add bdver1_cost.
1264 (cpu_names): Add bdver1.
1265 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
1266 processor_alias_table.
1267 (ix86_expand_vector_move_misalign): Change.
1268 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
1269 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
1270 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
1271 of movupd/movdqu for SSE and AVX.
1272 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
1273 (ix86_tune_adjust_cost): Add code for bdver1.
1274 (standard_sse_constant_opcode): Add check for
1275 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
1276 of packed double xor for SSE and AVX.
1278 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
1280 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
1283 2010-05-14 Tristan Gingold <gingold@adacore.com>
1285 * toplev.c (default_debug_hooks): Remove this variable.
1286 (process_options): Remove assignments to default_debug_hooks.
1288 2010-05-14 Martin Jambor <mjambor@suse.cz>
1290 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
1291 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
1292 * langhooks.h (struct lang_hooks_for_decls): Removed field
1294 * tree.c (free_lang_data): Remove assignment to
1295 lang_hooks.fold_obj_type_ref.
1296 * tree.def (OBJ_TYPE_REF): Update comment.
1298 2010-05-14 Richard Guenther <rguenther@suse.de>
1300 PR tree-optimization/44124
1301 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
1303 2010-05-14 Alan Modra <amodra@gmail.com>
1306 * config/rs6000/rs6000.c (struct machine_function): Reorder
1307 fields for better packing. Add lr_save_state.
1308 (rs6000_ra_ever_killed): Return lr_save_state if set.
1309 (rs6000_emit_eh_reg_restore): Set lr_save_state.
1311 2010-05-13 Jan Hubicka <jh@suse.cz>
1313 * varpool.c (decide_is_variable_needed): Drop code checking
1314 TREE_SYMBOL_REFERENCED.
1316 2010-05-13 Jan Hubicka <jh@suse.cz>
1318 * final.c (output_addr_const): Do not call mark_decl_referenced.
1319 * cgraphunit.c (process_function_and_variable_attributes): Use
1320 mark_needed_node dirrectly.
1321 (assemble_thunk): Do not call mark_decl_referenced.
1323 2010-05-13 Anatoly Sokolov <aesok@post.ru>
1325 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
1327 2010-05-13 Jeff Law <law@redhat.com>
1329 * ira-conflicts.c (print_allocno_conflicts): New function broken out
1331 (print_conflicts): Call print_allocno_conflicts.
1333 2010-05-13 Jakub Jelinek <jakub@redhat.com>
1336 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
1339 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
1341 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
1342 t-mingw-w64 or t-mingw-w32 for multilib configuration.
1343 * config/i386/t-mingw-w32: New.
1344 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
1346 2010-05-13 Martin Jambor <mjambor@suse.cz>
1348 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
1350 * gimple-fold.c (get_base_binfo_for_type): New function.
1351 (gimple_get_relevant_ref_binfo): Likewise.
1352 (gimple_fold_obj_type_ref_known_binfo): Likewise.
1353 (gimple_fold_obj_type_ref): Likewise.
1354 (fold_gimple_call): Simplify condition for folding virtual calls
1355 and call gimple_fold_obj_type_ref.
1356 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
1357 (gimple_fold_obj_type_ref_known_binfo): Likewise.
1359 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
1361 * config/rs6000/rs6000-protos.h
1362 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
1363 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
1364 (rs6000_debug_mode_dependent_address)
1365 (rs6000_mode_dependent_address_ptr): Likewise.
1367 2010-05-13 Jakub Jelinek <jakub@redhat.com>
1370 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
1372 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
1373 * tree-sra.c (create_access_replacement): Call unshare_expr before
1374 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
1375 * dwarf2out.c: Include tree-flow.h.
1376 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
1377 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
1378 Handle DW_OP_bit_piece.
1379 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
1380 construct_piece_list, adjust_piece_list): New functions.
1381 (add_var_loc_to_decl): Handle SRA optimized variables.
1382 Adjust for var_loc_note to loc field renaming.
1383 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
1384 in VAR_LOCATION note.
1385 (new_loc_descr_op_bit_piece): New function.
1386 (dw_sra_loc_expr): New function.
1387 (dw_loc_list): Use it. Don't handle the last range after the
1388 loop, handle it inside of the loop. Adjust for var_loc_note
1389 to loc field renaming.
1390 (add_location_or_const_value_attribute): Only special case
1391 single entry loc lists if loc is NOTE_P. Adjust for
1392 var_loc_note to loc field renaming.
1393 (dwarf2out_var_location): Don't set newloc->var_loc_note
1394 and newloc->next here.
1396 2010-05-12 Jan Hubicka <jh@suse.cz>
1398 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
1400 * cgraph.h (cgraph_only_called_directly_p,
1401 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
1402 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
1403 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
1405 * ipa.c (cgraph_remove_unreachable_nodes): Use
1406 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
1408 * tree-inline.c (copy_bb): Check address_taken flag.
1409 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
1410 externally_visible flag.
1412 2010-05-12 Jason Merrill <jason@redhat.com>
1416 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
1417 * sdbout.c (plain_type_1): Likewise.
1418 * dwarf2out.c (is_base_type): Likewise.
1419 (gen_type_die_with_usage): Likewise. Generate
1420 DW_TAG_unspecified_type for any LANG_TYPE.
1422 2010-05-12 Jan Hubicka <jh@suse.cz>
1424 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
1426 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
1427 (cgraph_clone_edge): Update.
1428 (cgraph_node_remove_callees): Remove indirect calls too.
1429 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
1430 (cgraph_create_indirect_edge): Update prototype.
1431 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
1432 is_proper_for_analysis.
1433 (add_new_function, visited_nodes, function_insertion_hook_holder,
1434 get_local_reference_vars_info, mark_address_taken, mark_address,
1435 mark_load, mark_store, check_asm_memory_clobber, check_call,
1436 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
1437 (ipa_init): Do not initialize visited_nodes;
1438 function_insertion_hook_holder.
1439 (analyze_variable): Rewrite.
1440 (analyze_function): Rewrite.
1441 (copy_local_bitmap): Remove.
1442 (duplicate_node_dat): Do not duplicate local info.
1443 (generate_summary): Simplify to only walk cgraph.
1444 (write_node_summary_p, ipa_reference_write_summary,
1445 ipa_reference_read_summary): Remove.
1446 (propagate): Do not remove function insertion;
1448 (pass_ipa_reference): NULLify summary handling fields.
1449 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
1450 (input_edge): Input ecf_flags.
1451 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
1452 (update_indirect_edges_after_inlining): Ignore edges with unknown
1455 2010-05-12 Sriraman Tallam <tmsriram@google.com>
1457 * implicit-zee.c: New file.
1458 * tree-pass.h (pass_implicit_zee): Declare.
1459 * passes.c (init_optimization_passes): Add zee pass.
1460 * common.opt (fzee): New flag.
1461 * timevar.def (TV_ZEE): Define.
1462 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
1464 * Makefile.in (implicit-zee.o): Add new build file.
1466 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
1467 Nathan Froyd <froydnj@codesourcery.com>
1469 * c-common.c (sync_resolve_params): Remove write-only variable.
1471 2010-05-12 Anatoly Sokolov <aesok@post.ru>
1473 * target.h (struct gcc_target): Add mode_dependent_address_p field.
1474 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
1475 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
1476 * targhooks.c (default_mode_dependent_address_p): New function.
1477 * targhooks.h (default_mode_dependent_address_p): Declare function.
1478 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
1479 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
1480 * recog.c: (mode_dependent_address_p): Call mode_dependent_address_p
1481 target hook. Change return type to bool.
1482 * recog.h: (mode_dependent_address_p): Change return type to bool.
1484 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
1485 Nathan Froyd <froydnj@codesourcery.com>
1487 * tree-mudflap.c (build_function_type_0, build_function_type_1,
1488 build_function_type_2, build_function_type_3): Remove.
1489 (mudflap_init): Use build_function_type_list.
1491 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
1492 Nathan Froyd <froydnj@codesourcery.com>
1494 * coverage.c (build_fn_info_value): Call build_constructor instead of
1495 build_constructor_from_list.
1496 (build_ctr_info_value): Likewise.
1497 (build_gcov_info): Likewise.
1499 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
1501 * tree.c (build_constructor): Compute TREE_CONSTANT for the
1502 resultant constructor.
1503 (build_constructor_single): Don't set TREE_CONSTANT.
1504 (build_constructor_from_list): Don't compute TREE_CONSTANT.
1506 2010-05-12 Jan Hubicka <jh@suse.cz>
1508 * cgraph.h (struct varpool_node): Add aux.
1509 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
1510 * varpool.c (varpool_remove_node): Do not remove initializer.
1511 (varpool_reset_queue): Export.
1512 (varpool_finalize_decl): Volatile vars are forced to be output.
1513 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
1515 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
1516 process_references, varpool_can_remove_if_no_refs): New functions.
1517 (cgraph_remove_unreachable_nodes): Handle variables too.
1519 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
1522 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
1524 2010-05-12 Jakub Jelinek <jakub@redhat.com>
1527 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
1528 change value of ORT_TASK.
1529 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
1530 (omp_notice_threadprivate_variable): New function.
1531 (omp_notice_variable): Call it for threadprivate variables.
1532 If enclosing ctx is a task, print enclosing task rather than
1533 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
1534 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
1535 if task has untied clause.
1538 * dwarf2out.c (base_type_die): Don't add name attribute here.
1539 (modified_type_die): Instead of sizetype use
1540 its underlying original type. If a DW_TAG_base_type doesn't
1541 have name added, add __unknown__.
1542 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
1543 always call force_type_die instead.
1545 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
1547 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
1548 for __stack_chk_guard.
1550 2010-05-11 Jakub Jelinek <jakub@redhat.com>
1552 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
1553 don't call start_source_file debug hook here...
1554 (finish_options): ... but here, after outputting predefined and
1555 command line defines and undefs.
1558 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
1560 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
1561 optimizing away empty bb with no successors, move over its
1562 footer chain to fallthru predecessor.
1563 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
1564 (rtl_split_edge): For asm goto call patch_jump_insn even if
1565 splitting fallthru edge.
1568 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
1569 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
1570 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
1571 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
1575 * c-parser.c (c_parser_expression): Mark LHS of a comma
1576 expression as read if it is a decl, handled component or
1577 COMPOUND_EXPR with that on the RHS.
1578 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
1579 if it is a decl or handled component.
1581 2010-05-11 Jan Hubicka <jh@suse.cz>
1583 * lto-symtab.c (lto_symtab_free): New function.
1584 * lto-streamer.h (lto_symtab_free): Declare.
1586 2010-05-11 Jan Hubicka <jh@suse.cz>
1588 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
1589 that if function is needed it is reachable.
1590 (lto_output_node): See if it the function is reachable or referenced.
1591 (output_cgraph): Update call of lto_output_node.
1592 * lto-streamer.h (reachable_from_other_partition_p): Declare.
1594 2010-05-11 Jan Hubicka <jh@suse.cz>
1596 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
1599 2010-05-11 Jan Hubicka <jh@suse.cz>
1601 PR tree-optimize/44063
1602 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
1604 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
1606 (estimate_function_body_sizes): Compute sizes even when disregarding.
1608 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
1610 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
1612 2010-05-11 Jan Hubicka <jh@suse.cz>
1614 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
1615 into every boundary.
1617 2010-05-11 Jan Hubicka <jh@suse.cz>
1619 * matrix-reorg.c (matrix_reorg): Rebuild edges.
1621 2010-05-11 Jan Hubicka <jh@suse.cz>
1623 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
1624 lto_streamer_cache_delete): Put nodes into heap.
1625 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
1628 2010-05-11 Jan Hubicka <jh@suse.cz>
1630 * cgraphbuild.c (cgraph_rebuild_references): New.
1631 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
1633 * cgraph.h (cgraph_rebuild_references): Declare.
1634 * tree-inline.c (tree_function_versioning): Use it.
1635 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
1637 2010-05-11 Jan Hubicka <jh@suse.cz>
1639 * cgraph.c: Include ipa-utils.h
1640 (cgraph_create_virtual_clone): Update references.
1641 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
1643 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
1645 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
1646 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
1649 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
1651 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
1653 2010-05-11 Jakub Jelinek <jakub@redhat.com>
1655 * gcc.c (execute): For -### don't quote arguments that
1656 contain just alphanumerics and _/-. characters.
1657 * doc/invoke.texi: Document that change for -###.
1660 * df-problems.c (struct dead_debug): Add to_rescan field.
1661 (dead_debug_init): Clear to_rescan field.
1662 (dead_debug_finish): Rescan all debug insns in to_rescan
1663 bitmap and free the bitmap.
1664 (dead_debug_insert_before): Instead of rescanning debug insns
1665 immediately queue their rescanning until dead_debug_finish.
1666 (df_note_bb_compute): After dead_debug_add do continue instead
1669 2010-05-10 Jakub Jelinek <jakub@redhat.com>
1672 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
1673 clear also INSN_REG_USE_LIST.
1675 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1677 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
1679 2010-05-10 Jan Hubicka <jh@suse.cz>
1681 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
1684 2010-05-10 Jan Hubicka <jh@suse.cz>
1686 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
1688 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
1689 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
1690 (lto_streamer_cache_create): Init alloc pool.
1691 (lto_streamer_cache_delete): Free alloc pool.
1692 * lto-streamer.h: Include alloc pool.
1693 (lto_streamer_cache_d): Use alloc pool.
1694 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
1696 2010-05-10 Jan Hubicka <jh@suse.cz>
1698 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
1699 * cgraphbuild.c: Include except.h
1700 (record_type_list, record_eh_tables): New function.
1701 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
1703 2010-05-10 Jan Hubicka <jh@suse.cz>
1705 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
1706 __frame_dummy_init_array_entry, force_to_data): Attribute as used
1709 2010-05-10 Michael Matz <matz@suse.de>
1711 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
1712 (can_reassociate_p): Use FLOAT_TYPE_P.
1713 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
1714 (vect_force_simple_reduction): ... this.
1715 * tree-parloops.c (gather_scalar_reductions): Use
1716 vect_force_simple_reduction.
1717 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
1718 vect_is_simple_reduction, add modify argument, if true rewrite
1719 "a-b" into "a+(-b)".
1720 (vect_is_simple_reduction, vect_force_simple_reduction): New
1722 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
1724 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
1725 Vladimir Makarov <vmakarov@redhat.com>
1727 PR rtl-optimization/44012
1728 * ira-build.c (remove_unnecessary_allocnos): Nullify
1729 regno_allocno_map of the removed allocno.
1731 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1733 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
1735 * configure: Regenerate.
1737 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1739 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
1741 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
1742 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
1744 * configure: Regenerate.
1746 2010-05-10 Richard Guenther <rguenther@suse.de>
1748 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
1749 marked if the entry identifier is marked.
1751 2010-05-10 Richard Guenther <rguenther@suse.de>
1753 * c-common.c (struct c_common_attributes): Add fnspec attribute.
1754 (handle_fnspec_attribute): New function.
1755 * gimple.h (gimple_call_return_flags): Declare.
1756 (gimple_call_arg_flags): Likewise.
1757 * gimple.c (gimple_call_arg_flags): New function.
1758 (gimple_call_return_flags): Likewise.
1759 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
1761 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
1763 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
1764 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
1766 (make_heapvar_for): ... this new function.
1767 (handle_rhs_call): Handle fnspec attribute argument specifiers.
1768 (handle_lhs_call): Likewise.
1769 (find_func_aliases): Adjust.
1771 2010-05-10 Richard Guenther <rguenther@suse.de>
1773 PR tree-optimization/44050
1774 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
1776 2010-05-10 Wei Guozhi <carrot@google.com>
1779 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
1781 2010-05-09 Joseph Myers <joseph@codesourcery.com>
1784 * c-typeck.c (lookup_field): Take a type directly. Update
1786 (build_component_ref): Update call to lookup_field.
1787 (set_init_label): Use lookup_field to find initialized field.
1788 Handle returned list of fields like a sequence of designators.
1790 2010-05-09 Richard Guenther <rguenther@suse.de>
1793 * fold-const.c (tree_single_nonzero_warnv_p): Properly
1794 handle &FUNCTION_DECL.
1796 2010-05-09 Joseph Myers <joseph@codesourcery.com>
1799 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
1800 structures and unions recursively.
1801 (detect_field_duplicates): Move duplicate detection with a hash to
1802 detect_field_duplicates_hash. Always use a hash if anonymous
1803 structures or unions are present.
1804 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
1807 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
1810 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
1811 detect Atom, Core 2 and Core i7.
1813 2010-05-09 Richard Guenther <rguenther@suse.de>
1815 * gcc.c (store_arg): Handle temporary file deletion for
1818 2010-05-09 Richard Guenther <rguenther@suse.de>
1821 * ipa-inline.c (estimate_function_body_sizes): Return after
1822 disregarding inline limits.
1824 2010-05-09 Richard Guenther <rguenther@suse.de>
1826 * gcc.c (store_arg): Revert last change.
1828 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
1831 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
1832 (optimize_ops_list): Call it.
1834 2010-05-08 Richard Guenther <rguenther@suse.de>
1836 PR tree-optimization/44030
1837 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
1838 NECESSARY flag if we propagate from a inserted expression.
1840 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
1842 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
1843 domain types as equal if they are both PLACEHOLDER_EXPRs.
1845 2010-05-08 Richard Guenther <rguenther@suse.de>
1847 * lto-wrapper.c (run_gcc): Remove linker output from
1848 command line for LTRANS invocation.
1850 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
1852 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1853 lto-macho as lto_binary_reader.
1854 * target.h (struct gcc_target): New hooks lto_start and lto_end.
1855 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
1856 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
1857 in lto_start and lto_end calls.
1858 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
1860 (scan_prog_file): Update is_elf_or_coff call.
1861 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
1863 * collect2.c (main): Fix enum comparison.
1865 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
1867 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
1868 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
1869 and TARGET_ASM_LTO_END.
1870 * darwin.c: Include obstack.h and lto-streamer.h.
1871 (lto_section_names_offset, lto_section_names_obstack,
1872 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
1874 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
1875 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
1876 to a temporary file.
1877 (darwin_asm_lto_end): New function. Restore asm_out_file.
1878 (darwin_asm_named_section): For LTO sections, replace the name with
1879 the offset of the section name in a string table, and build this
1881 (darwin_file_start): Initialize global vars for LTO support.
1882 (darwin_file_end): If output to asm_out_file was redirected, append it
1883 to the proper asm_out_file here. Add the section names section.
1885 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
1887 * c-pragma.c (pending_weak_d, pending_weak): New.
1888 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
1889 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
1890 handle_pragma_weak): Update the uses of pending_weaks.
1892 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1894 PR documentation/44016
1895 * doc/standards.texi (Standards): Link to unversioned
1896 cxx0x_status.html page.
1898 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
1901 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
1902 in addition to TREE_USED, to avoid "set but unused" warnings.
1904 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
1906 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
1907 (is_loop_prefetching_profitable): Do not insert prefetches
1908 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
1909 times the prefetch ahead distance.
1911 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
1913 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
1914 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
1915 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
1918 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
1920 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
1921 a diagnostic info when the insn-to-mem ratio is too small.
1923 2010-05-07 Richard Guenther <rguenther@suse.de>
1925 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
1927 (store_arg): Queue temp_filename for deletion instead of
1930 2010-05-07 Richard Guenther <rguenther@suse.de>
1932 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
1933 (run_gcc): Handle LTRANS phase invocation.
1934 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
1936 2010-05-07 Jakub Jelinek <jakub@redhat.com>
1938 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
1939 this is also meaningful on PARM_DECLs and RESULT_DECLs.
1941 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1943 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
1945 2010-05-07 Richard Guenther <rguenther@suse.de>
1947 PR tree-optimization/44020
1948 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
1949 code when PRE is not yet initialized.
1951 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1953 * config/mips/dbxmdebug.h: Remove.
1954 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
1956 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
1958 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
1959 with null pointer and also warn about ordered comparison of zero with
1962 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1964 * graphite-blocking.c
1965 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
1966 * graphite-clast-to-gimple.c
1967 (clast_to_gcc_expression): Same.
1968 (precision_for_value): Same.
1969 (precision_for_interval): Same.
1970 (gcc_type_for_interval): Same.
1971 (graphite_create_new_guard): Same.
1972 (compute_bounds_for_level): Same.
1973 (graphite_create_new_loop_guard): Same.
1974 * graphite-interchange.c
1975 (build_linearized_memory_access): Same.
1976 (pdr_stride_in_loop): Same.
1977 (memory_strides_in_loop_1): Same.
1978 (memory_strides_in_loop): Same.
1979 (extend_scattering): Same.
1980 (psct_scattering_dim_for_loop_depth): Same.
1981 (pbb_number_of_iterations): Same.
1983 (debug_iteration_domains): Same.
1985 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1986 (ppl_set_inhomogeneous_gmp): Same.
1987 (ppl_strip_loop): Same.
1988 (ppl_lexico_compare_linear_expressions): Same.
1989 (ppl_read_polyhedron_matrix): Same.
1990 (ppl_max_for_le_pointset): Same.
1992 (ppl_read_polyhedron_matrix): Same.
1993 (tree_int_to_gmp): Same.
1994 (gmp_cst_to_tree): Same.
1995 (ppl_set_inhomogeneous): Same.
1996 (ppl_set_inhomogeneous_tree): Same.
1997 (ppl_set_coef): Same.
1998 (ppl_set_coef_tree): Same.
1999 * graphite-sese-to-poly.c
2000 (build_pbb_scattering_polyhedrons): Same.
2001 (build_scop_scattering): Same.
2002 (scan_tree_for_params_right_scev): Same.
2003 (scan_tree_for_params): Same.
2004 (find_params_in_bb): Same.
2005 (find_scop_parameters): Same.
2006 (add_upper_bounds_from_estimated_nit): Same.
2007 (build_loop_iteration_domains): Same.
2008 (add_condition_to_domain): Same.
2009 (pdr_add_memory_accesses): Same.
2011 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2013 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
2014 CLooG's value_* macros to their respective mpz_* counterparts.
2015 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
2016 (graphite_create_new_loop_guard): Same.
2017 * graphite-interchange.c (build_linearized_memory_access): Same.
2018 (pdr_stride_in_loop): Same.
2019 (memory_strides_in_loop_1): Same.
2020 (1st_interchange_profitable_p): Same.
2021 * graphite-poly.c (extend_scattering): Same.
2022 (psct_scattering_dim_for_loop_depth): Same.
2023 (pbb_number_of_iterations): Same.
2024 (pbb_number_of_iterations_at_time): Same.
2025 * graphite-poly.h (new_1st_loop): Same.
2026 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
2027 (oppose_constraint): Same.
2028 (insert_constraint_into_matrix): Same.
2029 (ppl_set_inhomogeneous_gmp): Same.
2030 (ppl_set_coef_gmp): Same.
2031 (ppl_strip_loop): Same.
2032 (ppl_lexico_compare_linear_expressions): Same.
2033 (ppl_max_for_le_pointset): Same.
2034 (ppl_min_for_le_pointset): Same.
2035 (ppl_build_realtion): Same.
2036 * graphite-ppl.h (gmp_cst_to_tree): Same.
2037 (ppl_set_inhomogeneous): Same.
2038 (ppl_set_inhomogeneous_tree): Same.
2039 (ppl_set_coef): Same.
2040 (ppl_set_coef_tree): Same.
2041 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
2042 (build_scop_scattering): Same.
2043 (add_value_to_dim): Same.
2044 (scan_tree_for_params_right_scev): Same.
2045 (scan_tree_for_params_int): Same.
2046 (scan_tree_for_params): Same.
2047 (find_params_in_bb): Same.
2048 (find_scop_parameters): Same.
2049 (add_upper_bounds_from_estimated_nit): Same.
2050 (build_loop_iteration_domains): Same.
2051 (create_linear_expr_from_tree): Same.
2052 (add_condition_to_domain): Same.
2053 (pdr_add_memory_accesses): Same.
2055 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
2056 Jason Merrill <jason@redhat.com>
2058 * c-common.c (c_common_reswords): Add nullptr.
2059 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
2060 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
2061 (gen_type_die_with_usage): Likewise.
2062 * dbxout.c (dbxout_type): Likewise.
2063 * sdbout.c (plain_type_1): Likewise.
2065 2010-05-06 Jason Merrill <jason@redhat.com>
2067 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
2068 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
2070 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
2072 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
2073 stripping WITH_SIZE_EXPR.
2074 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
2077 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2079 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
2080 list of obsolete configurations.
2081 Disabled check for obsolete configurations.
2082 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
2083 Removed support for previous versions.
2084 * config/mips/iris.h: Removed.
2085 * config/mips/iris5.h: Removed.
2086 * config/mips/iris6.h: Merged old iris.h contents.
2087 (TARGET_IRIX): Removed.
2088 (DRIVER_SELF_SPECS): Removed mabi=32.
2089 (IDENT_ASM_OP): Removed undef.
2090 (STARTFILE_SPEC): Removed mabi=32.
2091 (ENDFILE_SPEC): Likewise.
2092 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
2093 (MACHINE_TYPE): Update for IRIX 6.5.
2094 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
2095 TARGET_IRIX by TARGET_IRIX6.
2096 (mips_file_start): Likewise.
2097 (mips_output_external): Remove IRIX 5/6 O32 support.
2098 (mips_output_function_prologue): Likewise.
2099 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
2101 (TARGET_CPU_CPP_BUILTINS): Likewise.
2102 (TARGET_IRIX): Removed.
2103 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
2104 (MULTILIB_DIRNAMES): Removed 32.
2105 (MULTILIB_OSDIRNAMES): Removed ../lib.
2106 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
2107 (Specific, mips-sgi-irix5): Document removal.
2108 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
2109 Remove references to older IRIX 6 releases and the O32 ABI.
2111 2010-05-06 Jakub Jelinek <jakub@redhat.com>
2114 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
2115 instead of DF_REF_REAL_REG.
2117 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
2120 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
2121 handling to still return true for x64 targets.
2123 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
2125 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
2127 2010-05-06 Jan Hubicka <jh@suse.cz>
2129 PR tree-optimization/43791
2130 * ipa-inline.c (update_caller_keys): Remove bogus
2131 disregard_inline_limits check.
2133 2010-05-06 Michael Matz <matz@suse.de>
2135 PR tree-optimization/43984
2136 * tree-ssa-pre.c (inserted_phi_names): Remove.
2137 (inserted_exprs): Change to bitmap.
2138 (create_expression_by_pieces): Set bits, don't append to vector.
2139 (insert_into_preds_of_block): Don't handle inserted_phi_names.
2140 (eliminate): Don't look at inserted_phi_names, remove deleted
2141 insns from inserted_exprs.
2142 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
2143 (init_pre, fini_pre): Allocate and free bitmaps.
2144 (execute_pre): Insert insns on edges before elimination.
2146 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
2148 * tree.c (initializer_zerop): Handle STRING_CST.
2150 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
2153 * doc/invoke.texi (Wimplicit): Document as C only.
2154 * opts.c (common_handle_option): Add argument kind.
2155 (handle_option): Rename as read_cmdline_option. Factor out code to...
2156 (handle_option): ... here. New.
2157 (handle_options): Rename as read_cmdline_options.
2158 (decode_options): Update call.
2159 (set_option): Use option index instead of option pointer. Classify
2160 diagnostics correctly.
2161 (enable_warning_as_error): Call handle_option.
2162 * opts.h (set_option): Update declaration.
2163 (handle_option): Declare.
2164 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
2165 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
2166 * c-opts.c (set_Wimplicit): Delete.
2167 (c_family_lang_mask): New static constant.
2168 (c_common_handle_option): Add argument kind. Use handle_option
2169 instead of set_Wimplicit.
2170 (c_common_post_options): warn_implicit and warn_implicit_int
2171 are disabled by default.
2172 * c-common.c (warn_implicit): Do not define here.
2173 * c-common.h (warn_implicit): Do not declare here.
2174 (c_common_handle_option): Update declaration.
2175 * lto-opts.c (lto_reissue_options): Update call to set_option.
2177 2010-05-06 Richard Guenther <rguenther@suse.de>
2179 PR tree-optimization/43571
2180 * domwalk.c (walk_dominator_tree): Walk the dominator
2181 sons in more optimal order.
2183 2010-05-06 Richard Guenther <rguenther@suse.de>
2185 PR tree-optimization/43934
2186 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
2187 (stmt_cost): Likewise.
2188 (extract_true_false_args_from_phi): New helper.
2189 (determine_max_movement): For PHI nodes verify we can hoist them
2190 and compute their cost.
2191 (determine_invariantness_stmt): Handle PHI nodes.
2192 (move_computations_stmt): Likewise. Hoist PHI nodes in
2193 if-converted form using COND_EXPRs.
2194 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
2195 (tree_ssa_lim): Likewise.
2196 * tree-flow.h (tree_ssa_lim): Adjust prototype.
2197 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
2199 2010-05-06 Richard Guenther <rguenther@suse.de>
2201 PR tree-optimization/43987
2202 * tree-ssa-structalias.c (could_have_pointers): For possibly
2203 address-taken variables force pointers to be recorded.
2204 (create_variable_info_for_1): Likewise.
2205 (push_fields_onto_fieldstack): Pass in wheter all fields
2207 (find_func_aliases): Query types instead of vars whether
2208 they contain pointers where appropriate.
2210 2010-05-06 Jan Hubicka <jh@suse.cz>
2212 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
2213 (record_reference, mark_address, mark_load, mark_store): Record
2215 (record_references_in_initializer): Update call of record_references.
2216 (rebuild_cgraph_edges): Remove all references before rebuiding.
2217 * cgraph.c (cgraph_create_node): Clear ref list.
2218 (cgraph_remove_node): Remove references.
2219 (dump_cgraph_node): Dump references.
2220 (cgraph_clone_node): Clone references.
2221 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
2222 (struct cgraph_node, varpool_node): Add ref_lst.
2223 * ipa-ref.c: New file.
2224 * ipa-ref.h: New file.
2225 * ipa-ref-inline.h: New file.
2226 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
2227 (referenced_from_other_partition_p): New function.
2228 (lto_output_varpool_node): Take set arugment; call
2229 referenced_from_other_partition.
2230 (lto_output_ref): New.
2231 (add_references): New.
2233 (output_cgraph): Compute boundary based on references; output refs.
2234 (output_varpool): Accept cgraph_node_set argument.
2237 (input_cgraph): Call input_refs.
2238 * lto-section-in.c (lto_section_name): Add refs.
2239 * Makefile.in: (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
2240 (ipa-ref.o): New file.
2241 * varpool.c (varpool_node): Clear ipa ref list.
2242 (varpool_remove_node): Remove references.
2243 (dump_varpool_node): Dump references.
2244 (varpool_assemble_decl): Only compile finalized ones.
2245 (varpool_extra_name_alias): Initialize ref list.
2246 * lto-streamer.c (lto-get_section_name): Add .refs section.
2247 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
2248 (referenced_from_other_partition_p): Declared.
2250 2010-05-06 Ira Rosen <irar@il.ibm.com>
2252 PR tree-optimization/43901
2253 * tree-vect-stmts.c (vectorizable_call): Assert that vector
2254 type is not NULL if it's transformation phase, and return
2255 FALSE if it's analysis.
2256 (vectorizable_conversion, vectorizable_operation,
2257 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
2259 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
2261 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
2263 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
2265 * config/mips/mips-protos.h
2266 (mips_small_register_classes_for_mode_p): Delete prototype.
2268 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
2270 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
2271 * config/arm/arm.c (multiple_operation_profitable_p,
2272 compute_offset_order): New static functions.
2273 (load_multiple_sequence, store_multiple_sequence): Use them.
2274 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
2275 memory offsets, not register numbers.
2276 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
2278 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
2280 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
2281 (get_pending_sizes, put_pending_size, put_pending_sizes):
2282 Update the uses of pending_sizes.
2283 * c-decl.c (store_parm_decls): Likewise.
2284 * c-tree.h (struct c_arg_info): Likewise.
2285 * tree.h: Update the prototype for get_pending_sizes and
2288 2010-05-05 Jason Merrill <jason@redhat.com>
2291 * c-common.c (handle_aligned_attribute): Respect
2292 ATTR_FLAG_TYPE_IN_PLACE.
2295 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
2296 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
2297 (TARGET_INITIALIZER): Use it.
2298 * c-common.c (attribute_takes_identifier_p): Call it.
2299 * c-common.h: Update prototype.
2300 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
2301 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
2303 2010-05-05 Jakub Jelinek <jakub@redhat.com>
2306 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
2307 DW_ID_down_case for Fortran compilation units.
2309 2010-05-05 Jan Hubicka <jh@suse.cz>
2311 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
2314 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
2316 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
2317 a variable-sized RESULT_DECL.
2319 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
2321 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
2323 2010-05-05 Jason Merrill <jason@redhat.com>
2326 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
2328 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
2330 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
2331 Jakub Jelinek <jakub@redhat.com>
2334 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
2335 (dead_debug_init, dead_debug_finish): New functions.
2336 (dead_debug_add, dead_debug_insert_before): Likewise.
2337 (df_note_bb_compute): Initialize a dead_debug object, add dead
2338 debug uses to it, insert debug bind insns before death insns,
2339 reset debug insns that refer to pending uses at the end.
2340 * rtl.h (make_debug_expr_from_rtl): New prototype.
2341 * varasm.c (make_debug_expr_from_rtl): New function.
2343 2010-05-05 Jan Hubicka <jh@suse.cz>
2345 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
2346 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
2347 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
2348 lto_varpool_encoder_deref, lto_varpool_encoder_size,
2349 lto_varpool_encoder_encode_initializer_p,
2350 lto_set_varpool_encoder_encode_initializer): New functions.
2351 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
2352 call output_varpool.
2353 (input_varpool_node): Do not always set analyzed.
2354 (input_cgraph_1): Return vector of cgraph nodes.
2355 (input_varpool_1): Return vector of varpools.
2356 (input_cgraph): Free the vectors.
2357 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
2358 output only initializers needed.
2359 (lto_output): Only call output_cgraph.
2360 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
2361 * lto-section-out.c (lto_new_out_decl_state): Initialize
2362 state->varpool_node_encoder.
2363 * lto-streamer.h (lto_varpool_encoder_d): New.
2364 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
2365 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
2366 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
2367 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
2368 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
2370 (output_varpool, input_varpool): Remove declarations.
2372 2010-05-05 Jan Hubicka <jh@suse.cz>
2374 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
2375 with body can prevail.
2377 2010-05-05 Jan Hubicka <jh@suse.cz>
2379 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
2382 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
2384 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
2386 * gengtype.h (erro_at_line): Constify pos argument.
2388 * gengtype.c: Include hashtab.h.
2389 (enum gc_used): Document GC_MAYBE_POINTED_TO.
2390 (error_at_line): Constify pos argument.
2391 (do_typedef): Initialize p->opt field.
2392 (get_file_gtfilename): Fix comment typo.
2393 (struct walk_type_data): Constify line field.
2394 (get_output_file_for_structure): New function.
2395 (write_local_func_for_structure): Constify orig_s argument.
2396 Use get_output_file_for_structure.
2397 (write_func_for_structure): Use get_output_file_for_structure.
2398 (INDENT): New define.
2399 (dump_pair, dump_type, dump_type_list, dump_typekind)
2400 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
2401 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
2403 (seen_types): New variable.
2404 (main): New variable do_dump. Process "-d" command line option.
2405 Call dump_everything if dump requested.
2407 2010-05-05 Jakub Jelinek <jakub@redhat.com>
2409 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
2410 in a temporary instead of invoking the macro multiple times.
2411 (track_expr_p): Likewise.
2413 2010-05-04 Neil Vachharajani <nvachhar@google.com>
2415 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
2417 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
2418 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
2419 conditions for printing notes.
2420 * common.opt (-Wcoverage-mismatch): Allow negative, default to
2421 true, update documentation.
2422 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
2424 2010-05-04 Jakub Jelinek <jakub@redhat.com>
2427 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
2430 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
2433 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
2434 (*sse_prologue_save_insn1): Likewise.
2435 (SSE prologue save splitter): Likewise.
2437 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
2439 * tree.c (free_lang_data_in_one_sizepos): New inline function.
2440 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
2441 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
2442 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
2443 all decls. Call it on DECL_FIELD_OFFSET of fields.
2444 (find_decls_types_r): Follow DECL_VALUE_EXPR.
2445 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
2447 2010-05-04 Martin Jambor <mjambor@suse.cz>
2449 * tree-sra.c (build_access_from_expr_1): The first parameter type
2450 changed to simple tree.
2451 (build_access_from_expr): Likewise, gsi parameter was eliminated.
2452 (scan_assign_result): Renamed to assignment_mod_result, enum elements
2454 (build_accesses_from_assign): Removed all parameters except for a
2455 simple gimple statement. Now returns a simple bool.
2456 (scan_function): All non-analysis parts moved to separate functions
2457 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
2458 parameters and updated both callers.
2459 (sra_modify_expr): Removed parameter data.
2460 (sra_modify_function_body): New function.
2461 (perform_intra_sra): Call sra_modify_function_body to modify the
2463 (replace_removed_params_ssa_names): Parameter data changed into
2465 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
2466 changed the parameter dont_convert to convert with the opposite
2468 (sra_ipa_modify_assign): Parameter data changed into adjustments
2469 vector, return value changed to bool.
2470 (ipa_sra_modify_function_body): New function.
2471 (sra_ipa_reset_debug_stmts): Updated a comment.
2472 (modify_function): Use ipa_sra_modify_function_body to modify function
2475 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
2478 * alias.c (true_dependence): Handle the same VALUE in x and mem.
2479 (canon_true_dependence): Likewise.
2480 (write_dependence_p): Likewise.
2482 2010-05-04 Jan Hubicka <jh@suse.cz>
2484 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
2485 * cgraphbuild.c: Include ipa-utils.h
2486 (record_reference_ctx): New struct.
2487 (record_reference): Simplify to work on initializers; not statements.
2488 (mark_address, mark_load, mark_store): New.
2489 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
2491 (record_references_in_initializer): Update use of record_reference.
2492 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
2495 2010-05-04 Jan Hubicka <jh@suse.cz>
2497 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
2498 node will be removed anyway.
2499 (lto_varpool_replace_node): Allow also unanalyzed nodes;
2500 relink aliases of node into prevailing node.
2501 * varpool.c (varpool_remove_node): Remove aliases properly;
2502 when removing node, remove all its aliases too; remove DECL_INITIAL
2503 of removed node; ggc_free the varpool node.
2505 2010-05-04 Richard Guenther <rguenther@suse.de>
2507 PR tree-optimization/43879
2508 * tree-ssa-structalias.c (alias_get_name): Use
2509 DECL_ASSEMBLER_NAME if available.
2510 (create_function_info_for): Return the varinfo node.
2511 (ipa_pta_execute): Associate same-body aliases and extra names
2512 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
2514 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
2516 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
2518 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
2521 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
2522 only if HONOR_REG_ALLOC_ORDER is not defined.
2524 2010-05-04 Richard Guenther <rguenther@suse.de>
2526 PR tree-optimization/43949
2527 * tree-vrp.c (extract_range_from_binary_expr): Only handle
2530 2010-04-26 Jason Merrill <jason@redhat.com>
2532 * c.opt (-fstrict-enums): New.
2533 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
2535 2010-05-03 David Ung <davidu@mips.com>
2536 James E. Wilson <wilson@codesourcery.com>
2538 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
2539 emit the trap instruction before the divide for TUNE_74K.
2541 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
2543 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
2544 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
2545 based on the above, for new target hook.
2547 * hooks.c (hook_bool_mode_true): New generic hook.
2548 * hooks.h (hook_bool_mode_true): Add prototype.
2550 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
2552 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
2553 target hook, set to hook_bool_mode_false.
2554 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
2555 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
2556 with targetm.small_register_classes_for_mode_p.
2557 (find_reusable_reload): Likewise.
2558 (combine_reloads): Likewise.
2559 * reload1.c (reload_as_needed): Likewise.
2560 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
2561 * ifcvt.c (noce_process_if_block, check_cond_move_block,
2562 dead_or_predicable): Likewise.
2563 * regmove.c (optimize_reg_copy_1): Likewise.
2564 * calls.c (prepare_call_address): Likewise.
2565 (precompute_register_parameters): Likewise.
2567 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
2569 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
2570 implementation of the hook that considers all register classes
2571 small except for SH64.
2572 (sh_override_options): Use the new hook.
2573 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
2576 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
2578 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
2579 implementation of the hook that considers all register classes
2581 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
2584 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
2586 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
2587 implementation of the hook that considers all register classes
2589 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
2592 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
2594 * config/m32c/m32c.h: Likewise.
2595 * config/pdp11/pdp11.h: Likewise.
2596 * config/avr/avr.h: Likewise.
2597 * config/xtensa/xtensa.h: Likewise.
2598 * config/m68hc11/m68hc11.h: Likewise.
2599 * config/mn10300/mn10300.h: Likewise.
2600 * config/mcore/mcore.h: Likewise.
2601 * config/h8300/h8300.h: Likewise.
2602 * config/bfin/bfin.h: Likewise.
2604 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
2605 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
2607 2010-05-03 Anatoly Sokolov <aesok@post.ru>
2609 * double-int.h (tree_to_double_int): Remove macro.
2610 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
2611 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
2612 (tree_to_double_int): New function.
2613 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
2615 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
2617 2010-05-03 Richard Guenther <rguenther@suse.de>
2619 PR tree-optimization/43971
2620 * tree-ssa-structalias.c (get_constraint_for_1): Fix
2621 constraints in the !flag_delete_null_pointer_checks case.
2623 2010-05-03 Jakub Jelinek <jakub@redhat.com>
2626 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
2627 result mode matches original rtl mode.
2629 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
2632 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
2634 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
2636 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
2637 when processing flag options.
2639 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
2641 * gcov-iov.c (main): Change format string placeholder
2642 from %#08x to 0x%08x.
2643 * genchecksum.c (dosum): Change format string placeholder
2644 from %#02x to 0x%02x.
2646 2010-05-02 Richard Guenther <rguenther@suse.de>
2648 PR tree-optimization/43879
2649 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
2651 2010-05-02 Bruno Haible <bruno@clisp.org>
2653 * doc/extend.texi (Function Attributes): Fix a typo.
2655 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
2658 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
2659 placeholder from 0x%x to %#x.
2660 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
2661 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
2662 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
2663 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
2664 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
2665 * config/i386/i386.c (ix86_target_string): Ditto.
2666 * config/i386/i386.c (output_pic_addr_const): Ditto.
2667 (print_operand): Ditto.
2669 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
2671 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
2672 placeholder from 0x%x to %#x.
2673 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
2674 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
2675 (ASM_OUTPUT_DEBUG_DATA): Ditto.
2676 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
2677 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
2678 * optc-gen.awk: Ditto.
2679 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
2680 (HOST_WIDE_INT_PRINT_HEX): Ditto.
2681 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
2682 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
2684 2010-05-01 Anatoly Sokolov <aesok@post.ru>
2686 * target.h (struct calls): Add function_value_regno_p field.
2687 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
2688 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
2689 * targhooks.c (default_function_value_regno_p): New function.
2690 * targhooks.h (default_function_value_regno_p): Declare function.
2691 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
2692 * builtins.c. (apply_result_size): (Ditto.).
2693 * combine.c. (likely_spilled_retval_p): (Ditto.).
2694 * mode-switching.c. Include 'target.h'.
2695 (create_pre_exit): Use function_value_regno_p hook.
2696 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
2697 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
2698 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
2700 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
2701 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
2702 (ix86_function_value_regno_p): Declare as static, change argument
2703 type to const unsigned int.
2704 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
2706 2010-05-01 Richard Guenther <rguenther@suse.de>
2708 PR tree-optimization/43949
2709 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
2711 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
2713 2010-05-01 Anatoly Sokolov <aesok@post.ru>
2715 * rtl.h (CONST_DOUBLE_P): Define.
2716 (rtx_to_double_int): Declare.
2717 * emit-rtl.c (rtx_to_double_int): New function.
2718 * dwarf2out.c (insert_double): New function.
2719 (loc_descriptor, add_const_value_attribute): Clean up, use
2720 rtx_to_double_int and insert_double functions.
2722 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
2724 * doc/extend.texi (Inline): Add missing return keyword to examples.
2725 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
2728 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
2730 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
2731 the variable part of the offset as well. Use highest_pow2_factor for
2732 all alignment checks.
2734 2010-04-30 Richard Guenther <rguenther@suse.de>
2736 PR tree-optimization/43879
2737 * tree-ssa-structalias.c (type_could_have_pointers): Functions
2740 2010-04-30 Jan Hubicka <jh@suse.cz>
2742 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
2744 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
2746 2010-04-30 Jan Hubicka <jh@suse.cz>
2748 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
2750 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
2751 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
2752 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
2753 cgraph_node_set_needs_ltrans_p): Remove.
2755 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
2757 * sdbout.c: Include vec.h, do not include varray.h.
2758 (deferred_global_decls, sdbout_global_decl,
2759 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
2760 * toplev.c: Do not include varray.h.
2761 (dump_memory_report): Do not dump VARRAY statistics.
2762 * gengtype.c (open_base_file): Ignore varray.h.
2763 * Makefile.in: Update for abovementioned changes.
2764 Remove all traces of varray.c and varray.h.
2765 * varray.c: Remove file.
2766 * varray.h: Remove file.
2768 2010-04-30 Jan Hubicka <jh@suse.cz>
2770 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
2773 2010-04-30 Jan Hubicka <jh@suse.cz>
2775 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
2778 2010-04-30 Richard Guenther <rguenther@suse.de>
2780 * tree-ssa-structalias.c (get_constraint_for_1): Generate
2781 constraints for CONSTRUCTOR.
2783 2010-04-30 Richard Guenther <rguenther@suse.de>
2786 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
2787 first after all lowering passes.
2789 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
2791 * toplev.c: Include varray.h for statistics dumping.
2792 * tree.h: Do not declare varray_head_tag.
2793 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
2794 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
2795 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
2796 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
2797 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
2798 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
2799 c-common.c, c-common.h, reg-stack.c, basic-block.h,
2800 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
2802 * Makefile.in: Update for abovementioned changes.
2804 2010-04-30 Jakub Jelinek <jakub@redhat.com>
2807 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
2809 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
2811 * config/picochip/picochip.c (picochip_legitimize_address): Define.
2812 Use this function to do machine-specific conversion.
2813 (picochip_legitimize_reload_address): Likewise.
2814 (picochip_legitimate_address_p): Check valid base register only if
2816 (picochip_check_conditional_copy): Check for modw only if opnd is
2818 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
2819 to call the function in c.
2820 * config/picochip/picochip-protos.h
2821 (picochip_legitimize_reload_address): Define.
2822 * config/picochip/picochip.md (supported_compare1): Define.
2824 2010-04-30 Jan Hubicka <jh@suse.cz>
2826 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
2827 (cgraph_global_info): Remove inlined.
2828 (LTO_cgraph_tag_names): Remove.
2829 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
2830 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
2831 simplify cgraph tags and document.
2832 (lto_output_node): Use only LTO_cgraph_unavail_node and
2833 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
2834 for_functions_valid, global info, process and output flags.
2835 (input_overwrite_node): Initialize estimated stack size and
2836 estimated growth. Do not read flags we no longer store.
2837 (input_node): Likewise do not read info no longer stored.
2838 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
2841 2010-04-30 Richard Guenther <rguenther@suse.de>
2843 PR tree-optimization/43879
2844 * tree-ssa-structalias.c (get_constraint_for_1): Properly
2845 handle non-zero initializers.
2847 2010-04-30 Richard Guenther <rguenther@suse.de>
2849 * builtins.c (fold_builtin_1): Delete free (0).
2851 2010-04-29 Jan Hubicka <jh@suse.cz>
2853 * gengtype.c (open_base_files): Add lto-streamer.h
2854 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
2855 (pass_ipa_cp): GGC collect.
2856 * toplev. (compile_file): Do not output symbols.
2857 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
2858 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
2859 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
2860 * lto-section-in.c: Include ggc.h
2861 (lto_new_in_decl_state): Alloc in GGC.
2862 (lto_delete_in_decl_state): Likewise.
2863 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
2866 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
2869 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
2870 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
2871 (HONOR_REG_ALLOC_ORDER): Describe new macro.
2872 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
2873 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
2874 account only if HONOR_REG_ALLOC_ORDER is not defined.
2875 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
2876 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
2878 2010-04-29 Jon Grant <04@jguk.org>
2880 * collect2.c (vflag): Change type from int to bool.
2882 (helpflag): New global bool.
2883 (main): Set vflag and debug with boolean, not integer truth values.
2884 Accept new "--help" option and output usage text if found.
2885 * collect2.h (vflag): Update prototype.
2888 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
2891 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
2893 2010-04-29 Richard Guenther <rguenther@suse.de>
2896 * plugin.h (invoke_plugin_callbacks): Annotate arguments
2897 with ATTRIBUTE_UNUSED.
2899 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
2902 * config/i386/i386.c (get_some_local_dynamic_name): Replace
2903 INSN_P with NONDEBUG_INSN_P.
2904 (distance_non_agu_define): Likewise.
2905 (distance_agu_use): Likewise.
2907 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
2909 From Dominique d'Humieres <dominiq@lps.ens.fr>
2911 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
2914 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
2916 * plugin.h (invoke_plugin_callbacks): New inline function.
2917 * plugin.c (flag_plugin_added): New global flag.
2918 (add_new_plugin): Initialize above flag.
2919 (invoke_plugin_callbacks): Rename to ...
2920 (invoke_plugin_callbacks_full): ... this.
2922 2010-04-28 Jan Hubicka <jh@suse.cz>
2924 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
2925 (lto_varpool_replace_node): New.
2926 (lto_symtab_resolve_symbols): Resolve varpool nodes.
2927 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
2928 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
2929 * cgraph.h (varpool_node_ptr): New type.
2930 (varpool_node_ptr): New vector.
2931 (varpool_node_set_def): New structure.
2932 (varpool_node_set): New type.
2933 (varpool_node_set): New vector.
2934 (varpool_node_set_element_def): New structure.
2935 (varpool_node_set_element, const_varpool_node_set_element): New types.
2936 (varpool_node_set_iterator): New type.
2937 (varpool_node): Add prev pointers, add used_from_other_partition,
2939 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
2940 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
2941 varpool_get_node, varpool_remove_node): Declare.
2942 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
2943 varpool_node_set_size): New inlines.
2944 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
2945 * tree-pass.h (varpool_node_set_def): Forward declare.
2946 (ipa_opt_pass_d): Summary writting takes vnode sets too.
2947 (ipa_write_optimization_summaries): Update prototype.
2948 * ipa-cp.c (ipcp_write_summary): Update.
2949 * ipa-reference.c (ipa_reference_write_summary): Update.
2950 * lto-cgraph.c (lto_output_varpool_node): New static function.
2951 (output_varpool): New function.
2952 (input_varpool_node): New static function.
2953 (input_varpool_1): New function.
2954 (input_cgraph): Input varpool.
2955 * ipa-pure-const.c (pure_const_write_summary): Update.
2956 * lto-streamer-out.c (lto_output): Update, output varpool too.
2957 (write_global_stream): Kill WPA hack.
2958 (produce_asm_for_decls): Update.
2959 (output_alias_pair_p): Handle variables.
2960 (output_unreferenced_globals): Output only needed partition of varpool.
2961 * ipa-inline.c (inline_write_summary): Update.
2962 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
2964 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
2965 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
2966 varpool_node_set_new, varpool_node_set_add,
2967 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
2968 debug_varpool_node_set): New functions.
2969 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
2970 (execute_one_pass): Process new decls too.
2971 (ipa_write_summaries_2): Pass around vsets.
2972 (ipa_write_summaries_1): Likewise.
2973 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
2975 (ipa_write_optimization_summaries_1): Pass around vsets.
2976 (ipa_write_optimization_summaries): Likewise.
2977 * varpool.c (varpool_get_node): New.
2978 (varpool_node): Update doubly linked lists.
2979 (varpool_remove_node): New.
2980 (dump_varpool_node): More dumping.
2981 (varpool_enqueue_needed_node): Update doubly linked lists.
2982 (decide_is_variable_needed): Kill ltrans hack.
2983 (varpool_finalize_decl): Kill lto hack.
2984 (varpool_assemble_decl): Skip decls in other partitions.
2985 (varpool_assemble_pending_decls): Update doubly linkes lists.
2986 (varpool_empty_needed_queue): Likewise.
2987 (varpool_extra_name_alias): Likewise.
2988 * lto-streamer.c (lto_get_section_name): Add vars section.
2989 * lto-streamer.h (lto_section_type): Update.
2990 (output_varpool, input_varpool): Declare.
2992 2010-04-28 Mike Stump <mikestump@comcast.net>
2994 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
2996 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
2998 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
2999 record or union type with RECORD_OR_UNION_TYPE_P predicate.
3000 (lto_input_ts_type_tree_pointers): Likewise.
3001 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
3002 (lto_output_ts_type_tree_pointers): Likewise.
3004 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
3006 Uniquization of constants at the Tree level
3007 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
3008 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
3010 (tree_output_constant_def): Declare.
3011 * gimplify.c (gimplify_init_constructor): When using block copy, first
3012 uniquize the constant constructor on the RHS.
3013 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
3014 DECL_IN_CONSTANT_POOL flag.
3015 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
3016 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
3018 (assemble_variable): Deal with symbols belonging to the tree constant
3020 (get_constant_section): Add ALIGN parameter and simplify.
3021 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
3022 (assemble_constant_contents): Use the expression of the VAR_DECL.
3023 (output_constant_def_contents): Use the alignment of the VAR_DECL.
3024 (tree_output_constant_def): New global function.
3025 (mark_constant): Use the expression of the VAR_DECL.
3026 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
3028 (output_object_block): Likewise and assemble the expression.
3030 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
3032 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
3033 hash_tree, eq_tree): New tree hash table.
3034 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
3035 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
3036 lto_orig_address_remove): Reimplement.
3038 2010-04-28 Xinliang David Li <davidxl@google.com>
3041 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
3042 (compute_uninit_opnds_pos): New function.
3043 (is_non_loop_exit_postdominating): New function.
3044 (compute_control_dep_chain): New function.
3045 (find_pdom): New function.
3046 (convert_control_dep_chain_into_preds): New function.
3047 (find_predicates): New function.
3048 (find_control_equiv_block): New function.
3049 (collect_phi_def_edges): New function.
3050 (find_def_preds): New function.
3051 (find_dom): New function.
3052 (dump_predicates): New function.
3053 (get_cmp_code): New function.
3054 (is_value_included_in): New function.
3055 (find_matching_predicate_in_rest_chains): New function.
3056 (use_pred_not_overlap_with_undef_path_pred): New function.
3057 (is_use_properly_guarded): New function.
3058 (normalize_cond_1): New function.
3059 (is_and_or_or): New function.
3060 (normalize_cond): New function.
3061 (is_gcond_subset_of): New function.
3062 (is_subset_of_any): New function.
3063 (is_or_set_subset_of): New function.
3064 (is_and_set_subset_of): New function.
3065 (is_norm_cond_subset_of): New function.
3066 (is_pred_expr_subset_of): New function.
3067 (is_pred_chain_subset_of): New function.
3068 (is_included_in): New function.
3069 (is_superset_of): New function.
3070 (find_uninit_use): New function.
3071 (warn_uninitialized_phi): New function.
3072 (compute_possibly_undefined_names): New function.
3073 (ssa_undefined_value_p): New function.
3074 (execute_late_warn_uninitialized): New function.
3075 * tree-ssa.c (ssa_undefined_value_p): Removed.
3076 (warn_uninit): Changed to extern.
3077 (warn_uninitialized_phi): Removed.
3078 (warn_uninitialized_vars): Changed to extern.
3079 (execute_late_warn_uninitialized): Removed
3080 * tree-flow.h: Add new prototypes.
3081 * timevar.def: Add new time variable.
3082 * Makefile.in: Add new build file.
3084 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
3086 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
3089 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3092 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
3094 2010-04-28 Martin Jambor <mjambor@suse.cz>
3096 * cgraph.h (struct cgraph_node): New field indirect_calls.
3097 (struct cgraph_indirect_call_info): New type.
3098 (struct cgraph_edge): Removed field indirect_call. New fields
3099 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
3100 (cgraph_create_indirect_edge): Declare.
3101 (cgraph_make_edge_direct): Likewise.
3102 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
3103 * ipa-prop.h (struct ipa_param_call_note): Removed.
3104 (struct ipa_node_params): Removed field param_calls.
3105 (ipa_create_all_structures_for_iinln): Declare.
3106 * cgraph.c: Described indirect edges and uids in initial comment.
3107 (cgraph_add_edge_to_call_site_hash): New function.
3108 (cgraph_edge): Search also among the indirect edges, use
3109 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
3110 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
3111 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
3113 (initialize_inline_failed): Assign a reason to indirect edges.
3114 (cgraph_create_edge_1): New function.
3115 (cgraph_create_edge): Moved some functionality to
3116 cgraph_create_edge_1.
3117 (cgraph_create_indirect_edge): New function.
3118 (cgraph_edge_remove_callee): Add an assert checking for
3120 (cgraph_edge_remove_caller): Special-case indirect edges.
3121 (cgraph_remove_edge): Likewise.
3122 (cgraph_set_edge_callee): New function.
3123 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
3124 (cgraph_make_edge_direct): New function.
3125 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
3126 the declaration of the call statement matches.
3127 (cgraph_node_remove_callees): Special-case indirect edges.
3128 (cgraph_clone_edge): Likewise.
3129 (cgraph_clone_node): Clone also the indirect edges.
3130 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
3131 indirect_call, dump count of indirect_calls edges.
3132 * ipa-prop.c (iinlining_processed_edges): New variable.
3133 (ipa_note_param_call): Create indirect edges instead of
3134 creating notes. New parameter node.
3135 (ipa_analyze_call_uses): New parameter node, pass it on to
3136 ipa_note_param_call.
3137 (ipa_analyze_stmt_uses): Likewise.
3138 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
3139 (print_edge_addition_message): Work on edges rather than on notes.
3140 (update_call_notes_after_inlining): Likewise, renamed to
3141 update_indirect_edges_after_inlining.
3142 (ipa_create_all_structures_for_iinln): New function.
3143 (ipa_free_node_params_substructures): Do not free notes.
3144 (ipa_edge_duplication_hook): Propagate bits within
3145 iinlining_processed_edges bitmap.
3146 (ipa_node_duplication_hook): Do not duplicate notes.
3147 (free_all_ipa_structures_after_ipa_cp): Renamed to
3148 ipa_free_all_structures_after_ipa_cp.
3149 (free_all_ipa_structures_after_iinln): Renamed to
3150 ipa_free_all_structures_after_iinln.
3151 (ipa_write_param_call_note): Removed.
3152 (ipa_read_param_call_note): Removed.
3153 (ipa_write_indirect_edge_info): New function.
3154 (ipa_read_indirect_edge_info): Likewise.
3155 (ipa_write_node_info): Do not stream notes, do stream information
3157 (ipa_read_node_info): Likewise.
3158 (lto_ipa_fixup_call_notes): Removed.
3159 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
3160 * ipa-inline.c (pass_ipa_inline): Likewise.
3161 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
3162 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
3163 * tree-inline.c (copy_bb): Removed an unnecessary double check for
3165 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
3167 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
3168 (output_cgraph): Stream also indirect edges.
3169 (lto_output_edge): Added capability to stream indirect edges.
3170 (input_edge): Likewise.
3171 (input_cgraph_1): Likewise.
3172 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
3175 2010-04-28 Richard Guenther <rguenther@suse.de>
3177 PR tree-optimization/43879
3178 PR tree-optimization/43909
3179 * tree-ssa-structalias.c (struct variable_info): Add
3180 only_restrict_pointers flag.
3181 (new_var_info): Initialize it. Increment stats.total_vars here.
3182 (create_function_info_for): Do not increment stats.total_vars here.
3183 (get_function_part_constraint): Fix build with C++.
3184 (insert_into_field_list): Remove.
3185 (push_fields_onto_fieldstack): Properly merge fields.
3186 (create_variable_info_for): Split and simplify.
3187 (create_variable_info_for_1): New piece.
3188 (intra_create_variable_infos): Properly make restrict constraints
3191 2010-04-28 Richard Guenther <rguenther@suse.de>
3194 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
3196 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
3197 Jan Hubicka <hubicka@ucw.cz>
3199 * doc/invoke.texi (-Wsuggest-attribute=const,
3200 -Wsuggest-attribute=pure): Document.
3201 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
3202 (function_always_visible_to_compiler_p,
3203 suggest_attribute, warn_function_pure, warn_function_const):
3205 (check_call): Improve debug info.
3206 (analyze_function): Do not check availability.
3207 (add_new_function): Check availability.
3208 (propagate): Output warnings.
3209 (skip_function_for_local_pure_const): New function.
3210 (local_pure_const): Use it; output warnings.
3211 * common.opt (Wsuggest-attribute=const,
3212 Wsuggest-attribute=pure): New.
3214 2010-04-27 Jakub Jelinek <jakub@redhat.com>
3216 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
3217 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
3218 or DW_CFA_def_cfa_offset{,_sf}.
3220 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
3222 * tree.h: Fix truncated long macros.
3224 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
3226 * collect2.c (TARGET_64BIT): Redefine to target's default.
3227 * tlink.c: Likewise.
3228 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
3229 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
3230 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
3231 for underscoring __USER_LABEL_PREFIX__.
3232 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
3233 (SUB_LINK_ENTRY32): New.
3234 (SUB_LINK_ENTRY64): New.
3235 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
3236 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
3237 (SUB_LINK_ENTRY64): New.
3238 (SUB_LINK_ENTRY): New.
3239 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
3240 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
3241 x64 target is choosen.
3242 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
3243 * configure: Regenerated.
3244 * configure.ac (leading-mingw64-underscores): Option added.
3246 2010-04-27 Jan Hubicka <jh@suse.cz>
3248 * doc/invoke.texi (-fipa-profile): Document.
3249 * opts.c (decode_options): Enable ipa-profile at -O1.
3250 * timevar.def (TV_IPA_PROFILE): Define.
3251 * common.opt (fipa-profile): Add.
3252 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
3254 (cgraph_propagate_frequency): Handle only local ones.
3255 * tree-pass.h (pass_ipa_profile): Declare.
3256 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
3257 (pass_ipa_profile): Use TV_IPA_PROFILE.
3258 * ipa.c (ipa_profile): New function.
3259 (gate_ipa_profile): Likewise.
3260 (pass_ipa_profile): New global variable.
3261 * passes.c (pass_ipa_profile): New.
3263 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
3265 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
3267 2010-04-27 Martin Jambor <mjambor@suse.cz>
3270 * ipa.c (dissolve_same_comdat_group_list): New function.
3271 (function_and_variable_visibility): Call
3272 dissolve_same_comdat_group_list when comdat group contains external or
3274 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
3275 lists are circular and that they contain only DECL_ONE_ONLY nodes.
3277 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
3279 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
3280 (const_hash_1) <VECTOR_CST>: New case.
3281 (compare_constant) <VECTOR_CST>: Likewise.
3282 <ADDR_EXPR>: Deal with LABEL_REFs.
3283 (copy_constant) <VECTOR_CST>: New case.
3285 2010-04-27 Jan Hubicka <jh@suse.cz>
3287 * cgraph.c (cgraph_propagate_frequency): New function.
3288 * cgraph.h (cgraph_propagate_frequency): Declare.
3289 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
3290 cgraph_propagate_frequency.
3292 2010-04-27 Jakub Jelinek <jakub@redhat.com>
3294 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
3296 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
3299 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
3300 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
3301 here to determine which regs to push and how much stack to reserve.
3303 2010-04-27 Jie Zhang <jie@codesourcery.com>
3305 * doc/gimple.texi (gimple_statement_with_ops): Remove
3306 addresses_taken field.
3307 (gimple_statement_with_memory_ops): Likewise.
3309 2010-04-27 Jan Hubicka <jh@suse.cz>
3311 * tree-inline.c (eni_inlining_weights): Remove.
3312 (estimate_num_insns): Special case more builtins.
3314 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
3317 * c-typeck.c (build_binary_op): Move forward check for comparison
3318 pointer with null pointer constant and adjust the diagnostic message.
3320 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
3323 * configure.ac (gcc_cv_as_section_has_align): Set if installed
3324 binutils supports extended .section directive needed by LTO, or
3325 warn if older binutils found.
3326 (LTO_BINARY_READER): New AC_SUBST'd variable.
3327 (LTO_USE_LIBELF): Likewise.
3328 * gcc/config.gcc (lto_binary_reader): New target-specific configure
3330 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
3331 (LTO_USE_LIBELF): Likewise.
3332 * configure: Regenerate.
3334 * collect2.c (is_elf): Rename from this ...
3335 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
3336 object files in addition to ELF-formatted ones.
3337 (scan_prog_file): Caller updated. Also allow for LTO info marker
3338 symbol to be prefixed or not by an extra underscore.
3340 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
3341 * config/i386/winnt.c: Also #include lto-streamer.h
3342 (i386_pe_asm_named_section): Specify 1-byte section alignment for
3344 (i386_pe_asm_output_aligned_decl_common): Add comment.
3345 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
3347 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
3350 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
3351 Add missing earlyclobber for second alternative.
3353 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
3355 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
3356 bits for artificial defs at the top of the block.
3357 * fwprop.c (single_def_use_enter_block): Don't call it.
3359 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
3362 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
3363 instead of "$gcc_cv_objdump -T".
3364 Use "-undefined dynamic_lookup" on darwin.
3365 * gcc/configure: Regenerate.
3367 2010-04-26 Jakub Jelinek <jakub@redhat.com>
3370 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
3372 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
3374 * c-parser.c (struct c_token): Move location field up.
3375 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
3376 (struct c_declspecs): Convert typespec_word, storage_class, and
3377 default_int_p into bitfields.
3378 (struct c_declarator): Move loc field up.
3380 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
3382 * cfgloop.h (struct loop): Move can_be_parallel field up.
3383 * ipa-prop.h (struct ip_node_params): Move bitfields up.
3384 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
3386 (struct iv_cand): Convert pos field into a bitfield.
3387 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
3389 (struct _stmt_vec_info): Shuffle fields for better packing.
3391 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
3393 * varasm.c (IN_NAMED_SECTION): Remove guard.
3394 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
3395 (IN_NAMED_SECTION_P): ...this.
3396 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
3397 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
3399 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
3401 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
3402 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
3403 of shadowing it. Fix comments.
3405 2010-04-26 Jan Hubicka <jh@suse.cz>
3407 * cgraph.c (cgraph_create_node): Set node frequency to normal.
3408 (cgraph_clone_node): Copy function frequency.
3409 * cgraph.h (node_frequency): New enum
3410 (struct cgraph_node): Add.
3411 * final.c (rest_of_clean_state): Update.
3412 * lto-cgraph.c (lto_output_node): Output node frequency.
3413 (input_overwrite_node): Input node frequency.
3414 * tre-ssa-loop-ivopts (computation_cost): Update.
3415 * lto-streamer-out.c (output_function): Do not output function
3417 * predict.c (maybe_hot_frequency_p): Update and handle functions
3419 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
3421 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
3422 (compute_function_frequency): Set noreturn functions to be executed
3424 (choose_function_section): Update.
3425 * lto-streamer-in.c (input_function): Do not input function frequency.
3426 * function.c (allocate_struct_function): Do not initialize function
3428 * function.h (function_frequency): Remove.
3429 (struct function): Remove function frequency.
3430 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
3431 (try_update): Update.
3432 * tree-inline.c (initialize_cfun): Do not update function frequency.
3433 * passes.c (pass_init_dump_file): Update.
3434 * i386.c (ix86_compute_frame_layout): Update.
3435 (ix86_pad_returns): Update.
3437 2010-04-26 Jie Zhang <jie@codesourcery.com>
3439 PR tree-optimization/43833
3440 * tree-vrp.c (range_int_cst_p): New.
3441 (range_int_cst_singleton_p): New.
3442 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
3443 when both operands are constants. Use range_int_cst_p in
3446 2010-04-26 Jan Hubicka <jh@suse.cz>
3448 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
3450 2010-04-26 Richard Guenther <rguenther@suse.de>
3453 * gimple.c (gimple_decl_printable_name): Deal gracefully
3454 with a NULL DECL_NAME.
3456 2010-04-26 Richard Guenther <rguenther@suse.de>
3459 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
3460 if emitting debug information and it is either a function
3461 or a namespace decl.
3463 2010-04-26 Ira Rosen <irar@il.ibm.com>
3465 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
3466 determine if the statement is vectorizable, and a macro to access it.
3467 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
3468 Skip statements that can't be vectorized. If the analysis fails,
3469 mark the statement as unvectorizable if vectorizing basic block.
3470 (vect_compute_data_refs_alignment): Likewise.
3471 (vect_verify_datarefs_alignment): Skip statements marked as
3472 unvectorizable. Add print.
3473 (vect_analyze_group_access): Skip statements that can't be
3474 vectorized. If the analysis fails, mark the statement as
3475 unvectorizable if vectorizing basic block.
3476 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
3477 * tree-vect-stmts.c (vectorizable_store): Fix the number of
3478 generated stmts for SLP.
3479 (new_stmt_vec_info): Initialize the new field.
3480 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
3481 statements marked as unvectorizable.
3483 2010-04-25 Joseph Myers <joseph@codesourcery.com>
3485 * c-common.c (flag_isoc1x): New.
3486 (flag_isoc99): Update comment.
3487 * c-common.h (flag_isoc1x): New.
3488 (flag_isoc99): Update comment.
3489 * c-cppbuiltin.c (builtin_define_float_constants): Also define
3490 __<type>_DECIMAL_DIG__.
3491 * c-opts.c (set_std_c1x): New.
3492 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
3493 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
3494 * c.opt (-std=c1x, -std=gnu1x): New options.
3495 * doc/cpp.texi: Mention -std=c1x.
3496 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
3497 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
3498 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
3499 * doc/standards.texi: Mention C1X.
3500 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
3501 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
3502 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
3505 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
3507 * config/i386/gmon-sol2.c (_mcleanup): Change format string
3508 placeholder from 0x%x to %#x.
3509 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
3510 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
3511 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
3512 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
3513 * config/i386/i386.c (ix86_target_string): Ditto.
3514 (output_pic_addr_const): Ditto.
3515 (print_operand): Ditto.
3517 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
3519 * combine.c (find_split_point): Add third argument. Use it
3520 to find nested multiply-accumulate instructions. Adjust calls.
3521 (try_combine): Adjust call to find_split_point.
3523 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3525 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
3527 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
3529 PR tree-optimization/41442
3530 * fold-const.c (merge_truthop_with_opposite_arm): New function.
3531 (fold_binary_loc): Call it.
3533 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
3535 * toplev.c (general_init): Set default for fdiagnostics-show-option.
3536 * opts.c (common_handle_option): Allow disabling it.
3537 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
3539 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
3541 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
3542 between modes if both types are integral.
3544 2010-04-23 Richard Guenther <rguenther@suse.de>
3546 PR tree-optimization/43572
3547 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
3549 2010-04-23 Richard Guenther <rguenther@suse.de>
3552 * tree-inline.c (tree_can_inline_p): Also check compatibility
3555 2010-04-23 Martin Jambor <mjambor@suse.cz>
3557 PR tree-optimization/43846
3558 * tree-sra.c (struct access): New flag grp_assignment_read.
3559 (build_accesses_from_assign): Set grp_assignment_read.
3560 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
3561 (enum mark_read_status): New type.
3562 (analyze_access_subtree): Propagate grp_assignment_read, create
3563 accesses also if both direct_read and root->grp_assignment_read.
3565 2010-04-23 Martin Jambor <mjambor@suse.cz>
3568 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
3569 function does not have type attributes.
3571 2010-04-23 Richard Guenther <rguenther@suse.de>
3574 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
3577 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3579 * sese.h (create_if_region_on_edge): Remove.
3581 * sese.c (create_if_region_on_edge): Make static.
3583 * tree-inline.c: Do not include ggc.h.
3585 * expr.c: Do not include ggc.h.
3587 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
3590 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
3593 * config/sh/sh.c (find_barrier): Don't emit a constant pool
3594 in the middle of insns for casesi_worker_2.
3596 2010-04-22 David Edelsohn <edelsohn@gnu.org>
3598 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
3600 2010-04-22 Ira Rosen <irar@il.ibm.com>
3602 PR tree-optimization/43842
3603 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
3604 loop unrolling in update of exit phis. Fix comment.
3605 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
3606 least two reduction statements in the loop before starting SLP
3609 2010-04-22 Nick Clifton <nickc@redhat.com>
3611 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
3613 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
3615 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
3618 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3620 * tree-parloops.c (loop_parallel_p): New argument
3621 parloop_obstack. Pass it down.
3622 (parallelize_loops): New variable parloop_obstack. Initialize it,
3623 pass it down, free it.
3625 * tree-loop-linear.c (linear_transform_loops): Pass down
3628 * tree-data-ref.h (lambda_compute_access_matrices): New argument
3629 of type struct obstack *.
3631 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
3632 scratch_obstack. Initialize it, pass down, free it.
3634 * lambda.h (lambda_loop_new): Remove.
3635 (lambda_matrix_new, lambda_matrix_inverse)
3636 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
3637 argument of type struct obstack *.
3639 * lambda-trans.c (lambda_trans_matrix_new): New argument
3640 lambda_obstack. Pass it down, use obstack allocation for ret.
3641 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
3644 * lambda-mat.c (lambda_matrix_get_column)
3645 (lambda_matrix_project_to_null): Remove.
3646 (lambda_matrix_new): New argument lambda_obstack. Use obstack
3648 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
3651 * lambda-code.c (lambda_loop_new): New function.
3652 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
3653 (lambda_compute_auxillary_space, lambda_compute_target_space)
3654 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
3655 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
3656 (build_access_matrix): New argument lambda_obstack. Use obstack
3658 (lambda_compute_step_signs, lambda_compute_access_matrices): New
3659 argument lambda_obstack. Pass it down.
3661 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
3663 * optabs.h (expand_widening_mult): Declare.
3665 2010-04-22 Richard Guenther <rguenther@suse.de>
3667 PR tree-optimization/43845
3668 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
3669 lookup the CALL_EXPR function and arguments.
3671 2010-04-22 Nick Clifton <nickc@redhat.com>
3673 * config/stormy16/stormy16.c
3674 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
3675 * config/stormy16/stormy16.h: Tidy up formatting.
3676 (DONT_USE_BUILTIN_SETJMP): Remove definition.
3677 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
3678 (ineqbranchsi): Delete pattern.
3679 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
3680 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
3681 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
3682 stormy16-lib2-ucmpsi2.c.
3684 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
3686 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
3687 df_simulate_find_noclobber_defs as appropriate. Keep track of an
3688 extra set merge_set_noclobber, and use it to relax the final test
3690 * df.h (df_simulate_find_noclobber_defs): Declare.
3691 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
3693 (df_simulate_find_noclobber_defs): New function.
3695 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
3697 * config/i386/i386.md: Use {} around multi-line preparation statements.
3699 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3701 * c-tree.h (push_init_level, pop_init_level, set_init_index)
3702 (process_init_element): New argument of type struct obstack *.
3704 * c-typeck.c (push_init_level, pop_init_level, set_designator)
3705 (set_init_index, set_init_label, set_nonincremental_init)
3706 (set_nonincremental_init_from_string, find_init_member)
3707 (output_init_element, output_pending_init_elements)
3708 (process_init_element): New argument braced_init_obstack. Pass it
3710 (push_range_stack, add_pending_init): New argument
3711 braced_init_obstack. Use obstack allocation.
3713 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
3714 braced_init_obstack. Pass it down.
3715 (c_parser_braced_init): New variables ret, braced_init_obstack.
3716 Initialize obstack, pass it down and finally free it.
3718 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
3721 * tree-pass.h (pass_optimize_widening_mul): Declare.
3722 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
3723 gate_optimize_widening_mul): New static functions.
3724 (pass_optimize_widening_mul): New.
3725 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
3726 <case MULT_EXPR>: Remove support for widening multiplies.
3727 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
3728 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
3729 simplify_gen_unary rather than directly building extensions.
3730 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
3732 * expmed.c (expand_widening_mult): New function.
3733 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
3735 2010-04-21 Jan Hubicka <jh@suse.cz>
3737 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
3738 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
3739 * lto-wpa-fixup.c: Remove.
3740 * Makefile.in (lto-wpa-fixup.o): Remove.
3741 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
3742 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
3743 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
3745 2010-04-21 Jan Hubicka <jh@suse.cz>
3747 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
3748 add write_optimization_summary, read_optimization_summary.
3749 (ipa_write_summaries_of_cgraph_node_set): Remove.
3750 (ipa_write_optimization_summaries): Declare.
3751 (ipa_read_optimization_summaries): Declare.
3752 * ipa-cp.c (pass_ipa_cp): Update.
3753 * ipa-reference.c (pass_ipa_reference): Update.
3754 * ipa-pure-const.c (pass_ipa_pure_const): Update.
3755 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
3757 * ipa-inline.c (pass_ipa_inline): Update.
3758 * ipa.c (pass_ipa_whole_program): Update.
3759 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
3760 * passes.c (ipa_write_summaries_1): Do not test wpa.
3761 (ipa_write_optimization_summaries_1): New.
3762 (ipa_write_optimization_summaries): New.
3763 (ipa_read_summaries): Do not test ltrans.
3764 (ipa_read_optimization_summaries_1): New.
3765 (ipa_read_optimization_summaries): New.
3767 2010-04-21 Jan Hubicka <jh@suse.cz>
3769 * lto-cgraph.c (lto_output_node): Do not output comdat groups
3771 (output_cgraph): Do not arrange comdat groups for boundary nodes.
3773 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3776 * dwarf2out.c (add_name_and_src_coords_attributes): Add
3777 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
3779 2010-04-21 Jan Hubicka <jh@suse.cz>
3781 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
3783 2010-04-21 Jan Hubicka <jh@suse.cz>
3785 * varpool.c (decide_is_variable_needed): Variable is always needed
3788 2010-04-21 Jan Hubicka <jh@suse.cz>
3790 * opts.c (decode_options): Enable pure-const pass for whopr.
3792 2010-04-21 Jan Hubicka <jh@suse.cz>
3794 * cgraph.c (dump_cgraph_node): Dump also assembler name.
3795 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
3797 (cgraph_decide_inlining): Do not expect callee to be removed in all
3800 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
3802 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
3804 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
3806 * config/i386/i386.md (x86_shrd): Add athlon_decode and
3807 amdfam10_decode attributes.
3809 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3812 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
3813 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
3814 (lower_copyprivate_clauses): Use private var in outer
3815 context instead of original var. Make sure the types
3816 are correct for VLAs.
3818 2010-04-21 Richard Guenther <rguenther@suse.de>
3820 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
3821 to non-pointer objects.
3823 2010-04-21 Jakub Jelinek <jakub@redhat.com>
3825 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
3826 last chain entry if it starts with the still current label.
3827 (add_location_or_const_value_attribute): Check that
3828 loc_list->first->next is NULL instead of comparing ->first with ->last.
3829 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
3830 to add_var_loc_to_decl.
3832 * dwarf2out.c (output_call_frame_info): For dw_cie_version
3833 >= 4 add also address size and segment size fields into CIE header.
3835 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
3836 long as address size is the same as sizeof (void *) and
3838 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
3839 address size or segment size is unexpected, return DW_EH_PE_omit.
3840 (classify_object_over_fdes): If get_cie_encoding returned
3841 DW_EH_PE_omit, return -1.
3842 (init_object): If classify_object_over_fdes returned -1,
3843 pretend there were no FDEs at all.
3845 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
3847 * config/i386/i386.md (bswap<mode>2): Macroize expander from
3848 bswap{si,di}2 using SWI48 mode iterator.
3849 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
3850 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
3851 set modrm attribute of bswap insn to 0 and remove length attribute.
3852 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
3853 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
3854 set mode attribute to <MODE> and remove length attribute.
3856 2010-04-20 James E. Wilson <wilson@codesourcery.com>
3858 PR rtl-optimization/43520
3859 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
3860 zero available registers.
3862 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3864 * builtins.c (fold_builtin_cproj): Fold more cases.
3866 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3868 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
3869 (fold_builtin_1): Fold builtin cproj.
3870 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
3871 Use ATTR_CONST_NOTHROW_LIST.
3873 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
3875 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
3876 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
3877 ffsi2_no_cmove for !TARGET_CMOVE.
3878 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
3879 (ffssi2): Remove expander.
3880 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
3882 (ctz<mode>2): Ditto from ctz{si,di}2.
3883 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
3885 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
3888 2010-04-20 Jakub Jelinek <jakub@redhat.com>
3890 * dwarf2out.c (AT_linkage_name): Define.
3891 (clone_as_declaration): Handle DW_AT_linkage_name.
3892 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
3893 of DW_AT_MIPS_linkage_name.
3894 (move_linkage_attr): Likewise.
3895 (dwarf2out_finish): Likewise.
3897 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
3900 * fold-const.c (fold_comparison): New folding rule.
3902 2010-04-20 Anatoly Sokolov <aesok@post.ru>
3904 * double-int.h (double_int_setbit): Declare.
3905 * double-int.c (double_int_setbit): New function.
3906 * rtl.h (immed_double_int_const): Declare.
3907 * emit-rtl.c (immed_double_int_const): New function.
3908 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
3909 and immed_double_int_const functions.
3910 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
3911 expand_copysign_bit): (Ditto.).
3912 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
3913 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
3914 * dojump.c (prefer_and_bit_test): (Ditto.).
3915 * expr.c (convert_modes, reduce_to_bit_field_precision,
3916 const_vector_from_tree): (Ditto.).
3917 * expmed.c (mask_rtx, lshift_value): (Ditto.).
3919 2010-04-20 Jan Hubicka <jh@suse.cz>
3921 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
3922 (dump_cgraph_node): Dump new flags.
3923 * cgraph.h (struct cgraph_node): Add flags
3924 reachable_from_other_partition and in_other_partition.
3925 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
3926 other partition can not be removed.
3927 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
3928 the other partition must be output; silence sanity checking on
3929 leaking functions bodies from other paritition.
3930 * lto-cgraph.c (reachable_from_other_partition_p): New function.
3931 (lto_output_node): Output new flags; do not sanity check that inline
3932 clones are output; drop lto_forced_extern_inline_p code; do not mock
3933 visibility flags at partition boundaries.
3934 (add_node_to): New function.
3935 (output_cgraph): Use it to sort functions so masters appear before
3937 (input_overwrite_node): Input new flags.
3938 * passes.c (ipa_write_summaries): Do not call
3939 lto_new_extern_inline_states.
3940 * lto-section-out.c (forced_extern_inline,
3941 lto_new_extern_inline_states lto_delete_extern_inline_states,
3942 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
3943 * lto-streamer.h (lto_new_extern_inline_states,
3944 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
3945 lto_forced_extern_inline_p): Kill.
3947 2010-04-20 Richard Guenther <rguenther@suse.de>
3949 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
3950 from vars that can have pointers.
3951 (process_constraint): Dump useless constraints.
3953 2010-04-20 Richard Guenther <rguenther@suse.de>
3955 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
3956 (dump_sa_points_to_info): Remove asserts.
3957 (init_base_vars): nothing_id isn't an escape point nor does it
3960 2010-04-20 Jakub Jelinek <jakub@redhat.com>
3962 * tree.h (TYPE_REF_IS_RVALUE): Define.
3963 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
3964 should_move_die_to_comdat, prune_unused_types_walk): Handle
3965 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
3966 (modified_type_die, gen_reference_type_die): Emit
3967 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
3968 if TYPE_REF_IS_RVALUE and -gdwarf-4.
3970 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3973 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
3974 calls for -fpic -m31 if they have been sibcall optimized.
3976 2010-04-19 James E. Wilson <wilson@codesourcery.com>
3978 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
3979 ar.lc fixed and call-used.
3981 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
3983 2010-04-19 Jan Hubicka <jh@suse.cz>
3985 * opts.c (decode_options): Disable whpr incompatible passes.
3986 * lto/lto.c (lto_1_to_1_map): Skip clones.
3987 (read_cgraph_and_symbols): Do not mark everything as needed.
3988 (do_whole_program_analysis): Do map only after optimizing;
3989 set proper cgraph_state; use passmanager.
3991 2010-04-19 DJ Delorie <dj@redhat.com>
3993 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
3994 POINTER_PLUS_EXPR and fix them.
3996 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
3998 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
3999 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
4000 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
4001 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
4002 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
4003 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
4004 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
4005 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
4006 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
4007 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
4008 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
4010 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
4012 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
4013 (check_cond_move_block): Likewise.
4014 (cond_move_process_if_block): Likewise.
4015 (noce_find_if_block): Improve formatting.
4016 (find_if_header): Pass 0 to memset and tweak conditions.
4017 (cond_exec_find_if_block): Fix long lines and tweak conditions.
4019 2010-04-19 Jakub Jelinek <jakub@redhat.com>
4021 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
4025 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
4026 with non-local decl doesn't need chain.
4028 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
4030 * ira-color.c (allocno_reload_assign): Avoid accumulating
4031 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
4033 2010-04-19 Martin Jambor <mjambor@suse.cz>
4035 * gimple.h (create_tmp_reg): Declare.
4036 * gimplify.c (create_tmp_reg): New function.
4037 (gimplify_return_expr): Use create_tmp_reg.
4038 (gimplify_omp_atomic): Likewise.
4039 (gimple_regimplify_operands): Likewise.
4040 * tree-dfa.c (make_rename_temp): Likewise.
4041 * tree-predcom.c (predcom_tmp_var): Likewise.
4042 (reassociate_to_the_same_stmt): Likewise.
4043 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
4044 (get_replaced_param_substitute): Likewise.
4045 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
4046 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
4047 * tree-ssa-pre.c (get_representative_for): Likewise.
4048 (create_expression_by_pieces): Likewise.
4049 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
4050 (create_tailcall_accumulator): Likewise.
4052 2010-04-19 Martin Jambor <mjambor@suse.cz>
4054 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
4056 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
4058 2010-04-19 Richard Guenther <rguenther@suse.de>
4060 PR tree-optimization/43796
4061 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
4062 from SCEV in the lattice.
4063 (vrp_visit_phi_node): Dump change.
4065 2010-04-19 Richard Guenther <rguenther@suse.de>
4067 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
4068 * configure: Re-generated.
4070 2010-04-19 Richard Guenther <rguenther@suse.de>
4072 PR tree-optimization/43783
4073 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
4074 constant ARRAY_REF operands two and three if possible.
4076 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
4079 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
4081 2010-04-19 Jie Zhang <jie@codesourcery.com>
4084 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
4086 2010-04-19 Ira Rosen <irar@il.ibm.com>
4088 PR tree-optimization/37027
4089 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
4090 and macro to access it.
4091 (vectorizable_reduction): Add argument.
4092 (vect_get_slp_defs): Likewise.
4093 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
4094 statements for possible use in SLP.
4095 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
4096 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
4097 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
4099 (vectorizable_reduction): Likewise.
4100 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
4102 (vectorizable_type_demotion, vectorizable_type_promotion,
4103 vectorizable_store): Likewise.
4104 (vect_analyze_stmt): Update call to vectorizable_reduction.
4105 (vect_transform_stmt): Likewise.
4106 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
4107 (vect_build_slp_tree): Fix indentation. Check that there are no loads
4108 from different interleaving chains in same node.
4109 (vect_slp_rearrange_stmts): New function.
4110 (vect_supported_load_permutation_p): Allow load permutations for
4111 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
4112 inside SLP nodes if necessary.
4113 (vect_analyze_slp_instance): Handle reductions.
4114 (vect_analyze_slp): Try to build SLP instances originating from groups
4116 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
4117 (vect_get_constant_vectors): Create initial vectors for reductions
4118 according to reduction code. Add new argument.
4119 (vect_get_slp_defs): Add new argument, pass it to
4120 vect_get_constant_vectors.
4121 (vect_schedule_slp_instance): Remove SLP tree root statements.
4123 2010-04-19 Jakub Jelinek <jakub@redhat.com>
4125 * tree.h (ENUM_IS_SCOPED): Define.
4126 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
4127 for ENUM_IS_SCOPED enums.
4129 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
4131 * fold-const.c (fold_comparison): Use ssizetype.
4132 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4133 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
4134 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
4135 * tree-object-size.c (compute_object_sizes): Use size_type_node.
4137 * tree.h (initialize_sizetypes): Remove parameter.
4138 (build_common_tree_nodes): Remove second parameter.
4139 * stor-layout.c (initialize_sizetypes): Remove parameter.
4140 Always create an unsigned type.
4141 (set_sizetype): Assert that the passed type is unsigned and simplify.
4142 * tree.c (build_common_tree_nodes): Remove second parameter.
4143 Adjust call to initialize_sizetypes.
4144 * c-decl.c (c_init_decl_processing): Remove second argument in call to
4145 build_common_tree_nodes.
4147 2010-04-18 Matthias Klose <doko@ubuntu.com>
4149 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
4151 2010-04-18 Ira Rosen <irar@il.ibm.com>
4153 PR tree-optimization/43771
4154 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
4155 load permutation doesn't have gaps.
4157 2010-04-18 Jan Hubicka <jh@suse.cz>
4159 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
4160 (sse_prologue_save_insn expander): Use new pattern.
4161 (sse_prologue_save_insn1): New pattern and splitter.
4162 (sse_prologue_save_insn): Update to deal also with 64bit aligned
4164 * i386.c (setup_incoming_varargs_64): Do not compute jump
4166 (ix86_gimplify_va_arg): Update alignment needed.
4167 (ix86_local_alignment): Do not align all local arrays to 128bit.
4169 2010-04-17 Jan Hubicka <jh@suse.cz>
4171 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
4173 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
4175 * arm.md (negdi2): Remove redundant code to force values into a
4178 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
4180 * arm/bpabi.S: Add EABI alignment attributes to objects.
4181 * arm/bpabi-v6m.S: Likewise.
4182 * arm/crti.asm: Likewise.
4183 * arm/crtn.asm: Likewise.
4184 * arm/lib1funcs.asm: Likewise.
4185 * arm/libunwind.S: Likewise.
4187 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
4189 * arm-protos.h (tune_params): New structure.
4190 * arm.c (current_tune): New variable.
4191 (arm_constant_limit): Delete.
4192 (struct processors): Add pointer to the tune parameters.
4193 (arm_slowmul_tune): New tuning option.
4194 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
4195 (all_cores): Adjust to pick up the tuning model.
4196 (arm_constant_limit): New function.
4197 (arm_override_options): Select the appropriate tuning model. Delete
4198 initialization of arm_const_limit.
4199 (arm_split_constant): Use the new constant-limit model.
4200 (arm_rtx_costs): Pick up the current tuning model.
4201 * arm.md (is_strongarm, is_xscale): Delete.
4202 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
4203 for Xscale variant architectures.
4204 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
4206 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4208 * config/arm/arm.c (arm_gen_constant): Remove unused variable
4210 (arm_rtx_costs_1): Remove unused variable extra_cost.
4211 (arm_unwind_emit_set): Use variable offset.
4212 (thumb1_output_casesi): Remove unused variable flags.
4214 2010-04-16 Jeff Law <law@redhat.com>
4216 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
4217 needing assignment rather than doing a two-phase assignment. Remove
4218 unused variable 'm'.
4220 2010-04-16 Jakub Jelinek <jakub@redhat.com>
4223 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
4225 2010-04-16 Doug Kwan <dougkwan@google.com>
4227 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
4228 (next_operand_entry_id): New static variable.
4229 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
4230 (add_to_ops_vec): Assigned unique ID to operand entry.
4231 (struct oecount_s): New field ID.
4232 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
4233 (undistribute_ops_list): Assign unique IDs to oecounts.
4234 (init_reassoc): reset next_operand_entry_id.
4236 2010-04-16 Doug Kwan <dougkwan@google.com>
4238 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
4239 missing left parenthesis.
4241 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
4243 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
4244 *btdi_rex64 using SWI48 mode iterator.
4245 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
4246 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
4247 *jcc_btdi_mask_rex64.
4249 2010-04-16 Anatoly Sokolov <aesok@post.ru>
4251 * double-int.h (tree_to_double_int): Convert to macro.
4252 * double-int.c (tree_to_double_int): Remove.
4254 2010-04-16 Jakub Jelinek <jakub@redhat.com>
4257 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
4258 with want_address 2 and in case a single element list might be
4259 possible, call it again with want_address 0.
4261 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4263 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
4264 case 'W' print operands for HI mode.
4265 * config/h8300/h8300.h (Y0, Y2) : New constraints.
4266 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
4267 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
4268 * config/h8300/predicate.md (bit_register_indirect_operand): New.
4270 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
4272 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
4273 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
4274 #xx:3 and #xx:4 mode.
4276 * config/h8300/h8300.md (inverted load with HImode dest): Add
4277 support for H8300SX.
4279 * config/h8300/predicate.md (bit_operand): Allow immediate values that
4280 satisfy 'U' constraint.
4282 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4284 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
4285 * configure: Regenerate.
4286 * config.in: Regenerate.
4287 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
4290 2010-04-16 Richard Guenther <rguenther@suse.de>
4292 * tree.h (struct tree_decl_minimal): Move pt_uid ...
4293 (struct tree_decl_common): ... here.
4294 (DECL_PT_UID): Adjust.
4295 (SET_DECL_PT_UID): Likewise.
4296 (DECL_PT_UID_SET_P): Likewise.
4298 2010-04-16 Richard Guenther <rguenther@suse.de>
4300 PR tree-optimization/43572
4301 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
4302 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
4303 * tree-flow.h (is_call_clobbered): Remove.
4304 * tree-flow-inline.h (is_call_clobbered): Likewise.
4305 * tree-dfa.c (dump_variable): Do not dump call clobber state.
4306 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
4307 (execute_return_slot_opt): Adjust.
4308 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
4309 check for call clobbered vars here.
4310 (find_tail_calls): Move tailcall verification to the
4313 2010-04-16 Diego Novillo <dnovillo@google.com>
4315 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
4317 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
4320 * config/arm/arm.md (cbranchqi4): New pattern.
4321 * config/arm/predicates.md (const0_operand,
4322 cbranchqi4_comparison_operator): New predicates.
4324 2010-04-16 Richard Guenther <rguenther@suse.de>
4326 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
4327 (dump_gimple_stmt): Likewise.
4329 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
4331 * recog.h (struct recog_data): New field is_operator.
4332 (struct insn_operand_data): New field is_operator.
4333 * recog.c (extract_insn): Set recog_data.is_operator.
4334 * genoutput.c (output_operand_data): Emit code to set the
4336 * reload.c (find_reloads): Use it rather than testing for an
4337 empty constraint string.
4340 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
4341 If the previous insn is a cbranchsi4_insn with the same arguments,
4342 omit the compare instruction.
4344 * config/arm/arm.md (addsi3_cbranch): If destination is a high
4345 register, inputs must be low registers and we need a low register
4346 scratch. Handle alternative 2 like alternative 3.
4348 2010-04-16 Jakub Jelinek <jakub@redhat.com>
4350 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
4351 don't call get_addr on both. If one expression is a VALUE and
4352 the other a REG, check VALUE's locs if the REG isn't among them.
4354 2010-04-16 Christian Bruel <christian.bruel@st.com>
4356 * config/sh/sh.h (sh_frame_pointer_required): New function.
4357 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
4358 (flag_omit_frame_pointer) Set.
4359 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
4360 (rounded_frame_size): Adjust size with outgoing_args_size.
4361 (sh_set_return_address): Must return from stack pointer.
4362 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
4363 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
4364 (ACCUMULATE_OUTGOING_ARGS): Define.
4365 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
4366 * gcc/config/sh/sh.opt: (maccumulate-outgoing-args): New option.
4368 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
4371 * config/sh/sh.c (sh_legitimize_reload_address): Use
4372 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
4373 Remove a unneeded check for offset_base.
4375 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
4377 * configure: Regenerated.
4379 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4381 * config/s390/s390.c (s390_call_save_register_used): Switch back
4382 to HARD_REGNO_NREGS.
4384 2010-04-15 Richard Guenther <rguenther@suse.de>
4386 * alias.c (alias_set_subset_of): Handle alias-set zero
4389 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
4390 Julian Brown <julian@codesourcery.com>
4392 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
4393 alternatives according to use of high and low regs.
4394 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
4395 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
4396 optimizing for size on Thumb-2.
4398 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
4400 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
4402 2010-04-15 Richard Guenther <rguenther@suse.de>
4404 * tree-ssa-structalias.c (struct variable_info): Add
4406 (new_var_info): Initialize it.
4407 (dump_constraints): Support printing last added constraints.
4408 (debug_constraints): Adjust.
4409 (dump_constraint_graph): Likewise.
4410 (make_heapvar_for): Check for NULL cfun.
4411 (get_function_part_constraint): New function.
4412 (get_fi_for_callee): Likewise.
4413 (find_func_aliases): Properly implement IPA PTA constraints.
4414 (process_ipa_clobber): New function.
4415 (find_func_clobbers): Likewise.
4416 (insert_into_field_list_sorted): Remove.
4417 (create_function_info_for): Properly allocate vars for IPA mode.
4418 Do not use insert_into_field_list_sorted.
4419 (create_variable_info_for): Properly generate constraints for
4420 global vars in IPA mode.
4421 (dump_solution_for_var): Always dump the solution.
4422 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
4423 (find_what_var_points_to): Adjust.
4424 (pt_solution_set): Change.
4425 (pt_solution_ior_into): New function.
4426 (pt_solution_empty_p): Export.
4427 (pt_solution_includes_global): Adjust.
4428 (pt_solution_includes_1): Likewise.
4429 (pt_solutions_intersect_1): Likewise.
4430 (dump_sa_points_to_info): Check some invariants.
4431 (solve_constraints): Move constraint dumping ...
4432 (compute_points_to_sets): ... here.
4433 (ipa_pta_execute): ... and here.
4434 (compute_may_aliases): Do not re-compute points-to info
4435 locally if IPA info is available.
4436 (ipa_escaped_pt): New global var.
4437 (ipa_pta_execute): Properly implement IPA PTA.
4438 * tree-into-ssa.c (dump_decl_set): Support dumping
4439 decls not in referenced-vars.
4440 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
4441 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
4442 (dump_points_to_solution): Likewise.
4443 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
4444 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
4445 (remap_gimple_stmt): Reset call clobber/use information if necessary.
4446 (copy_decl_to_var): Copy DECL_PT_UID.
4447 (copy_result_decl_to_var): Likewise.
4448 * tree.c (make_node_stat): Initialize DECL_PT_UID.
4449 (copy_node_stat): Copy it.
4450 * tree.h (DECL_PT_UID): New macro.
4451 (SET_DECL_PT_UID): Likewise.
4452 (DECL_PT_UID_SET_P): Likewise.
4453 (struct tree_decl_minimal): Add pt_uid member.
4454 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
4455 (pt_solution_empty_p): Declare.
4456 (pt_solution_set): Adjust.
4457 (ipa_escaped_pt): Declare.
4458 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
4459 * gimple-pretty-print.c (pp_points_to_solution): New function.
4460 (dump_gimple_call): Dump call clobber/use information.
4461 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
4462 * tree-pass.h (TDF_ALIAS): New dump option.
4463 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
4464 * doc/invoke.texi (-fipa-pta): Update documentation.
4466 2010-04-15 Richard Guenther <rguenther@suse.de>
4468 * Makefile.in (OBJS-common): Add gimple-fold.o.
4469 (gimple-fold.o): New rule.
4470 * tree.h (maybe_fold_offset_to_reference,
4471 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
4473 * gimple.h: ... here.
4474 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
4475 may_propagate_address_into_dereference): Move prototypes ...
4476 * gimple.h: ... here.
4477 * tree-ssa-ccp.c (get_symbol_constant_value,
4478 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
4479 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
4480 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
4481 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
4482 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
4483 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
4484 gimplify_and_update_call_from_tree): Move ...
4485 * gimple-fold.c: ... here. New file.
4486 (ccp_fold_builtin): Rename to ...
4487 (gimple_fold_builtin): ... this.
4488 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
4490 2010-04-15 Richard Guenther <rguenther@suse.de>
4492 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
4493 fit_double_type, force_fit_type_double, add_double_with_sign,
4494 neg_double, mul_double_with_sign, lshift_double, rshift_double,
4495 lrotate_double, rrotate_double, div_and_round_double): Move ...
4496 * double-int.c: ... here.
4497 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
4498 add_double, neg_double, mul_double_with_sign, mul_double,
4499 lshift_double, rshift_double, lrotate_double, rrotate_double,
4500 div_and_round_double): Move prototypes ...
4501 * double-int.h: ... here.
4503 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
4506 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
4507 matching constraints to ensure inputs match the output.
4509 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
4512 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
4513 in an input-only operand.
4515 2010-04-15 Anatoly Sokolov <aesok@post.ru>
4517 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
4518 (double_int_not, double_int_lshift, double_int_rshift): Declare.
4519 (double_int_negative_p): Convert to static inline function.
4520 * double-int.c (double_int_lshift, double_int_lshift): New functions.
4521 (double_int_negative_p): Remove.
4522 * tree.h (lshift_double, rshift_double):
4523 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
4524 * fold-const.c (fold_convert_const_int_from_real,
4525 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
4526 (lshift_double): Change type of arith argument to bool.
4527 (rshift_double): Change type of arith argument to bool. Correct
4529 * expmed.c (mask_rtx, lshift_value): (Ditto.).
4531 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
4534 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
4535 at the start and end of the then/else blocks, and omit them from the
4537 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
4538 argument; all callers changed. Pass zero to old_insns_match_p instead.
4539 (flow_find_head_matching_sequence): New function.
4540 (old_insns_match_p): Check REG_EH_REGION notes for calls.
4541 * basic-block.h (flow_find_cross_jump,
4542 flow_find_head_matching_sequence): Declare functions.
4544 2010-04-14 Jason Merrill <jason@redhat.com>
4547 * c-common.c (attribute_takes_identifier_p): New fn.
4548 * c-common.h: Declare it.
4550 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
4552 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
4554 (*udivmod<mode>4): Ditto.
4556 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
4558 * config/i386/i386.md (maxmin_int): Rename code attribute from
4559 maxminiprefix and update all users.
4560 (maxmin_float): Ditto from maxminfprefix.
4561 (logic): Ditto from logicprefix.
4562 (absneg_mnemonic): Ditto from absnegprefix.
4563 * config/i386/mmx.md: Update all users of maxminiprefix,
4564 maxminfprefix and logicprefix for rename.
4565 * config/i386/sse.md: Ditto.
4566 * config/i386/sync.md (sync_<code><mode>): Update for
4569 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
4572 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
4573 warnings converted to errors.
4575 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
4577 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
4578 used insn_type variable.
4579 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
4580 to avoid set-but-not-used warning.
4582 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
4584 * df-core.c (df_ref_debug): Change format string placeholder
4586 * dwarf2asm.c (dw2_asm_output_data_raw,
4587 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
4588 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
4589 * dwarf2out.c (output_cfi, output_cfi_directive,
4590 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
4591 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
4593 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
4594 * print-rtl.c (print_rtx): Ditto.
4596 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
4599 * builtins.c (expand_builtin_pow_root): New function to expand pow
4600 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
4601 series of sqrt and cbrt calls under -ffast-math.
4602 (expand_builtin_pow): Call it.
4604 2010-04-14 Michael Matz <matz@suse.de>
4606 PR tree-optimization/42963
4607 * tree-cfg.c (touched_switch_bbs): New static variable.
4608 (group_case_labels_stmt): New function broken out from ...
4609 (group_case_labels): ... here, use the above.
4610 (start_recording_case_labels): Allocate touched_switch_bbs.
4611 (end_recording_case_labels): Deallocate it, call
4612 group_case_labels_stmt.
4613 (gimple_redirect_edge_and_branch): Remember index of affected BB.
4615 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
4617 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
4620 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
4622 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
4624 2010-04-13 Jan Hubicka <jh@suse.cz>
4626 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
4627 of optimized out static functions.
4628 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
4629 cost computation. Also sanity check for overflows.
4630 (update_caller_keys): Update cgraph_edge_badness call; properly
4631 update fibheap and sanity check that it is up to date.
4632 (add_new_edges_to_heap): Update cgraph_edge_badness.
4633 (cgraph_decide_inlining_of_small_function): Likewise;
4634 add sanity checking that badness in heap is up to date;
4635 improve dumping of reason; Update badness of calls to the
4636 offline copy of function currently inlined; dump badness
4637 of functions not inlined because of unit growth limits.
4639 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
4642 * c-common.c (pointer_int_sum): Disregard overflow that occured only
4643 because of sign-extension change when converting to sizetype here...
4644 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
4646 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
4647 the folding to constants. Remove redundant final conversion.
4648 (fold_binary) <associate>: Do not associate if the re-association of
4649 constants alone overflows.
4650 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
4651 to the end of the list.
4652 (multiple_of_p) <COND_EXPR>: New case.
4654 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
4656 * opt-functions.awk (opt_sanitized_name): New.
4658 * optc-gen.awk: Use it
4659 * opth-gen.awk: Use it.
4661 2010-04-13 Martin Jambor <mjambor@suse.cz>
4663 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
4664 (sra_modify_assign): Delete stmts loading dead data even if racc has no
4665 children. Call replace_uses_with_default_def_ssa_name to handle
4668 2010-04-13 Michael Matz <matz@suse.de>
4671 * builtins.c (expand_builtin_interclass_mathfn): Also create
4672 a register if the predicate doesn't match.
4674 2010-04-13 Diego Novillo <dnovillo@google.com>
4676 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
4677 * c-pch.c: Include timevar.h.
4678 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
4679 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
4680 * ggc-common.c: Include timevar.h.
4681 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
4682 * timevar.def (TV_PCH_SAVE): Define.
4683 (TV_PCH_CPP_SAVE): Define.
4684 (TV_PCH_PTR_REALLOC): Define.
4685 (TV_PCH_PTR_SORT): Define.
4686 (TV_PCH_RESTORE): Define.
4687 (TV_PCH_CPP_RESTORE): Define.
4689 2010-04-13 Michael Matz <matz@suse.de>
4691 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
4693 (can_reassociate_p): New function.
4694 (break_up_subtract_bb, reassociate_bb): Use it.
4696 2010-04-13 Richard Guenther <rguenther@suse.de>
4699 * builtins.c (c_readstr): Fix assert.
4701 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
4703 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
4704 when generating cltd insn.
4706 (*ashl<mode>3_1): Remove special handling for register operand 2.
4707 (*ashlsi3_1_zext): Ditto.
4708 (*ashlhi3_1): Ditto.
4709 (*ashlhi3_1_lea): Ditto.
4710 (*ashlqi3_1): Ditto.
4711 (*ashlqi3_1_lea): Ditto.
4712 (*<shiftrt_insn><mode>3_1): Ditto.
4713 (*<shiftrt_insn>si3_1_zext): Ditto.
4714 (*<shiftrt_insn>qi3_1_slp): Ditto.
4715 (*<rotate_insn><mode>3_1): Ditto.
4716 (*<rotate_insn>si3_1_zext): Ditto.
4717 (*<rotate_insn>qi3_1_slp): Ditto.
4719 2010-04-13 Richard Guenther <rguenther@suse.de>
4721 * tree-ssa-structalias.c (callused_id): Remove.
4722 (call_stmt_vars): New.
4723 (get_call_vi): Likewise.
4724 (lookup_call_use_vi): Likewise.
4725 (lookup_call_clobber_vi): Likewise.
4726 (get_call_use_vi): Likewise.
4727 (get_call_clobber_vi): Likewise.
4728 (make_transitive_closure_constraints): Likewise.
4729 (handle_const_call): Adjust to do per-call call-used handling.
4730 (handle_pure_call): Likewise.
4731 (find_what_var_points_to): Remove general callused handling.
4732 (init_base_vars): Likewise.
4733 (init_alias_vars): Initialize call_stmt_vars.
4734 (compute_points_to_sets): Process call-used and call-clobbered
4735 vars for call statements.
4736 (delete_points_to_sets): Free call_stmt_vars.
4738 2010-04-13 Richard Guenther <rguenther@suse.de>
4740 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4741 Only add RW dependence for dependence distance zero.
4742 Adjust maximal vectorization factor according to dependences.
4743 Move alignment handling ...
4744 (vect_find_same_alignment_drs): ... here. New function.
4745 (vect_analyze_data_ref_dependences): Adjust.
4746 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
4747 (vect_analyze_data_refs): Adjust minimal vectorization factor
4748 according to data references.
4749 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
4750 dependences before determining the vectorization factor.
4751 Analyze alignment after determining the vectorization factor.
4752 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
4753 dependences before alignment.
4754 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
4756 (vect_analyze_data_refs): Likewise.
4757 (MAX_VECTORIZATION_FACTOR): New define.
4759 2010-04-13 Duncan Sands <baldrick@free.fr>
4761 * except.h (lang_eh_type_covers): Remove.
4762 * except.c (lang_eh_type_covers): Likewise.
4764 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4765 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4767 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
4768 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
4769 UNITS_PER_LONG where it is ABI relevant.
4770 (s390_return_addr_rtx): Likewise.
4771 (s390_back_chain_rtx): Likewise.
4772 (s390_frame_area): Likewise.
4773 (s390_frame_info): Likewise.
4774 (s390_initial_elimination_offset): Likewise.
4775 (save_gprs): Likewise.
4776 (s390_emit_prologue): Likewise.
4777 (s390_emit_epilogue): Likewise.
4778 (s390_function_arg_advance): Likewise.
4779 (s390_function_arg): Likewise.
4780 (s390_va_start): Likewise.
4781 (s390_gimplify_va_arg): Likewise.
4782 (s390_function_profiler): Likewise.
4783 (s390_optimize_prologue): Likewise.
4784 (s390_rtx_costs): Likewise.
4785 (s390_secondary_reload): Likewise.
4786 (s390_promote_function_mode): Likewise.
4787 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
4788 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
4789 registers available.
4790 (s390_unwind_word_mode): New function.
4791 (s390_function_value): Split 64 bit values into register pair if
4792 used as return value.
4793 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
4794 function call parameters. Handle parallels.
4795 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
4796 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
4797 (DWARF_CIE_DATA_ALIGNMENT): New macro.
4798 (s390_expand_setmem): Remove unused variable src_addr.
4799 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
4800 deal with 64 bit registers.
4801 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
4802 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
4803 (UNITS_PER_LONG): New macro.
4804 * libjava/include/s390-signal.h: Define extended ucontext
4805 structure containing the upper halfs of the 64 bit registers.
4807 2010-04-13 Simon Baldwin <simonb@google.com>
4809 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
4811 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
4813 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
4814 rvalue on the RHS if the LHS is of a non-renamable type.
4815 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
4817 2010-04-13 Matthias Klose <doko@ubuntu.com>
4819 * gcc.c (cc1_options): Handle -iplugindir before processing
4820 the cc1 spec. Only add -iplugindir once.
4821 (cpp_unique_options): Add -iplugindir option if -fplugin* options
4823 * common.opt (iplugindir): Remove `Separate' property, initialize.
4824 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
4826 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
4827 (distclean): Remove plugin dir.
4828 * doc/invoke.texi: Document -iplugindir.
4830 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
4832 * doc/plugins.texi (Loading Plugins): Document short
4833 -fplugin=foo option.
4834 (Plugin API): Mention default_plugin_dir_name function.
4836 * gcc.c (find_file_spec_function): Add new declaration.
4837 (static_spec_func): Use it for "find-file".
4838 (find_file_spec_function): Add new function.
4839 (cc1_options): Add -iplugindir option if -fplugin* options found.
4841 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
4843 * plugin.c (add_new_plugin): Updated comment, and handle short
4845 (default_plugin_dir_name): Added new function.
4847 * common.opt (iplugindir): New option to set the plugin directory.
4849 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
4851 * config/i386/i386.md (any_rotate): New code iterator.
4852 (rotate_insn): New code attribute.
4854 (SWIM124): New mode iterator.
4855 (<rotate_insn>ti3): New expander.
4856 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
4857 any_rotate code iterator.
4858 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
4859 using any_rotate code iterator and SWIM124 mode iterator.
4860 (ix86_rotlti3): New insn_and_split pattern.
4861 (ix86_rotrti3): Ditto.
4862 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
4863 ix86_rotl{di,ti}3 patterns.
4864 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
4865 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
4866 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
4867 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
4868 code iterator and SWI mode iterator.
4869 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
4870 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
4872 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
4873 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
4874 (bswap rotatert splitter): Add splitter.
4875 (bswap splitter): Macroize splitter using any_rotate code iterator.
4876 Add insn predicate to split only for TARGET_USE_XCHGB or when
4877 optimizing function for size.
4879 2010-04-12 Steve Ellcey <sje@cup.hp.com>
4881 * config/pa/pa.c (emit_move_sequence): Remove use of
4882 deleted variable flag_argument_noalias.
4884 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4886 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
4888 Add to unsupported targets list.
4889 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
4890 sparc*-sun-solaris2.[567]* from target lists.
4891 * configure: Regenerate.
4892 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
4894 Remove Solaris 7 patch references.
4895 (Specific, sparc-sun-solaris2.7): Removed.
4896 (sparc-sun-solaris2*): Update Solaris 7 example.
4897 (sparc64-*-solaris2*): Likewise.
4899 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4901 * config.build (alpha*-dec-osf4*): Remove.
4902 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
4903 of obsolete configurations.
4904 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
4906 * config/alpha/t-osf4: Renamed to ...
4907 * config/alpha/t-osf5: ... this.
4908 * config/alpha/osf.h: Renamed to ...
4909 * config/alpha/osf5.h: ... this.
4910 Merged old osf5.h contents.
4912 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
4913 (EXTRA_SPECS): Removed.
4914 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
4915 reflect removal of Tru64 UNIX V4.0/V5.0 support.
4918 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4920 * doc/contrib.texi (Contributors, Rainer Orth): Update.
4922 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
4925 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
4926 __thiscall convention.
4928 2010-04-12 Steve Ellcey <sje@cup.hp.com>
4930 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
4932 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
4934 2010-04-12 Steve Ellcey <sje@cup.hp.com>
4936 * function.c (assign_parms_initialize_all): Add unused attribute
4939 2010-04-12 Richard Guenther <rguenther@suse.de>
4941 * gsstruct.def (GSS_CALL): New.
4942 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
4943 * gimple.h: Include tree-ssa-alias.h.
4944 (struct gimple_statement_call): New.
4945 (union gimple_statement_struct_d): Add gimple_call member.
4946 (gimple_call_reset_alias_info): Declare.
4947 (gimple_call_use_set): New function.
4948 (gimple_call_clobber_set): Likewise.
4949 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
4950 * gimple.c (gimple_call_reset_alias_info): New function.
4951 (gimple_build_call_1): Call it.
4952 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4953 * tree-inline.c (remap_gimple_stmt): Likewise.
4954 (expand_call_inline): Remove callused handling.
4955 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
4956 * tree-dfa.c (dump_variable): Likewise.
4957 * tree-parloops.c (parallelize_loops): Likewise.
4958 * tree-ssa.c (init_tree_ssa): Likewise.
4959 (delete_tree_ssa): Likewise.
4960 * tree-flow-inline.h (is_call_used): Remove.
4961 * tree-flow.h (struct gimple_df): Remove callused member.
4962 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
4963 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
4964 (ref_maybe_used_by_call_p_1): Simplify.
4965 (call_may_clobber_ref_p_1): Likewise.
4966 * tree-ssa-structalias.c (compute_points_to_sets): Set
4967 the call stmt used and clobbered sets.
4968 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
4969 (find_tail_calls): Verify the tail call.
4971 2010-04-12 Richard Guenther <rguenther@suse.de>
4973 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
4974 single-iteration always-inline inlining.
4975 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
4976 (cgraph_decide_inlining): Do not handle always-inline specially.
4977 (try_inline): Remove always-inline cycle detection special case.
4978 Do not recurse on always-inlines.
4979 (cgraph_early_inlining): Do not iterate if not optimizing.
4980 (cgraph_gate_early_inlining): remove.
4981 (pass_early_inline): Run unconditionally.
4982 (gate_cgraph_decide_inlining): New function.
4983 (pass_ipa_inline): Use it. Do not run the IPA inliner if
4984 not inlining or optimizing.
4985 (cgraph_decide_inlining_of_small_functions): Also consider
4986 always-inline functions.
4987 (cgraph_default_inline_p): Return true for nodes which should
4988 disregard inline limits.
4989 (estimate_function_body_sizes): Assume zero size and time for
4990 nodes which are marked as disregarding inline limits.
4991 (cgraph_decide_recursive_inlining): Do not perform recursive
4992 inlining on always-inline nodes.
4994 2010-04-12 Jakub Jelinek <jakub@redhat.com>
4997 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
4998 for exprs satisfying handled_component_p.
5000 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
5002 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
5003 non-constant aggregate elements.
5005 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
5006 is a real initialization.
5008 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
5011 * c-decl.c (start_function): Move forward check for nested function.
5013 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
5015 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
5016 * config/sh/sh.c: Include reload.h.
5017 (sh_legitimize_reload_address): New.
5018 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
5019 sh_legitimize_reload_address.
5021 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
5023 * config/sh/sh.md (*movqi_pop): New insn pattern.
5024 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
5026 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
5028 * config/i386/i386.md (any_shiftrt): New code iterator.
5029 (shiftrt_insn): New code attribute.
5031 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
5032 using any_shiftrt code iterator.
5033 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
5034 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
5035 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
5036 pattern from corresponding peephole2 patterns.
5037 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
5038 using any_shiftrt code iterator.
5039 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
5040 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
5041 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
5042 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
5043 *{ashr,lshr}<mode>3_cmp_zext.
5044 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
5046 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
5048 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
5050 (*lshr<mode>3_cconly): Ditto.
5052 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
5054 * config/i386/i386.md (lshr<mode>3): Macroize expander from
5055 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
5056 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
5057 pattern from *lshr{di,ti}3_1 and corresponding splitters using
5059 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
5060 from corresponding peephole2 patterns.
5061 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
5062 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
5063 and *lshrdi3_1_rex64 using SWI mode iterator.
5064 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
5065 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
5066 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
5067 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
5068 and *lshrdi3_cmp_rex64 using SWI mode iterator.
5069 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
5070 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
5071 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
5072 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
5075 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
5077 * config/i386/i386.md (ashr<mode>3): Macroize expander from
5078 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
5079 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
5080 pattern from *ashr{di,ti}3_1 and corresponding splitters using
5082 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
5083 from corresponding peephole2 patterns.
5084 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
5085 (ashrsi3_cvt): Rename from ashrsi3_31.
5086 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
5087 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
5088 and x86_64_shift_adj_3 using SWI48 mode iterator.
5089 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
5090 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
5091 and *ashrdi3_1_rex64 using SWI mode iterator.
5092 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
5093 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
5094 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
5095 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
5096 and *ashrdi3_cmp_rex64 using SWI mode iterator.
5097 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
5098 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
5099 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
5100 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
5102 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
5103 * config/i386/i386.c (ix86_split_ashr): Update for renamed
5104 x86_shift<mode>_adj_3 expanders.
5106 2010-04-10 Wei Guozhi <carrot@google.com>
5109 * config/arm/arm.c (arm_pic_static_addr): New function.
5110 (legitimize_pic_address): Call arm_pic_static_addr when it detects
5112 (arm_output_addr_const_extra): Output expression for new pattern.
5113 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
5115 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
5117 * ira-costs.c (record_reg_classes): Ignore alternatives that are
5120 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
5121 * web.c: Include "insn-config.h" and "recog.h".
5122 (union_match_dups): New function.
5123 (web_main): Call it.
5124 (union_defs): Don't try to recognize match_dups.
5126 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
5127 if doing so would replace the entire pattern.
5129 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
5133 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
5134 and splitter pattern. Change splitter operand 1 predicate to
5137 2010-04-09 Martin Jambor <mjambor@suse.cz>
5139 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
5140 lattices are addresses of CONST_DECLs with the same initial value.
5141 (ipcp_print_all_lattices): Print values of CONST_DECLs.
5142 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
5144 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
5145 Bernd Schmidt <bernds@codesourcery.com>
5147 * loop-invariant.c (replace_uses): New static function.
5148 (move_invariant_reg): Use it to ensure we can replace the uses.
5150 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
5152 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
5154 (picochip_override_options): Enable section anchors only above -O1.
5155 (picochip_reorg): Fixed a couple of build warnings.
5157 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5159 * configure.ac (plugin -rdynamic test): Log result.
5160 * configure: Regenerate.
5161 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
5162 (RDYNAMIC_SPEC): Define.
5163 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
5165 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5167 * configure.ac: Determine Sun ld version numbers.
5168 (comdat_group): Restrict GNU ld version checks to gld.
5169 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
5170 (enable_comdat): Support --enable-comdat.
5171 * configure: Regenerate.
5172 * doc/install.texi (Configuration): Document --enable-comdat.
5174 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5176 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
5177 * config/sol2-gld.h: ... here.
5178 * config.gcc (sparc*-*-solaris2*): Reflect this.
5179 (i[34567]86-*-solaris2*): Use it.
5181 2010-04-09 Steve Ellcey <sje@cup.hp.com>
5183 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
5185 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
5187 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5190 * diagnostic.c (diagnostic_initialize): Initialize
5191 some_warnings_are_errors.
5192 (diagnostic_finish): New.
5193 (diagnostic_action_after_output): Call it before exiting.
5194 (diagnostic_report_diagnostic): Do not print message here. Set
5195 some_warnings_are_errors.
5196 * diagnostic.h (diagnostic_context): Delete
5197 issue_warnings_are_errors_message. Add some_warnings_are_errors.
5198 (diagnostic_finish): Declare.
5199 * toplev.c (toplev_main): Call it before exit.
5201 2010-04-09 Jason Merrill <jason@redhat.com>
5204 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
5205 for incomplete type.
5208 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
5209 based on a warning flag.
5211 2010-04-09 Richard Guenther <rguenther@suse.de>
5213 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
5215 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
5218 * varasm.c (default_assemble_visibility): Wrap vars that are
5219 set, but unused, by targets without GAS.
5220 * config/rs6000/rs6000.c: (paired_emit_vector_compare):
5221 Remove set, but unused, vars.
5222 (rs6000_legitimize_tls_address): Likewise.
5223 (altivec_expand_dst_builtin): Likewise.
5224 * config/darwin.c (machopic_classify_symbol): Likewise.
5225 (machopic_indirection_name): Likewise.
5227 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
5229 * config/i386/i386.md (DWI): New mode iterator.
5230 (S): New mode attribute.
5231 (shift_operand): Ditto.
5232 (shift_immediate_operand): Ditto.
5233 (ashl_input_operand): Ditto.
5234 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
5235 using SDWIM mode iterator.
5236 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
5237 pattern from *ashl{di,ti}3_1 and corresponding splitters using
5239 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
5240 from corresponding peephole2 patterns.
5241 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
5242 and x86_64_shift_adj_1 using SWI48 mode iterator.
5243 (x86_shift<mode>_adj_2): Ditto.
5244 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
5245 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
5246 using SWI48 mode iterator.
5247 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
5248 *ashldi3_cmp_rex64 using SWI mode iterator.
5249 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
5250 *ashldi3_cconly_rex64 using SWI mode iterator.
5251 * config/i386/i386.c (ix86_split_ashl): Update for renamed
5252 x86_shift<mode>_adj_{1,2}.
5253 (ix86_split_ashr): Ditto.
5254 (ix86_split_lshr): Ditto.
5256 2010-04-09 Richard Guenther <rguenther@suse.de>
5258 * target.h (builtin_conversion): Pass in input and output types.
5259 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
5260 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
5261 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
5262 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
5264 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
5266 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
5268 2010-04-09 Richard Guenther <rguenther@suse.de>
5271 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
5273 2010-04-09 Richard Guenther <rguenther@suse.de>
5275 * tree-vectorizer.h (struct _stmt_vec_info): Document
5276 that vectype is the type of the LHS.
5277 (supportable_widening_operation, supportable_narrowing_operation):
5278 Get both input and output vector types as arguments.
5279 (vect_is_simple_use_1): Declare.
5280 (get_same_sized_vectype): Likewise.
5281 * tree-vect-loop.c (vect_determine_vectorization_factor):
5282 Set STMT_VINFO_VECTYPE to the vector type of the def.
5283 (vectorizable_reduction): Adjust.
5284 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
5285 Adjust. Specify the output vector type.
5286 (vect_pattern_recog_1): Adjust.
5287 * tree-vect-stmts.c (get_same_sized_vectype): New function.
5288 (vectorizable_call): Adjust.
5289 (vectorizable_conversion): Likewise.
5290 (vectorizable_operation): Likewise.
5291 (vectorizable_type_demotion): Likewise.
5292 (vectorizable_type_promotion): Likewise.
5293 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
5295 (vect_is_simple_use_1): New function.
5296 (supportable_widening_operation): Get both input and output
5298 (supportable_narrowing_operation): Likewise.
5299 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
5301 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
5303 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
5304 __thiscall and _thiscall as predefined macros.
5305 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
5306 thiscall attribute handling.
5307 (ix86_comp_type_attributes): Likewise.
5308 (ix86_function_regparm): Likewise.
5309 (ix86_return_pops_args): Likewise.
5310 (init_cumulative_args): Likewise.
5311 (find_drap_reg): Likewise.
5312 (ix86_static_chain): Likewise.
5313 (x86_this_parameter): Likewise.
5314 (x86_output_mi_thunk): Likewise.
5315 (ix86_attribute_table): Add description for thiscall attribute.
5316 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
5317 * doc/extend.texi: Add documentation for thiscall.
5319 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
5322 * c.opt (Wint-to-pointer-cast): Available in C++.
5323 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
5325 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
5327 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
5328 * calls.c (expand_call): Pass the function type to aggregate_value_p.
5329 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
5330 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
5331 function type instead. Reorder and simplify checks.
5333 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
5335 2010-04-08 Jing Yu <jingyu@google.com>
5336 Zdenek Dvorak <ook@ucw.cz>
5338 PR tree-optimization/42720
5339 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
5340 loop unswitch conditions here from ...
5341 (tree_unswitch_single_loop): ... here.
5343 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
5345 * tree-if-conv.c: Fix comments and simplify logic.
5347 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
5349 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
5350 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
5351 (main_tree_if_conversion): Update call to tree_if_conversion.
5353 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
5356 * doc/invoke.texi (-b,-V): Delete.
5357 * doc/tm.texi: Do not mention -b.
5358 * gcc.c (display_help): Delete -b and -V.
5359 (process_command): Delete -b and -V.
5360 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
5362 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
5363 Wolfgang Gellerich <gellerich@de.ibm.com>
5365 Implement target hook for loop unrolling
5366 * target.h (loop_unroll_adjust): Add a new target hook function.
5367 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
5368 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
5369 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
5370 (s390_loop_unroll_adjust): Implement the new target hook for s390.
5371 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
5373 (decide_unroll_stupid): Likewise.
5375 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5378 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
5380 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5382 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
5383 (Specific, *-*-solaris2*): Likewise.
5384 Don't prefer Sun as over GNU as.
5386 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
5388 * config/s390/s390.c (override_options): Adjust the z10 defaults
5389 for max-unroll-times, max-completely-peeled-insns
5390 and max-completely-peel-times.
5392 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5394 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
5395 instructions for z10.
5396 (s390_expand_setmem): Likewise.
5397 (s390_expand_cmpmem): Likewise.
5399 2010-04-08 Richard Guenther <rguenther@suse.de>
5401 PR tree-optimization/43679
5402 * tree-ssa-pre.c (eliminate): Only propagate copies.
5404 2010-04-08 Jakub Jelinek <jakub@redhat.com>
5407 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
5408 set but not used variable warning.
5410 2010-04-08 Wei Guozhi <carrot@google.com>
5413 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
5414 (arm_size_rtx_costs): Call the new function when optimized for size.
5416 2010-04-08 Jakub Jelinek <jakub@redhat.com>
5419 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
5420 op0 is not a MEM, just return NULL instead of assertion
5422 (discover_nonconstant_array_refs): Don't walk debug stmts.
5424 2010-04-08 Doug Kwan <dougkwan@google.com>
5426 * configure.ac: Recognize gold and do not use its version number
5427 to test ld features.
5428 * configure: Regenerate.
5430 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
5433 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
5434 (negate_value): Move code to push elements to broken_up_substracts ...
5435 (eliminate_plus_minus_pair): ... here. Push operands that have no
5436 negative pair to plus_negates.
5437 (repropagate_negates, init_reassoc, fini_reassoc): Update.
5439 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5441 * doc/install.texi (Configuration): Move description of
5442 --enable-lto, --with-libelf*, --enable-gold from Java section to
5445 * doc/generic.texi (Working with declarations)
5446 (Function Properties, C and C++ Trees): Fix typos.
5447 * doc/sourcebuild.texi (Top Level): Likewise.
5449 2010-04-07 Jakub Jelinek <jakub@redhat.com>
5452 * tree.h (DECL_READ_P): Define.
5453 (struct tree_decl_common): Add decl_read_flag.
5454 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
5455 a set but not used warning.
5456 (merge_decls): Merge DECL_READ_P flag.
5457 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
5458 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
5459 * c-common.c (handle_used_attribute, handle_unused_attribute):
5461 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
5463 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
5465 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
5466 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
5467 c_parser_binary_expression, c_parser_cast_expression,
5468 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
5469 Call default_function_array_read_conversion instead of
5470 default_function_array_conversion where needed.
5471 (c_parser_unary_expression, c_parser_conditional_expression,
5472 c_parser_postfix_expression_after_primary, c_parser_initelt):
5473 Likewise. Call mark_exp_read where needed.
5474 (c_parser_statement_after_labels, c_parser_asm_operands,
5475 c_parser_typeof_specifier, c_parser_sizeof_expression,
5476 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
5478 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
5480 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
5481 (warn_unused_but_set_parameter): Default to warn_unused
5483 * doc/invoke.texi: Document -Wunused-but-set-variable and
5484 -Wunused-but-set-parameter.
5486 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
5487 used count variable.
5488 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
5489 when operandN variables aren't used in the body of the expander
5491 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
5492 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
5493 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
5494 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
5495 FOR_EACH_IMM_USE_ON_STMT): Likewise.
5496 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
5497 * tree.c (PROCESS_ARG): Likewise.
5499 2010-04-07 Simon Baldwin <simonb@google.com>
5501 * diagnostic.h (diagnostic_override_option_index): New macro to
5502 set a diagnostic's option_index.
5503 * c-tree.h (c_cpp_error): Add warning reason argument.
5504 * opts.c (_warning_as_error_callback): New.
5505 (register_warning_as_error_callback): Store callback for
5506 warnings enabled via enable_warning_as_error.
5507 (enable_warning_as_error): Call callback, minor code tidy.
5508 * opts.h (register_warning_as_error_callback): Declare.
5509 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
5510 response to -Werror=.
5511 (c_common_init_options): Register warning_as_error_callback in opts.c.
5512 * common.opt: Add -Wno-cpp option.
5513 * c-common.c (struct reason_option_codes_t): Map cpp warning
5514 reason codes to gcc option indexes.
5515 * (c_option_controlling_cpp_error): New function, lookup the gcc
5516 option index for a cpp warning reason code.
5517 * (c_cpp_error): Add warning reason argument, call
5518 c_option_controlling_cpp_error for diagnostic_override_option_index.
5519 * doc/invoke.texi: Document -Wno-cpp.
5521 2010-04-07 Richard Guenther <rguenther@suse.de>
5523 * ipa-reference.c (mark_load): Use get_base_address.
5524 (mark_store): Likewise.
5526 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
5527 inserting GIMPLE_NOPs into the IL.
5528 * tree-ssa-structalias.c (get_constraint_for_component_ref):
5529 Explicitly strip handled components and indirect references.
5531 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
5532 folding address expressions.
5533 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
5534 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
5535 operand_equal_p to compare decls.
5536 (ptr_deref_may_alias_decl_p): Likewise.
5537 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
5538 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
5539 Handle reversed comparison ops.
5540 * tree-sra.c (asm_visit_addr): Use get_base_address.
5541 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
5542 * ipa-reference.c (mark_address): Use get_base_address.
5544 2010-04-07 Richard Guenther <rguenther@suse.de>
5546 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
5547 Propagate constants everywhere.
5549 2010-04-07 Jakub Jelinek <jakub@redhat.com>
5552 * tree.c (MAX_INT_CACHED_PREC): Define.
5553 (nonstandard_integer_type_cache): New array.
5554 (build_nonstandard_integer_type): Cache results for precision
5555 <= MAX_INT_CACHED_PREC.
5557 2010-04-07 Richard Guenther <rguenther@suse.de>
5559 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
5560 -fargument-noalias-global, -fargument-noalias-anything): Remove.
5561 * common.opt: Likewise.
5562 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
5563 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
5564 (nonoverlapping_memrefs_p): Likewise.
5565 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
5566 * opts.c (common_handle_option): Handle OPT_fargument_alias,
5567 OPT_fargument_noalias, OPT_fargument_noalias_anything and
5568 OPT_fargument_noalias_global for backward compatibility.
5570 2010-04-07 Richard Guenther <rguenther@suse.de>
5572 PR tree-optimization/43270
5573 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
5574 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
5575 * tree-ssa-pre.c (phi_translate_1): Adjust.
5576 (fully_constant_expression): Split out vn_reference handling to ...
5577 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
5578 Fold reads from constant strings.
5579 (vn_reference_lookup): Handle fully constant references.
5580 (vn_reference_lookup_pieces): Likewise.
5581 * Makefile.in (expmed.o-warn): Add -Wno-error.
5583 2010-04-07 Martin Jambor <mjambor@suse.cz>
5585 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
5587 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
5590 * gcc.c: Add -static-libstdc++ to list of recognized options.
5592 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5594 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
5596 2010-04-07 Richard Guenther <rguenther@suse.de>
5599 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
5600 bases build simple mem attributes to retain points-to information.
5602 2010-04-07 Richard Guenther <rguenther@suse.de>
5605 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
5606 preserve points-to related information.
5608 2010-04-07 Richard Guenther <rguenther@suse.de>
5611 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
5612 discard plain indirect references.
5613 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
5614 * tree.c (tree_nop_conversion): Likewise.
5616 2010-04-07 Dodji Seketeli <dodji@redhat.com>
5619 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
5621 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
5623 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
5624 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
5626 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
5628 * tree-if-conv.c: Fix indentation and comments.
5630 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
5632 * tree-if-conv.c: Sort static functions in topological order.
5634 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
5636 * tree-if-conv.c: Fix indentation and comments.
5638 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
5641 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
5642 lang_hooks.types.type_for_size instead of
5643 build_nonstandard_integer_type.
5644 When converting an unsigned type to signed, double its precision.
5645 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
5646 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
5647 (graphite_create_new_loop_guard): When ub + 1 wraps around,
5650 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
5653 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
5654 POINTER_PLUS_EXPR for pointer types.
5656 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
5659 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
5660 * graphite-clast-to-gimple.c: Include langhooks.h.
5661 (max_signed_precision_type): New.
5662 (max_precision_type): Takes two types as arguments.
5663 (precision_for_value): New.
5664 (precision_for_interval): New.
5665 (gcc_type_for_interval): New.
5666 (gcc_type_for_value): New.
5667 (gcc_type_for_clast_term): New.
5668 (gcc_type_for_clast_red): New.
5669 (gcc_type_for_clast_bin): New.
5670 (gcc_type_for_clast_expr): Split up into several functions.
5671 (gcc_type_for_clast_eq): Rewritten.
5672 (compute_bounds_for_level): New.
5673 (compute_type_for_level_1): New.
5674 (compute_type_for_level): New.
5675 (gcc_type_for_cloog_iv): Removed.
5676 (gcc_type_for_iv_of_clast_loop): Rewritten.
5677 (graphite_create_new_loop): Compute the lower and upper bound types
5678 with gcc_type_for_clast_expr.
5679 (graphite_create_new_loop_guard): Same.
5680 (find_cloog_iv_in_expr): Removed.
5681 (compute_cloog_iv_types_1): Removed.
5682 (compute_cloog_iv_types): Removed.
5683 (gloog): Do not call compute_cloog_iv_types.
5684 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
5686 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
5687 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
5688 (GBB_CLOOG_IV_TYPES): Removed.
5690 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
5692 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
5693 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
5694 (detect_commutative_reduction): Same.
5696 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
5698 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
5699 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
5701 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
5702 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
5703 (rewrite_commutative_reductions_out_of_ssa): Same.
5704 * passes.c (execute_function_todo): Call verify_ssa for every pass
5705 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
5706 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
5707 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
5708 with an extra argument.
5709 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
5710 verify_ssa only when the extra argument is true.
5711 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
5712 with an extra argument.
5713 (tree_transform_and_unroll_loop): Same.
5715 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
5717 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
5718 for all the passes of the LNO having LOOP_CLOSED_SSA.
5719 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
5720 * tree-loop-distribution.c (pass_loop_distribution): Same.
5721 * tree-pass.h (TODO_verify_loops): Removed.
5722 * tree-ssa-loop.c (pass_tree_loop_init): Same.
5724 (pass_tree_unswitch): Same.
5725 (pass_predcom): Same.
5726 (pass_vectorize): Same.
5727 (pass_linear_transform): Same.
5728 (pass_graphite_transforms): Same.
5729 (pass_iv_canon): Same.
5730 (pass_complete_unroll): Same.
5731 (pass_complete_unrolli): Same.
5732 (pass_parallelize_loops): Same.
5733 (pass_loop_prefetch): Same.
5734 (pass_iv_optimize): Same.
5736 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
5739 * passes.c (init_optimization_passes): Move pass_lim before
5740 pass_copy_prop and pass_dce_loop.
5742 2010-04-06 Jakub Jelinek <jakub@redhat.com>
5745 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
5746 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
5747 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
5748 MULTI_* defines for 4 argument vpermil2p* builtins.
5750 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
5752 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
5753 * config/i386/i386.c (x86_maybe_negate_const_int): New.
5754 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
5755 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
5756 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
5757 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
5758 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
5759 Use x86_maybe_negate_const_int to output insn mnemonic.
5760 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
5761 check from instruction predicate. Update comments.
5762 * config/i386/sync.md (sync_add<mode>): Use
5763 x86_maybe_negate_const_int to output insn mnemonic.
5765 2010-04-06 Jan Hubicka <jh@suse.cz>
5767 PR tree-optimization/42906
5768 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
5769 IGNORE_SELF argument. Set visited_control_parents for fully
5771 (find_obviously_necessary_stmts): Update call of
5772 mark_control_dependent_edges_necessary.
5773 (propagate_necessity): Likewise. Handle PHI edges more curefully.
5775 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
5777 * config/i386/i386.md: Remove comment about 'e' and 'E'
5780 2010-04-06 Richard Guenther <rguenther@suse.de>
5782 PR tree-optimization/43627
5783 * tree-vrp.c (extract_range_from_unary_expr): Widenings
5784 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
5787 2010-04-06 Jakub Jelinek <jakub@redhat.com>
5789 * BASE-VER: Change to 4.6.0.
5792 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
5795 2010-04-06 Richard Guenther <rguenther@suse.de>
5798 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
5800 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5802 * doc/invoke.texi (Optimize Options): Document that LTO
5803 won't remove object access purely due to incompatible
5806 2010-04-04 Matthias Klose <doko@ubuntu.com>
5808 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
5809 Initialize variable.
5811 2010-04-03 Richard Guenther <rguenther@suse.de>
5814 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
5815 require a non-NULL MEM_OFFSET.
5817 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
5819 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
5820 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
5821 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
5822 config/alpha/predicates.md, config/arm/arm.md,
5823 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
5824 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
5825 config/darwin9.h, config/darwin.c, config/darwin.h,
5826 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
5827 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
5828 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
5829 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
5830 config/mips/mips.md, config/mn10300/mn10300.c,
5831 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
5832 config/rs6000/aix.h, config/rs6000/dfp.md,
5833 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
5834 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
5835 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
5836 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
5837 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
5838 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
5839 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
5840 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
5841 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
5842 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
5843 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
5844 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
5845 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
5846 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
5847 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
5848 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
5849 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
5850 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
5851 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
5852 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
5853 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
5854 opt-functions.awk, opth-gen.awk, params.def, passes.c,
5855 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
5856 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
5857 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
5858 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
5859 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
5860 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
5861 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
5862 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
5863 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
5864 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
5865 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
5866 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
5867 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
5868 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
5870 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5873 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
5874 * aclocal.m4: Regenerate.
5876 2010-04-02 Richard Guenther <rguenther@suse.de>
5878 PR tree-optimization/43629
5879 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
5880 if we have seen a constant value.
5882 2010-04-02 Joseph Myers <joseph@codesourcery.com>
5884 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
5886 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
5889 * arm.c (legitimize_tls_address): Adjust call to
5890 gen_tls_load_dot_plus_four.
5891 (arm_note_pic_base): New function.
5892 (arm_cannot_copy_insn_p): Use it.
5893 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
5896 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5901 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5903 * Makefile.in ($(out_object_file)): Depend on
5904 gt-$(basename $(notdir $(out_file))).h.
5906 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
5908 * config.gcc (lm32-*-rtems*): Add t-lm32.
5910 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
5912 * config.gcc: Add lm32-*-rtems*.
5913 * config/lm32/rtems.h: New file.
5915 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
5918 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
5920 2010-04-01 Jakub Jelinek <jakub@redhat.com>
5922 * dwarf2out.c (output_compilation_unit_header): For
5923 -gdwarf-4 use version 4 instead of version 3.
5924 (output_line_info): For version 4 and above emit additional
5925 maximum ops per insn header field.
5926 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
5928 * dwarf2out.c (is_c_family, is_java): Remove.
5929 (lower_bound_default): New function.
5930 (add_bound_info, gen_descr_array_type_die): Use it.
5932 2010-04-01 Dodji Seketeli <dodji@redhat.com>
5935 * dwarf2out.c (gen_variable_die): Allow debug info for variable
5936 re-declaration when it happens in a function.
5938 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
5940 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
5941 (cgraph_remove_function_insertion_hook): Same.
5942 (cgraph_call_function_insertion_hooks): Same.
5944 2010-04-01 Richard Guenther <rguenther@suse.de>
5947 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
5948 and TREE_THIS_VOLATILE.
5949 (copy_ref_info): Likewise.
5950 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
5951 * tree.c (build6_stat): Ignore side-effects of all but arg5
5952 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
5955 2010-04-01 Richard Guenther <rguenther@suse.de>
5957 PR tree-optimization/43607
5958 * ipa-type-escape.c (check_call): Do not access non-existing
5961 2010-04-01 Richard Guenther <rguenther@suse.de>
5965 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
5966 Jack Howarth <howarth@bromo.med.uc.edu>
5968 * tree-profile.c (tree_init_ic_make_global_vars): Make static
5971 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5973 * doc/install.texi (Prerequisites): Document libelf usability on
5974 IRIX 5/6 and Solaris 2.
5975 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
5976 Update GNU as, GNU ld requirements.
5977 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
5978 Document Sun Studio compiler download.
5979 Update and simplify as, ld recommendations.
5980 (Specific, *-*-solaris2.7): Note obsoletion, removal.
5982 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5984 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
5985 with_tune_32 to pentium4.
5987 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
5989 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
5991 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5993 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
5994 obsoletion, removal.
5996 Document GNU as requirement.
5997 Update configure requirements.
5998 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
5999 Recomment IRIX 6.5.18+.
6000 Document IDF/IDL requirement.
6001 Document GNU as requirement.
6002 Document GNU ld bootstrap failure.
6003 Remove freeware.sgi.com reference.
6005 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6007 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
6008 UNIX V4.0, V5.0 obsoletion, removal.
6009 Remove --with-gc=simple reference.
6010 Update VM requirements during bootstrap.
6011 Remove -oldas bootstrap description.
6012 Update binutils reference.
6013 Remove comparison failure note.
6015 2010-03-31 Richard Guenther <rguenther@suse.de>
6016 Zdenek Dvorak <ook@ucw.cz>
6017 Sebastian Pop <sebastian.pop@amd.com>
6020 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
6021 with multiple arguments.
6022 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
6024 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
6026 * graphite-dependences.c (print_pddr): Call print_pdr with an
6028 * graphite-poly.c (debug_pdr): Add an extra argument for the
6031 (print_pbb_domain): Same.
6033 (print_scop_context): Same.
6035 (print_cloog): Same.
6036 (debug_pbb_domain): Same.
6040 (debug_scop_context): Same.
6042 (debug_cloog): Same.
6043 (print_scop_params): Same.
6044 (debug_scop_params): Same.
6045 (print_iteration_domain): Same.
6046 (print_iteration_domains): Same.
6047 (debug_iteration_domain): Same.
6048 (debug_iteration_domains): Same.
6049 (print_scattering_function): Same.
6050 (print_scattering_functions): Same.
6051 (debug_scattering_function): Same.
6052 (debug_scattering_functions): Same.
6053 * graphite-poly.h (debug_pdr): Update declaration.
6055 (print_pbb_domain): Same.
6057 (print_scop_context): Same.
6059 (print_cloog): Same.
6060 (debug_pbb_domain): Same.
6064 (debug_scop_context): Same.
6066 (debug_cloog): Same.
6067 (print_scop_params): Same.
6068 (debug_scop_params): Same.
6069 (print_iteration_domain): Same.
6070 (print_iteration_domains): Same.
6071 (debug_iteration_domain): Same.
6072 (debug_iteration_domains): Same.
6073 (print_scattering_function): Same.
6074 (print_scattering_functions): Same.
6075 (debug_scattering_function): Same.
6076 (debug_scattering_functions): Same.
6078 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
6080 * graphite-poly.c (print_scattering_function_1): New.
6081 (print_scattering_function): Call it.
6082 (print_scop_params): Remove spaces at the end of lines.
6085 * graphite-poly.h (print_cloog): Declared.
6086 (debug_cloog): Declared.
6088 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
6090 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
6092 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
6093 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
6094 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
6095 to switch between adding the IV bump in loop->latch or in loop->header.
6097 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
6099 * graphite-poly.c (print_scattering_function): Pretty print following
6102 (print_pbb_domain): Same.
6103 (dump_gbb_cases): Same.
6104 (dump_gbb_conditions): Same.
6107 (print_scop_params): Same.
6108 (print_scop_context): Same.
6110 (print_pbb_body): New.
6111 (lst_indent_to): New.
6112 (print_lst): Start new lines with a #.
6113 * graphite-poly.h (pbb_bb): New.
6114 (pbb_index): Use pbb_bb.
6115 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
6117 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
6119 2010-03-31 Jakub Jelinek <jakub@redhat.com>
6121 * dwarf2out.c (size_of_die): For -gdwarf-4 use
6122 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
6123 and 0 instead of 1 for dw_val_class_flag.
6124 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
6125 dw_val_class_range_list, dw_val_class_loc_list,
6126 dw_val_class_lineptr and dw_val_class_macptr, use
6127 DW_FORM_flag_present for dw_val_class_flag and
6128 DW_FORM_exprloc for dw_val_class_loc.
6129 (output_die): For -gdwarf-4 print dw_val_class_loc
6130 size as uleb128 instead of 1 or 2 bytes and don't print
6131 anything for dw_val_class_flag.
6133 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
6134 instead of cselib_lookup following by tweaking locs->setting_insn.
6137 * cselib.c (cselib_process_insn): Clear cselib_current_insn
6138 even before returning from label, setjmp call or volatile asm
6141 2010-03-31 Richard Guenther <rguenther@suse.de>
6144 * cgraphunit.c (cgraph_output_in_order): Do not allocate
6145 temporary data on stack.
6147 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6149 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
6150 (PUSHSECTION_ASM_OP): Remove.
6151 (POPSECTION_ASM_OP): Remove.
6152 (PUSHSECTION_FORMAT): Remove.
6153 * config/sol2.h (PUSHSECTION_FORMAT): Define.
6154 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
6155 * config/sol2.c (solaris_output_init_fini): Use it.
6157 2010-03-31 Jie Zhang <jie@codesourcery.com>
6160 * opt-functions.awk (var_type_struct): Use signed char type
6161 for simple variables.
6163 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6165 * config/sol2.c: Include output.h.
6166 (solaris_assemble_visibility): New function.
6167 * config/t-sol2 (sol2.o): Add output.h dependency.
6168 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
6169 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
6172 2010-03-31 Jakub Jelinek <jakub@redhat.com>
6175 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
6176 V2SImode or XFmode on PRE_DEC.
6179 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
6182 2010-03-31 Jie Zhang <jie@codesourcery.com>
6185 * reload.h (caller_save_initialized_p): Declare.
6186 * toplev.c (backend_init_target): Don't call
6187 init_caller_save but set caller_save_initialized_p to false.
6188 * caller-save.c (caller_save_initialized_p): Define.
6189 (init_caller_save): Check caller_save_initialized_p.
6190 * ira.c (ira): Call init_caller_save if flag_caller_saves.
6192 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6195 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
6196 and soft-fp/t-softfp to tmake_file.
6197 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
6198 (LIBGCC2_TF_CEXT): Define.
6201 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
6204 * cselib.c (n_useless_values): Document handling of debug locs.
6205 (n_useless_debug_values, n_debug_values): New variables.
6206 (new_elt_loc_list): Don't add to debug values, keep count.
6207 (promote_debug_loc): New.
6208 (cselib_reset_table): Zero new variables.
6209 (entry_and_rtx_equal_p): Promote debug locs.
6210 (discard_useless_locs): Increment n_useless_debug_values for
6212 (remove_useless_values): Adjust n_useless_values and n_debug_values
6213 with n_useless_debug_values.
6214 (add_mem_for_addr): Promote debug locs.
6215 (cselib_lookup_mem): Likewise.
6216 (cselib_lookup_addr): Renamed to...
6217 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
6218 (cselib_log_lookup): ... this. Turn into...
6219 (cselib_lookup_addr): ... new wrapper.
6220 (cselib_lookup_from_insn): New.
6221 (cselib_invalidate_regno): Increment n_useless_debug_values for
6223 (cselib_invalidate_mem): Likewise.
6224 (cselib_process_insn): Take n_deleted and n_debug_values into
6225 account to guard remove_useless_value call.
6226 (cselib_finish): Zero n_useless_debug_values.
6227 * cselib.h (cselib_lookup_from_insn): Declare.
6228 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
6229 (sched_analyze_2): Likewise.
6231 2010-03-30 Jakub Jelinek <jakub@redhat.com>
6233 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
6235 (adjust_mems): Replace narrowing SUBREG of expression containing
6236 just PLUS, MINUS, MULT and ASHIFT of registers and constants
6237 with operations in the narrower mode.
6240 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
6241 regs_invalidated_by_call instead all call_used_reg_set registers.
6243 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
6246 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
6247 pointer comparisons with types_compatible_p.
6248 * tree-vect-stmts.c (vectorizable_call): Same.
6249 (vectorizable_condition): Same.
6251 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6253 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
6254 stack check if the mask would be zero.
6256 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
6257 Jack Howarth <howarth@bromo.med.uc.edu>
6259 * tree-profile.c (tree_init_ic_make_global_vars): Make static
6262 2010-03-30 Joseph Myers <joseph@codesourcery.com>
6265 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
6267 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
6268 Include ___unordxf2 and ___unordtf2.
6269 * config/i386/libgcc-glibc.ver: Do not define inheritance from
6272 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
6274 * config/lm32/t-lm32: New file.
6275 * config.gcc: Use the above file when targetting lm32.
6277 2010-03-28 Duncan Sands <baldrick@free.fr>
6279 * Makefile.in (PLUGIN_HEADERS): Add except.h.
6281 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
6284 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
6285 Improve vectorization cost model diagnostic.
6287 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
6290 * tree-vect-data-refs.c (vect_analyze_data_refs): When
6291 compute_data_dependences_for_loop returns false, early exit
6292 and output an extra diagnostic for the failed data reference
6295 2010-03-29 Richard Guenther <rguenther@suse.de>
6297 PR tree-optimization/43560
6298 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
6299 (can_sm_ref_p): Treat stores to readonly locations as trapping.
6301 2010-03-29 Jie Zhang <jie@codesourcery.com>
6304 * toplev.c (process_options): Set optimization_default_node
6305 and optimization_current_node.
6306 * opts.c (decode_options): Don't set optimization_default_node
6307 and optimization_current_node.
6309 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
6311 * config/rtems.h: Abandon -qrtems_debug.
6313 2010-03-28 Jan Hubicka <jh@suse.cz>
6315 PR tree-optimization/43505
6316 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
6317 map should not be copied.
6319 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6322 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
6323 cdtors, set DECL_PRESERVE_P.
6324 * ipa.c (cgraph_externally_visible_p): Return true if declaration
6327 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
6329 PR tree-optimization/43528
6330 * stor-layout.c (place_field): Check that constant fits into
6331 unsigned HWI when skipping calculation of MS bitfield layout.
6333 2010-03-27 Jan Hubicka <jh@suse.cz>
6336 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
6337 notice_global_symbol work.
6339 2010-03-27 Jakub Jelinek <jakub@redhat.com>
6341 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
6342 instead of dwarf2out_decl.
6343 (struct var_loc_node): Remove section_label field.
6344 (dwarf2out_function_decl): New function.
6345 (dwarf2out_var_location): Don't set section_label field.
6346 (dwarf2out_begin_function): Don't empty decl_loc_table here.
6348 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
6350 PR tree-optimization/43544
6351 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
6352 First argument for builtin vectorized function hook is now a
6353 tree to be able to distinguish between machine specific and
6355 * targhooks.c (default_builtin_vectorized_function): Ditto.
6356 * targhooks.h (default_builtin_vectorized_function): Ditto.
6357 * target.h (struct gcc_target): Ditto.
6358 * tree-vect-stmts.c (vectorizable_function): Ditto.
6359 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
6360 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
6363 2010-03-26 Joseph Myers <joseph@codesourcery.com>
6366 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
6367 nested binding iff it is a FUNCTION_DECL.
6368 (store_parm_decls_newstyle): Pass nested=true to bind for
6369 FUNCTION_DECLs amongst parameters.
6371 2010-03-26 Jakub Jelinek <jakub@redhat.com>
6373 * var-tracking.c (vt_expand_loc_callback): Don't run
6374 cselib_expand_value_rtx_cb in dummy mode if
6375 cselib_dummy_expand_value_rtx_cb returned false.
6377 * var-tracking.c (emit_note_insn_var_location): For one part
6378 notes with offset 0, don't add EXPR_LIST around the location.
6379 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
6380 add_location_or_const_value_attribute): Adjust for that change.
6383 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
6384 into first operand and location into second.
6385 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
6386 dw_cfi_oprnd_loc for DW_CFA_expression.
6387 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
6388 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
6389 assume first argument is regnum and second argument is location.
6391 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
6394 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
6395 of scratch register to DImode. Split to DImode comparison operator.
6396 Use SImode subreg of scratch register in the multiplication.
6397 (*cmp_sadd_sidi): Ditto.
6398 (*cmp_ssub_si): Ditto.
6399 (*cmp_ssub_sidi): Ditto.
6401 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
6404 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
6405 Remove invalid assert and wrong comment.
6407 2010-03-26 Jakub Jelinek <jakub@redhat.com>
6410 * flags.h (final_insns_dump_p): New extern.
6411 * final.c (final_insns_dump_p): New variable.
6412 (rest_of_clean_state): Set it before -fdump-final-insns=
6413 dumping, clear afterwards.
6414 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
6415 MEM_ALIAS_SET on MEMs.
6417 2010-03-26 David S. Miller <davem@davemloft.net>
6419 * configure.ac: Fix sparc GOTDATA_OP bug check.
6420 * configure: Rebuild.
6422 2010-03-26 Alan Modra <amodra@gmail.com>
6424 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
6426 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6428 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
6429 TLS_SECTION_ASM_FLAG.
6431 2010-03-25 Jakub Jelinek <jakub@redhat.com>
6434 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
6435 Clear first_function_block_is_cold.
6438 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
6439 argument if the argument is truth_value_p.
6441 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
6443 * config/rs6000/constraints.md: Update copyright year for my changes.
6446 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
6447 used in reg+reg addressing, swap registers.
6449 2010-03-24 Jakub Jelinek <jakub@redhat.com>
6452 * target.h (struct gcc_target): Add code_end hook.
6453 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
6455 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
6456 * toplev.c (compile_file): Call targetm.asm_out.code_end
6457 hook before unwind info/debug info output.
6458 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
6459 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
6460 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
6461 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
6462 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
6463 * config/i386/i386.c (ix86_file_end): Renamed to...
6464 (ix86_code_end): ... this. Make static. Don't call
6465 file_end_indicate_exec_stack. Emit unwind info using
6466 final_start_function/final_end_function.
6467 (darwin_x86_file_end): Remove.
6468 (TARGET_ASM_CODE_END): Define.
6469 * config/i386/i386.h (TARGET_ASM_FILE_END,
6470 NEED_INDICATE_EXEC_STACK): Don't define.
6471 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
6472 (TARGET_ASM_FILE_END): Define to darwin_file_end.
6473 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
6474 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
6477 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
6478 at the beginning and final_end_function at the end.
6479 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
6481 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6483 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
6484 and Sun as TLS syntax.
6485 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
6486 * configure: Regenerate.
6487 * config.in: Regenerate.
6488 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
6489 (default_elf_asm_named_section): Use it.
6490 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
6491 (i386_output_dwarf_dtprel): Likewise.
6492 (output_addr_const_extra): Likewise.
6493 (output_pic_addr_const): Lowercase @GOTTPOFF.
6494 (output_addr_const_extra): Likewise.
6495 (output_pic_addr_const): Lowercase @GOTNTPOFF.
6496 (output_addr_const_extra): Likewise.
6497 (output_pic_addr_const): Lowercase @INDNTPOFF.
6498 (output_addr_const_extra): Likewise.
6499 (output_pic_addr_const): Lowercase @NTPOFF.
6500 (output_addr_const_extra): Likewise.
6501 (output_pic_addr_const): Lowercase @TPOFF.
6502 (output_addr_const_extra): Likewise.
6503 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
6504 (*tls_global_dynamic_64): Likewise.
6505 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
6506 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
6508 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
6509 (ASM_OUTPUT_TLS_COMMON): Use it.
6510 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
6513 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
6514 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
6515 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
6516 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
6517 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
6518 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
6520 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6522 * config/i386/i386.c (override_options): Don't accept
6523 -mtls-dialect=sun any longer.
6524 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
6525 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
6526 (*tls_local_dynamic_base_32_sun): Likewise.
6527 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
6529 2010-03-24 Jakub Jelinek <jakub@redhat.com>
6532 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
6533 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
6536 * ira.c (adjust_cleared_regs): New function.
6537 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
6541 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
6543 * expr.c (expand_expr_real): Restore previous
6544 curr_insn_source_location and curr_insn_block after
6545 expand_expr_real_1 call.
6546 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
6547 instead of expand_expr_real_1.
6549 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
6551 PR rtl-optimization/43413
6552 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
6555 2010-03-22 James E. Wilson <wilson@codesourcery.com>
6558 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
6559 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
6561 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
6563 * config/i386/i386.c (ix86_target_string): Add -mfma.
6564 Fix a typo in comment.
6566 2010-03-22 Mike Stump <mikestump@comcast.net>
6569 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
6570 Don't overly align based upon packed packed fields.
6572 2010-03-22 Jason Merrill <jason@redhat.com>
6574 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
6575 Use () rather than [], and move before the element type.
6577 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6579 * doc/configfiles.texi (Configuration Files): Removed
6580 fixinc/Makefile*, intl/Makefile.*.
6581 * doc/makefile.texi: Fixed markup. Abstract from version
6582 control system used.
6583 (Makefile): Removed obsolete gcc/java/parse.y example.
6584 * doc/sourcebuild.texi: Likewise.
6585 (Top Level): Added config, gnattools, libdecnumber, libgcc,
6586 libgomp, libssp. Removed fastjar.
6587 (Miscellaneous Docs): Clarify location.
6588 Added COPYING3, COPYING3.LIB.
6589 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
6591 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6594 * config/i386/i386.c (x86_function_profiler)
6595 [!NO_PROFILE_COUNTERS]: Fix typo.
6596 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
6599 2010-03-22 Janis Johnson <janis187@us.ibm.com>
6600 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6602 * doc/sourcebuild.texi (Test Directives): Split into six
6603 subsections, with most of the current text in new subsections
6604 Directives, Selectors, and Final Actions.
6605 (Directives): Split list of test directives into multiple
6607 (Selectors): Describe use and syntax of selectors.
6608 (Effective-Target Keywords): Describe all existing keywords.
6609 (Add Options): Describe features for dg-add-options.
6610 (Require Support): Describe variants of dg-require-support.
6611 (Final Actions): Describe commands to use in dg-final.
6613 2010-03-22 Michael Matz <matz@suse.de>
6616 * recog.c (validate_replace_rtx_group): Replace also in
6617 REG_EQUAL and REG_EQUIV notes.
6619 2010-03-22 Richard Guenther <rguenther@suse.de>
6621 PR tree-optimization/43390
6622 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
6623 sure vector extracts are type correct.
6625 2010-03-22 Richard Guenther <rguenther@suse.de>
6628 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
6629 x * sqrt (x) even when optimizing for size if the target
6630 has native support for sqrt.
6632 2010-03-22 Jakub Jelinek <jakub@redhat.com>
6634 * varasm.c (make_decl_rtl_for_debug): Also clear
6635 flag_mudflap for the duration of make_decl_rtl call.
6638 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
6639 locs from preserved VALUEs.
6641 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6644 * pa.md (movmemsi): Set align to one if zero.
6645 (movmemdi): Likewise.
6647 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
6650 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
6651 with their corresponding prologue pushes.
6653 2010-03-20 Andrew Pinski <pinskia@gmail.com>
6656 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
6657 at the begining or end.
6658 (spu_expand_epilogue): Likewise.
6660 2010-03-20 Richard Guenther <rguenther@suse.de>
6662 PR rtl-optimization/43438
6663 * combine.c (make_extraction): Properly zero-/sign-extend an
6664 extraction of the low part of a CONST_INT. Also handle
6667 2010-03-19 Mike Stump <mikestump@comcast.net>
6669 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
6670 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
6671 (override_options): Use SUBTARGET32_DEFAULT_CPU.
6673 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
6676 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
6679 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
6681 PR rtl-optimization/42258
6682 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
6683 use that may match DEF.
6686 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
6687 the cost of loading the constant rather than assuming
6689 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
6690 outer code is AND, do the same tests as the andsi3 expander and
6691 return COSTS_N_INSNS (1) if and is cheap.
6693 * optabs.c (avoid_expensive_constant): Fix formatting.
6695 2010-03-19 Michael Matz <matz@suse.de>
6698 * attribs.c (decl_attributes): When rebuilding a function pointer
6699 type use the same qualifiers as the original pointer type.
6701 2010-03-19 Martin Jambor <mjambor@suse.cz>
6703 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
6704 and is_gimple_ip_invariant_address.
6706 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6709 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6711 * config/arm/arm.c (arm_override_options): Turn off
6712 flag_dwarf2_cfi_asm for AAPCS variants.
6714 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6717 * config/arm/arm.c (emit_multi_reg_push): Update comments.
6718 Use PRE_MODIFY instead of PRE_DEC.
6719 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
6720 (vfp_emit_fstmd): Likewise.
6722 2010-03-19 Michael Matz <matz@suse.de>
6725 * builtins.c (expand_builtin_interclass_mathfn,
6726 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
6729 2010-03-19 Richard Guenther <rguenther@suse.de>
6731 PR tree-optimization/43415
6732 * tree-ssa-pre.c (phi_translate): Split out worker to ...
6733 (phi_translate_1): ... this.
6734 (phi_translate): Move all caching here. Cache all NARY
6735 and REFERENCE translations.
6737 2010-03-19 David S. Miller <davem@davemloft.net>
6739 With help from Eric Botcazou.
6740 * config/sparc/sparc.c: Include dwarf2out.h.
6741 (emit_pic_helper): Delete.
6742 (pic_helper_symbol_name): Delete.
6743 (pic_helper_emitted_p): Delete.
6744 (pic_helper_needed): New.
6745 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
6746 (get_pc_thunk_name): New.
6747 (load_pic_register): Remove 'delay_pic_helper' arg. Use
6748 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
6749 Set pic_helper_needed to true. Don't call emit_pic_helper.
6750 (sparc_expand_prologue): Update load_pic_register call.
6751 (sparc_output_mi_thunk): Likewise.
6752 (sparc_file_end): Emit a hidden comdat symbol for the PIC
6753 thunk if possible. Output CFI information as needed.
6755 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
6756 Jack Howarth <howarth@bromo.med.uc.edu>
6759 * config/i386/i386.h: Fix ABI on darwin x86-32.
6761 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
6763 * tree.h: Declare make_decl_rtl_for_debug.
6764 * varasm.c (make_decl_rtl_for_debug): New.
6765 * dwarf2out.c (rtl_for_decl_location): Call it.
6766 * cfgexpand.c (expand_debug_expr): Call it.
6768 2010-03-18 Jakub Jelinek <jakub@redhat.com>
6771 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
6775 * var-tracking.c (vt_init_cfa_base): Do nothing if
6776 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
6778 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
6781 * var-tracking.c (canonicalize_vars_star): New.
6782 (dataflow_post_merge_adjust): Use it.
6784 2010-03-18 Jakub Jelinek <jakub@redhat.com>
6787 * var-tracking.c (non_suitable_const): New function.
6788 (add_uses): For DEBUG_INSNs with constants, don't record any
6789 value, instead just the constant value itself.
6790 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
6791 is not VAR_LOC_UNKNOWN_P, set var to the constant.
6792 (emit_notes_in_bb): Likewise.
6793 (emit_note_insn_var_location): For onepart variables if
6794 cur_loc is a VOIDmode constant, use DECL_MODE.
6796 2010-03-18 Martin Jambor <mjambor@suse.cz>
6799 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
6800 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
6801 all non-clones. Moved call redirection...
6802 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
6803 (cgraph_materialize_all_clones): Dispose of all
6804 combined_args_to_skip bitmaps.
6805 (verify_cgraph_node): Do not check for edges pointing to wrong
6806 nodes in inline clones.
6807 * tree-inline.c (copy_bb): Call
6808 cgraph_redirect_edge_call_stmt_to_callee.
6809 * ipa.c (cgraph_remove_unreachable_nodes): Call
6810 cgraph_node_remove_callees even when there are used clones.
6812 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
6814 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
6816 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
6819 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
6822 2010-03-18 Michael Matz <matz@suse.de>
6825 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
6826 into sqrt(x) if we need to preserve signed zeros.
6828 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
6829 Eric Botcazou <ebotcazou@adacore.com>
6831 PR rtl-optimization/43360
6832 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
6833 note if we don't know its invariant status.
6835 2010-03-18 Michael Matz <matz@suse.de>
6837 PR tree-optimization/43402
6838 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
6839 PHI chains of ssa names registered for update.
6841 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
6844 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
6845 non-offsettable and pre_modify update addressing.
6846 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
6847 and "2" alternatives "#".
6848 (*movdd_softfloat32): Make all alternatives "#";
6849 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
6850 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
6851 (*movdf_softfloat32): Make all alternatives "#";
6852 (movdi): Use the new DIFD mode iterator to create a common splitter
6853 for movdi, movdf and movdd patterns.
6855 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
6857 * common.opt (dumpdir): Remove redundant tab.
6859 2010-03-17 Martin Jambor <mjambor@suse.cz>
6861 PR tree-optimization/43347
6862 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
6863 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
6865 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
6867 PR rtl-optimization/42216
6868 * regrename.c (create_new_chain): New function, broken out from...
6869 (scan_rtx_reg): ... here. Call it. Handle the case where we are
6870 appending a use to an empty chain.
6871 (build_def_use): Remove previous changes that convert OP_INOUT to
6872 OP_OUT operands; instead detect the case where an OP_INOUT operand
6873 uses a previously untracked register and create an empty chain for it.
6875 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6877 * doc/extend.texi (Function Attributes): Rewrite unfinished
6878 sentence in ms_abi documentation.
6880 2010-03-17 Alan Modra <amodra@gmail.com>
6882 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
6883 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
6884 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
6885 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
6887 2010-03-16 Richard Henderson <rth@redhat.com>
6890 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
6891 (lower_try_finally): Save and restore eh_seq around the expansion
6894 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
6896 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
6897 statements before splitting block.
6899 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6901 * doc/sourcebuild.texi (Testsuites): Fix markup.
6902 Use pathnames relative to gcc/testsuite.
6903 (Test Directives): Move description of how timeout is determined.
6904 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
6905 (C Tests): Correct gcc.misc-tests directory.
6906 Framework tests now live in gcc.test-framework.
6908 2010-03-16 Richard Guenther <rguenther@suse.de>
6911 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
6912 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
6914 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
6915 Alexandre Oliva <aoliva@redhat.com>
6917 PR tree-optimization/42917
6918 * lambda-code.c (remove_iv): Skip debug statements.
6919 (lambda_loopnest_to_gcc_loopnest): Likewise.
6920 (not_interesting_stmt): Debug statements are not interesting.
6922 2010-03-16 Jakub Jelinek <jakub@redhat.com>
6926 * cselib.c (cselib_preserve_constants,
6927 cfa_base_preserved_val): New static variables.
6928 (preserve_only_constants): New function.
6929 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
6930 clear its REG_VALUES. If cselib_preserve_constants, don't
6931 empty the whole hash table, but preserve there VALUEs with constants,
6932 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
6933 (cselib_preserve_cfa_base_value): New function.
6934 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
6935 (cselib_init): Change argument to int bitfield. Set
6936 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
6938 (cselib_finish): Clear cselib_preserve_constants and
6939 cfa_base_preserved_val.
6940 * cselib.h (enum cselib_record_what): New enum.
6941 (cselib_init): Change argument to int.
6942 (cselib_preserve_cfa_base_value): New prototype.
6943 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
6944 * dse.c (dse_step1): Likewise.
6945 * cfgcleanup.c (thread_jump): Likewise.
6946 * sched-deps.c (sched_analyze): Likewise.
6947 * gcse.c (local_cprop_pass): Likewise.
6948 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
6949 If FN is non-NULL, call the callback always and whenever it returns
6950 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
6951 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
6952 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
6953 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
6954 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
6955 * var-tracking.c: Include recog.h.
6956 (bb_stack_adjust_offset): Remove.
6957 (vt_stack_adjustments): Don't call it, instead just gather the
6958 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
6959 (adjust_stack_reference): Remove.
6960 (compute_cfa_pointer): New function.
6961 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
6962 (struct adjust_mem_data): New type.
6963 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
6965 (get_address_mode): New function.
6966 (replace_expr_with_values): Use it.
6967 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
6968 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
6969 (adjust_sets): Remove.
6970 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
6971 Use get_address_mode.
6972 (get_adjusted_src): Remove.
6973 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
6974 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
6975 (add_with_sets): Don't call adjust_sets.
6976 (fp_setter, vt_init_cfa_base): New functions.
6977 (vt_initialize): Change return type to bool. Move most of pool etc.
6978 initialization to the beginning of the function from end. Pass
6979 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
6980 If !frame_pointer_needed, call vt_stack_adjustment before mos
6981 vector is filled, call vt_init_cfa_base if argp/framep has been
6982 eliminated to sp. If frame_pointer_needed and argp/framep has
6983 been eliminated to hard frame pointer, set
6984 hard_frame_pointer_adjustment and call vt_init_cfa_base after
6985 encountering fp setter in the prologue. For MO_ADJUST, call
6986 log_op_type before pusing the op into mos vector, not afterwards.
6987 Call adjust_insn before cselib_process_insn/add_with_sets,
6988 call cancel_changes (0) afterwards.
6989 (variable_tracking_main_1): Adjust for vt_initialize calling
6990 vt_stack_adjustments and returning whether it succeeded or not.
6992 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
6994 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
6997 2010-03-15 Jakub Jelinek <jakub@redhat.com>
6999 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
7001 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
7002 drap_reg has not been set.
7004 2010-03-15 Michael Matz <matz@suse.de>
7007 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
7008 use it to expand block copies.
7009 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
7010 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
7011 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
7013 2010-03-15 Richard Guenther <rguenther@suse.de>
7015 PR tree-optimization/43367
7016 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
7019 2010-03-15 Richard Guenther <rguenther@suse.de>
7021 PR tree-optimization/43317
7022 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
7024 2010-03-15 Martin Jambor <mjambor@suse.cz>
7026 PR tree-optimization/43141
7027 * tree-sra.c (create_abstract_origin): New function.
7028 (modify_function): Call create_abstract_origin.
7030 2010-03-15 Chris Demetriou <cgd@google.com>
7032 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
7035 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7038 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
7039 call insert_out_of_ssa_copy for default definitions.
7041 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7043 * graphite-clast-to-gimple.c (my_long_long): Defined.
7044 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
7045 * graphite-sese-to-poly.c (my_long_long): Defined.
7046 (scop_ivs_can_be_represented): Use it.
7048 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7050 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
7051 graphite-max-bbs-per-function, and loop-block-tile-size.
7052 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
7054 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
7056 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7058 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
7059 forward declaration.
7060 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
7061 (add_upper_bounds_from_estimated_nit): New.
7062 (build_loop_iteration_domains): Use it.
7064 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7066 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
7068 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7071 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
7072 should be an INTEGER_CST. Also handle CASE_CONVERT.
7074 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7076 * graphite.c (graphite_initialize): To bound the number of bbs per
7077 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
7078 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
7079 * doc/invoke.texi: Document it.
7081 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7083 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
7084 * graphite-sese-to-poly.h (build_poly_scop): Same.
7086 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
7088 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
7089 the number of parameters in the scop. Use as an upper bound
7090 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
7091 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
7092 * doc/invoke.texi: Document it.
7094 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
7096 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
7097 * doc/c-tree.texi: Remove.
7098 * doc/generic.texi: Merge c-tree.texi here.
7099 * doc/gccint.texi (Trees): Remove menu entry.
7100 (c-tree.texi): Remove @include.
7101 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
7102 * doc/languages.texi (Reading RTL): Ditto.
7104 2010-03-12 Steve Ellcey <sje@cup.hp.com>
7107 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
7109 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
7112 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
7113 code added to work around reload clobbering CONST insns.
7115 2010-03-12 Jakub Jelinek <jakub@redhat.com>
7117 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
7118 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
7119 (cselib_preserve_only_values): Remove retain argument, don't
7120 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
7121 * cselib.h (cselib_preserve_only_values): Remove retain argument.
7122 * var-tracking.c (micro_operation): Move insn field before union.
7123 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
7124 (struct variable_tracking_info_def): Remove n_mos field, change
7125 mos into a vector of micro_operations.
7126 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
7127 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
7128 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
7129 changing into a vector.
7130 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
7131 come before all other uops generated by add_stores.
7132 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
7134 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
7135 a vector. Run just one pass over the bbs instead of separate counting
7136 and computation phase.
7137 (vt_finalize): Free VTI (bb)->mos vector instead of array.
7140 * tree-inline.c (remap_decls): Put old_var rather than origin_var
7141 into *nonlocalized_list vector.
7142 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
7143 even if origin is non-NULL.
7144 (gen_variable_die): Likewise.
7145 (process_scope_var): Don't change origin.
7146 (gen_decl_die): Likewise.
7147 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
7148 before adding new edges instead of after it, fix moving over
7151 2010-03-11 David S. Miller <davem@davemloft.net>
7153 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
7155 * configure: Rebuild.
7157 2010-03-11 Martin Jambor <mjambor@suse.cz>
7159 PR tree-optimization/43257
7160 * tree.c (assign_assembler_name_if_neeeded): New function.
7161 (free_lang_data_in_cgraph): Assembler name assignment moved to the
7163 * tree.h (assign_assembler_name_if_neeeded): Declare.
7164 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
7165 the function if needed.
7167 2010-03-11 Chris Demetriou <cgd@google.com>
7169 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
7170 include/stdint-gcc.h, and include/stdint.h world-readable.
7172 2010-03-11 Richard Guenther <rguenther@suse.de>
7174 PR tree-optimization/43255
7175 * tree-vrp.c (process_assert_insertions_for): Do not insert
7176 asserts for trivial conditions.
7178 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7180 PR tree-optimization/43280
7181 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
7182 generation. Move calculation of size out of the if branch.
7183 (find_bswap): Modify compare number generation.
7185 2010-03-11 Richard Guenther <rguenther@suse.de>
7188 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
7189 (input_gimple_stmt): Fixup handled component types during
7190 operand read. Also fix up decls in ADDR_EXPRs.
7192 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
7194 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
7195 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
7197 2010-03-10 Jan Hubicka <jh@suse.cz>
7200 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
7201 * varasm.c (get_variable_section): Don't do that here...
7202 (make_decl_rtl): ... and here.
7203 (do_assemble_alias): Produce decl RTL.
7204 (assemble_alias): Likewise.
7206 2010-03-10 Jakub Jelinek <jakub@redhat.com>
7209 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
7210 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
7212 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
7213 (based_loc_descr): Only express drap or vdrap regno based expressions
7214 using DW_OP_fbreg when not optimizing.
7215 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
7216 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
7217 REG_CFA_SET_VDRAP note.
7219 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
7221 PR tree-optimization/43236
7222 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
7223 error in calculation of base address in reverse iteration case.
7224 (generate_builtin): Take number of latch executions if the statement
7227 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
7230 * tree-eh.c: Include pointer-set.h.
7231 (lower_eh_dispatch): Filter out duplicate case labels and
7232 remove the unneeded edge when the label is unused. Return
7233 true when some edges are removed.
7234 (execute_lower_eh_dispatch): When any lowering resulted in
7235 removing an edge, also delete unreachable blocks.
7237 2010-03-10 Jakub Jelinek <jakub@redhat.com>
7240 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
7241 UNSPEC_MACHOPIC_OFFSET.
7243 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
7246 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
7247 (m68k_delegitimize_address): New function.
7249 2010-03-09 Jakub Jelinek <jakub@redhat.com>
7252 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
7255 * var-tracking.c (adjust_sets): New function.
7256 (count_with_sets, add_with_sets): Use it.
7257 (get_adjusted_src): New inline function.
7258 (add_stores): Use it.
7261 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
7262 call cselib_dummy_expand_value_rtx_cb instead of
7263 cselib_expand_value_rtx_cb.
7266 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
7267 * config/i386/i386.c: Include debug.h and dwarf2out.h.
7268 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
7269 and .cfi_endproc around the pic thunks.
7270 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
7271 all queued unwind info register saves are saved before the call.
7272 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
7273 considered as sp-=4 for unwind info and the pop as sp+=4 which
7274 also clobbers dest, but doesn't actually restore it.
7277 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
7278 RTX_FRAME_RELATED_P.
7280 2010-03-09 Jie Zhang <jie@codesourcery.com>
7282 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
7283 whitespaces in output template.
7285 2010-03-09 Jie Zhang <jie@codesourcery.com>
7287 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
7290 2010-03-08 Jakub Jelinek <jakub@redhat.com>
7292 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
7293 builtins.exp in a separate job.
7295 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7297 * graphite-sese-to-poly.c (add_param_constraints): Use
7298 lower_bound_in_type and upper_bound_in_type.
7300 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7302 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
7303 instead of unsigned_type_node.
7305 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7306 Reza Yazdani <reza.yazdani@amd.com>
7309 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
7310 on pointer type parameters.
7312 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
7316 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
7317 handle conversions from pointer to integers.
7318 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
7319 induction variable, to be able to work with code generated by CLooG.
7320 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
7321 (build_poly_scop): Bail out if we cannot codegen a loop.
7323 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
7325 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
7326 code generation with gloog_error.
7328 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7330 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
7331 Call fold_convert on all the returned values.
7332 (expand_scalar_variables_expr): Pass to
7333 expand_scalar_variables_ssa_name the type of the resulting expression.
7335 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7337 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
7338 ppl_min_for_le_pointset.
7339 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
7340 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
7342 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7344 * graphite-dependences.c (map_into_dep_poly): Removed.
7345 (dependence_polyhedron_1): Use combine_context_id_scat.
7347 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7349 * graphite-poly.h (struct poly_scattering): Add layout documentation.
7350 (struct poly_bb): Same.
7351 (combine_context_id_scat): New.
7353 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7356 * sese.c (name_defined_in_loop_p): Return false for default
7359 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7361 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
7362 and clean up the logic.
7364 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
7366 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
7369 2010-03-08 Jakub Jelinek <jakub@redhat.com>
7371 * var-tracking.c (remove_cselib_value_chains): Define only for
7373 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
7374 delete_slot_part, emit_notes_for_differences_1): Don't call
7375 remove_cselib_value_chains here.
7376 (set_slot_part, emit_notes_for_differences_2): Don't call
7377 add_cselib_value_chains here.
7378 (preserved_values): New vector.
7379 (preserve_value): New function.
7380 (add_uses, add_stores, vt_add_function_parameters): Use it
7381 instead of cselib_preserve_value.
7382 (changed_values_stack): New vector.
7383 (check_changed_vars_0): New function.
7384 (check_changed_vars_1, check_changed_vars_2): Use it.
7385 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
7386 changed_values_stack VALUEs.
7387 (vt_emit_notes): For all preserved_values call
7388 add_cselib_value_chains. If ENABLE_CHECKING call
7389 remove_cselib_value_chains before verifying value_chains is empty.
7390 Initialize and free changed_values_stack.
7391 (vt_initialize): Initialize preserved_values.
7392 (vt_finalize): Free preserved_values.
7394 2010-03-08 Richard Guenther <rguenther@suse.de>
7396 PR tree-optimization/43269
7397 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
7400 2010-03-08 Martin Jambor <mjambor@suse.cz>
7402 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
7403 (ipa_is_param_called): Removed.
7404 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
7405 (ipa_print_node_params): Do not print the called flag.
7406 (ipa_write_node_info): Do not stream the called flag.
7407 (ipa_read_node_info): Likewise.
7409 2010-03-07 Jakub Jelinek <jakub@redhat.com>
7412 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
7413 * cselib.c (struct expand_value_data): Add dummy field.
7414 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
7416 (cselib_dummy_expand_value_rtx_cb): New function.
7417 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
7419 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
7420 * var-tracking.c: Include pointer-set.h.
7421 (variable): Change n_var_parts to char from int. Add
7422 cur_loc_changed and in_changed_variables fields.
7423 (variable_canonicalize): Remove.
7424 (shared_var_p): New inline function.
7425 (unshare_variable): Maintain cur_loc_changed and
7426 in_changed_variables fields. If var was in changed_variables,
7427 replace it there with new_var. Just copy cur_loc instead of
7428 resetting it to something else.
7429 (variable_union): Don't recompute cur_loc. Use shared_var_p.
7430 (dataflow_set_union): Don't call variable_canonicalize.
7431 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
7432 of their DEBUG_EXPR_TREE_DECLs.
7433 (canonicalize_loc_order_check): Verify that cur_loc is NULL
7434 and in_changed_variables and cur_loc_changed is false.
7435 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
7436 and cur_loc_changed. Don't update cur_loc here.
7437 (variable_merge_over_src): Don't call variable_canonicalize.
7438 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
7439 removing loc that is equal to cur_loc, clear cur_loc,
7440 set cur_loc_changed and ensure variable_was_changed is called.
7441 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
7442 compare pointers in cur_loc check, if it is equal to loc,
7443 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
7444 (variable_different_p): Remove compare_current_location argument,
7445 don't compare cur_loc.
7446 (dataflow_set_different_1): Adjust variable_different_p caller.
7447 (variable_was_changed): If dv had some var in changed_variables
7448 already, reset in_changed_variables flag for it and propagate
7449 cur_loc_changed over to the new variable. On empty var
7450 always set cur_loc_changed. Set in_changed_variables on whatever
7451 var is added to changed_variables.
7452 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
7453 Use shared_var_p. When removing loc that is equal to cur_loc,
7454 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
7455 end, don't set it to something else, just call variable_was_changed.
7456 (delete_slot_part): Use shared_var_p. When cur_loc equals to
7457 loc being removed, clear cur_loc and set cur_loc_changed.
7458 Set cur_loc_changed if all locations have been removed.
7459 (struct expand_loc_callback_data): New type.
7460 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
7461 allocated. Always create SUBREGs if simplify_subreg failed.
7462 Prefer to use cur_loc, when that fails and still in
7463 changed_variables (and seen first time) recompute it. Set
7464 cur_loc_changed of variables which had to change cur_loc and
7465 compute elcd->cur_loc_changed if any of the subexpressions used
7466 had to change cur_loc.
7467 (vt_expand_loc): Adjust to pass arguments in
7468 expand_loc_callback_data structure.
7469 (vt_expand_loc_dummy): New function.
7470 (emitted_notes): New variable.
7471 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
7472 that weren't used for any other decl in current
7473 emit_notes_for_changes call call vt_expand_loc_dummy to update
7474 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
7475 first loc_chain location if NULL before. Always use just
7476 cur_loc instead of first loc_chain location. When cur_loc_changed
7477 is false, when not --enable-checking=rtl just don't emit any note.
7478 When rtl checking, compute the note and assert it is the same
7479 as previous note. Clear cur_loc_changed and in_changed_variables
7480 at the end before removing from changed_variables.
7481 (check_changed_vars_3): New function.
7482 (emit_notes_for_changes): Traverse changed_vars to call
7483 check_changed_vars_3 on each changed var.
7484 (emit_notes_for_differences_1): Clear cur_loc_changed and
7485 in_changed_variables. Recompute cur_loc of new_var.
7486 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
7487 (vt_emit_notes): Initialize and destroy emitted_notes.
7489 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
7491 PR rtl-optimization/42220
7492 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
7493 Use verify_reg_tracked to determine if we should use OP_OUT rather
7495 (build_def_use): If we see an in-out operand for a register that we
7496 know nothing about, treat is an output if possible, fail the block if
7499 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
7502 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
7505 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
7508 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
7509 uses of relevant DEFs that are dead outside the loop too.
7511 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
7513 * var-tracking.c (dataflow_set_merge): Swap src and src2.
7515 2010-01-13 Jakub Jelinek <jakub@redhat.com>
7517 * var-tracking.c (values_to_unmark): New variable.
7518 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
7519 values_to_unmark vector. Moved body to...
7520 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
7521 instead queue it into values_to_unmark vector.
7522 (vt_find_locations): Free values_to_unmark vector.
7524 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
7526 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
7527 (site.exp): Export them when plugins are enabled.
7529 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
7532 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
7534 (chrec_fold_multiply): Same.
7536 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
7539 * c-decl.c (build_compound_literal): Return early if init is
7542 2010-03-04 Martin Jambor <mjambor@suse.cz>
7544 PR tree-optimization/43164
7545 PR tree-optimization/43191
7546 * tree-sra.c (type_consists_of_records_p): Reject records with
7547 zero-size bit-fields at the end.
7549 2010-03-04 Mike Stump <mikestump@comcast.net>
7551 * Makefile.in (TAGS): Remove *.y.
7553 2010-03-04 Richard Guenther <rguenther@suse.de>
7555 PR tree-optimization/40761
7556 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
7558 (my_rev_post_order_compute): New function.
7559 (init_pre): Call it.
7561 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
7564 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
7565 decrease the cost of an IV candidate when the cost is infinite.
7567 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7569 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
7570 Use '3DNow!' for the extension of that name, ensure normal space
7572 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
7574 2010-03-03 Jeff Law <law@redhat.com>
7576 * PR middle-end/32693
7577 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
7578 than gen_rtx_SUBREG.
7579 (extract_bit_field_1): Likewise.
7581 2010-03-03 Janis Johnson <janis187@us.ibm.com>
7583 * doc/sourcebuild.texi (Test directives): Document that arguments
7584 include-opts and exclude-opts are now optional for dg-skip-if,
7585 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
7587 2010-03-03 Jason Merrill <jason@redhat.com>
7590 * cgraph.h (varpool_node): Add extra_name field.
7591 * varpool.c (varpool_extra_name_alias): New.
7592 (varpool_assemble_decl): Emit extra name aliases.
7593 (varpool_mark_needed_node): Look past an extra name alias.
7594 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
7595 * lto-streamer-in.c (lto_input_tree): Read it.
7596 * lto-streamer-out.c (output_unreferenced_globals): Write it.
7598 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
7600 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
7601 (sparc*-*-solaris2*): ...this.
7603 2010-03-03 Jakub Jelinek <jakub@redhat.com>
7606 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
7607 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
7608 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
7609 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
7612 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
7613 fallthrough to default handling, just with want_address 0 instead of 2.
7614 For single element lists, add_AT_loc directly, otherwise create an
7615 artificial variable DIE and stick location list to it.
7618 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
7619 (VAL_EXPR_HAS_REVERSE): Define.
7620 (reverse_op): New function.
7621 (add_stores): For reversible operations add an extra MO_VAL_USE.
7623 2010-03-02 Jason Merrill <jason@redhat.com>
7625 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
7627 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
7629 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
7630 (sparc64-*-linux*): Likewise.
7631 (sparc64-*-solaris2*): Include assembler files before linker ones.
7632 (sparc-*-solaris2*): Simplify and reorder to match previous case.
7633 * config/sparc/gas.h: Delete.
7634 * config/sparc/sol2-64.h: Add copyright notice.
7635 * config/sparc/sol2-gas-bi.h: Likewise.
7636 * config/sparc/sol2-gld.h: Likewise.
7637 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
7638 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
7639 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
7640 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
7641 (sparc_elf_asm_named_section): Rename into...
7642 (sparc_solaris_elf_asm_named_section): ...this. Always define.
7644 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
7646 * config/alpha/alpha.c (override_options): Fix -mtune error message.
7648 2010-03-02 Jeff Law <law@redhat.com>
7651 * reload1.c (rtx_p, substitute_stack): Declare.
7652 (substitute): Record addresses of changed rtxs.
7653 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
7654 Restore the original rtx when complete.
7655 (reload): Free subsitute_stack when complete.
7657 2010-03-02 Janis Johnson <janis187@us.ibm.com>
7659 * doc/gccint.texi (menu): Add Testsuites as a chapter.
7660 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
7662 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
7663 LTO Testing, gcov Testing, profopt Testing, compat Testing,
7664 Torture Tests): Change from subsection to section.
7666 2010-03-02 Jakub Jelinek <jakub@redhat.com>
7667 Steven Bosscher <steven@gcc.gnu.org>
7669 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
7672 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
7675 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
7676 the assignment from the new induction variable to the assignment
7677 of the value from the original loop PHI function.
7679 2010-03-01 Janis Johnson <janis187@us.ibm.com>
7680 Daniel Jacobowitz <dan@codesourcery.com>
7682 * doc/sourcebuild.texi (Test directives): Clarify options to
7685 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7687 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
7688 Disable cfi directives unless GCC and gas agree on using read-only
7689 .eh_frame sections for 64-bit.
7690 * configure: Regenerate.
7692 2010-03-01 Richard Guenther <rguenther@suse.de>
7694 PR tree-optimization/43220
7695 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
7696 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
7698 2010-03-01 Richard Guenther <rguenther@suse.de>
7699 Martin Jambor <mjambor@suse.cz>
7702 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
7703 gimplified parameters.
7705 2010-03-01 Christian Bruel <christian.bruel@st.com>
7707 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
7709 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7711 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
7713 2010-03-01 Richard Guenther <rguenther@suse.de>
7716 * expr.c (expand_assignment): Use the alias-oracle to tell
7717 if the rhs aliases the result decl.
7719 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7722 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
7723 to sol_gt_pch_get_address.
7724 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
7725 64-bit, SPARC and x86.
7726 (sol_gt_pch_get_address): New function.
7728 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
7730 * toplev.h (inform_n, error_n): Declare.
7731 * diagnostic.c (inform_n, error_n): New function.
7733 2010-03-01 Jakub Jelinek <jakub@redhat.com>
7735 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
7736 has no rtl yet when processing local_decls, queue it and recheck
7737 if deferred stack allocation hasn't assigned it rtl.
7739 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
7741 * config/sh/sh.c (unspec_bbr_uid): New.
7742 (gen_block_redirect): Use it instead of INSN_UID.
7743 (gen_far_branch): Likewise.
7745 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
7747 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
7748 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
7750 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7752 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
7753 (Warning Options): -Wno-conversion-null is valid for
7754 Objective-C++ as well.
7755 * doc/tm.texi (Named Address Spaces): Likewise.
7756 * doc/plugins.texi (Plugins): Replace TABs with spaces.
7757 * doc/tree-ssa.texi (Tree SSA): Likewise.
7759 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
7762 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
7763 by default. Don't set the default arch for
7764 i[34567]86-*-darwin*|x86_64-*-darwin*.
7766 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
7769 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
7770 default. Set the default 32bit/64bit archs with $with_arch
7771 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
7773 2010-02-27 Richard Guenther <rguenther@suse.de>
7775 PR tree-optimization/43186
7776 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
7777 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
7778 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
7779 unroller iterations.
7781 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
7783 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
7784 required and i[34567]86-*-* targets don't support 64bit ISA.
7786 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
7789 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
7792 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
7794 * config.gcc: Set the default arch at least to Prescott for
7795 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
7796 if SSE math is enabled.
7798 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
7800 * diagnostic.c (diagnostic_initialize): Update.
7801 (diagnostic_report_diagnostic): Test inhibit_notes_p for
7803 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
7804 (diagnostic_inhibit_notes): New.
7805 * toplev.c (process_options): inhibit notes with -fcompare-debug.
7807 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
7810 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
7811 * doc/standards.texi: Likewise.
7812 * doc/extend.texi: Likewise.
7813 * doc/trouble.texi: Likewise.
7814 * doc/cppopts.texi: Likewise.
7815 * doc/install.texi: Likewise.
7816 * c.opt (std=c90,std=gnu90): New options.
7817 * c-opts.c (c_common_handle_option): Handle them.
7819 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
7822 * c-decl.c (undeclared_variable): Use an informative note.
7824 2010-02-26 Richard Guenther <rguenther@suse.de>
7826 PR tree-optimization/43186
7827 * gimple.h (gimple_fold): Remove.
7828 * gimple.c (gimple_fold): Remove. Inline into single user ...
7829 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
7830 Try harder for conditions.
7832 2010-02-26 Jakub Jelinek <jakub@redhat.com>
7835 * function.c (used_types_insert): Don't skip through named pointer
7836 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
7837 and it is different from the main variant's type.
7839 2010-02-26 Nick Clifton <nickc@redhat.com>
7841 * config/rx/rx.md (sminsi3): Remove bogus alternative.
7843 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
7845 * config.gcc: Support --with-fpmath=sse for x86.
7847 * config/i386/ssemath.h: New.
7849 * doc/install.texi (--with-fpmath=sse): Documented.
7851 2010-02-26 Richard Guenther <rguenther@suse.de>
7853 PR tree-optimization/43188
7854 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
7855 vector types of over-aligned element type.
7857 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
7860 * config/i386/i386.c (expand_vec_perm_blend): Use correct
7861 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
7863 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7865 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
7867 2010-02-26 Jakub Jelinek <jakub@redhat.com>
7869 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
7870 * var-tracking.c: Include diagnostic.h.
7871 (debug_dv): New function.
7872 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
7875 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
7876 (add_value_chain, add_value_chains, remove_value_chain,
7877 remove_value_chains): Handle DEBUG_EXPRs.
7878 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
7881 * regcprop.c (struct queued_debug_insn_change): New type.
7882 (struct value_data_entry): Add debug_insn_changes field.
7883 (struct value_data): Add n_debug_insn_changes field.
7884 (debug_insn_changes_pool): New variable.
7885 (free_debug_insn_changes, apply_debug_insn_changes,
7886 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
7887 (kill_value_one_regno): Call free_debug_insn_changes if needed.
7888 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
7890 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
7892 (copyprop_hardreg_forward_1): Don't call apply_change_group for
7893 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
7894 changes, call cprop_find_used_regs via note_stores.
7895 (copyprop_hardreg_forward): When copying vd from predecessor
7896 which has any queued DEBUG_INSN changes, make sure the pointers are
7897 cleared. At the end call df_analyze and then if there are any
7898 DEBUG_INSN changes queued at the end of some basic block for still
7899 live registers, apply them.
7900 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
7902 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
7904 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
7907 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
7909 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
7910 targets. Set the default with_cpu/with_arch from arch/cpu.
7911 Allow x86-64 and native for with_cpu/with_arch.
7913 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
7915 * ebitmap.c: Change calls to verify_popcount with calls to
7916 sbitmap_verify_popcount.
7917 (ebitmap_clear_bit): Fixed map->cacheindex test and
7918 map>cache update when bit clearing results in an empty
7921 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
7924 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
7925 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
7926 and support both V2DF and V2DI modes.
7927 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
7928 support both V2DF and V2DI modes.
7929 (general): Delete trailing whitespace from a few patterns.
7931 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7932 V2DF/V2DI interleave high/low builtins.
7934 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
7937 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
7938 interleave high/low functions.
7940 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
7942 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
7943 #pragma extern_prefix.
7945 2010-02-25 Jakub Jelinek <jakub@redhat.com>
7948 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
7949 BLKmode, assert op0 is a MEM and just adjust its mode.
7952 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
7953 if bitpos isn't multiple of mode's bitsize.
7955 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
7957 * c.opt (-ftemplate-depth=): New.
7958 (-ftemplate-depth-): Deprecate.
7959 * optc-gen.awk: Handle -ftemplate-depth=.
7960 * opth-gen.awk: Likewise.
7961 * c-opts.c (c_common_handle_option): Likewise.
7962 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
7964 2010-02-24 Jason Merrill <jason@redhat.com>
7966 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
7968 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7970 * cfg.c (alloc_aux_for_block): Remove inline.
7971 (alloc_aux_for_edge): Likewise.
7973 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7975 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
7977 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7979 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
7980 * config/i386/sol2-gas.h: New file.
7981 * config.gcc (i[34567]86-*-solaris2*): Use it.
7983 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
7986 * c-typeck.c (ep_convert_and_check): New.
7987 (build_conditional_expr): Use it.
7988 (build_binary_op): Likewise.
7990 2010-02-24 Jakub Jelinek <jakub@redhat.com>
7992 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
7995 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
7996 bounds even for -O+.
7997 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
7998 expr needs to have DECL_NAME set.
8000 2010-02-24 Nick Clifton <nickc@redhat.com>
8002 * config/mep/mep.c: Include gimple.h.
8003 (mep_function_uses_sp): Delete unused function.
8004 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
8005 parameters. Use unsigned integers to count args. Return a
8006 NULL_RTX instead of an error_mark_node. Toidy up formatting.
8008 2010-02-23 Jakub Jelinek <jakub@redhat.com>
8011 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
8012 greater or equal to nelt instead of 2 * nelt.
8013 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
8016 2010-02-23 Jason Merrill <jason@redhat.com>
8019 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
8020 in cfun->local_decls even if they have register types.
8023 * stor-layout.c (place_field): Don't warn about unnecessary
8024 DECL_PACKED if the type is packed.
8026 2010-02-23 Jakub Jelinek <jakub@redhat.com>
8029 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
8030 GOTOFF relocs, even when the base reg isn't pic pointer.
8032 2010-02-23 Michael Matz <matz@suse.de>
8035 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
8036 (expand_gimple_basic_block): Generate and use debug temps if there
8037 are debug uses left after the last real use of TERed ssa names.
8038 Unlink debug immediate uses when they are expanded.
8040 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
8043 * config/i386/i386.c (override_options): Reorganise to provide
8044 better error messages.
8046 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
8049 * graphite-scop-detection.c (create_single_exit_edge): Move
8050 the call to find_single_exit_edge to....
8051 (create_sese_edges): ...here. Don't handle multiple edges
8052 exiting the function.
8053 (build_graphite_scops): Don't handle multiple edges
8054 exiting the function.
8056 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
8059 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
8060 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
8062 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
8065 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
8067 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
8070 * c-typeck.c (convert_arguments): Print declaration location.
8071 * c-common.c (validate_nargs): Rename as
8072 builtin_function_validate_nargs.
8073 (check_builtin_function_arguments): Update.
8075 2010-02-22 Richard Guenther <rguenther@suse.de>
8078 * tree-inline.c (declare_return_variable): Use the type of
8079 the call stmt lhs if available.
8081 2010-02-22 Duncan Sands <baldrick@free.fr>
8083 * passes.c (register_pass): Always consider all pass lists when
8084 ref_pass_instance_number is zero.
8086 2010-02-22 Richard Guenther <rguenther@suse.de>
8088 PR tree-optimization/42749
8089 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
8090 parameter. Do arithmetic in the original type.
8091 (update_accumulator_with_ops): Likewise.
8092 (adjust_accumulator_values): Adjust.
8094 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8096 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
8097 (QI to BLKmode splitter): New splitter.
8099 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
8101 * config/i386/i386.c (initial_ix86_tune_features): Turn on
8102 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
8104 2010-02-22 Richard Guenther <rguenther@suse.de>
8106 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
8108 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
8110 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
8111 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
8112 ($(T)crti.o, $(T)crtn.o): Remove rules.
8114 2010-02-21 Tobias Burnus <burnus@net-b.de>
8117 * doc/invoke.texi (-fassociative-math): Document that this
8118 option is automatically enabled for Fortran.
8120 2010-02-20 David S. Miller <davem@davemloft.net>
8122 * configure.ac: Test if linker and assembler properly support
8123 GOTDATA_OP relocations.
8124 * configure: Rebuild.
8125 * config.in: Likewise.
8126 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
8127 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
8128 (movsi_high_pic): Likewise.
8129 (movdi_lo_sum_pic): Likewise.
8130 (movdi_high_pic): Likewise.
8131 (movsi_pic_gotdata_op): New pattern.
8132 (movdi_pic_gotdata_op): Likewise.
8133 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
8134 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
8136 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
8139 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
8140 attribute to ssemul.
8141 (xop_mulv2div2di3_high): Ditto.
8143 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8146 * c.opt (Wconversion-null): New option.
8147 * doc/invoke.texi (Wconversion-null): Document.
8149 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
8151 * common.opt (Wlarger-than-): Add Undocumented.
8153 2010-02-19 Mike Stump <mikestump@comcast.net>
8155 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
8157 2010-02-19 Jason Merrill <jason@redhat.com>
8160 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
8161 * configure: Likewise.
8163 2010-02-20 Alan Modra <amodra@gmail.com>
8166 * cgraph.h (cgraph_make_decl_local): Declare.
8167 * cgraph.c (cgraph_make_decl_local): New function.
8168 (cgraph_make_node_local): Use it.
8169 * cgraphunit.c (cgraph_function_versioning): Likewise.
8170 * ipa.c (function_and_variable_visibility): Likewise.
8172 2010-02-19 Jakub Jelinek <jakub@redhat.com>
8175 * except.c (sjlj_emit_function_enter): Don't call
8176 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
8178 * rtl.h (add_reg_br_prob_note): Remove prototype.
8180 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
8183 * c-common.c (conversion_warning): Remove widening conversions
8184 before checking the conversion of integers to reals.
8186 2010-02-19 Mike Stump <mikestump@comcast.net>
8189 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
8192 * cgraphunit.c (process_function_and_variable_attributes): Check
8193 DECL_PRESERVE_P instead of looking up attribute "used".
8194 * ipa-pure-const.c (check_decl): Likewise.
8195 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
8196 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
8197 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
8198 instead of attribute "used".
8199 * config/sol2-c.c (solaris_pragma_init): Likewise.
8200 (solaris_pragma_fini): Likewise.
8202 2010-02-19 Jakub Jelinek <jakub@redhat.com>
8204 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
8205 Use XCNEW instead of xcalloc.
8206 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
8207 XNEW instead of xmalloc.
8208 (get_fields): Use XNEWVEC instead of xmalloc.
8211 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
8212 populate vars array.
8213 (create_new_general_access): For debug stmts just reset value.
8214 (get_stmt_accesses): For accesses within debug stmts just record them
8215 using add_access_to_acc_sites instead of preventing the peeling or
8216 counting them as accesses.
8219 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
8221 2010-02-19 Richard Guenther <rguenther@suse.de>
8223 PR tree-optimization/42916
8224 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
8227 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
8229 * configure.ac: Replace all uses of changequote in macro arguments
8230 with proper quoting.
8232 2010-02-19 Jakub Jelinek <jakub@redhat.com>
8235 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
8237 2010-02-19 Richard Guenther <rguenther@suse.de>
8239 PR tree-optimization/42944
8240 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
8241 test for aliasing with errno.
8243 2010-02-19 Jakub Jelinek <jakub@redhat.com>
8246 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
8247 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
8248 * dojump.c: Include output.h.
8249 (inv): New inline function.
8250 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
8251 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
8252 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
8253 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
8254 argument, pass it down to other calls.
8255 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
8256 add REG_BR_PROB note to the conditional jump.
8257 * cfgexpand.c (add_reg_br_prob_note): Removed.
8258 (expand_gimple_cond): Don't call it, add the probability
8259 as last argument to jumpif_1/jumpifnot_1.
8260 * Makefile.in (dojump.o): Depend on output.h.
8261 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
8263 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
8264 * stmt.c (do_jump_if_equal): Likewise.
8265 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
8266 * loop-unswitch.c (compare_and_jump_seq): Likewise.
8267 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
8269 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
8270 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
8271 jumpifnot_1 callers.
8272 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
8274 (store_expr): Adjust jumpifnot caller.
8275 (store_constructor): Adjust jumpif caller.
8278 * gimplify.c (gimple_boolify): For __builtin_expect call
8279 gimple_boolify also on its first argument.
8281 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
8283 * configure.ac (gnu-unique-object): Wrap regexps using [] in
8285 (__stack_chk_fail): Ditto. Remove quadrigraphs.
8286 * configure: Regenerated.
8288 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8290 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
8291 lang_hooks.types_compatible_p instead of comptypes.
8293 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
8295 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
8296 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
8297 if __prefer_thumb__ is defined.
8299 2010-02-18 Martin Jambor <mjambor@suse.cz>
8301 PR tree-optimization/43066
8302 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
8303 array with zero-sized element type.
8305 2010-02-18 Jakub Jelinek <jakub@redhat.com>
8307 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
8308 rtx, allocate struct var_loc_node here and return it to the
8309 caller, and only if it is actually needed.
8310 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
8311 move it earlier and return immediately if it returns NULL.
8313 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
8315 * config/sparc/gas.h: New file. Restore
8316 TARGET_ASM_NAMED_SECTION to its ELF default.
8317 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
8319 * config/sparc/sparc.c (sparc_elf_asm_named_section):
8320 Likewise. Add ATTRIBUTE_UNUSED to prototype.
8321 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
8322 after sparc/sysv4.h.
8324 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
8326 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
8328 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
8330 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
8331 patterns from predicated pattern.
8333 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
8336 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
8337 for insn mnemonic suffix.
8339 2010-02-17 Richard Guenther <rguenther@suse.de>
8341 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
8344 2010-02-17 Jakub Jelinek <jakub@redhat.com>
8347 * caller-save.c (save_call_clobbered_regs): If BB ends with
8348 a DEBUG_INSN, move any notes in between last real insn and the last
8349 DEBUG_INSN after the last DEBUG_INSN.
8351 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
8353 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
8354 Fix return type. Fix argument type. Explain meaning of return value.
8356 2010-02-16 Richard Guenther <rguenther@suse.de>
8358 PR tree-optimization/41043
8359 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
8360 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
8362 (vrp_visit_phi_node): ... but only for loop PHI nodes.
8364 2010-02-16 Ira Rosen <irar@il.ibm.com>
8366 PR tree-optimization/43074
8367 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
8368 * tree-vect-loop.c (vect_analyze_loop_operations): Add
8369 vectorizable cycles in hybrid SLP check.
8370 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
8372 2010-02-16 Richard Guenther <rguenther@suse.de>
8374 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
8375 (true_dependence): If memrefs_conflict_p computes must-alias
8376 trust it. Move TBAA check after offset-based disambiguation.
8377 (canon_true_dependence): Likewise.
8379 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
8381 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
8382 * doc/invoke.texi: Document it.
8383 * var-tracking.c: Include toplev.h and params.h.
8384 (vt_find_locations): Return bool indicating success. Compute
8385 hash sizes unconditionally. Check new parameter, report.
8386 (variable_tracking_main_1): Check vt_find_locations results and
8387 retry. Renamed from...
8388 (variable_tracking_main): ... this. New wrapper to preserve
8389 flag_var_tracking_assignments.
8390 * Makefile.in (var-tracking.o): Adjust dependencies.
8392 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
8393 Jakub Jelinek <jakub@redhat.com>
8396 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
8397 if weak_import attribute is present.
8398 * config/darwin.c (machopic_select_section): Likewise.
8400 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
8402 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
8403 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
8404 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
8405 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
8407 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
8410 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
8413 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
8414 Rewrite text to refer to the names.
8416 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
8418 * config/i386/i386-builtin-types.def
8419 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
8420 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
8421 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
8422 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
8423 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
8424 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
8425 IX86_BUILTIN_VPERMIL2PS256.
8426 (MULTI_ARG_4_DF2_DI_I): Defined.
8427 (MULTI_ARG_4_DF2_DI_I1): Defined.
8428 (MULTI_ARG_4_SF2_SI_I): Defined.
8429 (MULTI_ARG_4_SF2_SI_I1): Defined.
8430 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
8431 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
8432 __builtin_ia32_vpermil2ps256.
8433 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
8434 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
8435 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
8436 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
8437 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
8438 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
8439 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
8440 CODE_FOR_xop_vpermil2v8sf3.
8441 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
8442 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
8443 * config/i386/xopintrin.h (_mm_permute2_pd): New.
8444 (_mm256_permute2_pd): New.
8445 (_mm_permute2_ps): New.
8446 (_mm256_permute2_ps): New.
8448 2010-02-15 Nick Clifton <nickc@redhat.com>
8450 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
8451 boolean parameters. Use emit_jump_insn when emitting a pop
8452 instruction containing a return insn.
8453 (push): Use 'true' rather than '1' as second parameter to F.
8454 (h8300_expand_prologue): Likewise.
8455 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
8456 (h8300_expand_epilogue): Likewise.
8458 2010-02-15 Richard Guenther <rguenther@suse.de>
8461 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
8464 2010-02-15 Nick Clifton <nickc@redhat.com>
8466 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
8469 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
8471 * intl.c (fake_ngettext): New function.
8472 * intl.h (fake_ngettext): Declare.
8473 (ngettext): Define macro.
8474 * collect2.c (notice_translated): New function.
8475 (main): Use notice_translated and ngettext.
8476 * collect2.h (notice_translated): Declare.
8478 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
8480 * reorg.c (delete_computation): Comment fixes.
8481 * caller-save.c (setup_save_areas): Idem.
8482 * sel-sched-dump.c (dump_lv_set): Idem.
8485 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8487 * config/s390/s390.c (s390_sched_init): New function.
8488 (TARGET_SCHED_INIT): Target hook defined.
8490 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
8491 Jack Howarth <howarth@bromo.med.uc.edu>
8492 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
8495 Partial revert of unintended change in fix for PR41605.
8496 * config/darwin.h: Fix typo.
8497 * config/darwin9.h: Same.
8499 2010-02-11 Jakub Jelinek <jakub@redhat.com>
8501 * c-pch.c (pch_init): Clear v.
8503 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
8506 * graphite-scop-detection.c (graphite_can_represent_scev): Call
8507 graphite_can_represent_init for MULT_EXPR.
8509 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
8513 * graphite-sese-to-poly.c (remove_phi): New.
8514 (translate_scalar_reduction_to_array): Call remove_phi.
8516 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
8519 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
8520 * graphite-clast-to-gimple.h (gloog): Update declaration.
8521 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
8522 * graphite-poly.h (struct poly_bb): Add missing comments.
8523 (struct scop): Add poly_scop_p field.
8525 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
8526 * graphite.c (graphite_transform_loops): Build the polyhedral
8527 representation for each scop before code generation.
8528 * sese.c (rename_variables_in_operand): Removed.
8529 (rename_variables_in_expr): Return the renamed expression.
8530 (rename_sese_parameters): New.
8531 * sese.h (rename_sese_parameters): Declared.
8533 2010-02-11 Richard Guenther <rguenther@suse.de>
8535 PR tree-optimization/42998
8536 * tree-ssa-pre.c (create_expression_by_pieces): Treat
8537 POINTER_PLUS_EXPR properly.
8539 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
8540 Changpeng Fang <changpeng.fang@amd.com>
8543 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
8544 the cost of an IV candidate when the IV is used in a test against zero.
8546 * gcc.dg/tree-ssa/ivopts-3.c: New.
8548 2010-02-11 Richard Guenther <rguenther@suse.de>
8551 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
8552 pointer-vs-decl case by swapping refs. Handle some cases
8553 of pointer-vs-decl disambiguations more conservatively.
8554 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
8555 to false after expanding.
8557 2010-02-11 Richard Guenther <rguenther@suse.de>
8560 * gcc.c (process_command): Handle LTO file@offset case more
8563 2010-02-11 Jakub Jelinek <jakub@redhat.com>
8565 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
8566 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
8568 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
8570 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
8571 if MEM's mode size isn't DWARF2_ADDR_SIZE.
8572 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
8573 Optimize eq/ne comparisons when both arguments are known to be
8575 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
8576 Don't mask operands unnecessarily if they are known to be already
8579 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
8581 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
8584 2010-02-10 Richard Guenther <rguenther@suse.de>
8586 PR tree-optimization/43017
8587 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
8588 for wrapping signed arithmetic.
8590 2010-02-10 Jakub Jelinek <jakub@redhat.com>
8593 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
8594 if no debug info should be emitted for it.
8596 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
8598 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
8599 note when flag_exceptions is set.
8601 2010-02-10 Duncan Sands <baldrick@free.fr>
8603 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
8605 2010-02-10 Richard Guenther <rguenther@suse.de>
8608 * tree.c (get_unwidened): Handle constants.
8609 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
8611 2010-02-10 Martin Jambor <mjambor@suse.cz>
8614 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
8615 check for variable argument counts independently.
8617 2010-02-10 Christian Bruel <christian.bruel@st.com>
8620 * config/sh/sh.c (find_barrier): Increase length for non delayed
8621 conditional branches.
8623 2010-02-10 Christian Bruel <christian.bruel@st.com>
8625 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
8627 2010-02-10 Jakub Jelinek <jakub@redhat.com>
8629 * builtins.c (set_builtin_user_assembler_name): Also handle
8630 ffs if int is smaller than word.
8632 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
8635 * ira-conflicts.c (get_dup): Remove.
8636 (process_reg_shuffles): Add new parameter. Use it as an
8637 additional guard for copy generation.
8638 (add_insn_allocno_copies): Rewrite.
8640 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
8642 * common.opt (fsched2-use-traces): Preserved for backward
8644 * doc/invoke.texi: Remove the documentation about option
8645 -fsched2-use-traces.
8646 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
8647 flag_sched2_use_traces.
8648 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
8649 the backward compatibility flag section.
8651 2010-02-09 Richard Guenther <rguenther@suse.de>
8653 PR tree-optimization/43008
8654 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
8655 make HEAP variables initialized from global memory if they
8656 are not known builtin functions.
8657 (find_func_aliases): Adjust.
8659 2010-02-09 Richard Guenther <rguenther@suse.de>
8661 PR tree-optimization/43000
8662 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
8663 arithmetic manually.
8665 2010-02-08 Jakub Jelinek <jakub@redhat.com>
8667 PR tree-optimization/42931
8668 * tree-loop-linear.c (try_interchange_loops): Don't call
8669 double_int_mul if estimated_loop_iterations failed.
8671 2010-02-08 Martin Jambor <mjambor@suse.cz>
8674 * tree-sra.c (build_accesses_from_assign): Do not mark in
8675 should_scalarize_away_bitmap if stmt has volatile ops.
8676 (sra_modify_assign): Do not process assigns piecemeal if if stmt
8679 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
8681 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
8683 2010-02-07 Adam Nemet <adambnmet@gmail.com>
8685 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
8688 2010-02-07 Andrew Pinski <pinskia@gmail.com>
8691 * df-core.c (df_finish_pass): Change type of saved_flags to int.
8693 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
8696 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
8697 to unknown_dependence.
8698 (graphite_legal_transform_dr): Handle the unknown_dependence.
8699 (graphite_carried_dependence_level_k): Same.
8701 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
8703 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
8705 2010-02-07 Richard Guenther <rguenther@suse.de>
8708 * expr.c (get_inner_reference): Always initialize *pbitsize.
8710 2010-02-07 Richard Guenther <rguenther@suse.de>
8713 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
8714 new ARRAY_REFs on variable size element or minimal index arrays.
8716 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
8717 gimple_fold_indirect_ref.
8719 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
8722 * arm.c (arm_override_options): Just return if the user has specified
8723 an invalid fpu name.
8725 2010-02-03 Jason Merrill <jason@redhat.com>
8728 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
8729 i386_pe_maybe_record_exported_symbol.
8731 2010-02-05 Steve Ellcey <sje@cup.hp.com>
8734 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
8735 (pa_delegitimize_address): New function.
8737 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
8739 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
8740 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
8742 2010-02-05 Richard Guenther <rguenther@suse.de>
8745 * lto-streamer-in.c (get_resolution): Deal with references
8746 to undefined functions.
8748 2010-02-05 Richard Guenther <rguenther@suse.de>
8750 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
8751 (fold_const_aggregate_ref): Likewise.
8752 (ccp_fold_stmt): Substitute loads.
8753 (maybe_fold_reference): Verify types before substituting.
8755 (fold_gimple_assign): Unshare properly.
8756 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
8758 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
8760 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
8761 for rs6000_gen_cell_microcode.
8763 2010-02-04 Richard Guenther <rguenther@suse.de>
8765 PR rtl-optimization/42952
8766 * dse.c (const_or_frame_p): Remove MEM handling.
8768 2010-02-04 Nick Clifton <nickc@redhat.com>
8770 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
8771 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
8772 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
8773 (mn10300_asm_output_mi_thunk): New function.
8774 (mn10300_can_output_mu_thunk): New function.
8775 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
8776 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
8777 (FUNCTION_ARG): Delete incorrect comment.
8779 2010-02-03 Jason Merrill <jason@redhat.com>
8782 * fold-const.c (operand_equal_p): Handle erroneous types.
8784 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
8786 * config/h8300/h8300.md (can_delay): Fix attibute condition.
8788 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
8790 PR rtl-optimization/42941
8791 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
8794 2010-02-03 Jason Merrill <jason@redhat.com>
8797 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
8799 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
8802 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
8803 (cselib_reset_table): Renamed from...
8804 (cselib_reset_table_with_next_value): ... this.
8805 (cselib_get_next_uid): Renamed from...
8806 (cselib_get_next_unknown_value): ... this.
8807 * cselib.c (next_uid): Renamed from...
8808 (next_unknown_value): ... this.
8809 (cselib_clear_table): Adjust.
8810 (cselib_reset_table): Adjust. Renamed from...
8811 (cselib_reset_table_with_next_value): ... this.
8812 (cselib_get_next_uid): Adjust. Renamed from...
8813 (cselib_get_next_unknown_value): ... this.
8814 (get_value_hash): Use hash.
8815 (cselib_hash_rtx): Likewise.
8816 (new_cselib_val): Adjust. Set and dump uid.
8817 (cselib_lookup_mem): Pass next_uid as hash.
8818 (cselib_subst_to_values): Likewise.
8819 (cselib_log_lookup): Dump uid.
8820 (cselib_lookup): Pass next_uid as hash. Adjust.
8821 (cselib_process_insn): Adjust.
8822 (cselib_init): Initialize next_uid.
8823 (cselib_finish): Adjust.
8824 (dump_cselib_table): Likewise.
8825 * dse.c (canon_address): Dump value uid.
8826 * print-rtl.c (print_rtx): Print value uid.
8827 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
8829 (dv_uid): New function, sort of renamed from...
8830 (dv_htab_hash): ... this, reimplemented in terms of it and...
8831 (dv_uid2hash): ... this. New.
8832 (variable_htab_eq): Drop excess assertions.
8833 (tie_break_pointers): Removed.
8834 (canon_value_cmp): Compare uids.
8835 (variable_post_merge_New_vals): Print uids.
8836 (vt_add_function_parameters): Adjust.
8837 (vt_initialize): Reset table. Adjust.
8839 2010-02-03 Richard Guenther <rguenther@suse.de>
8841 PR tree-optimization/42944
8842 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
8843 (call_may_clobber_ref_p_1): Likewise. Properly handle
8844 malloc and calloc clobbering errno.
8846 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
8848 * doc/invoke.texi: Fix name of sched1 dump.
8850 * opts.c (decode_options): Set flag_tree_switch_conversion
8851 only conditionally on optimize >= 2.
8853 * gcse.c: Assorted comment fixes in pass description.
8855 2010-02-03 Anthony Green <green@moxielogic.com>
8857 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
8858 nop padding in order to maintain alignment of storage location of
8859 target function address.
8860 (moxie_trampoline_init): Store target function address at newly
8862 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
8864 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
8866 2010-02-03 Richard Guenther <rguenther@suse.de>
8869 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
8871 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8873 * config.gcc: Reenable check for obsolete targets.
8874 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
8875 mips-sgi-irix6.[0-4]*.
8877 2010-02-02 Nick Clifton <nickc@redhat.com>
8879 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
8880 constant size of 4 as being the same as 0.
8881 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
8882 can take values in the range 0..4.
8884 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
8887 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
8888 as _darwin10_Unwind_FindEnclosingFunction().
8889 * libgcc-libsystem.ver: New.
8891 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
8894 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
8895 implicitly set registers.
8897 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
8899 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
8900 (arm_override_options): Allow automatic selection of the thread
8901 pointer register if thumb2.
8902 (legitimize_pic_address): Improve code sequences for Thumb2.
8903 (arm_call_tls_get_addr): Likewise.
8904 (legitimize_tls_address): Likewise.
8905 * arm.md (pic_load_addr_arm): Delete. Replace with ...
8906 (pic_load_addr_32bit): ... this. New named pattern.
8907 * thumb2.md (pic_load_addr_thumb2): Delete.
8908 (pic_load_dot_plus_four): Delete.
8909 (tls_load_dot_plus_four): New named pattern.
8911 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8914 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
8915 Document fix for TLS bug.
8917 2010-01-31 Richard Guenther <rguenther@suse.de>
8919 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
8920 conservatively correct.
8922 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8926 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8928 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
8930 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8932 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
8934 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
8936 * config.gcc: Adjust order of makefile fragments for mingw targets.
8938 2010-01-31 Richard Guenther <rguenther@suse.de>
8941 * gimplify.c (gimplify_init_constructor): For volatile LHS
8942 initialize a temporary.
8944 2010-01-31 Matthias Klose <doko@ubuntu.com>
8946 * configure.ac: Fix __stack_chk_fail check for cross builds configured
8948 * configure: Regenerate.
8950 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
8952 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
8953 the same alias set and their sizes different constantness.
8954 (aliasing_component_refs_p): Revert 2009-10-24 change.
8956 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8958 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
8961 2010-01-29 Richard Guenther <rguenther@suse.de>
8963 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
8964 Assert we successfully updated the call.
8966 2010-01-29 Jakub Jelinek <jakub@redhat.com>
8968 PR rtl-optimization/42889
8969 * df.h (df_set_bb_dirty_nonlr): New prototype.
8970 * df-core.c (df_set_bb_dirty_nonlr): New function.
8971 * df-scan.c (df_insn_rescan): Call it instead of
8972 df_set_bb_dirty for DEBUG_INSNs.
8974 2010-01-29 Richard Guenther <rguenther@suse.de>
8977 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
8978 quadratic behavior in most cases.
8980 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
8983 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
8984 in the call to gen_x86_movsicc_0_m1.
8986 2010-01-28 Richard Guenther <rguenther@suse.de>
8988 PR tree-optimization/42871
8989 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
8991 2010-01-28 Richard Guenther <rguenther@suse.de>
8993 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
8994 into call arguments.
8996 2010-01-28 Richard Guenther <rguenther@suse.de>
8999 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
9000 the forwarder if the destination is an EH landing pad.
9002 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
9004 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
9005 block list passed to gimple_duplicate_sese_tail.
9006 (parallelize_loops): Avoid parallelization when the function
9008 Avoid parallelization when the preheader is IRREDUCIBLE.
9009 Try to optimize when estimated_loop_iterations_int is unresolved.
9010 Add the loop's location to the dump file.
9011 * tree-cfg.c (add_phi_args_after_redirect): Remove.
9012 (gimple_duplicate_sese_tail): Remove the check for the latch.
9013 Redirect nexits to the exit block.
9014 Remove handling of the incoming edges to the latch.
9015 Redirect the backedge from the copied latch to the exit bb.
9017 2010-01-28 Michael Matz <matz@suse.de>
9020 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
9021 Wrap force_reg into a sequence, emit it before user.
9023 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
9025 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
9027 (arm_legacy_rev): Likewise.
9028 (thumb_legacy_rev): Likewise.
9030 2010-01-27 Jakub Jelinek <jakub@redhat.com>
9032 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
9033 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
9034 on MEM's address failed, try avoid_constant_pool_reference and
9035 recurse if it returned something different.
9036 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
9037 address, try avoid_constant_pool_reference and recurse if it
9038 returned something different.
9039 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
9040 address and avoid_constant_pool_reference returned something
9041 different, don't set have_address.
9043 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
9046 * var-tracking.c (val_store): Add modified argument, obey it.
9048 (count_uses): Move down logging of main.
9049 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
9050 don't need resolution.
9051 (emit_notes_in_bb): Likewise.
9053 2010-01-27 Richard Guenther <rguenther@suse.de>
9056 * tree-inline.c (remap_decl): Delay remapping of SSA name
9057 default definitions until we need them.
9059 2010-01-27 Jakub Jelinek <jakub@redhat.com>
9061 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
9062 (rs6000_delegitimize_address): New function.
9064 * config/s390/s390.c (s390_delegitimize_address): Call
9065 delegitimize_mem_from_attrs.
9068 * tree-inline.c (cannot_copy_type_1): Removed.
9069 (copy_forbidden): Don't forbid copying of functions containing
9070 records/unions with variable length fields.
9072 2010-01-27 Christian Bruel <christian.bruel@st.com>
9076 * config/sh/sh.c (find_barrier): Increase length for non delayed
9077 conditional branches.
9079 2010-01-27 Matthias Klose <doko@ubuntu.com>
9081 * configure.ac (gnu-unique-object): Fix ldd version check.
9082 * configure: Regenerate.
9084 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9086 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
9088 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
9089 Test for HAVE_GNU_AS value.
9091 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9093 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
9094 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
9095 INT64_TYPE): Define.
9096 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
9097 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
9098 INT_LEAST64_TYPE): Define.
9099 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
9100 UINT_LEAST64_TYPE): Define.
9101 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
9102 INT_FAST64_TYPE): Define.
9103 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
9104 UINT_FAST64_TYPE): Define.
9105 (INTMAX_TYPE, UINTMAX_TYPE): Define.
9106 (INTPTR_TYPE, UINTPTR_TYPE): Define.
9107 (SIG_ATOMIC_TYPE): Define.
9109 2010-01-26 Richard Guenther <rguenther@suse.de>
9111 * df-scan.c (df_scan_set_bb_info): Remove assert.
9112 (df_insn_rescan_debug_internal): Merge asserts.
9113 (df_install_ref): Likewise.
9114 (df_mark_reg): Use bitmap_set_range.
9115 (df_hard_reg_used_p): Remove assert.
9116 (df_hard_reg_used_count): Likewise.
9118 2010-01-26 Richard Guenther <rguenther@suse.de>
9120 PR rtl-optimization/42685
9121 * web.c (web_main): Ignore DEBUG_INSNs.
9123 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
9125 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
9127 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
9128 Fix types of fndecl and arglist parameters.
9130 2010-01-26 Richard Guenther <rguenther@suse.de>
9133 * tree-eh.c (unsplit_eh): Skip debug insns.
9135 2010-01-26 Richard Guenther <rguenther@suse.de>
9137 PR tree-optimization/42250
9138 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
9140 2010-01-26 Jakub Jelinek <jakub@redhat.com>
9143 * omp-low.c (expand_omp_sections): Only use single_pred if
9144 l2_bb is single_pred_p.
9146 2010-01-25 Christian Bruel <christian.bruel@st.com>
9149 * config/sh/sh.c (find_barrier): Increase length for non delayed
9150 conditional branches.
9151 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
9153 2010-01-24 David S. Miller <davem@davemloft.net>
9155 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
9156 define if not using GAS.
9157 * config/sparc/sparc.c (sparc_elf_asm_named_section):
9158 Likewise. Delete SECTION_MERGE code, which is only applicable
9161 2010-01-24 Mark Mitchell <mark@codesourcery.com>
9164 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
9165 mangling of va_list in system headers.
9167 2010-01-23 Toon Moene <toon@moene.org>
9169 * tree-predcom.c (combine_chains): Return NULL, not false.
9171 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
9173 * tree-loop-distribution.c (distribute_loop): Fix declaration and
9174 initialization of variable res to agree with return type.
9176 2010-01-22 Steve Ellcey <sje@cup.hp.com>
9178 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
9179 * tree-sra.c: Add include of expr.h.
9181 2010-01-22 Jakub Jelinek <jakub@redhat.com>
9183 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
9184 insert the debug stmt on the single non-EH edge from the stmt.
9186 2010-01-22 Richard Henderson <rth@redhat.com>
9189 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
9190 the RHS until after generate_subtree_copies has insertted its
9191 code before the current statement.
9193 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
9195 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
9197 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
9199 2010-01-21 Martin Jambor <mjambor@suse.cz>
9201 PR tree-optimization/42585
9202 * tree-sra.c (struct access): New field grp_total_scalarization.
9203 (dump_access): Dump the new field.
9204 (should_scalarize_away_bitmap): New variable.
9205 (cannot_scalarize_away_bitmap): Likewise.
9206 (sra_initialize): Allocate new bitmaps.
9207 (sra_deinitialize): Free new bitmaps.
9208 (create_access_1): New function.
9209 (create_access): Parts moved to create_access_1.
9210 (type_consists_of_records_p): New function.
9211 (completely_scalarize_record): Likewise.
9212 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
9213 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
9214 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
9216 (analyze_all_variable_accesses): Completely scalarize small eligible
9219 2010-01-21 Martin Jambor <mjambor@suse.cz>
9221 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
9223 2010-01-21 Andrew Haley <aph@redhat.com>
9225 * gcc.c (process_command): Move lang_specific_driver before
9226 setting cc_libexec_prefix.
9228 2010-01-21 Richard Guenther <rguenther@suse.de>
9231 * fold-const.c (negate_expr_p): Pretend only negative
9232 real constants are easily negatable.
9234 2010-01-20 Janis Johnson <janis187@us.ibm.com>
9235 Jason Merrill <jason@redhat.com>
9237 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
9238 (TYPE_TRANSPARENT_AGGR): this, for union and record.
9239 * calls.c (initialize argument_information): Handle it.
9240 * c-common.c (handle_transparent_union_attribute): Use new name.
9241 * c-decl.c (finish_struct): Ditto.
9242 * c-typeck.c (type_lists_compatible_p): Ditto.
9243 (convert_for_assignment): Use new name and also handle record.
9244 * function.c (aggregate_value_p): Handle it.
9245 (pass_by_reference): Ditto.
9246 (assign_parm_data_types): Ditto.
9247 * print-tree.c (print_node): Ditto.
9248 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
9249 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
9250 * tree.c (first_field): New fn.
9252 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
9255 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
9256 even when linking statically, for now.
9258 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
9261 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
9262 without a cselib val.
9263 (count_uses): Accept MO_VAL_SET with no val on stores.
9264 (add_stores): Likewise.
9266 2010-01-20 Jakub Jelinek <jakub@redhat.com>
9268 * var-tracking.c (check_value_val): Add a compile time assertion.
9269 (dv_is_decl_p): Simplify.
9270 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
9271 gcc_assert if ENABLE_CHECKING.
9273 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
9276 * var-tracking.c: Include tree-flow.h.
9277 (mem_dies_at_call): New.
9278 (dataflow_set_preserve_mem_locs): Use it.
9279 (dataflow_set_remove_mem_locs): Likewise.
9280 (dump_var): Renamed from dump_variable. Adjust all callers.
9281 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
9282 * Makefile.in (var-tracking.o): Adjust deps.
9284 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
9286 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
9288 2010-01-20 Richard Guenther <rguenther@suse.de>
9290 PR tree-optimization/42717
9291 * tree-ssa-dce.c (get_live_post_dom): Remove.
9292 (forward_edge_to_pdom): Take an arbitrary edge to copy
9293 degenerate PHI args from.
9294 (remove_dead_stmt): Use the first post-dominator even if it
9295 does not contain live statements as redirection destination.
9297 2010-01-20 Richard Guenther <rguenther@suse.de>
9299 * tree-inline.c (estimate_num_insns): Handle EH builtins.
9301 2010-01-20 Jakub Jelinek <jakub@redhat.com>
9303 * sel-sched.c (create_speculation_check): Remove set but not used
9305 (try_transformation_cache): Remove set but not used variable ds.
9306 (calculate_privileged_insns): Remove set but not used variables
9307 cur_insn and min_spec_insn.
9308 (find_best_expr): Remove set but not used variable avail_n.
9309 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
9311 * cgraphunit.c (assemble_thunk): Remove set but not used variable
9313 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
9314 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
9317 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
9320 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
9321 cpu types. Add support for *-sse3 cpu types.
9322 (x86_64-*-*): Ditto.
9324 2010-01-20 Jakub Jelinek <jakub@redhat.com>
9327 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
9328 argument, call initializer_constant_valid_p_1 instead of
9329 initializer_constant_valid_p, pass CACHE to it, return NULL
9330 immediately if first call returns NULL.
9331 (initializer_constant_valid_p_1): New function.
9332 (initializer_constant_valid_p): Use it.
9334 2010-01-20 Thomas Quinot <quinot@adacore.com>
9336 * tree.def (PLACEHOLDER_EXPR): Fix comment.
9338 2010-01-20 Jakub Jelinek <jakub@redhat.com>
9340 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
9341 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
9342 (loc_list_from_tree): Don't handle unsigned division. Handle
9343 signed modulo using DW_OP_{over,over,div,mul,minus}.
9344 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
9345 modulo instead of signed.
9347 2010-01-20 DJ Delorie <dj@redhat.com>
9349 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
9351 (h8300_emit_stack_adjustment): Propogate it.
9353 (h8300_expand_prologue): Likewise.
9354 (h8300_expand_epilogue): Likewise.
9356 2010-01-19 Michael Matz <matz@suse.de>
9358 PR tree-optimization/41783
9359 * tree-data-ref.c (toplevel): Include flags.h.
9360 (dump_data_dependence_relation): Also dump the inputs if the
9361 result will be unknown.
9362 (split_constant_offset_1): Look through some conversions.
9363 * tree-predcom.c (determine_roots_comp): Restart a new chain if
9364 the offset from last element is too large.
9365 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
9366 (reassociate_to_the_same_stmt): Handle vector registers.
9367 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
9369 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
9370 wide_prolog_niters argument, emit widening instructions.
9371 (vect_do_peeling_for_alignment): Adjust caller, use widened
9372 variant of the iteration cound.
9373 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
9375 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9378 * config/arm/neon-testgen.m (emit_automatics): New parameter
9379 features. Adjust for Fixed_return_reg feature.
9380 (test_intrinsic): Call emit_automatics with new feature.
9381 * config/arm/neon.ml: Update copyright years.
9382 (features): New Fixed_return_reg feature.
9383 (ops): Update feature for Vget_low.
9385 2010-01-19 Jakub Jelinek <jakub@redhat.com>
9387 PR tree-optimization/42719
9388 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
9392 * fwprop.c (all_uses_available_at): Return false if def_set dest
9393 is a REG that is used in def_insn.
9395 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
9397 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
9399 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
9402 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
9404 * target.h (struct gcc_target) <secondary_reload>: Change type
9405 of last argument to secondary_reload_info *.
9407 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
9410 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
9411 memory references with unaligned offsets. Remove CQImode handling.
9412 (unaligned_memory_operand): Return 1 for memory references with
9413 unaligned offsets. Remove CQImode handling.
9415 2010-01-18 Richard Guenther <rguenther@suse.de>
9418 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
9421 2010-01-18 Richard Guenther <rguenther@suse.de>
9423 PR tree-optimization/42781
9424 * tree-ssa-structalias.c (find_what_var_points_to): Skip
9425 restrict processing only if the original variable was artificial.
9427 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
9429 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
9430 find number of popped argument bytes.
9432 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
9433 Fix the text that describes the return value for invalid insns.
9435 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
9437 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
9438 Clarify what 'cost of the -dependence' is. Fix quoting.
9440 * toplev.c (default_get_pch_validity): Rename argument to "sz".
9441 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
9443 2010-01-17 Jakub Jelinek <jakub@redhat.com>
9445 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
9446 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
9448 2010-01-17 Richard Guenther <rguenther@suse.de>
9451 * function.c (split_complex_args): Take a VEC to modify.
9452 (assign_parms_augmented_arg_list): Build a VEC instead of
9453 a chain of PARM_DECLs.
9454 (assign_parms_unsplit_complex): Take a VEC of arguments.
9455 Do not fixup unmodified parms.
9456 (assign_parms): Deal with the VEC.
9457 (gimplify_parameters): Likewise.
9459 2010-01-17 Richard Guenther <rguenther@suse.de>
9461 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
9462 node existence check.
9463 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
9464 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
9465 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
9466 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
9467 (gimple_execute_on_growing_pred): Likewise.
9469 2010-01-17 Richard Guenther <rguenther@suse.de>
9471 PR tree-optimization/42773
9472 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
9473 (compute_antic_aux): Likewise.
9474 (compute_partial_antic_aux): Likewise.
9476 2010-01-17 Jie Zhang <jie.zhang@analog.com>
9479 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
9482 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
9484 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
9487 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
9488 Fix markup for strict argument.
9490 (TARGET_SCHED_REORDER2): Fix argument types.
9492 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
9493 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
9495 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
9496 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
9498 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
9501 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
9502 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
9503 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
9504 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
9505 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
9507 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
9509 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
9511 (TARGET_ASM_RELOC_RW_MASK): Add return type.
9512 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
9514 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
9516 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
9519 (TARGET_ASM_NAMED_SECTION): Fix argument list.
9521 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
9522 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
9524 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
9526 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
9528 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
9529 referring to it. Fix language.
9531 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
9533 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
9535 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
9537 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
9539 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
9540 '@var{stream}. Remove stray 'and'.
9542 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
9544 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
9546 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
9548 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
9549 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
9551 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
9552 Fix description of return value.
9553 Rename argument "sz" to "len."
9555 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
9556 Clarify meaning of 'true' return value.
9558 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
9560 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
9561 rep_mode versus mode_rep.
9563 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
9565 (TARGET_BUILTIN_DECL): Fix name.
9567 (TARGET_COMMUTATIVE_P): Fix type of first argument.
9569 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
9571 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
9573 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
9575 (TARGET_RELAXED_ORDERING): Use @deftypevr.
9577 (TARGET_GET_DRAP_RTX): Note that this is a hook.
9580 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
9581 Rename argument tm_fn to md_fn.
9583 (TARGET_OPTION_PRINT): Fix argument list.
9585 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
9588 * config/i386/i386.c (ix86_fixup_binary_operands):
9589 Revert FMA4 fixup of operands.
9591 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9594 * Makefile.in (write_entries_to_file, install-plugin):
9595 Use \012 instead of \n with tr.
9597 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
9599 * configure.ac (HAVE_AS_REF): New C macro.
9600 * configure: Regenerate.
9601 * config.in: Likewise.
9602 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
9604 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
9607 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
9609 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
9611 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
9613 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
9615 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
9617 (TARGET_IN_SMALL_DATA_P): Fix argument type.
9619 (TARGET_BINDS_LOCAL_P): Fix argument type.
9621 (TARGET_ASM_FILE_END): Use prototype.
9623 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
9625 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
9627 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
9629 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
9631 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
9632 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
9634 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
9635 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
9637 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
9638 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
9639 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
9640 (TARGET_ADDR_SPACE_CONVERT): Likewise.
9642 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
9644 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
9646 (TARGET_INIT_BUILTINS): Use prototype.
9648 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
9649 Put 'const char *' in braces. Fix parameter types.
9650 (TARGET_INVALID_CONVERSION): Fix parameter types.
9651 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
9652 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
9654 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
9657 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
9659 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
9661 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
9663 * doc/tm.texi (TARGET_HELP): Fix return type.
9665 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
9666 in braces. Fix argument types.
9668 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
9670 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
9672 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
9674 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
9675 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
9677 (TARGET_MANGLE_TYPE): Fix argument types.
9679 (TARGET_IRA_COVER_CLASSES): Use prototype.
9681 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
9683 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
9685 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
9687 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
9689 (TARGET_CALLEE_COPIES): Fix argument types.
9691 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
9693 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
9695 (TARGET_FUNCTION_VALUE): Fix argument types.
9697 (TARGET_RETURN_IN_MSB): Fix argument type.
9699 (TARGET_RETURN_IN_MEMORY): Fix argument types.
9701 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
9703 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
9705 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
9706 agree with return type.
9708 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
9710 2010-01-15 Jing Yu <jingyu@google.com>
9712 PR rtl-optimization/42691
9713 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
9714 a pseudo to a constant and are merged, and adjust comments.
9716 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
9718 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
9720 2010-01-15 Richard Guenther <rguenther@suse.de>
9723 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
9724 labels of computed or non-local gotos to the destination.
9725 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
9726 landing pad label is the first label.
9728 2010-01-15 Richard Guenther <rguenther@suse.de>
9730 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
9732 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9735 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
9736 to allow generation of the xssqrtdp instruction on power7.
9737 (sqrtdf2_fpr): Ditto.
9739 2010-01-14 Jakub Jelinek <jakub@redhat.com>
9742 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
9743 functions with noreturn attribute.
9746 * varasm.c (declare_weak): Add weak attribute to decl if it
9747 doesn't have one already.
9748 (assemble_external): Only add decls to weak_decls if they also
9749 have weak attribute.
9751 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
9753 * var-tracking.c (var_reg_delete): Don't delete the association
9754 between REGs and values or one-part variables if the register
9757 2010-01-14 Jakub Jelinek <jakub@redhat.com>
9760 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
9761 because its first operand is a non-localized variable.
9763 2010-01-14 Martin Jambor <mjambor@suse.cz>
9765 PR tree-optimization/42706
9766 * tree-sra.c (encountered_recursive_call): New variable.
9767 (encountered_unchangable_recursive_call): Likewise.
9768 (sra_initialize): Initialize both new variables.
9769 (callsite_has_enough_arguments_p): New function.
9770 (scan_function): Call decl and flags check only for IPA-SRA, check
9771 whether there is a recursive call and whether it has enough arguments.
9772 (all_callers_have_enough_arguments_p): New function.
9773 (convert_callers): Look for recursive calls only when
9774 encountered_recursive_call is set.
9775 (ipa_early_sra): Bail out either if
9776 !all_callers_have_enough_arguments_p or
9777 encountered_unchangable_recursive_call.
9779 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9781 * sel-sched.c: Add 2010 to copyright years.
9782 * sel-sched-ir.c: Likewise.
9783 * sel-sched-ir.h: Likewise.
9785 2010-01-14 Martin Jambor <mjambor@suse.cz>
9787 PR tree-optimization/42714
9788 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
9789 constructors specially.
9791 2010-01-14 Andi Kleen <ak@linux.intel.com>
9793 * config/i386/drivers-i386.c (detect_caches_intel):
9794 Add l2sizekb parameter and fill in.
9795 (host_detect_local_cpu): Add l2sizekb, fill in.
9796 Add Atom small cache heuristic.
9798 2010-01-14 Andi Kleen <ak@linux.intel.com>
9800 * config/i386/drivers-i386.c (detect_caches_cpuid4):
9801 Add level3 parameter and fill in.
9802 (detect_caches_intel): Handle level3 cache.
9804 2010-01-14 Andi Kleen <ak@linux.intel.com>
9806 * config/i386/drivers-i386.c (host_detect_local_cpu):
9807 Fix core duo detection.
9809 2010-01-14 Andi Kleen <ak@linux.intel.com>
9811 * config/i386/drivers-i386.c (host_detect_local_cpu):
9814 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9816 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
9817 (rs6000_variable_issue_1): this. Use...
9818 (rs6000_variable_issue): here. Reimplement. Print debug info.
9820 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9822 * sel-sched-ir.c (sel_restore_other_notes): Rename to
9823 sel_restore_notes. Update all callers. Call reemit_notes
9826 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9828 PR rtl-optimization/42246
9829 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
9832 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9834 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
9835 all successors is the same as number of successors in current region.
9837 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9839 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
9840 to rename is not separable. Otherwise check that its LHS is not NULL.
9842 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9844 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
9846 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9848 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
9849 available registers when failed to discover LHS register class.
9850 Fix indentation. Update comment.
9852 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9853 Alexander Monakov <amonakov@ispras.ru>
9855 PR rtl-optimization/42389
9856 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
9858 (advance_state_on_fence): Likewise.
9859 (sel_target_adjust_priority): Print debug output only when
9860 sched_verbose >= 4, not 2.
9861 (get_expr_cost): Do not issue all unique insns on the next cycle.
9862 (fill_insns): Initialize can_issue_more from the value saved
9864 * sel-sched-ir.c (flist_add): New parameter issue_more.
9865 Init FENCE_ISSUE_MORE with it.
9866 (merge_fences): Likewise.
9867 (init_fences): Update call to flist_add.
9868 (add_to_fences, add_clean_fence_to_fences)
9869 (add_dirty_fence_to_fences): Likewise.
9870 (move_fence_to_fences): Update call to merge_fences.
9871 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
9873 * sel-sched-ir.h (struct _fence): New field issue_more.
9874 (FENCE_ISSUE_MORE): New accessor macro.
9876 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9878 PR rtl-optimization/42388
9879 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
9880 that have no predecessors nor successors. Do not call move_bb_info
9881 for empty blocks outside of current region.
9883 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9885 PR rtl-optimization/42294
9886 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
9887 * sel-sched.c (move_exprs_to_boundary): Transitively add all
9888 originators' originators.
9890 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
9892 PR rtl-optimization/39453
9893 PR rtl-optimization/42246
9894 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
9896 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
9898 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9899 Alexander Monakov <amonakov@ispras.ru>
9902 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
9903 (maybe_tidy_empty_bb): ... here. Make static. Add new
9904 argument. Update all callers.
9905 (tidy_control_flow): ... and here. Recompute topological order
9906 of basic blocks in region if necessary.
9907 (sel_redirect_edge_and_branch): Change return type. Return true
9908 if topological order might have been invalidated.
9909 (purge_empty_blocks): Export and move from...
9910 * sel-sched.c (purge_empty_blocks): ... here.
9911 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
9912 (maybe_tidy_empty_bb): Delete prototype.
9913 (purge_empty_blocks): Declare.
9915 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
9917 PR rtl-optimization/42249
9918 * sel-sched.c (try_replace_dest_reg): When chosen register
9919 and original register is the same, do not bail out early, but
9920 still check all original insns for validity of replacing destination
9921 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
9924 2010-01-14 Jakub Jelinek <jakub@redhat.com>
9927 Port from no-undefined-overflow branch:
9928 2009-03-09 Richard Guenther <rguenther@suse.de>
9930 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
9932 2010-01-14 Richard Guenther <rguenther@suse.de>
9935 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
9937 2010-01-14 Ira Rosen <irar@il.ibm.com>
9939 PR tree-optimization/42709
9940 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
9941 as scalar type in creation of constant vector operand.
9943 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9946 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
9947 (check-parallel-%): Match `testsuite' directory component only
9950 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
9952 PR translation/39521
9953 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
9956 2010-01-13 Richard Guenther <rguenther@suse.de>
9958 PR tree-optimization/42730
9959 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
9962 2010-01-13 Steve Ellcey <sje@cup.hp.com>
9965 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
9966 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
9969 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
9971 * config/bfin/libgcc-bfin.ver: Regenerate based on current
9972 libgcc-std.ver. Add entries for ___smulsi3_highpart and
9973 ___umulsi3_highpart.
9975 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
9976 rather than schedule_insns if the pass is enabled.
9978 2010-01-13 Martin Jambor <mjambor@suse.cz>
9980 PR tree-optimization/42704
9981 * tree-sra.c (sra_modify_assign): Do not delete assignments to
9984 2010-01-13 Martin Jambor <mjambor@suse.cz>
9986 PR tree-optimization/42703
9987 * tree-sra.c (analyze_access_subtree): Check that we can build a
9988 reference to the original data within the aggregate.
9990 2010-01-13 Richard Guenther <rguenther@suse.de>
9992 PR tree-optimization/42705
9993 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
9995 2010-01-13 Richard Guenther <rguenther@suse.de>
9998 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
10000 2010-01-13 Jakub Jelinek <jakub@redhat.com>
10003 * var-tracking.c (values_to_unmark): New variable.
10004 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
10005 values_to_unmark vector. Moved body to...
10006 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
10007 instead queue it into values_to_unmark vector.
10008 (vt_find_locations): Free values_to_unmark vector.
10010 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
10012 * config/s390/s390.c (override_options): Set
10013 default of max-pending-list-length to 256
10015 2010-01-13 Richard Guenther <rguenther@suse.de>
10018 * tree-pass.h (PROP_gimple_lcx): New.
10019 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
10020 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
10021 before the final cleanup_eh.
10022 (dump_properties): Dump PROP_gimple_lcx.
10023 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
10024 (tree_lower_complex_O0): Remove.
10025 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
10026 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
10027 tree_lower_complex, schedule TODO_update_ssa.
10028 * lto-streamer-out.c (output_function): Stream the functions
10030 * lto-streamer-in.c (input_function): Likewise.
10031 (lto_read_body): Do not override them here.
10033 2010-01-12 Joseph Myers <joseph@codesourcery.com>
10036 * c-typeck.c (build_c_cast): Fold value cast to union type before
10037 wrapping it in a CONSTRUCTOR.
10039 2010-01-12 Jakub Jelinek <jakub@redhat.com>
10041 PR rtl-optimization/42699
10042 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
10045 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10047 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
10048 SUBTARGET_WARN_UNUSED_SPEC): Move ...
10049 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
10050 SUBTARGET_WARN_UNUSED_SPEC): ... here
10051 * config/mips/iris5.h (LIBGCC_SPEC): Define.
10053 2010-01-12 Julian Brown <julian@codesourcery.com>
10055 * config/arm/neon-schedgen.ml (Utils): Don't try to
10056 open missing module.
10057 (find_with_result): New.
10059 2010-01-12 Jakub Jelinek <jakub@redhat.com>
10062 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
10063 sharing when canonicalizing ({lt,ge}u (plus a b) b).
10065 PR tree-optimization/42645
10066 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
10067 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
10068 decl_map, set processing_debug_stmt to -1 and return name without
10071 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
10073 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
10074 binutils version, and reword target configuration description.
10076 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
10078 * config/avr/avr.h (LINKER_NAME): Remove.
10080 2010-01-11 Janis Johnson <janis187@us.ibm.com>
10083 * config/rs6000/rs6000.c (rs6000_override_options): On targets
10084 that support VSX, warn for -mno-altivec if vsx is not disabled,
10087 2010-01-11 Joseph Myers <joseph@codesourcery.com>
10088 Shujing Zhao <pearly.zhao@oracle.com>
10090 PR translation/42469
10091 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
10092 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
10093 character between option name and help text.
10094 * c.opt (imultilib): Likewise.
10096 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
10098 * lto-streamer-out.c (output_unreferenced_globals): Output static
10101 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
10103 PR rtl-optimization/42621
10104 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
10105 optimizing for size.
10106 (duplicate_computed_gotos): Remove now-redundant check.
10108 2010-01-10 Steve Ellcey <sje@cup.hp.com>
10111 * configure.ac: Save and restore LDFLAGS and LIBS
10112 * configure: Regenerate.
10114 2010-01-10 Richard Guenther <rguenther@suse.de>
10116 PR middle-end/42667
10117 * builtins.c (fold_builtin_strlen): Add type argument and
10118 convert the resulting length to it.
10119 (fold_builtin_1): Adjust.
10121 2010-01-09 Jakub Jelinek <jakub@redhat.com>
10123 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
10124 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
10126 (num_insns_constant_wide): Adjust for that change.
10128 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10131 * web.c (union_defs): Add used argument, to combine uses of
10132 uninitialized regs.
10133 (entry_register): Adjust type and tests of used argument.
10134 (web_main): Widen used for new use. Pass it to union_defs.
10135 * df.h (union_defs): Adjust prototype.
10137 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10140 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
10141 uses in new incoming argument. Free body.
10142 (reset_debug_uses_in_loop): New.
10143 (analyze_insn_to_expand_var): Call the latter if the former found
10144 anything. Fix whitespace. Reject invalid dest overlaps before
10145 going through all insns in the loop.
10147 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10150 * haifa-sched.c (dying_use_p): Debug insns don't count.
10152 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10154 PR middle-end/42363
10155 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
10156 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
10157 (verify_gimple_call): Reject LHS in noreturn calls.
10159 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10163 * tree-vect-loop-manip.c (adjust_info): New type.
10164 (adjust_vec): New pointer to vector.
10165 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
10166 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
10167 (slpeel_update_phis_for_duplicate_loop): Use them.
10168 (slpeel_update_phi_nodes_for_guard1): Likewise.
10169 (slpeel_update_phi_nodes_for_guard2): Likewise.
10170 (slpeel_tree_peel_loop_to_edge): Likewise.
10171 (vect_update_ivs_after_vectorizer): Likewise.
10173 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10175 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
10176 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
10178 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
10180 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
10181 bogus uninitialized warning.
10183 2010-01-09 Richard Guenther <rguenther@suse.de>
10185 PR middle-end/42512
10186 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
10187 the evolution is compatible with the initial condition.
10189 2010-01-09 Jakub Jelinek <jakub@redhat.com>
10191 * gcc.c (process_command): Update copyright notice dates.
10192 * gcov.c (print_version): Likewise.
10193 * gcov-dump.c (print_version): Likewise.
10194 * mips-tfile.c (main): Likewise.
10195 * mips-tdump.c (main): Likewise.
10197 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
10200 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
10202 (rotlhi3_8): Delete.
10204 (rotlsi3_8): Delete.
10205 (rotlsi3_16): Delete.
10206 (rotlsi3_24): Delete.
10207 (rotl<mode>3): New.
10208 (*rotw<mode>3): New.
10209 (*rotb<mode>3): New.
10210 * config/avr/avr.c (avr_rotate_bytes): New function.
10211 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
10213 2010-01-08 Steve Ellcey <sje@cup.hp.com>
10216 * configure.ac: Modify -rdynamic check.
10217 * configure: Regenerate.
10219 2010-01-08 DJ Delorie <dj@redhat.com>
10221 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
10222 register popping order.
10224 2010-01-08 Richard Guenther <rguenther@suse.de>
10227 * c.opt (fsigned-char): Also let LTO handle this option.
10228 (funsigned-char): Likewise.
10230 2010-01-07 Richard Guenther <rguenther@suse.de>
10232 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
10233 (gimple_op): Likewise.
10234 (gimple_op_ptr): Likewise.
10235 (gimple_assign_set_lhs): Remove gcc_assert.
10236 (gimple_assign_set_rhs1): Likewise.
10237 (gimple_assign_set_rhs2): Likewise.
10238 (gimple_call_set_lhs): Likewise.
10239 (gimple_call_set_fn): Likewise.
10240 (gimple_call_set_fndecl): Likewise.
10241 (gimple_call_fndecl): Likewise.
10242 (gimple_call_return_type): Likewise.
10243 (gimple_call_set_chain): Likewise.
10244 (gimple_call_num_args): Likewise.
10245 (gimple_call_set_arg): Likewise.
10246 (gimple_cond_set_code): Likewise.
10247 (gimple_cond_set_lhs): Likewise.
10248 (gimple_cond_set_rhs): Likewise.
10249 (gimple_cond_set_true_label): Likewise.
10250 (gimple_cond_set_false_label): Likewise.
10251 (gimple_label_set_label): Likewise.
10252 (gimple_goto_set_dest): Likewise.
10253 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
10254 (gimple_debug_bind_get_value): Likewise.
10255 (gimple_debug_bind_get_value_ptr): Likewise.
10256 (gimple_debug_bind_set_var): Likewise.
10257 (gimple_debug_bind_set_value): Likewise.
10258 (gimple_debug_bind_reset_value): Likewise.
10259 (gimple_debug_bind_has_value_p): Likewise.
10260 (gimple_return_retval_ptr): Remove gcc_assert.
10261 (gimple_return_retval): Likewise.
10262 (gimple_return_set_retval): Likewise.
10263 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
10264 (safe_referenced_var_iterator): Remove.
10265 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
10266 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
10267 (fill_referenced_var_vec): Remove.
10268 (first_readonly_imm_use): Remove redundant gcc_assert.
10269 (phi_arg_index_from_use): Combine gcc_asserts.
10270 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
10271 (first_imm_use_stmt): Remove redundant gcc_assert.
10272 * tree-cfg.c (verify_gimple_call): Verify function and chain
10273 operands. Verify arguments.
10274 (verify_types_in_gimple_stmt): Verify condition code and labels.
10276 2010-01-07 Richard Guenther <rguenther@suse.de>
10278 PR tree-optimization/42641
10279 * sese.c (rename_map_elt_info): Use the SSA name version, do
10282 2010-01-07 Jakub Jelinek <jakub@redhat.com>
10284 PR tree-optimization/42625
10285 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
10286 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
10288 2010-01-07 Duncan Sands <baldrick@free.fr>
10290 * Makefile.in (PLUGIN_HEADERS): Add version.h.
10292 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
10295 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
10296 note itself is not function_invariant_p.
10298 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
10300 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
10301 Do not add the DF_NOTE problem.
10302 * store-motion.c (execute_rtl_store_motion): Likewise.
10304 2010-01-07 Martin Jambor <mjambor@suse.cz>
10306 PR tree-optimization/42157
10307 * tree-sra.c (compare_access_positions): Stabilize sort if both
10308 accesses have integer types, return zero immediately if they are the
10311 2010-01-06 Richard Henderson <rth@redhat.com>
10313 PR middle-end/41883
10314 * haifa-sched.c (add_to_note_list): Merge into ...
10315 (concat_note_lists): ... here, and ...
10316 (unlink_other_notes, rm_other_notes): Merge into...
10317 (remove_notes): ... here. Create REG_SAVE_NOTEs for
10318 NOTE_INSN_EPILOGUE_BEG.
10320 2010-01-06 Richard Guenther <rguenther@suse.de>
10322 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
10323 not inline regular functions into always-inline functions.
10325 2010-01-06 Nick Clifton <nickc@redhat.com>
10327 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
10328 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
10330 (OVERRIDE_OPTIONS): Delete.
10331 (OPTIMIZATION_OPTIONS): Define.
10332 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
10333 * config/rx/rx.c (rx_handle_option): Issue an error message if
10334 -mcpu=rx200 and -fpu are used together.
10335 (rx_set_optimization_options): New function. Issue an error
10336 message if an optimization attribute attempts to reset the FPU/
10337 math optimization pairing.
10338 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
10339 * config/rx/rx.opt: Set the default to 32-bit doubles.
10340 * config/rx/t-rx: Add multilibs for -nofpu option.
10341 * doc/invoke.texi: Update documentation of RX options.
10343 2010-01-06 Richard Guenther <rguenther@suse.de>
10345 * tree-ssa-pre.c (name_to_id): New global.
10346 (alloc_expression_id): Simplify SSA name handling.
10347 (lookup_expression_id): Likewise.
10348 (init_pre): Zero name_to_id.
10349 (fini_pre): Free it.
10351 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
10353 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
10355 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
10358 * config/i386/sse.md (smaxv2di3): New.
10359 (umaxv2di3): Likewise.
10360 (sminv2di3): Likewise.
10361 (uminv2di3): Likewise.
10363 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
10366 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
10367 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
10368 (legitimize_tls_address): Likewise.
10369 (sparc_tls_referenced_p): Likewise.
10370 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
10371 and adjust calls to legitimize_pic_address.
10372 (legitimate_constant_p) Use sparc_tls_referenced_p.
10373 (legitimate_pic_operand_p): Likewise.
10374 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
10375 (sparc_tls_symbol_ref_1): Delete.
10376 (sparc_tls_referenced_p): Make static, recognize specific patterns.
10377 (legitimize_tls_address): Make static, handle CONST patterns.
10378 (legitimize_pic_address): Make static, remove unused parameter and
10379 adjust recursive calls.
10380 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
10381 and adjust call to legitimize_pic_address.
10382 (sparc_output_mi_thunk): Likewise.
10384 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
10385 H.J. Lu <hongjiu.lu@intel.com>
10388 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
10389 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
10390 operands to make them signed.
10393 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10396 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
10397 GTU to GT for V4SI and V2DI.
10399 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
10400 (umin<mode>3): Removed.
10402 (uminv4si3): Likewise.
10404 2010-01-05 Martin Jambor <mjambor@suse.cz>
10406 PR tree-optimization/42462
10407 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
10408 current_function_decl to helper functions and macros.
10410 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10413 * flags.h: Don't include real.h.
10414 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
10415 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
10416 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
10417 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
10418 * dominance.c: Update copyright.
10419 * gimple.c (walk_gimple_op): Remove inline.
10420 * tree-ssa-reassoc.c: Include real.h.
10421 * Makefile.in (FLAGS_H): Remove $(REAL_H).
10422 (tree-ssa-reassoc.o): Depend on $(REAL_H).
10424 2010-01-05 Nick Clifton <nickc@redhat.com>
10426 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
10427 register to push into the stack frame when the accumulator has to
10428 be saved during interrupts.
10430 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
10432 * doc/invoke.texi: Remove the documentation about option
10433 -Wunreachable-code.
10434 * common.opt (Wunreachable-code): Preserved for backward
10436 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
10437 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
10438 the backward compatibility flag section.
10440 2010-01-05 Richard Guenther <rguenther@suse.de>
10442 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
10444 2010-01-05 Jakub Jelinek <jakub@redhat.com>
10447 * cfgexpand.c (expand_one_var): Diagnose too large variables.
10449 PR tree-optimization/42508
10450 * tree-sra.c (convert_callers): Check for recursive call
10451 by comparing cgraph nodes instead of decls.
10452 (modify_function): Call ipa_modify_formal_parameters also
10453 on all same_body aliases.
10455 * cgraphunit.c (cgraph_materialize_all_clones): Compare
10456 cgraph nodes when checking for same_body aliases.
10458 2010-01-05 Richard Guenther <rguenther@suse.de>
10460 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
10461 allocation and lookup.
10462 (get_or_alloc_expr_for_constant): Likewise.
10463 (phi_translate): Sink allocation.
10465 2010-01-04 Richard Guenther <rguenther@suse.de>
10467 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
10468 a new entry only if needed.
10469 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
10470 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
10472 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
10474 (phi_translate): Handle CONSTANTs early.
10476 2010-01-04 Martin Jambor <mjambor@suse.cz>
10478 PR tree-optimization/42398
10479 * tree-sra.c (struct access): Removed flag grp_different_types.
10480 (dump_access): Do not dump the removed flag.
10481 (sort_and_splice_var_accesses): Do not set the removed flag.
10482 (sra_modify_expr): Check for type compatibility directly.
10484 2010-01-04 Martin Jambor <mjambor@suse.cz>
10486 PR tree-optimization/42366
10487 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
10488 edges with variable number of parameters.
10489 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
10490 flag instead of asserting it.
10491 (ipa_read_node_info): Read uses_analysis_done flag.
10493 2010-01-04 Richard Guenther <rguenther@suse.de>
10495 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
10496 iterative_hash_* as intended.
10497 (vn_reference_compute_hash): Likewise. Simplify hashing
10499 (vn_reference_lookup_2): Likewise.
10500 (vn_nary_op_compute_hash): Likewise.
10501 (vn_phi_compute_hash): Likewise.
10502 (expressions_equal_p): Remove strange code.
10503 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
10504 (pre_expr_hash): Likewise. Simplify hashing SSA names.
10505 (bitmap_insert_into_set_1): Take value-id as parameter.
10506 (add_to_value): Pass it.
10507 (bitmap_insert_into_set): Likewise.
10508 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
10510 2010-01-04 Jakub Jelinek <jakub@redhat.com>
10513 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
10514 (do_self_spec): For switches with SWITCH_IGNORE set set also
10515 SWITCH_IGNORE_PERMANENTLY.
10516 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
10519 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
10521 * lto-streamer-out.c (output_unreferenced_globals): Output the full
10522 tree of an unreferenced global var.
10524 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10527 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
10528 GTU to GT for V4SI and V2DI.
10530 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
10531 (umin<mode>3): Removed.
10533 (uminv4si3): Likewise.
10535 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
10538 * collect2.c (main): Turn on trace in collect2 if -v is passed
10541 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
10543 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
10544 description of expression operand.
10546 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
10548 * configure.ac: Add install-html to target_list for Make-hooks.
10549 * configure: Regenerate.
10550 * fortran/Make-lang.in (F95_HTMLFILES): New.
10551 (fortran.html): Use it.
10552 (fortran.install-html): New.
10553 * Makefile.in (install-html): Add lang.install-html.
10554 * java/Make-lang.in (JAVA_HTMLFILES): New.
10555 (java.html): Use it.
10556 (java.install-html): New.
10557 * objc/Make-lang.in (objc.install-html): New.
10558 * objcp/Make-lang.in (obj-c++.install-html): New.
10559 * cp/Make-lang.in (c++.install-html): New.
10560 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
10561 * lto/Make-lang.in (lto.install-html): New.
10563 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
10566 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
10568 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
10570 PR rtl-optimization/41862
10571 * store-motion.c (store_killed_in_insn, compute_store_table,
10572 remove_reachable_equiv_notes, replace_store_insn,
10573 build_store_vectors): Ignore all DEBUG_INSNs.
10575 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
10578 * common.opt: Add dumpdir.
10580 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
10582 (option_map): Add --dumpdir.
10584 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
10586 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
10588 * opts.c (decode_options): Try dump_dir_name first if
10589 dump_base_name isn't an absolute path.
10590 (common_handle_option): Handle OPT_dumpdir.
10592 * toplev.c (dump_dir_name): New.
10593 (print_switch_values): Also ignore -dumpdir.
10595 * toplev.h (dump_dir_name): New.
10597 2010-01-03 Richard Guenther <rguenther@suse.de>
10599 PR tree-optimization/42589
10600 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
10601 double-word expansion of bswap32.
10603 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
10605 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
10606 with BLOCK_FOR_INSN.
10607 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
10608 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
10609 noce_process_if_block): Likewise.
10610 * gcse.c (compute_local_properties, insert_expr_in_table,
10611 insert_set_in_table, canon_list_insert, find_avail_set,
10612 pre_insert_copy_insn): Likewise.
10614 * basic-block.h (BLOCK_NUM): Move from here...
10615 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
10617 2010-01-03 Richard Guenther <rguenther@suse.de>
10619 PR tree-optimization/42438
10620 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
10621 contains_may_not_return_call flag.
10622 (BB_MAY_NOTRETURN): New.
10623 (valid_in_sets): Trapping nary operations are not valid
10624 in blocks that may not return.
10625 (insert_into_preds_of_block): Remove check for trapping expressions.
10626 (compute_avail): Compute also BB_MAY_NOTRETURN.
10628 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
10630 * doc/invoke.texi: Add 2010 to copyright years.
10632 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
10634 * config/sparc/sparc.c: Fix formatting nits.
10636 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
10637 Alexander Monakov <amonakov@ispras.ru>
10639 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
10641 2010-01-02 Richard Guenther <rguenther@suse.de>
10643 PR middle-end/42577
10644 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
10645 (simplify_switch_using_ranges): Mark to be removed edges
10648 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10650 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
10652 * collect2.c (scan_libraries): Add missing argument in call to
10655 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
10658 * config/alpha/predicates.md (aligned_memory_operand): Return false
10660 (unaligned_memory_operand): Return true for CQImode.
10661 * config/alpha/alpha.c (get_aligned_mem): Assert that location
10662 doesn not cross aligned SImode word boundary.
10664 2010-01-02 Anatoly Sokolov <aesok@post.ru>
10666 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
10668 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
10669 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
10671 2010-01-02 Richard Guenther <rguenther@suse.de>
10674 * toplev.c (compile_file): Emit LTO marker properly. Change
10675 it to __gnu_lto_v1.
10676 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
10678 2010-01-01 Richard Guenther <rguenther@suse.de>
10681 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
10683 2010-01-01 Richard Guenther <rguenther@suse.de>
10686 * c-decl.c (grokdeclarator): For zero-size arrays force
10687 structural equality checks as layout_type does.
10689 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
10691 * builtins.c: Update copyright to 2010.
10693 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
10696 * lto-streamer-out.c (produce_asm): Revert the last change.
10697 (copy_function): Likewise.
10699 * lto-streamer.c (lto_get_section_name): Skip any leading
10702 2010-01-01 Richard Guenther <rguenther@suse.de>
10704 PR middle-end/42559
10705 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
10709 Copyright (C) 2010 Free Software Foundation, Inc.
10711 Copying and distribution of this file, with or without modification,
10712 are permitted in any medium without royalty provided the copyright
10713 notice and this notice are preserved.