1 2010-06-03 Jakub Jelinek <jakub@redhat.com>
4 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
5 return false if merging the bbs would lead to goto_locus
6 location being lost from the IL.
8 2010-06-03 Jan Hubicka <jh@suse.cz>
9 Jakub Jelinek <jakub@redhat.com>
11 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
12 set->regs[i] is NULL or has just one entry.
14 2010-06-03 Jan Hubicka <jh@suse.cz>
16 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
17 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
19 2010-06-03 Paul Brook <paul@codesourcery.com>
21 * config/arm/arm.c (FL_TUNE): Define.
22 (arm_default_cpu, arm_cpu_select): Remove.
23 (all_cores): Populate core field.
24 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
25 (arm_find_cpu): New function.
26 (arm_handle_option): Lookup cpu/architecture names.
27 (arm_override_options): Cleanup mcpu/march/mtune handling.
28 (arm_file_start): Ditto.
30 2010-06-03 Alan Modra <amodra@gmail.com>
33 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
34 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
35 rtx to gen_load_toc_v4_PIC_1b. Tidy.
36 (rs6000_emit_load_toc_table): Likewise.
38 2010-06-02 Jan Hubicka <jh@suse.cz>
40 * passes.c (init_optimization_passes): Put ipa reference
43 2010-06-02 Jan Hubicka <jh@suse.cz>
45 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
46 calls_read_all and calls_write_all.
47 (get_reference_optimization_summary): Fix formatting.
48 (is_proper_for_analysis): Check that decl is not readonly.
49 (propagate_bits): Check CONST/PURE/noreturn flags.
50 (ipa_init): Move all_module_statics to optimization_summary_obstack.
51 (analyze_function): Ignore indirect edges.
52 (copy_global_bitmap): For all module statics, do nothing.
53 (generate_summary): Do not print calls_read_all/calls_write_all.
54 (read_write_all_from_decl): Take node as argument; check
55 cgraph_node_cannot_return.
56 (propagate): Reorganize read_all/write_all computation;
57 check indirect edges; check ecf flags; use all_module_statics
58 in the results; do not free all_module_statics.
59 (stream_out_bitmap): Handle all_module_statics.
60 (ipa_reference_write_optimization_summary): Likewise; use
61 varpool/cgraph encoders to get boundaries.
62 (ipa_reference_read_optimization_summary): Read in all_module_statics;
65 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
68 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
69 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision
72 * doc/extend.texi (powerpc builtins): Document vec_recip,
73 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
75 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New
77 (rs6000_emit_swrsqrt): Ditto.
78 (rs6000_emit_swdivsf): Delete.
79 (rs6000_emit_swdivdf): Ditto.
80 (rs6000_emit_swrsqrtsf): Ditto.
82 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
83 describe the reciprocal estimate support for each type.
84 (recip_options): Map -mrecip=<opt> into option bits.
85 (gen_2arg_fn_t): New typedef for binary rtx gen function.
86 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
87 reciprocal estimate instructions.
88 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
89 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
90 Set up rs6000_recip_bits based on the -mrecip* options. Print the
91 cost information if -mdebug=cost or -mdebug=reg.
92 (rs6000_override_options): Set -mrecip-precision for power6, and
93 power7 machines. If -mvsx or -mdfp, enable various options that
94 came in previous instruction set ISAs, unless the option was
95 explicitly disabled by the command line option. Parse
96 -mrecip=<opt> options.
97 (rs6000_builtin_vectorized_function): Add support for vectorizing
98 the reciprocal estimate builtins and expansions.
99 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
100 (bdesc_2arg): Add reciprocal estimate builtins.
101 (bdesc_1arg): Add reciprocal square root estimate builtins.
102 (rs6000_expand_builtin): Rewrite to use a switch statement,
103 instead of multiple if/then/elses. Add reciprocal estimate
105 (rs6000_init_builtins): Create declarations for reciprocal
107 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
108 sized, prefer traditional floating point registers, if integer
109 vector types, prefer altivec registers. Don't actually look at
110 the memory address any more.
111 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
113 (rs6000_load_constant_and_splat): New helper function to load up
114 the constant for reciprocal estimate instructions.
115 (rs6000_emit_madd): New helper function for generating
116 multiply/add type instructions, based on the current switches.
117 (rs6000_emit_msub): Ditto.
118 (rs6000_emit_mnsub): Ditto.
119 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
120 replace a divide with a reciprocal estimate and fixup, adding
121 support for machines with high precision and vectors.
122 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
123 low precision machines.
124 (rs6000_emit_swdiv): New common function to be called to replace a
125 division with reciprocal estimate and fixup.
126 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
127 for double and vector types. Add support for high precision
130 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
131 the reciprocal estimate instructions can be generated.
133 (TARGET_FRSQRTES): Ditto.
134 (TARGET_FRSQRTE): Ditto.
135 (RS6000_RECIP_*): New macros for reciprocal estimate support.
137 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
138 square root estimate on vectors.
139 (re<mode>2): New insn for reciprocal division estimate on vectors.
141 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
143 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
144 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
145 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
146 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
147 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
148 (RS6000_BUILTIN_RSQRT): Ditto.
149 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
150 floating point builtin.
152 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
153 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
154 __RECIP_PRECISION__ based on the command line switches.
155 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
157 * config/rs6000/rs6000.opt (-mrecip): Document add support for
158 replacing division instructions with reciprocal estimate and
160 (-mrecip=<opt>): New option.
161 (-mrecip-precision): Ditto.
163 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
164 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
165 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
168 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
169 (UNSPEC_VREFP): Ditto.
170 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
171 conterparts with regard to support of -mno-fused-madd and
173 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
174 reciprocal estimate instructions to be generated.
175 (altivec_vrefp): Ditto.
177 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
179 (rreg): New mode attribute for reciprocal estimate support.
180 (recip<mode>3): New insn for division using reciprocal estimate
182 (divide define_split): New define_split to convert floating point
183 division to use reciprocal estimate if the user used the
184 appropriate options and the split is run when we can add new
185 pseudo registers for the fixup.
186 (rsqrt<mode>2): New insn for reciprocal square root support.
187 (recipsf3): Move into recip<mode>3.
189 (fres): Use TARGET_FRES.
190 (rsqrtsf2): Move into rsqrt<mode>2.
191 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
192 (copysignsf3): Add support for VSX.
193 (fred): Use TARGET_FRE.
195 (rsqrtdf_internal1): New function for frsqrte instruciton.
197 * config/rs6000/altivec.h (vec_recipdiv): Define new vector
201 2010-06-03 Richard Guenther <rguenther@suse.de>
204 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
205 (set_user_assembler_libfunc): Likewise.
207 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
209 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
211 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
213 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
214 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
215 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
216 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
217 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
218 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
219 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
220 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
221 * defaults.h: Updated for above mentioned changes.
223 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
225 * c-common.c: Remove header include of tm_p.h.
226 * Makefile.in (c-common.o): Remove TM_P_H dependency.
228 2010-06-02 Jakub Jelinek <jakub@redhat.com>
230 * tree.h (struct tree_decl_map): New type.
231 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
232 (tree_decl_map_hash): New prototype.
233 (debug_expr_for_decl, value_expr_for_decl): Change into
234 tree_decl_map hashtab from tree_map.
235 (init_ttree): Adjust initialization.
236 (tree_decl_map_hash): New function.
237 (decl_debug_expr_lookup, decl_debug_expr_insert,
238 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
240 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
242 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
244 * configure: Regenerate.
245 * config.in: Regenerate.
247 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
248 (X86_64_EMULATION): Define.
249 (TARGET_LD_EMULATION): Use them.
251 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
252 (SPARC64_EMULATION): Define.
253 (LINK_ARCH_SPEC): Use them.
255 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
257 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
258 smallest_mode_for_size for computing the precision types of new
259 graphite IVs. Do not call lang_hooks.types.type_for_size.
261 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
263 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
265 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
267 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
270 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
271 return false instead.
273 2010-06-02 Jan Hubicka <jh@suse.cz>
276 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
277 create new cgraph node to check callee.
279 2010-06-02 Richard Guenther <rguenther@suse.de>
281 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
283 2010-06-02 Richard Guenther <rguenther@suse.de>
285 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
286 (lto_wrapper_cleanup): ... this. Do not exit.
287 (fatal): Adjust. Exit here.
288 (fatal_perror): Likewise.
289 (fatal_signal): New function.
290 (main): Set up signal handlers to cleanup temporary files.
291 * Makefile.in (lto-wrapper.o): Adjust dependencies.
293 2010-06-02 Richard Guenther <rguenther@suse.de>
295 PR tree-optimization/44377
296 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
298 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
300 * config/s390/2097.md (z10_fhex): Remove insn reservation.
301 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
302 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
303 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
305 * config/s390/s390.c: Don't accept fp zeros as valid constants
308 2010-06-02 Jan Hubicka <jh@suse.cz>
310 * bitmap.c (bitmap_descriptor): Add search_iter.
311 (bitmap_find_bit): Increment it.
312 (print_statistics): Print it.
314 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
316 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
317 instead of gimple_build_call_vec. Delete unnecessary local variable.
319 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
321 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
322 change from yesterday.
324 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
326 * c-ada-spec.c: Clean up redundant includes.
328 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
330 * gimplify.c: Do not include except.h and optabs.h.
331 (gimplify_body): Do not initialize RTL profiling.
332 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
333 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
334 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
335 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
338 * tree-pretty-print.h: Include pretty-print.h.
339 * gimple-pretty-print.h: Include pretty-print.h.
341 * tree-pretty-print.c: Do not include diagnostic.h.
342 * tree-vrp.c: Likewise.
343 * tree-tailcall.c: Likewise
344 * tree-scalar-evolution.c: Likewise
345 * tree-ssa-dse.c: Likewise
346 * tree-chrec.c: Likewise
347 * tree-ssa-sccvn.c: Likewise
348 * tree-ssa-copyrename.c: Likewise
349 * tree-nomudflap.c: Likewise
350 * tree-call-cdce.c: Likewise
351 * tree-stdarg.c: Likewise
352 * tree-ssa-math-opts.c: Likewise
353 * tree-nrv.c: Likewise
354 * tree-ssa-sink.c: Likewise
355 * tree-browser.c: Likewise
356 * tree-ssa-loop-ivcanon.c: Likewise
357 * tree-ssa-loop.c: Likewise
358 * tree-parloops.c: Likewise
359 * tree-ssa-address.c: Likewise
360 * tree-ssa-ifcombine.c: Likewise
361 * tree-if-conv.c: Likewise
362 * tree-data-ref.c: Likewise
363 * tree-affine.c: Likewise
364 * tree-ssa-phiopt.c: Likewise
365 * tree-ssa-coalesce.c: Likewise
366 * tree-ssa-pre.c: Likewise
367 * tree-ssa-live.c: Likewise
368 * tree-predcom.c: Likewise
369 * tree-ssa-forwprop.c: Likewise
370 * tree-ssa-dce.c: Likewise
371 * tree-ssa-ter.c: Likewise
372 * tree-ssa-loop-prefetch.c: Likewise
373 * tree-optimize.c: Likewise
374 * tree-ssa-phiprop.c: Likewise
375 * tree-object-size.c: Likewise
376 * tree-outof-ssa.c: Likewise
377 * tree-ssa-structalias.c: Likewise
378 * tree-switch-conversion.c: Likewise
379 * tree-ssa-reassoc.c: Likewise
380 * tree-ssa-operands.c: Likewise
381 * tree-vectorizer.c: Likewise
382 * tree-vect-data-refs.c: Likewise
383 * tree-vect-generic.c: Likewise
384 * tree-vect-stmts.c: Likewise
385 * tree-vect-patterns.c: Likewise
386 * tree-vect-slp.c: Likewise
387 * tree-vect-loop.c: Likewise
388 * tree-ssa-loop-ivopts.c: Likewise
389 * tree-ssa-loop-im.c: Likewise
390 * tree-ssa-loop-niter.c: Likewise
391 * tree-ssa-loop-unswitch.c: Likewise
392 * tree-ssa-loop-manip.c: Likewise
393 * tree-ssa-loop-ch.c: Likewise
394 * tree-dump.c: Likewise
395 * tree-complex.c: Likewise
397 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
398 * tree-ssa-uninit.c: Likewise
399 * tree-ssa-threadupdate.c: Likewise
400 * tree-ssa-uncprop.c: Likewise
401 * tree-ssa-ccp.c: Likewise
402 * tree-ssa-dom.c: Likewise
403 * tree-ssa-propagate.c: Likewise
404 * tree-ssa-alias.c: Likewise
405 * tree-dfa.c: Likewise
406 * tree-cfgcleanup.c: Likewise
407 * tree-sra.c: Likewise
408 * tree-ssa-copy.c: Likewise
409 * tree-ssa.c: Likewise
410 * tree-profile.c: Likewise
411 * tree-cfg.c: Likewise
412 * tree-ssa-threadedge.c: Likewise
413 * tree-vect-loop-manip.c: Likewise
415 * tree-inline.c: Do not include diagnostic.h and expr.h.
417 (copy_decl_for_dup_finish): Do not use NULL_RTX.
419 * tree-loop-linear.c: Do not include diagnostic.h, expr.h,
421 * tree-loop-distribution.c: Likewise.
423 2010-06-01 Jan Hubicka <jh@suse.cz>
425 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
427 2010-06-01 Jan Hubicka <jh@suse.cz>
429 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
431 (split_bbs_on_noreturn_calls) .... here.
432 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
433 * tree-flow.h (fixup_noreturn_call): New.
435 2010-06-01 Jan Hubicka <jh@suse.cz>
437 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
439 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
441 * tree.h (build_nt_call_list): Delete.
442 * tree.c (build_nt_call_list): Delete.
444 2010-06-01 Jan Hubicka <jh@suse.cz>
446 * fwprop.c: Make emit-rtl.h include last.
447 * rtlanal.c: Include emit-rtl.h.
448 * genautomata.c: Output emit-rtl include into insn-automata.c
449 * df-scan.c: Include emit-rtl.h.
450 * haifa-sched.c: Indlude emit-rtl.h.
451 * mode-switching.c: Indlude emit-rtl.h.
452 * graph.c: Indlude emit-rtl.h.
453 * sel-sched.c: Include emit-rtl.h.
454 * sel-sched-ir.c: Include emit-rtl.h.
455 * ira-build.c: Include emit-rtl.h.
456 * emit-rtl.c: (first_insn, last_insn): Remove defines.
457 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
459 (set_new_first_and_last_insn, get_last_insn_anywhere, get_first_nonnote_insn,
460 get_last_nonnote_insn, try_split, make_call_insn_raw, add_insn_after,
461 add_insn_before, remove_insn, delete_insns_since, reorder_insns_nobb,
462 emit_insn_after_1, emit_debug_insn_before, emit_insn, start_sequence,
463 push_to_sequence, push_to_sequence2, push_topmost_sequence, end_sequence,
464 copy_insn): Use accessor functions.
465 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
466 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
467 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
468 mem_expr_equal_p): Move here from rtl.h
469 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
470 Move here from emit-rtl.c; make inline.
471 * cfglayout.h: Include emit-rtl.h
472 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
473 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
474 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
475 mem_expr_equal_p, get_insns, set_first-insn, get_last_insn, set_last_insn,
476 get_max_uid): Move to emit-rtl.h.
477 * reg-stack.c: Include emit-rtl.h
480 2010-06-01 Jan Hubicka <jh@suse.cz>
482 * cgraph.h (tree_function_versioning): Update prototype.
483 (cgraph_function_versioning): Update prototype.
484 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
486 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
487 (cgraph_materialize_clone, save_inline_function_body): Update use of
488 tree_function_versioning.
489 * tree-inline.c (copy_bb): Look for previous copied block to link after;
491 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
492 (copy_body): Likewise.
493 (expand_call_inline): Update use of copy_body.
494 (tree_function_versioning): Update use of copy body; accept
495 blocks_to_copy and new_entry.
497 2010-06-01 Jan Hubicka <jh@suse.cz>
499 * gegenrtl.c: Remove unnecesary prototypes.
501 (gendef): Produce static inline.
503 (main): Do not decode parameters; generate header only.
504 * Makefile.in (genrtl.c): Remove.
506 2010-06-01 Jan Hubicka <jh@suse.cz>
508 * tree-switch-conversion.c (build_one_array): Make it readonly.
510 2010-06-01 Richard Guenther <rguenther@suse.de>
512 * optabs.c (init_optabs): Guard all accesses to reinit.
513 * ipa-pure-const.c (propagate): Fix another typo.
514 * opts.c (common_handle_option): Split assignment to bool.
515 * c-opts.c (c_common_handle_option): Likewise.
517 2010-06-01 Arnaud Charlet <charlet@adacore.com>
518 Matthew Gingell <gingell@adacore.com>
520 * doc/invoke.texi: Mention -fdump-ada-spec.
521 * tree-dump.c (dump_files): Add ada-spec.
522 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
523 * tree-pass.h (tree_dump_index): Add TDI_ada.
524 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
525 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
526 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
527 * c-decl.c: Include c-ada-spec.h.
528 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
530 (c_write_global_declarations): Add handling of -fdump-ada-spec.
531 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
532 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
533 * c-ada-spec.h, c-ada-spec.c: New files.
535 2010-06-01 Richard Guenther <rguenther@suse.de>
538 * ipa-pure-const.c (get_function_state): Hand back varying state
539 if we do not have one.
540 (has_function_state): New function.
541 (duplicate_node_data): Adjust.
542 (remove_node_data): Likewise.
543 (pure_const_write_summary): Likewise.
544 (propagate): Likewise. Fix typo.
546 2010-06-01 Jan Hubicka <jh@suse.cz>
548 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
549 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
550 (execute_all_ipa_transforms): Do not play with the states.
552 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
554 * config/arm/t-linux-androideabi: New.
555 * config.gcc (arm*-*-linux-androideabi): Include multilib configuration.
557 2010-06-01 Jan Hubicka <jh@suse.cz>
559 * tree-inline.c (estimate_num_insns): For stdarg functions look
560 into call statement to count cost of argument passing.
562 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
564 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
565 argument for fprintf.
566 (ix86_output_addr_diff_elt): Likewise.
567 (x86_function_profiler): Likewise.
568 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix
569 for x64 no-underscore.
571 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
573 2010-05-31 Jakub Jelinek <jakub@redhat.com>
576 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
577 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
578 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
579 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
580 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
581 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
582 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
583 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
586 2010-05-31 Jan Hubicka <jh@suse.cz>
588 * tree.h (tree_range_check_failed): Declare noreturn.
590 2010-05-31 Jan Hubicka <jh@suse.cz>
592 * gimple.c (gimple_call_builtin_p): New function.
593 * gimple.h (gimple_call_builtin_p): Declare.
594 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
596 (execute_warn_function_return): BUILT_IN_RETURN is return.
597 (split_critical_edges): Return edges are not critical.
598 (is_ctrl_altering_stmt): Builtin_in_return is altering.
599 (gimple_verify_flow_info): Handle built_in_return.
600 (execute_warn_function_return): Handle built_in_return.
601 * ipa-pure-const.c (check_call): Ignore builtin_return.
603 2010-05-31 Jakub Jelinek <jakub@redhat.com>
606 * expr.c (expand_assignment): Don't store anything for out-of-bounds
607 array accesses with non-MEM.
609 PR tree-optimization/44182
610 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
611 newly needs to end a bb is followed by debug stmts, instead return
612 true from the function at the end.
613 (maybe_move_debug_stmts_to_successors): New function.
614 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
616 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
619 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle
622 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
624 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
625 for nested functions in non-optimized compilation.
627 2010-05-31 Richard Guenther <rguenther@suse.de>
629 * tree-ssa-structalias.c (find_func_aliases): Handle
632 2010-05-30 Jan Hubicka <jh@suse.cz>
634 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
636 2010-05-30 Richard Guenther <rguenther@suse.de>
639 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
640 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
643 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
645 * config/darwin.c (output_objc_section_asm_op): Add comment.
646 (name_needs_quotes): Add '_' to list of valid comment chars.
647 (machopic_output_function_base_name): Remove unneeded quotes.
648 (darwin_encode_section_info): Adjust asm whitespace.
649 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
650 (ASM_OUTPUT_LOCAL): Ditto.
651 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
652 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
653 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
655 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
657 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
658 RS6000_OUTPUT_BASENAME unconditionally.
659 (rs6000_output_function_epilogue): Likewise.
661 2010-05-30 Jan Hubicka <jh@suse.cz>
663 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
666 2010-05-30 Richard Guenther <rguenther@suse.de>
668 * tree-cfg.c (verify_gimple_assign_single): Implement
669 verification for COND_EXPR rhs.
671 2010-05-30 Jan Hubicka <jh@suse.cz>
673 * cgraph.h (cgraph_dump_file): Declare.
674 * cgraphunit.c (cgraph_dump_file): Export.
675 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less
678 2010-05-30 Jan Hubicka <jh@suse.cz>
680 * dwarf2out.c (reference_to_unused,
681 premark_types_used_by_global_vars_helper): Avoid creation of new
684 2010-05-30 Jan Hubicka <jh@suse.cz>
686 * cgraph.h (cgraph_node_cannot_return,
687 cgraph_edge_cannot_lead_to_return): New functions.
688 * cgraph.c (cgraph_node_cannot_return,
689 cgraph_edge_cannot_lead_to_return): Use them.
690 * ipa-pure-const.c (pure_const_names): New static var.
691 (check_call): Handle calls not leading to return.
692 (pure_const_read_summary): Dump info read.
693 (propagate): Dump info about propagation process; ignore side
694 effects of functions not leading to exit; fix handling of
697 2010-05-30 Jan Hubicka <jh@suse.cz>
699 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
700 for tail call epilogues.
702 2010-05-30 Jan Hubicka <jh@suse.cz>
704 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
705 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
708 2010-05-29 Jan Hubicka <jh@suse.cz>
710 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
711 node; remove references in node we no longer keep in cgrpah but need
714 2010-05-29 Jan Hubicka <jh@suse.cz>
716 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
718 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
721 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
723 2010-05-29 Jan Hubicka <jh@suse.cz>
725 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
726 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
727 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
728 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
729 debug_names_replaced_by, debug_update_ssa): Likewise.
730 * sbitmap.c (debug_sbitmap): Likewise.
731 * genrecog.c (debug_decision, debug_decision_list): Likewise.
732 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
733 debug_tree_chain): Likewise.
734 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
735 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
736 * optabs.c (debug_optab_libfuncs): Likewise.
737 (verify_loop_closed_ssa): Likewise.
738 * value-prof.c (verify_histograms): Likewise.
739 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
740 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
741 * cfghooks.c (verify_flow_info): Likewise.
742 * fold-const.c (debug_fold_checksum): Likewise.
743 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
744 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
746 * omega.c (debug_omega_problem): Likewise.
747 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
748 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
749 * dominance.c (verify_dominators, debug_dominance_info,
750 debug_dominance_tree): Likewise.
751 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
752 * df_regno_debug, df_ref_debug,
753 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
754 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
755 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
756 * sel-sched.c (debug_state): Likewise.
757 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
759 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
760 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
761 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
762 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
764 * c-pretty-print.c (debug_c_tree): Likewise.
765 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
766 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
767 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
768 * ebitmap.c (debug_ebitmap): Likewise.
769 * function.c (debug_find_var_in_block_tree): Likewise.
770 * print-rtl.c (debug_rtx): Likewise.
771 (debug_rtx_count): Likewise.
772 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
773 * stor-layout.c (debug_rli): Likewise.
774 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
775 * tree-data-ref.c (debug_data_references,
776 debug_data_dependence_relations, debug_data_reference,
777 debug_data_dependence_relation, debug_rdg_vertex,
778 debug_rdg_component, debug_rdg): Likewise.
779 * tree-affine.c (debug_aff): Likewise.
780 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
782 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
783 * emit-rtl.c (verify_rtl_sharing): Likewise.
784 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
785 debug_value_expressions): Likewise.
786 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
787 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
788 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
789 * cfglayout.c (verify_insn_chain): Likewise.
790 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
791 debug_clast_stmt, debug_generated_program): Likewise.
792 * ggc-page.c (debug_print_page_list): Likewise.
793 * tree-ssa-ter.c (debug_ter): Likewise.
794 * graphite-dependences.c (debug_pddr): Likewise.
795 * sched-deps.c (debug_ds): Likewise.
796 * tree-ssa.c (verify_ssa): Likewise.
797 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
798 debug_scattering_functions, debug_iteration_domains, debug_pdr,
799 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
800 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
801 * tree-inline.c (debug_find_tree): Likewise.
802 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
803 debug_ppl_powerset_matrix): Likewise.
804 * var-tracking.c (debug_dv): Likewise.
805 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
806 * cfgloop.c (verify_loop_structure): Likewise.
807 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
808 * c-common.c (verify_sequence_points): Likewise.
809 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
810 debug_candidates, debug_rgn_dependencies): Likewise.
811 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
812 * debug_constraint_graph, debug_solution_for_var,
813 debug_sa_points_to_info): Likewise.
814 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
816 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
817 debug_loops, debug_loop, debug_loop_num): Likewise.
818 * passes.c (debug_pass): Likewise.
819 (dump_properties): Likewise; add cfglayout property.
820 (debug_properties): Likewise.
821 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
822 * varpool.c (debug_varpool): Likewise.
823 * regcprop.c (debug_value_data): Likewise.
824 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
825 debug_immediate_uses_for): Likewise.
827 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
830 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
831 Filter out insn-flags.h.
833 2010-05-29 Jan Hubicka <jh@suse.cz>
835 * cgraph.h (struct varpool_node_set_def,
836 struct cgraph_node_set_def): Remove unused AUX pointer.
837 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
840 2010-05-29 Jan Hubicka <jh@suse.cz>
843 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
845 2010-05-29 Richard Guenther <rguenther@suse.de>
847 * lto-streamer.c (cached_bp): New global variable.
848 (bitpack_create): Return the cached bitpack, if available.
849 (bitpack_delete): Clear and cache the bitpack, if appropriate.
850 (bp_pack_value): Remove redundant asserts.
852 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
855 * tree-if-conv.c (is_true_predicate): New.
856 (is_predicated): Use is_true_predicate.
857 (add_to_predicate_list): Same. Do not use unshare_expr.
858 (add_to_dst_predicate_list): Same.
860 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
862 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
864 (predicate_bbs): Same.
865 (clean_predicate_lists): Same.
866 (find_phi_replacement_condition): Do not AND the predicate from
869 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
872 * Makefile.in (build/gencondmd.o): Add a missing `\'.
874 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
877 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
878 (negdf2): Adjust expander pattern and use negdf2_slow.
881 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
883 * basic-block.h (struct control_flow_graph): Move last_label_uid field
885 * df.h (struct df_base_ref): Move regno field up.
886 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
887 * expr.h (struct separate_ops): Move location field up.
888 * optabs.h (struct optab_d): Move libcall_basename field down.
889 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
890 * config/i386/i386.h (struct machine_function): Convert call_abi field
891 into a bitfield. Move cfa field to the end of the structure.
893 2010-05-29 Jan Hubicka <jh@suse.cz>
895 * varpool.c (varpool_get_node): Fix lookup.
897 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
899 * config/spu/spu-protos.h: Do not include rtl.h. Protect
900 RTL specific prototypes with #ifdef RTX_CODE.
901 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
902 * config/spu/t-spu-elf: Fix dependencies.
904 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
906 2010-05-29 Mike Stump <mikestump@comcast.net>
909 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
910 TM_H when building to avoid dependency loops.
912 2010-05-29 Jan Hubicka <jh@suse.cz>
914 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
915 refs and body; not the whole node for masters of materialized
918 2010-05-29 Mike Stump <mikestump@comcast.net>
920 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
922 2010-05-29 Jan Hubicka <jh@suse.cz>
924 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
925 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
926 use of clone_function_name.
927 * cgraph.h (cgraph_create_virtual_clone,
928 cgraph_function_versioning): update prototypes.
929 (clone_function_name): Declare.
930 * ipa-cp.c (ipcp_insert_stage): Update call of
931 cgraph_create_virtual_clone.
932 * omp-low.c (create_omp_child_function_name): Use
933 cgraph_create_virtual_clone.
934 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
935 (cgraph_function_versioning): Take SUFFIX argument; produce new name
938 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
940 * vec.h: Include statistics.h
941 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
944 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
946 * c-lex.c: Do not include c-tree.h.
947 * c-pretty-print.c: Likewise.
948 * c-opts.c: Likewise.
949 * c-gimplify.c: Likewise.
950 * c-common.c: Likewise.
951 * c-dump.c: Likewise. Include c-common.h.
953 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
955 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
956 before including diagnostic-core.h.
957 (c_cpp_error): New prototype moved from c-tree.h.
958 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
959 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
960 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
961 (c_cpp_error): Prototype moved to c-common.h.
962 * Makefile.in: Update dependency for C_COMMON_H.
964 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
966 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
967 * c-common.c (c_register_addr_space): Remove here.
968 * c-decl.c (c_register_addr_space): Re-add here.
970 2010-05-28 Mike Stump <mikestump@comcast.net>
972 * config/darwin-c.c: Remove c-tree.h include.
974 2010-05-28 Joseph Myers <joseph@codesourcery.com>
976 * gcc.c: Include diagnostic.h.
977 (error_count): Remove. All users changed to use errorcount.
978 (programname): Remove. All users changed to use progname.
979 (fancy_abort, internal_error, fatal_error, error, warning, inform,
981 (execute): Don't include "Internal error" and bug reporting
982 information in argument of internal_error call.
983 (process_command): Don't increment error_count after calling
985 (input_filename): Rename to gcc_input_filename. All users
987 (main): Call diagnostic_initialize. Register delete_temp_files
988 with atexit. Use seen_error to test for errors.
989 * gcc.h: Include diagnostic-core.h.
990 (fatal_error, error, warning): Remove.
991 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
992 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
993 (gcc.o): Update dependencies.
995 2010-05-28 Jeff Law <law@redhat.com>
997 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
999 * ira.h (ira_bad_reload_regno): Declare
1000 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
1002 * ira-color.c (update_curr_costs): Free updated hard reg costs.
1003 (ira_reassign_conflict_allocnos): Remove bogus asserts.
1004 (allocno_reload_assign): Likewise.
1006 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
1008 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
1011 2010-05-28 Richard Guenther <rguenther@suse.de>
1014 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
1015 Stream fixed-point constants mode.
1016 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
1018 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
1019 Stream fixed-point constants mode.
1020 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
1023 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
1025 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
1026 only place it was called from.
1027 (number_of_latch_executions): Do not return chrec_dont_know when the
1028 may_be_zero is a runtime condition: instead, return a COND_EXPR
1029 including the may_be_zero condition.
1030 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
1032 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
1035 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
1037 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
1038 generate COND_EXPRs for degenerate_phi_result.
1040 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
1043 * tree-if-conv.c (if_convertible_loop_p): Check the
1044 if-convertibility of phi nodes in non predicated BBs.
1046 2010-05-28 Joseph Myers <joseph@codesourcery.com>
1048 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
1050 2010-05-28 Joseph Myers <joseph@codesourcery.com>
1053 * gcc.c (inform, warning, inform): New functions.
1054 (fatal_ice): Rename to internal_error; change cmsgid parameter to
1055 gmsgid. All callers changed.
1056 (notice): Rename to fnotice; add parameter fp. All callers
1058 (fatal_error): Rename to fatal_signal. All users changed.
1059 (fatal): Rename to fatal_error; change cmsgid parameter to
1060 gmsgid. All callers changed.
1061 (process_command): Use warning instead of error for warnings.
1062 (end_going_arg): Don't use _() around argument of error.
1063 (do_spec_1): Use inform for message from %n specs. Use warning
1064 instead of error for warnings.
1065 (main): Use inform for comparison messages. Use warning for
1066 message about unused linker input.
1067 (error): Increment error_count. Print "error: ".
1068 * gcc.h (fatal): Change to fatal_error.
1070 * config/darwin-driver.c (darwin_default_min_version): Use warning
1071 instead of fprintf for warnings.
1072 * cppspec.c (lang_specific_driver): Use fatal_error instead of
1075 2010-05-28 Julian Brown <julian@codesourcery.com>
1077 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
1078 (*thumb2_addsi3_compare0_scratch): New.
1079 * config/arm/constraints.md (Pv): New.
1080 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
1082 (*addsi3_compare0_scratch): Likewise.
1084 2010-05-28 Jan Hubicka <jh@suse.cz>
1086 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
1088 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
1089 only on local statics.
1091 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
1093 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
1095 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
1098 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
1099 (OPTION_GLIBC): Define.
1101 2010-05-28 Jakub Jelinek <jakub@redhat.com>
1104 * dwarf2out.c (double_int_type_size_in_bits): New function.
1105 (round_up_to_align): Change first argument and return value to
1107 (field_byte_offset): Work internally on double_ints.
1110 * builtins.c (expand_movstr): Use a temporary pseudo instead
1111 of target even when target is not NULL and not const0_rtx, but
1112 fails movstr predicate.
1113 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
1115 2010-05-28 Joseph Myers <joseph@codesourcery.com>
1117 * final.c (rest_of_clean_state): Use %m in errors instead of
1119 * gengtype.c (read_input_list, close_output_files): Use xstrerror
1120 instead of strerror.
1121 * toplev.c (process_options): Use %m in errors instead of strerror
1123 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
1126 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
1128 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
1129 (ix86_canonical_va_list_type): Make static. Add declaration.
1130 (ix86_enum_va_list): Make static. Reindent.
1131 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
1132 (ix86_canonical_va_list_type): Ditto.
1133 (ix86_enum_va_list): Ditto.
1135 2010-05-28 Richard Guenther <rguenther@suse.de>
1137 * lto-wrapper.c (run_gcc): With -save-temps generate a
1138 user-visible ltrans filename. Fixup ltrans unit numbering.
1140 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
1142 * c-common.c (c_common_nodes_and_builtins): Replace use
1143 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
1144 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
1145 to ix86_enum_va_list.
1146 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
1147 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
1148 (TARGET_ENUM_VA_LIST_P): Add hook description.
1149 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
1150 * target.h (gcc_target): Add enum_va_list hook.
1153 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
1154 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
1155 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
1157 2010-05-28 Alan Modra <amodra@gmail.com>
1160 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1161 emit_library_call machinery to set up __tls_get_addr calls.
1163 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1165 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
1167 2010-05-28 Dodji Seketeli <dodji@redhat.com>
1169 Revert fix for PR c++/44188
1170 * c-common.c (is_typedef_decl): Revert the moving of this
1172 * tree.c (is_typedef_decl): ... here.
1173 (typdef_variant_p): Revert the moving of this definition
1174 here from gcc/cp/tree.c.
1175 * c-common.h (is_typedef_decl): Revert the moving of this
1177 * tree.h (is_typedef_decl): ... here.
1178 (typedef_variant_p): Revert the moving of this declaration here
1179 from gcc/cp/cp-tree.h
1180 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
1181 (gen_tagged_type_die): Revert the splitting out of ...
1182 (gen_type_die_with_usage): ... this function. Revert the anonymous
1183 tagged type handling.
1184 (gen_typedef_die): Revert emitting DW_TAG_typedef for
1185 typedefs naming anonymous tagged types.
1187 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
1189 * config/rs6000/rs6000-modes.def (PSImode): Delete.
1191 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
1193 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
1194 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
1196 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
1198 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
1199 XER_REGS to CA_REGS throughout.
1200 * config/rs6000/rs6000.h: Same.
1201 (ADDITIONAL_REGISTER_NAMES): Add "xer".
1202 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
1203 that mode_iterator "P" is the size for arithmetic carries as well.
1204 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
1206 2010-05-28 Jakub Jelinek <jakub@redhat.com>
1209 * combine.c (struct rtx_subst_pair): Define unconditionally.
1210 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
1211 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
1212 Call make_compound_operation on pair->to.
1213 (propagate_for_debug): Don't call make_compound_operation here.
1214 Always use simplify_replace_fn_rtx.
1216 2010-05-27 Sterling Augustine <sterling@tensilica.com>
1218 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
1219 * config/xtensa/xtensa.c (override_options): Check
1220 TARGET_FORCE_NO_PIC and set flag_pic.
1221 * config/xtensa/xtensa.opt: Document -mforce-no-pic
1223 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
1226 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
1227 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
1229 2010-05-27 Joseph Myers <joseph@codesourcery.com>
1231 * diagnostic-core.h: New. Contents moved from diagnostic.h and
1233 * diagnostic.c: Don't include toplev.h.
1234 (progname): Define. Moved from toplev.c.
1235 (seen_error): New function.
1236 * diagnostic.h: Include diagnostic-core.h.
1237 (diagnostic_t, emit_diagnostic): Don't declare here.
1238 * toplev.c (progname): Move to toplev.c.
1239 (emit_debug_global_declarations, compile_file, finalize,
1240 do_compile, toplev_main): Use seen_error.
1241 * toplev.h: Include diagnostic-core.h.
1242 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
1243 internal_error, warning, warning_at, error, error_n, error_at,
1244 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
1245 verbatim, fnotice, progname): Move to diagnostic-core.h.
1246 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
1247 (expand_builtin_expect): Use seen_error.
1248 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
1249 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
1250 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
1251 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
1252 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
1253 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
1254 errorcount for errors.
1255 * c-opts.c (c_common_finish): Use seen_error.
1256 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
1257 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
1258 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
1259 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
1260 (get_coverage_counts): Use seen_error.
1261 * dwarf2out.c (dwarf2out_finish): Use seen_error.
1262 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
1263 gimplify_body): Use seen_error.
1264 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
1265 * ipa-pure-const.c (gate_pure_const): Use seen_error.
1266 * ipa-reference.c (gate_reference): Use seen_error.
1267 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
1268 * lambda-code.c: Include diagnostic-core.h instead of
1270 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
1271 * lto-compress.c: Include diagnostic-core.h instead of
1273 * lto-section-in.c: Include diagnostic-core.h instead of
1275 * lto-streamer-out.c: Include diagnostic-core.h instead of
1277 * lto-streamer.c: Include diagnostic-core.h instead of
1279 (gate_lto_out): Use seen_error.
1280 * matrix-reorg.c: Include diagnostic-core.h instead of
1282 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
1283 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
1284 (gate_expand_omp, lower_omp_1): Use seen_error.
1285 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
1286 (rest_of_decl_compilation, rest_of_type_compilation,
1287 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
1288 * tree-cfg.c (label_to_block_fn): Use seen_error.
1289 * tree-inline.c (optimize_inline_calls): Use seen_error.
1290 * tree-mudflap.c (mudflap_finish_file): Use
1292 * tree-optimize.c (gate_all_optimizations,
1293 gate_all_early_local_passes, gate_all_early_optimizations): Use
1295 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
1296 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
1297 (varpool_remove_unreferenced_decls,
1298 varpool_assemble_pending_decls): Use seen_error.
1299 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
1300 (TOPLEV_H, DIAGNOSTIC_H): Update.
1301 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
1302 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
1303 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
1304 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
1305 coverage.o, lambda-code.o): Update dependencies.
1307 2010-05-25 Dodji Seketeli <dodji@redhat.com>
1310 * c-common.c (is_typedef_decl): Move this definition ...
1311 * tree.c (is_typedef_decl): ... here.
1312 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
1313 * c-common.h (is_typedef_decl): Move this declaration ...
1314 * tree.h (is_typedef_decl): ... here.
1315 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
1316 * dwarf2out.c (is_naming_typedef_decl): New function.
1317 (gen_tagged_type_die): Split out of ...
1318 (gen_type_die_with_usage): ... this function. When an anonymous
1319 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
1320 is emitted for the typedef.
1321 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
1322 anonymous tagged types.
1324 2010-05-27 Jason Merrill <jason@redhat.com>
1326 * print-tree.c (debug_vec_tree): New fn.
1327 (print_vec_tree): New fn.
1328 * tree.h: Declare them.
1329 * gdbinit.in (pvt): New command.
1331 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
1333 * gdbinit.in (pdd): New command.
1335 2010-05-27 Jan Hubicka <jh@suse.cz>
1337 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
1338 (update_caller_keys): Return early if there are no callers;
1339 only update fibheap when decresing the key.
1340 (update_callee_keys): Avoid recursion.
1341 (decide_inlining_of_small_functions): When badness does not match;
1342 re-insert into fibheap.
1344 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
1346 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
1347 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
1348 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
1349 (ALL_HOST_OBJS): Now a union of the above two.
1350 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
1351 all files in ALL_HOST_FRONTEND_OBJS.
1352 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
1354 * c-common.c: Pretend to be a backend file by undefining
1355 IN_GCC_FRONTEND (still need rtl.h here).
1357 2010-05-27 Jan Hubicka <jh@suse.cz>
1359 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
1360 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
1362 2010-05-27 Jan Hubicka <jh@suse.cz>
1364 * sched-ebb.c: Rename struct deps to struct deps_desc.
1366 * sel-sched-ir.c: Likewise.
1367 * sched-deps.c: Likewise.
1368 * sched-int.h: Likewise.
1369 * sched-rgn.c: Likewise.
1371 2010-05-27 Jon Beniston <jon@beniston.com>
1374 * config/lm32/lm32.h: Remove definition of
1375 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
1377 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
1380 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
1382 2010-05-27 Richard Guenther <rguenther@suse.de>
1384 PR tree-optimization/44284
1385 * tree-vect-stmts.c (vectorizable_assignment): Handle
1386 sign-changing conversions as simple copy.
1388 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1390 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
1392 (__gthread_active_p): Check for pthread_create if compiling against
1395 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1397 Support compilation for Android platform. Reimplement -mandroid.
1399 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
1400 (*android*): Set ANDROID_DEFAULT.
1401 (arm*-*-linux*): Include linux-android.h.
1402 (arm*-*-eabi*): Don't include previous -mandroid implementation.
1403 * config/arm/eabi.h: Remove, move Android-specific parts ...
1404 * config/linux-android.h: ... here. New file.
1405 * config/arm/eabi.opt: Rename to ...
1406 * config/linux-android.opt: ... this.
1407 (mandroid): Allow -mno-android option. Initialize based on
1409 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
1410 Move logic to corresponding LINUX_TARGET_* macros.
1411 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
1412 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
1413 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
1414 Android definitions.
1415 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
1416 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
1419 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
1421 Add support for Bionic C library
1423 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
1425 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
1426 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
1428 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
1429 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
1430 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
1431 to support multiple C libraries. Handle Bionic.
1432 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
1433 (BIONIC_DYNAMIC_LINKER64): Define.
1434 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
1436 (TARGET_HAS_SINCOS): Enable for Bionic.
1438 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
1439 the last option specified on command line take effect.
1440 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
1442 (mglibc, muclibc): Update.
1444 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
1445 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
1448 * doc/invoke.texi (-mglibc, -muclibc): Update.
1449 (-mbionic): Document.
1451 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1453 * c-common.h (c_register_addr_space): Add prototype.
1454 (ADDR_SPACE_KEYWORD): Remove.
1455 * c-common.c (c_register_addr_space): New function.
1456 (c_addr_space_name): Reimplement.
1457 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
1459 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
1460 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
1462 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
1463 Remove TARGET_ADDR_SPACE_KEYWORDS.
1465 2010-05-27 Joseph Myers <joseph@codesourcery.com>
1467 * input.c: New file.
1468 * input.h (main_input_filename): Move declaration to toplev.h.
1469 * toplev.c (input_location, line_table): Move to input.c
1470 * toplev.h (main_input_filename): Move declaration from input.h.
1471 * tree.c (expand_location): Move to input.c.
1472 * Makefile.in (OBJS-common): Add input.o.
1473 (input.o): Add dependencies.
1475 2010-05-27 Richard Guenther <rguenther@suse.de>
1477 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
1478 for non-existant files.
1479 (fork_execute): Mark args_name file as deleted.
1481 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
1484 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
1485 (narrow_signed_type): Likewise.
1487 2010-05-26 Jan Hubicka <jh@suse.cz>
1489 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
1490 edge only when checking is enabled; check using former_clone_of;
1491 check inline clones too.
1492 (cgraph_materialize_clone): Record former_clone_of pointer.
1493 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
1494 combining redirections; dump args_to_skip bitmap
1495 (cgraph_materialize_all_clones): Do no redirection here.
1496 * ipa-inline.c (inline_transform): Do redirection here.
1497 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
1500 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1502 * config/avr/avr-c.c: Do not include regs.h.
1503 Include cpplib.h for cpp_define and tree.h for c-common.h.
1504 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
1505 * config/avr/t-avr: Fix dependencies for avr-c.o.
1507 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1509 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
1510 string instead of SYMBOL_REF rtx.
1511 * rtl.h (set_stack_check_libfunc): Move prototype from here...
1512 * libfuncs.h: ...to here. Adjust for explow.c change.
1514 2010-05-26 Joseph Myers <joseph@codesourcery.com>
1516 * pretty-print.c: Don't include ggc.h.
1517 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
1518 (identifier_to_locale): Use them for allocation.
1519 * pretty-print.h (identifier_to_locale_alloc,
1520 identifier_to_locale_free): Declare.
1521 * toplev.c (alloc_for_identifier_to_locale): New.
1522 (general_init): Set identifier_to_locale_alloc and
1523 identifier_to_locale_free.
1524 * Makefile.in (pretty-print.o): Update dependencies.
1526 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
1528 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
1529 pointer types if they have different alignment or mode.
1531 2010-05-26 Anatoly Sokolov <aesok@post.ru>
1533 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1534 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1535 * config/sparc/sparc-protos.h (function_value): Remove declaration.
1536 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
1537 sparc_function_value_regno_p): New functions.
1538 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1539 TARGET_FUNCTION_VALUE_REGNO_P): Define.
1540 (function_value): Rename to...
1541 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
1542 argument to 'outgoing'.
1543 (function_arg_record_value, function_arg_union_value,
1544 function_arg_vector_value): Update comment.
1546 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
1548 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
1549 (fde_needed_for_eh_p): New predicate.
1550 (output_call_frame_info): Use it throughout to decide whether FDEs
1551 are needed for EH purpose.
1552 (dwarf2out_begin_prologue): Reorder assignments.
1554 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1556 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
1557 special case loop->header.
1558 (is_predicated): New.
1559 (if_convertible_loop_p): Call it.
1561 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1563 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
1564 iterator in parameter. Do not generate code during the analysis.
1565 (tree_if_convert_cond_stmt): Removed.
1566 (tree_if_convert_stmt): Removed.
1567 (predicate_bbs): New.
1568 (if_convertible_loop_p): Call predicate_bbs.
1569 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
1570 now contains all the analysis part.
1572 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1574 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
1575 statements in the analysis part.
1576 (tree_if_convert_stmt): Update comment.
1577 (remove_conditions_and_labels): New.
1578 (combine_blocks): Call remove_conditions_and_labels.
1579 (tree_if_conversion): Update comment.
1581 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1583 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
1584 than 2 predecessors or more than 2 successors.
1586 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1588 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
1589 of loops in which the data dependence analysis fails.
1591 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1593 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
1594 CDI_POST_DOMINATORS.
1595 (tree_if_conversion): Same.
1597 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1599 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
1601 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1603 * tree-if-conv.c: Update copyright years. Fix comments.
1606 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
1608 * builtin-types.def (BT_INT128): New primitive type.
1609 (BT_UINT128): Likewise.
1610 * c-common.c (c_common_r): Add __int128 keyword.
1611 (c_common_type_for_size): Handle __int128.
1612 (c_common_type_for_mode): Likewise.
1613 (c_common_signed_or_unsigned_type): Likewise.
1614 (c_common_nodes_and_builtins): Add builtin type
1615 if target supports 128-bit integer scalar.
1616 * c-common.h (enum rid): Add RID_INT128.
1617 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
1618 if target supports 128-bit integer scalar.
1619 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
1620 (finish_declspecs): Likewise.
1621 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
1622 (c_token_starts_declspecs): Likewise.
1623 (c_parser_declspecs): Likewise.
1624 (c_parser_attributes): Likewise.
1625 (c_parser_objc_selector): Likewise.
1626 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
1627 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
1628 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
1629 * tree.c (make_or_reuse_type): Likewise.
1630 (make_unsigned_type): Likewise.
1631 (build_common_tree_nodes_2): Likewise.
1632 * tree.h (enum integer_type_kind): Add itk_int128 and
1633 itk_unsigned_int128.
1634 (int128_integer_type_node): New define.
1635 (int128_unsigned_type_node): New define.
1636 * doc/extend.texi: Add documentation about __int128 type.
1638 2010-05-26 Richard Guenther <rguenther@suse.de>
1640 * tree-ssa-sccvn.c (copy_nary): Adjust.
1641 (copy_phis): Rename to ...
1642 (copy_phi): ... this. Adjust.
1643 (copy_references): Rename to ...
1644 (copy_reference): ... this. Adjust.
1645 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
1646 result into the valid table.
1648 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1650 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
1651 insn-config.h, insn-codes.h, recog.h, and optabs.h.
1653 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1655 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
1657 2010-05-26 Richard Guenther <rguenther@suse.de>
1659 * opts.c (common_handle_option): Handle OPT_Ofast.
1661 2010-05-26 Joseph Myers <joseph@codesourcery.com>
1663 * diagnostic.c: Don't include opts.h.
1664 (permissive_error_option): Define.
1665 (diagnostic_initialize): Take n_opts parameter. Allocate memory
1666 for classify_diagnostic. Don't use memset for
1667 classify_diagnostic. Initialize new and recently added fields.
1668 (diagnostic_classify_diagnostic): Use context->n_opts instead of
1670 (diagnostic_report_diagnostic): Pass context parameter to
1671 diagnostic_report_warnings_p. Use option_enabled and option_name
1673 (emit_diagnostic): Use permissive_error_option.
1674 (permerror): Likewise.
1675 * diagnostic.h: Don't include options.h.
1676 (struct diagnostic_context): Add n_opts, opt_permissive,
1677 inhibit_warnings, warn_system_headers, option_enabled and
1678 option_name fields. Change classify_diagnostic to a pointer.
1679 * opts-diagnostic.h: New file.
1680 * opts.c: Include opts-diagnostic.h.
1681 (common_handle_option): Set global_dc fields for -Wfatal-errors,
1682 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
1683 (option_name): New function.
1684 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
1685 (c_common_handle_option): Set global_dc->permissive for
1687 * c-common.c (c_cpp_error): Save and restore
1688 global_dc->warn_system_headers, not variable warn_system_headers.
1689 * toplev.c: Include opts-diagnostic.h.
1690 (general_init): Update call to diagnostic_initialize. Set
1691 global_dc->show_column, global_dc->option_enabled and
1692 global_dc->option_name.
1693 (process_options): Don't set global_dc fields here.
1694 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
1695 (diagnostic.o, opts.o, toplev.o): Update dependencies.
1697 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
1699 * config/picochip/picochip.md (movsi): Split a movsi from a
1702 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1704 * ggc-zone.c: Update copyright year.
1705 (poison_region): Mark memory for Valgrind as undefined before
1706 memset () call and inaccessible afterwards.
1707 (ggc_pch_total_size): Change type of i to int.
1709 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1711 * ggc-common.c (ggc_free_overhead): Allow empty slot.
1713 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
1715 * ggc-common.c: Update copyright year.
1716 (ggc_rlimit_bound): Remove prototype. Compile only if
1717 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
1718 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
1719 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
1720 (ggc_min_heapsize_heuristic): Likewise.
1722 2010-05-26 Richard Guenther <rguenther@suse.de>
1724 PR rtl-optimization/44164
1725 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
1726 no-common access-path disambiguation.
1727 (indirect_ref_may_alias_decl_p): Adjust.
1728 (indirect_refs_may_alias_p): Likewise.
1729 (refs_may_alias_p_1): Likewise.
1731 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1733 * c-typeck.c: Do not include expr.h.
1735 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
1737 * rtl.h (decl_default_tls_model): Move prototype from here...
1738 * output.h: ...to here.
1739 * c-decl.c: Do not include rtl.h.
1740 * c-pragma.c: Likewise.
1741 * c-parser.c: Likewise.
1742 * c-gimplify.c: Likewise. And also not hard-reg-set.
1743 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
1744 FIXME note for it. Add a FIXME note for expr.h.
1745 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
1746 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
1749 2010-05-26 Jakub Jelinek <jakub@redhat.com>
1752 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
1753 or total_size is larger than red zone size for non-V4 ABI, emit a
1754 stack_tie resp. frame_tie insn before stack pointer restore.
1755 * config/rs6000/rs6000.md (frame_tie): New insn.
1757 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
1759 * function.h (struct function): Add can_throw_non_call_exceptions bit.
1760 * lto-streamer-in.c (input_function): Stream it in.
1761 * lto-streamer-out.c (output_function): Stream it out.
1762 * function.c (allocate_struct_function): Set it.
1763 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
1764 for flag_non_call_exceptions.
1765 * cfgbuild.c (control_flow_insn_p): Likewise.
1766 (make_edges): Likewise.
1767 * cfgexpand.c (expand_stack_alignment): Likewise.
1768 * combine.c (distribute_notes): Likewise.
1769 * cse.c (cse_extended_basic_block): Likewise.
1770 * except.c (insn_could_throw_p): Likewise.
1771 * gcse.c (simple_mem): Likewise.
1772 * ipa-pure-const.c (check_call): Likewise.
1773 (check_stmt ): Likewise.
1774 * lower-subreg.c (lower-subreg.c): Likewise.
1775 * optabs.c (emit_libcall_block): Likewise.
1776 (prepare_cmp_insn): Likewise.
1777 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
1778 * postreload.c (rest_of_handle_postreload): Likewise.
1779 * reload1.c (reload_as_needed): Likewise.
1780 (emit_input_reload_insns): Likewise.
1781 (emit_output_reload_insns): Likewise.
1782 (fixup_abnormal_edges): Likewise.
1783 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
1784 * store-motion.c (find_moveable_store): Likewise.
1785 * tree-eh.c (stmt_could_throw_p): Likewise.
1786 (tree_could_throw_p): Likewise.
1787 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1788 * config/arm/arm.c (arm_expand_prologue): Likewise.
1789 (thumb1_expand_prologue): Likewise.
1790 * config/rx/rx.md (cbranchsf4): Likewise.
1792 * config/s390/s390.c (s390_emit_prologue): Likewise.
1793 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
1794 (inline_forbidden_into_p): New predicate.
1795 (expand_call_inline): Use it to forbid inlining.
1796 (tree_can_inline_p): Likewise.
1798 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1800 * config/i386/i386-c.c: Do not include rtl.h.
1801 * config/i386/t-i386: Update dependencies.
1803 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1805 * attribs.c: Do not include rtl.h.
1806 * Makefile.in: Update dependencies.
1808 2010-05-25 Anatoly Sokolov <aesok@post.ru>
1810 * double-int.h (double_int_and): New.
1811 * combine.c (try_combine): Clean up, use double_int_* and
1812 immed_double_int_const functions.
1814 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1816 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
1817 stderr to /dev/null instead of grep -q.
1818 * configure: Regenerate.
1820 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
1822 * Makefile.in (EXCEPT_H): Fix typo.
1824 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
1826 * ira-build.c (update_conflict_hard_reg_costs): New.
1827 (ira_build): Call update_conflict_hard_reg_costs.
1829 2010-05-25 Jakub Jelinek <jakub@redhat.com>
1832 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
1834 (intersect_loc_chains): Walk the s2var's loc_chain together
1835 with s1node chain as long as the locations are equal, don't
1836 call find_loc_in_1pdv in that case.
1839 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
1840 (copy_bind_expr): ... instead of here.
1841 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
1842 if the block hasn't been remapped.
1843 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
1844 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
1846 2010-05-25 Richard Guenther <rguenther@suse.de>
1849 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
1850 out-of-bounds array accesses.
1852 2010-05-25 Richard Guenther <rguenther@suse.de>
1854 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
1855 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
1856 (run_gcc): Re-organize to make cleanup easier.
1858 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1860 * config/s390/s390.c (optimization_options): Fix and move the
1861 flag_prefetch_loop_arrays override ...
1862 (override_options): ... here.
1864 2010-05-25 Joseph Myers <joseph@codesourcery.com>
1866 * diagnostic.c: Don't include plugin.h.
1867 (diagnostic_report_diagnostic): Don't handle plugins specially
1868 here. Pass context to internal_error callback.
1869 * diagnostic.h (struct diagnostic_context): Add context parameter
1870 to internal_error callback.
1871 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
1872 * plugin.h (struct diagnostic_context): Declare.
1873 (warn_if_plugins, plugins_internal_error_function): Declare.
1874 * toplev.c (general_init): Set global_dc->internal_error.
1875 * Makefile.in (diagnostic.o): Update dependencies.
1877 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
1879 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
1880 * config/rs6000/t-darwin64: New.
1881 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
1884 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
1887 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
1888 match the original (and intended) behaviour before r159557. This
1889 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
1892 2010-05-25 Richard Guenther <rguenther@suse.de>
1894 * doc/invoke.texi: Document -Ofast.
1895 * target.h (struct gcc_target): Add handle_ofast.
1896 * target-def.h (TARGET_HANDLE_OFAST): Add.
1897 (TARGET_INITIALIZER): Adjust.
1898 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
1899 * common.opt (Ofast): Add.
1901 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
1903 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
1904 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
1906 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
1909 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
1910 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
1911 false_rtx. Use false_rtx to compute the correct *ptest for reversed
1912 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
1914 2010-05-25 Jakub Jelinek <jakub@redhat.com>
1916 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
1917 DW_OP_minus with negated offset instead of DW_OP_plus.
1918 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
1920 2010-05-25 Wei Guozhi <carrot@google.com>
1922 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
1923 tst instruction and a new alternative.
1924 * config/arm/constraints.md (Pu): New constraint.
1926 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
1928 * function.c (assign_stack_local_1): Initialize variable
1929 to avoid warning when bootstrapping at -O3.
1931 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
1933 * configure.ac (all_lang_makefiles): Remove everything related to it.
1934 * configure: Regenerate.
1935 * Makefile.in: Fix reference to ada Make-lang.in.
1936 Remove support for LANG_MAKEFILES.
1938 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
1939 Sandra Loosemore <sandra@codesourcery.com>
1941 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
1942 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
1943 description. Add arm_neon_fp16_ok.
1944 (Add Options): Add arm_neon and arm_neon_fp16.
1946 2010-05-24 Joseph Myers <joseph@codesourcery.com>
1948 * diagnostic.c: Don't include flags.h.
1949 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
1950 context parameters. Check flags in the context passed as a parameter.
1951 (diagnostic_build_prefix): Add context parameter. Check
1952 show_column flag in context.
1953 (diagnostic_action_after_output): Check fatal_errors flag in context.
1954 (diagnostic_report_current_module): Check show_column flag in context.
1955 (default_diagnostic_starter): Update call to
1956 diagnostic_build_prefix.
1957 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
1958 (emit_diagnostic): Pass context to permissive_error_kind.
1959 (permerror): Pass context to permissive_error_kind.
1960 * diagnostic.h (struct diagnostic_context): Add show_column,
1961 pedantic_errors, permissive and fatal_errors fields.
1962 (diagnostic_build_prefix): Update prototype.
1964 * toplev.c (process_options): Set flags in global_dc from
1965 flag_show_column, flag_pedantic_errors, flag_permissive,
1967 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
1968 to diagnostic_build_prefix.
1969 * Makefile.in (diagnostic.o): Update dependencies.
1971 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
1973 * config/i386/ia32intrin.h (__crc32q): Define only if
1974 __SSE4_2__ is defined.
1976 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
1980 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
1981 DECL_VISIBILITY_SPECIFIED.
1982 (emutls_decl): Set DECL_PRESERVE_P and copy
1983 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
1984 (emutls_finalize_control_var): New callback.
1985 (emutls_finish): Finalize emutls control variables.
1986 * toplev.c (compile_file): Move the call to emutls_finish ()
1987 before varpool_assemble_pending_decls ().
1989 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
1991 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
1992 added to the preprocessor condition.
1994 2010-05-24 Paul Brook <paul@codesourcery.com>
1996 * gengtype-lex.l: Add HARD_REG_SET.
1997 * expr.c (expand_expr_real_1): Record writes to hard registers.
1998 * function.c (rtl_data): Add asm_clobbers.
1999 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
2000 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
2001 Use crtl->asm_clobbers.
2003 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2005 * doc/makefile.texi (Makefile): Mention stages 'profile'
2006 and 'feedback' for profiledbootstrap.
2008 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
2011 * config/i386/i386.c (def_builtin): Properly check
2012 OPTION_MASK_ISA_64BIT.
2014 2010-05-23 Joseph Myers <joseph@codesourcery.com>
2016 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
2017 typedefs with different but compatible types. Allow duplicate
2018 typedefs with the same type except for pedantic non-C1X, but give
2019 warning for variably modified types.
2020 * c-typeck.c (tagged_types_tu_compatible_p,
2021 function_types_compatible_p, type_lists_compatible_p,
2022 comptypes_internal): Add parameter different_types_p; set
2023 *different_types_p for different but compatible types. All
2025 (comptypes_check_different_types): New.
2026 * c-tree.h (comptypes_check_different_types): Declare.
2028 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
2030 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
2031 * jump.c: Include basic-block.h.
2032 * profile.c: Likewise.
2033 * tree-profile.c: Likewise.
2034 * coverage.c: Likewise.
2035 * basic-block.h (optimize_function_for_size_p): Move to function.h.
2036 (optimize_function_for_speed_p): Likewise.
2037 * function.h (optimize_function_for_size_p,
2038 optimize_function_for_speed_p): Moved here from basic-block.h.
2039 * Makefile.in: Update dependencies.
2041 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2043 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
2044 before calling make; allow override through $MAKE.
2045 * doc/invoke.texi (Optimize Options): Document override.
2047 2010-05-23 Anatoly Sokolov <aesok@post.ru>
2049 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
2050 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2051 (rs6000_mode_dependent_address_ptr): Make static.
2052 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
2053 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
2056 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
2059 * config/i386/i386.c: Make sure that the correct regparm is passed.
2061 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
2063 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
2064 * sbitmap.c: ...to here to internalize sbitmap element access.
2065 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
2066 Explain why basic-block.h is included.
2067 * function.h: Include tm.h for CUMULATIVE_ARGS.
2068 * Makefile.in: Update dependencies.
2070 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
2072 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
2074 * sbitmap.h (struct sbitmap_def): Do not typedef here.
2075 * sbitmap.c: Include sbitmap.h.
2076 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
2077 hard-reg-set.h. Split everything related to regsets out from here...
2078 * regset.h: ...to here. New file.
2079 * df.h: Include regset.h and sbitmap.h.
2080 * tree-flow.h: Likewise.
2081 * cfgloop.h: Likewise.
2082 * except.h: Do not include sbitmap.h. Include hashtab.h.
2083 * cgraph.h: Include vec.h and function.h.
2084 * reload.h (struct insn_chain): Change types of live_throughout
2085 and dead_or_set from regset_head to bitmap_head.
2086 (compute_use_by_pseudos): Be defined also if regset.h is not included.
2087 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
2088 spilled_regs from regset_head to bitmap_head to avoid dependency
2090 * sel-sched-ir.h: Include regset.h.
2091 * reload.c: Include df.h before reload.h.
2092 * caller-save.c: Likewise.
2093 * reload1.c: Likewise.
2095 (mark_elimination): Update type of r to bitmap, consistent with
2097 * dominance.c: Include bitmap.h.
2098 * modulo-sched.c: Include df.h.
2099 * cfganal.c: Include bitmap.h and sbitmap.h.
2100 * cfgbuild.c: Include sbitmap.h.
2101 * lcm.c: Include sbitmap.h.
2102 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
2103 * domwalk.c: Include sbitmap.h, exclude ggc.h.
2104 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
2105 * cselib.c: Include bitmap.h.
2106 * tree-optimize.c: Include regset.h.
2107 * stmt.c: Include bitmap.h.
2108 * Makefile.in: Update dependencies.
2110 2010-05-22 Jan Hubicka <jh@suse.cz>
2112 * cgraph.h (struct varpool_node): Add same_comdat_group.
2113 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
2115 (output_varpool): Update call of lto_output_varpool_node.
2116 (input_varpool): Read same_comdat_group pointer.
2117 (input_varpool_1): Fixup same_comdat_group pointer.
2118 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
2119 group is needed, all are.
2120 * varpool.c (varpool_remove_node): Remove node from same comdat group
2122 (varpool_analyze_pending_decls): Walk same comdat groups.
2124 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
2126 * rtl.h (union rtunion_def): Remove rt_bit member.
2127 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
2128 * print-rtl (print_rtx): Do not print the member.
2129 * gengtype.c (adjust_field_rtx_def): Do not handle it.
2130 * gengenrtl.c (type_from_format): Likewise.
2131 (accessor_from_format): Likewise.
2133 2010-05-22 Joseph Myers <joseph@codesourcery.com>
2135 * dbgcnt.c: Include toplev.h instead of errors.h.
2136 * ira-emit.c: Don't include errors.h.
2137 * ira.c: Include toplev.h instead of errors.h.
2138 * lto-compress.c: Include toplev.h instead of errors.h.
2139 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
2140 ira.o, dbgcnt.o): Update dependencies.
2142 2010-05-22 Richard Guenther <rguenther@suse.de>
2144 * gimple.c (gimple_types_compatible_p): Check type qualifications
2145 before merging pointer to complete and pointer to incomplete type.
2146 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
2147 we use our own resolution algorithm. The gold linker plugin
2148 doesn't do the job we want it to do here.
2150 2010-05-22 Anatoly Sokolov <aesok@post.ru>
2152 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
2153 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2154 (sparc_mode_dependent_address_p): New function.
2156 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
2158 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
2160 * timevar.c: Do not include any core headers.
2161 (timevar_print): De-i18n-ize.
2162 (print_time): Likewise.
2163 * timevar.h (timevar_push, timevar_pop): Make inline functions.
2165 2010-05-21 Joseph Myers <joseph@codesourcery.com>
2167 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
2169 (diagnostic_initialize): Initialize x_data not last_function.
2170 (diagnostic_report_current_function): Move to tree-diagnostic.c.
2171 (default_diagnostic_starter): Call
2172 diagnostic_report_current_module not
2173 diagnostic_report_current_function.
2174 (diagnostic_report_diagnostic): Initialize x_data not
2176 (verbatim): Likewise.
2177 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
2179 (struct diagnostic_context): Change last_function to x_data.
2180 (diagnostic_auxiliary_data): Replace with
2181 diagnostic_context_auxiliary_data and
2182 diagnostic_info_auxiliary_data.
2183 (diagnostic_last_function_changed, diagnostic_set_last_function,
2184 diagnostic_report_current_function): Move to tree-diagnostic.h.
2185 (print_declaration, dump_generic_node, print_generic_stmt,
2186 print_generic_stmt_indented, print_generic_expr,
2187 print_generic_decl, debug_c_tree, dump_omp_clauses,
2188 print_call_name, debug_generic_expr, debug_generic_stmt,
2189 debug_tree_chain, default_tree_printer): Move to
2190 tree-pretty-print.h.
2191 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
2192 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
2193 gimple-pretty-print.h.
2194 * pretty-print.c: Don't include tree.h
2195 (pp_base_format): Don't handle %K here.
2196 (pp_base_tree_identifier): Move to tree-pretty-print.c.
2197 * pretty-print.h (text_info): Change abstract_origin to x_data.
2198 (pp_tree_identifier, pp_unsupported_tree,
2199 pp_base_tree_identifier): Move to tree-pretty-print.h.
2200 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
2201 tree-pretty-print.h: New files.
2202 * tree-pretty-print.c: Include tree-pretty-print.h.
2203 (percent_K_format): New. Moved from pretty-print.c.
2204 (pp_base_tree_identifier): Move from pretty-print.c.
2205 * c-objc-common.c: Include tree-pretty-print.h.
2206 (c_tree_printer): Handle %K here.
2207 * langhooks.c: Include tree-diagnostic.h.
2208 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
2209 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
2210 (default_tree_printer): Handle %K using percent_K_format.
2211 (general_init): Use default_tree_diagnostic_starter.
2212 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
2213 (free_lang_data): Use default_tree_diagnostic_starter.
2214 * c-pretty-print.c: Include tree-pretty-print.h.
2215 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
2216 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
2217 * dwarf2out.c: Include tree-pretty-print.h.
2218 * except.c: Include tree-pretty-print.h.
2219 * gimple-pretty-print.c: Include tree-pretty-print.h and
2220 gimple-pretty-print.h.
2221 * gimplify.c: Include tree-pretty-print.h.
2222 * graphite-poly.c: Include tree-pretty-print.h and
2223 gimple-pretty-print.h.
2224 * ipa-cp.c: Include tree-pretty-print.h.
2225 * ipa-inline.c: Include gimple-pretty-print.h.
2226 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
2227 * ipa-pure-const.c: Include gimple-pretty-print.h.
2228 * ipa-struct-reorg.c: Include tree-pretty-print.h and
2229 gimple-pretty-print.h.
2230 * ipa-type-escape.c: Include tree-pretty-print.h.
2231 * print-rtl.c: Include tree-pretty-print.h.
2232 * print-tree.c: Include gimple-pretty-print.h.
2233 * sese.c: Include tree-pretty-print.h.
2234 * tree-affine.c: Include tree-pretty-print.h.
2235 * tree-browser.c: Include tree-pretty-print.h.
2236 * tree-call-cdce.c: Include gimple-pretty-print.h.
2237 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
2238 * tree-chrec.c: Include tree-pretty-print.h.
2239 * tree-data-ref.c: Include tree-pretty-print.h and
2240 gimple-pretty-print.h.
2241 * tree-dfa.c: Include tree-pretty-print.h.
2242 * tree-if-conv.c: Include tree-pretty-print.h and
2243 gimple-pretty-print.h.
2244 * tree-inline.c: Include tree-pretty-print.h.
2245 * tree-into-ssa.c: Include tree-pretty-print.h and
2246 gimple-pretty-print.h.
2247 * tree-nrv.c: Include tree-pretty-print.h.
2248 * tree-object-size.c: Include tree-pretty-print.h and
2249 gimple-pretty-print.h.
2250 * tree-outof-ssa.c: Include tree-pretty-print.h and
2251 gimple-pretty-print.h.
2252 * tree-parloops.c: Include tree-pretty-print.h and
2253 gimple-pretty-print.h.
2254 * tree-predcom.c: Include tree-pretty-print.h and
2255 gimple-pretty-print.h.
2256 * tree-scalar-evolution.c: Include tree-pretty-print.h and
2257 gimple-pretty-print.h.
2258 * tree-sra.c: Include tree-pretty-print.h.
2259 * tree-ssa-address.c: Include tree-pretty-print.h.
2260 * tree-ssa-alias.c: Include tree-pretty-print.h.
2261 * tree-ssa-ccp.c: Include tree-pretty-print.h and
2262 gimple-pretty-print.h.
2263 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
2264 * tree-ssa-copy.c: Include tree-pretty-print.h and
2265 gimple-pretty-print.h.
2266 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
2267 * tree-ssa-dce.c: Include tree-pretty-print.h and
2268 gimple-pretty-print.h.
2269 * tree-ssa-dom.c: Include tree-pretty-print.h and
2270 gimple-pretty-print.h.
2271 * tree-ssa-dse.c: Include gimple-pretty-print.h.
2272 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
2273 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
2274 * tree-ssa-live.c: Include tree-pretty-print.h and
2275 gimple-pretty-print.h.
2276 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
2277 gimple-pretty-print.h.
2278 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
2279 gimple-pretty-print.h.
2280 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
2281 gimple-pretty-print.h.
2282 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
2283 gimple-pretty-print.h.
2284 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
2285 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
2286 * tree-ssa-operands.c: Include tree-pretty-print.h and
2287 gimple-pretty-print.h.
2288 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
2289 gimple-pretty-print.h.
2290 * tree-ssa-pre.c: Include tree-pretty-print.h and
2291 gimple-pretty-print.h.
2292 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
2293 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
2294 gimple-pretty-print.h.
2295 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
2296 gimple-pretty-print.h.
2297 * tree-ssa-sink.c: Include gimple-pretty-print.h.
2298 * tree-ssa-ter.c: Include tree-pretty-print.h and
2299 gimple-pretty-print.h.
2300 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
2301 * tree-ssa.c: Include tree-pretty-print.h and
2302 gimple-pretty-print.h.
2303 * tree-stdarg.c: Include gimple-pretty-print.h.
2304 * tree-switch-conversion.c: Include gimple-pretty-print.h.
2305 * tree-tailcall.c: Include tree-pretty-print.h and
2306 gimple-pretty-print.h.
2307 * tree-vect-data-refs.c: Include tree-pretty-print.h and
2308 gimple-pretty-print.h.
2309 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
2310 gimple-pretty-print.h.
2311 * tree-vect-loop.c: Include tree-pretty-print.h and
2312 gimple-pretty-print.h.
2313 * tree-vect-patterns.c: Include gimple-pretty-print.h.
2314 * tree-vect-slp.c: Include tree-pretty-print.h and
2315 gimple-pretty-print.h.
2316 * tree-vect-stmts.c: Include tree-pretty-print.h and
2317 gimple-pretty-print.h.
2318 * tree-vectorizer.c: Include tree-pretty-print.h.
2319 * tree-vrp.c: Include tree-pretty-print.h and
2320 gimple-pretty-print.h.
2321 * value-prof.c: Include tree-pretty-print.h and
2322 gimple-pretty-print.h.
2323 * var-tracking.c: Include tree-pretty-print.h.
2324 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
2325 (tree-diagnostic.o): New dependencies.
2326 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
2327 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
2328 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
2329 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
2330 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
2331 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
2332 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
2333 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
2334 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
2335 tree-ssa-address.o, tree-ssa-loop-niter.o,
2336 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
2337 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
2338 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
2339 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
2340 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
2341 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
2342 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
2343 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
2344 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
2345 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
2346 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
2347 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
2348 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
2349 tree-switch-conversion.o, var-tracking.o, value-prof.o,
2350 cfgexpand.o, pretty-print.o): Update dependencies.
2352 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
2354 * tree-ssa-structalias.c: Remove tm_p.h from include.
2356 2010-05-21 Jeff Law <law@redhat.com>
2358 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
2360 2010-05-21 Jason Merrill <jason@redhat.com>
2362 * tree-eh.c (cleanup_is_dead_in): New.
2363 (lower_try_finally): Don't generate a dead cleanup region.
2364 (lower_cleanup): Likewise.
2366 2010-05-21 Jakub Jelinek <jakub@redhat.com>
2369 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
2370 unchain each use from the cyclic next_regno_use chain first.
2372 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
2374 * real: Do not include gmp.h, mpfr.h, and mpc.h.
2375 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
2376 (real_value_negate, real_value_abs): New prototypes.
2377 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
2378 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
2379 new include file for interface between MPFR and REAL_VALUE_TYPE.
2380 * real.c: Include realmpfr.h.
2381 (real_arithmetic2): Remove legacy function.
2382 (real_value_negate): New.
2383 (real_value_abs): New.
2384 (mfpr_from_real, real_from_mpfr): Move from here...
2385 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
2386 * builtins.c: Include realmpfr.h.
2387 * fold-const.c: Include realmpfr.h.
2388 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
2389 (fold_negate_const): Likewise.
2390 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
2391 * toplev.c: Include realmpfr.h.
2392 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
2393 and real_value_negate.
2394 * fixed-value.c (check_real_for_fixed_mode): Likewise.
2395 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
2396 (vfp3_const_double_index): Likewise.
2397 (arm_print_operand): Likewise.
2398 * Makefile.in: Update dependencies.
2400 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2402 * config/s390/s390.c (override_options): Increase the default
2403 of max-completely-peel-times.
2405 2010-05-21 Julian Brown <julian@codesourcery.com>
2406 Mark Mitchell <mark@codesourcery.com>
2408 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
2409 sibling calls for Thumb-1.
2410 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
2411 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
2413 (*call_insn, *call_value_insn): Don't use for Thumb-2.
2414 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
2416 (return): New expander.
2417 (*arm_return): New name for ARM return insn.
2418 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
2420 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
2422 * config.gcc (sparc64-*-rtems*): New target.
2424 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
2426 * tree.c (build_function_decl_skip_args): Fix grammar.
2427 (build_function_type_list_1): Fix typos, adjust formatting.
2429 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
2431 * tree.h: Include real.h and fixed-value.h as basic datatypes.
2432 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
2433 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
2434 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
2435 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
2436 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
2437 tree-pretty-print.c, tree-loop-distribution.c,
2438 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
2439 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
2440 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
2441 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
2442 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
2443 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
2444 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
2445 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
2446 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
2447 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
2448 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
2449 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
2450 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
2451 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
2452 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
2453 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
2454 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
2455 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
2456 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
2457 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
2458 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
2459 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
2460 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
2461 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
2462 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
2463 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
2464 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
2465 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
2466 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
2467 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
2468 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
2469 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
2470 config/score/score7.c, config/score/score.c, config/arm/arm.c,
2471 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
2472 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
2473 config/bfin/bfin.c: Clean up redundant includes.
2474 * Makefile.in: Update accordingly.
2476 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
2479 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
2480 statement has no arguments.
2482 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
2485 * varasm.c (emutls_decl): Merge attributes to new decl.
2487 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
2490 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
2491 around the uniquized constructor if its type requires a conversion.
2493 2010-05-21 Jakub Jelinek <jakub@redhat.com>
2496 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
2497 at -O0 goto_locus of any of the incoming edges differs from
2498 goto_locus of outgoing edge, or gimple_location of any of the
2501 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
2503 * ira.c (ira_non_ordered_class_hard_regs): Define.
2504 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
2505 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
2506 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
2507 cost of unaligned hard regs when allocating multi-reg pseudos.
2509 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
2511 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
2512 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
2513 for TARGET_NO_FLOAT.
2514 * config/mips/mips.c (mips_file_start): Expand conditional expression
2515 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
2516 (mips_override_options): Move -mno-float override -msoft-float and
2518 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
2519 Condition(TARGET_SUPPORTS_NO_FLOAT).
2520 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
2521 __mips_no_float here.
2522 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
2523 (TARGET_SUPPORTS_NO_FLOAT): Define.
2524 * config/mips/sdemtk.opt: Delete.
2526 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
2528 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
2530 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
2533 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
2534 * configure: Regenerate.
2535 * config.in: Regenerate.
2536 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
2537 instead of sahf only for 64bit targets.
2539 2010-05-20 Jakub Jelinek <jakub@redhat.com>
2542 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
2543 setup_ref_regs for DEBUG_INSNs.
2545 2010-05-20 Jan Hubicka <jh@suse.cz>
2548 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
2550 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
2553 * df-scan.c (df_ref_compare): Stabilize sort.
2555 2010-05-20 Jakub Jelinek <jakub@redhat.com>
2557 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
2558 argument. Don't use DW_OP_piece if offset is non-zero,
2559 put offset into second DW_OP_bit_piece argument.
2560 (dw_sra_loc_expr): Adjust callers. For memory expressions
2563 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
2566 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
2567 settings for 16-bit-constant "addo" alternative.
2569 2010-05-19 James E. Wilson <wilson@codesourcery.com>
2571 * config/mips/mips-dsp.md (add<DSPV:mode>3,
2572 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
2575 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
2576 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
2579 2010-05-19 Joseph Myers <joseph@codesourcery.com>
2581 * diagnostic.c (FLOAT, FFS): Don't undefine.
2582 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
2583 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
2586 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
2588 * combine.c (propagate_for_debug): Call make_compound_operation
2589 on the source value.
2590 (try_combine): When implementing a split chosen by find_split_point,
2591 either copy i2src or set it to null. Assert that i2src is not null
2592 before substituting into CALL_INSN_FUNCTION_USAGE.
2594 2010-05-19 Anatoly Sokolov <aesok@post.ru>
2596 * double-int.h (double_int_ior): New function.
2597 * tree.h (build_int_cst_wide_type): Remove.
2598 * tree.c (build_int_cst_wide_type): Remove.
2599 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
2600 of build_int_cst_wide_type.
2601 * stor-layout.c (set_sizetype): (Ditto.).
2602 * dojump.c (do_jump): Use build_int_cstu instead of
2603 build_int_cst_wide_type.
2605 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
2607 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
2608 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
2609 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
2610 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
2611 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
2612 propagate the 'data' argument to copy_tree_r.
2613 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
2614 Propagate 'data' argument to walk_tree.
2615 (copy_if_shared): New function.
2616 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
2617 (unmark_visited): New function.
2618 (unshare_body): Call copy_if_shared instead of doing it manually.
2619 (unvisit_body): Call unmark_visited instead of doing it manually.
2621 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
2623 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
2624 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
2625 * hooks.c: Likewise.
2626 * target-def.h (TARGET_FOLD_BUILTIN): Define to
2627 hook_tree_tree_int_treep_bool_null.
2628 * target.h (struct gcc_target): Update signature of fold_builtin
2630 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
2631 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
2632 instead of the call expression.
2633 (fold_builtin_call_array): Pass n and argarray directly.
2634 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
2636 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
2637 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
2638 `i' and use it in place of `arity'.
2639 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
2640 Dereference `args' directly.
2641 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
2643 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2645 * doc/sourcebuild.texi (Effective-Target Keywords): Document
2647 (Directives): Document optional dg-require-effective-target
2650 2010-05-19 Richard Guenther <rguenther@suse.de>
2653 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
2655 2010-05-19 Richard Guenther <rguenther@suse.de>
2657 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
2658 * common.opt (fwhopr=): New.
2659 * opts.c (common_handle_option): Handle OPT_fwhopr.
2660 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
2661 * collect2.c (main): Match -fwhopr*.
2662 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
2663 Execute ltrans stage in parallel when jobs is bigger than 1.
2665 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2667 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
2668 pentiumpro on Solaris 8/x86 with Sun as.
2669 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
2671 (gcc_cv_as_ix86_quad): Check for .quad directive.
2672 * configure: Regenerate.
2673 * config.in: Regenerate.
2674 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
2676 2010-05-19 Martin Jambor <mjambor@suse.cz>
2678 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
2679 also for indirect edges. Actual printing moved...
2680 (ipa_print_node_jump_functions_for_edge): ...here.
2681 (ipa_compute_jump_functions): Renamed to
2682 ipa_compute_jump_functions_for_edge and made static.
2683 (ipa_compute_jump_functions): New function.
2684 (make_edge_direct_to_target): Check if the number of arguments on
2685 the newly direct edge is the same as the number of parametrs of
2687 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
2688 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
2689 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2690 analysis functions unconditionally, call the new
2691 ipa_analyze_params_uses on the node instead of every edge.
2693 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
2695 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
2697 (dump_mem_ref): Adopt debug code to handle a tree as step. This
2698 also checks for a constant int vs. non-constant but
2699 loop-invariant steps.
2700 (find_or_create_group): Change the sort algorithm to only consider
2701 steps that are constant ints.
2702 (idx_analyze_ref): Adopt code to handle a tree instead of a
2703 HOST_WIDE_INT for step.
2704 (gather_memory_references_ref): Handle tree instead of int and be
2705 prepared to see a NULL_TREE.
2706 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
2707 prefetches if the step cannot be calculated at compile time.
2708 (issue_prefetch_ref): Issue prefetches for non-constant but
2709 loop-invariant steps.
2711 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2714 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2716 * tree.h (build_call_list): Remove.
2717 * tree.c (build_call_list): Remove.
2719 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
2721 * tree.h (build_call_list): Remove.
2722 * tree.c (build_call_list): Remove.
2724 2010-05-18 Jan Hubicka <jh@suse.cz>
2726 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
2728 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
2730 PR rtl-optimization/43332
2731 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
2733 2010-05-18 Anatoly Sokolov <aesok@post.ru>
2735 * tree.h (build_int_cstu): Implement as static inline.
2736 * tree.c (build_int_cstu): Remove function.
2737 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
2740 2010-05-18 Richard Guenther <rguenther@suse.de>
2743 * lto-wrapper.c (verbose): New variable. Initialize from -v.
2744 (debug): Initialize from -save-temps.
2745 (collect_execute): Print command-line when verbose.
2746 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
2747 for ltrans invocation. Produce -dumpbase flag again.
2748 (process_args): Remove.
2750 * collect2.c (maybe_run_lto_and_relink): Only pass object
2751 files to lto-wrapper.
2752 * gcc.c (LINK_COMMAND_SPEC): Likewise.
2754 2010-05-18 Jan Hubicka <jh@suse.cz>
2756 * opts.c (decode_options): Do not disable whopr at ipa_cp.
2757 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
2759 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
2762 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
2764 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
2767 2010-05-18 Jakub Jelinek <jakub@redhat.com>
2770 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
2773 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
2775 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
2776 lto-macho as lto_binary_reader.
2778 * darwin.c (darwin_asm_named_section): Do not add assembler comment
2779 after .section directive; just print it before the directive instead.
2781 2010-05-17 Jan Hubicka <jh@suse.cz>
2783 * cgraph.c (cgraph_create_virtual_clone): Only check
2784 versionable_function_p when not in wpa and checking is enabled.
2785 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
2786 there are no more functions to materialize.
2788 2010-05-17 Jan Hubicka <jh@suse.cz>
2790 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
2791 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
2793 (output_cgraph): Call output_cgraph_opt_summary.
2794 (input_cgrpah): Call input_cgraph_opt_summary.
2795 (output_cgraph_opt_summary_p, output_node_opt_summary,
2796 input_node_opt_summary, input_cgraph_opt_section): New functions.
2797 * lto-section-in.c (lto_section_name): Add cgraphopt.
2798 * tree-inline.c (tree_function_versioning): Handle parm_num.
2799 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
2800 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
2802 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
2804 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
2805 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
2806 the insn to prefetch ratio heuristic to loops with known trip count.
2808 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
2810 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
2811 (schedule_prefetches): Do not generate a prefetch if the unroll factor
2812 is far from what is required by the prefetch.
2814 2010-05-17 Jan Hubicka <jh@suse.cz>
2816 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
2817 (ipcp_estimate_growth): Likewise.
2818 (ipcp_const_param_count): Likewise.
2819 (ipcp_insert_stage): Likewise.
2820 * ipa-prop.c (visit_load_for_mod_analysis): New function.
2821 (visit_store_addr_for_mod_analysis): Set used flag.
2822 (ipa_detect_param_modifications): Set used flag for SSE params;
2823 update use of walk_stmt_load_store_addr_ops.
2824 (ipa_print_node_params): Print used flag.
2825 (ipa_write_node_info): Stream used flag.
2826 (ipa_read_node_info): Likewise.
2827 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
2828 (ipa_is_param_used): New function.
2829 (lto_ipa_fixup_call_notes): Remove unused declaration.
2831 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2834 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
2835 * configure: Regenerate.
2836 * config.in: Regenerate.
2837 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
2838 !HAVE_AS_IX86_REP_LOCK_PREFIX.
2839 Don't emit whitespace.
2840 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
2841 (*rep_movsi): Likewise.
2842 (*rep_movsi_rex64): Likewise.
2843 (*rep_movqi): Likewise.
2844 (*rep_movqi_rex64): Likewise.
2845 (*rep_stosdi_rex64): Likewise.
2846 (*rep_stossi): Likewise.
2847 (*rep_stossi_rex64): Likewise.
2848 (*rep_stosqi): Likewise.
2849 (*rep_stosqi_rex64): Likewise.
2850 (*cmpstrnqi_nz_1): Use {%;} after repz.
2851 (*cmpstrnqi_nz_rex_1): Likewise.
2852 (*cmpstrnqi_1): Likewise.
2853 (*cmpstrnqi_rex_1): Likewise.
2854 (*strlenqi_1): Use {%;} after repnz.
2855 (*strlenqi_rex_1): Likewise.
2856 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
2857 (*sync_compare_and_swap<mode>): Likewise.
2858 (sync_double_compare_and_swap<mode>): Likewise.
2859 (*sync_double_compare_and_swapdi_pic): Likewise.
2860 (sync_old_add<mode>): Likewise.
2861 (sync_add<mode>): Likewise.
2862 (sync_sub<mode>): Likewise.
2863 (sync_<code><mode>): Likewise.
2865 2010-05-17 Martin Jambor <mjambor@suse.cz>
2867 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
2868 otr_token and polymorphic.
2869 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
2870 (cgraph_clone_edge): Copy the above fields.
2871 * tree.c (get_binfo_at_offset): New function.
2872 * tree.h (get_binfo_at_offset): Declare.
2873 * ipa-prop.h (enum jump_func_type): Added known_type jump function
2874 type, reordered items, updated comments.
2875 (union jump_func_value): Added base_type field, reordered fields.
2876 (enum ipa_lattice_type): Moved down in the file.
2877 (struct ipa_param_descriptor): New field polymorphic.
2878 (ipa_is_param_polymorphic): New function.
2879 * ipa-prop.c: Include gimple.h and gimple-fold.h.
2880 (ipa_print_node_jump_functions): Print known type jump functions.
2881 (compute_complex_pass_through): Renamed to...
2882 (compute_complex_assign_jump_func): this.
2883 (compute_complex_ancestor_jump_func): New function.
2884 (compute_known_type_jump_func): Likewise.
2885 (compute_scalar_jump_functions): Create known type and complex ancestor
2887 (ipa_note_param_call): New parameter polymorphic, set the corresponding
2888 flag in the call note accordingly.
2889 (ipa_analyze_call_uses): Renamed to...
2890 (ipa_analyze_indirect_call_uses): this. New parameter target, define
2891 variable var only in the block where it is used.
2892 (ipa_analyze_virtual_call_uses): New function.
2893 (ipa_analyze_call_uses): Likewise.
2894 (combine_known_type_and_ancestor_jfs): Likewise.
2895 (update_jump_functions_after_inlining): Implemented handling of a
2896 number of new jump function types combination.
2897 (print_edge_addition_message): Removed.
2898 (make_edge_direct_to_target): New function.
2899 (try_make_edge_direct_simple_call): Likewise.
2900 (try_make_edge_direct_virtual_call): Likewise.
2901 (update_call_notes_after_inlining): Renamed to...
2902 (update_indirect_edges_after_inlining): this. Moved edge creation for
2903 indirect calls to try_make_edge_direct_simple_call, also calls
2904 try_make_edge_direct_virtual_call for virtual calls.
2905 (ipa_print_node_params): Changed the header message.
2906 (ipa_write_jump_function): Stream also known type jump functions.
2907 (ipa_read_jump_function): Likewise.
2908 (ipa_write_indirect_edge_info): Stream new fields in
2909 cgraph_indirect_call_info.
2910 (ipa_read_indirect_edge_info): Likewise.
2911 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
2914 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2916 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
2918 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
2920 * tree.h (CALL_EXPR_ARGS): Delete.
2921 (call_expr_arglist): Delete.
2922 * tree.c (call_expr_arglist): Delete.
2923 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
2924 targetm.fold_builtin.
2925 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
2926 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
2927 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
2928 arglist parameter. Use CALL_EXPR_ARG.
2929 (picochip_expand_builtin_3op): Likewise.
2930 (picochip_expand_builtin_2opvoid): Likewise.
2931 (picochip_expand_array_get): Likewise.
2932 (picochip_expand_array_put): Likewise.
2933 (picochip_expand_array_testport): Likewise.
2934 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
2935 rather than arglist.
2936 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
2938 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
2939 than TREE_VALUE and TREE_CHAIN.
2940 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2941 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
2944 2010-05-17 Jakub Jelinek <jakub@redhat.com>
2947 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
2948 to have no fallthru edge.
2951 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
2952 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
2953 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
2954 add BARRIER after previous bb if needed.
2956 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
2958 * tree.c (build_function_type_list_1): Remove bogus assert condition.
2960 2010-05-17 Alan Modra <amodra@gmail.com>
2962 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
2963 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
2964 with copy_reg rtx param.
2965 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
2966 Correct cases where code for ABI_V4 did not initialise the reg
2967 used to access frame. Also leave frame_reg_rtx as sp for large
2968 frames that save no regs.
2970 2010-05-17 Martin Jambor <mjambor@suse.cz>
2973 * tree-sra.c (create_access_replacement): New parameter rename, mark
2974 the replaement for renaming only when it is true.
2975 (get_access_replacement): Pass true in the rename parameter of
2976 create_access_replacement.
2977 (get_unrenamed_access_replacement): New function.
2978 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
2979 replacement declaration from it.
2981 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
2983 * function.c (try_fit_stack_local, add_frame_space): New static
2985 (assign_stack_local_1): Use them. Look for opportunities to use
2986 space previously wasted on alignment.
2987 * function.h (struct frame_space): New.
2988 (struct rtl_data): Add FRAME_SPACE_LIST member.
2989 * reload1.c (something_was_spilled): New static variable.
2990 (alter_reg): Set it.
2991 (reload): Test it in addition to testing if the frame size changed.
2993 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
2995 * config/s390/s390.c: Define sane prefetch settings and activate
2996 flag_prefetch_loop_arrays on -O3.
2997 * config/s390/s390.h: Declare that read can use write prefetch.
2999 2010-05-17 Jakub Jelinek <jakub@redhat.com>
3001 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
3004 2010-05-16 Jan Hubicka <jh@suse.cz>
3006 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
3007 function body; do not check stdarg field of struct function.
3009 2010-05-16 Jan Hubicka <jh@suse.cz>
3011 * cgraph.c (dump_cgraph_node): Dump versionable flag.
3012 * cgraph.h (cgraph_local_info): Add versionable flag.
3013 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
3014 (ipcp_versionable_function_p): Use it.
3015 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
3018 2010-05-16 Jan Hubicka <jh@suse.cz>
3020 * cgraph.c (cgraph_clone_node): Take decl argument and insert
3021 clone into hash when it is different from orig.
3022 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
3023 * cgraph.h (cgraph_clone_node): Update prototype.
3024 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
3025 (lto_cgraph_encoder_delete): Delete body map.
3026 (lto_cgraph_encoder_size): Move to header.
3027 (lto_cgraph_encoder_encode_body_p,
3028 lto_set_cgraph_encoder_encode_body): New.
3029 (lto_output_node): Do not take written_decls argument; output clone_of
3031 (add_node_to): Add include_body_argument; call
3032 lto_set_cgraph_encoder_encode_body on master of the clone.
3033 (add_references): Update use of add_node_to.
3034 (compute_ltrans_boundary): Likewise.
3035 (output_cgraph): Do not create written_decls bitmap.
3036 (input_node): Take nodes argument; stream in clone_of correctly.
3037 (input_cgraph_1): Update use of input_node.
3038 * lto-streamer-out.c (lto_output): Use encoder info to decide
3039 what bodies to output.
3040 * ipa-inline.c (cgraph_clone_inlined_nodes,
3041 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
3042 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
3043 (lto_cgraph_encoder_size): Define here.
3044 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
3047 2010-05-16 Richard Guenther <rguenther@suse.de>
3049 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
3051 * ipa-type-escape.c (gate_type_escape_vars): Run when
3052 -fipa-struct-reorg runs.
3053 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
3054 * common.opt (fipa-type-escape): Remove.
3056 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
3058 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
3059 (decode_options): Likewise.
3060 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
3062 2010-05-16 Jan Hubicka <jh@suse.cz>
3064 * ipa.c (function_and_variable_visibility): Also bring local all
3067 2010-05-16 Richard Guenther <rguenther@suse.de>
3069 * alias.c (nonoverlapping_memrefs_p): Remove use of
3070 IPA type-escape information.
3072 2010-05-16 Joseph Myers <joseph@codesourcery.com>
3074 * c-common.c (c_common_reswords): Add _Static_assert for C.
3075 * c-parser.c (c_token_starts_declaration,
3076 c_parser_next_token_starts_declaration,
3077 c_parser_static_assert_declaration_no_semi,
3078 c_parser_static_assert_declaration): New.
3079 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
3080 Handle static assertions if static_assert_ok.
3081 (c_parser_external_declaration, c_parser_declaration_or_fndef,
3082 c_parser_compound_statement_nostart, c_parser_label,
3083 c_parser_for_statement, c_parser_objc_methodprotolist,
3084 c_parser_omp_for_loop): All callers of
3085 c_parser_declaration_or_fndef changed.
3086 (c_parser_struct_declaration): Handle static assertions.
3087 (c_parser_compound_statement_nostart): Use
3088 c_parser_next_token_starts_declaration and
3089 c_token_starts_declaration to detect start of declarations.
3090 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
3093 2010-05-16 Anatoly Sokolov <aesok@post.ru>
3095 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
3096 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
3097 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3098 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3099 (mmix_function_outgoing_value): Rename to...
3100 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
3101 (mmix_function_value_regno_p): Make static.
3102 (mmix_libcall_value): New function.
3103 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
3104 mmix_function_value_regno_p): Remove declaration.
3106 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
3108 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
3109 BUILT_IN_ALLOCA if stack checking is enabled.
3111 2010-05-16 Richard Guenther <rguenther@suse.de>
3113 * var-tracking.c (vars_copy_1): Inline ...
3114 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
3115 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
3116 (variable_merge_over_cur): Adjust. Merge asserts.
3117 (variable_merge_over_src): Likewise.
3118 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
3119 (variable_post_merge_new_vals): Merge asserts.
3120 (variable_post_merge_perm_vals): Likewise.
3121 (find_mem_expr_in_1pdv): Likewise.
3122 (dataflow_set_different_value): Remove.
3123 (onepart_variable_different_p): Merge asserts.
3124 (variable_different_p): Likewise.
3125 (dataflow_set_different_1): Inline ...
3126 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
3127 (emit_notes_for_differences_1): Merge asserts.
3129 2010-05-16 Richard Guenther <rguenther@suse.de>
3131 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
3132 * optabs.c (libfunc_decl_hash): Likewise.
3133 * varasm.c (emutls_decl): Likewise.
3135 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
3137 * c-decl.c: Don't include gimple.h.
3138 (merge_decls): Do not copy gimple_body.
3140 2010-05-15 Jason Merrill <jason@redhat.com>
3142 * c.opt: Add -fnothrow-opt.
3144 2010-05-15 Jan Hubicka <jh@suse.cz>
3146 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
3148 * passes.c (ipa_write_summaries): Write all analyzed nodes.
3150 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
3152 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
3153 * Makefile.in: Add it.
3154 Fix all other Makefile dependencies for changes below.
3155 * tree.h: Include it instead of defining VEC primitives here.
3156 * gimple.h: Likewise.
3158 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
3159 * except.h: Include vecir.h, break dependence on tree.h.
3161 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
3163 * tree-iterator.c: ...to here.
3164 * tree-iterator.h: Fix file introduction comment. Add extern markers.
3166 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
3168 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
3169 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
3170 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
3171 tree-mudflap.h, and target.h.
3172 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
3173 predict.h, tree-inline.h, gimple.h, and langhooks.h.
3174 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
3175 Add FIXME for why gimple.h is still included (should be unnecessary
3176 since GCC 4.5 gimplification unit-at-a-time).
3177 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
3178 * c-pragma.c: Add FIXME for why function.h needs to be included just
3179 for cfun, at front-end level.
3180 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
3181 Do not include ggc.h, but include vecprim.h for VEC(char).
3182 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
3183 Explain why target.h is included.
3184 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
3185 Explain why gimple.h is included.
3186 * c-ppoutput.c: Do not include tm.h.
3187 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
3188 * c-parses.c: Explain why rtl.h is included, and that this (and only
3189 this) is also why tm.h must be included.
3190 Do not include except.h.
3191 * c-lang.c: Do not include ggc.h.
3193 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
3195 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
3197 2010-05-15 Joseph Myers <joseph@codesourcery.com>
3199 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
3200 unions by default if those structs and unions have no tags. Do
3201 not condition anonymous struct and unions handling on flag_iso.
3202 Allow anonymous structs and unions for C1X.
3203 (finish_struct): Do not diagnose lack of named fields when
3204 anonymous structs and unions present for C1X. Accept flexible
3205 array members in structure with anonymous structs or unions but no
3206 directly named fields.
3207 * doc/extend.texi (Unnamed Fields): Update.
3209 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
3211 * gimple.h (compare_field_offset): Rename into...
3212 (gimple_compare_field_offset): ...this.
3213 * gimple.c (compare_field_offset): Rename into...
3214 (gimple_compare_field_offset): ...this. Compare the full access if
3215 the offset is self-referential.
3216 (gimple_types_compatible_p): Adjust for above renaming.
3217 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
3218 DECL_NONADDRESSABLE_P flag of fields before merging them.
3220 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
3222 * tree.h (ctor_to_list): Delete.
3223 * tree.c (ctor_to_list): Delete.
3225 2010-05-15 Jan Hubicka <jh@suse.cz>
3227 * ipa-reference.c: Include toplev.h
3228 (is_proper_for_analysis): Only add to all_module_statics
3230 (write_node_summary_p, stream_out_bitmap,
3231 ipa_reference_write_optimization_summary,
3232 ipa_reference_read_optimization_summary): New.
3233 (struct ipa_opt_pass_d pass_ipa_reference): Add
3234 optimization summary streaming.
3235 * lto-cgraph.c (referenced_from_this_partition_p,
3236 reachable_from_this_partition_p): New functions.
3237 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
3238 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
3239 * opts.c (decode_options): Enable ipa_reference.
3240 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
3241 * lto-streamer.h (referenced_from_this_partition_p,
3242 reachable_from_this_partition_p): Declare.
3244 2010-05-15 Richard Guenther <rguenther@suse.de>
3246 PR tree-optimization/44038
3247 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
3248 taking the address of a V_C_E of a constant.
3250 2010-05-14 Jan Hubicka <jh@suse.cz>
3252 * tree.h (memory_identifier_string): Remove.
3253 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
3254 (ipa_reference_global_vars_info_d): Remove statics_not_read and
3255 statics_not_written.
3256 (ipa_reference_optimization_summary_d): New structure.
3257 (ipa_reference_optimization_summary_t): New type and vector.
3258 (ipa_reference_vars_info_d): Embedd structures instead of using
3260 (reference_vars_to_consider): Remove out of GGC space.
3261 (module_statics_escape): Remove.
3262 (global_info_obstack): Rename to ...
3263 (optimization_summary_obstack): ... this one.
3264 (initialization_status_t): Remove.
3265 (memory_identifier_string): Remove.
3266 (get_reference_vars_info): Fix indenting.
3267 (set_reference_vars_info): Likewise.
3268 (get_reference_optimization_summary): New.
3269 (set_reference_optimization_summary): New.
3270 (get_global_reference_vars_info): Remove.
3271 (ipa_reference_get_read_global): Remove.
3272 (ipa_reference_get_written_global): Remove.
3273 (ipa_reference_get_not_read_global): Update.
3274 (ipa_reference_get_not_written_global): Update.
3275 (is_proper_for_analysis): Outlaw addressable.
3276 (propagate_bits): Update for new datastructures.
3277 (analyze_variable): Remove.
3278 (init_function_info): Update for new datastructures.
3279 (clean_function_local_data): Remove.
3280 (clean_function): Remove.
3281 (copy_global_bitmap): Use optimizations_summary_obstack.
3282 (duplicate_node_data): Duplicate optimization summary only.
3283 (remove_node_data): Remove optimization summary only.
3284 (generate_summary): Do not analyze variables; do not compute
3285 module_statics_escape; do not prune solutions by it.
3286 (read_write_all_from_decl): Fix typos in comments.
3287 (propagate): Doscover readonly and nonaddressable first;
3288 update for new datastructures; share global bitmaps.
3289 * ipa-reference.h (ipa_reference_get_read_global,
3290 ipa_reference_get_written_global): Remove.
3291 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
3292 * Makefile.in: Remove ipa-refereference from GT files.
3294 2010-05-14 Jakub Jelinek <jakub@redhat.com>
3297 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
3298 for all SYMBOL_REF_DECLs.
3300 2010-05-14 Jan Hubicka <jh@suse.cz>
3302 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
3303 (varpool_all_refs_explicit_p): New inline function.
3304 * ipa-reference.c: Update comment.
3305 (module_statics_written): Remove.
3306 (get_static_decl): Remove.
3307 (ipa_init): Do not initialize module_statics_written.
3308 (analyze_function): Likewise.
3309 (generate_summary): Likewise; do not compute module_statics_readonly
3310 and do not update variable flags.
3311 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
3312 * ipa.c: Inlucde flags.h
3313 (cgraph_local_node_p): New.
3314 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
3315 promote functions to local.
3316 (ipa_discover_readonly_nonaddressable_vars): New function.
3317 (function_and_variable_visibility): Use cgraph_local_node_p.
3318 * varpool.c (varpool_finalize_decl): Set force_output for
3319 DECL_PRESERVE_P vars.
3321 2010-05-14 Jan Hubicka <jh@suse.cz>
3323 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
3325 2010-05-14 Richard Guenther <rguenther@suse.de>
3327 PR tree-optimization/44119
3328 * tree-ssa-pre.c (eliminate): Properly mark replacement of
3329 a PHI node necessary.
3331 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
3333 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
3335 2010-05-14 Jason Merrill <jason@redhat.com>
3338 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
3339 (gimple_call_set_nothrow): New.
3340 * gimple.c (gimple_build_call_from_tree): Call it.
3341 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
3344 * gimplify.c (gimplify_seq_add_stmt): No longer static.
3345 * gimple.h: Declare it.
3346 * gimple.c (gimple_build_eh_filter): No ops.
3348 2010-05-14 Jan Hubicka <jh@suse.cz>
3350 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
3351 nodes already in queue.
3352 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
3355 2010-05-14 Jakub Jelinek <jakub@redhat.com>
3358 * cfgexpand.c (expand_debug_expr): If non-memory op0
3359 has BLKmode, return NULL.
3361 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
3363 * config.gcc: Add support for --with-cpu option for bdver1.
3364 * config/i386/i386.h (TARGET_BDVER1): New macro.
3365 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
3366 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
3367 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
3368 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
3369 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
3370 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
3371 (processor_type): Add PROCESSOR_BDVER1.
3372 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
3373 processor_type in config/i386/i386.h.
3374 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
3375 movaps <reg, reg> instead of movapd <reg, reg> when replacing
3376 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
3377 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
3378 to emit packed xor instead of packed double/packed integer
3379 xor for SSE and AVX when moving a zero value.
3380 * config/i386/sse.md: Add check for
3381 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
3382 movapd/movdqa for SSE and AVX.
3383 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
3384 single logical operations i.e and, or and xor instead of packed double
3385 logical operations for SSE and AVX.
3386 * config/i386/i386-c.c (ix86_target_macros_internal):
3387 Add PROCESSOR_BDVER1.
3388 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
3389 (has_fma4, has_xop): New.
3390 * config/i386/i386.c (bdver1_cost): New variable.
3391 (m_BDVER1): New macro.
3392 (m_AMD_MULTIPLE): Add m_BDVER1.
3393 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
3394 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
3395 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
3396 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
3397 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
3398 x86_tune_sse_partial_reg_dependency,
3399 x86_tune_sse_unaligned_load_optimal,
3400 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
3401 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
3402 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
3403 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
3404 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
3405 Enable/disable for bdver1.
3406 (processor_target_table): Add bdver1_cost.
3407 (cpu_names): Add bdver1.
3408 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
3409 processor_alias_table.
3410 (ix86_expand_vector_move_misalign): Change.
3411 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
3412 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
3413 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
3414 of movupd/movdqu for SSE and AVX.
3415 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
3416 (ix86_tune_adjust_cost): Add code for bdver1.
3417 (standard_sse_constant_opcode): Add check for
3418 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
3419 of packed double xor for SSE and AVX.
3421 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
3423 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
3426 2010-05-14 Tristan Gingold <gingold@adacore.com>
3428 * toplev.c (default_debug_hooks): Remove this variable.
3429 (process_options): Remove assignments to default_debug_hooks.
3431 2010-05-14 Martin Jambor <mjambor@suse.cz>
3433 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
3434 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
3435 * langhooks.h (struct lang_hooks_for_decls): Removed field
3437 * tree.c (free_lang_data): Remove assignment to
3438 lang_hooks.fold_obj_type_ref.
3439 * tree.def (OBJ_TYPE_REF): Update comment.
3441 2010-05-14 Richard Guenther <rguenther@suse.de>
3443 PR tree-optimization/44124
3444 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
3446 2010-05-14 Alan Modra <amodra@gmail.com>
3449 * config/rs6000/rs6000.c (struct machine_function): Reorder
3450 fields for better packing. Add lr_save_state.
3451 (rs6000_ra_ever_killed): Return lr_save_state if set.
3452 (rs6000_emit_eh_reg_restore): Set lr_save_state.
3454 2010-05-13 Jan Hubicka <jh@suse.cz>
3456 * varpool.c (decide_is_variable_needed): Drop code checking
3457 TREE_SYMBOL_REFERENCED.
3459 2010-05-13 Jan Hubicka <jh@suse.cz>
3461 * final.c (output_addr_const): Do not call mark_decl_referenced.
3462 * cgraphunit.c (process_function_and_variable_attributes): Use
3463 mark_needed_node dirrectly.
3464 (assemble_thunk): Do not call mark_decl_referenced.
3466 2010-05-13 Anatoly Sokolov <aesok@post.ru>
3468 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
3470 2010-05-13 Jeff Law <law@redhat.com>
3472 * ira-conflicts.c (print_allocno_conflicts): New function broken out
3474 (print_conflicts): Call print_allocno_conflicts.
3476 2010-05-13 Jakub Jelinek <jakub@redhat.com>
3479 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
3482 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
3484 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
3485 t-mingw-w64 or t-mingw-w32 for multilib configuration.
3486 * config/i386/t-mingw-w32: New.
3487 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
3489 2010-05-13 Martin Jambor <mjambor@suse.cz>
3491 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
3493 * gimple-fold.c (get_base_binfo_for_type): New function.
3494 (gimple_get_relevant_ref_binfo): Likewise.
3495 (gimple_fold_obj_type_ref_known_binfo): Likewise.
3496 (gimple_fold_obj_type_ref): Likewise.
3497 (fold_gimple_call): Simplify condition for folding virtual calls
3498 and call gimple_fold_obj_type_ref.
3499 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
3500 (gimple_fold_obj_type_ref_known_binfo): Likewise.
3502 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
3504 * config/rs6000/rs6000-protos.h
3505 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
3506 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
3507 (rs6000_debug_mode_dependent_address)
3508 (rs6000_mode_dependent_address_ptr): Likewise.
3510 2010-05-13 Jakub Jelinek <jakub@redhat.com>
3513 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
3515 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
3516 * tree-sra.c (create_access_replacement): Call unshare_expr before
3517 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
3518 * dwarf2out.c: Include tree-flow.h.
3519 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
3520 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
3521 Handle DW_OP_bit_piece.
3522 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
3523 construct_piece_list, adjust_piece_list): New functions.
3524 (add_var_loc_to_decl): Handle SRA optimized variables.
3525 Adjust for var_loc_note to loc field renaming.
3526 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
3527 in VAR_LOCATION note.
3528 (new_loc_descr_op_bit_piece): New function.
3529 (dw_sra_loc_expr): New function.
3530 (dw_loc_list): Use it. Don't handle the last range after the
3531 loop, handle it inside of the loop. Adjust for var_loc_note
3532 to loc field renaming.
3533 (add_location_or_const_value_attribute): Only special case
3534 single entry loc lists if loc is NOTE_P. Adjust for
3535 var_loc_note to loc field renaming.
3536 (dwarf2out_var_location): Don't set newloc->var_loc_note
3537 and newloc->next here.
3539 2010-05-12 Jan Hubicka <jh@suse.cz>
3541 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
3543 * cgraph.h (cgraph_only_called_directly_p,
3544 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
3545 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
3546 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
3548 * ipa.c (cgraph_remove_unreachable_nodes): Use
3549 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
3551 * tree-inline.c (copy_bb): Check address_taken flag.
3552 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
3553 externally_visible flag.
3555 2010-05-12 Jason Merrill <jason@redhat.com>
3559 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
3560 * sdbout.c (plain_type_1): Likewise.
3561 * dwarf2out.c (is_base_type): Likewise.
3562 (gen_type_die_with_usage): Likewise. Generate
3563 DW_TAG_unspecified_type for any LANG_TYPE.
3565 2010-05-12 Jan Hubicka <jh@suse.cz>
3567 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
3569 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
3570 (cgraph_clone_edge): Update.
3571 (cgraph_node_remove_callees): Remove indirect calls too.
3572 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
3573 (cgraph_create_indirect_edge): Update prototype.
3574 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
3575 is_proper_for_analysis.
3576 (add_new_function, visited_nodes, function_insertion_hook_holder,
3577 get_local_reference_vars_info, mark_address_taken, mark_address,
3578 mark_load, mark_store, check_asm_memory_clobber, check_call,
3579 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
3580 (ipa_init): Do not initialize visited_nodes;
3581 function_insertion_hook_holder.
3582 (analyze_variable): Rewrite.
3583 (analyze_function): Rewrite.
3584 (copy_local_bitmap): Remove.
3585 (duplicate_node_dat): Do not duplicate local info.
3586 (generate_summary): Simplify to only walk cgraph.
3587 (write_node_summary_p, ipa_reference_write_summary,
3588 ipa_reference_read_summary): Remove.
3589 (propagate): Do not remove function insertion;
3591 (pass_ipa_reference): NULLify summary handling fields.
3592 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
3593 (input_edge): Input ecf_flags.
3594 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
3595 (update_indirect_edges_after_inlining): Ignore edges with unknown
3598 2010-05-12 Sriraman Tallam <tmsriram@google.com>
3600 * implicit-zee.c: New file.
3601 * tree-pass.h (pass_implicit_zee): Declare.
3602 * passes.c (init_optimization_passes): Add zee pass.
3603 * common.opt (fzee): New flag.
3604 * timevar.def (TV_ZEE): Define.
3605 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
3607 * Makefile.in (implicit-zee.o): Add new build file.
3609 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
3610 Nathan Froyd <froydnj@codesourcery.com>
3612 * c-common.c (sync_resolve_params): Remove write-only variable.
3614 2010-05-12 Anatoly Sokolov <aesok@post.ru>
3616 * target.h (struct gcc_target): Add mode_dependent_address_p field.
3617 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3618 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
3619 * targhooks.c (default_mode_dependent_address_p): New function.
3620 * targhooks.h (default_mode_dependent_address_p): Declare function.
3621 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3622 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
3623 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
3624 target hook. Change return type to bool.
3625 * recog.h (mode_dependent_address_p): Change return type to bool.
3627 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
3628 Nathan Froyd <froydnj@codesourcery.com>
3630 * tree-mudflap.c (build_function_type_0, build_function_type_1,
3631 build_function_type_2, build_function_type_3): Remove.
3632 (mudflap_init): Use build_function_type_list.
3634 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
3635 Nathan Froyd <froydnj@codesourcery.com>
3637 * coverage.c (build_fn_info_value): Call build_constructor instead of
3638 build_constructor_from_list.
3639 (build_ctr_info_value): Likewise.
3640 (build_gcov_info): Likewise.
3642 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
3644 * tree.c (build_constructor): Compute TREE_CONSTANT for the
3645 resultant constructor.
3646 (build_constructor_single): Don't set TREE_CONSTANT.
3647 (build_constructor_from_list): Don't compute TREE_CONSTANT.
3649 2010-05-12 Jan Hubicka <jh@suse.cz>
3651 * cgraph.h (struct varpool_node): Add aux.
3652 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
3653 * varpool.c (varpool_remove_node): Do not remove initializer.
3654 (varpool_reset_queue): Export.
3655 (varpool_finalize_decl): Volatile vars are forced to be output.
3656 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
3658 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
3659 process_references, varpool_can_remove_if_no_refs): New functions.
3660 (cgraph_remove_unreachable_nodes): Handle variables too.
3662 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
3665 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
3667 2010-05-12 Jakub Jelinek <jakub@redhat.com>
3670 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
3671 change value of ORT_TASK.
3672 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
3673 (omp_notice_threadprivate_variable): New function.
3674 (omp_notice_variable): Call it for threadprivate variables.
3675 If enclosing ctx is a task, print enclosing task rather than
3676 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
3677 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
3678 if task has untied clause.
3681 * dwarf2out.c (base_type_die): Don't add name attribute here.
3682 (modified_type_die): Instead of sizetype use
3683 its underlying original type. If a DW_TAG_base_type doesn't
3684 have name added, add __unknown__.
3685 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
3686 always call force_type_die instead.
3688 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
3690 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
3691 for __stack_chk_guard.
3693 2010-05-11 Jakub Jelinek <jakub@redhat.com>
3695 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
3696 don't call start_source_file debug hook here...
3697 (finish_options): ... but here, after outputting predefined and
3698 command line defines and undefs.
3701 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
3703 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
3704 optimizing away empty bb with no successors, move over its
3705 footer chain to fallthru predecessor.
3706 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
3707 (rtl_split_edge): For asm goto call patch_jump_insn even if
3708 splitting fallthru edge.
3711 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
3712 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
3713 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3714 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
3718 * c-parser.c (c_parser_expression): Mark LHS of a comma
3719 expression as read if it is a decl, handled component or
3720 COMPOUND_EXPR with that on the RHS.
3721 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
3722 if it is a decl or handled component.
3724 2010-05-11 Jan Hubicka <jh@suse.cz>
3726 * lto-symtab.c (lto_symtab_free): New function.
3727 * lto-streamer.h (lto_symtab_free): Declare.
3729 2010-05-11 Jan Hubicka <jh@suse.cz>
3731 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
3732 that if function is needed it is reachable.
3733 (lto_output_node): See if it the function is reachable or referenced.
3734 (output_cgraph): Update call of lto_output_node.
3735 * lto-streamer.h (reachable_from_other_partition_p): Declare.
3737 2010-05-11 Jan Hubicka <jh@suse.cz>
3739 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
3742 2010-05-11 Jan Hubicka <jh@suse.cz>
3744 PR tree-optimize/44063
3745 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
3747 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
3749 (estimate_function_body_sizes): Compute sizes even when disregarding.
3751 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
3753 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
3755 2010-05-11 Jan Hubicka <jh@suse.cz>
3757 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
3758 into every boundary.
3760 2010-05-11 Jan Hubicka <jh@suse.cz>
3762 * matrix-reorg.c (matrix_reorg): Rebuild edges.
3764 2010-05-11 Jan Hubicka <jh@suse.cz>
3766 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
3767 lto_streamer_cache_delete): Put nodes into heap.
3768 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
3771 2010-05-11 Jan Hubicka <jh@suse.cz>
3773 * cgraphbuild.c (cgraph_rebuild_references): New.
3774 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
3776 * cgraph.h (cgraph_rebuild_references): Declare.
3777 * tree-inline.c (tree_function_versioning): Use it.
3778 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
3780 2010-05-11 Jan Hubicka <jh@suse.cz>
3782 * cgraph.c: Include ipa-utils.h
3783 (cgraph_create_virtual_clone): Update references.
3784 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
3786 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
3788 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
3789 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
3792 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
3794 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
3796 2010-05-11 Jakub Jelinek <jakub@redhat.com>
3798 * gcc.c (execute): For -### don't quote arguments that
3799 contain just alphanumerics and _/-. characters.
3800 * doc/invoke.texi: Document that change for -###.
3803 * df-problems.c (struct dead_debug): Add to_rescan field.
3804 (dead_debug_init): Clear to_rescan field.
3805 (dead_debug_finish): Rescan all debug insns in to_rescan
3806 bitmap and free the bitmap.
3807 (dead_debug_insert_before): Instead of rescanning debug insns
3808 immediately queue their rescanning until dead_debug_finish.
3809 (df_note_bb_compute): After dead_debug_add do continue instead
3812 2010-05-10 Jakub Jelinek <jakub@redhat.com>
3815 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
3816 clear also INSN_REG_USE_LIST.
3818 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3820 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
3822 2010-05-10 Jan Hubicka <jh@suse.cz>
3824 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
3827 2010-05-10 Jan Hubicka <jh@suse.cz>
3829 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
3831 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
3832 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
3833 (lto_streamer_cache_create): Init alloc pool.
3834 (lto_streamer_cache_delete): Free alloc pool.
3835 * lto-streamer.h: Include alloc pool.
3836 (lto_streamer_cache_d): Use alloc pool.
3837 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
3839 2010-05-10 Jan Hubicka <jh@suse.cz>
3841 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
3842 * cgraphbuild.c: Include except.h
3843 (record_type_list, record_eh_tables): New function.
3844 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
3846 2010-05-10 Jan Hubicka <jh@suse.cz>
3848 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
3849 __frame_dummy_init_array_entry, force_to_data): Attribute as used
3852 2010-05-10 Michael Matz <matz@suse.de>
3854 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
3855 (can_reassociate_p): Use FLOAT_TYPE_P.
3856 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
3857 (vect_force_simple_reduction): ... this.
3858 * tree-parloops.c (gather_scalar_reductions): Use
3859 vect_force_simple_reduction.
3860 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
3861 vect_is_simple_reduction, add modify argument, if true rewrite
3862 "a-b" into "a+(-b)".
3863 (vect_is_simple_reduction, vect_force_simple_reduction): New
3865 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
3867 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
3868 Vladimir Makarov <vmakarov@redhat.com>
3870 PR rtl-optimization/44012
3871 * ira-build.c (remove_unnecessary_allocnos): Nullify
3872 regno_allocno_map of the removed allocno.
3874 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3876 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
3878 * configure: Regenerate.
3880 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3882 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
3884 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
3885 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
3887 * configure: Regenerate.
3889 2010-05-10 Richard Guenther <rguenther@suse.de>
3891 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
3892 marked if the entry identifier is marked.
3894 2010-05-10 Richard Guenther <rguenther@suse.de>
3896 * c-common.c (struct c_common_attributes): Add fnspec attribute.
3897 (handle_fnspec_attribute): New function.
3898 * gimple.h (gimple_call_return_flags): Declare.
3899 (gimple_call_arg_flags): Likewise.
3900 * gimple.c (gimple_call_arg_flags): New function.
3901 (gimple_call_return_flags): Likewise.
3902 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
3904 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
3906 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
3907 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
3909 (make_heapvar_for): ... this new function.
3910 (handle_rhs_call): Handle fnspec attribute argument specifiers.
3911 (handle_lhs_call): Likewise.
3912 (find_func_aliases): Adjust.
3914 2010-05-10 Richard Guenther <rguenther@suse.de>
3916 PR tree-optimization/44050
3917 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
3919 2010-05-10 Wei Guozhi <carrot@google.com>
3922 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
3924 2010-05-09 Joseph Myers <joseph@codesourcery.com>
3927 * c-typeck.c (lookup_field): Take a type directly. Update
3929 (build_component_ref): Update call to lookup_field.
3930 (set_init_label): Use lookup_field to find initialized field.
3931 Handle returned list of fields like a sequence of designators.
3933 2010-05-09 Richard Guenther <rguenther@suse.de>
3936 * fold-const.c (tree_single_nonzero_warnv_p): Properly
3937 handle &FUNCTION_DECL.
3939 2010-05-09 Joseph Myers <joseph@codesourcery.com>
3942 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
3943 structures and unions recursively.
3944 (detect_field_duplicates): Move duplicate detection with a hash to
3945 detect_field_duplicates_hash. Always use a hash if anonymous
3946 structures or unions are present.
3947 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
3950 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
3953 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
3954 detect Atom, Core 2 and Core i7.
3956 2010-05-09 Richard Guenther <rguenther@suse.de>
3958 * gcc.c (store_arg): Handle temporary file deletion for
3961 2010-05-09 Richard Guenther <rguenther@suse.de>
3964 * ipa-inline.c (estimate_function_body_sizes): Return after
3965 disregarding inline limits.
3967 2010-05-09 Richard Guenther <rguenther@suse.de>
3969 * gcc.c (store_arg): Revert last change.
3971 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
3974 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
3975 (optimize_ops_list): Call it.
3977 2010-05-08 Richard Guenther <rguenther@suse.de>
3979 PR tree-optimization/44030
3980 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
3981 NECESSARY flag if we propagate from a inserted expression.
3983 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
3985 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
3986 domain types as equal if they are both PLACEHOLDER_EXPRs.
3988 2010-05-08 Richard Guenther <rguenther@suse.de>
3990 * lto-wrapper.c (run_gcc): Remove linker output from
3991 command line for LTRANS invocation.
3993 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
3995 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3996 lto-macho as lto_binary_reader.
3997 * target.h (struct gcc_target): New hooks lto_start and lto_end.
3998 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
3999 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
4000 in lto_start and lto_end calls.
4001 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
4003 (scan_prog_file): Update is_elf_or_coff call.
4004 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
4006 * collect2.c (main): Fix enum comparison.
4008 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
4010 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
4011 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
4012 and TARGET_ASM_LTO_END.
4013 * darwin.c: Include obstack.h and lto-streamer.h.
4014 (lto_section_names_offset, lto_section_names_obstack,
4015 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
4017 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
4018 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
4019 to a temporary file.
4020 (darwin_asm_lto_end): New function. Restore asm_out_file.
4021 (darwin_asm_named_section): For LTO sections, replace the name with
4022 the offset of the section name in a string table, and build this
4024 (darwin_file_start): Initialize global vars for LTO support.
4025 (darwin_file_end): If output to asm_out_file was redirected, append it
4026 to the proper asm_out_file here. Add the section names section.
4028 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
4030 * c-pragma.c (pending_weak_d, pending_weak): New.
4031 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
4032 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
4033 handle_pragma_weak): Update the uses of pending_weaks.
4035 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4037 PR documentation/44016
4038 * doc/standards.texi (Standards): Link to unversioned
4039 cxx0x_status.html page.
4041 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
4044 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
4045 in addition to TREE_USED, to avoid "set but unused" warnings.
4047 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
4049 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
4050 (is_loop_prefetching_profitable): Do not insert prefetches
4051 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
4052 times the prefetch ahead distance.
4054 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
4056 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
4057 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
4058 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
4061 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
4063 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
4064 a diagnostic info when the insn-to-mem ratio is too small.
4066 2010-05-07 Richard Guenther <rguenther@suse.de>
4068 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
4070 (store_arg): Queue temp_filename for deletion instead of
4073 2010-05-07 Richard Guenther <rguenther@suse.de>
4075 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
4076 (run_gcc): Handle LTRANS phase invocation.
4077 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
4079 2010-05-07 Jakub Jelinek <jakub@redhat.com>
4081 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
4082 this is also meaningful on PARM_DECLs and RESULT_DECLs.
4084 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4086 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
4088 2010-05-07 Richard Guenther <rguenther@suse.de>
4090 PR tree-optimization/44020
4091 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
4092 code when PRE is not yet initialized.
4094 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4096 * config/mips/dbxmdebug.h: Remove.
4097 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
4099 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
4101 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
4102 with null pointer and also warn about ordered comparison of zero with
4105 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4107 * graphite-blocking.c
4108 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
4109 * graphite-clast-to-gimple.c
4110 (clast_to_gcc_expression): Same.
4111 (precision_for_value): Same.
4112 (precision_for_interval): Same.
4113 (gcc_type_for_interval): Same.
4114 (graphite_create_new_guard): Same.
4115 (compute_bounds_for_level): Same.
4116 (graphite_create_new_loop_guard): Same.
4117 * graphite-interchange.c
4118 (build_linearized_memory_access): Same.
4119 (pdr_stride_in_loop): Same.
4120 (memory_strides_in_loop_1): Same.
4121 (memory_strides_in_loop): Same.
4122 (extend_scattering): Same.
4123 (psct_scattering_dim_for_loop_depth): Same.
4124 (pbb_number_of_iterations): Same.
4126 (debug_iteration_domains): Same.
4128 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
4129 (ppl_set_inhomogeneous_gmp): Same.
4130 (ppl_strip_loop): Same.
4131 (ppl_lexico_compare_linear_expressions): Same.
4132 (ppl_read_polyhedron_matrix): Same.
4133 (ppl_max_for_le_pointset): Same.
4135 (ppl_read_polyhedron_matrix): Same.
4136 (tree_int_to_gmp): Same.
4137 (gmp_cst_to_tree): Same.
4138 (ppl_set_inhomogeneous): Same.
4139 (ppl_set_inhomogeneous_tree): Same.
4140 (ppl_set_coef): Same.
4141 (ppl_set_coef_tree): Same.
4142 * graphite-sese-to-poly.c
4143 (build_pbb_scattering_polyhedrons): Same.
4144 (build_scop_scattering): Same.
4145 (scan_tree_for_params_right_scev): Same.
4146 (scan_tree_for_params): Same.
4147 (find_params_in_bb): Same.
4148 (find_scop_parameters): Same.
4149 (add_upper_bounds_from_estimated_nit): Same.
4150 (build_loop_iteration_domains): Same.
4151 (add_condition_to_domain): Same.
4152 (pdr_add_memory_accesses): Same.
4154 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4156 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
4157 CLooG's value_* macros to their respective mpz_* counterparts.
4158 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
4159 (graphite_create_new_loop_guard): Same.
4160 * graphite-interchange.c (build_linearized_memory_access): Same.
4161 (pdr_stride_in_loop): Same.
4162 (memory_strides_in_loop_1): Same.
4163 (1st_interchange_profitable_p): Same.
4164 * graphite-poly.c (extend_scattering): Same.
4165 (psct_scattering_dim_for_loop_depth): Same.
4166 (pbb_number_of_iterations): Same.
4167 (pbb_number_of_iterations_at_time): Same.
4168 * graphite-poly.h (new_1st_loop): Same.
4169 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
4170 (oppose_constraint): Same.
4171 (insert_constraint_into_matrix): Same.
4172 (ppl_set_inhomogeneous_gmp): Same.
4173 (ppl_set_coef_gmp): Same.
4174 (ppl_strip_loop): Same.
4175 (ppl_lexico_compare_linear_expressions): Same.
4176 (ppl_max_for_le_pointset): Same.
4177 (ppl_min_for_le_pointset): Same.
4178 (ppl_build_realtion): Same.
4179 * graphite-ppl.h (gmp_cst_to_tree): Same.
4180 (ppl_set_inhomogeneous): Same.
4181 (ppl_set_inhomogeneous_tree): Same.
4182 (ppl_set_coef): Same.
4183 (ppl_set_coef_tree): Same.
4184 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
4185 (build_scop_scattering): Same.
4186 (add_value_to_dim): Same.
4187 (scan_tree_for_params_right_scev): Same.
4188 (scan_tree_for_params_int): Same.
4189 (scan_tree_for_params): Same.
4190 (find_params_in_bb): Same.
4191 (find_scop_parameters): Same.
4192 (add_upper_bounds_from_estimated_nit): Same.
4193 (build_loop_iteration_domains): Same.
4194 (create_linear_expr_from_tree): Same.
4195 (add_condition_to_domain): Same.
4196 (pdr_add_memory_accesses): Same.
4198 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
4199 Jason Merrill <jason@redhat.com>
4201 * c-common.c (c_common_reswords): Add nullptr.
4202 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
4203 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
4204 (gen_type_die_with_usage): Likewise.
4205 * dbxout.c (dbxout_type): Likewise.
4206 * sdbout.c (plain_type_1): Likewise.
4208 2010-05-06 Jason Merrill <jason@redhat.com>
4210 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
4211 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
4213 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
4215 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
4216 stripping WITH_SIZE_EXPR.
4217 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
4220 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4222 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
4223 list of obsolete configurations.
4224 Disabled check for obsolete configurations.
4225 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
4226 Removed support for previous versions.
4227 * config/mips/iris.h: Removed.
4228 * config/mips/iris5.h: Removed.
4229 * config/mips/iris6.h: Merged old iris.h contents.
4230 (TARGET_IRIX): Removed.
4231 (DRIVER_SELF_SPECS): Removed mabi=32.
4232 (IDENT_ASM_OP): Removed undef.
4233 (STARTFILE_SPEC): Removed mabi=32.
4234 (ENDFILE_SPEC): Likewise.
4235 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
4236 (MACHINE_TYPE): Update for IRIX 6.5.
4237 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
4238 TARGET_IRIX by TARGET_IRIX6.
4239 (mips_file_start): Likewise.
4240 (mips_output_external): Remove IRIX 5/6 O32 support.
4241 (mips_output_function_prologue): Likewise.
4242 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
4244 (TARGET_CPU_CPP_BUILTINS): Likewise.
4245 (TARGET_IRIX): Removed.
4246 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
4247 (MULTILIB_DIRNAMES): Removed 32.
4248 (MULTILIB_OSDIRNAMES): Removed ../lib.
4249 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
4250 (Specific, mips-sgi-irix5): Document removal.
4251 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
4252 Remove references to older IRIX 6 releases and the O32 ABI.
4254 2010-05-06 Jakub Jelinek <jakub@redhat.com>
4257 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
4258 instead of DF_REF_REAL_REG.
4260 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
4263 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
4264 handling to still return true for x64 targets.
4266 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
4268 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
4270 2010-05-06 Jan Hubicka <jh@suse.cz>
4272 PR tree-optimization/43791
4273 * ipa-inline.c (update_caller_keys): Remove bogus
4274 disregard_inline_limits check.
4276 2010-05-06 Michael Matz <matz@suse.de>
4278 PR tree-optimization/43984
4279 * tree-ssa-pre.c (inserted_phi_names): Remove.
4280 (inserted_exprs): Change to bitmap.
4281 (create_expression_by_pieces): Set bits, don't append to vector.
4282 (insert_into_preds_of_block): Don't handle inserted_phi_names.
4283 (eliminate): Don't look at inserted_phi_names, remove deleted
4284 insns from inserted_exprs.
4285 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
4286 (init_pre, fini_pre): Allocate and free bitmaps.
4287 (execute_pre): Insert insns on edges before elimination.
4289 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
4291 * tree.c (initializer_zerop): Handle STRING_CST.
4293 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
4296 * doc/invoke.texi (Wimplicit): Document as C only.
4297 * opts.c (common_handle_option): Add argument kind.
4298 (handle_option): Rename as read_cmdline_option. Factor out code to...
4299 (handle_option): ... here. New.
4300 (handle_options): Rename as read_cmdline_options.
4301 (decode_options): Update call.
4302 (set_option): Use option index instead of option pointer. Classify
4303 diagnostics correctly.
4304 (enable_warning_as_error): Call handle_option.
4305 * opts.h (set_option): Update declaration.
4306 (handle_option): Declare.
4307 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
4308 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
4309 * c-opts.c (set_Wimplicit): Delete.
4310 (c_family_lang_mask): New static constant.
4311 (c_common_handle_option): Add argument kind. Use handle_option
4312 instead of set_Wimplicit.
4313 (c_common_post_options): warn_implicit and warn_implicit_int
4314 are disabled by default.
4315 * c-common.c (warn_implicit): Do not define here.
4316 * c-common.h (warn_implicit): Do not declare here.
4317 (c_common_handle_option): Update declaration.
4318 * lto-opts.c (lto_reissue_options): Update call to set_option.
4320 2010-05-06 Richard Guenther <rguenther@suse.de>
4322 PR tree-optimization/43571
4323 * domwalk.c (walk_dominator_tree): Walk the dominator
4324 sons in more optimal order.
4326 2010-05-06 Richard Guenther <rguenther@suse.de>
4328 PR tree-optimization/43934
4329 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
4330 (stmt_cost): Likewise.
4331 (extract_true_false_args_from_phi): New helper.
4332 (determine_max_movement): For PHI nodes verify we can hoist them
4333 and compute their cost.
4334 (determine_invariantness_stmt): Handle PHI nodes.
4335 (move_computations_stmt): Likewise. Hoist PHI nodes in
4336 if-converted form using COND_EXPRs.
4337 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
4338 (tree_ssa_lim): Likewise.
4339 * tree-flow.h (tree_ssa_lim): Adjust prototype.
4340 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
4342 2010-05-06 Richard Guenther <rguenther@suse.de>
4344 PR tree-optimization/43987
4345 * tree-ssa-structalias.c (could_have_pointers): For possibly
4346 address-taken variables force pointers to be recorded.
4347 (create_variable_info_for_1): Likewise.
4348 (push_fields_onto_fieldstack): Pass in wheter all fields
4350 (find_func_aliases): Query types instead of vars whether
4351 they contain pointers where appropriate.
4353 2010-05-06 Jan Hubicka <jh@suse.cz>
4355 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
4356 (record_reference, mark_address, mark_load, mark_store): Record
4358 (record_references_in_initializer): Update call of record_references.
4359 (rebuild_cgraph_edges): Remove all references before rebuiding.
4360 * cgraph.c (cgraph_create_node): Clear ref list.
4361 (cgraph_remove_node): Remove references.
4362 (dump_cgraph_node): Dump references.
4363 (cgraph_clone_node): Clone references.
4364 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
4365 (struct cgraph_node, varpool_node): Add ref_lst.
4366 * ipa-ref.c: New file.
4367 * ipa-ref.h: New file.
4368 * ipa-ref-inline.h: New file.
4369 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
4370 (referenced_from_other_partition_p): New function.
4371 (lto_output_varpool_node): Take set arugment; call
4372 referenced_from_other_partition.
4373 (lto_output_ref): New.
4374 (add_references): New.
4376 (output_cgraph): Compute boundary based on references; output refs.
4377 (output_varpool): Accept cgraph_node_set argument.
4380 (input_cgraph): Call input_refs.
4381 * lto-section-in.c (lto_section_name): Add refs.
4382 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
4383 (ipa-ref.o): New file.
4384 * varpool.c (varpool_node): Clear ipa ref list.
4385 (varpool_remove_node): Remove references.
4386 (dump_varpool_node): Dump references.
4387 (varpool_assemble_decl): Only compile finalized ones.
4388 (varpool_extra_name_alias): Initialize ref list.
4389 * lto-streamer.c (lto-get_section_name): Add .refs section.
4390 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
4391 (referenced_from_other_partition_p): Declared.
4393 2010-05-06 Ira Rosen <irar@il.ibm.com>
4395 PR tree-optimization/43901
4396 * tree-vect-stmts.c (vectorizable_call): Assert that vector
4397 type is not NULL if it's transformation phase, and return
4398 FALSE if it's analysis.
4399 (vectorizable_conversion, vectorizable_operation,
4400 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
4402 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
4404 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
4406 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
4408 * config/mips/mips-protos.h
4409 (mips_small_register_classes_for_mode_p): Delete prototype.
4411 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
4413 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
4414 * config/arm/arm.c (multiple_operation_profitable_p,
4415 compute_offset_order): New static functions.
4416 (load_multiple_sequence, store_multiple_sequence): Use them.
4417 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
4418 memory offsets, not register numbers.
4419 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
4421 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
4423 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
4424 (get_pending_sizes, put_pending_size, put_pending_sizes):
4425 Update the uses of pending_sizes.
4426 * c-decl.c (store_parm_decls): Likewise.
4427 * c-tree.h (struct c_arg_info): Likewise.
4428 * tree.h: Update the prototype for get_pending_sizes and
4431 2010-05-05 Jason Merrill <jason@redhat.com>
4434 * c-common.c (handle_aligned_attribute): Respect
4435 ATTR_FLAG_TYPE_IN_PLACE.
4438 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
4439 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4440 (TARGET_INITIALIZER): Use it.
4441 * c-common.c (attribute_takes_identifier_p): Call it.
4442 * c-common.h: Update prototype.
4443 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
4444 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4446 2010-05-05 Jakub Jelinek <jakub@redhat.com>
4449 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
4450 DW_ID_down_case for Fortran compilation units.
4452 2010-05-05 Jan Hubicka <jh@suse.cz>
4454 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
4457 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
4459 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
4460 a variable-sized RESULT_DECL.
4462 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
4464 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
4466 2010-05-05 Jason Merrill <jason@redhat.com>
4469 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
4471 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
4473 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
4474 Jakub Jelinek <jakub@redhat.com>
4477 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
4478 (dead_debug_init, dead_debug_finish): New functions.
4479 (dead_debug_add, dead_debug_insert_before): Likewise.
4480 (df_note_bb_compute): Initialize a dead_debug object, add dead
4481 debug uses to it, insert debug bind insns before death insns,
4482 reset debug insns that refer to pending uses at the end.
4483 * rtl.h (make_debug_expr_from_rtl): New prototype.
4484 * varasm.c (make_debug_expr_from_rtl): New function.
4486 2010-05-05 Jan Hubicka <jh@suse.cz>
4488 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
4489 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
4490 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
4491 lto_varpool_encoder_deref, lto_varpool_encoder_size,
4492 lto_varpool_encoder_encode_initializer_p,
4493 lto_set_varpool_encoder_encode_initializer): New functions.
4494 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
4495 call output_varpool.
4496 (input_varpool_node): Do not always set analyzed.
4497 (input_cgraph_1): Return vector of cgraph nodes.
4498 (input_varpool_1): Return vector of varpools.
4499 (input_cgraph): Free the vectors.
4500 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4501 output only initializers needed.
4502 (lto_output): Only call output_cgraph.
4503 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
4504 * lto-section-out.c (lto_new_out_decl_state): Initialize
4505 state->varpool_node_encoder.
4506 * lto-streamer.h (lto_varpool_encoder_d): New.
4507 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
4508 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
4509 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
4510 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
4511 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
4513 (output_varpool, input_varpool): Remove declarations.
4515 2010-05-05 Jan Hubicka <jh@suse.cz>
4517 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
4518 with body can prevail.
4520 2010-05-05 Jan Hubicka <jh@suse.cz>
4522 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
4525 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4527 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
4529 * gengtype.h (erro_at_line): Constify pos argument.
4531 * gengtype.c: Include hashtab.h.
4532 (enum gc_used): Document GC_MAYBE_POINTED_TO.
4533 (error_at_line): Constify pos argument.
4534 (do_typedef): Initialize p->opt field.
4535 (get_file_gtfilename): Fix comment typo.
4536 (struct walk_type_data): Constify line field.
4537 (get_output_file_for_structure): New function.
4538 (write_local_func_for_structure): Constify orig_s argument.
4539 Use get_output_file_for_structure.
4540 (write_func_for_structure): Use get_output_file_for_structure.
4541 (INDENT): New define.
4542 (dump_pair, dump_type, dump_type_list, dump_typekind)
4543 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
4544 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
4546 (seen_types): New variable.
4547 (main): New variable do_dump. Process "-d" command line option.
4548 Call dump_everything if dump requested.
4550 2010-05-05 Jakub Jelinek <jakub@redhat.com>
4552 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
4553 in a temporary instead of invoking the macro multiple times.
4554 (track_expr_p): Likewise.
4556 2010-05-04 Neil Vachharajani <nvachhar@google.com>
4558 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
4560 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
4561 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
4562 conditions for printing notes.
4563 * common.opt (-Wcoverage-mismatch): Allow negative, default to
4564 true, update documentation.
4565 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
4567 2010-05-04 Jakub Jelinek <jakub@redhat.com>
4570 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
4573 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
4576 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
4577 (*sse_prologue_save_insn1): Likewise.
4578 (SSE prologue save splitter): Likewise.
4580 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
4582 * tree.c (free_lang_data_in_one_sizepos): New inline function.
4583 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
4584 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
4585 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
4586 all decls. Call it on DECL_FIELD_OFFSET of fields.
4587 (find_decls_types_r): Follow DECL_VALUE_EXPR.
4588 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
4590 2010-05-04 Martin Jambor <mjambor@suse.cz>
4592 * tree-sra.c (build_access_from_expr_1): The first parameter type
4593 changed to simple tree.
4594 (build_access_from_expr): Likewise, gsi parameter was eliminated.
4595 (scan_assign_result): Renamed to assignment_mod_result, enum elements
4597 (build_accesses_from_assign): Removed all parameters except for a
4598 simple gimple statement. Now returns a simple bool.
4599 (scan_function): All non-analysis parts moved to separate functions
4600 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
4601 parameters and updated both callers.
4602 (sra_modify_expr): Removed parameter data.
4603 (sra_modify_function_body): New function.
4604 (perform_intra_sra): Call sra_modify_function_body to modify the
4606 (replace_removed_params_ssa_names): Parameter data changed into
4608 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
4609 changed the parameter dont_convert to convert with the opposite
4611 (sra_ipa_modify_assign): Parameter data changed into adjustments
4612 vector, return value changed to bool.
4613 (ipa_sra_modify_function_body): New function.
4614 (sra_ipa_reset_debug_stmts): Updated a comment.
4615 (modify_function): Use ipa_sra_modify_function_body to modify function
4618 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
4621 * alias.c (true_dependence): Handle the same VALUE in x and mem.
4622 (canon_true_dependence): Likewise.
4623 (write_dependence_p): Likewise.
4625 2010-05-04 Jan Hubicka <jh@suse.cz>
4627 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
4628 * cgraphbuild.c: Include ipa-utils.h
4629 (record_reference_ctx): New struct.
4630 (record_reference): Simplify to work on initializers; not statements.
4631 (mark_address, mark_load, mark_store): New.
4632 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4634 (record_references_in_initializer): Update use of record_reference.
4635 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4638 2010-05-04 Jan Hubicka <jh@suse.cz>
4640 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
4641 node will be removed anyway.
4642 (lto_varpool_replace_node): Allow also unanalyzed nodes;
4643 relink aliases of node into prevailing node.
4644 * varpool.c (varpool_remove_node): Remove aliases properly;
4645 when removing node, remove all its aliases too; remove DECL_INITIAL
4646 of removed node; ggc_free the varpool node.
4648 2010-05-04 Richard Guenther <rguenther@suse.de>
4650 PR tree-optimization/43879
4651 * tree-ssa-structalias.c (alias_get_name): Use
4652 DECL_ASSEMBLER_NAME if available.
4653 (create_function_info_for): Return the varinfo node.
4654 (ipa_pta_execute): Associate same-body aliases and extra names
4655 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
4657 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
4659 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
4661 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
4664 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
4665 only if HONOR_REG_ALLOC_ORDER is not defined.
4667 2010-05-04 Richard Guenther <rguenther@suse.de>
4669 PR tree-optimization/43949
4670 * tree-vrp.c (extract_range_from_binary_expr): Only handle
4673 2010-04-26 Jason Merrill <jason@redhat.com>
4675 * c.opt (-fstrict-enums): New.
4676 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
4678 2010-05-03 David Ung <davidu@mips.com>
4679 James E. Wilson <wilson@codesourcery.com>
4681 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
4682 emit the trap instruction before the divide for TUNE_74K.
4684 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
4686 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
4687 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
4688 based on the above, for new target hook.
4690 * hooks.c (hook_bool_mode_true): New generic hook.
4691 * hooks.h (hook_bool_mode_true): Add prototype.
4693 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
4695 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
4696 target hook, set to hook_bool_mode_false.
4697 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
4698 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
4699 with targetm.small_register_classes_for_mode_p.
4700 (find_reusable_reload): Likewise.
4701 (combine_reloads): Likewise.
4702 * reload1.c (reload_as_needed): Likewise.
4703 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
4704 * ifcvt.c (noce_process_if_block, check_cond_move_block,
4705 dead_or_predicable): Likewise.
4706 * regmove.c (optimize_reg_copy_1): Likewise.
4707 * calls.c (prepare_call_address): Likewise.
4708 (precompute_register_parameters): Likewise.
4710 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
4712 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
4713 implementation of the hook that considers all register classes
4714 small except for SH64.
4715 (sh_override_options): Use the new hook.
4716 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
4719 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
4721 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
4722 implementation of the hook that considers all register classes
4724 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
4727 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
4729 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
4730 implementation of the hook that considers all register classes
4732 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
4735 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
4737 * config/m32c/m32c.h: Likewise.
4738 * config/pdp11/pdp11.h: Likewise.
4739 * config/avr/avr.h: Likewise.
4740 * config/xtensa/xtensa.h: Likewise.
4741 * config/m68hc11/m68hc11.h: Likewise.
4742 * config/mn10300/mn10300.h: Likewise.
4743 * config/mcore/mcore.h: Likewise.
4744 * config/h8300/h8300.h: Likewise.
4745 * config/bfin/bfin.h: Likewise.
4747 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
4748 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
4750 2010-05-03 Anatoly Sokolov <aesok@post.ru>
4752 * double-int.h (tree_to_double_int): Remove macro.
4753 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
4754 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4755 (tree_to_double_int): New function.
4756 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
4758 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4760 2010-05-03 Richard Guenther <rguenther@suse.de>
4762 PR tree-optimization/43971
4763 * tree-ssa-structalias.c (get_constraint_for_1): Fix
4764 constraints in the !flag_delete_null_pointer_checks case.
4766 2010-05-03 Jakub Jelinek <jakub@redhat.com>
4769 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
4770 result mode matches original rtl mode.
4772 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
4775 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
4777 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4779 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
4780 when processing flag options.
4782 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4784 * gcov-iov.c (main): Change format string placeholder
4785 from %#08x to 0x%08x.
4786 * genchecksum.c (dosum): Change format string placeholder
4787 from %#02x to 0x%02x.
4789 2010-05-02 Richard Guenther <rguenther@suse.de>
4791 PR tree-optimization/43879
4792 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
4794 2010-05-02 Bruno Haible <bruno@clisp.org>
4796 * doc/extend.texi (Function Attributes): Fix a typo.
4798 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4801 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
4802 placeholder from 0x%x to %#x.
4803 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4804 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
4805 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
4806 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
4807 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
4808 * config/i386/i386.c (ix86_target_string): Ditto.
4809 * config/i386/i386.c (output_pic_addr_const): Ditto.
4810 (print_operand): Ditto.
4812 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
4814 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
4815 placeholder from 0x%x to %#x.
4816 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
4817 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
4818 (ASM_OUTPUT_DEBUG_DATA): Ditto.
4819 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
4820 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
4821 * optc-gen.awk: Ditto.
4822 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
4823 (HOST_WIDE_INT_PRINT_HEX): Ditto.
4824 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
4825 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4827 2010-05-01 Anatoly Sokolov <aesok@post.ru>
4829 * target.h (struct calls): Add function_value_regno_p field.
4830 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
4831 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
4832 * targhooks.c (default_function_value_regno_p): New function.
4833 * targhooks.h (default_function_value_regno_p): Declare function.
4834 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
4835 * builtins.c. (apply_result_size): (Ditto.).
4836 * combine.c. (likely_spilled_retval_p): (Ditto.).
4837 * mode-switching.c. Include 'target.h'.
4838 (create_pre_exit): Use function_value_regno_p hook.
4839 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
4840 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
4841 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
4843 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
4844 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
4845 (ix86_function_value_regno_p): Declare as static, change argument
4846 type to const unsigned int.
4847 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
4849 2010-05-01 Richard Guenther <rguenther@suse.de>
4851 PR tree-optimization/43949
4852 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
4854 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
4856 2010-05-01 Anatoly Sokolov <aesok@post.ru>
4858 * rtl.h (CONST_DOUBLE_P): Define.
4859 (rtx_to_double_int): Declare.
4860 * emit-rtl.c (rtx_to_double_int): New function.
4861 * dwarf2out.c (insert_double): New function.
4862 (loc_descriptor, add_const_value_attribute): Clean up, use
4863 rtx_to_double_int and insert_double functions.
4865 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
4867 * doc/extend.texi (Inline): Add missing return keyword to examples.
4868 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
4871 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
4873 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
4874 the variable part of the offset as well. Use highest_pow2_factor for
4875 all alignment checks.
4877 2010-04-30 Richard Guenther <rguenther@suse.de>
4879 PR tree-optimization/43879
4880 * tree-ssa-structalias.c (type_could_have_pointers): Functions
4883 2010-04-30 Jan Hubicka <jh@suse.cz>
4885 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
4887 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
4889 2010-04-30 Jan Hubicka <jh@suse.cz>
4891 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
4893 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
4894 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
4895 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
4896 cgraph_node_set_needs_ltrans_p): Remove.
4898 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
4900 * sdbout.c: Include vec.h, do not include varray.h.
4901 (deferred_global_decls, sdbout_global_decl,
4902 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
4903 * toplev.c: Do not include varray.h.
4904 (dump_memory_report): Do not dump VARRAY statistics.
4905 * gengtype.c (open_base_file): Ignore varray.h.
4906 * Makefile.in: Update for abovementioned changes.
4907 Remove all traces of varray.c and varray.h.
4908 * varray.c: Remove file.
4909 * varray.h: Remove file.
4911 2010-04-30 Jan Hubicka <jh@suse.cz>
4913 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
4916 2010-04-30 Jan Hubicka <jh@suse.cz>
4918 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
4921 2010-04-30 Richard Guenther <rguenther@suse.de>
4923 * tree-ssa-structalias.c (get_constraint_for_1): Generate
4924 constraints for CONSTRUCTOR.
4926 2010-04-30 Richard Guenther <rguenther@suse.de>
4929 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
4930 first after all lowering passes.
4932 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
4934 * toplev.c: Include varray.h for statistics dumping.
4935 * tree.h: Do not declare varray_head_tag.
4936 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
4937 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
4938 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
4939 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
4940 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
4941 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
4942 c-common.c, c-common.h, reg-stack.c, basic-block.h,
4943 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
4945 * Makefile.in: Update for abovementioned changes.
4947 2010-04-30 Jakub Jelinek <jakub@redhat.com>
4950 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
4952 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
4954 * config/picochip/picochip.c (picochip_legitimize_address): Define.
4955 Use this function to do machine-specific conversion.
4956 (picochip_legitimize_reload_address): Likewise.
4957 (picochip_legitimate_address_p): Check valid base register only if
4959 (picochip_check_conditional_copy): Check for modw only if opnd is
4961 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
4962 to call the function in c.
4963 * config/picochip/picochip-protos.h
4964 (picochip_legitimize_reload_address): Define.
4965 * config/picochip/picochip.md (supported_compare1): Define.
4967 2010-04-30 Jan Hubicka <jh@suse.cz>
4969 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
4970 (cgraph_global_info): Remove inlined.
4971 (LTO_cgraph_tag_names): Remove.
4972 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
4973 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
4974 simplify cgraph tags and document.
4975 (lto_output_node): Use only LTO_cgraph_unavail_node and
4976 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
4977 for_functions_valid, global info, process and output flags.
4978 (input_overwrite_node): Initialize estimated stack size and
4979 estimated growth. Do not read flags we no longer store.
4980 (input_node): Likewise do not read info no longer stored.
4981 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
4984 2010-04-30 Richard Guenther <rguenther@suse.de>
4986 PR tree-optimization/43879
4987 * tree-ssa-structalias.c (get_constraint_for_1): Properly
4988 handle non-zero initializers.
4990 2010-04-30 Richard Guenther <rguenther@suse.de>
4992 * builtins.c (fold_builtin_1): Delete free (0).
4994 2010-04-29 Jan Hubicka <jh@suse.cz>
4996 * gengtype.c (open_base_files): Add lto-streamer.h
4997 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
4998 (pass_ipa_cp): GGC collect.
4999 * toplev. (compile_file): Do not output symbols.
5000 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
5001 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
5002 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
5003 * lto-section-in.c: Include ggc.h
5004 (lto_new_in_decl_state): Alloc in GGC.
5005 (lto_delete_in_decl_state): Likewise.
5006 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
5009 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
5012 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
5013 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
5014 (HONOR_REG_ALLOC_ORDER): Describe new macro.
5015 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
5016 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
5017 account only if HONOR_REG_ALLOC_ORDER is not defined.
5018 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
5019 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
5021 2010-04-29 Jon Grant <04@jguk.org>
5023 * collect2.c (vflag): Change type from int to bool.
5025 (helpflag): New global bool.
5026 (main): Set vflag and debug with boolean, not integer truth values.
5027 Accept new "--help" option and output usage text if found.
5028 * collect2.h (vflag): Update prototype.
5031 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
5034 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
5036 2010-04-29 Richard Guenther <rguenther@suse.de>
5039 * plugin.h (invoke_plugin_callbacks): Annotate arguments
5040 with ATTRIBUTE_UNUSED.
5042 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
5045 * config/i386/i386.c (get_some_local_dynamic_name): Replace
5046 INSN_P with NONDEBUG_INSN_P.
5047 (distance_non_agu_define): Likewise.
5048 (distance_agu_use): Likewise.
5050 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
5052 From Dominique d'Humieres <dominiq@lps.ens.fr>
5054 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
5057 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
5059 * plugin.h (invoke_plugin_callbacks): New inline function.
5060 * plugin.c (flag_plugin_added): New global flag.
5061 (add_new_plugin): Initialize above flag.
5062 (invoke_plugin_callbacks): Rename to ...
5063 (invoke_plugin_callbacks_full): ... this.
5065 2010-04-28 Jan Hubicka <jh@suse.cz>
5067 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
5068 (lto_varpool_replace_node): New.
5069 (lto_symtab_resolve_symbols): Resolve varpool nodes.
5070 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
5071 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
5072 * cgraph.h (varpool_node_ptr): New type.
5073 (varpool_node_ptr): New vector.
5074 (varpool_node_set_def): New structure.
5075 (varpool_node_set): New type.
5076 (varpool_node_set): New vector.
5077 (varpool_node_set_element_def): New structure.
5078 (varpool_node_set_element, const_varpool_node_set_element): New types.
5079 (varpool_node_set_iterator): New type.
5080 (varpool_node): Add prev pointers, add used_from_other_partition,
5082 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
5083 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
5084 varpool_get_node, varpool_remove_node): Declare.
5085 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
5086 varpool_node_set_size): New inlines.
5087 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
5088 * tree-pass.h (varpool_node_set_def): Forward declare.
5089 (ipa_opt_pass_d): Summary writting takes vnode sets too.
5090 (ipa_write_optimization_summaries): Update prototype.
5091 * ipa-cp.c (ipcp_write_summary): Update.
5092 * ipa-reference.c (ipa_reference_write_summary): Update.
5093 * lto-cgraph.c (lto_output_varpool_node): New static function.
5094 (output_varpool): New function.
5095 (input_varpool_node): New static function.
5096 (input_varpool_1): New function.
5097 (input_cgraph): Input varpool.
5098 * ipa-pure-const.c (pure_const_write_summary): Update.
5099 * lto-streamer-out.c (lto_output): Update, output varpool too.
5100 (write_global_stream): Kill WPA hack.
5101 (produce_asm_for_decls): Update.
5102 (output_alias_pair_p): Handle variables.
5103 (output_unreferenced_globals): Output only needed partition of varpool.
5104 * ipa-inline.c (inline_write_summary): Update.
5105 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
5107 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
5108 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
5109 varpool_node_set_new, varpool_node_set_add,
5110 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
5111 debug_varpool_node_set): New functions.
5112 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
5113 (execute_one_pass): Process new decls too.
5114 (ipa_write_summaries_2): Pass around vsets.
5115 (ipa_write_summaries_1): Likewise.
5116 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
5118 (ipa_write_optimization_summaries_1): Pass around vsets.
5119 (ipa_write_optimization_summaries): Likewise.
5120 * varpool.c (varpool_get_node): New.
5121 (varpool_node): Update doubly linked lists.
5122 (varpool_remove_node): New.
5123 (dump_varpool_node): More dumping.
5124 (varpool_enqueue_needed_node): Update doubly linked lists.
5125 (decide_is_variable_needed): Kill ltrans hack.
5126 (varpool_finalize_decl): Kill lto hack.
5127 (varpool_assemble_decl): Skip decls in other partitions.
5128 (varpool_assemble_pending_decls): Update doubly linkes lists.
5129 (varpool_empty_needed_queue): Likewise.
5130 (varpool_extra_name_alias): Likewise.
5131 * lto-streamer.c (lto_get_section_name): Add vars section.
5132 * lto-streamer.h (lto_section_type): Update.
5133 (output_varpool, input_varpool): Declare.
5135 2010-04-28 Mike Stump <mikestump@comcast.net>
5137 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
5139 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
5141 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
5142 record or union type with RECORD_OR_UNION_TYPE_P predicate.
5143 (lto_input_ts_type_tree_pointers): Likewise.
5144 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
5145 (lto_output_ts_type_tree_pointers): Likewise.
5147 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
5149 Uniquization of constants at the Tree level
5150 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
5151 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
5153 (tree_output_constant_def): Declare.
5154 * gimplify.c (gimplify_init_constructor): When using block copy, first
5155 uniquize the constant constructor on the RHS.
5156 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
5157 DECL_IN_CONSTANT_POOL flag.
5158 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
5159 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
5161 (assemble_variable): Deal with symbols belonging to the tree constant
5163 (get_constant_section): Add ALIGN parameter and simplify.
5164 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
5165 (assemble_constant_contents): Use the expression of the VAR_DECL.
5166 (output_constant_def_contents): Use the alignment of the VAR_DECL.
5167 (tree_output_constant_def): New global function.
5168 (mark_constant): Use the expression of the VAR_DECL.
5169 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
5171 (output_object_block): Likewise and assemble the expression.
5173 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
5175 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
5176 hash_tree, eq_tree): New tree hash table.
5177 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
5178 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
5179 lto_orig_address_remove): Reimplement.
5181 2010-04-28 Xinliang David Li <davidxl@google.com>
5184 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
5185 (compute_uninit_opnds_pos): New function.
5186 (is_non_loop_exit_postdominating): New function.
5187 (compute_control_dep_chain): New function.
5188 (find_pdom): New function.
5189 (convert_control_dep_chain_into_preds): New function.
5190 (find_predicates): New function.
5191 (find_control_equiv_block): New function.
5192 (collect_phi_def_edges): New function.
5193 (find_def_preds): New function.
5194 (find_dom): New function.
5195 (dump_predicates): New function.
5196 (get_cmp_code): New function.
5197 (is_value_included_in): New function.
5198 (find_matching_predicate_in_rest_chains): New function.
5199 (use_pred_not_overlap_with_undef_path_pred): New function.
5200 (is_use_properly_guarded): New function.
5201 (normalize_cond_1): New function.
5202 (is_and_or_or): New function.
5203 (normalize_cond): New function.
5204 (is_gcond_subset_of): New function.
5205 (is_subset_of_any): New function.
5206 (is_or_set_subset_of): New function.
5207 (is_and_set_subset_of): New function.
5208 (is_norm_cond_subset_of): New function.
5209 (is_pred_expr_subset_of): New function.
5210 (is_pred_chain_subset_of): New function.
5211 (is_included_in): New function.
5212 (is_superset_of): New function.
5213 (find_uninit_use): New function.
5214 (warn_uninitialized_phi): New function.
5215 (compute_possibly_undefined_names): New function.
5216 (ssa_undefined_value_p): New function.
5217 (execute_late_warn_uninitialized): New function.
5218 * tree-ssa.c (ssa_undefined_value_p): Removed.
5219 (warn_uninit): Changed to extern.
5220 (warn_uninitialized_phi): Removed.
5221 (warn_uninitialized_vars): Changed to extern.
5222 (execute_late_warn_uninitialized): Removed
5223 * tree-flow.h: Add new prototypes.
5224 * timevar.def: Add new time variable.
5225 * Makefile.in: Add new build file.
5227 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
5229 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
5232 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5235 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
5237 2010-04-28 Martin Jambor <mjambor@suse.cz>
5239 * cgraph.h (struct cgraph_node): New field indirect_calls.
5240 (struct cgraph_indirect_call_info): New type.
5241 (struct cgraph_edge): Removed field indirect_call. New fields
5242 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
5243 (cgraph_create_indirect_edge): Declare.
5244 (cgraph_make_edge_direct): Likewise.
5245 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
5246 * ipa-prop.h (struct ipa_param_call_note): Removed.
5247 (struct ipa_node_params): Removed field param_calls.
5248 (ipa_create_all_structures_for_iinln): Declare.
5249 * cgraph.c: Described indirect edges and uids in initial comment.
5250 (cgraph_add_edge_to_call_site_hash): New function.
5251 (cgraph_edge): Search also among the indirect edges, use
5252 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
5253 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
5254 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
5256 (initialize_inline_failed): Assign a reason to indirect edges.
5257 (cgraph_create_edge_1): New function.
5258 (cgraph_create_edge): Moved some functionality to
5259 cgraph_create_edge_1.
5260 (cgraph_create_indirect_edge): New function.
5261 (cgraph_edge_remove_callee): Add an assert checking for
5263 (cgraph_edge_remove_caller): Special-case indirect edges.
5264 (cgraph_remove_edge): Likewise.
5265 (cgraph_set_edge_callee): New function.
5266 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
5267 (cgraph_make_edge_direct): New function.
5268 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
5269 the declaration of the call statement matches.
5270 (cgraph_node_remove_callees): Special-case indirect edges.
5271 (cgraph_clone_edge): Likewise.
5272 (cgraph_clone_node): Clone also the indirect edges.
5273 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
5274 indirect_call, dump count of indirect_calls edges.
5275 * ipa-prop.c (iinlining_processed_edges): New variable.
5276 (ipa_note_param_call): Create indirect edges instead of
5277 creating notes. New parameter node.
5278 (ipa_analyze_call_uses): New parameter node, pass it on to
5279 ipa_note_param_call.
5280 (ipa_analyze_stmt_uses): Likewise.
5281 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
5282 (print_edge_addition_message): Work on edges rather than on notes.
5283 (update_call_notes_after_inlining): Likewise, renamed to
5284 update_indirect_edges_after_inlining.
5285 (ipa_create_all_structures_for_iinln): New function.
5286 (ipa_free_node_params_substructures): Do not free notes.
5287 (ipa_edge_duplication_hook): Propagate bits within
5288 iinlining_processed_edges bitmap.
5289 (ipa_node_duplication_hook): Do not duplicate notes.
5290 (free_all_ipa_structures_after_ipa_cp): Renamed to
5291 ipa_free_all_structures_after_ipa_cp.
5292 (free_all_ipa_structures_after_iinln): Renamed to
5293 ipa_free_all_structures_after_iinln.
5294 (ipa_write_param_call_note): Removed.
5295 (ipa_read_param_call_note): Removed.
5296 (ipa_write_indirect_edge_info): New function.
5297 (ipa_read_indirect_edge_info): Likewise.
5298 (ipa_write_node_info): Do not stream notes, do stream information
5300 (ipa_read_node_info): Likewise.
5301 (lto_ipa_fixup_call_notes): Removed.
5302 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
5303 * ipa-inline.c (pass_ipa_inline): Likewise.
5304 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
5305 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
5306 * tree-inline.c (copy_bb): Removed an unnecessary double check for
5308 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
5310 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
5311 (output_cgraph): Stream also indirect edges.
5312 (lto_output_edge): Added capability to stream indirect edges.
5313 (input_edge): Likewise.
5314 (input_cgraph_1): Likewise.
5315 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
5318 2010-04-28 Richard Guenther <rguenther@suse.de>
5320 PR tree-optimization/43879
5321 PR tree-optimization/43909
5322 * tree-ssa-structalias.c (struct variable_info): Add
5323 only_restrict_pointers flag.
5324 (new_var_info): Initialize it. Increment stats.total_vars here.
5325 (create_function_info_for): Do not increment stats.total_vars here.
5326 (get_function_part_constraint): Fix build with C++.
5327 (insert_into_field_list): Remove.
5328 (push_fields_onto_fieldstack): Properly merge fields.
5329 (create_variable_info_for): Split and simplify.
5330 (create_variable_info_for_1): New piece.
5331 (intra_create_variable_infos): Properly make restrict constraints
5334 2010-04-28 Richard Guenther <rguenther@suse.de>
5337 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
5339 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
5340 Jan Hubicka <hubicka@ucw.cz>
5342 * doc/invoke.texi (-Wsuggest-attribute=const,
5343 -Wsuggest-attribute=pure): Document.
5344 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
5345 (function_always_visible_to_compiler_p,
5346 suggest_attribute, warn_function_pure, warn_function_const):
5348 (check_call): Improve debug info.
5349 (analyze_function): Do not check availability.
5350 (add_new_function): Check availability.
5351 (propagate): Output warnings.
5352 (skip_function_for_local_pure_const): New function.
5353 (local_pure_const): Use it; output warnings.
5354 * common.opt (Wsuggest-attribute=const,
5355 Wsuggest-attribute=pure): New.
5357 2010-04-27 Jakub Jelinek <jakub@redhat.com>
5359 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
5360 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
5361 or DW_CFA_def_cfa_offset{,_sf}.
5363 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
5365 * tree.h: Fix truncated long macros.
5367 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
5369 * collect2.c (TARGET_64BIT): Redefine to target's default.
5370 * tlink.c: Likewise.
5371 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
5372 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
5373 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
5374 for underscoring __USER_LABEL_PREFIX__.
5375 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
5376 (SUB_LINK_ENTRY32): New.
5377 (SUB_LINK_ENTRY64): New.
5378 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
5379 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
5380 (SUB_LINK_ENTRY64): New.
5381 (SUB_LINK_ENTRY): New.
5382 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
5383 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
5384 x64 target is choosen.
5385 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
5386 * configure: Regenerated.
5387 * configure.ac (leading-mingw64-underscores): Option added.
5389 2010-04-27 Jan Hubicka <jh@suse.cz>
5391 * doc/invoke.texi (-fipa-profile): Document.
5392 * opts.c (decode_options): Enable ipa-profile at -O1.
5393 * timevar.def (TV_IPA_PROFILE): Define.
5394 * common.opt (fipa-profile): Add.
5395 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
5397 (cgraph_propagate_frequency): Handle only local ones.
5398 * tree-pass.h (pass_ipa_profile): Declare.
5399 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
5400 (pass_ipa_profile): Use TV_IPA_PROFILE.
5401 * ipa.c (ipa_profile): New function.
5402 (gate_ipa_profile): Likewise.
5403 (pass_ipa_profile): New global variable.
5404 * passes.c (pass_ipa_profile): New.
5406 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
5408 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
5410 2010-04-27 Martin Jambor <mjambor@suse.cz>
5413 * ipa.c (dissolve_same_comdat_group_list): New function.
5414 (function_and_variable_visibility): Call
5415 dissolve_same_comdat_group_list when comdat group contains external or
5417 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
5418 lists are circular and that they contain only DECL_ONE_ONLY nodes.
5420 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
5422 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
5423 (const_hash_1) <VECTOR_CST>: New case.
5424 (compare_constant) <VECTOR_CST>: Likewise.
5425 <ADDR_EXPR>: Deal with LABEL_REFs.
5426 (copy_constant) <VECTOR_CST>: New case.
5428 2010-04-27 Jan Hubicka <jh@suse.cz>
5430 * cgraph.c (cgraph_propagate_frequency): New function.
5431 * cgraph.h (cgraph_propagate_frequency): Declare.
5432 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
5433 cgraph_propagate_frequency.
5435 2010-04-27 Jakub Jelinek <jakub@redhat.com>
5437 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
5439 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
5442 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
5443 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
5444 here to determine which regs to push and how much stack to reserve.
5446 2010-04-27 Jie Zhang <jie@codesourcery.com>
5448 * doc/gimple.texi (gimple_statement_with_ops): Remove
5449 addresses_taken field.
5450 (gimple_statement_with_memory_ops): Likewise.
5452 2010-04-27 Jan Hubicka <jh@suse.cz>
5454 * tree-inline.c (eni_inlining_weights): Remove.
5455 (estimate_num_insns): Special case more builtins.
5457 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
5460 * c-typeck.c (build_binary_op): Move forward check for comparison
5461 pointer with null pointer constant and adjust the diagnostic message.
5463 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
5466 * configure.ac (gcc_cv_as_section_has_align): Set if installed
5467 binutils supports extended .section directive needed by LTO, or
5468 warn if older binutils found.
5469 (LTO_BINARY_READER): New AC_SUBST'd variable.
5470 (LTO_USE_LIBELF): Likewise.
5471 * gcc/config.gcc (lto_binary_reader): New target-specific configure
5473 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
5474 (LTO_USE_LIBELF): Likewise.
5475 * configure: Regenerate.
5477 * collect2.c (is_elf): Rename from this ...
5478 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
5479 object files in addition to ELF-formatted ones.
5480 (scan_prog_file): Caller updated. Also allow for LTO info marker
5481 symbol to be prefixed or not by an extra underscore.
5483 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
5484 * config/i386/winnt.c: Also #include lto-streamer.h
5485 (i386_pe_asm_named_section): Specify 1-byte section alignment for
5487 (i386_pe_asm_output_aligned_decl_common): Add comment.
5488 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
5490 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
5493 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
5494 Add missing earlyclobber for second alternative.
5496 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
5498 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
5499 bits for artificial defs at the top of the block.
5500 * fwprop.c (single_def_use_enter_block): Don't call it.
5502 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
5505 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
5506 instead of "$gcc_cv_objdump -T".
5507 Use "-undefined dynamic_lookup" on darwin.
5508 * gcc/configure: Regenerate.
5510 2010-04-26 Jakub Jelinek <jakub@redhat.com>
5513 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
5515 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
5517 * c-parser.c (struct c_token): Move location field up.
5518 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
5519 (struct c_declspecs): Convert typespec_word, storage_class, and
5520 default_int_p into bitfields.
5521 (struct c_declarator): Move loc field up.
5523 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
5525 * cfgloop.h (struct loop): Move can_be_parallel field up.
5526 * ipa-prop.h (struct ip_node_params): Move bitfields up.
5527 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
5529 (struct iv_cand): Convert pos field into a bitfield.
5530 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
5532 (struct _stmt_vec_info): Shuffle fields for better packing.
5534 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
5536 * varasm.c (IN_NAMED_SECTION): Remove guard.
5537 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
5538 (IN_NAMED_SECTION_P): ...this.
5539 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
5540 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
5542 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
5544 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
5545 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
5546 of shadowing it. Fix comments.
5548 2010-04-26 Jan Hubicka <jh@suse.cz>
5550 * cgraph.c (cgraph_create_node): Set node frequency to normal.
5551 (cgraph_clone_node): Copy function frequency.
5552 * cgraph.h (node_frequency): New enum
5553 (struct cgraph_node): Add.
5554 * final.c (rest_of_clean_state): Update.
5555 * lto-cgraph.c (lto_output_node): Output node frequency.
5556 (input_overwrite_node): Input node frequency.
5557 * tre-ssa-loop-ivopts (computation_cost): Update.
5558 * lto-streamer-out.c (output_function): Do not output function
5560 * predict.c (maybe_hot_frequency_p): Update and handle functions
5562 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
5564 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
5565 (compute_function_frequency): Set noreturn functions to be executed
5567 (choose_function_section): Update.
5568 * lto-streamer-in.c (input_function): Do not input function frequency.
5569 * function.c (allocate_struct_function): Do not initialize function
5571 * function.h (function_frequency): Remove.
5572 (struct function): Remove function frequency.
5573 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
5574 (try_update): Update.
5575 * tree-inline.c (initialize_cfun): Do not update function frequency.
5576 * passes.c (pass_init_dump_file): Update.
5577 * i386.c (ix86_compute_frame_layout): Update.
5578 (ix86_pad_returns): Update.
5580 2010-04-26 Jie Zhang <jie@codesourcery.com>
5582 PR tree-optimization/43833
5583 * tree-vrp.c (range_int_cst_p): New.
5584 (range_int_cst_singleton_p): New.
5585 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
5586 when both operands are constants. Use range_int_cst_p in
5589 2010-04-26 Jan Hubicka <jh@suse.cz>
5591 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
5593 2010-04-26 Richard Guenther <rguenther@suse.de>
5596 * gimple.c (gimple_decl_printable_name): Deal gracefully
5597 with a NULL DECL_NAME.
5599 2010-04-26 Richard Guenther <rguenther@suse.de>
5602 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
5603 if emitting debug information and it is either a function
5604 or a namespace decl.
5606 2010-04-26 Ira Rosen <irar@il.ibm.com>
5608 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
5609 determine if the statement is vectorizable, and a macro to access it.
5610 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5611 Skip statements that can't be vectorized. If the analysis fails,
5612 mark the statement as unvectorizable if vectorizing basic block.
5613 (vect_compute_data_refs_alignment): Likewise.
5614 (vect_verify_datarefs_alignment): Skip statements marked as
5615 unvectorizable. Add print.
5616 (vect_analyze_group_access): Skip statements that can't be
5617 vectorized. If the analysis fails, mark the statement as
5618 unvectorizable if vectorizing basic block.
5619 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
5620 * tree-vect-stmts.c (vectorizable_store): Fix the number of
5621 generated stmts for SLP.
5622 (new_stmt_vec_info): Initialize the new field.
5623 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
5624 statements marked as unvectorizable.
5626 2010-04-25 Joseph Myers <joseph@codesourcery.com>
5628 * c-common.c (flag_isoc1x): New.
5629 (flag_isoc99): Update comment.
5630 * c-common.h (flag_isoc1x): New.
5631 (flag_isoc99): Update comment.
5632 * c-cppbuiltin.c (builtin_define_float_constants): Also define
5633 __<type>_DECIMAL_DIG__.
5634 * c-opts.c (set_std_c1x): New.
5635 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
5636 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
5637 * c.opt (-std=c1x, -std=gnu1x): New options.
5638 * doc/cpp.texi: Mention -std=c1x.
5639 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
5640 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
5641 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
5642 * doc/standards.texi: Mention C1X.
5643 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
5644 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
5645 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5648 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
5650 * config/i386/gmon-sol2.c (_mcleanup): Change format string
5651 placeholder from 0x%x to %#x.
5652 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
5653 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
5654 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
5655 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
5656 * config/i386/i386.c (ix86_target_string): Ditto.
5657 (output_pic_addr_const): Ditto.
5658 (print_operand): Ditto.
5660 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
5662 * combine.c (find_split_point): Add third argument. Use it
5663 to find nested multiply-accumulate instructions. Adjust calls.
5664 (try_combine): Adjust call to find_split_point.
5666 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
5668 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
5670 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
5672 PR tree-optimization/41442
5673 * fold-const.c (merge_truthop_with_opposite_arm): New function.
5674 (fold_binary_loc): Call it.
5676 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
5678 * toplev.c (general_init): Set default for fdiagnostics-show-option.
5679 * opts.c (common_handle_option): Allow disabling it.
5680 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
5682 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
5684 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
5685 between modes if both types are integral.
5687 2010-04-23 Richard Guenther <rguenther@suse.de>
5689 PR tree-optimization/43572
5690 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
5692 2010-04-23 Richard Guenther <rguenther@suse.de>
5695 * tree-inline.c (tree_can_inline_p): Also check compatibility
5698 2010-04-23 Martin Jambor <mjambor@suse.cz>
5700 PR tree-optimization/43846
5701 * tree-sra.c (struct access): New flag grp_assignment_read.
5702 (build_accesses_from_assign): Set grp_assignment_read.
5703 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
5704 (enum mark_read_status): New type.
5705 (analyze_access_subtree): Propagate grp_assignment_read, create
5706 accesses also if both direct_read and root->grp_assignment_read.
5708 2010-04-23 Martin Jambor <mjambor@suse.cz>
5711 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
5712 function does not have type attributes.
5714 2010-04-23 Richard Guenther <rguenther@suse.de>
5717 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
5720 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5722 * sese.h (create_if_region_on_edge): Remove.
5724 * sese.c (create_if_region_on_edge): Make static.
5726 * tree-inline.c: Do not include ggc.h.
5728 * expr.c: Do not include ggc.h.
5730 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
5733 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
5736 * config/sh/sh.c (find_barrier): Don't emit a constant pool
5737 in the middle of insns for casesi_worker_2.
5739 2010-04-22 David Edelsohn <edelsohn@gnu.org>
5741 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
5743 2010-04-22 Ira Rosen <irar@il.ibm.com>
5745 PR tree-optimization/43842
5746 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
5747 loop unrolling in update of exit phis. Fix comment.
5748 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
5749 least two reduction statements in the loop before starting SLP
5752 2010-04-22 Nick Clifton <nickc@redhat.com>
5754 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
5756 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
5758 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
5761 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5763 * tree-parloops.c (loop_parallel_p): New argument
5764 parloop_obstack. Pass it down.
5765 (parallelize_loops): New variable parloop_obstack. Initialize it,
5766 pass it down, free it.
5768 * tree-loop-linear.c (linear_transform_loops): Pass down
5771 * tree-data-ref.h (lambda_compute_access_matrices): New argument
5772 of type struct obstack *.
5774 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
5775 scratch_obstack. Initialize it, pass down, free it.
5777 * lambda.h (lambda_loop_new): Remove.
5778 (lambda_matrix_new, lambda_matrix_inverse)
5779 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
5780 argument of type struct obstack *.
5782 * lambda-trans.c (lambda_trans_matrix_new): New argument
5783 lambda_obstack. Pass it down, use obstack allocation for ret.
5784 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
5787 * lambda-mat.c (lambda_matrix_get_column)
5788 (lambda_matrix_project_to_null): Remove.
5789 (lambda_matrix_new): New argument lambda_obstack. Use obstack
5791 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
5794 * lambda-code.c (lambda_loop_new): New function.
5795 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
5796 (lambda_compute_auxillary_space, lambda_compute_target_space)
5797 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
5798 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
5799 (build_access_matrix): New argument lambda_obstack. Use obstack
5801 (lambda_compute_step_signs, lambda_compute_access_matrices): New
5802 argument lambda_obstack. Pass it down.
5804 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5806 * optabs.h (expand_widening_mult): Declare.
5808 2010-04-22 Richard Guenther <rguenther@suse.de>
5810 PR tree-optimization/43845
5811 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
5812 lookup the CALL_EXPR function and arguments.
5814 2010-04-22 Nick Clifton <nickc@redhat.com>
5816 * config/stormy16/stormy16.c
5817 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
5818 * config/stormy16/stormy16.h: Tidy up formatting.
5819 (DONT_USE_BUILTIN_SETJMP): Remove definition.
5820 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
5821 (ineqbranchsi): Delete pattern.
5822 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
5823 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
5824 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
5825 stormy16-lib2-ucmpsi2.c.
5827 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5829 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
5830 df_simulate_find_noclobber_defs as appropriate. Keep track of an
5831 extra set merge_set_noclobber, and use it to relax the final test
5833 * df.h (df_simulate_find_noclobber_defs): Declare.
5834 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
5836 (df_simulate_find_noclobber_defs): New function.
5838 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
5840 * config/i386/i386.md: Use {} around multi-line preparation statements.
5842 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
5844 * c-tree.h (push_init_level, pop_init_level, set_init_index)
5845 (process_init_element): New argument of type struct obstack *.
5847 * c-typeck.c (push_init_level, pop_init_level, set_designator)
5848 (set_init_index, set_init_label, set_nonincremental_init)
5849 (set_nonincremental_init_from_string, find_init_member)
5850 (output_init_element, output_pending_init_elements)
5851 (process_init_element): New argument braced_init_obstack. Pass it
5853 (push_range_stack, add_pending_init): New argument
5854 braced_init_obstack. Use obstack allocation.
5856 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
5857 braced_init_obstack. Pass it down.
5858 (c_parser_braced_init): New variables ret, braced_init_obstack.
5859 Initialize obstack, pass it down and finally free it.
5861 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
5864 * tree-pass.h (pass_optimize_widening_mul): Declare.
5865 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
5866 gate_optimize_widening_mul): New static functions.
5867 (pass_optimize_widening_mul): New.
5868 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
5869 <case MULT_EXPR>: Remove support for widening multiplies.
5870 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
5871 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
5872 simplify_gen_unary rather than directly building extensions.
5873 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
5875 * expmed.c (expand_widening_mult): New function.
5876 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
5878 2010-04-21 Jan Hubicka <jh@suse.cz>
5880 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
5881 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
5882 * lto-wpa-fixup.c: Remove.
5883 * Makefile.in (lto-wpa-fixup.o): Remove.
5884 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
5885 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
5886 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
5888 2010-04-21 Jan Hubicka <jh@suse.cz>
5890 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
5891 add write_optimization_summary, read_optimization_summary.
5892 (ipa_write_summaries_of_cgraph_node_set): Remove.
5893 (ipa_write_optimization_summaries): Declare.
5894 (ipa_read_optimization_summaries): Declare.
5895 * ipa-cp.c (pass_ipa_cp): Update.
5896 * ipa-reference.c (pass_ipa_reference): Update.
5897 * ipa-pure-const.c (pass_ipa_pure_const): Update.
5898 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
5900 * ipa-inline.c (pass_ipa_inline): Update.
5901 * ipa.c (pass_ipa_whole_program): Update.
5902 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
5903 * passes.c (ipa_write_summaries_1): Do not test wpa.
5904 (ipa_write_optimization_summaries_1): New.
5905 (ipa_write_optimization_summaries): New.
5906 (ipa_read_summaries): Do not test ltrans.
5907 (ipa_read_optimization_summaries_1): New.
5908 (ipa_read_optimization_summaries): New.
5910 2010-04-21 Jan Hubicka <jh@suse.cz>
5912 * lto-cgraph.c (lto_output_node): Do not output comdat groups
5914 (output_cgraph): Do not arrange comdat groups for boundary nodes.
5916 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5919 * dwarf2out.c (add_name_and_src_coords_attributes): Add
5920 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
5922 2010-04-21 Jan Hubicka <jh@suse.cz>
5924 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
5926 2010-04-21 Jan Hubicka <jh@suse.cz>
5928 * varpool.c (decide_is_variable_needed): Variable is always needed
5931 2010-04-21 Jan Hubicka <jh@suse.cz>
5933 * opts.c (decode_options): Enable pure-const pass for whopr.
5935 2010-04-21 Jan Hubicka <jh@suse.cz>
5937 * cgraph.c (dump_cgraph_node): Dump also assembler name.
5938 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
5940 (cgraph_decide_inlining): Do not expect callee to be removed in all
5943 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
5945 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
5947 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
5949 * config/i386/i386.md (x86_shrd): Add athlon_decode and
5950 amdfam10_decode attributes.
5952 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5955 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
5956 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
5957 (lower_copyprivate_clauses): Use private var in outer
5958 context instead of original var. Make sure the types
5959 are correct for VLAs.
5961 2010-04-21 Richard Guenther <rguenther@suse.de>
5963 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
5964 to non-pointer objects.
5966 2010-04-21 Jakub Jelinek <jakub@redhat.com>
5968 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
5969 last chain entry if it starts with the still current label.
5970 (add_location_or_const_value_attribute): Check that
5971 loc_list->first->next is NULL instead of comparing ->first with ->last.
5972 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
5973 to add_var_loc_to_decl.
5975 * dwarf2out.c (output_call_frame_info): For dw_cie_version
5976 >= 4 add also address size and segment size fields into CIE header.
5978 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
5979 long as address size is the same as sizeof (void *) and
5981 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
5982 address size or segment size is unexpected, return DW_EH_PE_omit.
5983 (classify_object_over_fdes): If get_cie_encoding returned
5984 DW_EH_PE_omit, return -1.
5985 (init_object): If classify_object_over_fdes returned -1,
5986 pretend there were no FDEs at all.
5988 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
5990 * config/i386/i386.md (bswap<mode>2): Macroize expander from
5991 bswap{si,di}2 using SWI48 mode iterator.
5992 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
5993 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
5994 set modrm attribute of bswap insn to 0 and remove length attribute.
5995 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
5996 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
5997 set mode attribute to <MODE> and remove length attribute.
5999 2010-04-20 James E. Wilson <wilson@codesourcery.com>
6001 PR rtl-optimization/43520
6002 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
6003 zero available registers.
6005 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6007 * builtins.c (fold_builtin_cproj): Fold more cases.
6009 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6011 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
6012 (fold_builtin_1): Fold builtin cproj.
6013 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
6014 Use ATTR_CONST_NOTHROW_LIST.
6016 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
6018 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
6019 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
6020 ffsi2_no_cmove for !TARGET_CMOVE.
6021 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
6022 (ffssi2): Remove expander.
6023 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
6025 (ctz<mode>2): Ditto from ctz{si,di}2.
6026 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
6028 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
6031 2010-04-20 Jakub Jelinek <jakub@redhat.com>
6033 * dwarf2out.c (AT_linkage_name): Define.
6034 (clone_as_declaration): Handle DW_AT_linkage_name.
6035 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
6036 of DW_AT_MIPS_linkage_name.
6037 (move_linkage_attr): Likewise.
6038 (dwarf2out_finish): Likewise.
6040 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
6043 * fold-const.c (fold_comparison): New folding rule.
6045 2010-04-20 Anatoly Sokolov <aesok@post.ru>
6047 * double-int.h (double_int_setbit): Declare.
6048 * double-int.c (double_int_setbit): New function.
6049 * rtl.h (immed_double_int_const): Declare.
6050 * emit-rtl.c (immed_double_int_const): New function.
6051 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
6052 and immed_double_int_const functions.
6053 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
6054 expand_copysign_bit): (Ditto.).
6055 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
6056 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
6057 * dojump.c (prefer_and_bit_test): (Ditto.).
6058 * expr.c (convert_modes, reduce_to_bit_field_precision,
6059 const_vector_from_tree): (Ditto.).
6060 * expmed.c (mask_rtx, lshift_value): (Ditto.).
6062 2010-04-20 Jan Hubicka <jh@suse.cz>
6064 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
6065 (dump_cgraph_node): Dump new flags.
6066 * cgraph.h (struct cgraph_node): Add flags
6067 reachable_from_other_partition and in_other_partition.
6068 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
6069 other partition can not be removed.
6070 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
6071 the other partition must be output; silence sanity checking on
6072 leaking functions bodies from other paritition.
6073 * lto-cgraph.c (reachable_from_other_partition_p): New function.
6074 (lto_output_node): Output new flags; do not sanity check that inline
6075 clones are output; drop lto_forced_extern_inline_p code; do not mock
6076 visibility flags at partition boundaries.
6077 (add_node_to): New function.
6078 (output_cgraph): Use it to sort functions so masters appear before
6080 (input_overwrite_node): Input new flags.
6081 * passes.c (ipa_write_summaries): Do not call
6082 lto_new_extern_inline_states.
6083 * lto-section-out.c (forced_extern_inline,
6084 lto_new_extern_inline_states lto_delete_extern_inline_states,
6085 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
6086 * lto-streamer.h (lto_new_extern_inline_states,
6087 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
6088 lto_forced_extern_inline_p): Kill.
6090 2010-04-20 Richard Guenther <rguenther@suse.de>
6092 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
6093 from vars that can have pointers.
6094 (process_constraint): Dump useless constraints.
6096 2010-04-20 Richard Guenther <rguenther@suse.de>
6098 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
6099 (dump_sa_points_to_info): Remove asserts.
6100 (init_base_vars): nothing_id isn't an escape point nor does it
6103 2010-04-20 Jakub Jelinek <jakub@redhat.com>
6105 * tree.h (TYPE_REF_IS_RVALUE): Define.
6106 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
6107 should_move_die_to_comdat, prune_unused_types_walk): Handle
6108 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
6109 (modified_type_die, gen_reference_type_die): Emit
6110 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
6111 if TYPE_REF_IS_RVALUE and -gdwarf-4.
6113 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6116 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
6117 calls for -fpic -m31 if they have been sibcall optimized.
6119 2010-04-19 James E. Wilson <wilson@codesourcery.com>
6121 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
6122 ar.lc fixed and call-used.
6124 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
6126 2010-04-19 Jan Hubicka <jh@suse.cz>
6128 * opts.c (decode_options): Disable whpr incompatible passes.
6129 * lto/lto.c (lto_1_to_1_map): Skip clones.
6130 (read_cgraph_and_symbols): Do not mark everything as needed.
6131 (do_whole_program_analysis): Do map only after optimizing;
6132 set proper cgraph_state; use passmanager.
6134 2010-04-19 DJ Delorie <dj@redhat.com>
6136 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
6137 POINTER_PLUS_EXPR and fix them.
6139 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
6141 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
6142 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
6143 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
6144 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
6145 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
6146 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
6147 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
6148 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
6149 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
6150 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
6151 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
6153 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
6155 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
6156 (check_cond_move_block): Likewise.
6157 (cond_move_process_if_block): Likewise.
6158 (noce_find_if_block): Improve formatting.
6159 (find_if_header): Pass 0 to memset and tweak conditions.
6160 (cond_exec_find_if_block): Fix long lines and tweak conditions.
6162 2010-04-19 Jakub Jelinek <jakub@redhat.com>
6164 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
6168 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
6169 with non-local decl doesn't need chain.
6171 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
6173 * ira-color.c (allocno_reload_assign): Avoid accumulating
6174 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
6176 2010-04-19 Martin Jambor <mjambor@suse.cz>
6178 * gimple.h (create_tmp_reg): Declare.
6179 * gimplify.c (create_tmp_reg): New function.
6180 (gimplify_return_expr): Use create_tmp_reg.
6181 (gimplify_omp_atomic): Likewise.
6182 (gimple_regimplify_operands): Likewise.
6183 * tree-dfa.c (make_rename_temp): Likewise.
6184 * tree-predcom.c (predcom_tmp_var): Likewise.
6185 (reassociate_to_the_same_stmt): Likewise.
6186 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
6187 (get_replaced_param_substitute): Likewise.
6188 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
6189 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
6190 * tree-ssa-pre.c (get_representative_for): Likewise.
6191 (create_expression_by_pieces): Likewise.
6192 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
6193 (create_tailcall_accumulator): Likewise.
6195 2010-04-19 Martin Jambor <mjambor@suse.cz>
6197 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
6199 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
6201 2010-04-19 Richard Guenther <rguenther@suse.de>
6203 PR tree-optimization/43796
6204 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
6205 from SCEV in the lattice.
6206 (vrp_visit_phi_node): Dump change.
6208 2010-04-19 Richard Guenther <rguenther@suse.de>
6210 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
6211 * configure: Re-generated.
6213 2010-04-19 Richard Guenther <rguenther@suse.de>
6215 PR tree-optimization/43783
6216 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
6217 constant ARRAY_REF operands two and three if possible.
6219 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
6222 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
6224 2010-04-19 Jie Zhang <jie@codesourcery.com>
6227 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
6229 2010-04-19 Ira Rosen <irar@il.ibm.com>
6231 PR tree-optimization/37027
6232 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
6233 and macro to access it.
6234 (vectorizable_reduction): Add argument.
6235 (vect_get_slp_defs): Likewise.
6236 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
6237 statements for possible use in SLP.
6238 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
6239 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
6240 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
6242 (vectorizable_reduction): Likewise.
6243 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
6245 (vectorizable_type_demotion, vectorizable_type_promotion,
6246 vectorizable_store): Likewise.
6247 (vect_analyze_stmt): Update call to vectorizable_reduction.
6248 (vect_transform_stmt): Likewise.
6249 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
6250 (vect_build_slp_tree): Fix indentation. Check that there are no loads
6251 from different interleaving chains in same node.
6252 (vect_slp_rearrange_stmts): New function.
6253 (vect_supported_load_permutation_p): Allow load permutations for
6254 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
6255 inside SLP nodes if necessary.
6256 (vect_analyze_slp_instance): Handle reductions.
6257 (vect_analyze_slp): Try to build SLP instances originating from groups
6259 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
6260 (vect_get_constant_vectors): Create initial vectors for reductions
6261 according to reduction code. Add new argument.
6262 (vect_get_slp_defs): Add new argument, pass it to
6263 vect_get_constant_vectors.
6264 (vect_schedule_slp_instance): Remove SLP tree root statements.
6266 2010-04-19 Jakub Jelinek <jakub@redhat.com>
6268 * tree.h (ENUM_IS_SCOPED): Define.
6269 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
6270 for ENUM_IS_SCOPED enums.
6272 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
6274 * fold-const.c (fold_comparison): Use ssizetype.
6275 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6276 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
6277 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
6278 * tree-object-size.c (compute_object_sizes): Use size_type_node.
6280 * tree.h (initialize_sizetypes): Remove parameter.
6281 (build_common_tree_nodes): Remove second parameter.
6282 * stor-layout.c (initialize_sizetypes): Remove parameter.
6283 Always create an unsigned type.
6284 (set_sizetype): Assert that the passed type is unsigned and simplify.
6285 * tree.c (build_common_tree_nodes): Remove second parameter.
6286 Adjust call to initialize_sizetypes.
6287 * c-decl.c (c_init_decl_processing): Remove second argument in call to
6288 build_common_tree_nodes.
6290 2010-04-18 Matthias Klose <doko@ubuntu.com>
6292 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
6294 2010-04-18 Ira Rosen <irar@il.ibm.com>
6296 PR tree-optimization/43771
6297 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
6298 load permutation doesn't have gaps.
6300 2010-04-18 Jan Hubicka <jh@suse.cz>
6302 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
6303 (sse_prologue_save_insn expander): Use new pattern.
6304 (sse_prologue_save_insn1): New pattern and splitter.
6305 (sse_prologue_save_insn): Update to deal also with 64bit aligned
6307 * i386.c (setup_incoming_varargs_64): Do not compute jump
6309 (ix86_gimplify_va_arg): Update alignment needed.
6310 (ix86_local_alignment): Do not align all local arrays to 128bit.
6312 2010-04-17 Jan Hubicka <jh@suse.cz>
6314 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
6316 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
6318 * arm.md (negdi2): Remove redundant code to force values into a
6321 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
6323 * arm/bpabi.S: Add EABI alignment attributes to objects.
6324 * arm/bpabi-v6m.S: Likewise.
6325 * arm/crti.asm: Likewise.
6326 * arm/crtn.asm: Likewise.
6327 * arm/lib1funcs.asm: Likewise.
6328 * arm/libunwind.S: Likewise.
6330 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
6332 * arm-protos.h (tune_params): New structure.
6333 * arm.c (current_tune): New variable.
6334 (arm_constant_limit): Delete.
6335 (struct processors): Add pointer to the tune parameters.
6336 (arm_slowmul_tune): New tuning option.
6337 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
6338 (all_cores): Adjust to pick up the tuning model.
6339 (arm_constant_limit): New function.
6340 (arm_override_options): Select the appropriate tuning model. Delete
6341 initialization of arm_const_limit.
6342 (arm_split_constant): Use the new constant-limit model.
6343 (arm_rtx_costs): Pick up the current tuning model.
6344 * arm.md (is_strongarm, is_xscale): Delete.
6345 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
6346 for Xscale variant architectures.
6347 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
6349 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6351 * config/arm/arm.c (arm_gen_constant): Remove unused variable
6353 (arm_rtx_costs_1): Remove unused variable extra_cost.
6354 (arm_unwind_emit_set): Use variable offset.
6355 (thumb1_output_casesi): Remove unused variable flags.
6357 2010-04-16 Jeff Law <law@redhat.com>
6359 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
6360 needing assignment rather than doing a two-phase assignment. Remove
6361 unused variable 'm'.
6363 2010-04-16 Jakub Jelinek <jakub@redhat.com>
6366 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
6368 2010-04-16 Doug Kwan <dougkwan@google.com>
6370 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
6371 (next_operand_entry_id): New static variable.
6372 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
6373 (add_to_ops_vec): Assigned unique ID to operand entry.
6374 (struct oecount_s): New field ID.
6375 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
6376 (undistribute_ops_list): Assign unique IDs to oecounts.
6377 (init_reassoc): reset next_operand_entry_id.
6379 2010-04-16 Doug Kwan <dougkwan@google.com>
6381 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
6382 missing left parenthesis.
6384 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
6386 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
6387 *btdi_rex64 using SWI48 mode iterator.
6388 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
6389 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
6390 *jcc_btdi_mask_rex64.
6392 2010-04-16 Anatoly Sokolov <aesok@post.ru>
6394 * double-int.h (tree_to_double_int): Convert to macro.
6395 * double-int.c (tree_to_double_int): Remove.
6397 2010-04-16 Jakub Jelinek <jakub@redhat.com>
6400 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
6401 with want_address 2 and in case a single element list might be
6402 possible, call it again with want_address 0.
6404 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
6406 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
6407 case 'W' print operands for HI mode.
6408 * config/h8300/h8300.h (Y0, Y2) : New constraints.
6409 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
6410 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
6411 * config/h8300/predicate.md (bit_register_indirect_operand): New.
6413 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
6415 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
6416 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
6417 #xx:3 and #xx:4 mode.
6419 * config/h8300/h8300.md (inverted load with HImode dest): Add
6420 support for H8300SX.
6422 * config/h8300/predicate.md (bit_operand): Allow immediate values that
6423 satisfy 'U' constraint.
6425 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6427 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
6428 * configure: Regenerate.
6429 * config.in: Regenerate.
6430 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
6433 2010-04-16 Richard Guenther <rguenther@suse.de>
6435 * tree.h (struct tree_decl_minimal): Move pt_uid ...
6436 (struct tree_decl_common): ... here.
6437 (DECL_PT_UID): Adjust.
6438 (SET_DECL_PT_UID): Likewise.
6439 (DECL_PT_UID_SET_P): Likewise.
6441 2010-04-16 Richard Guenther <rguenther@suse.de>
6443 PR tree-optimization/43572
6444 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
6445 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
6446 * tree-flow.h (is_call_clobbered): Remove.
6447 * tree-flow-inline.h (is_call_clobbered): Likewise.
6448 * tree-dfa.c (dump_variable): Do not dump call clobber state.
6449 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
6450 (execute_return_slot_opt): Adjust.
6451 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
6452 check for call clobbered vars here.
6453 (find_tail_calls): Move tailcall verification to the
6456 2010-04-16 Diego Novillo <dnovillo@google.com>
6458 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
6460 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
6463 * config/arm/arm.md (cbranchqi4): New pattern.
6464 * config/arm/predicates.md (const0_operand,
6465 cbranchqi4_comparison_operator): New predicates.
6467 2010-04-16 Richard Guenther <rguenther@suse.de>
6469 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
6470 (dump_gimple_stmt): Likewise.
6472 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
6474 * recog.h (struct recog_data): New field is_operator.
6475 (struct insn_operand_data): New field is_operator.
6476 * recog.c (extract_insn): Set recog_data.is_operator.
6477 * genoutput.c (output_operand_data): Emit code to set the
6479 * reload.c (find_reloads): Use it rather than testing for an
6480 empty constraint string.
6483 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
6484 If the previous insn is a cbranchsi4_insn with the same arguments,
6485 omit the compare instruction.
6487 * config/arm/arm.md (addsi3_cbranch): If destination is a high
6488 register, inputs must be low registers and we need a low register
6489 scratch. Handle alternative 2 like alternative 3.
6491 2010-04-16 Jakub Jelinek <jakub@redhat.com>
6493 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
6494 don't call get_addr on both. If one expression is a VALUE and
6495 the other a REG, check VALUE's locs if the REG isn't among them.
6497 2010-04-16 Christian Bruel <christian.bruel@st.com>
6499 * config/sh/sh.h (sh_frame_pointer_required): New function.
6500 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
6501 (flag_omit_frame_pointer) Set.
6502 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
6503 (rounded_frame_size): Adjust size with outgoing_args_size.
6504 (sh_set_return_address): Must return from stack pointer.
6505 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
6506 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
6507 (ACCUMULATE_OUTGOING_ARGS): Define.
6508 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
6509 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
6511 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
6514 * config/sh/sh.c (sh_legitimize_reload_address): Use
6515 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
6516 Remove a unneeded check for offset_base.
6518 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
6520 * configure: Regenerated.
6522 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6524 * config/s390/s390.c (s390_call_save_register_used): Switch back
6525 to HARD_REGNO_NREGS.
6527 2010-04-15 Richard Guenther <rguenther@suse.de>
6529 * alias.c (alias_set_subset_of): Handle alias-set zero
6532 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
6533 Julian Brown <julian@codesourcery.com>
6535 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
6536 alternatives according to use of high and low regs.
6537 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
6538 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
6539 optimizing for size on Thumb-2.
6541 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
6543 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
6545 2010-04-15 Richard Guenther <rguenther@suse.de>
6547 * tree-ssa-structalias.c (struct variable_info): Add
6549 (new_var_info): Initialize it.
6550 (dump_constraints): Support printing last added constraints.
6551 (debug_constraints): Adjust.
6552 (dump_constraint_graph): Likewise.
6553 (make_heapvar_for): Check for NULL cfun.
6554 (get_function_part_constraint): New function.
6555 (get_fi_for_callee): Likewise.
6556 (find_func_aliases): Properly implement IPA PTA constraints.
6557 (process_ipa_clobber): New function.
6558 (find_func_clobbers): Likewise.
6559 (insert_into_field_list_sorted): Remove.
6560 (create_function_info_for): Properly allocate vars for IPA mode.
6561 Do not use insert_into_field_list_sorted.
6562 (create_variable_info_for): Properly generate constraints for
6563 global vars in IPA mode.
6564 (dump_solution_for_var): Always dump the solution.
6565 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
6566 (find_what_var_points_to): Adjust.
6567 (pt_solution_set): Change.
6568 (pt_solution_ior_into): New function.
6569 (pt_solution_empty_p): Export.
6570 (pt_solution_includes_global): Adjust.
6571 (pt_solution_includes_1): Likewise.
6572 (pt_solutions_intersect_1): Likewise.
6573 (dump_sa_points_to_info): Check some invariants.
6574 (solve_constraints): Move constraint dumping ...
6575 (compute_points_to_sets): ... here.
6576 (ipa_pta_execute): ... and here.
6577 (compute_may_aliases): Do not re-compute points-to info
6578 locally if IPA info is available.
6579 (ipa_escaped_pt): New global var.
6580 (ipa_pta_execute): Properly implement IPA PTA.
6581 * tree-into-ssa.c (dump_decl_set): Support dumping
6582 decls not in referenced-vars.
6583 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
6584 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
6585 (dump_points_to_solution): Likewise.
6586 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
6587 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
6588 (remap_gimple_stmt): Reset call clobber/use information if necessary.
6589 (copy_decl_to_var): Copy DECL_PT_UID.
6590 (copy_result_decl_to_var): Likewise.
6591 * tree.c (make_node_stat): Initialize DECL_PT_UID.
6592 (copy_node_stat): Copy it.
6593 * tree.h (DECL_PT_UID): New macro.
6594 (SET_DECL_PT_UID): Likewise.
6595 (DECL_PT_UID_SET_P): Likewise.
6596 (struct tree_decl_minimal): Add pt_uid member.
6597 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
6598 (pt_solution_empty_p): Declare.
6599 (pt_solution_set): Adjust.
6600 (ipa_escaped_pt): Declare.
6601 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
6602 * gimple-pretty-print.c (pp_points_to_solution): New function.
6603 (dump_gimple_call): Dump call clobber/use information.
6604 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
6605 * tree-pass.h (TDF_ALIAS): New dump option.
6606 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
6607 * doc/invoke.texi (-fipa-pta): Update documentation.
6609 2010-04-15 Richard Guenther <rguenther@suse.de>
6611 * Makefile.in (OBJS-common): Add gimple-fold.o.
6612 (gimple-fold.o): New rule.
6613 * tree.h (maybe_fold_offset_to_reference,
6614 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
6616 * gimple.h: ... here.
6617 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
6618 may_propagate_address_into_dereference): Move prototypes ...
6619 * gimple.h: ... here.
6620 * tree-ssa-ccp.c (get_symbol_constant_value,
6621 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
6622 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
6623 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
6624 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
6625 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
6626 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
6627 gimplify_and_update_call_from_tree): Move ...
6628 * gimple-fold.c: ... here. New file.
6629 (ccp_fold_builtin): Rename to ...
6630 (gimple_fold_builtin): ... this.
6631 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
6633 2010-04-15 Richard Guenther <rguenther@suse.de>
6635 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
6636 fit_double_type, force_fit_type_double, add_double_with_sign,
6637 neg_double, mul_double_with_sign, lshift_double, rshift_double,
6638 lrotate_double, rrotate_double, div_and_round_double): Move ...
6639 * double-int.c: ... here.
6640 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
6641 add_double, neg_double, mul_double_with_sign, mul_double,
6642 lshift_double, rshift_double, lrotate_double, rrotate_double,
6643 div_and_round_double): Move prototypes ...
6644 * double-int.h: ... here.
6646 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
6649 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
6650 matching constraints to ensure inputs match the output.
6652 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
6655 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
6656 in an input-only operand.
6658 2010-04-15 Anatoly Sokolov <aesok@post.ru>
6660 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
6661 (double_int_not, double_int_lshift, double_int_rshift): Declare.
6662 (double_int_negative_p): Convert to static inline function.
6663 * double-int.c (double_int_lshift, double_int_lshift): New functions.
6664 (double_int_negative_p): Remove.
6665 * tree.h (lshift_double, rshift_double):
6666 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
6667 * fold-const.c (fold_convert_const_int_from_real,
6668 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
6669 (lshift_double): Change type of arith argument to bool.
6670 (rshift_double): Change type of arith argument to bool. Correct
6672 * expmed.c (mask_rtx, lshift_value): (Ditto.).
6674 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
6677 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
6678 at the start and end of the then/else blocks, and omit them from the
6680 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
6681 argument; all callers changed. Pass zero to old_insns_match_p instead.
6682 (flow_find_head_matching_sequence): New function.
6683 (old_insns_match_p): Check REG_EH_REGION notes for calls.
6684 * basic-block.h (flow_find_cross_jump,
6685 flow_find_head_matching_sequence): Declare functions.
6687 2010-04-14 Jason Merrill <jason@redhat.com>
6690 * c-common.c (attribute_takes_identifier_p): New fn.
6691 * c-common.h: Declare it.
6693 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6695 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
6697 (*udivmod<mode>4): Ditto.
6699 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6701 * config/i386/i386.md (maxmin_int): Rename code attribute from
6702 maxminiprefix and update all users.
6703 (maxmin_float): Ditto from maxminfprefix.
6704 (logic): Ditto from logicprefix.
6705 (absneg_mnemonic): Ditto from absnegprefix.
6706 * config/i386/mmx.md: Update all users of maxminiprefix,
6707 maxminfprefix and logicprefix for rename.
6708 * config/i386/sse.md: Ditto.
6709 * config/i386/sync.md (sync_<code><mode>): Update for
6712 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
6715 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
6716 warnings converted to errors.
6718 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6720 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
6721 used insn_type variable.
6722 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
6723 to avoid set-but-not-used warning.
6725 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6727 * df-core.c (df_ref_debug): Change format string placeholder
6729 * dwarf2asm.c (dw2_asm_output_data_raw,
6730 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
6731 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
6732 * dwarf2out.c (output_cfi, output_cfi_directive,
6733 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
6734 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
6736 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
6737 * print-rtl.c (print_rtx): Ditto.
6739 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6742 * builtins.c (expand_builtin_pow_root): New function to expand pow
6743 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
6744 series of sqrt and cbrt calls under -ffast-math.
6745 (expand_builtin_pow): Call it.
6747 2010-04-14 Michael Matz <matz@suse.de>
6749 PR tree-optimization/42963
6750 * tree-cfg.c (touched_switch_bbs): New static variable.
6751 (group_case_labels_stmt): New function broken out from ...
6752 (group_case_labels): ... here, use the above.
6753 (start_recording_case_labels): Allocate touched_switch_bbs.
6754 (end_recording_case_labels): Deallocate it, call
6755 group_case_labels_stmt.
6756 (gimple_redirect_edge_and_branch): Remember index of affected BB.
6758 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6760 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
6763 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
6765 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
6767 2010-04-13 Jan Hubicka <jh@suse.cz>
6769 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
6770 of optimized out static functions.
6771 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
6772 cost computation. Also sanity check for overflows.
6773 (update_caller_keys): Update cgraph_edge_badness call; properly
6774 update fibheap and sanity check that it is up to date.
6775 (add_new_edges_to_heap): Update cgraph_edge_badness.
6776 (cgraph_decide_inlining_of_small_function): Likewise;
6777 add sanity checking that badness in heap is up to date;
6778 improve dumping of reason; Update badness of calls to the
6779 offline copy of function currently inlined; dump badness
6780 of functions not inlined because of unit growth limits.
6782 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6785 * c-common.c (pointer_int_sum): Disregard overflow that occured only
6786 because of sign-extension change when converting to sizetype here...
6787 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
6789 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
6790 the folding to constants. Remove redundant final conversion.
6791 (fold_binary) <associate>: Do not associate if the re-association of
6792 constants alone overflows.
6793 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
6794 to the end of the list.
6795 (multiple_of_p) <COND_EXPR>: New case.
6797 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
6799 * opt-functions.awk (opt_sanitized_name): New.
6801 * optc-gen.awk: Use it
6802 * opth-gen.awk: Use it.
6804 2010-04-13 Martin Jambor <mjambor@suse.cz>
6806 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
6807 (sra_modify_assign): Delete stmts loading dead data even if racc has no
6808 children. Call replace_uses_with_default_def_ssa_name to handle
6811 2010-04-13 Michael Matz <matz@suse.de>
6814 * builtins.c (expand_builtin_interclass_mathfn): Also create
6815 a register if the predicate doesn't match.
6817 2010-04-13 Diego Novillo <dnovillo@google.com>
6819 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
6820 * c-pch.c: Include timevar.h.
6821 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
6822 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
6823 * ggc-common.c: Include timevar.h.
6824 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
6825 * timevar.def (TV_PCH_SAVE): Define.
6826 (TV_PCH_CPP_SAVE): Define.
6827 (TV_PCH_PTR_REALLOC): Define.
6828 (TV_PCH_PTR_SORT): Define.
6829 (TV_PCH_RESTORE): Define.
6830 (TV_PCH_CPP_RESTORE): Define.
6832 2010-04-13 Michael Matz <matz@suse.de>
6834 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
6836 (can_reassociate_p): New function.
6837 (break_up_subtract_bb, reassociate_bb): Use it.
6839 2010-04-13 Richard Guenther <rguenther@suse.de>
6842 * builtins.c (c_readstr): Fix assert.
6844 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
6846 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
6847 when generating cltd insn.
6849 (*ashl<mode>3_1): Remove special handling for register operand 2.
6850 (*ashlsi3_1_zext): Ditto.
6851 (*ashlhi3_1): Ditto.
6852 (*ashlhi3_1_lea): Ditto.
6853 (*ashlqi3_1): Ditto.
6854 (*ashlqi3_1_lea): Ditto.
6855 (*<shiftrt_insn><mode>3_1): Ditto.
6856 (*<shiftrt_insn>si3_1_zext): Ditto.
6857 (*<shiftrt_insn>qi3_1_slp): Ditto.
6858 (*<rotate_insn><mode>3_1): Ditto.
6859 (*<rotate_insn>si3_1_zext): Ditto.
6860 (*<rotate_insn>qi3_1_slp): Ditto.
6862 2010-04-13 Richard Guenther <rguenther@suse.de>
6864 * tree-ssa-structalias.c (callused_id): Remove.
6865 (call_stmt_vars): New.
6866 (get_call_vi): Likewise.
6867 (lookup_call_use_vi): Likewise.
6868 (lookup_call_clobber_vi): Likewise.
6869 (get_call_use_vi): Likewise.
6870 (get_call_clobber_vi): Likewise.
6871 (make_transitive_closure_constraints): Likewise.
6872 (handle_const_call): Adjust to do per-call call-used handling.
6873 (handle_pure_call): Likewise.
6874 (find_what_var_points_to): Remove general callused handling.
6875 (init_base_vars): Likewise.
6876 (init_alias_vars): Initialize call_stmt_vars.
6877 (compute_points_to_sets): Process call-used and call-clobbered
6878 vars for call statements.
6879 (delete_points_to_sets): Free call_stmt_vars.
6881 2010-04-13 Richard Guenther <rguenther@suse.de>
6883 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6884 Only add RW dependence for dependence distance zero.
6885 Adjust maximal vectorization factor according to dependences.
6886 Move alignment handling ...
6887 (vect_find_same_alignment_drs): ... here. New function.
6888 (vect_analyze_data_ref_dependences): Adjust.
6889 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
6890 (vect_analyze_data_refs): Adjust minimal vectorization factor
6891 according to data references.
6892 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
6893 dependences before determining the vectorization factor.
6894 Analyze alignment after determining the vectorization factor.
6895 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
6896 dependences before alignment.
6897 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
6899 (vect_analyze_data_refs): Likewise.
6900 (MAX_VECTORIZATION_FACTOR): New define.
6902 2010-04-13 Duncan Sands <baldrick@free.fr>
6904 * except.h (lang_eh_type_covers): Remove.
6905 * except.c (lang_eh_type_covers): Likewise.
6907 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6908 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6910 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
6911 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
6912 UNITS_PER_LONG where it is ABI relevant.
6913 (s390_return_addr_rtx): Likewise.
6914 (s390_back_chain_rtx): Likewise.
6915 (s390_frame_area): Likewise.
6916 (s390_frame_info): Likewise.
6917 (s390_initial_elimination_offset): Likewise.
6918 (save_gprs): Likewise.
6919 (s390_emit_prologue): Likewise.
6920 (s390_emit_epilogue): Likewise.
6921 (s390_function_arg_advance): Likewise.
6922 (s390_function_arg): Likewise.
6923 (s390_va_start): Likewise.
6924 (s390_gimplify_va_arg): Likewise.
6925 (s390_function_profiler): Likewise.
6926 (s390_optimize_prologue): Likewise.
6927 (s390_rtx_costs): Likewise.
6928 (s390_secondary_reload): Likewise.
6929 (s390_promote_function_mode): Likewise.
6930 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
6931 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
6932 registers available.
6933 (s390_unwind_word_mode): New function.
6934 (s390_function_value): Split 64 bit values into register pair if
6935 used as return value.
6936 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
6937 function call parameters. Handle parallels.
6938 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
6939 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
6940 (DWARF_CIE_DATA_ALIGNMENT): New macro.
6941 (s390_expand_setmem): Remove unused variable src_addr.
6942 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
6943 deal with 64 bit registers.
6944 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
6945 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
6946 (UNITS_PER_LONG): New macro.
6947 * libjava/include/s390-signal.h: Define extended ucontext
6948 structure containing the upper halfs of the 64 bit registers.
6950 2010-04-13 Simon Baldwin <simonb@google.com>
6952 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
6954 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
6956 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
6957 rvalue on the RHS if the LHS is of a non-renamable type.
6958 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
6960 2010-04-13 Matthias Klose <doko@ubuntu.com>
6962 * gcc.c (cc1_options): Handle -iplugindir before processing
6963 the cc1 spec. Only add -iplugindir once.
6964 (cpp_unique_options): Add -iplugindir option if -fplugin* options
6966 * common.opt (iplugindir): Remove `Separate' property, initialize.
6967 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
6969 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
6970 (distclean): Remove plugin dir.
6971 * doc/invoke.texi: Document -iplugindir.
6973 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
6975 * doc/plugins.texi (Loading Plugins): Document short
6976 -fplugin=foo option.
6977 (Plugin API): Mention default_plugin_dir_name function.
6979 * gcc.c (find_file_spec_function): Add new declaration.
6980 (static_spec_func): Use it for "find-file".
6981 (find_file_spec_function): Add new function.
6982 (cc1_options): Add -iplugindir option if -fplugin* options found.
6984 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
6986 * plugin.c (add_new_plugin): Updated comment, and handle short
6988 (default_plugin_dir_name): Added new function.
6990 * common.opt (iplugindir): New option to set the plugin directory.
6992 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
6994 * config/i386/i386.md (any_rotate): New code iterator.
6995 (rotate_insn): New code attribute.
6997 (SWIM124): New mode iterator.
6998 (<rotate_insn>ti3): New expander.
6999 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
7000 any_rotate code iterator.
7001 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
7002 using any_rotate code iterator and SWIM124 mode iterator.
7003 (ix86_rotlti3): New insn_and_split pattern.
7004 (ix86_rotrti3): Ditto.
7005 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
7006 ix86_rotl{di,ti}3 patterns.
7007 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
7008 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
7009 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
7010 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
7011 code iterator and SWI mode iterator.
7012 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
7013 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
7015 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
7016 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
7017 (bswap rotatert splitter): Add splitter.
7018 (bswap splitter): Macroize splitter using any_rotate code iterator.
7019 Add insn predicate to split only for TARGET_USE_XCHGB or when
7020 optimizing function for size.
7022 2010-04-12 Steve Ellcey <sje@cup.hp.com>
7024 * config/pa/pa.c (emit_move_sequence): Remove use of
7025 deleted variable flag_argument_noalias.
7027 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7029 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
7031 Add to unsupported targets list.
7032 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
7033 sparc*-sun-solaris2.[567]* from target lists.
7034 * configure: Regenerate.
7035 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
7037 Remove Solaris 7 patch references.
7038 (Specific, sparc-sun-solaris2.7): Removed.
7039 (sparc-sun-solaris2*): Update Solaris 7 example.
7040 (sparc64-*-solaris2*): Likewise.
7042 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7044 * config.build (alpha*-dec-osf4*): Remove.
7045 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
7046 of obsolete configurations.
7047 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
7049 * config/alpha/t-osf4: Renamed to ...
7050 * config/alpha/t-osf5: ... this.
7051 * config/alpha/osf.h: Renamed to ...
7052 * config/alpha/osf5.h: ... this.
7053 Merged old osf5.h contents.
7055 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
7056 (EXTRA_SPECS): Removed.
7057 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
7058 reflect removal of Tru64 UNIX V4.0/V5.0 support.
7061 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7063 * doc/contrib.texi (Contributors, Rainer Orth): Update.
7065 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
7068 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
7069 __thiscall convention.
7071 2010-04-12 Steve Ellcey <sje@cup.hp.com>
7073 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
7075 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
7077 2010-04-12 Steve Ellcey <sje@cup.hp.com>
7079 * function.c (assign_parms_initialize_all): Add unused attribute
7082 2010-04-12 Richard Guenther <rguenther@suse.de>
7084 * gsstruct.def (GSS_CALL): New.
7085 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
7086 * gimple.h: Include tree-ssa-alias.h.
7087 (struct gimple_statement_call): New.
7088 (union gimple_statement_struct_d): Add gimple_call member.
7089 (gimple_call_reset_alias_info): Declare.
7090 (gimple_call_use_set): New function.
7091 (gimple_call_clobber_set): Likewise.
7092 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
7093 * gimple.c (gimple_call_reset_alias_info): New function.
7094 (gimple_build_call_1): Call it.
7095 * lto-streamer-in.c (input_gimple_stmt): Likewise.
7096 * tree-inline.c (remap_gimple_stmt): Likewise.
7097 (expand_call_inline): Remove callused handling.
7098 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
7099 * tree-dfa.c (dump_variable): Likewise.
7100 * tree-parloops.c (parallelize_loops): Likewise.
7101 * tree-ssa.c (init_tree_ssa): Likewise.
7102 (delete_tree_ssa): Likewise.
7103 * tree-flow-inline.h (is_call_used): Remove.
7104 * tree-flow.h (struct gimple_df): Remove callused member.
7105 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
7106 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
7107 (ref_maybe_used_by_call_p_1): Simplify.
7108 (call_may_clobber_ref_p_1): Likewise.
7109 * tree-ssa-structalias.c (compute_points_to_sets): Set
7110 the call stmt used and clobbered sets.
7111 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
7112 (find_tail_calls): Verify the tail call.
7114 2010-04-12 Richard Guenther <rguenther@suse.de>
7116 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
7117 single-iteration always-inline inlining.
7118 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
7119 (cgraph_decide_inlining): Do not handle always-inline specially.
7120 (try_inline): Remove always-inline cycle detection special case.
7121 Do not recurse on always-inlines.
7122 (cgraph_early_inlining): Do not iterate if not optimizing.
7123 (cgraph_gate_early_inlining): remove.
7124 (pass_early_inline): Run unconditionally.
7125 (gate_cgraph_decide_inlining): New function.
7126 (pass_ipa_inline): Use it. Do not run the IPA inliner if
7127 not inlining or optimizing.
7128 (cgraph_decide_inlining_of_small_functions): Also consider
7129 always-inline functions.
7130 (cgraph_default_inline_p): Return true for nodes which should
7131 disregard inline limits.
7132 (estimate_function_body_sizes): Assume zero size and time for
7133 nodes which are marked as disregarding inline limits.
7134 (cgraph_decide_recursive_inlining): Do not perform recursive
7135 inlining on always-inline nodes.
7137 2010-04-12 Jakub Jelinek <jakub@redhat.com>
7140 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
7141 for exprs satisfying handled_component_p.
7143 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
7145 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
7146 non-constant aggregate elements.
7148 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
7149 is a real initialization.
7151 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
7154 * c-decl.c (start_function): Move forward check for nested function.
7156 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
7158 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
7159 * config/sh/sh.c: Include reload.h.
7160 (sh_legitimize_reload_address): New.
7161 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
7162 sh_legitimize_reload_address.
7164 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
7166 * config/sh/sh.md (*movqi_pop): New insn pattern.
7167 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
7169 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
7171 * config/i386/i386.md (any_shiftrt): New code iterator.
7172 (shiftrt_insn): New code attribute.
7174 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
7175 using any_shiftrt code iterator.
7176 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
7177 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
7178 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
7179 pattern from corresponding peephole2 patterns.
7180 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
7181 using any_shiftrt code iterator.
7182 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
7183 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
7184 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
7185 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
7186 *{ashr,lshr}<mode>3_cmp_zext.
7187 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
7189 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
7191 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
7193 (*lshr<mode>3_cconly): Ditto.
7195 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
7197 * config/i386/i386.md (lshr<mode>3): Macroize expander from
7198 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
7199 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
7200 pattern from *lshr{di,ti}3_1 and corresponding splitters using
7202 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
7203 from corresponding peephole2 patterns.
7204 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
7205 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
7206 and *lshrdi3_1_rex64 using SWI mode iterator.
7207 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
7208 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
7209 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
7210 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
7211 and *lshrdi3_cmp_rex64 using SWI mode iterator.
7212 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
7213 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
7214 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
7215 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
7218 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
7220 * config/i386/i386.md (ashr<mode>3): Macroize expander from
7221 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
7222 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
7223 pattern from *ashr{di,ti}3_1 and corresponding splitters using
7225 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
7226 from corresponding peephole2 patterns.
7227 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
7228 (ashrsi3_cvt): Rename from ashrsi3_31.
7229 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
7230 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
7231 and x86_64_shift_adj_3 using SWI48 mode iterator.
7232 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
7233 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
7234 and *ashrdi3_1_rex64 using SWI mode iterator.
7235 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
7236 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
7237 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
7238 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
7239 and *ashrdi3_cmp_rex64 using SWI mode iterator.
7240 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
7241 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
7242 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
7243 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
7245 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
7246 * config/i386/i386.c (ix86_split_ashr): Update for renamed
7247 x86_shift<mode>_adj_3 expanders.
7249 2010-04-10 Wei Guozhi <carrot@google.com>
7252 * config/arm/arm.c (arm_pic_static_addr): New function.
7253 (legitimize_pic_address): Call arm_pic_static_addr when it detects
7255 (arm_output_addr_const_extra): Output expression for new pattern.
7256 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
7258 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
7260 * ira-costs.c (record_reg_classes): Ignore alternatives that are
7263 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
7264 * web.c: Include "insn-config.h" and "recog.h".
7265 (union_match_dups): New function.
7266 (web_main): Call it.
7267 (union_defs): Don't try to recognize match_dups.
7269 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
7270 if doing so would replace the entire pattern.
7272 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
7276 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
7277 and splitter pattern. Change splitter operand 1 predicate to
7280 2010-04-09 Martin Jambor <mjambor@suse.cz>
7282 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
7283 lattices are addresses of CONST_DECLs with the same initial value.
7284 (ipcp_print_all_lattices): Print values of CONST_DECLs.
7285 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
7287 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
7288 Bernd Schmidt <bernds@codesourcery.com>
7290 * loop-invariant.c (replace_uses): New static function.
7291 (move_invariant_reg): Use it to ensure we can replace the uses.
7293 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
7295 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
7297 (picochip_override_options): Enable section anchors only above -O1.
7298 (picochip_reorg): Fixed a couple of build warnings.
7300 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7302 * configure.ac (plugin -rdynamic test): Log result.
7303 * configure: Regenerate.
7304 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
7305 (RDYNAMIC_SPEC): Define.
7306 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
7308 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7310 * configure.ac: Determine Sun ld version numbers.
7311 (comdat_group): Restrict GNU ld version checks to gld.
7312 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
7313 (enable_comdat): Support --enable-comdat.
7314 * configure: Regenerate.
7315 * doc/install.texi (Configuration): Document --enable-comdat.
7317 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7319 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
7320 * config/sol2-gld.h: ... here.
7321 * config.gcc (sparc*-*-solaris2*): Reflect this.
7322 (i[34567]86-*-solaris2*): Use it.
7324 2010-04-09 Steve Ellcey <sje@cup.hp.com>
7326 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
7328 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
7330 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7333 * diagnostic.c (diagnostic_initialize): Initialize
7334 some_warnings_are_errors.
7335 (diagnostic_finish): New.
7336 (diagnostic_action_after_output): Call it before exiting.
7337 (diagnostic_report_diagnostic): Do not print message here. Set
7338 some_warnings_are_errors.
7339 * diagnostic.h (diagnostic_context): Delete
7340 issue_warnings_are_errors_message. Add some_warnings_are_errors.
7341 (diagnostic_finish): Declare.
7342 * toplev.c (toplev_main): Call it before exit.
7344 2010-04-09 Jason Merrill <jason@redhat.com>
7347 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
7348 for incomplete type.
7351 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
7352 based on a warning flag.
7354 2010-04-09 Richard Guenther <rguenther@suse.de>
7356 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
7358 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
7361 * varasm.c (default_assemble_visibility): Wrap vars that are
7362 set, but unused, by targets without GAS.
7363 * config/rs6000/rs6000.c (paired_emit_vector_compare):
7364 Remove set, but unused, vars.
7365 (rs6000_legitimize_tls_address): Likewise.
7366 (altivec_expand_dst_builtin): Likewise.
7367 * config/darwin.c (machopic_classify_symbol): Likewise.
7368 (machopic_indirection_name): Likewise.
7370 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
7372 * config/i386/i386.md (DWI): New mode iterator.
7373 (S): New mode attribute.
7374 (shift_operand): Ditto.
7375 (shift_immediate_operand): Ditto.
7376 (ashl_input_operand): Ditto.
7377 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
7378 using SDWIM mode iterator.
7379 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
7380 pattern from *ashl{di,ti}3_1 and corresponding splitters using
7382 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
7383 from corresponding peephole2 patterns.
7384 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
7385 and x86_64_shift_adj_1 using SWI48 mode iterator.
7386 (x86_shift<mode>_adj_2): Ditto.
7387 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
7388 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
7389 using SWI48 mode iterator.
7390 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
7391 *ashldi3_cmp_rex64 using SWI mode iterator.
7392 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
7393 *ashldi3_cconly_rex64 using SWI mode iterator.
7394 * config/i386/i386.c (ix86_split_ashl): Update for renamed
7395 x86_shift<mode>_adj_{1,2}.
7396 (ix86_split_ashr): Ditto.
7397 (ix86_split_lshr): Ditto.
7399 2010-04-09 Richard Guenther <rguenther@suse.de>
7401 * target.h (builtin_conversion): Pass in input and output types.
7402 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
7403 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
7404 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
7405 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
7407 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
7409 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
7411 2010-04-09 Richard Guenther <rguenther@suse.de>
7414 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
7416 2010-04-09 Richard Guenther <rguenther@suse.de>
7418 * tree-vectorizer.h (struct _stmt_vec_info): Document
7419 that vectype is the type of the LHS.
7420 (supportable_widening_operation, supportable_narrowing_operation):
7421 Get both input and output vector types as arguments.
7422 (vect_is_simple_use_1): Declare.
7423 (get_same_sized_vectype): Likewise.
7424 * tree-vect-loop.c (vect_determine_vectorization_factor):
7425 Set STMT_VINFO_VECTYPE to the vector type of the def.
7426 (vectorizable_reduction): Adjust.
7427 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
7428 Adjust. Specify the output vector type.
7429 (vect_pattern_recog_1): Adjust.
7430 * tree-vect-stmts.c (get_same_sized_vectype): New function.
7431 (vectorizable_call): Adjust.
7432 (vectorizable_conversion): Likewise.
7433 (vectorizable_operation): Likewise.
7434 (vectorizable_type_demotion): Likewise.
7435 (vectorizable_type_promotion): Likewise.
7436 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
7438 (vect_is_simple_use_1): New function.
7439 (supportable_widening_operation): Get both input and output
7441 (supportable_narrowing_operation): Likewise.
7442 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
7444 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
7446 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
7447 __thiscall and _thiscall as predefined macros.
7448 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
7449 thiscall attribute handling.
7450 (ix86_comp_type_attributes): Likewise.
7451 (ix86_function_regparm): Likewise.
7452 (ix86_return_pops_args): Likewise.
7453 (init_cumulative_args): Likewise.
7454 (find_drap_reg): Likewise.
7455 (ix86_static_chain): Likewise.
7456 (x86_this_parameter): Likewise.
7457 (x86_output_mi_thunk): Likewise.
7458 (ix86_attribute_table): Add description for thiscall attribute.
7459 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
7460 * doc/extend.texi: Add documentation for thiscall.
7462 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
7465 * c.opt (Wint-to-pointer-cast): Available in C++.
7466 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
7468 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
7470 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
7471 * calls.c (expand_call): Pass the function type to aggregate_value_p.
7472 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
7473 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
7474 function type instead. Reorder and simplify checks.
7476 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
7478 2010-04-08 Jing Yu <jingyu@google.com>
7479 Zdenek Dvorak <ook@ucw.cz>
7481 PR tree-optimization/42720
7482 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
7483 loop unswitch conditions here from ...
7484 (tree_unswitch_single_loop): ... here.
7486 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
7488 * tree-if-conv.c: Fix comments and simplify logic.
7490 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
7492 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
7493 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
7494 (main_tree_if_conversion): Update call to tree_if_conversion.
7496 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
7499 * doc/invoke.texi (-b,-V): Delete.
7500 * doc/tm.texi: Do not mention -b.
7501 * gcc.c (display_help): Delete -b and -V.
7502 (process_command): Delete -b and -V.
7503 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
7505 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
7506 Wolfgang Gellerich <gellerich@de.ibm.com>
7508 Implement target hook for loop unrolling
7509 * target.h (loop_unroll_adjust): Add a new target hook function.
7510 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
7511 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
7512 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
7513 (s390_loop_unroll_adjust): Implement the new target hook for s390.
7514 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
7516 (decide_unroll_stupid): Likewise.
7518 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7521 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
7523 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7525 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
7526 (Specific, *-*-solaris2*): Likewise.
7527 Don't prefer Sun as over GNU as.
7529 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
7531 * config/s390/s390.c (override_options): Adjust the z10 defaults
7532 for max-unroll-times, max-completely-peeled-insns
7533 and max-completely-peel-times.
7535 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7537 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
7538 instructions for z10.
7539 (s390_expand_setmem): Likewise.
7540 (s390_expand_cmpmem): Likewise.
7542 2010-04-08 Richard Guenther <rguenther@suse.de>
7544 PR tree-optimization/43679
7545 * tree-ssa-pre.c (eliminate): Only propagate copies.
7547 2010-04-08 Jakub Jelinek <jakub@redhat.com>
7550 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
7551 set but not used variable warning.
7553 2010-04-08 Wei Guozhi <carrot@google.com>
7556 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
7557 (arm_size_rtx_costs): Call the new function when optimized for size.
7559 2010-04-08 Jakub Jelinek <jakub@redhat.com>
7562 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
7563 op0 is not a MEM, just return NULL instead of assertion
7565 (discover_nonconstant_array_refs): Don't walk debug stmts.
7567 2010-04-08 Doug Kwan <dougkwan@google.com>
7569 * configure.ac: Recognize gold and do not use its version number
7570 to test ld features.
7571 * configure: Regenerate.
7573 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
7576 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
7577 (negate_value): Move code to push elements to broken_up_substracts ...
7578 (eliminate_plus_minus_pair): ... here. Push operands that have no
7579 negative pair to plus_negates.
7580 (repropagate_negates, init_reassoc, fini_reassoc): Update.
7582 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7584 * doc/install.texi (Configuration): Move description of
7585 --enable-lto, --with-libelf*, --enable-gold from Java section to
7588 * doc/generic.texi (Working with declarations)
7589 (Function Properties, C and C++ Trees): Fix typos.
7590 * doc/sourcebuild.texi (Top Level): Likewise.
7592 2010-04-07 Jakub Jelinek <jakub@redhat.com>
7595 * tree.h (DECL_READ_P): Define.
7596 (struct tree_decl_common): Add decl_read_flag.
7597 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
7598 a set but not used warning.
7599 (merge_decls): Merge DECL_READ_P flag.
7600 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
7601 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
7602 * c-common.c (handle_used_attribute, handle_unused_attribute):
7604 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
7606 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
7608 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
7609 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
7610 c_parser_binary_expression, c_parser_cast_expression,
7611 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
7612 Call default_function_array_read_conversion instead of
7613 default_function_array_conversion where needed.
7614 (c_parser_unary_expression, c_parser_conditional_expression,
7615 c_parser_postfix_expression_after_primary, c_parser_initelt):
7616 Likewise. Call mark_exp_read where needed.
7617 (c_parser_statement_after_labels, c_parser_asm_operands,
7618 c_parser_typeof_specifier, c_parser_sizeof_expression,
7619 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
7621 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
7623 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
7624 (warn_unused_but_set_parameter): Default to warn_unused
7626 * doc/invoke.texi: Document -Wunused-but-set-variable and
7627 -Wunused-but-set-parameter.
7629 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
7630 used count variable.
7631 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
7632 when operandN variables aren't used in the body of the expander
7634 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
7635 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
7636 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
7637 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
7638 FOR_EACH_IMM_USE_ON_STMT): Likewise.
7639 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
7640 * tree.c (PROCESS_ARG): Likewise.
7642 2010-04-07 Simon Baldwin <simonb@google.com>
7644 * diagnostic.h (diagnostic_override_option_index): New macro to
7645 set a diagnostic's option_index.
7646 * c-tree.h (c_cpp_error): Add warning reason argument.
7647 * opts.c (_warning_as_error_callback): New.
7648 (register_warning_as_error_callback): Store callback for
7649 warnings enabled via enable_warning_as_error.
7650 (enable_warning_as_error): Call callback, minor code tidy.
7651 * opts.h (register_warning_as_error_callback): Declare.
7652 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
7653 response to -Werror=.
7654 (c_common_init_options): Register warning_as_error_callback in opts.c.
7655 * common.opt: Add -Wno-cpp option.
7656 * c-common.c (struct reason_option_codes_t): Map cpp warning
7657 reason codes to gcc option indexes.
7658 * (c_option_controlling_cpp_error): New function, lookup the gcc
7659 option index for a cpp warning reason code.
7660 * (c_cpp_error): Add warning reason argument, call
7661 c_option_controlling_cpp_error for diagnostic_override_option_index.
7662 * doc/invoke.texi: Document -Wno-cpp.
7664 2010-04-07 Richard Guenther <rguenther@suse.de>
7666 * ipa-reference.c (mark_load): Use get_base_address.
7667 (mark_store): Likewise.
7669 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
7670 inserting GIMPLE_NOPs into the IL.
7671 * tree-ssa-structalias.c (get_constraint_for_component_ref):
7672 Explicitly strip handled components and indirect references.
7674 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
7675 folding address expressions.
7676 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
7677 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
7678 operand_equal_p to compare decls.
7679 (ptr_deref_may_alias_decl_p): Likewise.
7680 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
7681 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
7682 Handle reversed comparison ops.
7683 * tree-sra.c (asm_visit_addr): Use get_base_address.
7684 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
7685 * ipa-reference.c (mark_address): Use get_base_address.
7687 2010-04-07 Richard Guenther <rguenther@suse.de>
7689 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
7690 Propagate constants everywhere.
7692 2010-04-07 Jakub Jelinek <jakub@redhat.com>
7695 * tree.c (MAX_INT_CACHED_PREC): Define.
7696 (nonstandard_integer_type_cache): New array.
7697 (build_nonstandard_integer_type): Cache results for precision
7698 <= MAX_INT_CACHED_PREC.
7700 2010-04-07 Richard Guenther <rguenther@suse.de>
7702 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
7703 -fargument-noalias-global, -fargument-noalias-anything): Remove.
7704 * common.opt: Likewise.
7705 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
7706 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
7707 (nonoverlapping_memrefs_p): Likewise.
7708 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7709 * opts.c (common_handle_option): Handle OPT_fargument_alias,
7710 OPT_fargument_noalias, OPT_fargument_noalias_anything and
7711 OPT_fargument_noalias_global for backward compatibility.
7713 2010-04-07 Richard Guenther <rguenther@suse.de>
7715 PR tree-optimization/43270
7716 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
7717 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
7718 * tree-ssa-pre.c (phi_translate_1): Adjust.
7719 (fully_constant_expression): Split out vn_reference handling to ...
7720 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
7721 Fold reads from constant strings.
7722 (vn_reference_lookup): Handle fully constant references.
7723 (vn_reference_lookup_pieces): Likewise.
7724 * Makefile.in (expmed.o-warn): Add -Wno-error.
7726 2010-04-07 Martin Jambor <mjambor@suse.cz>
7728 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
7730 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
7733 * gcc.c: Add -static-libstdc++ to list of recognized options.
7735 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7737 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
7739 2010-04-07 Richard Guenther <rguenther@suse.de>
7742 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
7743 bases build simple mem attributes to retain points-to information.
7745 2010-04-07 Richard Guenther <rguenther@suse.de>
7748 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
7749 preserve points-to related information.
7751 2010-04-07 Richard Guenther <rguenther@suse.de>
7754 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
7755 discard plain indirect references.
7756 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
7757 * tree.c (tree_nop_conversion): Likewise.
7759 2010-04-07 Dodji Seketeli <dodji@redhat.com>
7762 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
7764 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
7766 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
7767 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
7769 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7771 * tree-if-conv.c: Fix indentation and comments.
7773 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7775 * tree-if-conv.c: Sort static functions in topological order.
7777 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
7779 * tree-if-conv.c: Fix indentation and comments.
7781 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7784 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
7785 lang_hooks.types.type_for_size instead of
7786 build_nonstandard_integer_type.
7787 When converting an unsigned type to signed, double its precision.
7788 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
7789 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
7790 (graphite_create_new_loop_guard): When ub + 1 wraps around,
7793 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7796 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
7797 POINTER_PLUS_EXPR for pointer types.
7799 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7802 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
7803 * graphite-clast-to-gimple.c: Include langhooks.h.
7804 (max_signed_precision_type): New.
7805 (max_precision_type): Takes two types as arguments.
7806 (precision_for_value): New.
7807 (precision_for_interval): New.
7808 (gcc_type_for_interval): New.
7809 (gcc_type_for_value): New.
7810 (gcc_type_for_clast_term): New.
7811 (gcc_type_for_clast_red): New.
7812 (gcc_type_for_clast_bin): New.
7813 (gcc_type_for_clast_expr): Split up into several functions.
7814 (gcc_type_for_clast_eq): Rewritten.
7815 (compute_bounds_for_level): New.
7816 (compute_type_for_level_1): New.
7817 (compute_type_for_level): New.
7818 (gcc_type_for_cloog_iv): Removed.
7819 (gcc_type_for_iv_of_clast_loop): Rewritten.
7820 (graphite_create_new_loop): Compute the lower and upper bound types
7821 with gcc_type_for_clast_expr.
7822 (graphite_create_new_loop_guard): Same.
7823 (find_cloog_iv_in_expr): Removed.
7824 (compute_cloog_iv_types_1): Removed.
7825 (compute_cloog_iv_types): Removed.
7826 (gloog): Do not call compute_cloog_iv_types.
7827 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
7829 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
7830 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
7831 (GBB_CLOOG_IV_TYPES): Removed.
7833 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7835 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
7836 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
7837 (detect_commutative_reduction): Same.
7839 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7841 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
7842 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
7844 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
7845 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
7846 (rewrite_commutative_reductions_out_of_ssa): Same.
7847 * passes.c (execute_function_todo): Call verify_ssa for every pass
7848 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
7849 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
7850 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
7851 with an extra argument.
7852 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
7853 verify_ssa only when the extra argument is true.
7854 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
7855 with an extra argument.
7856 (tree_transform_and_unroll_loop): Same.
7858 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
7860 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
7861 for all the passes of the LNO having LOOP_CLOSED_SSA.
7862 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
7863 * tree-loop-distribution.c (pass_loop_distribution): Same.
7864 * tree-pass.h (TODO_verify_loops): Removed.
7865 * tree-ssa-loop.c (pass_tree_loop_init): Same.
7867 (pass_tree_unswitch): Same.
7868 (pass_predcom): Same.
7869 (pass_vectorize): Same.
7870 (pass_linear_transform): Same.
7871 (pass_graphite_transforms): Same.
7872 (pass_iv_canon): Same.
7873 (pass_complete_unroll): Same.
7874 (pass_complete_unrolli): Same.
7875 (pass_parallelize_loops): Same.
7876 (pass_loop_prefetch): Same.
7877 (pass_iv_optimize): Same.
7879 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
7882 * passes.c (init_optimization_passes): Move pass_lim before
7883 pass_copy_prop and pass_dce_loop.
7885 2010-04-06 Jakub Jelinek <jakub@redhat.com>
7888 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
7889 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
7890 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
7891 MULTI_* defines for 4 argument vpermil2p* builtins.
7893 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
7895 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
7896 * config/i386/i386.c (x86_maybe_negate_const_int): New.
7897 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
7898 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
7899 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
7900 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
7901 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
7902 Use x86_maybe_negate_const_int to output insn mnemonic.
7903 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
7904 check from instruction predicate. Update comments.
7905 * config/i386/sync.md (sync_add<mode>): Use
7906 x86_maybe_negate_const_int to output insn mnemonic.
7908 2010-04-06 Jan Hubicka <jh@suse.cz>
7910 PR tree-optimization/42906
7911 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
7912 IGNORE_SELF argument. Set visited_control_parents for fully
7914 (find_obviously_necessary_stmts): Update call of
7915 mark_control_dependent_edges_necessary.
7916 (propagate_necessity): Likewise. Handle PHI edges more curefully.
7918 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
7920 * config/i386/i386.md: Remove comment about 'e' and 'E'
7923 2010-04-06 Richard Guenther <rguenther@suse.de>
7925 PR tree-optimization/43627
7926 * tree-vrp.c (extract_range_from_unary_expr): Widenings
7927 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
7930 2010-04-06 Jakub Jelinek <jakub@redhat.com>
7932 * BASE-VER: Change to 4.6.0.
7935 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
7938 2010-04-06 Richard Guenther <rguenther@suse.de>
7941 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
7943 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7945 * doc/invoke.texi (Optimize Options): Document that LTO
7946 won't remove object access purely due to incompatible
7949 2010-04-04 Matthias Klose <doko@ubuntu.com>
7951 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
7952 Initialize variable.
7954 2010-04-03 Richard Guenther <rguenther@suse.de>
7957 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
7958 require a non-NULL MEM_OFFSET.
7960 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
7962 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
7963 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
7964 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
7965 config/alpha/predicates.md, config/arm/arm.md,
7966 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
7967 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
7968 config/darwin9.h, config/darwin.c, config/darwin.h,
7969 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
7970 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
7971 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
7972 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
7973 config/mips/mips.md, config/mn10300/mn10300.c,
7974 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
7975 config/rs6000/aix.h, config/rs6000/dfp.md,
7976 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
7977 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
7978 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
7979 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
7980 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
7981 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
7982 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
7983 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
7984 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
7985 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
7986 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
7987 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
7988 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
7989 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
7990 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
7991 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
7992 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
7993 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
7994 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
7995 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
7996 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
7997 opt-functions.awk, opth-gen.awk, params.def, passes.c,
7998 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
7999 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
8000 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
8001 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
8002 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
8003 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
8004 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
8005 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
8006 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
8007 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
8008 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
8009 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
8010 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
8011 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
8013 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8016 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
8017 * aclocal.m4: Regenerate.
8019 2010-04-02 Richard Guenther <rguenther@suse.de>
8021 PR tree-optimization/43629
8022 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
8023 if we have seen a constant value.
8025 2010-04-02 Joseph Myers <joseph@codesourcery.com>
8027 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
8029 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
8032 * arm.c (legitimize_tls_address): Adjust call to
8033 gen_tls_load_dot_plus_four.
8034 (arm_note_pic_base): New function.
8035 (arm_cannot_copy_insn_p): Use it.
8036 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
8039 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8044 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8046 * Makefile.in ($(out_object_file)): Depend on
8047 gt-$(basename $(notdir $(out_file))).h.
8049 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
8051 * config.gcc (lm32-*-rtems*): Add t-lm32.
8053 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
8055 * config.gcc: Add lm32-*-rtems*.
8056 * config/lm32/rtems.h: New file.
8058 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
8061 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
8063 2010-04-01 Jakub Jelinek <jakub@redhat.com>
8065 * dwarf2out.c (output_compilation_unit_header): For
8066 -gdwarf-4 use version 4 instead of version 3.
8067 (output_line_info): For version 4 and above emit additional
8068 maximum ops per insn header field.
8069 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
8071 * dwarf2out.c (is_c_family, is_java): Remove.
8072 (lower_bound_default): New function.
8073 (add_bound_info, gen_descr_array_type_die): Use it.
8075 2010-04-01 Dodji Seketeli <dodji@redhat.com>
8078 * dwarf2out.c (gen_variable_die): Allow debug info for variable
8079 re-declaration when it happens in a function.
8081 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
8083 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
8084 (cgraph_remove_function_insertion_hook): Same.
8085 (cgraph_call_function_insertion_hooks): Same.
8087 2010-04-01 Richard Guenther <rguenther@suse.de>
8090 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
8091 and TREE_THIS_VOLATILE.
8092 (copy_ref_info): Likewise.
8093 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
8094 * tree.c (build6_stat): Ignore side-effects of all but arg5
8095 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
8098 2010-04-01 Richard Guenther <rguenther@suse.de>
8100 PR tree-optimization/43607
8101 * ipa-type-escape.c (check_call): Do not access non-existing
8104 2010-04-01 Richard Guenther <rguenther@suse.de>
8108 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
8109 Jack Howarth <howarth@bromo.med.uc.edu>
8111 * tree-profile.c (tree_init_ic_make_global_vars): Make static
8114 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8116 * doc/install.texi (Prerequisites): Document libelf usability on
8117 IRIX 5/6 and Solaris 2.
8118 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
8119 Update GNU as, GNU ld requirements.
8120 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
8121 Document Sun Studio compiler download.
8122 Update and simplify as, ld recommendations.
8123 (Specific, *-*-solaris2.7): Note obsoletion, removal.
8125 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8127 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
8128 with_tune_32 to pentium4.
8130 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
8132 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
8134 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8136 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
8137 obsoletion, removal.
8139 Document GNU as requirement.
8140 Update configure requirements.
8141 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
8142 Recomment IRIX 6.5.18+.
8143 Document IDF/IDL requirement.
8144 Document GNU as requirement.
8145 Document GNU ld bootstrap failure.
8146 Remove freeware.sgi.com reference.
8148 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8150 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
8151 UNIX V4.0, V5.0 obsoletion, removal.
8152 Remove --with-gc=simple reference.
8153 Update VM requirements during bootstrap.
8154 Remove -oldas bootstrap description.
8155 Update binutils reference.
8156 Remove comparison failure note.
8158 2010-03-31 Richard Guenther <rguenther@suse.de>
8159 Zdenek Dvorak <ook@ucw.cz>
8160 Sebastian Pop <sebastian.pop@amd.com>
8163 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
8164 with multiple arguments.
8165 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
8167 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
8169 * graphite-dependences.c (print_pddr): Call print_pdr with an
8171 * graphite-poly.c (debug_pdr): Add an extra argument for the
8174 (print_pbb_domain): Same.
8176 (print_scop_context): Same.
8178 (print_cloog): Same.
8179 (debug_pbb_domain): Same.
8183 (debug_scop_context): Same.
8185 (debug_cloog): Same.
8186 (print_scop_params): Same.
8187 (debug_scop_params): Same.
8188 (print_iteration_domain): Same.
8189 (print_iteration_domains): Same.
8190 (debug_iteration_domain): Same.
8191 (debug_iteration_domains): Same.
8192 (print_scattering_function): Same.
8193 (print_scattering_functions): Same.
8194 (debug_scattering_function): Same.
8195 (debug_scattering_functions): Same.
8196 * graphite-poly.h (debug_pdr): Update declaration.
8198 (print_pbb_domain): Same.
8200 (print_scop_context): Same.
8202 (print_cloog): Same.
8203 (debug_pbb_domain): Same.
8207 (debug_scop_context): Same.
8209 (debug_cloog): Same.
8210 (print_scop_params): Same.
8211 (debug_scop_params): Same.
8212 (print_iteration_domain): Same.
8213 (print_iteration_domains): Same.
8214 (debug_iteration_domain): Same.
8215 (debug_iteration_domains): Same.
8216 (print_scattering_function): Same.
8217 (print_scattering_functions): Same.
8218 (debug_scattering_function): Same.
8219 (debug_scattering_functions): Same.
8221 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
8223 * graphite-poly.c (print_scattering_function_1): New.
8224 (print_scattering_function): Call it.
8225 (print_scop_params): Remove spaces at the end of lines.
8228 * graphite-poly.h (print_cloog): Declared.
8229 (debug_cloog): Declared.
8231 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
8233 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
8235 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
8236 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
8237 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
8238 to switch between adding the IV bump in loop->latch or in loop->header.
8240 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
8242 * graphite-poly.c (print_scattering_function): Pretty print following
8245 (print_pbb_domain): Same.
8246 (dump_gbb_cases): Same.
8247 (dump_gbb_conditions): Same.
8250 (print_scop_params): Same.
8251 (print_scop_context): Same.
8253 (print_pbb_body): New.
8254 (lst_indent_to): New.
8255 (print_lst): Start new lines with a #.
8256 * graphite-poly.h (pbb_bb): New.
8257 (pbb_index): Use pbb_bb.
8258 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
8260 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
8262 2010-03-31 Jakub Jelinek <jakub@redhat.com>
8264 * dwarf2out.c (size_of_die): For -gdwarf-4 use
8265 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
8266 and 0 instead of 1 for dw_val_class_flag.
8267 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
8268 dw_val_class_range_list, dw_val_class_loc_list,
8269 dw_val_class_lineptr and dw_val_class_macptr, use
8270 DW_FORM_flag_present for dw_val_class_flag and
8271 DW_FORM_exprloc for dw_val_class_loc.
8272 (output_die): For -gdwarf-4 print dw_val_class_loc
8273 size as uleb128 instead of 1 or 2 bytes and don't print
8274 anything for dw_val_class_flag.
8276 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
8277 instead of cselib_lookup following by tweaking locs->setting_insn.
8280 * cselib.c (cselib_process_insn): Clear cselib_current_insn
8281 even before returning from label, setjmp call or volatile asm
8284 2010-03-31 Richard Guenther <rguenther@suse.de>
8287 * cgraphunit.c (cgraph_output_in_order): Do not allocate
8288 temporary data on stack.
8290 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8292 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
8293 (PUSHSECTION_ASM_OP): Remove.
8294 (POPSECTION_ASM_OP): Remove.
8295 (PUSHSECTION_FORMAT): Remove.
8296 * config/sol2.h (PUSHSECTION_FORMAT): Define.
8297 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
8298 * config/sol2.c (solaris_output_init_fini): Use it.
8300 2010-03-31 Jie Zhang <jie@codesourcery.com>
8303 * opt-functions.awk (var_type_struct): Use signed char type
8304 for simple variables.
8306 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8308 * config/sol2.c: Include output.h.
8309 (solaris_assemble_visibility): New function.
8310 * config/t-sol2 (sol2.o): Add output.h dependency.
8311 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
8312 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
8315 2010-03-31 Jakub Jelinek <jakub@redhat.com>
8318 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
8319 V2SImode or XFmode on PRE_DEC.
8322 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
8325 2010-03-31 Jie Zhang <jie@codesourcery.com>
8328 * reload.h (caller_save_initialized_p): Declare.
8329 * toplev.c (backend_init_target): Don't call
8330 init_caller_save but set caller_save_initialized_p to false.
8331 * caller-save.c (caller_save_initialized_p): Define.
8332 (init_caller_save): Check caller_save_initialized_p.
8333 * ira.c (ira): Call init_caller_save if flag_caller_saves.
8335 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8338 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
8339 and soft-fp/t-softfp to tmake_file.
8340 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
8341 (LIBGCC2_TF_CEXT): Define.
8344 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
8347 * cselib.c (n_useless_values): Document handling of debug locs.
8348 (n_useless_debug_values, n_debug_values): New variables.
8349 (new_elt_loc_list): Don't add to debug values, keep count.
8350 (promote_debug_loc): New.
8351 (cselib_reset_table): Zero new variables.
8352 (entry_and_rtx_equal_p): Promote debug locs.
8353 (discard_useless_locs): Increment n_useless_debug_values for
8355 (remove_useless_values): Adjust n_useless_values and n_debug_values
8356 with n_useless_debug_values.
8357 (add_mem_for_addr): Promote debug locs.
8358 (cselib_lookup_mem): Likewise.
8359 (cselib_lookup_addr): Renamed to...
8360 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
8361 (cselib_log_lookup): ... this. Turn into...
8362 (cselib_lookup_addr): ... new wrapper.
8363 (cselib_lookup_from_insn): New.
8364 (cselib_invalidate_regno): Increment n_useless_debug_values for
8366 (cselib_invalidate_mem): Likewise.
8367 (cselib_process_insn): Take n_deleted and n_debug_values into
8368 account to guard remove_useless_value call.
8369 (cselib_finish): Zero n_useless_debug_values.
8370 * cselib.h (cselib_lookup_from_insn): Declare.
8371 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
8372 (sched_analyze_2): Likewise.
8374 2010-03-30 Jakub Jelinek <jakub@redhat.com>
8376 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
8378 (adjust_mems): Replace narrowing SUBREG of expression containing
8379 just PLUS, MINUS, MULT and ASHIFT of registers and constants
8380 with operations in the narrower mode.
8383 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
8384 regs_invalidated_by_call instead all call_used_reg_set registers.
8386 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
8389 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
8390 pointer comparisons with types_compatible_p.
8391 * tree-vect-stmts.c (vectorizable_call): Same.
8392 (vectorizable_condition): Same.
8394 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8396 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
8397 stack check if the mask would be zero.
8399 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
8400 Jack Howarth <howarth@bromo.med.uc.edu>
8402 * tree-profile.c (tree_init_ic_make_global_vars): Make static
8405 2010-03-30 Joseph Myers <joseph@codesourcery.com>
8408 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
8410 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
8411 Include ___unordxf2 and ___unordtf2.
8412 * config/i386/libgcc-glibc.ver: Do not define inheritance from
8415 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
8417 * config/lm32/t-lm32: New file.
8418 * config.gcc: Use the above file when targetting lm32.
8420 2010-03-28 Duncan Sands <baldrick@free.fr>
8422 * Makefile.in (PLUGIN_HEADERS): Add except.h.
8424 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
8427 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
8428 Improve vectorization cost model diagnostic.
8430 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
8433 * tree-vect-data-refs.c (vect_analyze_data_refs): When
8434 compute_data_dependences_for_loop returns false, early exit
8435 and output an extra diagnostic for the failed data reference
8438 2010-03-29 Richard Guenther <rguenther@suse.de>
8440 PR tree-optimization/43560
8441 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
8442 (can_sm_ref_p): Treat stores to readonly locations as trapping.
8444 2010-03-29 Jie Zhang <jie@codesourcery.com>
8447 * toplev.c (process_options): Set optimization_default_node
8448 and optimization_current_node.
8449 * opts.c (decode_options): Don't set optimization_default_node
8450 and optimization_current_node.
8452 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
8454 * config/rtems.h: Abandon -qrtems_debug.
8456 2010-03-28 Jan Hubicka <jh@suse.cz>
8458 PR tree-optimization/43505
8459 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
8460 map should not be copied.
8462 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8465 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
8466 cdtors, set DECL_PRESERVE_P.
8467 * ipa.c (cgraph_externally_visible_p): Return true if declaration
8470 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
8472 PR tree-optimization/43528
8473 * stor-layout.c (place_field): Check that constant fits into
8474 unsigned HWI when skipping calculation of MS bitfield layout.
8476 2010-03-27 Jan Hubicka <jh@suse.cz>
8479 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
8480 notice_global_symbol work.
8482 2010-03-27 Jakub Jelinek <jakub@redhat.com>
8484 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
8485 instead of dwarf2out_decl.
8486 (struct var_loc_node): Remove section_label field.
8487 (dwarf2out_function_decl): New function.
8488 (dwarf2out_var_location): Don't set section_label field.
8489 (dwarf2out_begin_function): Don't empty decl_loc_table here.
8491 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
8493 PR tree-optimization/43544
8494 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
8495 First argument for builtin vectorized function hook is now a
8496 tree to be able to distinguish between machine specific and
8498 * targhooks.c (default_builtin_vectorized_function): Ditto.
8499 * targhooks.h (default_builtin_vectorized_function): Ditto.
8500 * target.h (struct gcc_target): Ditto.
8501 * tree-vect-stmts.c (vectorizable_function): Ditto.
8502 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
8503 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
8506 2010-03-26 Joseph Myers <joseph@codesourcery.com>
8509 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
8510 nested binding iff it is a FUNCTION_DECL.
8511 (store_parm_decls_newstyle): Pass nested=true to bind for
8512 FUNCTION_DECLs amongst parameters.
8514 2010-03-26 Jakub Jelinek <jakub@redhat.com>
8516 * var-tracking.c (vt_expand_loc_callback): Don't run
8517 cselib_expand_value_rtx_cb in dummy mode if
8518 cselib_dummy_expand_value_rtx_cb returned false.
8520 * var-tracking.c (emit_note_insn_var_location): For one part
8521 notes with offset 0, don't add EXPR_LIST around the location.
8522 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
8523 add_location_or_const_value_attribute): Adjust for that change.
8526 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
8527 into first operand and location into second.
8528 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
8529 dw_cfi_oprnd_loc for DW_CFA_expression.
8530 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
8531 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
8532 assume first argument is regnum and second argument is location.
8534 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
8537 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
8538 of scratch register to DImode. Split to DImode comparison operator.
8539 Use SImode subreg of scratch register in the multiplication.
8540 (*cmp_sadd_sidi): Ditto.
8541 (*cmp_ssub_si): Ditto.
8542 (*cmp_ssub_sidi): Ditto.
8544 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
8547 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
8548 Remove invalid assert and wrong comment.
8550 2010-03-26 Jakub Jelinek <jakub@redhat.com>
8553 * flags.h (final_insns_dump_p): New extern.
8554 * final.c (final_insns_dump_p): New variable.
8555 (rest_of_clean_state): Set it before -fdump-final-insns=
8556 dumping, clear afterwards.
8557 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
8558 MEM_ALIAS_SET on MEMs.
8560 2010-03-26 David S. Miller <davem@davemloft.net>
8562 * configure.ac: Fix sparc GOTDATA_OP bug check.
8563 * configure: Rebuild.
8565 2010-03-26 Alan Modra <amodra@gmail.com>
8567 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
8569 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8571 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
8572 TLS_SECTION_ASM_FLAG.
8574 2010-03-25 Jakub Jelinek <jakub@redhat.com>
8577 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
8578 Clear first_function_block_is_cold.
8581 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
8582 argument if the argument is truth_value_p.
8584 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
8586 * config/rs6000/constraints.md: Update copyright year for my changes.
8589 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
8590 used in reg+reg addressing, swap registers.
8592 2010-03-24 Jakub Jelinek <jakub@redhat.com>
8595 * target.h (struct gcc_target): Add code_end hook.
8596 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
8598 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
8599 * toplev.c (compile_file): Call targetm.asm_out.code_end
8600 hook before unwind info/debug info output.
8601 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
8602 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
8603 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
8604 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
8605 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
8606 * config/i386/i386.c (ix86_file_end): Renamed to...
8607 (ix86_code_end): ... this. Make static. Don't call
8608 file_end_indicate_exec_stack. Emit unwind info using
8609 final_start_function/final_end_function.
8610 (darwin_x86_file_end): Remove.
8611 (TARGET_ASM_CODE_END): Define.
8612 * config/i386/i386.h (TARGET_ASM_FILE_END,
8613 NEED_INDICATE_EXEC_STACK): Don't define.
8614 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
8615 (TARGET_ASM_FILE_END): Define to darwin_file_end.
8616 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
8617 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
8620 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
8621 at the beginning and final_end_function at the end.
8622 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8624 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8626 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
8627 and Sun as TLS syntax.
8628 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
8629 * configure: Regenerate.
8630 * config.in: Regenerate.
8631 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
8632 (default_elf_asm_named_section): Use it.
8633 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
8634 (i386_output_dwarf_dtprel): Likewise.
8635 (output_addr_const_extra): Likewise.
8636 (output_pic_addr_const): Lowercase @GOTTPOFF.
8637 (output_addr_const_extra): Likewise.
8638 (output_pic_addr_const): Lowercase @GOTNTPOFF.
8639 (output_addr_const_extra): Likewise.
8640 (output_pic_addr_const): Lowercase @INDNTPOFF.
8641 (output_addr_const_extra): Likewise.
8642 (output_pic_addr_const): Lowercase @NTPOFF.
8643 (output_addr_const_extra): Likewise.
8644 (output_pic_addr_const): Lowercase @TPOFF.
8645 (output_addr_const_extra): Likewise.
8646 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
8647 (*tls_global_dynamic_64): Likewise.
8648 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
8649 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
8651 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
8652 (ASM_OUTPUT_TLS_COMMON): Use it.
8653 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
8656 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
8657 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
8658 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
8659 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
8660 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8661 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
8663 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8665 * config/i386/i386.c (override_options): Don't accept
8666 -mtls-dialect=sun any longer.
8667 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
8668 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
8669 (*tls_local_dynamic_base_32_sun): Likewise.
8670 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8672 2010-03-24 Jakub Jelinek <jakub@redhat.com>
8675 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
8676 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
8679 * ira.c (adjust_cleared_regs): New function.
8680 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
8684 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
8686 * expr.c (expand_expr_real): Restore previous
8687 curr_insn_source_location and curr_insn_block after
8688 expand_expr_real_1 call.
8689 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
8690 instead of expand_expr_real_1.
8692 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
8694 PR rtl-optimization/43413
8695 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
8698 2010-03-22 James E. Wilson <wilson@codesourcery.com>
8701 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
8702 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
8704 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
8706 * config/i386/i386.c (ix86_target_string): Add -mfma.
8707 Fix a typo in comment.
8709 2010-03-22 Mike Stump <mikestump@comcast.net>
8712 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
8713 Don't overly align based upon packed packed fields.
8715 2010-03-22 Jason Merrill <jason@redhat.com>
8717 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
8718 Use () rather than [], and move before the element type.
8720 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8722 * doc/configfiles.texi (Configuration Files): Removed
8723 fixinc/Makefile*, intl/Makefile.*.
8724 * doc/makefile.texi: Fixed markup. Abstract from version
8725 control system used.
8726 (Makefile): Removed obsolete gcc/java/parse.y example.
8727 * doc/sourcebuild.texi: Likewise.
8728 (Top Level): Added config, gnattools, libdecnumber, libgcc,
8729 libgomp, libssp. Removed fastjar.
8730 (Miscellaneous Docs): Clarify location.
8731 Added COPYING3, COPYING3.LIB.
8732 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
8734 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8737 * config/i386/i386.c (x86_function_profiler)
8738 [!NO_PROFILE_COUNTERS]: Fix typo.
8739 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
8742 2010-03-22 Janis Johnson <janis187@us.ibm.com>
8743 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8745 * doc/sourcebuild.texi (Test Directives): Split into six
8746 subsections, with most of the current text in new subsections
8747 Directives, Selectors, and Final Actions.
8748 (Directives): Split list of test directives into multiple
8750 (Selectors): Describe use and syntax of selectors.
8751 (Effective-Target Keywords): Describe all existing keywords.
8752 (Add Options): Describe features for dg-add-options.
8753 (Require Support): Describe variants of dg-require-support.
8754 (Final Actions): Describe commands to use in dg-final.
8756 2010-03-22 Michael Matz <matz@suse.de>
8759 * recog.c (validate_replace_rtx_group): Replace also in
8760 REG_EQUAL and REG_EQUIV notes.
8762 2010-03-22 Richard Guenther <rguenther@suse.de>
8764 PR tree-optimization/43390
8765 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
8766 sure vector extracts are type correct.
8768 2010-03-22 Richard Guenther <rguenther@suse.de>
8771 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
8772 x * sqrt (x) even when optimizing for size if the target
8773 has native support for sqrt.
8775 2010-03-22 Jakub Jelinek <jakub@redhat.com>
8777 * varasm.c (make_decl_rtl_for_debug): Also clear
8778 flag_mudflap for the duration of make_decl_rtl call.
8781 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
8782 locs from preserved VALUEs.
8784 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8787 * pa.md (movmemsi): Set align to one if zero.
8788 (movmemdi): Likewise.
8790 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
8793 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
8794 with their corresponding prologue pushes.
8796 2010-03-20 Andrew Pinski <pinskia@gmail.com>
8799 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
8800 at the begining or end.
8801 (spu_expand_epilogue): Likewise.
8803 2010-03-20 Richard Guenther <rguenther@suse.de>
8805 PR rtl-optimization/43438
8806 * combine.c (make_extraction): Properly zero-/sign-extend an
8807 extraction of the low part of a CONST_INT. Also handle
8810 2010-03-19 Mike Stump <mikestump@comcast.net>
8812 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
8813 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
8814 (override_options): Use SUBTARGET32_DEFAULT_CPU.
8816 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
8819 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
8822 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
8824 PR rtl-optimization/42258
8825 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
8826 use that may match DEF.
8829 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
8830 the cost of loading the constant rather than assuming
8832 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
8833 outer code is AND, do the same tests as the andsi3 expander and
8834 return COSTS_N_INSNS (1) if and is cheap.
8836 * optabs.c (avoid_expensive_constant): Fix formatting.
8838 2010-03-19 Michael Matz <matz@suse.de>
8841 * attribs.c (decl_attributes): When rebuilding a function pointer
8842 type use the same qualifiers as the original pointer type.
8844 2010-03-19 Martin Jambor <mjambor@suse.cz>
8846 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
8847 and is_gimple_ip_invariant_address.
8849 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8852 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8854 * config/arm/arm.c (arm_override_options): Turn off
8855 flag_dwarf2_cfi_asm for AAPCS variants.
8857 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8860 * config/arm/arm.c (emit_multi_reg_push): Update comments.
8861 Use PRE_MODIFY instead of PRE_DEC.
8862 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
8863 (vfp_emit_fstmd): Likewise.
8865 2010-03-19 Michael Matz <matz@suse.de>
8868 * builtins.c (expand_builtin_interclass_mathfn,
8869 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
8872 2010-03-19 Richard Guenther <rguenther@suse.de>
8874 PR tree-optimization/43415
8875 * tree-ssa-pre.c (phi_translate): Split out worker to ...
8876 (phi_translate_1): ... this.
8877 (phi_translate): Move all caching here. Cache all NARY
8878 and REFERENCE translations.
8880 2010-03-19 David S. Miller <davem@davemloft.net>
8882 With help from Eric Botcazou.
8883 * config/sparc/sparc.c: Include dwarf2out.h.
8884 (emit_pic_helper): Delete.
8885 (pic_helper_symbol_name): Delete.
8886 (pic_helper_emitted_p): Delete.
8887 (pic_helper_needed): New.
8888 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
8889 (get_pc_thunk_name): New.
8890 (load_pic_register): Remove 'delay_pic_helper' arg. Use
8891 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
8892 Set pic_helper_needed to true. Don't call emit_pic_helper.
8893 (sparc_expand_prologue): Update load_pic_register call.
8894 (sparc_output_mi_thunk): Likewise.
8895 (sparc_file_end): Emit a hidden comdat symbol for the PIC
8896 thunk if possible. Output CFI information as needed.
8898 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8899 Jack Howarth <howarth@bromo.med.uc.edu>
8902 * config/i386/i386.h: Fix ABI on darwin x86-32.
8904 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
8906 * tree.h: Declare make_decl_rtl_for_debug.
8907 * varasm.c (make_decl_rtl_for_debug): New.
8908 * dwarf2out.c (rtl_for_decl_location): Call it.
8909 * cfgexpand.c (expand_debug_expr): Call it.
8911 2010-03-18 Jakub Jelinek <jakub@redhat.com>
8914 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
8918 * var-tracking.c (vt_init_cfa_base): Do nothing if
8919 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
8921 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
8924 * var-tracking.c (canonicalize_vars_star): New.
8925 (dataflow_post_merge_adjust): Use it.
8927 2010-03-18 Jakub Jelinek <jakub@redhat.com>
8930 * var-tracking.c (non_suitable_const): New function.
8931 (add_uses): For DEBUG_INSNs with constants, don't record any
8932 value, instead just the constant value itself.
8933 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
8934 is not VAR_LOC_UNKNOWN_P, set var to the constant.
8935 (emit_notes_in_bb): Likewise.
8936 (emit_note_insn_var_location): For onepart variables if
8937 cur_loc is a VOIDmode constant, use DECL_MODE.
8939 2010-03-18 Martin Jambor <mjambor@suse.cz>
8942 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
8943 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
8944 all non-clones. Moved call redirection...
8945 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
8946 (cgraph_materialize_all_clones): Dispose of all
8947 combined_args_to_skip bitmaps.
8948 (verify_cgraph_node): Do not check for edges pointing to wrong
8949 nodes in inline clones.
8950 * tree-inline.c (copy_bb): Call
8951 cgraph_redirect_edge_call_stmt_to_callee.
8952 * ipa.c (cgraph_remove_unreachable_nodes): Call
8953 cgraph_node_remove_callees even when there are used clones.
8955 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
8957 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
8959 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
8962 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
8965 2010-03-18 Michael Matz <matz@suse.de>
8968 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
8969 into sqrt(x) if we need to preserve signed zeros.
8971 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
8972 Eric Botcazou <ebotcazou@adacore.com>
8974 PR rtl-optimization/43360
8975 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
8976 note if we don't know its invariant status.
8978 2010-03-18 Michael Matz <matz@suse.de>
8980 PR tree-optimization/43402
8981 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
8982 PHI chains of ssa names registered for update.
8984 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
8987 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
8988 non-offsettable and pre_modify update addressing.
8989 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
8990 and "2" alternatives "#".
8991 (*movdd_softfloat32): Make all alternatives "#";
8992 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
8993 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
8994 (*movdf_softfloat32): Make all alternatives "#";
8995 (movdi): Use the new DIFD mode iterator to create a common splitter
8996 for movdi, movdf and movdd patterns.
8998 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
9000 * common.opt (dumpdir): Remove redundant tab.
9002 2010-03-17 Martin Jambor <mjambor@suse.cz>
9004 PR tree-optimization/43347
9005 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
9006 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
9008 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
9010 PR rtl-optimization/42216
9011 * regrename.c (create_new_chain): New function, broken out from...
9012 (scan_rtx_reg): ... here. Call it. Handle the case where we are
9013 appending a use to an empty chain.
9014 (build_def_use): Remove previous changes that convert OP_INOUT to
9015 OP_OUT operands; instead detect the case where an OP_INOUT operand
9016 uses a previously untracked register and create an empty chain for it.
9018 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9020 * doc/extend.texi (Function Attributes): Rewrite unfinished
9021 sentence in ms_abi documentation.
9023 2010-03-17 Alan Modra <amodra@gmail.com>
9025 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
9026 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
9027 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
9028 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
9030 2010-03-16 Richard Henderson <rth@redhat.com>
9033 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
9034 (lower_try_finally): Save and restore eh_seq around the expansion
9037 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
9039 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
9040 statements before splitting block.
9042 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9044 * doc/sourcebuild.texi (Testsuites): Fix markup.
9045 Use pathnames relative to gcc/testsuite.
9046 (Test Directives): Move description of how timeout is determined.
9047 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
9048 (C Tests): Correct gcc.misc-tests directory.
9049 Framework tests now live in gcc.test-framework.
9051 2010-03-16 Richard Guenther <rguenther@suse.de>
9054 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
9055 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
9057 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
9058 Alexandre Oliva <aoliva@redhat.com>
9060 PR tree-optimization/42917
9061 * lambda-code.c (remove_iv): Skip debug statements.
9062 (lambda_loopnest_to_gcc_loopnest): Likewise.
9063 (not_interesting_stmt): Debug statements are not interesting.
9065 2010-03-16 Jakub Jelinek <jakub@redhat.com>
9069 * cselib.c (cselib_preserve_constants,
9070 cfa_base_preserved_val): New static variables.
9071 (preserve_only_constants): New function.
9072 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
9073 clear its REG_VALUES. If cselib_preserve_constants, don't
9074 empty the whole hash table, but preserve there VALUEs with constants,
9075 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
9076 (cselib_preserve_cfa_base_value): New function.
9077 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
9078 (cselib_init): Change argument to int bitfield. Set
9079 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
9081 (cselib_finish): Clear cselib_preserve_constants and
9082 cfa_base_preserved_val.
9083 * cselib.h (enum cselib_record_what): New enum.
9084 (cselib_init): Change argument to int.
9085 (cselib_preserve_cfa_base_value): New prototype.
9086 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
9087 * dse.c (dse_step1): Likewise.
9088 * cfgcleanup.c (thread_jump): Likewise.
9089 * sched-deps.c (sched_analyze): Likewise.
9090 * gcse.c (local_cprop_pass): Likewise.
9091 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
9092 If FN is non-NULL, call the callback always and whenever it returns
9093 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
9094 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
9095 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
9096 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
9097 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
9098 * var-tracking.c: Include recog.h.
9099 (bb_stack_adjust_offset): Remove.
9100 (vt_stack_adjustments): Don't call it, instead just gather the
9101 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
9102 (adjust_stack_reference): Remove.
9103 (compute_cfa_pointer): New function.
9104 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
9105 (struct adjust_mem_data): New type.
9106 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
9108 (get_address_mode): New function.
9109 (replace_expr_with_values): Use it.
9110 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
9111 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
9112 (adjust_sets): Remove.
9113 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
9114 Use get_address_mode.
9115 (get_adjusted_src): Remove.
9116 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
9117 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
9118 (add_with_sets): Don't call adjust_sets.
9119 (fp_setter, vt_init_cfa_base): New functions.
9120 (vt_initialize): Change return type to bool. Move most of pool etc.
9121 initialization to the beginning of the function from end. Pass
9122 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
9123 If !frame_pointer_needed, call vt_stack_adjustment before mos
9124 vector is filled, call vt_init_cfa_base if argp/framep has been
9125 eliminated to sp. If frame_pointer_needed and argp/framep has
9126 been eliminated to hard frame pointer, set
9127 hard_frame_pointer_adjustment and call vt_init_cfa_base after
9128 encountering fp setter in the prologue. For MO_ADJUST, call
9129 log_op_type before pusing the op into mos vector, not afterwards.
9130 Call adjust_insn before cselib_process_insn/add_with_sets,
9131 call cancel_changes (0) afterwards.
9132 (variable_tracking_main_1): Adjust for vt_initialize calling
9133 vt_stack_adjustments and returning whether it succeeded or not.
9135 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
9137 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
9140 2010-03-15 Jakub Jelinek <jakub@redhat.com>
9142 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
9144 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
9145 drap_reg has not been set.
9147 2010-03-15 Michael Matz <matz@suse.de>
9150 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
9151 use it to expand block copies.
9152 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
9153 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
9154 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
9156 2010-03-15 Richard Guenther <rguenther@suse.de>
9158 PR tree-optimization/43367
9159 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
9162 2010-03-15 Richard Guenther <rguenther@suse.de>
9164 PR tree-optimization/43317
9165 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
9167 2010-03-15 Martin Jambor <mjambor@suse.cz>
9169 PR tree-optimization/43141
9170 * tree-sra.c (create_abstract_origin): New function.
9171 (modify_function): Call create_abstract_origin.
9173 2010-03-15 Chris Demetriou <cgd@google.com>
9175 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
9178 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9181 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
9182 call insert_out_of_ssa_copy for default definitions.
9184 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9186 * graphite-clast-to-gimple.c (my_long_long): Defined.
9187 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
9188 * graphite-sese-to-poly.c (my_long_long): Defined.
9189 (scop_ivs_can_be_represented): Use it.
9191 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9193 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
9194 graphite-max-bbs-per-function, and loop-block-tile-size.
9195 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
9197 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
9199 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9201 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
9202 forward declaration.
9203 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
9204 (add_upper_bounds_from_estimated_nit): New.
9205 (build_loop_iteration_domains): Use it.
9207 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9209 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
9211 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9214 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
9215 should be an INTEGER_CST. Also handle CASE_CONVERT.
9217 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9219 * graphite.c (graphite_initialize): To bound the number of bbs per
9220 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
9221 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
9222 * doc/invoke.texi: Document it.
9224 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9226 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
9227 * graphite-sese-to-poly.h (build_poly_scop): Same.
9229 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9231 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
9232 the number of parameters in the scop. Use as an upper bound
9233 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
9234 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
9235 * doc/invoke.texi: Document it.
9237 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
9239 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
9240 * doc/c-tree.texi: Remove.
9241 * doc/generic.texi: Merge c-tree.texi here.
9242 * doc/gccint.texi (Trees): Remove menu entry.
9243 (c-tree.texi): Remove @include.
9244 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
9245 * doc/languages.texi (Reading RTL): Ditto.
9247 2010-03-12 Steve Ellcey <sje@cup.hp.com>
9250 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
9252 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
9255 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
9256 code added to work around reload clobbering CONST insns.
9258 2010-03-12 Jakub Jelinek <jakub@redhat.com>
9260 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
9261 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
9262 (cselib_preserve_only_values): Remove retain argument, don't
9263 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
9264 * cselib.h (cselib_preserve_only_values): Remove retain argument.
9265 * var-tracking.c (micro_operation): Move insn field before union.
9266 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
9267 (struct variable_tracking_info_def): Remove n_mos field, change
9268 mos into a vector of micro_operations.
9269 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
9270 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
9271 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
9272 changing into a vector.
9273 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
9274 come before all other uops generated by add_stores.
9275 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
9277 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
9278 a vector. Run just one pass over the bbs instead of separate counting
9279 and computation phase.
9280 (vt_finalize): Free VTI (bb)->mos vector instead of array.
9283 * tree-inline.c (remap_decls): Put old_var rather than origin_var
9284 into *nonlocalized_list vector.
9285 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
9286 even if origin is non-NULL.
9287 (gen_variable_die): Likewise.
9288 (process_scope_var): Don't change origin.
9289 (gen_decl_die): Likewise.
9290 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
9291 before adding new edges instead of after it, fix moving over
9294 2010-03-11 David S. Miller <davem@davemloft.net>
9296 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
9298 * configure: Rebuild.
9300 2010-03-11 Martin Jambor <mjambor@suse.cz>
9302 PR tree-optimization/43257
9303 * tree.c (assign_assembler_name_if_neeeded): New function.
9304 (free_lang_data_in_cgraph): Assembler name assignment moved to the
9306 * tree.h (assign_assembler_name_if_neeeded): Declare.
9307 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
9308 the function if needed.
9310 2010-03-11 Chris Demetriou <cgd@google.com>
9312 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
9313 include/stdint-gcc.h, and include/stdint.h world-readable.
9315 2010-03-11 Richard Guenther <rguenther@suse.de>
9317 PR tree-optimization/43255
9318 * tree-vrp.c (process_assert_insertions_for): Do not insert
9319 asserts for trivial conditions.
9321 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9323 PR tree-optimization/43280
9324 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
9325 generation. Move calculation of size out of the if branch.
9326 (find_bswap): Modify compare number generation.
9328 2010-03-11 Richard Guenther <rguenther@suse.de>
9331 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
9332 (input_gimple_stmt): Fixup handled component types during
9333 operand read. Also fix up decls in ADDR_EXPRs.
9335 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
9337 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
9338 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
9340 2010-03-10 Jan Hubicka <jh@suse.cz>
9343 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
9344 * varasm.c (get_variable_section): Don't do that here...
9345 (make_decl_rtl): ... and here.
9346 (do_assemble_alias): Produce decl RTL.
9347 (assemble_alias): Likewise.
9349 2010-03-10 Jakub Jelinek <jakub@redhat.com>
9352 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
9353 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
9355 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
9356 (based_loc_descr): Only express drap or vdrap regno based expressions
9357 using DW_OP_fbreg when not optimizing.
9358 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
9359 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
9360 REG_CFA_SET_VDRAP note.
9362 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
9364 PR tree-optimization/43236
9365 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
9366 error in calculation of base address in reverse iteration case.
9367 (generate_builtin): Take number of latch executions if the statement
9370 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
9373 * tree-eh.c: Include pointer-set.h.
9374 (lower_eh_dispatch): Filter out duplicate case labels and
9375 remove the unneeded edge when the label is unused. Return
9376 true when some edges are removed.
9377 (execute_lower_eh_dispatch): When any lowering resulted in
9378 removing an edge, also delete unreachable blocks.
9380 2010-03-10 Jakub Jelinek <jakub@redhat.com>
9383 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9384 UNSPEC_MACHOPIC_OFFSET.
9386 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
9389 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
9390 (m68k_delegitimize_address): New function.
9392 2010-03-09 Jakub Jelinek <jakub@redhat.com>
9395 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
9398 * var-tracking.c (adjust_sets): New function.
9399 (count_with_sets, add_with_sets): Use it.
9400 (get_adjusted_src): New inline function.
9401 (add_stores): Use it.
9404 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
9405 call cselib_dummy_expand_value_rtx_cb instead of
9406 cselib_expand_value_rtx_cb.
9409 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
9410 * config/i386/i386.c: Include debug.h and dwarf2out.h.
9411 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
9412 and .cfi_endproc around the pic thunks.
9413 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
9414 all queued unwind info register saves are saved before the call.
9415 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
9416 considered as sp-=4 for unwind info and the pop as sp+=4 which
9417 also clobbers dest, but doesn't actually restore it.
9420 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
9421 RTX_FRAME_RELATED_P.
9423 2010-03-09 Jie Zhang <jie@codesourcery.com>
9425 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
9426 whitespaces in output template.
9428 2010-03-09 Jie Zhang <jie@codesourcery.com>
9430 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
9433 2010-03-08 Jakub Jelinek <jakub@redhat.com>
9435 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
9436 builtins.exp in a separate job.
9438 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9440 * graphite-sese-to-poly.c (add_param_constraints): Use
9441 lower_bound_in_type and upper_bound_in_type.
9443 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9445 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
9446 instead of unsigned_type_node.
9448 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9449 Reza Yazdani <reza.yazdani@amd.com>
9452 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
9453 on pointer type parameters.
9455 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
9459 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
9460 handle conversions from pointer to integers.
9461 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
9462 induction variable, to be able to work with code generated by CLooG.
9463 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
9464 (build_poly_scop): Bail out if we cannot codegen a loop.
9466 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
9468 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
9469 code generation with gloog_error.
9471 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9473 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
9474 Call fold_convert on all the returned values.
9475 (expand_scalar_variables_expr): Pass to
9476 expand_scalar_variables_ssa_name the type of the resulting expression.
9478 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9480 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
9481 ppl_min_for_le_pointset.
9482 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
9483 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
9485 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9487 * graphite-dependences.c (map_into_dep_poly): Removed.
9488 (dependence_polyhedron_1): Use combine_context_id_scat.
9490 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9492 * graphite-poly.h (struct poly_scattering): Add layout documentation.
9493 (struct poly_bb): Same.
9494 (combine_context_id_scat): New.
9496 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9499 * sese.c (name_defined_in_loop_p): Return false for default
9502 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9504 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
9505 and clean up the logic.
9507 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
9509 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
9512 2010-03-08 Jakub Jelinek <jakub@redhat.com>
9514 * var-tracking.c (remove_cselib_value_chains): Define only for
9516 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
9517 delete_slot_part, emit_notes_for_differences_1): Don't call
9518 remove_cselib_value_chains here.
9519 (set_slot_part, emit_notes_for_differences_2): Don't call
9520 add_cselib_value_chains here.
9521 (preserved_values): New vector.
9522 (preserve_value): New function.
9523 (add_uses, add_stores, vt_add_function_parameters): Use it
9524 instead of cselib_preserve_value.
9525 (changed_values_stack): New vector.
9526 (check_changed_vars_0): New function.
9527 (check_changed_vars_1, check_changed_vars_2): Use it.
9528 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
9529 changed_values_stack VALUEs.
9530 (vt_emit_notes): For all preserved_values call
9531 add_cselib_value_chains. If ENABLE_CHECKING call
9532 remove_cselib_value_chains before verifying value_chains is empty.
9533 Initialize and free changed_values_stack.
9534 (vt_initialize): Initialize preserved_values.
9535 (vt_finalize): Free preserved_values.
9537 2010-03-08 Richard Guenther <rguenther@suse.de>
9539 PR tree-optimization/43269
9540 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
9543 2010-03-08 Martin Jambor <mjambor@suse.cz>
9545 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
9546 (ipa_is_param_called): Removed.
9547 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
9548 (ipa_print_node_params): Do not print the called flag.
9549 (ipa_write_node_info): Do not stream the called flag.
9550 (ipa_read_node_info): Likewise.
9552 2010-03-07 Jakub Jelinek <jakub@redhat.com>
9555 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
9556 * cselib.c (struct expand_value_data): Add dummy field.
9557 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
9559 (cselib_dummy_expand_value_rtx_cb): New function.
9560 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
9562 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
9563 * var-tracking.c: Include pointer-set.h.
9564 (variable): Change n_var_parts to char from int. Add
9565 cur_loc_changed and in_changed_variables fields.
9566 (variable_canonicalize): Remove.
9567 (shared_var_p): New inline function.
9568 (unshare_variable): Maintain cur_loc_changed and
9569 in_changed_variables fields. If var was in changed_variables,
9570 replace it there with new_var. Just copy cur_loc instead of
9571 resetting it to something else.
9572 (variable_union): Don't recompute cur_loc. Use shared_var_p.
9573 (dataflow_set_union): Don't call variable_canonicalize.
9574 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
9575 of their DEBUG_EXPR_TREE_DECLs.
9576 (canonicalize_loc_order_check): Verify that cur_loc is NULL
9577 and in_changed_variables and cur_loc_changed is false.
9578 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
9579 and cur_loc_changed. Don't update cur_loc here.
9580 (variable_merge_over_src): Don't call variable_canonicalize.
9581 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
9582 removing loc that is equal to cur_loc, clear cur_loc,
9583 set cur_loc_changed and ensure variable_was_changed is called.
9584 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
9585 compare pointers in cur_loc check, if it is equal to loc,
9586 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
9587 (variable_different_p): Remove compare_current_location argument,
9588 don't compare cur_loc.
9589 (dataflow_set_different_1): Adjust variable_different_p caller.
9590 (variable_was_changed): If dv had some var in changed_variables
9591 already, reset in_changed_variables flag for it and propagate
9592 cur_loc_changed over to the new variable. On empty var
9593 always set cur_loc_changed. Set in_changed_variables on whatever
9594 var is added to changed_variables.
9595 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
9596 Use shared_var_p. When removing loc that is equal to cur_loc,
9597 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
9598 end, don't set it to something else, just call variable_was_changed.
9599 (delete_slot_part): Use shared_var_p. When cur_loc equals to
9600 loc being removed, clear cur_loc and set cur_loc_changed.
9601 Set cur_loc_changed if all locations have been removed.
9602 (struct expand_loc_callback_data): New type.
9603 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
9604 allocated. Always create SUBREGs if simplify_subreg failed.
9605 Prefer to use cur_loc, when that fails and still in
9606 changed_variables (and seen first time) recompute it. Set
9607 cur_loc_changed of variables which had to change cur_loc and
9608 compute elcd->cur_loc_changed if any of the subexpressions used
9609 had to change cur_loc.
9610 (vt_expand_loc): Adjust to pass arguments in
9611 expand_loc_callback_data structure.
9612 (vt_expand_loc_dummy): New function.
9613 (emitted_notes): New variable.
9614 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
9615 that weren't used for any other decl in current
9616 emit_notes_for_changes call call vt_expand_loc_dummy to update
9617 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
9618 first loc_chain location if NULL before. Always use just
9619 cur_loc instead of first loc_chain location. When cur_loc_changed
9620 is false, when not --enable-checking=rtl just don't emit any note.
9621 When rtl checking, compute the note and assert it is the same
9622 as previous note. Clear cur_loc_changed and in_changed_variables
9623 at the end before removing from changed_variables.
9624 (check_changed_vars_3): New function.
9625 (emit_notes_for_changes): Traverse changed_vars to call
9626 check_changed_vars_3 on each changed var.
9627 (emit_notes_for_differences_1): Clear cur_loc_changed and
9628 in_changed_variables. Recompute cur_loc of new_var.
9629 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
9630 (vt_emit_notes): Initialize and destroy emitted_notes.
9632 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
9634 PR rtl-optimization/42220
9635 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
9636 Use verify_reg_tracked to determine if we should use OP_OUT rather
9638 (build_def_use): If we see an in-out operand for a register that we
9639 know nothing about, treat is an output if possible, fail the block if
9642 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9645 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
9648 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9651 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
9652 uses of relevant DEFs that are dead outside the loop too.
9654 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
9656 * var-tracking.c (dataflow_set_merge): Swap src and src2.
9658 2010-01-13 Jakub Jelinek <jakub@redhat.com>
9660 * var-tracking.c (values_to_unmark): New variable.
9661 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
9662 values_to_unmark vector. Moved body to...
9663 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
9664 instead queue it into values_to_unmark vector.
9665 (vt_find_locations): Free values_to_unmark vector.
9667 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
9669 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
9670 (site.exp): Export them when plugins are enabled.
9672 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
9675 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
9677 (chrec_fold_multiply): Same.
9679 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
9682 * c-decl.c (build_compound_literal): Return early if init is
9685 2010-03-04 Martin Jambor <mjambor@suse.cz>
9687 PR tree-optimization/43164
9688 PR tree-optimization/43191
9689 * tree-sra.c (type_consists_of_records_p): Reject records with
9690 zero-size bit-fields at the end.
9692 2010-03-04 Mike Stump <mikestump@comcast.net>
9694 * Makefile.in (TAGS): Remove *.y.
9696 2010-03-04 Richard Guenther <rguenther@suse.de>
9698 PR tree-optimization/40761
9699 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
9701 (my_rev_post_order_compute): New function.
9702 (init_pre): Call it.
9704 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
9707 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
9708 decrease the cost of an IV candidate when the cost is infinite.
9710 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9712 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
9713 Use '3DNow!' for the extension of that name, ensure normal space
9715 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
9717 2010-03-03 Jeff Law <law@redhat.com>
9719 * PR middle-end/32693
9720 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
9721 than gen_rtx_SUBREG.
9722 (extract_bit_field_1): Likewise.
9724 2010-03-03 Janis Johnson <janis187@us.ibm.com>
9726 * doc/sourcebuild.texi (Test directives): Document that arguments
9727 include-opts and exclude-opts are now optional for dg-skip-if,
9728 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
9730 2010-03-03 Jason Merrill <jason@redhat.com>
9733 * cgraph.h (varpool_node): Add extra_name field.
9734 * varpool.c (varpool_extra_name_alias): New.
9735 (varpool_assemble_decl): Emit extra name aliases.
9736 (varpool_mark_needed_node): Look past an extra name alias.
9737 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
9738 * lto-streamer-in.c (lto_input_tree): Read it.
9739 * lto-streamer-out.c (output_unreferenced_globals): Write it.
9741 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
9743 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
9744 (sparc*-*-solaris2*): ...this.
9746 2010-03-03 Jakub Jelinek <jakub@redhat.com>
9749 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
9750 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
9751 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
9752 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
9755 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
9756 fallthrough to default handling, just with want_address 0 instead of 2.
9757 For single element lists, add_AT_loc directly, otherwise create an
9758 artificial variable DIE and stick location list to it.
9761 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
9762 (VAL_EXPR_HAS_REVERSE): Define.
9763 (reverse_op): New function.
9764 (add_stores): For reversible operations add an extra MO_VAL_USE.
9766 2010-03-02 Jason Merrill <jason@redhat.com>
9768 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
9770 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
9772 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
9773 (sparc64-*-linux*): Likewise.
9774 (sparc64-*-solaris2*): Include assembler files before linker ones.
9775 (sparc-*-solaris2*): Simplify and reorder to match previous case.
9776 * config/sparc/gas.h: Delete.
9777 * config/sparc/sol2-64.h: Add copyright notice.
9778 * config/sparc/sol2-gas-bi.h: Likewise.
9779 * config/sparc/sol2-gld.h: Likewise.
9780 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
9781 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
9782 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
9783 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
9784 (sparc_elf_asm_named_section): Rename into...
9785 (sparc_solaris_elf_asm_named_section): ...this. Always define.
9787 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
9789 * config/alpha/alpha.c (override_options): Fix -mtune error message.
9791 2010-03-02 Jeff Law <law@redhat.com>
9794 * reload1.c (rtx_p, substitute_stack): Declare.
9795 (substitute): Record addresses of changed rtxs.
9796 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
9797 Restore the original rtx when complete.
9798 (reload): Free subsitute_stack when complete.
9800 2010-03-02 Janis Johnson <janis187@us.ibm.com>
9802 * doc/gccint.texi (menu): Add Testsuites as a chapter.
9803 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
9805 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
9806 LTO Testing, gcov Testing, profopt Testing, compat Testing,
9807 Torture Tests): Change from subsection to section.
9809 2010-03-02 Jakub Jelinek <jakub@redhat.com>
9810 Steven Bosscher <steven@gcc.gnu.org>
9812 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
9815 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
9818 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
9819 the assignment from the new induction variable to the assignment
9820 of the value from the original loop PHI function.
9822 2010-03-01 Janis Johnson <janis187@us.ibm.com>
9823 Daniel Jacobowitz <dan@codesourcery.com>
9825 * doc/sourcebuild.texi (Test directives): Clarify options to
9828 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9830 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
9831 Disable cfi directives unless GCC and gas agree on using read-only
9832 .eh_frame sections for 64-bit.
9833 * configure: Regenerate.
9835 2010-03-01 Richard Guenther <rguenther@suse.de>
9837 PR tree-optimization/43220
9838 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
9839 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
9841 2010-03-01 Richard Guenther <rguenther@suse.de>
9842 Martin Jambor <mjambor@suse.cz>
9845 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
9846 gimplified parameters.
9848 2010-03-01 Christian Bruel <christian.bruel@st.com>
9850 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
9852 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
9854 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
9856 2010-03-01 Richard Guenther <rguenther@suse.de>
9859 * expr.c (expand_assignment): Use the alias-oracle to tell
9860 if the rhs aliases the result decl.
9862 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9865 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
9866 to sol_gt_pch_get_address.
9867 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
9868 64-bit, SPARC and x86.
9869 (sol_gt_pch_get_address): New function.
9871 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
9873 * toplev.h (inform_n, error_n): Declare.
9874 * diagnostic.c (inform_n, error_n): New function.
9876 2010-03-01 Jakub Jelinek <jakub@redhat.com>
9878 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
9879 has no rtl yet when processing local_decls, queue it and recheck
9880 if deferred stack allocation hasn't assigned it rtl.
9882 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
9884 * config/sh/sh.c (unspec_bbr_uid): New.
9885 (gen_block_redirect): Use it instead of INSN_UID.
9886 (gen_far_branch): Likewise.
9888 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
9890 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
9891 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
9893 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9895 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
9896 (Warning Options): -Wno-conversion-null is valid for
9897 Objective-C++ as well.
9898 * doc/tm.texi (Named Address Spaces): Likewise.
9899 * doc/plugins.texi (Plugins): Replace TABs with spaces.
9900 * doc/tree-ssa.texi (Tree SSA): Likewise.
9902 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9905 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
9906 by default. Don't set the default arch for
9907 i[34567]86-*-darwin*|x86_64-*-darwin*.
9909 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9912 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
9913 default. Set the default 32bit/64bit archs with $with_arch
9914 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
9916 2010-02-27 Richard Guenther <rguenther@suse.de>
9918 PR tree-optimization/43186
9919 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
9920 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
9921 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
9922 unroller iterations.
9924 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
9926 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
9927 required and i[34567]86-*-* targets don't support 64bit ISA.
9929 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
9932 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
9935 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
9937 * config.gcc: Set the default arch at least to Prescott for
9938 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
9939 if SSE math is enabled.
9941 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9943 * diagnostic.c (diagnostic_initialize): Update.
9944 (diagnostic_report_diagnostic): Test inhibit_notes_p for
9946 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
9947 (diagnostic_inhibit_notes): New.
9948 * toplev.c (process_options): inhibit notes with -fcompare-debug.
9950 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9953 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
9954 * doc/standards.texi: Likewise.
9955 * doc/extend.texi: Likewise.
9956 * doc/trouble.texi: Likewise.
9957 * doc/cppopts.texi: Likewise.
9958 * doc/install.texi: Likewise.
9959 * c.opt (std=c90,std=gnu90): New options.
9960 * c-opts.c (c_common_handle_option): Handle them.
9962 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
9965 * c-decl.c (undeclared_variable): Use an informative note.
9967 2010-02-26 Richard Guenther <rguenther@suse.de>
9969 PR tree-optimization/43186
9970 * gimple.h (gimple_fold): Remove.
9971 * gimple.c (gimple_fold): Remove. Inline into single user ...
9972 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
9973 Try harder for conditions.
9975 2010-02-26 Jakub Jelinek <jakub@redhat.com>
9978 * function.c (used_types_insert): Don't skip through named pointer
9979 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
9980 and it is different from the main variant's type.
9982 2010-02-26 Nick Clifton <nickc@redhat.com>
9984 * config/rx/rx.md (sminsi3): Remove bogus alternative.
9986 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
9988 * config.gcc: Support --with-fpmath=sse for x86.
9990 * config/i386/ssemath.h: New.
9992 * doc/install.texi (--with-fpmath=sse): Documented.
9994 2010-02-26 Richard Guenther <rguenther@suse.de>
9996 PR tree-optimization/43188
9997 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
9998 vector types of over-aligned element type.
10000 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
10003 * config/i386/i386.c (expand_vec_perm_blend): Use correct
10004 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
10006 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10008 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
10010 2010-02-26 Jakub Jelinek <jakub@redhat.com>
10012 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
10013 * var-tracking.c: Include diagnostic.h.
10014 (debug_dv): New function.
10015 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
10018 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
10019 (add_value_chain, add_value_chains, remove_value_chain,
10020 remove_value_chains): Handle DEBUG_EXPRs.
10021 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
10024 * regcprop.c (struct queued_debug_insn_change): New type.
10025 (struct value_data_entry): Add debug_insn_changes field.
10026 (struct value_data): Add n_debug_insn_changes field.
10027 (debug_insn_changes_pool): New variable.
10028 (free_debug_insn_changes, apply_debug_insn_changes,
10029 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
10030 (kill_value_one_regno): Call free_debug_insn_changes if needed.
10031 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
10033 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
10035 (copyprop_hardreg_forward_1): Don't call apply_change_group for
10036 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
10037 changes, call cprop_find_used_regs via note_stores.
10038 (copyprop_hardreg_forward): When copying vd from predecessor
10039 which has any queued DEBUG_INSN changes, make sure the pointers are
10040 cleared. At the end call df_analyze and then if there are any
10041 DEBUG_INSN changes queued at the end of some basic block for still
10042 live registers, apply them.
10043 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
10045 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
10047 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
10050 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
10052 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
10053 targets. Set the default with_cpu/with_arch from arch/cpu.
10054 Allow x86-64 and native for with_cpu/with_arch.
10056 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
10058 * ebitmap.c: Change calls to verify_popcount with calls to
10059 sbitmap_verify_popcount.
10060 (ebitmap_clear_bit): Fixed map->cacheindex test and
10061 map>cache update when bit clearing results in an empty
10064 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
10067 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
10068 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
10069 and support both V2DF and V2DI modes.
10070 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
10071 support both V2DF and V2DI modes.
10072 (general): Delete trailing whitespace from a few patterns.
10074 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10075 V2DF/V2DI interleave high/low builtins.
10077 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
10080 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
10081 interleave high/low functions.
10083 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
10085 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
10086 #pragma extern_prefix.
10088 2010-02-25 Jakub Jelinek <jakub@redhat.com>
10091 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
10092 BLKmode, assert op0 is a MEM and just adjust its mode.
10095 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
10096 if bitpos isn't multiple of mode's bitsize.
10098 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
10100 * c.opt (-ftemplate-depth=): New.
10101 (-ftemplate-depth-): Deprecate.
10102 * optc-gen.awk: Handle -ftemplate-depth=.
10103 * opth-gen.awk: Likewise.
10104 * c-opts.c (c_common_handle_option): Likewise.
10105 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
10107 2010-02-24 Jason Merrill <jason@redhat.com>
10109 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
10111 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10113 * cfg.c (alloc_aux_for_block): Remove inline.
10114 (alloc_aux_for_edge): Likewise.
10116 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10118 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
10120 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10122 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
10123 * config/i386/sol2-gas.h: New file.
10124 * config.gcc (i[34567]86-*-solaris2*): Use it.
10126 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
10129 * c-typeck.c (ep_convert_and_check): New.
10130 (build_conditional_expr): Use it.
10131 (build_binary_op): Likewise.
10133 2010-02-24 Jakub Jelinek <jakub@redhat.com>
10135 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
10138 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
10139 bounds even for -O+.
10140 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
10141 expr needs to have DECL_NAME set.
10143 2010-02-24 Nick Clifton <nickc@redhat.com>
10145 * config/mep/mep.c: Include gimple.h.
10146 (mep_function_uses_sp): Delete unused function.
10147 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
10148 parameters. Use unsigned integers to count args. Return a
10149 NULL_RTX instead of an error_mark_node. Toidy up formatting.
10151 2010-02-23 Jakub Jelinek <jakub@redhat.com>
10154 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
10155 greater or equal to nelt instead of 2 * nelt.
10156 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
10159 2010-02-23 Jason Merrill <jason@redhat.com>
10162 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
10163 in cfun->local_decls even if they have register types.
10166 * stor-layout.c (place_field): Don't warn about unnecessary
10167 DECL_PACKED if the type is packed.
10169 2010-02-23 Jakub Jelinek <jakub@redhat.com>
10172 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
10173 GOTOFF relocs, even when the base reg isn't pic pointer.
10175 2010-02-23 Michael Matz <matz@suse.de>
10178 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
10179 (expand_gimple_basic_block): Generate and use debug temps if there
10180 are debug uses left after the last real use of TERed ssa names.
10181 Unlink debug immediate uses when they are expanded.
10183 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
10186 * config/i386/i386.c (override_options): Reorganise to provide
10187 better error messages.
10189 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
10191 PR middle-end/43083
10192 * graphite-scop-detection.c (create_single_exit_edge): Move
10193 the call to find_single_exit_edge to....
10194 (create_sese_edges): ...here. Don't handle multiple edges
10195 exiting the function.
10196 (build_graphite_scops): Don't handle multiple edges
10197 exiting the function.
10199 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
10201 PR middle-end/43097
10202 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
10203 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
10205 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
10207 PR middle-end/43026
10208 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
10210 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
10213 * c-typeck.c (convert_arguments): Print declaration location.
10214 * c-common.c (validate_nargs): Rename as
10215 builtin_function_validate_nargs.
10216 (check_builtin_function_arguments): Update.
10218 2010-02-22 Richard Guenther <rguenther@suse.de>
10221 * tree-inline.c (declare_return_variable): Use the type of
10222 the call stmt lhs if available.
10224 2010-02-22 Duncan Sands <baldrick@free.fr>
10226 * passes.c (register_pass): Always consider all pass lists when
10227 ref_pass_instance_number is zero.
10229 2010-02-22 Richard Guenther <rguenther@suse.de>
10231 PR tree-optimization/42749
10232 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
10233 parameter. Do arithmetic in the original type.
10234 (update_accumulator_with_ops): Likewise.
10235 (adjust_accumulator_values): Adjust.
10237 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10239 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
10240 (QI to BLKmode splitter): New splitter.
10242 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
10244 * config/i386/i386.c (initial_ix86_tune_features): Turn on
10245 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
10247 2010-02-22 Richard Guenther <rguenther@suse.de>
10249 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
10251 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
10253 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
10254 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
10255 ($(T)crti.o, $(T)crtn.o): Remove rules.
10257 2010-02-21 Tobias Burnus <burnus@net-b.de>
10260 * doc/invoke.texi (-fassociative-math): Document that this
10261 option is automatically enabled for Fortran.
10263 2010-02-20 David S. Miller <davem@davemloft.net>
10265 * configure.ac: Test if linker and assembler properly support
10266 GOTDATA_OP relocations.
10267 * configure: Rebuild.
10268 * config.in: Likewise.
10269 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
10270 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
10271 (movsi_high_pic): Likewise.
10272 (movdi_lo_sum_pic): Likewise.
10273 (movdi_high_pic): Likewise.
10274 (movsi_pic_gotdata_op): New pattern.
10275 (movdi_pic_gotdata_op): Likewise.
10276 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
10277 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
10279 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
10282 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
10283 attribute to ssemul.
10284 (xop_mulv2div2di3_high): Ditto.
10286 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10289 * c.opt (Wconversion-null): New option.
10290 * doc/invoke.texi (Wconversion-null): Document.
10292 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
10294 * common.opt (Wlarger-than-): Add Undocumented.
10296 2010-02-19 Mike Stump <mikestump@comcast.net>
10298 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
10300 2010-02-19 Jason Merrill <jason@redhat.com>
10303 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
10304 * configure: Likewise.
10306 2010-02-20 Alan Modra <amodra@gmail.com>
10308 PR middle-end/42344
10309 * cgraph.h (cgraph_make_decl_local): Declare.
10310 * cgraph.c (cgraph_make_decl_local): New function.
10311 (cgraph_make_node_local): Use it.
10312 * cgraphunit.c (cgraph_function_versioning): Likewise.
10313 * ipa.c (function_and_variable_visibility): Likewise.
10315 2010-02-19 Jakub Jelinek <jakub@redhat.com>
10318 * except.c (sjlj_emit_function_enter): Don't call
10319 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
10321 * rtl.h (add_reg_br_prob_note): Remove prototype.
10323 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
10326 * c-common.c (conversion_warning): Remove widening conversions
10327 before checking the conversion of integers to reals.
10329 2010-02-19 Mike Stump <mikestump@comcast.net>
10331 PR middle-end/43125
10332 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
10335 * cgraphunit.c (process_function_and_variable_attributes): Check
10336 DECL_PRESERVE_P instead of looking up attribute "used".
10337 * ipa-pure-const.c (check_decl): Likewise.
10338 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
10339 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
10340 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
10341 instead of attribute "used".
10342 * config/sol2-c.c (solaris_pragma_init): Likewise.
10343 (solaris_pragma_fini): Likewise.
10345 2010-02-19 Jakub Jelinek <jakub@redhat.com>
10347 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
10348 Use XCNEW instead of xcalloc.
10349 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
10350 XNEW instead of xmalloc.
10351 (get_fields): Use XNEWVEC instead of xmalloc.
10354 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
10355 populate vars array.
10356 (create_new_general_access): For debug stmts just reset value.
10357 (get_stmt_accesses): For accesses within debug stmts just record them
10358 using add_access_to_acc_sites instead of preventing the peeling or
10359 counting them as accesses.
10361 PR middle-end/42233
10362 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
10364 2010-02-19 Richard Guenther <rguenther@suse.de>
10366 PR tree-optimization/42916
10367 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
10370 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
10372 * configure.ac: Replace all uses of changequote in macro arguments
10373 with proper quoting.
10375 2010-02-19 Jakub Jelinek <jakub@redhat.com>
10377 PR middle-end/42233
10378 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
10380 2010-02-19 Richard Guenther <rguenther@suse.de>
10382 PR tree-optimization/42944
10383 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
10384 test for aliasing with errno.
10386 2010-02-19 Jakub Jelinek <jakub@redhat.com>
10388 PR middle-end/42233
10389 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
10390 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
10391 * dojump.c: Include output.h.
10392 (inv): New inline function.
10393 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
10394 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
10395 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
10396 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
10397 argument, pass it down to other calls.
10398 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
10399 add REG_BR_PROB note to the conditional jump.
10400 * cfgexpand.c (add_reg_br_prob_note): Removed.
10401 (expand_gimple_cond): Don't call it, add the probability
10402 as last argument to jumpif_1/jumpifnot_1.
10403 * Makefile.in (dojump.o): Depend on output.h.
10404 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
10406 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
10407 * stmt.c (do_jump_if_equal): Likewise.
10408 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
10409 * loop-unswitch.c (compare_and_jump_seq): Likewise.
10410 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
10412 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
10413 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
10414 jumpifnot_1 callers.
10415 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
10417 (store_expr): Adjust jumpifnot caller.
10418 (store_constructor): Adjust jumpif caller.
10420 PR middle-end/42233
10421 * gimplify.c (gimple_boolify): For __builtin_expect call
10422 gimple_boolify also on its first argument.
10424 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
10426 * configure.ac (gnu-unique-object): Wrap regexps using [] in
10428 (__stack_chk_fail): Ditto. Remove quadrigraphs.
10429 * configure: Regenerated.
10431 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10433 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
10434 lang_hooks.types_compatible_p instead of comptypes.
10436 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
10438 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
10439 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
10440 if __prefer_thumb__ is defined.
10442 2010-02-18 Martin Jambor <mjambor@suse.cz>
10444 PR tree-optimization/43066
10445 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
10446 array with zero-sized element type.
10448 2010-02-18 Jakub Jelinek <jakub@redhat.com>
10450 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
10451 rtx, allocate struct var_loc_node here and return it to the
10452 caller, and only if it is actually needed.
10453 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
10454 move it earlier and return immediately if it returns NULL.
10456 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
10458 * config/sparc/gas.h: New file. Restore
10459 TARGET_ASM_NAMED_SECTION to its ELF default.
10460 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
10461 check !HAVE_GNU_AS.
10462 * config/sparc/sparc.c (sparc_elf_asm_named_section):
10463 Likewise. Add ATTRIBUTE_UNUSED to prototype.
10464 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
10465 after sparc/sysv4.h.
10467 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
10469 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
10471 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
10473 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
10474 patterns from predicated pattern.
10476 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
10479 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
10480 for insn mnemonic suffix.
10482 2010-02-17 Richard Guenther <rguenther@suse.de>
10484 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
10487 2010-02-17 Jakub Jelinek <jakub@redhat.com>
10490 * caller-save.c (save_call_clobbered_regs): If BB ends with
10491 a DEBUG_INSN, move any notes in between last real insn and the last
10492 DEBUG_INSN after the last DEBUG_INSN.
10494 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
10496 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
10497 Fix return type. Fix argument type. Explain meaning of return value.
10499 2010-02-16 Richard Guenther <rguenther@suse.de>
10501 PR tree-optimization/41043
10502 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
10503 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
10505 (vrp_visit_phi_node): ... but only for loop PHI nodes.
10507 2010-02-16 Ira Rosen <irar@il.ibm.com>
10509 PR tree-optimization/43074
10510 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
10511 * tree-vect-loop.c (vect_analyze_loop_operations): Add
10512 vectorizable cycles in hybrid SLP check.
10513 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
10515 2010-02-16 Richard Guenther <rguenther@suse.de>
10517 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
10518 (true_dependence): If memrefs_conflict_p computes must-alias
10519 trust it. Move TBAA check after offset-based disambiguation.
10520 (canon_true_dependence): Likewise.
10522 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
10524 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
10525 * doc/invoke.texi: Document it.
10526 * var-tracking.c: Include toplev.h and params.h.
10527 (vt_find_locations): Return bool indicating success. Compute
10528 hash sizes unconditionally. Check new parameter, report.
10529 (variable_tracking_main_1): Check vt_find_locations results and
10530 retry. Renamed from...
10531 (variable_tracking_main): ... this. New wrapper to preserve
10532 flag_var_tracking_assignments.
10533 * Makefile.in (var-tracking.o): Adjust dependencies.
10535 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
10536 Jakub Jelinek <jakub@redhat.com>
10539 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
10540 if weak_import attribute is present.
10541 * config/darwin.c (machopic_select_section): Likewise.
10543 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
10545 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
10546 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
10547 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
10548 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
10550 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
10553 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
10554 Fix argument types.
10556 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
10557 Rewrite text to refer to the names.
10559 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
10561 * config/i386/i386-builtin-types.def
10562 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
10563 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
10564 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
10565 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
10566 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
10567 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
10568 IX86_BUILTIN_VPERMIL2PS256.
10569 (MULTI_ARG_4_DF2_DI_I): Defined.
10570 (MULTI_ARG_4_DF2_DI_I1): Defined.
10571 (MULTI_ARG_4_SF2_SI_I): Defined.
10572 (MULTI_ARG_4_SF2_SI_I1): Defined.
10573 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
10574 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
10575 __builtin_ia32_vpermil2ps256.
10576 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
10577 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
10578 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
10579 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
10580 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
10581 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
10582 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
10583 CODE_FOR_xop_vpermil2v8sf3.
10584 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
10585 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
10586 * config/i386/xopintrin.h (_mm_permute2_pd): New.
10587 (_mm256_permute2_pd): New.
10588 (_mm_permute2_ps): New.
10589 (_mm256_permute2_ps): New.
10591 2010-02-15 Nick Clifton <nickc@redhat.com>
10593 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
10594 boolean parameters. Use emit_jump_insn when emitting a pop
10595 instruction containing a return insn.
10596 (push): Use 'true' rather than '1' as second parameter to F.
10597 (h8300_expand_prologue): Likewise.
10598 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
10599 (h8300_expand_epilogue): Likewise.
10601 2010-02-15 Richard Guenther <rguenther@suse.de>
10603 PR middle-end/43068
10604 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
10607 2010-02-15 Nick Clifton <nickc@redhat.com>
10609 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
10612 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
10614 * intl.c (fake_ngettext): New function.
10615 * intl.h (fake_ngettext): Declare.
10616 (ngettext): Define macro.
10617 * collect2.c (notice_translated): New function.
10618 (main): Use notice_translated and ngettext.
10619 * collect2.h (notice_translated): Declare.
10621 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
10623 * reorg.c (delete_computation): Comment fixes.
10624 * caller-save.c (setup_save_areas): Idem.
10625 * sel-sched-dump.c (dump_lv_set): Idem.
10628 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10630 * config/s390/s390.c (s390_sched_init): New function.
10631 (TARGET_SCHED_INIT): Target hook defined.
10633 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
10634 Jack Howarth <howarth@bromo.med.uc.edu>
10635 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10638 Partial revert of unintended change in fix for PR41605.
10639 * config/darwin.h: Fix typo.
10640 * config/darwin9.h: Same.
10642 2010-02-11 Jakub Jelinek <jakub@redhat.com>
10644 * c-pch.c (pch_init): Clear v.
10646 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10648 PR middle-end/42930
10649 * graphite-scop-detection.c (graphite_can_represent_scev): Call
10650 graphite_can_represent_init for MULT_EXPR.
10652 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10654 PR middle-end/42914
10655 PR middle-end/42530
10656 * graphite-sese-to-poly.c (remove_phi): New.
10657 (translate_scalar_reduction_to_array): Call remove_phi.
10659 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10661 PR middle-end/42771
10662 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
10663 * graphite-clast-to-gimple.h (gloog): Update declaration.
10664 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
10665 * graphite-poly.h (struct poly_bb): Add missing comments.
10666 (struct scop): Add poly_scop_p field.
10667 (POLY_SCOP_P): New.
10668 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
10669 * graphite.c (graphite_transform_loops): Build the polyhedral
10670 representation for each scop before code generation.
10671 * sese.c (rename_variables_in_operand): Removed.
10672 (rename_variables_in_expr): Return the renamed expression.
10673 (rename_sese_parameters): New.
10674 * sese.h (rename_sese_parameters): Declared.
10676 2010-02-11 Richard Guenther <rguenther@suse.de>
10678 PR tree-optimization/42998
10679 * tree-ssa-pre.c (create_expression_by_pieces): Treat
10680 POINTER_PLUS_EXPR properly.
10682 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
10683 Changpeng Fang <changpeng.fang@amd.com>
10685 PR middle-end/40886
10686 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
10687 the cost of an IV candidate when the IV is used in a test against zero.
10689 * gcc.dg/tree-ssa/ivopts-3.c: New.
10691 2010-02-11 Richard Guenther <rguenther@suse.de>
10694 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
10695 pointer-vs-decl case by swapping refs. Handle some cases
10696 of pointer-vs-decl disambiguations more conservatively.
10697 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
10698 to false after expanding.
10700 2010-02-11 Richard Guenther <rguenther@suse.de>
10703 * gcc.c (process_command): Handle LTO file@offset case more
10706 2010-02-11 Jakub Jelinek <jakub@redhat.com>
10708 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
10709 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
10711 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
10713 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
10714 if MEM's mode size isn't DWARF2_ADDR_SIZE.
10715 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
10716 Optimize eq/ne comparisons when both arguments are known to be
10718 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
10719 Don't mask operands unnecessarily if they are known to be already
10722 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
10724 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
10727 2010-02-10 Richard Guenther <rguenther@suse.de>
10729 PR tree-optimization/43017
10730 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
10731 for wrapping signed arithmetic.
10733 2010-02-10 Jakub Jelinek <jakub@redhat.com>
10736 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
10737 if no debug info should be emitted for it.
10739 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
10741 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
10742 note when flag_exceptions is set.
10744 2010-02-10 Duncan Sands <baldrick@free.fr>
10746 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
10748 2010-02-10 Richard Guenther <rguenther@suse.de>
10751 * tree.c (get_unwidened): Handle constants.
10752 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
10754 2010-02-10 Martin Jambor <mjambor@suse.cz>
10757 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
10758 check for variable argument counts independently.
10760 2010-02-10 Christian Bruel <christian.bruel@st.com>
10763 * config/sh/sh.c (find_barrier): Increase length for non delayed
10764 conditional branches.
10766 2010-02-10 Christian Bruel <christian.bruel@st.com>
10768 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
10770 2010-02-10 Jakub Jelinek <jakub@redhat.com>
10772 * builtins.c (set_builtin_user_assembler_name): Also handle
10773 ffs if int is smaller than word.
10775 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
10777 PR middle-end/42973
10778 * ira-conflicts.c (get_dup): Remove.
10779 (process_reg_shuffles): Add new parameter. Use it as an
10780 additional guard for copy generation.
10781 (add_insn_allocno_copies): Rewrite.
10783 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
10785 * common.opt (fsched2-use-traces): Preserved for backward
10787 * doc/invoke.texi: Remove the documentation about option
10788 -fsched2-use-traces.
10789 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
10790 flag_sched2_use_traces.
10791 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
10792 the backward compatibility flag section.
10794 2010-02-09 Richard Guenther <rguenther@suse.de>
10796 PR tree-optimization/43008
10797 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
10798 make HEAP variables initialized from global memory if they
10799 are not known builtin functions.
10800 (find_func_aliases): Adjust.
10802 2010-02-09 Richard Guenther <rguenther@suse.de>
10804 PR tree-optimization/43000
10805 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
10806 arithmetic manually.
10808 2010-02-08 Jakub Jelinek <jakub@redhat.com>
10810 PR tree-optimization/42931
10811 * tree-loop-linear.c (try_interchange_loops): Don't call
10812 double_int_mul if estimated_loop_iterations failed.
10814 2010-02-08 Martin Jambor <mjambor@suse.cz>
10816 PR middle-end/42898
10817 * tree-sra.c (build_accesses_from_assign): Do not mark in
10818 should_scalarize_away_bitmap if stmt has volatile ops.
10819 (sra_modify_assign): Do not process assigns piecemeal if if stmt
10822 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
10824 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
10826 2010-02-07 Adam Nemet <adambnmet@gmail.com>
10828 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
10829 before the pattern.
10831 2010-02-07 Andrew Pinski <pinskia@gmail.com>
10833 PR middle-end/42946
10834 * df-core.c (df_finish_pass): Change type of saved_flags to int.
10836 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
10838 PR middle-end/42988
10839 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
10840 to unknown_dependence.
10841 (graphite_legal_transform_dr): Handle the unknown_dependence.
10842 (graphite_carried_dependence_level_k): Same.
10844 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
10846 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
10848 2010-02-07 Richard Guenther <rguenther@suse.de>
10850 PR middle-end/42991
10851 * expr.c (get_inner_reference): Always initialize *pbitsize.
10853 2010-02-07 Richard Guenther <rguenther@suse.de>
10855 PR middle-end/42956
10856 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
10857 new ARRAY_REFs on variable size element or minimal index arrays.
10859 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
10860 gimple_fold_indirect_ref.
10862 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
10865 * arm.c (arm_override_options): Just return if the user has specified
10866 an invalid fpu name.
10868 2010-02-03 Jason Merrill <jason@redhat.com>
10871 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
10872 i386_pe_maybe_record_exported_symbol.
10874 2010-02-05 Steve Ellcey <sje@cup.hp.com>
10877 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10878 (pa_delegitimize_address): New function.
10880 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
10882 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
10883 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
10885 2010-02-05 Richard Guenther <rguenther@suse.de>
10888 * lto-streamer-in.c (get_resolution): Deal with references
10889 to undefined functions.
10891 2010-02-05 Richard Guenther <rguenther@suse.de>
10893 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
10894 (fold_const_aggregate_ref): Likewise.
10895 (ccp_fold_stmt): Substitute loads.
10896 (maybe_fold_reference): Verify types before substituting.
10898 (fold_gimple_assign): Unshare properly.
10899 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
10901 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
10903 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
10904 for rs6000_gen_cell_microcode.
10906 2010-02-04 Richard Guenther <rguenther@suse.de>
10908 PR rtl-optimization/42952
10909 * dse.c (const_or_frame_p): Remove MEM handling.
10911 2010-02-04 Nick Clifton <nickc@redhat.com>
10913 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
10914 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
10915 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
10916 (mn10300_asm_output_mi_thunk): New function.
10917 (mn10300_can_output_mu_thunk): New function.
10918 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
10919 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
10920 (FUNCTION_ARG): Delete incorrect comment.
10922 2010-02-03 Jason Merrill <jason@redhat.com>
10925 * fold-const.c (operand_equal_p): Handle erroneous types.
10927 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
10929 * config/h8300/h8300.md (can_delay): Fix attibute condition.
10931 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
10933 PR rtl-optimization/42941
10934 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
10937 2010-02-03 Jason Merrill <jason@redhat.com>
10940 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
10942 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
10945 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
10946 (cselib_reset_table): Renamed from...
10947 (cselib_reset_table_with_next_value): ... this.
10948 (cselib_get_next_uid): Renamed from...
10949 (cselib_get_next_unknown_value): ... this.
10950 * cselib.c (next_uid): Renamed from...
10951 (next_unknown_value): ... this.
10952 (cselib_clear_table): Adjust.
10953 (cselib_reset_table): Adjust. Renamed from...
10954 (cselib_reset_table_with_next_value): ... this.
10955 (cselib_get_next_uid): Adjust. Renamed from...
10956 (cselib_get_next_unknown_value): ... this.
10957 (get_value_hash): Use hash.
10958 (cselib_hash_rtx): Likewise.
10959 (new_cselib_val): Adjust. Set and dump uid.
10960 (cselib_lookup_mem): Pass next_uid as hash.
10961 (cselib_subst_to_values): Likewise.
10962 (cselib_log_lookup): Dump uid.
10963 (cselib_lookup): Pass next_uid as hash. Adjust.
10964 (cselib_process_insn): Adjust.
10965 (cselib_init): Initialize next_uid.
10966 (cselib_finish): Adjust.
10967 (dump_cselib_table): Likewise.
10968 * dse.c (canon_address): Dump value uid.
10969 * print-rtl.c (print_rtx): Print value uid.
10970 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
10972 (dv_uid): New function, sort of renamed from...
10973 (dv_htab_hash): ... this, reimplemented in terms of it and...
10974 (dv_uid2hash): ... this. New.
10975 (variable_htab_eq): Drop excess assertions.
10976 (tie_break_pointers): Removed.
10977 (canon_value_cmp): Compare uids.
10978 (variable_post_merge_New_vals): Print uids.
10979 (vt_add_function_parameters): Adjust.
10980 (vt_initialize): Reset table. Adjust.
10982 2010-02-03 Richard Guenther <rguenther@suse.de>
10984 PR tree-optimization/42944
10985 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
10986 (call_may_clobber_ref_p_1): Likewise. Properly handle
10987 malloc and calloc clobbering errno.
10989 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
10991 * doc/invoke.texi: Fix name of sched1 dump.
10993 * opts.c (decode_options): Set flag_tree_switch_conversion
10994 only conditionally on optimize >= 2.
10996 * gcse.c: Assorted comment fixes in pass description.
10998 2010-02-03 Anthony Green <green@moxielogic.com>
11000 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
11001 nop padding in order to maintain alignment of storage location of
11002 target function address.
11003 (moxie_trampoline_init): Store target function address at newly
11005 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
11007 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
11009 2010-02-03 Richard Guenther <rguenther@suse.de>
11011 PR middle-end/42927
11012 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
11014 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11016 * config.gcc: Reenable check for obsolete targets.
11017 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
11018 mips-sgi-irix6.[0-4]*.
11020 2010-02-02 Nick Clifton <nickc@redhat.com>
11022 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
11023 constant size of 4 as being the same as 0.
11024 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
11025 can take values in the range 0..4.
11027 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
11030 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
11031 as _darwin10_Unwind_FindEnclosingFunction().
11032 * libgcc-libsystem.ver: New.
11034 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
11037 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
11038 implicitly set registers.
11040 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
11042 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
11043 (arm_override_options): Allow automatic selection of the thread
11044 pointer register if thumb2.
11045 (legitimize_pic_address): Improve code sequences for Thumb2.
11046 (arm_call_tls_get_addr): Likewise.
11047 (legitimize_tls_address): Likewise.
11048 * arm.md (pic_load_addr_arm): Delete. Replace with ...
11049 (pic_load_addr_32bit): ... this. New named pattern.
11050 * thumb2.md (pic_load_addr_thumb2): Delete.
11051 (pic_load_dot_plus_four): Delete.
11052 (tls_load_dot_plus_four): New named pattern.
11054 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11057 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
11058 Document fix for TLS bug.
11060 2010-01-31 Richard Guenther <rguenther@suse.de>
11062 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
11063 conservatively correct.
11065 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11069 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11071 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
11073 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11075 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
11077 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
11079 * config.gcc: Adjust order of makefile fragments for mingw targets.
11081 2010-01-31 Richard Guenther <rguenther@suse.de>
11083 PR middle-end/42898
11084 * gimplify.c (gimplify_init_constructor): For volatile LHS
11085 initialize a temporary.
11087 2010-01-31 Matthias Klose <doko@ubuntu.com>
11089 * configure.ac: Fix __stack_chk_fail check for cross builds configured
11091 * configure: Regenerate.
11093 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
11095 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
11096 the same alias set and their sizes different constantness.
11097 (aliasing_component_refs_p): Revert 2009-10-24 change.
11099 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11101 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
11104 2010-01-29 Richard Guenther <rguenther@suse.de>
11106 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
11107 Assert we successfully updated the call.
11109 2010-01-29 Jakub Jelinek <jakub@redhat.com>
11111 PR rtl-optimization/42889
11112 * df.h (df_set_bb_dirty_nonlr): New prototype.
11113 * df-core.c (df_set_bb_dirty_nonlr): New function.
11114 * df-scan.c (df_insn_rescan): Call it instead of
11115 df_set_bb_dirty for DEBUG_INSNs.
11117 2010-01-29 Richard Guenther <rguenther@suse.de>
11119 PR middle-end/37448
11120 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
11121 quadratic behavior in most cases.
11123 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
11126 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
11127 in the call to gen_x86_movsicc_0_m1.
11129 2010-01-28 Richard Guenther <rguenther@suse.de>
11131 PR tree-optimization/42871
11132 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
11134 2010-01-28 Richard Guenther <rguenther@suse.de>
11136 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
11137 into call arguments.
11139 2010-01-28 Richard Guenther <rguenther@suse.de>
11141 PR middle-end/42883
11142 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
11143 the forwarder if the destination is an EH landing pad.
11145 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
11147 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
11148 block list passed to gimple_duplicate_sese_tail.
11149 (parallelize_loops): Avoid parallelization when the function
11150 has_nonlocal_label.
11151 Avoid parallelization when the preheader is IRREDUCIBLE.
11152 Try to optimize when estimated_loop_iterations_int is unresolved.
11153 Add the loop's location to the dump file.
11154 * tree-cfg.c (add_phi_args_after_redirect): Remove.
11155 (gimple_duplicate_sese_tail): Remove the check for the latch.
11156 Redirect nexits to the exit block.
11157 Remove handling of the incoming edges to the latch.
11158 Redirect the backedge from the copied latch to the exit bb.
11160 2010-01-28 Michael Matz <matz@suse.de>
11163 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
11164 Wrap force_reg into a sequence, emit it before user.
11166 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
11168 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
11170 (arm_legacy_rev): Likewise.
11171 (thumb_legacy_rev): Likewise.
11173 2010-01-27 Jakub Jelinek <jakub@redhat.com>
11175 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
11176 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
11177 on MEM's address failed, try avoid_constant_pool_reference and
11178 recurse if it returned something different.
11179 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
11180 address, try avoid_constant_pool_reference and recurse if it
11181 returned something different.
11182 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
11183 address and avoid_constant_pool_reference returned something
11184 different, don't set have_address.
11186 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
11189 * var-tracking.c (val_store): Add modified argument, obey it.
11191 (count_uses): Move down logging of main.
11192 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
11193 don't need resolution.
11194 (emit_notes_in_bb): Likewise.
11196 2010-01-27 Richard Guenther <rguenther@suse.de>
11198 PR middle-end/42878
11199 * tree-inline.c (remap_decl): Delay remapping of SSA name
11200 default definitions until we need them.
11202 2010-01-27 Jakub Jelinek <jakub@redhat.com>
11204 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
11205 (rs6000_delegitimize_address): New function.
11207 * config/s390/s390.c (s390_delegitimize_address): Call
11208 delegitimize_mem_from_attrs.
11210 PR middle-end/42874
11211 * tree-inline.c (cannot_copy_type_1): Removed.
11212 (copy_forbidden): Don't forbid copying of functions containing
11213 records/unions with variable length fields.
11215 2010-01-27 Christian Bruel <christian.bruel@st.com>
11219 * config/sh/sh.c (find_barrier): Increase length for non delayed
11220 conditional branches.
11222 2010-01-27 Matthias Klose <doko@ubuntu.com>
11224 * configure.ac (gnu-unique-object): Fix ldd version check.
11225 * configure: Regenerate.
11227 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11229 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
11231 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
11232 Test for HAVE_GNU_AS value.
11234 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11236 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
11237 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
11238 INT64_TYPE): Define.
11239 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
11240 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
11241 INT_LEAST64_TYPE): Define.
11242 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
11243 UINT_LEAST64_TYPE): Define.
11244 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
11245 INT_FAST64_TYPE): Define.
11246 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
11247 UINT_FAST64_TYPE): Define.
11248 (INTMAX_TYPE, UINTMAX_TYPE): Define.
11249 (INTPTR_TYPE, UINTPTR_TYPE): Define.
11250 (SIG_ATOMIC_TYPE): Define.
11252 2010-01-26 Richard Guenther <rguenther@suse.de>
11254 * df-scan.c (df_scan_set_bb_info): Remove assert.
11255 (df_insn_rescan_debug_internal): Merge asserts.
11256 (df_install_ref): Likewise.
11257 (df_mark_reg): Use bitmap_set_range.
11258 (df_hard_reg_used_p): Remove assert.
11259 (df_hard_reg_used_count): Likewise.
11261 2010-01-26 Richard Guenther <rguenther@suse.de>
11263 PR rtl-optimization/42685
11264 * web.c (web_main): Ignore DEBUG_INSNs.
11266 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
11268 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
11270 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
11271 Fix types of fndecl and arglist parameters.
11273 2010-01-26 Richard Guenther <rguenther@suse.de>
11275 PR middle-end/42806
11276 * tree-eh.c (unsplit_eh): Skip debug insns.
11278 2010-01-26 Richard Guenther <rguenther@suse.de>
11280 PR tree-optimization/42250
11281 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
11283 2010-01-26 Jakub Jelinek <jakub@redhat.com>
11286 * omp-low.c (expand_omp_sections): Only use single_pred if
11287 l2_bb is single_pred_p.
11289 2010-01-25 Christian Bruel <christian.bruel@st.com>
11292 * config/sh/sh.c (find_barrier): Increase length for non delayed
11293 conditional branches.
11294 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
11296 2010-01-24 David S. Miller <davem@davemloft.net>
11298 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
11299 define if not using GAS.
11300 * config/sparc/sparc.c (sparc_elf_asm_named_section):
11301 Likewise. Delete SECTION_MERGE code, which is only applicable
11304 2010-01-24 Mark Mitchell <mark@codesourcery.com>
11307 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
11308 mangling of va_list in system headers.
11310 2010-01-23 Toon Moene <toon@moene.org>
11312 * tree-predcom.c (combine_chains): Return NULL, not false.
11314 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
11316 * tree-loop-distribution.c (distribute_loop): Fix declaration and
11317 initialization of variable res to agree with return type.
11319 2010-01-22 Steve Ellcey <sje@cup.hp.com>
11321 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
11322 * tree-sra.c: Add include of expr.h.
11324 2010-01-22 Jakub Jelinek <jakub@redhat.com>
11326 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
11327 insert the debug stmt on the single non-EH edge from the stmt.
11329 2010-01-22 Richard Henderson <rth@redhat.com>
11332 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
11333 the RHS until after generate_subtree_copies has insertted its
11334 code before the current statement.
11336 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
11338 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
11340 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
11342 2010-01-21 Martin Jambor <mjambor@suse.cz>
11344 PR tree-optimization/42585
11345 * tree-sra.c (struct access): New field grp_total_scalarization.
11346 (dump_access): Dump the new field.
11347 (should_scalarize_away_bitmap): New variable.
11348 (cannot_scalarize_away_bitmap): Likewise.
11349 (sra_initialize): Allocate new bitmaps.
11350 (sra_deinitialize): Free new bitmaps.
11351 (create_access_1): New function.
11352 (create_access): Parts moved to create_access_1.
11353 (type_consists_of_records_p): New function.
11354 (completely_scalarize_record): Likewise.
11355 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
11356 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
11357 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
11359 (analyze_all_variable_accesses): Completely scalarize small eligible
11362 2010-01-21 Martin Jambor <mjambor@suse.cz>
11364 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
11366 2010-01-21 Andrew Haley <aph@redhat.com>
11368 * gcc.c (process_command): Move lang_specific_driver before
11369 setting cc_libexec_prefix.
11371 2010-01-21 Richard Guenther <rguenther@suse.de>
11373 PR middle-end/19988
11374 * fold-const.c (negate_expr_p): Pretend only negative
11375 real constants are easily negatable.
11377 2010-01-20 Janis Johnson <janis187@us.ibm.com>
11378 Jason Merrill <jason@redhat.com>
11380 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
11381 (TYPE_TRANSPARENT_AGGR): this, for union and record.
11382 * calls.c (initialize argument_information): Handle it.
11383 * c-common.c (handle_transparent_union_attribute): Use new name.
11384 * c-decl.c (finish_struct): Ditto.
11385 * c-typeck.c (type_lists_compatible_p): Ditto.
11386 (convert_for_assignment): Use new name and also handle record.
11387 * function.c (aggregate_value_p): Handle it.
11388 (pass_by_reference): Ditto.
11389 (assign_parm_data_types): Ditto.
11390 * print-tree.c (print_node): Ditto.
11391 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
11392 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
11393 * tree.c (first_field): New fn.
11395 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
11398 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
11399 even when linking statically, for now.
11401 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
11404 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
11405 without a cselib val.
11406 (count_uses): Accept MO_VAL_SET with no val on stores.
11407 (add_stores): Likewise.
11409 2010-01-20 Jakub Jelinek <jakub@redhat.com>
11411 * var-tracking.c (check_value_val): Add a compile time assertion.
11412 (dv_is_decl_p): Simplify.
11413 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
11414 gcc_assert if ENABLE_CHECKING.
11416 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
11419 * var-tracking.c: Include tree-flow.h.
11420 (mem_dies_at_call): New.
11421 (dataflow_set_preserve_mem_locs): Use it.
11422 (dataflow_set_remove_mem_locs): Likewise.
11423 (dump_var): Renamed from dump_variable. Adjust all callers.
11424 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
11425 * Makefile.in (var-tracking.o): Adjust deps.
11427 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
11429 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
11431 2010-01-20 Richard Guenther <rguenther@suse.de>
11433 PR tree-optimization/42717
11434 * tree-ssa-dce.c (get_live_post_dom): Remove.
11435 (forward_edge_to_pdom): Take an arbitrary edge to copy
11436 degenerate PHI args from.
11437 (remove_dead_stmt): Use the first post-dominator even if it
11438 does not contain live statements as redirection destination.
11440 2010-01-20 Richard Guenther <rguenther@suse.de>
11442 * tree-inline.c (estimate_num_insns): Handle EH builtins.
11444 2010-01-20 Jakub Jelinek <jakub@redhat.com>
11446 * sel-sched.c (create_speculation_check): Remove set but not used
11448 (try_transformation_cache): Remove set but not used variable ds.
11449 (calculate_privileged_insns): Remove set but not used variables
11450 cur_insn and min_spec_insn.
11451 (find_best_expr): Remove set but not used variable avail_n.
11452 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
11454 * cgraphunit.c (assemble_thunk): Remove set but not used variable
11456 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
11457 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
11458 new_scop_exit_edge.
11460 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
11463 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
11464 cpu types. Add support for *-sse3 cpu types.
11465 (x86_64-*-*): Ditto.
11467 2010-01-20 Jakub Jelinek <jakub@redhat.com>
11469 PR middle-end/42803
11470 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
11471 argument, call initializer_constant_valid_p_1 instead of
11472 initializer_constant_valid_p, pass CACHE to it, return NULL
11473 immediately if first call returns NULL.
11474 (initializer_constant_valid_p_1): New function.
11475 (initializer_constant_valid_p): Use it.
11477 2010-01-20 Thomas Quinot <quinot@adacore.com>
11479 * tree.def (PLACEHOLDER_EXPR): Fix comment.
11481 2010-01-20 Jakub Jelinek <jakub@redhat.com>
11483 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
11484 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
11485 (loc_list_from_tree): Don't handle unsigned division. Handle
11486 signed modulo using DW_OP_{over,over,div,mul,minus}.
11487 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
11488 modulo instead of signed.
11490 2010-01-20 DJ Delorie <dj@redhat.com>
11492 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
11494 (h8300_emit_stack_adjustment): Propogate it.
11496 (h8300_expand_prologue): Likewise.
11497 (h8300_expand_epilogue): Likewise.
11499 2010-01-19 Michael Matz <matz@suse.de>
11501 PR tree-optimization/41783
11502 * tree-data-ref.c (toplevel): Include flags.h.
11503 (dump_data_dependence_relation): Also dump the inputs if the
11504 result will be unknown.
11505 (split_constant_offset_1): Look through some conversions.
11506 * tree-predcom.c (determine_roots_comp): Restart a new chain if
11507 the offset from last element is too large.
11508 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
11509 (reassociate_to_the_same_stmt): Handle vector registers.
11510 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
11511 (e.g. conversions).
11512 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
11513 wide_prolog_niters argument, emit widening instructions.
11514 (vect_do_peeling_for_alignment): Adjust caller, use widened
11515 variant of the iteration cound.
11516 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
11518 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11521 * config/arm/neon-testgen.m (emit_automatics): New parameter
11522 features. Adjust for Fixed_return_reg feature.
11523 (test_intrinsic): Call emit_automatics with new feature.
11524 * config/arm/neon.ml: Update copyright years.
11525 (features): New Fixed_return_reg feature.
11526 (ops): Update feature for Vget_low.
11528 2010-01-19 Jakub Jelinek <jakub@redhat.com>
11530 PR tree-optimization/42719
11531 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
11535 * fwprop.c (all_uses_available_at): Return false if def_set dest
11536 is a REG that is used in def_insn.
11538 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
11540 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
11542 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
11543 Add argument names.
11545 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
11547 * target.h (struct gcc_target) <secondary_reload>: Change type
11548 of last argument to secondary_reload_info *.
11550 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
11553 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
11554 memory references with unaligned offsets. Remove CQImode handling.
11555 (unaligned_memory_operand): Return 1 for memory references with
11556 unaligned offsets. Remove CQImode handling.
11558 2010-01-18 Richard Guenther <rguenther@suse.de>
11560 PR middle-end/39954
11561 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
11564 2010-01-18 Richard Guenther <rguenther@suse.de>
11566 PR tree-optimization/42781
11567 * tree-ssa-structalias.c (find_what_var_points_to): Skip
11568 restrict processing only if the original variable was artificial.
11570 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
11572 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
11573 find number of popped argument bytes.
11575 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
11576 Fix the text that describes the return value for invalid insns.
11578 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
11580 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
11581 Clarify what 'cost of the -dependence' is. Fix quoting.
11583 * toplev.c (default_get_pch_validity): Rename argument to "sz".
11584 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
11586 2010-01-17 Jakub Jelinek <jakub@redhat.com>
11588 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
11589 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
11591 2010-01-17 Richard Guenther <rguenther@suse.de>
11593 PR middle-end/42248
11594 * function.c (split_complex_args): Take a VEC to modify.
11595 (assign_parms_augmented_arg_list): Build a VEC instead of
11596 a chain of PARM_DECLs.
11597 (assign_parms_unsplit_complex): Take a VEC of arguments.
11598 Do not fixup unmodified parms.
11599 (assign_parms): Deal with the VEC.
11600 (gimplify_parameters): Likewise.
11602 2010-01-17 Richard Guenther <rguenther@suse.de>
11604 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
11605 node existence check.
11606 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
11607 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
11608 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
11609 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
11610 (gimple_execute_on_growing_pred): Likewise.
11612 2010-01-17 Richard Guenther <rguenther@suse.de>
11614 PR tree-optimization/42773
11615 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
11616 (compute_antic_aux): Likewise.
11617 (compute_partial_antic_aux): Likewise.
11619 2010-01-17 Jie Zhang <jie.zhang@analog.com>
11622 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
11625 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
11627 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
11630 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
11631 Fix markup for strict argument.
11633 (TARGET_SCHED_REORDER2): Fix argument types.
11635 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
11636 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
11638 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
11639 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
11641 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
11644 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
11645 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
11646 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
11647 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
11648 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
11650 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
11652 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
11654 (TARGET_ASM_RELOC_RW_MASK): Add return type.
11655 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
11657 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
11659 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
11662 (TARGET_ASM_NAMED_SECTION): Fix argument list.
11664 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
11665 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
11667 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
11669 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
11671 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
11672 referring to it. Fix language.
11674 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
11676 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
11678 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
11680 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
11682 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
11683 '@var{stream}. Remove stray 'and'.
11685 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
11687 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
11689 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
11691 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
11692 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
11694 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
11695 Fix description of return value.
11696 Rename argument "sz" to "len."
11698 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
11699 Clarify meaning of 'true' return value.
11701 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
11703 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
11704 rep_mode versus mode_rep.
11706 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
11708 (TARGET_BUILTIN_DECL): Fix name.
11710 (TARGET_COMMUTATIVE_P): Fix type of first argument.
11712 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
11714 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
11716 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
11718 (TARGET_RELAXED_ORDERING): Use @deftypevr.
11720 (TARGET_GET_DRAP_RTX): Note that this is a hook.
11723 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
11724 Rename argument tm_fn to md_fn.
11726 (TARGET_OPTION_PRINT): Fix argument list.
11728 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
11731 * config/i386/i386.c (ix86_fixup_binary_operands):
11732 Revert FMA4 fixup of operands.
11734 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11737 * Makefile.in (write_entries_to_file, install-plugin):
11738 Use \012 instead of \n with tr.
11740 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
11742 * configure.ac (HAVE_AS_REF): New C macro.
11743 * configure: Regenerate.
11744 * config.in: Likewise.
11745 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
11747 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
11750 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
11752 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
11754 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
11756 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
11758 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
11760 (TARGET_IN_SMALL_DATA_P): Fix argument type.
11762 (TARGET_BINDS_LOCAL_P): Fix argument type.
11764 (TARGET_ASM_FILE_END): Use prototype.
11766 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
11768 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
11770 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
11772 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
11774 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
11775 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
11777 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
11778 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
11780 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
11781 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
11782 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
11783 (TARGET_ADDR_SPACE_CONVERT): Likewise.
11785 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
11787 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
11789 (TARGET_INIT_BUILTINS): Use prototype.
11791 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
11792 Put 'const char *' in braces. Fix parameter types.
11793 (TARGET_INVALID_CONVERSION): Fix parameter types.
11794 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
11795 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
11797 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
11800 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
11802 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
11804 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
11806 * doc/tm.texi (TARGET_HELP): Fix return type.
11808 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
11809 in braces. Fix argument types.
11811 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
11813 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
11815 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
11817 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
11818 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
11820 (TARGET_MANGLE_TYPE): Fix argument types.
11822 (TARGET_IRA_COVER_CLASSES): Use prototype.
11824 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
11826 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
11828 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
11830 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
11832 (TARGET_CALLEE_COPIES): Fix argument types.
11834 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
11836 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
11838 (TARGET_FUNCTION_VALUE): Fix argument types.
11840 (TARGET_RETURN_IN_MSB): Fix argument type.
11842 (TARGET_RETURN_IN_MEMORY): Fix argument types.
11844 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
11846 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
11848 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
11849 agree with return type.
11851 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
11853 2010-01-15 Jing Yu <jingyu@google.com>
11855 PR rtl-optimization/42691
11856 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
11857 a pseudo to a constant and are merged, and adjust comments.
11859 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
11861 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
11863 2010-01-15 Richard Guenther <rguenther@suse.de>
11865 PR middle-end/42739
11866 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
11867 labels of computed or non-local gotos to the destination.
11868 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
11869 landing pad label is the first label.
11871 2010-01-15 Richard Guenther <rguenther@suse.de>
11873 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
11875 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11878 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
11879 to allow generation of the xssqrtdp instruction on power7.
11880 (sqrtdf2_fpr): Ditto.
11882 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11884 PR middle-end/42674
11885 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
11886 functions with noreturn attribute.
11889 * varasm.c (declare_weak): Add weak attribute to decl if it
11890 doesn't have one already.
11891 (assemble_external): Only add decls to weak_decls if they also
11892 have weak attribute.
11894 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
11896 * var-tracking.c (var_reg_delete): Don't delete the association
11897 between REGs and values or one-part variables if the register
11900 2010-01-14 Jakub Jelinek <jakub@redhat.com>
11903 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
11904 because its first operand is a non-localized variable.
11906 2010-01-14 Martin Jambor <mjambor@suse.cz>
11908 PR tree-optimization/42706
11909 * tree-sra.c (encountered_recursive_call): New variable.
11910 (encountered_unchangable_recursive_call): Likewise.
11911 (sra_initialize): Initialize both new variables.
11912 (callsite_has_enough_arguments_p): New function.
11913 (scan_function): Call decl and flags check only for IPA-SRA, check
11914 whether there is a recursive call and whether it has enough arguments.
11915 (all_callers_have_enough_arguments_p): New function.
11916 (convert_callers): Look for recursive calls only when
11917 encountered_recursive_call is set.
11918 (ipa_early_sra): Bail out either if
11919 !all_callers_have_enough_arguments_p or
11920 encountered_unchangable_recursive_call.
11922 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11924 * sel-sched.c: Add 2010 to copyright years.
11925 * sel-sched-ir.c: Likewise.
11926 * sel-sched-ir.h: Likewise.
11928 2010-01-14 Martin Jambor <mjambor@suse.cz>
11930 PR tree-optimization/42714
11931 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
11932 constructors specially.
11934 2010-01-14 Andi Kleen <ak@linux.intel.com>
11936 * config/i386/drivers-i386.c (detect_caches_intel):
11937 Add l2sizekb parameter and fill in.
11938 (host_detect_local_cpu): Add l2sizekb, fill in.
11939 Add Atom small cache heuristic.
11941 2010-01-14 Andi Kleen <ak@linux.intel.com>
11943 * config/i386/drivers-i386.c (detect_caches_cpuid4):
11944 Add level3 parameter and fill in.
11945 (detect_caches_intel): Handle level3 cache.
11947 2010-01-14 Andi Kleen <ak@linux.intel.com>
11949 * config/i386/drivers-i386.c (host_detect_local_cpu):
11950 Fix core duo detection.
11952 2010-01-14 Andi Kleen <ak@linux.intel.com>
11954 * config/i386/drivers-i386.c (host_detect_local_cpu):
11955 Fix Atom detection.
11957 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11959 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
11960 (rs6000_variable_issue_1): this. Use...
11961 (rs6000_variable_issue): here. Reimplement. Print debug info.
11963 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11965 * sel-sched-ir.c (sel_restore_other_notes): Rename to
11966 sel_restore_notes. Update all callers. Call reemit_notes
11969 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11971 PR rtl-optimization/42246
11972 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
11975 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11977 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
11978 all successors is the same as number of successors in current region.
11980 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11982 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
11983 to rename is not separable. Otherwise check that its LHS is not NULL.
11985 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11987 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
11989 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
11991 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
11992 available registers when failed to discover LHS register class.
11993 Fix indentation. Update comment.
11995 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
11996 Alexander Monakov <amonakov@ispras.ru>
11998 PR rtl-optimization/42389
11999 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
12001 (advance_state_on_fence): Likewise.
12002 (sel_target_adjust_priority): Print debug output only when
12003 sched_verbose >= 4, not 2.
12004 (get_expr_cost): Do not issue all unique insns on the next cycle.
12005 (fill_insns): Initialize can_issue_more from the value saved
12007 * sel-sched-ir.c (flist_add): New parameter issue_more.
12008 Init FENCE_ISSUE_MORE with it.
12009 (merge_fences): Likewise.
12010 (init_fences): Update call to flist_add.
12011 (add_to_fences, add_clean_fence_to_fences)
12012 (add_dirty_fence_to_fences): Likewise.
12013 (move_fence_to_fences): Update call to merge_fences.
12014 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
12016 * sel-sched-ir.h (struct _fence): New field issue_more.
12017 (FENCE_ISSUE_MORE): New accessor macro.
12019 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
12021 PR rtl-optimization/42388
12022 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
12023 that have no predecessors nor successors. Do not call move_bb_info
12024 for empty blocks outside of current region.
12026 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
12028 PR rtl-optimization/42294
12029 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
12030 * sel-sched.c (move_exprs_to_boundary): Transitively add all
12031 originators' originators.
12033 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
12035 PR rtl-optimization/39453
12036 PR rtl-optimization/42246
12037 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
12039 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
12041 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
12042 Alexander Monakov <amonakov@ispras.ru>
12044 PR middle-end/42245
12045 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
12046 (maybe_tidy_empty_bb): ... here. Make static. Add new
12047 argument. Update all callers.
12048 (tidy_control_flow): ... and here. Recompute topological order
12049 of basic blocks in region if necessary.
12050 (sel_redirect_edge_and_branch): Change return type. Return true
12051 if topological order might have been invalidated.
12052 (purge_empty_blocks): Export and move from...
12053 * sel-sched.c (purge_empty_blocks): ... here.
12054 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
12055 (maybe_tidy_empty_bb): Delete prototype.
12056 (purge_empty_blocks): Declare.
12058 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
12060 PR rtl-optimization/42249
12061 * sel-sched.c (try_replace_dest_reg): When chosen register
12062 and original register is the same, do not bail out early, but
12063 still check all original insns for validity of replacing destination
12064 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
12067 2010-01-14 Jakub Jelinek <jakub@redhat.com>
12070 Port from no-undefined-overflow branch:
12071 2009-03-09 Richard Guenther <rguenther@suse.de>
12073 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
12075 2010-01-14 Richard Guenther <rguenther@suse.de>
12078 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
12080 2010-01-14 Ira Rosen <irar@il.ibm.com>
12082 PR tree-optimization/42709
12083 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
12084 as scalar type in creation of constant vector operand.
12086 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12089 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
12090 (check-parallel-%): Match `testsuite' directory component only
12093 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
12095 PR translation/39521
12096 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
12099 2010-01-13 Richard Guenther <rguenther@suse.de>
12101 PR tree-optimization/42730
12102 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
12105 2010-01-13 Steve Ellcey <sje@cup.hp.com>
12108 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
12109 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
12112 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
12114 * config/bfin/libgcc-bfin.ver: Regenerate based on current
12115 libgcc-std.ver. Add entries for ___smulsi3_highpart and
12116 ___umulsi3_highpart.
12118 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
12119 rather than schedule_insns if the pass is enabled.
12121 2010-01-13 Martin Jambor <mjambor@suse.cz>
12123 PR tree-optimization/42704
12124 * tree-sra.c (sra_modify_assign): Do not delete assignments to
12127 2010-01-13 Martin Jambor <mjambor@suse.cz>
12129 PR tree-optimization/42703
12130 * tree-sra.c (analyze_access_subtree): Check that we can build a
12131 reference to the original data within the aggregate.
12133 2010-01-13 Richard Guenther <rguenther@suse.de>
12135 PR tree-optimization/42705
12136 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
12138 2010-01-13 Richard Guenther <rguenther@suse.de>
12140 PR middle-end/42716
12141 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
12143 2010-01-13 Jakub Jelinek <jakub@redhat.com>
12146 * var-tracking.c (values_to_unmark): New variable.
12147 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
12148 values_to_unmark vector. Moved body to...
12149 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
12150 instead queue it into values_to_unmark vector.
12151 (vt_find_locations): Free values_to_unmark vector.
12153 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
12155 * config/s390/s390.c (override_options): Set
12156 default of max-pending-list-length to 256
12158 2010-01-13 Richard Guenther <rguenther@suse.de>
12161 * tree-pass.h (PROP_gimple_lcx): New.
12162 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
12163 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
12164 before the final cleanup_eh.
12165 (dump_properties): Dump PROP_gimple_lcx.
12166 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
12167 (tree_lower_complex_O0): Remove.
12168 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
12169 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
12170 tree_lower_complex, schedule TODO_update_ssa.
12171 * lto-streamer-out.c (output_function): Stream the functions
12173 * lto-streamer-in.c (input_function): Likewise.
12174 (lto_read_body): Do not override them here.
12176 2010-01-12 Joseph Myers <joseph@codesourcery.com>
12179 * c-typeck.c (build_c_cast): Fold value cast to union type before
12180 wrapping it in a CONSTRUCTOR.
12182 2010-01-12 Jakub Jelinek <jakub@redhat.com>
12184 PR rtl-optimization/42699
12185 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
12188 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12190 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
12191 SUBTARGET_WARN_UNUSED_SPEC): Move ...
12192 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
12193 SUBTARGET_WARN_UNUSED_SPEC): ... here
12194 * config/mips/iris5.h (LIBGCC_SPEC): Define.
12196 2010-01-12 Julian Brown <julian@codesourcery.com>
12198 * config/arm/neon-schedgen.ml (Utils): Don't try to
12199 open missing module.
12200 (find_with_result): New.
12202 2010-01-12 Jakub Jelinek <jakub@redhat.com>
12205 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
12206 sharing when canonicalizing ({lt,ge}u (plus a b) b).
12208 PR tree-optimization/42645
12209 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
12210 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
12211 decl_map, set processing_debug_stmt to -1 and return name without
12214 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
12216 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
12217 binutils version, and reword target configuration description.
12219 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
12221 * config/avr/avr.h (LINKER_NAME): Remove.
12223 2010-01-11 Janis Johnson <janis187@us.ibm.com>
12226 * config/rs6000/rs6000.c (rs6000_override_options): On targets
12227 that support VSX, warn for -mno-altivec if vsx is not disabled,
12230 2010-01-11 Joseph Myers <joseph@codesourcery.com>
12231 Shujing Zhao <pearly.zhao@oracle.com>
12233 PR translation/42469
12234 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
12235 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
12236 character between option name and help text.
12237 * c.opt (imultilib): Likewise.
12239 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
12241 * lto-streamer-out.c (output_unreferenced_globals): Output static
12244 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
12246 PR rtl-optimization/42621
12247 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
12248 optimizing for size.
12249 (duplicate_computed_gotos): Remove now-redundant check.
12251 2010-01-10 Steve Ellcey <sje@cup.hp.com>
12254 * configure.ac: Save and restore LDFLAGS and LIBS
12255 * configure: Regenerate.
12257 2010-01-10 Richard Guenther <rguenther@suse.de>
12259 PR middle-end/42667
12260 * builtins.c (fold_builtin_strlen): Add type argument and
12261 convert the resulting length to it.
12262 (fold_builtin_1): Adjust.
12264 2010-01-09 Jakub Jelinek <jakub@redhat.com>
12266 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
12267 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
12269 (num_insns_constant_wide): Adjust for that change.
12271 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12274 * web.c (union_defs): Add used argument, to combine uses of
12275 uninitialized regs.
12276 (entry_register): Adjust type and tests of used argument.
12277 (web_main): Widen used for new use. Pass it to union_defs.
12278 * df.h (union_defs): Adjust prototype.
12280 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12283 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
12284 uses in new incoming argument. Free body.
12285 (reset_debug_uses_in_loop): New.
12286 (analyze_insn_to_expand_var): Call the latter if the former found
12287 anything. Fix whitespace. Reject invalid dest overlaps before
12288 going through all insns in the loop.
12290 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12293 * haifa-sched.c (dying_use_p): Debug insns don't count.
12295 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12297 PR middle-end/42363
12298 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
12299 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
12300 (verify_gimple_call): Reject LHS in noreturn calls.
12302 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12306 * tree-vect-loop-manip.c (adjust_info): New type.
12307 (adjust_vec): New pointer to vector.
12308 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
12309 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
12310 (slpeel_update_phis_for_duplicate_loop): Use them.
12311 (slpeel_update_phi_nodes_for_guard1): Likewise.
12312 (slpeel_update_phi_nodes_for_guard2): Likewise.
12313 (slpeel_tree_peel_loop_to_edge): Likewise.
12314 (vect_update_ivs_after_vectorizer): Likewise.
12316 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12318 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
12319 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
12321 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
12323 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
12324 bogus uninitialized warning.
12326 2010-01-09 Richard Guenther <rguenther@suse.de>
12328 PR middle-end/42512
12329 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
12330 the evolution is compatible with the initial condition.
12332 2010-01-09 Jakub Jelinek <jakub@redhat.com>
12334 * gcc.c (process_command): Update copyright notice dates.
12335 * gcov.c (print_version): Likewise.
12336 * gcov-dump.c (print_version): Likewise.
12337 * mips-tfile.c (main): Likewise.
12338 * mips-tdump.c (main): Likewise.
12340 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
12343 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
12345 (rotlhi3_8): Delete.
12347 (rotlsi3_8): Delete.
12348 (rotlsi3_16): Delete.
12349 (rotlsi3_24): Delete.
12350 (rotl<mode>3): New.
12351 (*rotw<mode>3): New.
12352 (*rotb<mode>3): New.
12353 * config/avr/avr.c (avr_rotate_bytes): New function.
12354 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
12356 2010-01-08 Steve Ellcey <sje@cup.hp.com>
12359 * configure.ac: Modify -rdynamic check.
12360 * configure: Regenerate.
12362 2010-01-08 DJ Delorie <dj@redhat.com>
12364 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
12365 register popping order.
12367 2010-01-08 Richard Guenther <rguenther@suse.de>
12370 * c.opt (fsigned-char): Also let LTO handle this option.
12371 (funsigned-char): Likewise.
12373 2010-01-07 Richard Guenther <rguenther@suse.de>
12375 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
12376 (gimple_op): Likewise.
12377 (gimple_op_ptr): Likewise.
12378 (gimple_assign_set_lhs): Remove gcc_assert.
12379 (gimple_assign_set_rhs1): Likewise.
12380 (gimple_assign_set_rhs2): Likewise.
12381 (gimple_call_set_lhs): Likewise.
12382 (gimple_call_set_fn): Likewise.
12383 (gimple_call_set_fndecl): Likewise.
12384 (gimple_call_fndecl): Likewise.
12385 (gimple_call_return_type): Likewise.
12386 (gimple_call_set_chain): Likewise.
12387 (gimple_call_num_args): Likewise.
12388 (gimple_call_set_arg): Likewise.
12389 (gimple_cond_set_code): Likewise.
12390 (gimple_cond_set_lhs): Likewise.
12391 (gimple_cond_set_rhs): Likewise.
12392 (gimple_cond_set_true_label): Likewise.
12393 (gimple_cond_set_false_label): Likewise.
12394 (gimple_label_set_label): Likewise.
12395 (gimple_goto_set_dest): Likewise.
12396 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
12397 (gimple_debug_bind_get_value): Likewise.
12398 (gimple_debug_bind_get_value_ptr): Likewise.
12399 (gimple_debug_bind_set_var): Likewise.
12400 (gimple_debug_bind_set_value): Likewise.
12401 (gimple_debug_bind_reset_value): Likewise.
12402 (gimple_debug_bind_has_value_p): Likewise.
12403 (gimple_return_retval_ptr): Remove gcc_assert.
12404 (gimple_return_retval): Likewise.
12405 (gimple_return_set_retval): Likewise.
12406 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
12407 (safe_referenced_var_iterator): Remove.
12408 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
12409 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
12410 (fill_referenced_var_vec): Remove.
12411 (first_readonly_imm_use): Remove redundant gcc_assert.
12412 (phi_arg_index_from_use): Combine gcc_asserts.
12413 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
12414 (first_imm_use_stmt): Remove redundant gcc_assert.
12415 * tree-cfg.c (verify_gimple_call): Verify function and chain
12416 operands. Verify arguments.
12417 (verify_types_in_gimple_stmt): Verify condition code and labels.
12419 2010-01-07 Richard Guenther <rguenther@suse.de>
12421 PR tree-optimization/42641
12422 * sese.c (rename_map_elt_info): Use the SSA name version, do
12425 2010-01-07 Jakub Jelinek <jakub@redhat.com>
12427 PR tree-optimization/42625
12428 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
12429 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
12431 2010-01-07 Duncan Sands <baldrick@free.fr>
12433 * Makefile.in (PLUGIN_HEADERS): Add version.h.
12435 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
12438 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
12439 note itself is not function_invariant_p.
12441 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
12443 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
12444 Do not add the DF_NOTE problem.
12445 * store-motion.c (execute_rtl_store_motion): Likewise.
12447 2010-01-07 Martin Jambor <mjambor@suse.cz>
12449 PR tree-optimization/42157
12450 * tree-sra.c (compare_access_positions): Stabilize sort if both
12451 accesses have integer types, return zero immediately if they are the
12454 2010-01-06 Richard Henderson <rth@redhat.com>
12456 PR middle-end/41883
12457 * haifa-sched.c (add_to_note_list): Merge into ...
12458 (concat_note_lists): ... here, and ...
12459 (unlink_other_notes, rm_other_notes): Merge into...
12460 (remove_notes): ... here. Create REG_SAVE_NOTEs for
12461 NOTE_INSN_EPILOGUE_BEG.
12463 2010-01-06 Richard Guenther <rguenther@suse.de>
12465 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
12466 not inline regular functions into always-inline functions.
12468 2010-01-06 Nick Clifton <nickc@redhat.com>
12470 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
12471 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
12473 (OVERRIDE_OPTIONS): Delete.
12474 (OPTIMIZATION_OPTIONS): Define.
12475 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
12476 * config/rx/rx.c (rx_handle_option): Issue an error message if
12477 -mcpu=rx200 and -fpu are used together.
12478 (rx_set_optimization_options): New function. Issue an error
12479 message if an optimization attribute attempts to reset the FPU/
12480 math optimization pairing.
12481 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
12482 * config/rx/rx.opt: Set the default to 32-bit doubles.
12483 * config/rx/t-rx: Add multilibs for -nofpu option.
12484 * doc/invoke.texi: Update documentation of RX options.
12486 2010-01-06 Richard Guenther <rguenther@suse.de>
12488 * tree-ssa-pre.c (name_to_id): New global.
12489 (alloc_expression_id): Simplify SSA name handling.
12490 (lookup_expression_id): Likewise.
12491 (init_pre): Zero name_to_id.
12492 (fini_pre): Free it.
12494 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
12496 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
12498 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
12501 * config/i386/sse.md (smaxv2di3): New.
12502 (umaxv2di3): Likewise.
12503 (sminv2di3): Likewise.
12504 (uminv2di3): Likewise.
12506 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
12509 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
12510 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
12511 (legitimize_tls_address): Likewise.
12512 (sparc_tls_referenced_p): Likewise.
12513 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
12514 and adjust calls to legitimize_pic_address.
12515 (legitimate_constant_p) Use sparc_tls_referenced_p.
12516 (legitimate_pic_operand_p): Likewise.
12517 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
12518 (sparc_tls_symbol_ref_1): Delete.
12519 (sparc_tls_referenced_p): Make static, recognize specific patterns.
12520 (legitimize_tls_address): Make static, handle CONST patterns.
12521 (legitimize_pic_address): Make static, remove unused parameter and
12522 adjust recursive calls.
12523 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
12524 and adjust call to legitimize_pic_address.
12525 (sparc_output_mi_thunk): Likewise.
12527 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
12528 H.J. Lu <hongjiu.lu@intel.com>
12531 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
12532 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
12533 operands to make them signed.
12536 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12539 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12540 GTU to GT for V4SI and V2DI.
12542 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12543 (umin<mode>3): Removed.
12545 (uminv4si3): Likewise.
12547 2010-01-05 Martin Jambor <mjambor@suse.cz>
12549 PR tree-optimization/42462
12550 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
12551 current_function_decl to helper functions and macros.
12553 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12556 * flags.h: Don't include real.h.
12557 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
12558 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
12559 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
12560 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
12561 * dominance.c: Update copyright.
12562 * gimple.c (walk_gimple_op): Remove inline.
12563 * tree-ssa-reassoc.c: Include real.h.
12564 * Makefile.in (FLAGS_H): Remove $(REAL_H).
12565 (tree-ssa-reassoc.o): Depend on $(REAL_H).
12567 2010-01-05 Nick Clifton <nickc@redhat.com>
12569 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
12570 register to push into the stack frame when the accumulator has to
12571 be saved during interrupts.
12573 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
12575 * doc/invoke.texi: Remove the documentation about option
12576 -Wunreachable-code.
12577 * common.opt (Wunreachable-code): Preserved for backward
12579 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
12580 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
12581 the backward compatibility flag section.
12583 2010-01-05 Richard Guenther <rguenther@suse.de>
12585 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
12587 2010-01-05 Jakub Jelinek <jakub@redhat.com>
12590 * cfgexpand.c (expand_one_var): Diagnose too large variables.
12592 PR tree-optimization/42508
12593 * tree-sra.c (convert_callers): Check for recursive call
12594 by comparing cgraph nodes instead of decls.
12595 (modify_function): Call ipa_modify_formal_parameters also
12596 on all same_body aliases.
12598 * cgraphunit.c (cgraph_materialize_all_clones): Compare
12599 cgraph nodes when checking for same_body aliases.
12601 2010-01-05 Richard Guenther <rguenther@suse.de>
12603 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
12604 allocation and lookup.
12605 (get_or_alloc_expr_for_constant): Likewise.
12606 (phi_translate): Sink allocation.
12608 2010-01-04 Richard Guenther <rguenther@suse.de>
12610 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
12611 a new entry only if needed.
12612 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
12613 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
12615 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
12617 (phi_translate): Handle CONSTANTs early.
12619 2010-01-04 Martin Jambor <mjambor@suse.cz>
12621 PR tree-optimization/42398
12622 * tree-sra.c (struct access): Removed flag grp_different_types.
12623 (dump_access): Do not dump the removed flag.
12624 (sort_and_splice_var_accesses): Do not set the removed flag.
12625 (sra_modify_expr): Check for type compatibility directly.
12627 2010-01-04 Martin Jambor <mjambor@suse.cz>
12629 PR tree-optimization/42366
12630 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
12631 edges with variable number of parameters.
12632 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
12633 flag instead of asserting it.
12634 (ipa_read_node_info): Read uses_analysis_done flag.
12636 2010-01-04 Richard Guenther <rguenther@suse.de>
12638 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
12639 iterative_hash_* as intended.
12640 (vn_reference_compute_hash): Likewise. Simplify hashing
12642 (vn_reference_lookup_2): Likewise.
12643 (vn_nary_op_compute_hash): Likewise.
12644 (vn_phi_compute_hash): Likewise.
12645 (expressions_equal_p): Remove strange code.
12646 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
12647 (pre_expr_hash): Likewise. Simplify hashing SSA names.
12648 (bitmap_insert_into_set_1): Take value-id as parameter.
12649 (add_to_value): Pass it.
12650 (bitmap_insert_into_set): Likewise.
12651 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
12653 2010-01-04 Jakub Jelinek <jakub@redhat.com>
12656 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
12657 (do_self_spec): For switches with SWITCH_IGNORE set set also
12658 SWITCH_IGNORE_PERMANENTLY.
12659 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
12662 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
12664 * lto-streamer-out.c (output_unreferenced_globals): Output the full
12665 tree of an unreferenced global var.
12667 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12670 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12671 GTU to GT for V4SI and V2DI.
12673 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12674 (umin<mode>3): Removed.
12676 (uminv4si3): Likewise.
12678 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
12681 * collect2.c (main): Turn on trace in collect2 if -v is passed
12684 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
12686 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
12687 description of expression operand.
12689 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
12691 * configure.ac: Add install-html to target_list for Make-hooks.
12692 * configure: Regenerate.
12693 * fortran/Make-lang.in (F95_HTMLFILES): New.
12694 (fortran.html): Use it.
12695 (fortran.install-html): New.
12696 * Makefile.in (install-html): Add lang.install-html.
12697 * java/Make-lang.in (JAVA_HTMLFILES): New.
12698 (java.html): Use it.
12699 (java.install-html): New.
12700 * objc/Make-lang.in (objc.install-html): New.
12701 * objcp/Make-lang.in (obj-c++.install-html): New.
12702 * cp/Make-lang.in (c++.install-html): New.
12703 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
12704 * lto/Make-lang.in (lto.install-html): New.
12706 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
12709 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
12711 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
12713 PR rtl-optimization/41862
12714 * store-motion.c (store_killed_in_insn, compute_store_table,
12715 remove_reachable_equiv_notes, replace_store_insn,
12716 build_store_vectors): Ignore all DEBUG_INSNs.
12718 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
12721 * common.opt: Add dumpdir.
12723 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
12725 (option_map): Add --dumpdir.
12727 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
12729 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
12731 * opts.c (decode_options): Try dump_dir_name first if
12732 dump_base_name isn't an absolute path.
12733 (common_handle_option): Handle OPT_dumpdir.
12735 * toplev.c (dump_dir_name): New.
12736 (print_switch_values): Also ignore -dumpdir.
12738 * toplev.h (dump_dir_name): New.
12740 2010-01-03 Richard Guenther <rguenther@suse.de>
12742 PR tree-optimization/42589
12743 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
12744 double-word expansion of bswap32.
12746 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
12748 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
12749 with BLOCK_FOR_INSN.
12750 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
12751 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
12752 noce_process_if_block): Likewise.
12753 * gcse.c (compute_local_properties, insert_expr_in_table,
12754 insert_set_in_table, canon_list_insert, find_avail_set,
12755 pre_insert_copy_insn): Likewise.
12757 * basic-block.h (BLOCK_NUM): Move from here...
12758 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
12760 2010-01-03 Richard Guenther <rguenther@suse.de>
12762 PR tree-optimization/42438
12763 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
12764 contains_may_not_return_call flag.
12765 (BB_MAY_NOTRETURN): New.
12766 (valid_in_sets): Trapping nary operations are not valid
12767 in blocks that may not return.
12768 (insert_into_preds_of_block): Remove check for trapping expressions.
12769 (compute_avail): Compute also BB_MAY_NOTRETURN.
12771 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
12773 * doc/invoke.texi: Add 2010 to copyright years.
12775 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
12777 * config/sparc/sparc.c: Fix formatting nits.
12779 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
12780 Alexander Monakov <amonakov@ispras.ru>
12782 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
12784 2010-01-02 Richard Guenther <rguenther@suse.de>
12786 PR middle-end/42577
12787 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
12788 (simplify_switch_using_ranges): Mark to be removed edges
12791 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12793 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
12795 * collect2.c (scan_libraries): Add missing argument in call to
12798 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
12801 * config/alpha/predicates.md (aligned_memory_operand): Return false
12803 (unaligned_memory_operand): Return true for CQImode.
12804 * config/alpha/alpha.c (get_aligned_mem): Assert that location
12805 doesn not cross aligned SImode word boundary.
12807 2010-01-02 Anatoly Sokolov <aesok@post.ru>
12809 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
12811 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
12812 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
12814 2010-01-02 Richard Guenther <rguenther@suse.de>
12817 * toplev.c (compile_file): Emit LTO marker properly. Change
12818 it to __gnu_lto_v1.
12819 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
12821 2010-01-01 Richard Guenther <rguenther@suse.de>
12824 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
12826 2010-01-01 Richard Guenther <rguenther@suse.de>
12829 * c-decl.c (grokdeclarator): For zero-size arrays force
12830 structural equality checks as layout_type does.
12832 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
12834 * builtins.c: Update copyright to 2010.
12836 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
12839 * lto-streamer-out.c (produce_asm): Revert the last change.
12840 (copy_function): Likewise.
12842 * lto-streamer.c (lto_get_section_name): Skip any leading
12845 2010-01-01 Richard Guenther <rguenther@suse.de>
12847 PR middle-end/42559
12848 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
12852 Copyright (C) 2010 Free Software Foundation, Inc.
12854 Copying and distribution of this file, with or without modification,
12855 are permitted in any medium without royalty provided the copyright
12856 notice and this notice are preserved.