PR target/44218, improve -mrecip on powerpc
[official-gcc.git] / gcc / ChangeLog
blobecfdab1044dc2f5837584fd558046e5a9570345f
1 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
3         PR target/44218
4         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
5         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision
6         options.
8         * doc/extend.texi (powerpc builtins): Document vec_recip,
9         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
11         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New
12         function.
13         (rs6000_emit_swrsqrt): Ditto.
14         (rs6000_emit_swdivsf): Delete.
15         (rs6000_emit_swdivdf): Ditto.
16         (rs6000_emit_swrsqrtsf): Ditto.
18         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
19         describe the reciprocal estimate support for each type.
20         (recip_options): Map -mrecip=<opt> into option bits.
21         (gen_2arg_fn_t): New typedef for binary rtx gen function.
22         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
23         reciprocal estimate instructions.
24         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
25         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
26         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
27         cost information if -mdebug=cost or -mdebug=reg.
28         (rs6000_override_options): Set -mrecip-precision for power6, and
29         power7 machines.  If -mvsx or -mdfp, enable various options that
30         came in previous instruction set ISAs, unless the option was
31         explicitly disabled by the command line option.  Parse
32         -mrecip=<opt> options.
33         (rs6000_builtin_vectorized_function): Add support for vectorizing
34         the reciprocal estimate builtins and expansions.
35         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
36         (bdesc_2arg): Add reciprocal estimate builtins.
37         (bdesc_1arg): Add reciprocal square root estimate builtins.
38         (rs6000_expand_builtin): Rewrite to use a switch statement,
39         instead of multiple if/then/elses.  Add reciprocal estimate
40         builtins.
41         (rs6000_init_builtins): Create declarations for reciprocal
42         estimate builtins.
43         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
44         sized, prefer traditional floating point registers, if integer
45         vector types, prefer altivec registers.  Don't actually look at
46         the memory address any more.
47         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
48         builtins.
49         (rs6000_load_constant_and_splat): New helper function to load up
50         the constant for reciprocal estimate instructions.
51         (rs6000_emit_madd): New helper function for generating
52         multiply/add type instructions, based on the current switches.
53         (rs6000_emit_msub): Ditto.
54         (rs6000_emit_mnsub): Ditto.
55         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
56         replace a divide with a reciprocal estimate and fixup, adding
57         support for machines with high precision and vectors.
58         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
59         low precision machines.
60         (rs6000_emit_swdiv): New common function to be called to replace a
61         division with reciprocal estimate and fixup.
62         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
63         for double and vector types.  Add support for high precision
64         machines.
66         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
67         the reciprocal estimate instructions can be generated.
68         (TARGET_FRE): Ditto.
69         (TARGET_FRSQRTES): Ditto.
70         (TARGET_FRSQRTE): Ditto.
71         (RS6000_RECIP_*): New macros for reciprocal estimate support.
73         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
74         square root estimate on vectors.
75         (re<mode>2): New insn for reciprocal division estimate on vectors.
77         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
78         New builtin.
79         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
80         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
81         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
82         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
83         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
84         (RS6000_BUILTIN_RSQRT): Ditto.
85         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
86         floating point builtin.
88         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
89         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
90         __RECIP_PRECISION__ based on the command line switches.
91         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
93         * config/rs6000/rs6000.opt (-mrecip): Document add support for
94         replacing division instructions with reciprocal estimate and
95         fixup.
96         (-mrecip=<opt>): New option.
97         (-mrecip-precision): Ditto.
99         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
100         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
101         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
102         precision scalar.
104         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
105         (UNSPEC_VREFP): Ditto.
106         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
107         conterparts with regard to support of -mno-fused-madd and
108         -ffast-math.
109         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
110         reciprocal estimate instructions to be generated.
111         (altivec_vrefp): Ditto.
113         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
114         estimate support.
115         (rreg): New mode attribute for reciprocal estimate support.
116         (recip<mode>3): New insn for division using reciprocal estimate
117         and fixup builtins.
118         (divide define_split): New define_split to convert floating point
119         division to use reciprocal estimate if the user used the
120         appropriate options and the split is run when we can add new
121         pseudo registers for the fixup.
122         (rsqrt<mode>2): New insn for reciprocal square root support.
123         (recipsf3): Move into recip<mode>3.
124         (recipdf3): Ditto.
125         (fres): Use TARGET_FRES.
126         (rsqrtsf2): Move into rsqrt<mode>2.
127         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
128         (copysignsf3): Add support for VSX.
129         (fred): Use TARGET_FRE.
130         (fred_fpr): Ditto.
131         (rsqrtdf_internal1): New function for frsqrte instruciton.
133         * config/rs6000/altivec.h (vec_recipdiv): Define new vector
134         builtin.
135         (vec_rsqrt): Ditto.
137 2010-06-03  Richard Guenther  <rguenther@suse.de>
139         PR middle-end/44291
140         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
141         (set_user_assembler_libfunc): Likewise.
143 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
145         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
146         defaults.h.
147         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
148         to defaults.h
149         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
150         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
151         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
152         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
153         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
154         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
155         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
156         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
157         * defaults.h: Updated for above mentioned changes.
159 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
161         * c-common.c: Remove header include of tm_p.h.
162         * Makefile.in (c-common.o): Remove TM_P_H dependency.
164 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
166         * tree.h (struct tree_decl_map): New type.
167         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
168         (tree_decl_map_hash): New prototype.
169         (debug_expr_for_decl, value_expr_for_decl): Change into
170         tree_decl_map hashtab from tree_map.
171         (init_ttree): Adjust initialization.
172         (tree_decl_map_hash): New function.
173         (decl_debug_expr_lookup, decl_debug_expr_insert,
174         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
176 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
178         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
179         linker emulations.
180         * configure: Regenerate.
181         * config.in: Regenerate.
183         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
184         (X86_64_EMULATION): Define.
185         (TARGET_LD_EMULATION): Use them.
187         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
188         (SPARC64_EMULATION): Define.
189         (LINK_ARCH_SPEC): Use them.
191 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
193         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
194         smallest_mode_for_size for computing the precision types of new
195         graphite IVs.  Do not call lang_hooks.types.type_for_size.
197 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
199         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
200         information.
201         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
203 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
205         PR middle-end/44363
206         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
207         return false instead.
209 2010-06-02  Jan Hubicka  <jh@suse.cz>
211         PR middle-end/44295
212         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
213         create new cgraph node to check callee.
215 2010-06-02  Richard Guenther  <rguenther@suse.de>
217         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
219 2010-06-02  Richard Guenther  <rguenther@suse.de>
221         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
222         (lto_wrapper_cleanup): ... this.  Do not exit.
223         (fatal): Adjust.  Exit here.
224         (fatal_perror): Likewise.
225         (fatal_signal): New function.
226         (main): Set up signal handlers to cleanup temporary files.
227         * Makefile.in (lto-wrapper.o): Adjust dependencies.
229 2010-06-02  Richard Guenther  <rguenther@suse.de>
231         PR tree-optimization/44377
232         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
234 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
236         * config/s390/2097.md (z10_fhex): Remove insn reservation.
237         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
238         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
239         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
240         instruction.
241         * config/s390/s390.c: Don't accept fp zeros as valid constants
242         anymore.
244 2010-06-02  Jan Hubicka  <jh@suse.cz>
246         * bitmap.c (bitmap_descriptor): Add search_iter.
247         (bitmap_find_bit): Increment it.
248         (print_statistics): Print it.
250 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
252         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
253         instead of gimple_build_call_vec.  Delete unnecessary local variable.
255 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
257         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
258         change from yesterday.
260 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
262         * c-ada-spec.c: Clean up redundant includes.
264 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
266         * gimplify.c: Do not include except.h and optabs.h.
267         (gimplify_body): Do not initialize RTL profiling.
268         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
269         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
270         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
271         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
272         langhooks.h.
274         * tree-pretty-print.h: Include pretty-print.h.
275         * gimple-pretty-print.h: Include pretty-print.h.
277         * tree-pretty-print.c: Do not include diagnostic.h.
278         * tree-vrp.c: Likewise.
279         * tree-tailcall.c: Likewise
280         * tree-scalar-evolution.c: Likewise
281         * tree-ssa-dse.c: Likewise
282         * tree-chrec.c: Likewise
283         * tree-ssa-sccvn.c: Likewise
284         * tree-ssa-copyrename.c: Likewise
285         * tree-nomudflap.c: Likewise
286         * tree-call-cdce.c: Likewise
287         * tree-stdarg.c: Likewise
288         * tree-ssa-math-opts.c: Likewise
289         * tree-nrv.c: Likewise
290         * tree-ssa-sink.c: Likewise
291         * tree-browser.c: Likewise
292         * tree-ssa-loop-ivcanon.c: Likewise
293         * tree-ssa-loop.c: Likewise
294         * tree-parloops.c: Likewise
295         * tree-ssa-address.c: Likewise
296         * tree-ssa-ifcombine.c: Likewise
297         * tree-if-conv.c: Likewise
298         * tree-data-ref.c: Likewise
299         * tree-affine.c: Likewise
300         * tree-ssa-phiopt.c: Likewise
301         * tree-ssa-coalesce.c: Likewise
302         * tree-ssa-pre.c: Likewise
303         * tree-ssa-live.c: Likewise
304         * tree-predcom.c: Likewise
305         * tree-ssa-forwprop.c: Likewise
306         * tree-ssa-dce.c: Likewise
307         * tree-ssa-ter.c: Likewise
308         * tree-ssa-loop-prefetch.c: Likewise
309         * tree-optimize.c: Likewise
310         * tree-ssa-phiprop.c: Likewise
311         * tree-object-size.c: Likewise
312         * tree-outof-ssa.c: Likewise
313         * tree-ssa-structalias.c: Likewise
314         * tree-switch-conversion.c: Likewise
315         * tree-ssa-reassoc.c: Likewise
316         * tree-ssa-operands.c: Likewise
317         * tree-vectorizer.c: Likewise
318         * tree-vect-data-refs.c: Likewise
319         * tree-vect-generic.c: Likewise
320         * tree-vect-stmts.c: Likewise
321         * tree-vect-patterns.c: Likewise
322         * tree-vect-slp.c: Likewise
323         * tree-vect-loop.c: Likewise
324         * tree-ssa-loop-ivopts.c: Likewise
325         * tree-ssa-loop-im.c: Likewise
326         * tree-ssa-loop-niter.c: Likewise
327         * tree-ssa-loop-unswitch.c: Likewise
328         * tree-ssa-loop-manip.c: Likewise
329         * tree-ssa-loop-ch.c: Likewise
330         * tree-dump.c: Likewise
331         * tree-complex.c: Likewise
333         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
334         * tree-ssa-uninit.c: Likewise
335         * tree-ssa-threadupdate.c: Likewise
336         * tree-ssa-uncprop.c: Likewise
337         * tree-ssa-ccp.c: Likewise
338         * tree-ssa-dom.c: Likewise
339         * tree-ssa-propagate.c: Likewise
340         * tree-ssa-alias.c: Likewise
341         * tree-dfa.c: Likewise
342         * tree-cfgcleanup.c: Likewise
343         * tree-sra.c: Likewise
344         * tree-ssa-copy.c: Likewise
345         * tree-ssa.c: Likewise
346         * tree-profile.c: Likewise
347         * tree-cfg.c: Likewise
348         * tree-ssa-threadedge.c: Likewise
349         * tree-vect-loop-manip.c: Likewise
351         * tree-inline.c: Do not include diagnostic.h and expr.h.
352         Include rtl.h.
353         (copy_decl_for_dup_finish): Do not use NULL_RTX.
355         * tree-loop-linear.c: Do not include diagnostic.h, expr.h,
356         and optabs.h.
357         * tree-loop-distribution.c: Likewise.
359 2010-06-01  Jan Hubicka  <jh@suse.cz>
361         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
363 2010-06-01  Jan Hubicka  <jh@suse.cz>
365         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
366         remove return value.
367         (split_bbs_on_noreturn_calls) .... here.
368         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
369         * tree-flow.h (fixup_noreturn_call): New.
371 2010-06-01  Jan Hubicka  <jh@suse.cz>
373         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
375 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
377         * tree.h (build_nt_call_list): Delete.
378         * tree.c (build_nt_call_list): Delete.
380 2010-06-01  Jan Hubicka  <jh@suse.cz>
382         * fwprop.c: Make emit-rtl.h include last.
383         * rtlanal.c: Include emit-rtl.h.
384         * genautomata.c: Output emit-rtl include into insn-automata.c
385         * df-scan.c: Include emit-rtl.h.
386         * haifa-sched.c: Indlude emit-rtl.h.
387         * mode-switching.c: Indlude emit-rtl.h.
388         * graph.c: Indlude emit-rtl.h.
389         * sel-sched.c: Include emit-rtl.h.
390         * sel-sched-ir.c: Include emit-rtl.h.
391         * ira-build.c: Include emit-rtl.h.
392         * emit-rtl.c: (first_insn, last_insn): Remove defines.
393         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
394         Move to emit-rtl.h.
395         (set_new_first_and_last_insn, get_last_insn_anywhere, get_first_nonnote_insn,
396         get_last_nonnote_insn, try_split, make_call_insn_raw, add_insn_after,
397         add_insn_before, remove_insn, delete_insns_since, reorder_insns_nobb,
398         emit_insn_after_1, emit_debug_insn_before, emit_insn, start_sequence,
399         push_to_sequence, push_to_sequence2, push_topmost_sequence, end_sequence,
400         copy_insn): Use accessor functions.
401         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
402          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
403         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
404         mem_expr_equal_p): Move here from rtl.h
405         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
406         Move here from emit-rtl.c; make inline.
407         * cfglayout.h: Include emit-rtl.h
408         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
409          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
410         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
411         mem_expr_equal_p, get_insns, set_first-insn, get_last_insn, set_last_insn,
412         get_max_uid): Move to emit-rtl.h.
413         * reg-stack.c: Include emit-rtl.h
414         * dce.c: Likewise.
416 2010-06-01  Jan Hubicka  <jh@suse.cz>
418         * cgraph.h (tree_function_versioning): Update prototype.
419         (cgraph_function_versioning): Update prototype.
420         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
421         bitmap.
422         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy. 
423         (cgraph_materialize_clone, save_inline_function_body): Update use of
424         tree_function_versioning.
425         * tree-inline.c (copy_bb): Look for previous copied block to link after;
426         fix debug output.
427         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
428         (copy_body): Likewise.
429         (expand_call_inline): Update use of copy_body.
430         (tree_function_versioning): Update use of copy body; accept
431         blocks_to_copy and new_entry.
433 2010-06-01  Jan Hubicka  <jh@suse.cz>
435         * gegenrtl.c: Remove unnecesary prototypes.
436         (gendecl): Remove.
437         (gendef): Produce static inline.
438         (gencode): Remove.
439         (main): Do not decode parameters; generate header only.
440         * Makefile.in (genrtl.c): Remove.
442 2010-06-01  Jan Hubicka  <jh@suse.cz>
444         * tree-switch-conversion.c (build_one_array): Make it readonly.
446 2010-06-01  Richard Guenther  <rguenther@suse.de>
448         * optabs.c (init_optabs): Guard all accesses to reinit.
449         * ipa-pure-const.c (propagate): Fix another typo.
450         * opts.c (common_handle_option): Split assignment to bool.
451         * c-opts.c (c_common_handle_option): Likewise.
453 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
454             Matthew Gingell  <gingell@adacore.com>
456         * doc/invoke.texi: Mention -fdump-ada-spec.
457         * tree-dump.c (dump_files): Add ada-spec.
458         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
459         * tree-pass.h (tree_dump_index): Add TDI_ada.
460         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
461         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
462         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
463         * c-decl.c: Include c-ada-spec.h.
464         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
465         functions.
466         (c_write_global_declarations): Add handling of -fdump-ada-spec.
467         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
468         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
469         * c-ada-spec.h, c-ada-spec.c: New files.
471 2010-06-01  Richard Guenther  <rguenther@suse.de>
473         PR lto/43853
474         * ipa-pure-const.c (get_function_state): Hand back varying state
475         if we do not have one.
476         (has_function_state): New function.
477         (duplicate_node_data): Adjust.
478         (remove_node_data): Likewise.
479         (pure_const_write_summary): Likewise.
480         (propagate): Likewise.  Fix typo.
482 2010-06-01  Jan Hubicka  <jh@suse.cz>
484         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
485         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
486         (execute_all_ipa_transforms): Do not play with the states.
488 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
490         * config/arm/t-linux-androideabi: New.
491         * config.gcc (arm*-*-linux-androideabi): Include multilib configuration.
493 2010-06-01  Jan Hubicka  <jh@suse.cz>
495         * tree-inline.c (estimate_num_insns): For stdarg functions look
496         into call statement to count cost of argument passing.
498 2010-06-01  Kai Tietz
500         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
501         argument for fprintf.
502         (ix86_output_addr_diff_elt): Likewise.
503         (x86_function_profiler): Likewise.
504         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix
505         for x64 no-underscore.
506         (LPREFIX): Likewise.
507         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
509 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
511         PR target/44338
512         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
513         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
514         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
515         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
516         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
517         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
518         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
519         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
520         TARGET_FUSED_MADD.
522 2010-05-31  Jan Hubicka  <jh@suse.cz>
524         * tree.h (tree_range_check_failed): Declare noreturn.
526 2010-05-31  Jan Hubicka  <jh@suse.cz>
528         * gimple.c (gimple_call_builtin_p): New function.
529         * gimple.h (gimple_call_builtin_p): Declare.
530         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
531         to exit.
532         (execute_warn_function_return): BUILT_IN_RETURN is return.
533         (split_critical_edges): Return edges are not critical.
534         (is_ctrl_altering_stmt): Builtin_in_return is altering.
535         (gimple_verify_flow_info): Handle built_in_return.
536         (execute_warn_function_return): Handle built_in_return.
537         * ipa-pure-const.c (check_call): Ignore builtin_return.
539 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
541         PR middle-end/44337
542         * expr.c (expand_assignment): Don't store anything for out-of-bounds
543         array accesses with non-MEM.
545         PR tree-optimization/44182
546         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
547         newly needs to end a bb is followed by debug stmts, instead return
548         true from the function at the end.
549         (maybe_move_debug_stmts_to_successors): New function.
550         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
552 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
554         PR target/44161
555         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle
556         flag_pic.
558 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
560         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
561         for nested functions in non-optimized compilation.
563 2010-05-31  Richard Guenther  <rguenther@suse.de>
565         * tree-ssa-structalias.c (find_func_aliases): Handle
566         BUILT_IN_RETURN.
568 2010-05-30  Jan Hubicka  <jh@suse.cz>
570         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
572 2010-05-30  Richard Guenther  <rguenther@suse.de>
574         PR lto/42975
575         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
576         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
577         no longer needed.
579 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
581         * config/darwin.c (output_objc_section_asm_op): Add comment.
582         (name_needs_quotes): Add '_' to list of valid comment chars.
583         (machopic_output_function_base_name): Remove unneeded quotes.
584         (darwin_encode_section_info): Adjust asm whitespace.
585         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
586         (ASM_OUTPUT_LOCAL): Ditto.
587         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
588         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
589         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
590         
591 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
593         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
594         RS6000_OUTPUT_BASENAME unconditionally.
595         (rs6000_output_function_epilogue): Likewise.
597 2010-05-30  Jan Hubicka  <jh@suse.cz>
599         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
600         nodes.
602 2010-05-30  Richard Guenther  <rguenther@suse.de>
604         * tree-cfg.c (verify_gimple_assign_single): Implement
605         verification for COND_EXPR rhs.
607 2010-05-30  Jan Hubicka  <jh@suse.cz>
609         * cgraph.h (cgraph_dump_file): Declare.
610         * cgraphunit.c (cgraph_dump_file): Export.
611         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less
612         verbose.
614 2010-05-30  Jan Hubicka  <jh@suse.cz>
616         * dwarf2out.c (reference_to_unused,
617         premark_types_used_by_global_vars_helper): Avoid creation of new
618         varpool nodes.
620 2010-05-30  Jan Hubicka  <jh@suse.cz>
622         * cgraph.h (cgraph_node_cannot_return,
623         cgraph_edge_cannot_lead_to_return): New functions.
624         * cgraph.c (cgraph_node_cannot_return,
625         cgraph_edge_cannot_lead_to_return): Use them.
626         * ipa-pure-const.c (pure_const_names): New static var.
627         (check_call): Handle calls not leading to return.
628         (pure_const_read_summary): Dump info read.
629         (propagate): Dump info about propagation process; ignore side
630         effects of functions not leading to exit; fix handling of
631         pure functions.
633 2010-05-30  Jan Hubicka  <jh@suse.cz>
635         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
636         for tail call epilogues.
638 2010-05-30  Jan Hubicka  <jh@suse.cz>
640         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
641         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
642         dump files.
644 2010-05-29  Jan Hubicka  <jh@suse.cz>
646         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
647         node; remove references in node we no longer keep in cgrpah but need
648         body of.
650 2010-05-29  Jan Hubicka  <jh@suse.cz>
652         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
654 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
656         PR target/44165
657         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
659 2010-05-29  Jan Hubicka  <jh@suse.cz>
661         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
662         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
663         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
664         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
665         debug_names_replaced_by, debug_update_ssa): Likewise.   
666         * sbitmap.c (debug_sbitmap): Likewise.
667         * genrecog.c (debug_decision, debug_decision_list): Likewise.
668         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
669         debug_tree_chain): Likewise.
670         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
671         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
672         * optabs.c  (debug_optab_libfuncs): Likewise.
673         (verify_loop_closed_ssa): Likewise.
674         * value-prof.c (verify_histograms): Likewise.
675         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
676         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
677         * cfghooks.c (verify_flow_info): Likewise.
678         * fold-const.c (debug_fold_checksum): Likewise.
679         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
680         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
681         Likewise.
682         * omega.c (debug_omega_problem): Likewise.
683         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
684         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
685         * dominance.c (verify_dominators, debug_dominance_info,
686         debug_dominance_tree): Likewise.
687         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
688         * df_regno_debug, df_ref_debug,
689         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
690         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
691         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
692         * sel-sched.c (debug_state): Likewise.
693         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
694         Likewise.
695         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
696         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
697         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
698         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
699         Likewise.
700         * c-pretty-print.c (debug_c_tree): Likewise.
701         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
702         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
703         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
704         * ebitmap.c (debug_ebitmap): Likewise.
705         * function.c (debug_find_var_in_block_tree): Likewise.
706         * print-rtl.c (debug_rtx): Likewise.
707         (debug_rtx_count): Likewise.
708         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
709         * stor-layout.c (debug_rli): Likewise.
710         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
711         * tree-data-ref.c (debug_data_references,
712         debug_data_dependence_relations, debug_data_reference,
713         debug_data_dependence_relation, debug_rdg_vertex,
714         debug_rdg_component, debug_rdg): Likewise.
715         * tree-affine.c (debug_aff): Likewise.
716         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
717         Likewise.
718         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
719         * emit-rtl.c (verify_rtl_sharing): Likewise.
720         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
721         debug_value_expressions): Likewise.
722         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
723         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
724         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
725         * cfglayout.c (verify_insn_chain): Likewise.
726         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
727         debug_clast_stmt, debug_generated_program): Likewise.
728         * ggc-page.c (debug_print_page_list): Likewise.
729         * tree-ssa-ter.c (debug_ter): Likewise.
730         * graphite-dependences.c (debug_pddr): Likewise.
731         * sched-deps.c (debug_ds): Likewise.
732         * tree-ssa.c (verify_ssa): Likewise.
733         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
734         debug_scattering_functions, debug_iteration_domains, debug_pdr,
735         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
736         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
737         * tree-inline.c (debug_find_tree): Likewise.
738         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
739         debug_ppl_powerset_matrix): Likewise.
740         * var-tracking.c (debug_dv): Likewise.
741         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
742         * cfgloop.c (verify_loop_structure): Likewise.
743         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
744         * c-common.c (verify_sequence_points): Likewise.
745         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
746         debug_candidates, debug_rgn_dependencies): Likewise.
747         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
748         * debug_constraint_graph, debug_solution_for_var,
749         debug_sa_points_to_info): Likewise.
750         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
751         Likewie.
752         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
753         debug_loops, debug_loop, debug_loop_num): Likewise.
754         * passes.c (debug_pass): Likewise.
755         (dump_properties): Likewise; add cfglayout property.
756         (debug_properties): Likewise.
757         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
758         * varpool.c (debug_varpool): Likewise.
759         * regcprop.c (debug_value_data): Likewise.
760         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
761         debug_immediate_uses_for): Likewise.
763 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
765         PR bootstrap/44315
766         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
767         Filter out insn-flags.h.
769 2010-05-29  Jan Hubicka  <jh@suse.cz>
771         * cgraph.h (struct varpool_node_set_def,
772         struct cgraph_node_set_def): Remove unused AUX pointer.
773         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
774         VEC_empty macro.
776 2010-05-29  Jan Hubicka  <jh@suse.cz>
778         PR middle-end/44324
779         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
781 2010-05-29  Richard Guenther  <rguenther@suse.de>
783         * lto-streamer.c (cached_bp): New global variable.
784         (bitpack_create): Return the cached bitpack, if available.
785         (bitpack_delete): Clear and cache the bitpack, if appropriate.
786         (bp_pack_value): Remove redundant asserts.
788 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
790         PR middle-end/44306
791         * tree-if-conv.c (is_true_predicate): New.
792         (is_predicated): Use is_true_predicate.
793         (add_to_predicate_list): Same.  Do not use unshare_expr.
794         (add_to_dst_predicate_list): Same.
796 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
798         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
799         field on edges.
800         (predicate_bbs): Same.
801         (clean_predicate_lists): Same.
802         (find_phi_replacement_condition): Do not AND the predicate from
803         edge->aux.
805 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
807         PR bootstrap/44315
808         * Makefile.in (build/gencondmd.o): Add a missing `\'.
810 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
812         PR target/44261
813         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
814         (negdf2): Adjust expander pattern and use negdf2_slow.
815         (negsf2): Likewise.
817 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
819         * basic-block.h (struct control_flow_graph): Move last_label_uid field
820         up.
821         * df.h (struct df_base_ref): Move regno field up.
822         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
823         * expr.h (struct separate_ops): Move location field up.
824         * optabs.h (struct optab_d): Move libcall_basename field down.
825         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
826         * config/i386/i386.h (struct machine_function): Convert call_abi field
827         into a bitfield.  Move cfa field to the end of the structure.
829 2010-05-29  Jan Hubicka  <jh@suse.cz>
831         * varpool.c (varpool_get_node): Fix lookup.
833 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
835         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
836         RTL specific prototypes with #ifdef RTX_CODE.
837         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
838         * config/spu/t-spu-elf: Fix dependencies.
840         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
842 2010-05-29  Mike Stump  <mikestump@comcast.net>
844         PR bootstrap/44315
845         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
846         TM_H when building to avoid dependency loops.
848 2010-05-29  Jan Hubicka  <jh@suse.cz>
850         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
851         refs and body; not the whole node for masters of materialized
852         clones.
854 2010-05-29  Mike Stump  <mikestump@comcast.net>
856         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
858 2010-05-29  Jan Hubicka  <jh@suse.cz>
860         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
861         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
862         use of clone_function_name.
863         * cgraph.h (cgraph_create_virtual_clone, 
864         cgraph_function_versioning): update prototypes.
865         (clone_function_name): Declare.
866         * ipa-cp.c (ipcp_insert_stage): Update call of
867         cgraph_create_virtual_clone.
868         * omp-low.c (create_omp_child_function_name): Use
869         cgraph_create_virtual_clone.
870         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
871         (cgraph_function_versioning): Take SUFFIX argument; produce new name
872         and make decl local.
874 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
876         * vec.h: Include statistics.h
877         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
878         with VEC_H.
880 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
882         * c-lex.c: Do not include c-tree.h.
883         * c-pretty-print.c: Likewise.
884         * c-opts.c: Likewise.
885         * c-gimplify.c: Likewise.
886         * c-common.c: Likewise.
887         * c-dump.c: Likewise.  Include c-common.h.
889 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
891         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
892         before including diagnostic-core.h.
893         (c_cpp_error): New prototype moved from c-tree.h.
894         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
895         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
896         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
897         (c_cpp_error): Prototype moved to c-common.h.
898         * Makefile.in: Update dependency for C_COMMON_H.
900 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
902         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
903         * c-common.c (c_register_addr_space): Remove here.
904         * c-decl.c (c_register_addr_space): Re-add here.
906 2010-05-28  Mike Stump  <mikestump@comcast.net>
908         * config/darwin-c.c: Remove c-tree.h include.
910 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
912         * gcc.c: Include diagnostic.h.
913         (error_count): Remove.  All users changed to use errorcount.
914         (programname): Remove.  All users changed to use progname.
915         (fancy_abort, internal_error, fatal_error, error, warning, inform,
916         fnotice): Remove.
917         (execute): Don't include "Internal error" and bug reporting
918         information in argument of internal_error call.
919         (process_command): Don't increment error_count after calling
920         perror_with_name.
921         (input_filename): Rename to gcc_input_filename.  All users
922         changed.
923         (main): Call diagnostic_initialize.  Register delete_temp_files
924         with atexit.  Use seen_error to test for errors.
925         * gcc.h: Include diagnostic-core.h.
926         (fatal_error, error, warning): Remove.
927         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
928         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
929         (gcc.o): Update dependencies.
931 2010-05-28  Jeff Law  <law@redhat.com>
933         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
934         functions.
935         * ira.h (ira_bad_reload_regno): Declare
936         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
938         * ira-color.c (update_curr_costs): Free updated hard reg costs.
939         (ira_reassign_conflict_allocnos): Remove bogus asserts.
940         (allocno_reload_assign): Likewise.
942 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
944         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
945         build1_stat.
947 2010-05-28  Richard Guenther  <rguenther@suse.de>
949         PR lto/44312
950         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
951         Stream fixed-point constants mode.
952         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
953         and TYPE_PRECISION.
954         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
955         Stream fixed-point constants mode.
956         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
957         and TYPE_PRECISION.
959 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
961         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
962         only place it was called from.
963         (number_of_latch_executions): Do not return chrec_dont_know when the
964         may_be_zero is a runtime condition: instead, return a COND_EXPR
965         including the may_be_zero condition.
966         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
967         of nb_iterations.
968         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
969         COND_EXPRs.
971 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
973         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
974         generate COND_EXPRs for degenerate_phi_result.
976 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
978         PR middle-end/44293
979         * tree-if-conv.c (if_convertible_loop_p): Check the
980         if-convertibility of phi nodes in non predicated BBs.
982 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
984         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
986 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
988         PR driver/15303
989         * gcc.c (inform, warning, inform): New functions.
990         (fatal_ice): Rename to internal_error; change cmsgid parameter to
991         gmsgid.  All callers changed.
992         (notice): Rename to fnotice; add parameter fp.  All callers
993         changed.
994         (fatal_error): Rename to fatal_signal.  All users changed.
995         (fatal): Rename to fatal_error; change cmsgid parameter to
996         gmsgid.  All callers changed.
997         (process_command): Use warning instead of error for warnings.
998         (end_going_arg): Don't use _() around argument of error.
999         (do_spec_1): Use inform for message from %n specs.  Use warning
1000         instead of error for warnings.
1001         (main): Use inform for comparison messages.  Use warning for
1002         message about unused linker input.
1003         (error): Increment error_count.  Print "error: ".
1004         * gcc.h (fatal): Change to fatal_error.
1005         (warning): Declare.
1006         * config/darwin-driver.c (darwin_default_min_version): Use warning
1007         instead of fprintf for warnings.
1008         * cppspec.c (lang_specific_driver): Use fatal_error instead of
1009         fatal.
1011 2010-05-28  Julian Brown  <julian@codesourcery.com>
1013         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
1014         (*thumb2_addsi3_compare0_scratch): New.
1015         * config/arm/constraints.md (Pv): New.
1016         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
1017         for ARM mode only.
1018         (*addsi3_compare0_scratch): Likewise.
1020 2010-05-28  Jan Hubicka  <jh@suse.cz>
1022         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
1023         check.
1024         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
1025         only on local statics.
1027 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
1029         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
1031 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
1033         PR bootstrap/44314
1034         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
1035         (OPTION_GLIBC): Define.
1037 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
1039         PR debug/41048
1040         * dwarf2out.c (double_int_type_size_in_bits): New function.
1041         (round_up_to_align): Change first argument and return value to
1042         double_int.
1043         (field_byte_offset): Work internally on double_ints.
1045         PR target/43636
1046         * builtins.c (expand_movstr): Use a temporary pseudo instead
1047         of target even when target is not NULL and not const0_rtx, but
1048         fails movstr predicate.
1049         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
1051 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
1053         * final.c (rest_of_clean_state): Use %m in errors instead of
1054         strerror (errno).
1055         * gengtype.c (read_input_list, close_output_files): Use xstrerror
1056         instead of strerror.
1057         * toplev.c (process_options): Use %m in errors instead of strerror
1058         (errno).
1059         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
1060         (errno).
1062 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
1064         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
1065         (ix86_canonical_va_list_type): Make static.  Add declaration.
1066         (ix86_enum_va_list): Make static.  Reindent.
1067         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
1068         (ix86_canonical_va_list_type): Ditto.
1069         (ix86_enum_va_list): Ditto.
1071 2010-05-28  Richard Guenther  <rguenther@suse.de>
1073         * lto-wrapper.c (run_gcc): With -save-temps generate a
1074         user-visible ltrans filename.  Fixup ltrans unit numbering.
1076 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
1078         * c-common.c (c_common_nodes_and_builtins): Replace use
1079         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
1080         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
1081         to ix86_enum_va_list.
1082         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
1083         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
1084         (TARGET_ENUM_VA_LIST_P): Add hook description.
1085         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
1086         * target.h (gcc_target): Add enum_va_list hook.
1088         PR bootstrap/44299
1089         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
1090         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
1091         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
1093 2010-05-28  Alan Modra  <amodra@gmail.com>
1095         PR target/44266
1096         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1097         emit_library_call machinery to set up __tls_get_addr calls.
1099 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1101         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
1103 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
1105         Revert fix for PR c++/44188
1106         * c-common.c (is_typedef_decl): Revert the moving of  this
1107         definition ...
1108         * tree.c (is_typedef_decl): ... here.
1109         (typdef_variant_p): Revert the moving of this  definition
1110         here from gcc/cp/tree.c.
1111         * c-common.h (is_typedef_decl): Revert the moving of this
1112         declaration ...
1113         * tree.h (is_typedef_decl): ... here.
1114         (typedef_variant_p): Revert the moving of this  declaration here
1115         from gcc/cp/cp-tree.h
1116         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
1117         (gen_tagged_type_die): Revert the splitting out of ...
1118         (gen_type_die_with_usage): ... this function. Revert the anonymous
1119         tagged type handling.
1120         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
1121         typedefs naming anonymous tagged types.
1123 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
1125         * config/rs6000/rs6000-modes.def (PSImode): Delete.
1127 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
1129         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
1130         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
1131         throughout.
1132         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
1133         "xer" to "ca".
1134         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
1135         XER_REGS to CA_REGS throughout.
1136         * config/rs6000/rs6000.h: Same.
1137         (ADDITIONAL_REGISTER_NAMES): Add "xer".
1138         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
1139         that mode_iterator "P" is the size for arithmetic carries as well.
1140         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
1142 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
1144         PR bootstrap/44255
1145         * combine.c (struct rtx_subst_pair): Define unconditionally.
1146         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
1147         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
1148         Call make_compound_operation on pair->to.
1149         (propagate_for_debug): Don't call make_compound_operation here.
1150         Always use simplify_replace_fn_rtx.
1152 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
1154         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
1155         * config/xtensa/xtensa.c (override_options): Check
1156           TARGET_FORCE_NO_PIC and set flag_pic.
1157         * config/xtensa/xtensa.opt: Document -mforce-no-pic
1159 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
1161         PR bootstrap/44299
1162         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
1163         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
1165 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
1167         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
1168         toplev.h.
1169         * diagnostic.c: Don't include toplev.h.
1170         (progname): Define.  Moved from toplev.c.
1171         (seen_error): New function.
1172         * diagnostic.h: Include diagnostic-core.h.
1173         (diagnostic_t, emit_diagnostic): Don't declare here.
1174         * toplev.c (progname): Move to toplev.c.
1175         (emit_debug_global_declarations, compile_file, finalize,
1176         do_compile, toplev_main): Use seen_error.
1177         * toplev.h: Include diagnostic-core.h.
1178         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
1179         internal_error, warning, warning_at, error, error_n, error_at,
1180         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
1181         verbatim, fnotice, progname): Move to diagnostic-core.h.
1182         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
1183         (expand_builtin_expect): Use seen_error.
1184         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
1185         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
1186         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
1187         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
1188         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
1189         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
1190         errorcount for errors.
1191         * c-opts.c (c_common_finish): Use seen_error.
1192         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
1193         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
1194         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
1195         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
1196         (get_coverage_counts): Use seen_error.
1197         * dwarf2out.c (dwarf2out_finish): Use seen_error.
1198         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
1199         gimplify_body): Use seen_error.
1200         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
1201         * ipa-pure-const.c (gate_pure_const): Use seen_error.
1202         * ipa-reference.c (gate_reference): Use seen_error.
1203         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
1204         * lambda-code.c: Include diagnostic-core.h instead of
1205         diagnostic.h.
1206         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
1207         * lto-compress.c: Include diagnostic-core.h instead of
1208         diagnostic.h.
1209         * lto-section-in.c: Include diagnostic-core.h instead of
1210         diagnostic.h.
1211         * lto-streamer-out.c: Include diagnostic-core.h instead of
1212         diagnostic.h.
1213         * lto-streamer.c: Include diagnostic-core.h instead of
1214         diagnostic.h.
1215         (gate_lto_out): Use seen_error.
1216         * matrix-reorg.c: Include diagnostic-core.h instead of
1217         diagnostic.h.
1218         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
1219         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
1220         (gate_expand_omp, lower_omp_1): Use seen_error.
1221         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
1222         (rest_of_decl_compilation, rest_of_type_compilation,
1223         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
1224         * tree-cfg.c (label_to_block_fn): Use seen_error.
1225         * tree-inline.c (optimize_inline_calls): Use seen_error.
1226         * tree-mudflap.c (mudflap_finish_file): Use
1227         seen_error.
1228         * tree-optimize.c (gate_all_optimizations,
1229         gate_all_early_local_passes, gate_all_early_optimizations): Use
1230         seen_error.
1231         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
1232         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
1233         (varpool_remove_unreferenced_decls,
1234         varpool_assemble_pending_decls): Use seen_error.
1235         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
1236         (TOPLEV_H, DIAGNOSTIC_H): Update.
1237         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
1238         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
1239         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
1240         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
1241         coverage.o, lambda-code.o): Update dependencies.
1243 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
1245         PR c++/44188
1246         * c-common.c (is_typedef_decl): Move this definition ...
1247         * tree.c (is_typedef_decl): ... here.
1248         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
1249         * c-common.h (is_typedef_decl): Move this declaration ...
1250         * tree.h (is_typedef_decl): ... here.
1251         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
1252         * dwarf2out.c (is_naming_typedef_decl): New function.
1253         (gen_tagged_type_die): Split out of ...
1254         (gen_type_die_with_usage): ... this function. When an anonymous
1255         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
1256         is emitted for the typedef.
1257         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
1258         anonymous tagged types.
1260 2010-05-27  Jason Merrill  <jason@redhat.com>
1262         * print-tree.c (debug_vec_tree): New fn.
1263         (print_vec_tree): New fn.
1264         * tree.h: Declare them.
1265         * gdbinit.in (pvt): New command.
1267         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
1269         * gdbinit.in (pdd): New command.
1271 2010-05-27  Jan Hubicka  <jh@suse.cz>
1273         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
1274         (update_caller_keys): Return early if there are no callers;
1275         only update fibheap when decresing the key.
1276         (update_callee_keys): Avoid recursion.
1277         (decide_inlining_of_small_functions): When badness does not match;
1278         re-insert into fibheap.
1280 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
1282         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
1283         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
1284         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
1285         (ALL_HOST_OBJS): Now a union of the above two.
1286         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
1287         all files in ALL_HOST_FRONTEND_OBJS.
1288         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
1290         * c-common.c: Pretend to be a backend file by undefining
1291         IN_GCC_FRONTEND (still need rtl.h here).
1293 2010-05-27  Jan Hubicka  <jh@suse.cz>
1295         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
1296         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
1298 2010-05-27  Jan Hubicka  <jh@suse.cz>
1300         * sched-ebb.c: Rename struct deps to struct deps_desc.
1301         * ddg.c: Likewise.
1302         * sel-sched-ir.c: Likewise.
1303         * sched-deps.c: Likewise.
1304         * sched-int.h: Likewise.
1305         * sched-rgn.c: Likewise.
1307 2010-05-27  Jon Beniston <jon@beniston.com>
1309         PR 43726
1310         * config/lm32/lm32.h: Remove definition of 
1311         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
1313 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
1315         PR lto/44230
1316         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
1318 2010-05-27  Richard Guenther  <rguenther@suse.de>
1320         PR tree-optimization/44284
1321         * tree-vect-stmts.c (vectorizable_assignment): Handle
1322         sign-changing conversions as simple copy.
1324 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1326         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
1327         Bionic C library.
1328         (__gthread_active_p): Check for pthread_create if compiling against
1329         Bionic C library.
1331 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1333         Support compilation for Android platform.  Reimplement -mandroid.
1335         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
1336         (*android*): Set ANDROID_DEFAULT.
1337         (arm*-*-linux*): Include linux-android.h.
1338         (arm*-*-eabi*): Don't include previous -mandroid implementation.
1339         * config/arm/eabi.h: Remove, move Android-specific parts ...
1340         * config/linux-android.h: ... here.  New file.
1341         * config/arm/eabi.opt: Rename to ...
1342         * config/linux-android.opt: ... this.
1343         (mandroid): Allow -mno-android option.  Initialize based on
1344         ANDROID_DEFAULT.
1345         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
1346         Move logic to corresponding LINUX_TARGET_* macros.
1347         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
1348         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
1349         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
1350         Android definitions.
1351         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
1352         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
1353         Document.
1355 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
1357         Add support for Bionic C library
1359         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
1360         macro.
1361         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
1362         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
1364         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
1365         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
1366         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
1367         to support multiple C libraries.  Handle Bionic.
1368         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
1369         (BIONIC_DYNAMIC_LINKER64): Define.
1370         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
1371         Update.
1372         (TARGET_HAS_SINCOS): Enable for Bionic.
1374         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
1375         the last option specified on command line take effect.
1376         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
1377         (mbionic): New.
1378         (mglibc, muclibc): Update.
1380         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
1381         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
1382         DEFAULT_LIBC.
1384         * doc/invoke.texi (-mglibc, -muclibc): Update.
1385         (-mbionic): Document.
1387 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1389         * c-common.h (c_register_addr_space): Add prototype.
1390         (ADDR_SPACE_KEYWORD): Remove.
1391         * c-common.c (c_register_addr_space): New function.
1392         (c_addr_space_name): Reimplement.
1393         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
1395         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
1396         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
1398         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
1399         Remove TARGET_ADDR_SPACE_KEYWORDS.
1401 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
1403         * input.c: New file.
1404         * input.h (main_input_filename): Move declaration to toplev.h.
1405         * toplev.c (input_location, line_table): Move to input.c
1406         * toplev.h (main_input_filename): Move declaration from input.h.
1407         * tree.c (expand_location): Move to input.c.
1408         * Makefile.in (OBJS-common): Add input.o.
1409         (input.o): Add dependencies.
1411 2010-05-27  Richard Guenther  <rguenther@suse.de>
1413         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
1414         for non-existant files.
1415         (fork_execute): Mark args_name file as deleted.
1417 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
1419         PR bootstrp/44287
1420         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
1421         (narrow_signed_type): Likewise.
1423 2010-05-26  Jan Hubicka  <jh@suse.cz>
1425         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
1426         edge only when checking is enabled; check using former_clone_of;
1427         check inline clones too.
1428         (cgraph_materialize_clone): Record former_clone_of pointer.
1429         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
1430         combining redirections; dump args_to_skip bitmap
1431         (cgraph_materialize_all_clones): Do no redirection here.
1432         * ipa-inline.c (inline_transform): Do redirection here.
1433         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
1434         cheking only).
1436 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1438         * config/avr/avr-c.c: Do not include regs.h.
1439         Include cpplib.h for cpp_define and tree.h for c-common.h.
1440         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
1441         * config/avr/t-avr: Fix dependencies for avr-c.o.
1443 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1445         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
1446         string instead of SYMBOL_REF rtx.
1447         * rtl.h (set_stack_check_libfunc): Move prototype from here...
1448         * libfuncs.h: ...to here.  Adjust for explow.c change.
1450 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
1452         * pretty-print.c: Don't include ggc.h.
1453         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
1454         (identifier_to_locale): Use them for allocation.
1455         * pretty-print.h (identifier_to_locale_alloc,
1456         identifier_to_locale_free): Declare.
1457         * toplev.c (alloc_for_identifier_to_locale): New.
1458         (general_init): Set identifier_to_locale_alloc and
1459         identifier_to_locale_free.
1460         * Makefile.in (pretty-print.o): Update dependencies.
1462 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
1464         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
1465         pointer types if they have different alignment or mode.
1467 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
1469         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
1470         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
1471         * config/sparc/sparc-protos.h (function_value): Remove declaration.
1472         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
1473         sparc_function_value_regno_p): New functions.
1474         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
1475         TARGET_FUNCTION_VALUE_REGNO_P): Define.
1476         (function_value): Rename to...
1477         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
1478         argument to 'outgoing'.
1479         (function_arg_record_value, function_arg_union_value,
1480         function_arg_vector_value): Update comment.
1482 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
1484         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
1485         (fde_needed_for_eh_p): New predicate.
1486         (output_call_frame_info): Use it throughout to decide whether FDEs
1487         are needed for EH purpose.
1488         (dwarf2out_begin_prologue): Reorder assignments.
1490 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1492         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
1493         special case loop->header.
1494         (is_predicated): New.
1495         (if_convertible_loop_p): Call it.
1497 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1499         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
1500         iterator in parameter.  Do not generate code during the analysis.
1501         (tree_if_convert_cond_stmt): Removed.
1502         (tree_if_convert_stmt): Removed.
1503         (predicate_bbs): New.
1504         (if_convertible_loop_p): Call predicate_bbs.
1505         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
1506         now contains all the analysis part.
1508 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1510         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
1511         statements in the analysis part.
1512         (tree_if_convert_stmt): Update comment.
1513         (remove_conditions_and_labels): New.
1514         (combine_blocks): Call remove_conditions_and_labels.
1515         (tree_if_conversion): Update comment.
1517 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1519         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
1520         than 2 predecessors or more than 2 successors.
1522 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1524         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
1525         of loops in which the data dependence analysis fails.
1527 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1529         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
1530         CDI_POST_DOMINATORS.
1531         (tree_if_conversion): Same.
1533 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1535         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
1537 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
1539         * tree-if-conv.c: Update copyright years.  Fix comments.
1540         Fix indentation.
1542 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
1544         * builtin-types.def (BT_INT128): New primitive type.
1545         (BT_UINT128): Likewise.
1546         * c-common.c (c_common_r): Add __int128 keyword.
1547         (c_common_type_for_size): Handle __int128.
1548         (c_common_type_for_mode): Likewise.
1549         (c_common_signed_or_unsigned_type): Likewise.
1550         (c_common_nodes_and_builtins): Add builtin type
1551         if target supports 128-bit integer scalar.
1552         * c-common.h (enum rid): Add RID_INT128.
1553         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
1554         if target supports 128-bit integer scalar.
1555         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
1556         (finish_declspecs): Likewise.
1557         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
1558         (c_token_starts_declspecs): Likewise.
1559         (c_parser_declspecs): Likewise.
1560         (c_parser_attributes): Likewise.
1561         (c_parser_objc_selector): Likewise.
1562         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
1563         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
1564         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
1565         * tree.c (make_or_reuse_type): Likewise.
1566         (make_unsigned_type): Likewise.
1567         (build_common_tree_nodes_2): Likewise.
1568         * tree.h (enum integer_type_kind): Add itk_int128 and
1569         itk_unsigned_int128.
1570         (int128_integer_type_node): New define.
1571         (int128_unsigned_type_node): New define.
1572         * doc/extend.texi: Add documentation about __int128 type.
1574 2010-05-26  Richard Guenther  <rguenther@suse.de>
1576         * tree-ssa-sccvn.c (copy_nary): Adjust.
1577         (copy_phis): Rename to ...
1578         (copy_phi): ... this.  Adjust.
1579         (copy_references): Rename to ...
1580         (copy_reference): ... this.  Adjust.
1581         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
1582         result into the valid table.
1584 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1586         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
1587         insn-config.h, insn-codes.h, recog.h, and optabs.h.
1589 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1591         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
1593 2010-05-26  Richard Guenther  <rguenther@suse.de>
1595         * opts.c (common_handle_option): Handle OPT_Ofast.
1597 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
1599         * diagnostic.c: Don't include opts.h.
1600         (permissive_error_option): Define.
1601         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
1602         for classify_diagnostic.  Don't use memset for
1603         classify_diagnostic.  Initialize new and recently added fields.
1604         (diagnostic_classify_diagnostic): Use context->n_opts instead of
1605         N_OPTS.
1606         (diagnostic_report_diagnostic): Pass context parameter to
1607         diagnostic_report_warnings_p.  Use option_enabled and option_name
1608         hooks from context.
1609         (emit_diagnostic): Use permissive_error_option.
1610         (permerror): Likewise.
1611         * diagnostic.h: Don't include options.h.
1612         (struct diagnostic_context): Add n_opts, opt_permissive,
1613         inhibit_warnings, warn_system_headers, option_enabled and
1614         option_name fields.  Change classify_diagnostic to a pointer.
1615         * opts-diagnostic.h: New file.
1616         * opts.c: Include opts-diagnostic.h.
1617         (common_handle_option): Set global_dc fields for -Wfatal-errors,
1618         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
1619         (option_name): New function.
1620         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
1621         (c_common_handle_option): Set global_dc->permissive for
1622         -fpermissive.
1623         * c-common.c (c_cpp_error): Save and restore
1624         global_dc->warn_system_headers, not variable warn_system_headers.
1625         * toplev.c: Include opts-diagnostic.h.
1626         (general_init): Update call to diagnostic_initialize.  Set
1627         global_dc->show_column, global_dc->option_enabled and
1628         global_dc->option_name.
1629         (process_options): Don't set global_dc fields here.
1630         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
1631         (diagnostic.o, opts.o, toplev.o): Update dependencies.
1633 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
1635         * config/picochip/picochip.md (movsi): Split a movsi from a
1636         const after reload.
1638 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1640         * ggc-zone.c: Update copyright year.
1641         (poison_region): Mark memory for Valgrind as undefined before
1642         memset () call and inaccessible afterwards.
1643         (ggc_pch_total_size): Change type of i to int.
1645 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1647         * ggc-common.c (ggc_free_overhead): Allow empty slot.
1649 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
1651         * ggc-common.c: Update copyright year.
1652         (ggc_rlimit_bound): Remove prototype.  Compile only if
1653         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
1654         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
1655         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
1656         (ggc_min_heapsize_heuristic): Likewise.
1658 2010-05-26  Richard Guenther  <rguenther@suse.de>
1660         PR rtl-optimization/44164
1661         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
1662         no-common access-path disambiguation.
1663         (indirect_ref_may_alias_decl_p): Adjust.
1664         (indirect_refs_may_alias_p): Likewise.
1665         (refs_may_alias_p_1): Likewise.
1667 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1669         * c-typeck.c: Do not include expr.h.
1671 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
1673         * rtl.h (decl_default_tls_model): Move prototype from here...
1674         * output.h: ...to here.
1675         * c-decl.c: Do not include rtl.h.
1676         * c-pragma.c: Likewise.
1677         * c-parser.c: Likewise.
1678         * c-gimplify.c: Likewise.  And also not hard-reg-set.
1679         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
1680         FIXME note for it.  Add a FIXME note for expr.h.
1681         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
1682         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
1683         defined.
1685 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
1687         PR target/44199
1688         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
1689         or total_size is larger than red zone size for non-V4 ABI, emit a
1690         stack_tie resp. frame_tie insn before stack pointer restore.
1691         * config/rs6000/rs6000.md (frame_tie): New insn.
1693 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
1695         * function.h (struct function): Add can_throw_non_call_exceptions bit.
1696         * lto-streamer-in.c (input_function): Stream it in.
1697         * lto-streamer-out.c (output_function): Stream it out.
1698         * function.c (allocate_struct_function): Set it.
1699         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
1700         for flag_non_call_exceptions.
1701         * cfgbuild.c (control_flow_insn_p): Likewise.
1702         (make_edges): Likewise.
1703         * cfgexpand.c (expand_stack_alignment): Likewise.
1704         * combine.c (distribute_notes): Likewise.
1705         * cse.c (cse_extended_basic_block): Likewise.
1706         * except.c (insn_could_throw_p): Likewise.
1707         * gcse.c (simple_mem): Likewise.
1708         * ipa-pure-const.c (check_call): Likewise.
1709         (check_stmt ): Likewise.
1710         * lower-subreg.c (lower-subreg.c): Likewise.
1711         * optabs.c (emit_libcall_block): Likewise.
1712         (prepare_cmp_insn): Likewise.
1713         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
1714         * postreload.c (rest_of_handle_postreload): Likewise.
1715         * reload1.c (reload_as_needed): Likewise.
1716         (emit_input_reload_insns): Likewise.
1717         (emit_output_reload_insns): Likewise.
1718         (fixup_abnormal_edges): Likewise.
1719         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
1720         * store-motion.c (find_moveable_store): Likewise.
1721         * tree-eh.c (stmt_could_throw_p): Likewise.
1722         (tree_could_throw_p): Likewise.
1723         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1724         * config/arm/arm.c (arm_expand_prologue): Likewise.
1725         (thumb1_expand_prologue): Likewise.
1726         * config/rx/rx.md (cbranchsf4): Likewise.
1727         (cmpsf): Likewise.
1728         * config/s390/s390.c (s390_emit_prologue): Likewise.
1729         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
1730         (inline_forbidden_into_p): New predicate.
1731         (expand_call_inline): Use it to forbid inlining.
1732         (tree_can_inline_p): Likewise.
1734 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
1736         * config/i386/i386-c.c: Do not include rtl.h.
1737         * config/i386/t-i386: Update dependencies.
1739 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
1741         * attribs.c: Do not include rtl.h.
1742         * Makefile.in: Update dependencies.
1744 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
1746         * double-int.h (double_int_and): New.
1747         * combine.c (try_combine): Clean up, use double_int_* and
1748         immed_double_int_const functions.
1750 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1752         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
1753         stderr to /dev/null instead of grep -q.
1754         * configure: Regenerate.
1756 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
1758         * Makefile.in (EXCEPT_H): Fix typo.
1760 2010-05-25  Vladimir Makarov <vmakarov@redhat.com>
1762         * ira-build.c (update_conflict_hard_reg_costs): New.
1763         (ira_build): Call update_conflict_hard_reg_costs.
1765 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
1767         PR debug/41371
1768         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
1769         ENABLE_CHECKING.
1770         (intersect_loc_chains): Walk the s2var's loc_chain together
1771         with s1node chain as long as the locations are equal, don't
1772         call find_loc_in_1pdv in that case.
1774         PR debug/42801
1775         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
1776         (copy_bind_expr): ... instead of here.
1777         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
1778         if the block hasn't been remapped.
1779         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
1780         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
1782 2010-05-25  Richard Guenther  <rguenther@suse.de>
1784         PR middle-end/44069
1785         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
1786         out-of-bounds array accesses.
1788 2010-05-25  Richard Guenther  <rguenther@suse.de>
1790         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
1791         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
1792         (run_gcc): Re-organize to make cleanup easier.
1794 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1796         * config/s390/s390.c (optimization_options): Fix and move the
1797         flag_prefetch_loop_arrays override ...
1798         (override_options): ... here.
1800 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
1802         * diagnostic.c: Don't include plugin.h.
1803         (diagnostic_report_diagnostic): Don't handle plugins specially
1804         here.  Pass context to internal_error callback.
1805         * diagnostic.h (struct diagnostic_context): Add context parameter
1806         to internal_error callback.
1807         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
1808         * plugin.h (struct diagnostic_context): Declare.
1809         (warn_if_plugins, plugins_internal_error_function): Declare.
1810         * toplev.c (general_init): Set global_dc->internal_error.
1811         * Makefile.in (diagnostic.o): Update dependencies.
1813 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
1815         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
1816         * config/rs6000/t-darwin64: New.
1817         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
1818         build crt2.
1820 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
1822         PR 44203
1823         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
1824         match the original (and intended) behaviour before r159557.  This
1825         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
1826         in two ways.
1828 2010-05-25  Richard Guenther  <rguenther@suse.de>
1830         * doc/invoke.texi: Document -Ofast.
1831         * target.h (struct gcc_target): Add handle_ofast.
1832         * target-def.h (TARGET_HANDLE_OFAST): Add.
1833         (TARGET_INITIALIZER): Adjust.
1834         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
1835         * common.opt (Ofast): Add.
1837 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
1839         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
1840         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
1842 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
1844         PR target/43610
1845         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
1846         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
1847         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
1848         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
1850 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
1852         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
1853         DW_OP_minus with negated offset instead of DW_OP_plus.
1854         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
1856 2010-05-25  Wei Guozhi  <carrot@google.com>
1858         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
1859         tst instruction and a new alternative.
1860         * config/arm/constraints.md (Pu): New constraint.
1862 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
1864         * function.c (assign_stack_local_1): Initialize variable
1865         to avoid warning when bootstrapping at -O3.
1867 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
1869         * configure.ac (all_lang_makefiles): Remove everything related to it.
1870         * configure: Regenerate.
1871         * Makefile.in: Fix reference to ada Make-lang.in.
1872         Remove support for LANG_MAKEFILES.
1874 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
1875             Sandra Loosemore  <sandra@codesourcery.com>
1877         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
1878         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
1879         description.  Add arm_neon_fp16_ok.
1880         (Add Options): Add arm_neon and arm_neon_fp16.
1882 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
1884         * diagnostic.c: Don't include flags.h.
1885         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
1886         context parameters.  Check flags in the context passed as a parameter.
1887         (diagnostic_build_prefix): Add context parameter.  Check
1888         show_column flag in context.
1889         (diagnostic_action_after_output): Check fatal_errors flag in context.
1890         (diagnostic_report_current_module): Check show_column flag in context.
1891         (default_diagnostic_starter): Update call to
1892         diagnostic_build_prefix.
1893         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
1894         (emit_diagnostic): Pass context to permissive_error_kind.
1895         (permerror): Pass context to permissive_error_kind.
1896         * diagnostic.h (struct diagnostic_context): Add show_column,
1897         pedantic_errors, permissive and fatal_errors fields.
1898         (diagnostic_build_prefix): Update prototype.
1899         * langhooks.c
1900         * toplev.c (process_options): Set flags in global_dc from
1901         flag_show_column, flag_pedantic_errors, flag_permissive,
1902         flag_fatal_errors.
1903         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
1904         to diagnostic_build_prefix.
1905         * Makefile.in (diagnostic.o): Update dependencies.
1907 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1909         * config/i386/ia32intrin.h (__crc32q): Define only if
1910         __SSE4_2__ is defined.
1912 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
1914         PR target/44132
1915         PR middle-end/43602
1916         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
1917         DECL_VISIBILITY_SPECIFIED.
1918         (emutls_decl): Set DECL_PRESERVE_P and copy
1919         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
1920         (emutls_finalize_control_var): New callback.
1921         (emutls_finish): Finalize emutls control variables.
1922         * toplev.c (compile_file): Move the call to emutls_finish ()
1923         before varpool_assemble_pending_decls ().
1925 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
1927         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
1928         added to the preprocessor condition.
1930 2010-05-24  Paul Brook  <paul@codesourcery.com>
1932         * gengtype-lex.l: Add HARD_REG_SET.
1933         * expr.c (expand_expr_real_1): Record writes to hard registers.
1934         * function.c (rtl_data): Add asm_clobbers.
1935         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
1936         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
1937         Use crtl->asm_clobbers.
1939 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1941         * doc/makefile.texi (Makefile): Mention stages 'profile'
1942         and 'feedback' for profiledbootstrap.
1944 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
1946         PR target/44245
1947         * config/i386/i386.c (def_builtin): Properly check
1948         OPTION_MASK_ISA_64BIT.
1950 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
1952         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
1953         typedefs with different but compatible types.  Allow duplicate
1954         typedefs with the same type except for pedantic non-C1X, but give
1955         warning for variably modified types.
1956         * c-typeck.c (tagged_types_tu_compatible_p,
1957         function_types_compatible_p, type_lists_compatible_p,
1958         comptypes_internal): Add parameter different_types_p; set
1959         *different_types_p for different but compatible types.  All
1960         callers changed.
1961         (comptypes_check_different_types): New.
1962         * c-tree.h (comptypes_check_different_types): Declare.
1964 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
1966         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
1967         * jump.c: Include basic-block.h.
1968         * profile.c: Likewise.
1969         * tree-profile.c: Likewise.
1970         * coverage.c: Likewise.
1971         * basic-block.h (optimize_function_for_size_p): Move to function.h.
1972         (optimize_function_for_speed_p): Likewise.
1973         * function.h (optimize_function_for_size_p,
1974         optimize_function_for_speed_p): Moved here from basic-block.h.
1975         * Makefile.in: Update dependencies.
1977 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1979         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
1980         before calling make; allow override through $MAKE.
1981         * doc/invoke.texi (Optimize Options): Document override.
1983 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
1985         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
1986         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
1987         (rs6000_mode_dependent_address_ptr): Make static.
1988         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
1989         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
1990         Remove.
1992 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
1994         PR target/43869
1995         * config/i386/i386.c: Make sure that the correct regparm is passed.
1997 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
1999         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
2000         * sbitmap.c: ...to here to internalize sbitmap element access.
2001         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
2002         Explain why basic-block.h is included.
2003         * function.h: Include tm.h for CUMULATIVE_ARGS.
2004         * Makefile.in: Update dependencies.
2006 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
2008         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
2009         New core types.
2010         * sbitmap.h (struct sbitmap_def): Do not typedef here.
2011         * sbitmap.c: Include sbitmap.h.
2012         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
2013         hard-reg-set.h.  Split everything related to regsets out from here...
2014         * regset.h: ...to here.  New file.
2015         * df.h: Include regset.h and sbitmap.h.
2016         * tree-flow.h: Likewise.
2017         * cfgloop.h: Likewise.
2018         * except.h: Do not include sbitmap.h.  Include hashtab.h.
2019         * cgraph.h: Include vec.h and function.h.
2020         * reload.h (struct insn_chain): Change types of live_throughout
2021         and dead_or_set from regset_head to bitmap_head.
2022         (compute_use_by_pseudos): Be defined also if regset.h is not included.
2023         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
2024         spilled_regs from regset_head to bitmap_head to avoid dependency
2025         in regset.h.
2026         * sel-sched-ir.h: Include regset.h.
2027         * reload.c: Include df.h before reload.h.
2028         * caller-save.c: Likewise.
2029         * reload1.c: Likewise.
2030         * ira.c: Likewise.
2031         (mark_elimination): Update type of r to bitmap, consistent with
2032         DF_LR_IN.
2033         * dominance.c: Include bitmap.h.
2034         * modulo-sched.c: Include df.h.
2035         * cfganal.c: Include bitmap.h and sbitmap.h.
2036         * cfgbuild.c: Include sbitmap.h.
2037         * lcm.c: Include sbitmap.h.
2038         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
2039         * domwalk.c: Include sbitmap.h, exclude ggc.h.
2040         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
2041         * cselib.c: Include bitmap.h.
2042         * tree-optimize.c: Include regset.h.
2043         * stmt.c: Include bitmap.h.
2044         * Makefile.in: Update dependencies.
2046 2010-05-22  Jan Hubicka  <jh@suse.cz>
2048         * cgraph.h (struct varpool_node): Add same_comdat_group.
2049         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
2050         pointer.
2051         (output_varpool): Update call of lto_output_varpool_node.
2052         (input_varpool): Read same_comdat_group pointer.
2053         (input_varpool_1): Fixup same_comdat_group pointer.
2054         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
2055         group is needed, all are.
2056         * varpool.c (varpool_remove_node): Remove node from same comdat group
2057         linklist too.
2058         (varpool_analyze_pending_decls): Walk same comdat groups.
2060 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
2062         * rtl.h (union rtunion_def): Remove rt_bit member.
2063         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
2064         * print-rtl (print_rtx): Do not print the member.
2065         * gengtype.c (adjust_field_rtx_def): Do not handle it.
2066         * gengenrtl.c (type_from_format): Likewise.
2067         (accessor_from_format): Likewise.
2069 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
2071         * dbgcnt.c: Include toplev.h instead of errors.h.
2072         * ira-emit.c: Don't include errors.h.
2073         * ira.c: Include toplev.h instead of errors.h.
2074         * lto-compress.c: Include toplev.h instead of errors.h.
2075         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
2076         ira.o, dbgcnt.o): Update dependencies.
2078 2010-05-22  Richard Guenther  <rguenther@suse.de>
2080         * gimple.c (gimple_types_compatible_p): Check type qualifications
2081         before merging pointer to complete and pointer to incomplete type.
2082         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
2083         we use our own resolution algorithm.  The gold linker plugin
2084         doesn't do the job we want it to do here.
2086 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
2088         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
2089         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2090         (sparc_mode_dependent_address_p): New function.
2092 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
2094         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
2096         * timevar.c: Do not include any core headers.
2097         (timevar_print): De-i18n-ize.
2098         (print_time): Likewise.
2099         * timevar.h (timevar_push, timevar_pop): Make inline functions.
2101 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
2103         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
2104         langhooks-def.h.
2105         (diagnostic_initialize): Initialize x_data not last_function.
2106         (diagnostic_report_current_function): Move to tree-diagnostic.c.
2107         (default_diagnostic_starter): Call
2108         diagnostic_report_current_module not
2109         diagnostic_report_current_function.
2110         (diagnostic_report_diagnostic): Initialize x_data not
2111         abstract_origin.
2112         (verbatim): Likewise.
2113         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
2114         x_data.
2115         (struct diagnostic_context): Change last_function to x_data.
2116         (diagnostic_auxiliary_data): Replace with
2117         diagnostic_context_auxiliary_data and
2118         diagnostic_info_auxiliary_data.
2119         (diagnostic_last_function_changed, diagnostic_set_last_function,
2120         diagnostic_report_current_function): Move to tree-diagnostic.h.
2121         (print_declaration, dump_generic_node, print_generic_stmt,
2122         print_generic_stmt_indented, print_generic_expr,
2123         print_generic_decl, debug_c_tree, dump_omp_clauses,
2124         print_call_name, debug_generic_expr, debug_generic_stmt,
2125         debug_tree_chain, default_tree_printer): Move to
2126         tree-pretty-print.h.
2127         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
2128         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
2129         gimple-pretty-print.h.
2130         * pretty-print.c: Don't include tree.h
2131         (pp_base_format): Don't handle %K here.
2132         (pp_base_tree_identifier): Move to tree-pretty-print.c.
2133         * pretty-print.h (text_info): Change abstract_origin to x_data.
2134         (pp_tree_identifier, pp_unsupported_tree,
2135         pp_base_tree_identifier): Move to tree-pretty-print.h.
2136         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
2137         tree-pretty-print.h: New files.
2138         * tree-pretty-print.c: Include tree-pretty-print.h.
2139         (percent_K_format): New.  Moved from pretty-print.c.
2140         (pp_base_tree_identifier): Move from pretty-print.c.
2141         * c-objc-common.c: Include tree-pretty-print.h.
2142         (c_tree_printer): Handle %K here.
2143         * langhooks.c: Include tree-diagnostic.h.
2144         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
2145         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
2146         (default_tree_printer): Handle %K using percent_K_format.
2147         (general_init): Use default_tree_diagnostic_starter.
2148         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
2149         (free_lang_data): Use default_tree_diagnostic_starter.
2150         * c-pretty-print.c: Include tree-pretty-print.h.
2151         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
2152         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
2153         * dwarf2out.c: Include tree-pretty-print.h.
2154         * except.c: Include tree-pretty-print.h.
2155         * gimple-pretty-print.c: Include tree-pretty-print.h and
2156         gimple-pretty-print.h.
2157         * gimplify.c: Include tree-pretty-print.h.
2158         * graphite-poly.c: Include tree-pretty-print.h and
2159         gimple-pretty-print.h.
2160         * ipa-cp.c: Include tree-pretty-print.h.
2161         * ipa-inline.c: Include gimple-pretty-print.h.
2162         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
2163         * ipa-pure-const.c: Include gimple-pretty-print.h.
2164         * ipa-struct-reorg.c: Include tree-pretty-print.h and
2165         gimple-pretty-print.h.
2166         * ipa-type-escape.c: Include tree-pretty-print.h.
2167         * print-rtl.c: Include tree-pretty-print.h.
2168         * print-tree.c: Include gimple-pretty-print.h.
2169         * sese.c: Include tree-pretty-print.h.
2170         * tree-affine.c: Include tree-pretty-print.h.
2171         * tree-browser.c: Include tree-pretty-print.h.
2172         * tree-call-cdce.c: Include gimple-pretty-print.h.
2173         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
2174         * tree-chrec.c: Include tree-pretty-print.h.
2175         * tree-data-ref.c: Include tree-pretty-print.h and
2176         gimple-pretty-print.h.
2177         * tree-dfa.c: Include tree-pretty-print.h.
2178         * tree-if-conv.c: Include tree-pretty-print.h and
2179         gimple-pretty-print.h.
2180         * tree-inline.c: Include tree-pretty-print.h.
2181         * tree-into-ssa.c: Include tree-pretty-print.h and
2182         gimple-pretty-print.h.
2183         * tree-nrv.c: Include tree-pretty-print.h.
2184         * tree-object-size.c: Include tree-pretty-print.h and
2185         gimple-pretty-print.h.
2186         * tree-outof-ssa.c: Include tree-pretty-print.h and
2187         gimple-pretty-print.h.
2188         * tree-parloops.c: Include tree-pretty-print.h and
2189         gimple-pretty-print.h.
2190         * tree-predcom.c: Include tree-pretty-print.h and
2191         gimple-pretty-print.h.
2192         * tree-scalar-evolution.c: Include tree-pretty-print.h and
2193         gimple-pretty-print.h.
2194         * tree-sra.c: Include tree-pretty-print.h.
2195         * tree-ssa-address.c: Include tree-pretty-print.h.
2196         * tree-ssa-alias.c: Include tree-pretty-print.h.
2197         * tree-ssa-ccp.c: Include tree-pretty-print.h and
2198         gimple-pretty-print.h.
2199         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
2200         * tree-ssa-copy.c: Include tree-pretty-print.h and
2201         gimple-pretty-print.h.
2202         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
2203         * tree-ssa-dce.c: Include tree-pretty-print.h and
2204         gimple-pretty-print.h.
2205         * tree-ssa-dom.c: Include tree-pretty-print.h and
2206         gimple-pretty-print.h.
2207         * tree-ssa-dse.c: Include gimple-pretty-print.h.
2208         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
2209         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
2210         * tree-ssa-live.c: Include tree-pretty-print.h and
2211         gimple-pretty-print.h.
2212         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
2213         gimple-pretty-print.h.
2214         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
2215         gimple-pretty-print.h.
2216         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
2217         gimple-pretty-print.h.
2218         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
2219         gimple-pretty-print.h.
2220         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
2221         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
2222         * tree-ssa-operands.c: Include tree-pretty-print.h and
2223         gimple-pretty-print.h.
2224         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
2225         gimple-pretty-print.h.
2226         * tree-ssa-pre.c: Include tree-pretty-print.h and
2227         gimple-pretty-print.h.
2228         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
2229         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
2230         gimple-pretty-print.h.
2231         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
2232         gimple-pretty-print.h.
2233         * tree-ssa-sink.c: Include gimple-pretty-print.h.
2234         * tree-ssa-ter.c: Include tree-pretty-print.h and
2235         gimple-pretty-print.h.
2236         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
2237         * tree-ssa.c: Include tree-pretty-print.h and
2238         gimple-pretty-print.h.
2239         * tree-stdarg.c: Include gimple-pretty-print.h.
2240         * tree-switch-conversion.c: Include gimple-pretty-print.h.
2241         * tree-tailcall.c: Include tree-pretty-print.h and
2242         gimple-pretty-print.h.
2243         * tree-vect-data-refs.c: Include tree-pretty-print.h and
2244         gimple-pretty-print.h.
2245         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
2246         gimple-pretty-print.h.
2247         * tree-vect-loop.c: Include tree-pretty-print.h and
2248         gimple-pretty-print.h.
2249         * tree-vect-patterns.c: Include gimple-pretty-print.h.
2250         * tree-vect-slp.c: Include tree-pretty-print.h and
2251         gimple-pretty-print.h.
2252         * tree-vect-stmts.c: Include tree-pretty-print.h and
2253         gimple-pretty-print.h.
2254         * tree-vectorizer.c: Include tree-pretty-print.h.
2255         * tree-vrp.c: Include tree-pretty-print.h and
2256         gimple-pretty-print.h.
2257         * value-prof.c: Include tree-pretty-print.h and
2258         gimple-pretty-print.h.
2259         * var-tracking.c: Include tree-pretty-print.h.
2260         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
2261         (tree-diagnostic.o): New dependencies.
2262         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
2263         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
2264         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
2265         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
2266         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
2267         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
2268         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
2269         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
2270         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
2271         tree-ssa-address.o, tree-ssa-loop-niter.o,
2272         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
2273         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
2274         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
2275         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
2276         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
2277         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
2278         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
2279         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
2280         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
2281         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
2282         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
2283         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
2284         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
2285         tree-switch-conversion.o, var-tracking.o, value-prof.o,
2286         cfgexpand.o, pretty-print.o): Update dependencies.
2288 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
2290         * tree-ssa-structalias.c: Remove tm_p.h from include.
2292 2010-05-21  Jeff Law  <law@redhat.com>
2294         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
2296 2010-05-21  Jason Merrill  <jason@redhat.com>
2298         * tree-eh.c (cleanup_is_dead_in): New.
2299         (lower_try_finally): Don't generate a dead cleanup region.
2300         (lower_cleanup): Likewise.
2302 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
2304         PR debug/44223
2305         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
2306         unchain each use from the cyclic next_regno_use chain first.
2308 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
2310         * real: Do not include gmp.h, mpfr.h, and mpc.h.
2311         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
2312         (real_value_negate, real_value_abs): New prototypes.
2313         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
2314         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
2315         new include file for interface between MPFR and REAL_VALUE_TYPE.
2316         * real.c: Include realmpfr.h.
2317         (real_arithmetic2): Remove legacy function.
2318         (real_value_negate): New.
2319         (real_value_abs): New.
2320         (mfpr_from_real, real_from_mpfr): Move from here...
2321         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
2322         * builtins.c: Include realmpfr.h.
2323         * fold-const.c: Include realmpfr.h.
2324         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
2325         (fold_negate_const): Likewise.
2326         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
2327         * toplev.c: Include realmpfr.h.
2328         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
2329         and real_value_negate.
2330         * fixed-value.c (check_real_for_fixed_mode): Likewise.
2331         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
2332         (vfp3_const_double_index): Likewise.
2333         (arm_print_operand): Likewise.
2334         * Makefile.in: Update dependencies.
2336 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2338         * config/s390/s390.c (override_options): Increase the default
2339         of max-completely-peel-times.
2341 2010-05-21  Julian Brown  <julian@codesourcery.com>
2342             Mark Mitchell  <mark@codesourcery.com>
2344         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
2345         sibling calls for Thumb-1.
2346         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
2347         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
2348         Thumb-2.
2349         (*call_insn, *call_value_insn): Don't use for Thumb-2.
2350         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
2351         for Thumb-2.
2352         (return): New expander.
2353         (*arm_return): New name for ARM return insn.
2354         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
2356 2010-05-19  Joel Sherrill <joel.sherrill@oarcorp.com>
2358         * config.gcc (sparc64-*-rtems*): New target.
2360 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
2362         * tree.c (build_function_decl_skip_args): Fix grammar.
2363         (build_function_type_list_1): Fix typos, adjust formatting.
2365 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
2367         * tree.h: Include real.h and fixed-value.h as basic datatypes.
2368         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
2369         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
2370         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
2371         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
2372         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
2373         tree-pretty-print.c, tree-loop-distribution.c,
2374         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
2375         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
2376         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
2377         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
2378         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
2379         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
2380         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
2381         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
2382         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
2383         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
2384         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
2385         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
2386         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
2387         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
2388         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
2389         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
2390         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
2391         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
2392         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
2393         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
2394         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
2395         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
2396         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
2397         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
2398         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
2399         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
2400         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
2401         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
2402         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
2403         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
2404         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
2405         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
2406         config/score/score7.c, config/score/score.c, config/arm/arm.c,
2407         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
2408         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
2409         config/bfin/bfin.c: Clean up redundant includes.
2410         * Makefile.in: Update accordingly.
2412 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
2414         PR middle-end/44204
2415         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
2416         statement has no arguments.
2418 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
2420         PR/44139
2421         * varasm.c (emutls_decl): Merge attributes to new decl.
2423 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2425         PR middle-end/44101
2426         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
2427         around the uniquized constructor if its type requires a conversion.
2429 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
2431         PR debug/44205
2432         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
2433         at -O0 goto_locus of any of the incoming edges differs from
2434         goto_locus of outgoing edge, or gimple_location of any of the
2435         labels differs.
2437 2009-09-14  Vladimir Makarov <vmakarov@redhat.com>
2439         * ira.c (ira_non_ordered_class_hard_regs): Define.
2440         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
2441         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
2442         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
2443         cost of unaligned hard regs when allocating multi-reg pseudos.
2445 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
2447         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
2448         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
2449         for TARGET_NO_FLOAT.
2450         * config/mips/mips.c (mips_file_start): Expand conditional expression
2451         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
2452         (mips_override_options): Move -mno-float override -msoft-float and
2453         -mhard-float.
2454         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
2455         Condition(TARGET_SUPPORTS_NO_FLOAT).
2456         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
2457         __mips_no_float here.
2458         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
2459         (TARGET_SUPPORTS_NO_FLOAT): Define.
2460         * config/mips/sdemtk.opt: Delete.
2462 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
2464         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
2466 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
2468         PR target/43733
2469         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
2470         * configure: Regenerate.
2471         * config.in: Regenerate.
2472         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
2473         instead of sahf only for 64bit targets.
2475 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
2477         PR debug/44178
2478         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
2479         setup_ref_regs for DEBUG_INSNs.
2481 2010-05-20  Jan Hubicka  <jh@suse.cz>
2483         PR middle-end/44197
2484         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
2486 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
2488         PR bootstrap/43870
2489         * df-scan.c (df_ref_compare): Stabilize sort.
2491 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
2493         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
2494         argument.  Don't use DW_OP_piece if offset is non-zero,
2495         put offset into second DW_OP_bit_piece argument.
2496         (dw_sra_loc_expr): Adjust callers.  For memory expressions
2497         compute offset.
2499 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
2501         PR target/44202
2502         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
2503         settings for 16-bit-constant "addo" alternative.
2505 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
2507         * config/mips/mips-dsp.md (add<DSPV:mode>3,
2508         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
2510         PR target/43764
2511         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
2512         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
2513         Use it.
2515 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
2517         * diagnostic.c (FLOAT, FFS): Don't undefine.
2518         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
2519         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
2520         include ordering.
2522 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
2524         * combine.c (propagate_for_debug): Call make_compound_operation
2525         on the source value.
2526         (try_combine): When implementing a split chosen by find_split_point,
2527         either copy i2src or set it to null.  Assert that i2src is not null
2528         before substituting into CALL_INSN_FUNCTION_USAGE.
2530 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
2532         * double-int.h (double_int_ior): New function.
2533         * tree.h (build_int_cst_wide_type): Remove.
2534         * tree.c (build_int_cst_wide_type): Remove.
2535         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
2536         of build_int_cst_wide_type.
2537         * stor-layout.c (set_sizetype): (Ditto.).
2538         * dojump.c (do_jump): Use build_int_cstu instead of
2539         build_int_cst_wide_type.
2541 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
2543         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
2544         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
2545         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
2546         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
2547         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
2548         propagate the 'data' argument to copy_tree_r.
2549         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
2550         Propagate 'data' argument to walk_tree.
2551         (copy_if_shared): New function.
2552         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
2553         (unmark_visited): New function.
2554         (unshare_body): Call copy_if_shared instead of doing it manually.
2555         (unvisit_body): Call unmark_visited instead of doing it manually.
2557 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
2559         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
2560         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
2561         * hooks.c: Likewise.
2562         * target-def.h (TARGET_FOLD_BUILTIN): Define to
2563         hook_tree_tree_int_treep_bool_null.
2564         * target.h (struct gcc_target): Update signature of fold_builtin
2565         field.
2566         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
2567         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
2568         instead of the call expression.
2569         (fold_builtin_call_array): Pass n and argarray directly.
2570         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
2571         consing a list.
2572         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
2573         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
2574         `i' and use it in place of `arity'.
2575         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
2576         Dereference `args' directly.
2577         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
2579 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2581         * doc/sourcebuild.texi (Effective-Target Keywords): Document
2582         3dnow, sse3, sse2.
2583         (Directives): Document optional dg-require-effective-target
2584         selector.
2586 2010-05-19  Richard Guenther  <rguenther@suse.de>
2588         PR lto/44196
2589         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
2591 2010-05-19  Richard Guenther  <rguenther@suse.de>
2593         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
2594         * common.opt (fwhopr=): New.
2595         * opts.c (common_handle_option): Handle OPT_fwhopr.
2596         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
2597         * collect2.c (main): Match -fwhopr*.
2598         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
2599         Execute ltrans stage in parallel when jobs is bigger than 1.
2601 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2603         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
2604         pentiumpro on Solaris 8/x86 with Sun as.
2605         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
2606         hidden alias bug.
2607         (gcc_cv_as_ix86_quad): Check for .quad directive.
2608         * configure: Regenerate.
2609         * config.in: Regenerate.
2610         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
2612 2010-05-19  Martin Jambor  <mjambor@suse.cz>
2614         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
2615         also for indirect edges.  Actual printing moved...
2616         (ipa_print_node_jump_functions_for_edge): ...here.
2617         (ipa_compute_jump_functions): Renamed to
2618         ipa_compute_jump_functions_for_edge and made static.
2619         (ipa_compute_jump_functions): New function.
2620         (make_edge_direct_to_target): Check if the number of arguments on
2621         the newly direct edge is the same as the number of parametrs of
2622         the callee.
2623         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
2624         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
2625         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
2626         analysis functions unconditionally, call the new
2627         ipa_analyze_params_uses on the node instead of every edge.
2629 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
2631         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
2632         to tree.
2633         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
2634         also checks for a constant int vs.  non-constant but
2635         loop-invariant steps.
2636         (find_or_create_group): Change the sort algorithm to only consider
2637         steps that are constant ints.
2638         (idx_analyze_ref): Adopt code to handle a tree instead of a
2639         HOST_WIDE_INT for step.
2640         (gather_memory_references_ref): Handle tree instead of int and be
2641         prepared to see a NULL_TREE.
2642         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
2643         prefetches if the step cannot be calculated at compile time.
2644         (issue_prefetch_ref): Issue prefetches for non-constant but
2645         loop-invariant steps.
2647 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
2649         Revert:
2650         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
2652         * tree.h (build_call_list): Remove.
2653         * tree.c (build_call_list): Remove.
2655 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
2657         * tree.h (build_call_list): Remove.
2658         * tree.c (build_call_list): Remove.
2660 2010-05-18  Jan Hubicka  <jh@suse.cz>
2662         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
2664 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
2666         PR rtl-optimization/43332
2667         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
2669 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
2671         * tree.h (build_int_cstu): Implement as static inline.
2672         * tree.c (build_int_cstu): Remove function.
2673         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
2674         sign extended.
2676 2010-05-18  Richard Guenther  <rguenther@suse.de>
2678         PR lto/44143
2679         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
2680         (debug): Initialize from -save-temps.
2681         (collect_execute): Print command-line when verbose.
2682         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
2683         for ltrans invocation.  Produce -dumpbase flag again.
2684         (process_args): Remove.
2685         (main): Simplify.
2686         * collect2.c (maybe_run_lto_and_relink): Only pass object
2687         files to lto-wrapper.
2688         * gcc.c (LINK_COMMAND_SPEC): Likewise.
2690 2010-05-18  Jan Hubicka  <jh@suse.cz>
2692         * opts.c (decode_options): Do not disable whopr at ipa_cp.
2693         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
2695 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
2697         PR lto/44184
2698         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
2699         in a GIMPLE_ASM.
2700         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
2701         in a GIMPLE_ASM.
2703 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
2705         PR debug/41371
2706         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
2707         rtx_equal_p inline.
2709 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
2711         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
2712         lto-macho as lto_binary_reader.
2714         * darwin.c (darwin_asm_named_section): Do not add assembler comment
2715         after .section directive; just print it before the directive instead.
2717 2010-05-17  Jan Hubicka  <jh@suse.cz>
2719         * cgraph.c (cgraph_create_virtual_clone): Only check
2720         versionable_function_p when not in wpa and checking is enabled.
2721         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
2722         there are no more functions to materialize.
2724 2010-05-17  Jan Hubicka  <jh@suse.cz>
2726         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
2727         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
2728         New functions.
2729         (output_cgraph): Call output_cgraph_opt_summary.
2730         (input_cgrpah): Call input_cgraph_opt_summary.
2731         (output_cgraph_opt_summary_p, output_node_opt_summary,
2732         input_node_opt_summary, input_cgraph_opt_section): New functions.
2733         * lto-section-in.c (lto_section_name): Add cgraphopt.
2734         * tree-inline.c (tree_function_versioning): Handle parm_num.
2735         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
2736         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
2738 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
2740         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
2741         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
2742         the insn to prefetch ratio heuristic to loops with known trip count.
2744 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
2746         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
2747         (schedule_prefetches): Do not generate a prefetch if the unroll factor
2748         is far from what is required by the prefetch.
2750 2010-05-17  Jan Hubicka  <jh@suse.cz>
2752         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
2753         (ipcp_estimate_growth): Likewise.
2754         (ipcp_const_param_count): Likewise.
2755         (ipcp_insert_stage): Likewise.
2756         * ipa-prop.c (visit_load_for_mod_analysis): New function.
2757         (visit_store_addr_for_mod_analysis): Set used flag.
2758         (ipa_detect_param_modifications): Set used flag for SSE params;
2759         update use of walk_stmt_load_store_addr_ops.
2760         (ipa_print_node_params): Print used flag.
2761         (ipa_write_node_info): Stream used flag.
2762         (ipa_read_node_info): Likewise.
2763         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
2764         (ipa_is_param_used): New function.
2765         (lto_ipa_fixup_call_notes): Remove unused declaration.
2767 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2769         PR target/44074
2770         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
2771         * configure: Regenerate.
2772         * config.in: Regenerate.
2773         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
2774         !HAVE_AS_IX86_REP_LOCK_PREFIX.
2775         Don't emit whitespace.
2776         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
2777         (*rep_movsi): Likewise.
2778         (*rep_movsi_rex64): Likewise.
2779         (*rep_movqi): Likewise.
2780         (*rep_movqi_rex64): Likewise.
2781         (*rep_stosdi_rex64): Likewise.
2782         (*rep_stossi): Likewise.
2783         (*rep_stossi_rex64): Likewise.
2784         (*rep_stosqi): Likewise.
2785         (*rep_stosqi_rex64): Likewise.
2786         (*cmpstrnqi_nz_1): Use {%;} after repz.
2787         (*cmpstrnqi_nz_rex_1): Likewise.
2788         (*cmpstrnqi_1): Likewise.
2789         (*cmpstrnqi_rex_1): Likewise.
2790         (*strlenqi_1): Use {%;} after repnz.
2791         (*strlenqi_rex_1): Likewise.
2792         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
2793         (*sync_compare_and_swap<mode>): Likewise.
2794         (sync_double_compare_and_swap<mode>): Likewise.
2795         (*sync_double_compare_and_swapdi_pic): Likewise.
2796         (sync_old_add<mode>): Likewise.
2797         (sync_add<mode>): Likewise.
2798         (sync_sub<mode>): Likewise.
2799         (sync_<code><mode>): Likewise.
2801 2010-05-17  Martin Jambor  <mjambor@suse.cz>
2803         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
2804         otr_token and polymorphic.
2805         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
2806         (cgraph_clone_edge): Copy the above fields.
2807         * tree.c (get_binfo_at_offset): New function.
2808         * tree.h (get_binfo_at_offset): Declare.
2809         * ipa-prop.h (enum jump_func_type): Added known_type jump function
2810         type, reordered items, updated comments.
2811         (union jump_func_value): Added base_type field, reordered fields.
2812         (enum ipa_lattice_type): Moved down in the file.
2813         (struct ipa_param_descriptor): New field polymorphic.
2814         (ipa_is_param_polymorphic): New function.
2815         * ipa-prop.c: Include gimple.h and gimple-fold.h.
2816         (ipa_print_node_jump_functions): Print known type jump functions.
2817         (compute_complex_pass_through): Renamed to...
2818         (compute_complex_assign_jump_func): this.
2819         (compute_complex_ancestor_jump_func): New function.
2820         (compute_known_type_jump_func): Likewise.
2821         (compute_scalar_jump_functions): Create known type and complex ancestor
2822         jump functions.
2823         (ipa_note_param_call): New parameter polymorphic, set the corresponding
2824         flag in the call note accordingly.
2825         (ipa_analyze_call_uses): Renamed to...
2826         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
2827         variable var only in the block where it is used.
2828         (ipa_analyze_virtual_call_uses): New function.
2829         (ipa_analyze_call_uses): Likewise.
2830         (combine_known_type_and_ancestor_jfs): Likewise.
2831         (update_jump_functions_after_inlining): Implemented handling of a
2832         number of new jump function types combination.
2833         (print_edge_addition_message): Removed.
2834         (make_edge_direct_to_target): New function.
2835         (try_make_edge_direct_simple_call): Likewise.
2836         (try_make_edge_direct_virtual_call): Likewise.
2837         (update_call_notes_after_inlining): Renamed to...
2838         (update_indirect_edges_after_inlining): this.  Moved edge creation for
2839         indirect calls to try_make_edge_direct_simple_call, also calls
2840         try_make_edge_direct_virtual_call for virtual calls.
2841         (ipa_print_node_params): Changed the header message.
2842         (ipa_write_jump_function): Stream also known type jump functions.
2843         (ipa_read_jump_function): Likewise.
2844         (ipa_write_indirect_edge_info): Stream new fields in
2845         cgraph_indirect_call_info.
2846         (ipa_read_indirect_edge_info): Likewise.
2847         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
2848         GIMPLE_FOLD_H.
2850 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2852         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
2854 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
2856         * tree.h (CALL_EXPR_ARGS): Delete.
2857         (call_expr_arglist): Delete.
2858         * tree.c (call_expr_arglist): Delete.
2859         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
2860         targetm.fold_builtin.
2861         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
2862         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
2863         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
2864         arglist parameter.  Use CALL_EXPR_ARG.
2865         (picochip_expand_builtin_3op): Likewise.
2866         (picochip_expand_builtin_2opvoid): Likewise.
2867         (picochip_expand_array_get): Likewise.
2868         (picochip_expand_array_put): Likewise.
2869         (picochip_expand_array_testport): Likewise.
2870         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
2871         rather than arglist.
2872         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
2873         CALL_EXPR_ARGS.
2874         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
2875         than TREE_VALUE and TREE_CHAIN.
2876         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2877         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
2878         the arglist.
2880 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
2882         PR bootstrap/42347
2883         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
2884         to have no fallthru edge.
2886         PR middle-end/44102
2887         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
2888         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
2889         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
2890         add BARRIER after previous bb if needed.
2892 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
2894         * tree.c (build_function_type_list_1): Remove bogus assert condition.
2896 2010-05-17  Alan Modra  <amodra@gmail.com>
2898         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
2899         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
2900         with copy_reg rtx param.
2901         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
2902         Correct cases where code for ABI_V4 did not initialise the reg
2903         used to access frame.  Also leave frame_reg_rtx as sp for large
2904         frames that save no regs.
2906 2010-05-17  Martin Jambor  <mjambor@suse.cz>
2908         PR middle-end/44133
2909         * tree-sra.c (create_access_replacement): New parameter rename, mark
2910         the replaement for renaming only when it is true.
2911         (get_access_replacement): Pass true in the rename parameter of
2912         create_access_replacement.
2913         (get_unrenamed_access_replacement): New function.
2914         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
2915         replacement declaration from it.
2917 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
2919         * function.c (try_fit_stack_local, add_frame_space): New static
2920         functions.
2921         (assign_stack_local_1): Use them.  Look for opportunities to use
2922         space previously wasted on alignment.
2923         * function.h (struct frame_space): New.
2924         (struct rtl_data): Add FRAME_SPACE_LIST member.
2925         * reload1.c (something_was_spilled): New static variable.
2926         (alter_reg): Set it.
2927         (reload): Test it in addition to testing if the frame size changed.
2929 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
2931         * config/s390/s390.c: Define sane prefetch settings and activate
2932         flag_prefetch_loop_arrays on -O3.
2933         * config/s390/s390.h: Declare that read can use write prefetch.
2935 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
2937         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
2938         build.
2940 2010-05-16  Jan Hubicka  <jh@suse.cz>
2942         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
2943         function body; do not check stdarg field of struct function.
2945 2010-05-16  Jan Hubicka  <jh@suse.cz>
2947         * cgraph.c (dump_cgraph_node): Dump versionable flag.
2948         * cgraph.h (cgraph_local_info): Add versionable flag.
2949         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
2950         (ipcp_versionable_function_p): Use it.
2951         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
2952         versionable flag.
2954 2010-05-16  Jan Hubicka  <jh@suse.cz>
2956         * cgraph.c (cgraph_clone_node): Take decl argument and insert
2957         clone into hash when it is different from orig.
2958         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
2959         * cgraph.h (cgraph_clone_node): Update prototype.
2960         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
2961         (lto_cgraph_encoder_delete): Delete body map.
2962         (lto_cgraph_encoder_size): Move to header.
2963         (lto_cgraph_encoder_encode_body_p,
2964         lto_set_cgraph_encoder_encode_body): New.
2965         (lto_output_node): Do not take written_decls argument; output clone_of
2966         pointer.
2967         (add_node_to): Add include_body_argument; call
2968         lto_set_cgraph_encoder_encode_body on master of the clone.
2969         (add_references): Update use of add_node_to.
2970         (compute_ltrans_boundary): Likewise.
2971         (output_cgraph): Do not create written_decls bitmap.
2972         (input_node): Take nodes argument; stream in clone_of correctly.
2973         (input_cgraph_1): Update use of input_node.
2974         * lto-streamer-out.c (lto_output): Use encoder info to decide
2975         what bodies to output.
2976         * ipa-inline.c (cgraph_clone_inlined_nodes,
2977         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
2978         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
2979         (lto_cgraph_encoder_size): Define here.
2980         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
2981         Declare.
2983 2010-05-16  Richard Guenther  <rguenther@suse.de>
2985         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
2986         -fipa-type-escape.
2987         * ipa-type-escape.c (gate_type_escape_vars): Run when
2988         -fipa-struct-reorg runs.
2989         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
2990         * common.opt (fipa-type-escape): Remove.
2992 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
2994         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
2995         (decode_options): Likewise.
2996         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
2998 2010-05-16  Jan Hubicka  <jh@suse.cz>
3000         * ipa.c (function_and_variable_visibility): Also bring local all
3001         aliases.
3003 2010-05-16  Richard Guenther  <rguenther@suse.de>
3005         * alias.c (nonoverlapping_memrefs_p): Remove use of
3006         IPA type-escape information.
3008 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
3010         * c-common.c (c_common_reswords): Add _Static_assert for C.
3011         * c-parser.c (c_token_starts_declaration,
3012         c_parser_next_token_starts_declaration,
3013         c_parser_static_assert_declaration_no_semi,
3014         c_parser_static_assert_declaration): New.
3015         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
3016         Handle static assertions if static_assert_ok.
3017         (c_parser_external_declaration, c_parser_declaration_or_fndef,
3018         c_parser_compound_statement_nostart, c_parser_label,
3019         c_parser_for_statement, c_parser_objc_methodprotolist,
3020         c_parser_omp_for_loop): All callers of
3021         c_parser_declaration_or_fndef changed.
3022         (c_parser_struct_declaration): Handle static assertions.
3023         (c_parser_compound_statement_nostart): Use
3024         c_parser_next_token_starts_declaration and
3025         c_token_starts_declaration to detect start of declarations.
3026         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
3027         Likewise.
3029 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
3031         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
3032         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
3033         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3034         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3035         (mmix_function_outgoing_value): Rename to...
3036         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
3037         (mmix_function_value_regno_p): Make static.
3038         (mmix_libcall_value): New function.
3039         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
3040         mmix_function_value_regno_p): Remove declaration.
3042 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
3044         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
3045         BUILT_IN_ALLOCA if stack checking is enabled.
3047 2010-05-16  Richard Guenther  <rguenther@suse.de>
3049         * var-tracking.c (vars_copy_1): Inline ...
3050         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
3051         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
3052         (variable_merge_over_cur): Adjust.  Merge asserts.
3053         (variable_merge_over_src): Likewise.
3054         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
3055         (variable_post_merge_new_vals): Merge asserts.
3056         (variable_post_merge_perm_vals): Likewise.
3057         (find_mem_expr_in_1pdv): Likewise.
3058         (dataflow_set_different_value): Remove.
3059         (onepart_variable_different_p): Merge asserts.
3060         (variable_different_p): Likewise.
3061         (dataflow_set_different_1): Inline ...
3062         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
3063         (emit_notes_for_differences_1): Merge asserts.
3065 2010-05-16  Richard Guenther  <rguenther@suse.de>
3067         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
3068         * optabs.c (libfunc_decl_hash): Likewise.
3069         * varasm.c (emutls_decl): Likewise.
3071 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
3073         * c-decl.c: Don't include gimple.h.
3074         (merge_decls): Do not copy gimple_body.
3076 2010-05-15  Jason Merrill  <jason@redhat.com>
3078         * c.opt: Add -fnothrow-opt.
3080 2010-05-15  Jan Hubicka  <jh@suse.cz>
3082         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
3083         analyzed.
3084         * passes.c (ipa_write_summaries): Write all analyzed nodes.
3086 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
3088         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
3089         * Makefile.in: Add it.
3090         Fix all other Makefile dependencies for changes below.
3091         * tree.h: Include it instead of defining VEC primitives here.
3092         * gimple.h: Likewise.
3093         * rtl.h: Likewise.
3094         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
3095         * except.h: Include vecir.h, break dependence on tree.h.
3097         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
3098         Move from here...
3099         * tree-iterator.c: ...to here.
3100         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
3102         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
3103         tm_p.h.
3104         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
3105         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
3106         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
3107         tree-mudflap.h, and target.h.
3108         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
3109         predict.h, tree-inline.h, gimple.h, and langhooks.h.
3110         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
3111         Add FIXME for why gimple.h is still included (should be unnecessary
3112         since GCC 4.5 gimplification unit-at-a-time).
3113         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
3114         * c-pragma.c: Add FIXME for why function.h needs to be included just
3115         for cfun, at front-end level.
3116         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
3117         Do not include ggc.h, but include vecprim.h for VEC(char).
3118         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
3119         Explain why target.h is included.
3120         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
3121         Explain why gimple.h is included.
3122         * c-ppoutput.c: Do not include tm.h.
3123         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
3124         * c-parses.c: Explain why rtl.h is included, and that this (and only
3125         this) is also why tm.h must be included.
3126         Do not include except.h.
3127         * c-lang.c: Do not include ggc.h.
3129 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
3131         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
3133 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
3135         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
3136         unions by default if those structs and unions have no tags.  Do
3137         not condition anonymous struct and unions handling on flag_iso.
3138         Allow anonymous structs and unions for C1X.
3139         (finish_struct): Do not diagnose lack of named fields when
3140         anonymous structs and unions present for C1X.  Accept flexible
3141         array members in structure with anonymous structs or unions but no
3142         directly named fields.
3143         * doc/extend.texi (Unnamed Fields): Update.
3145 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
3147         * gimple.h (compare_field_offset): Rename into...
3148         (gimple_compare_field_offset): ...this.
3149         * gimple.c (compare_field_offset): Rename into...
3150         (gimple_compare_field_offset): ...this.  Compare the full access if
3151         the offset is self-referential.
3152         (gimple_types_compatible_p): Adjust for above renaming.
3153         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
3154         DECL_NONADDRESSABLE_P flag of fields before merging them.
3156 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
3158         * tree.h (ctor_to_list): Delete.
3159         * tree.c (ctor_to_list): Delete.
3161 2010-05-15  Jan Hubicka  <jh@suse.cz>
3163         * ipa-reference.c: Include toplev.h
3164         (is_proper_for_analysis): Only add to all_module_statics
3165         if it is allocated.
3166         (write_node_summary_p, stream_out_bitmap,
3167         ipa_reference_write_optimization_summary,
3168         ipa_reference_read_optimization_summary): New.
3169         (struct ipa_opt_pass_d pass_ipa_reference): Add
3170         optimization summary streaming.
3171         * lto-cgraph.c (referenced_from_this_partition_p,
3172         reachable_from_this_partition_p): New functions.
3173         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
3174         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
3175         * opts.c (decode_options): Enable ipa_reference.
3176         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
3177         * lto-streamer.h (referenced_from_this_partition_p,
3178         reachable_from_this_partition_p): Declare.
3180 2010-05-15  Richard Guenther  <rguenther@suse.de>
3182         PR tree-optimization/44038
3183         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
3184         taking the address of a V_C_E of a constant.
3186 2010-05-14  Jan Hubicka  <jh@suse.cz>
3188         * tree.h (memory_identifier_string): Remove.
3189         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
3190         (ipa_reference_global_vars_info_d): Remove statics_not_read and
3191         statics_not_written.
3192         (ipa_reference_optimization_summary_d): New structure.
3193         (ipa_reference_optimization_summary_t): New type and vector.
3194         (ipa_reference_vars_info_d): Embedd structures instead of using
3195         pointers.
3196         (reference_vars_to_consider): Remove out of GGC space.
3197         (module_statics_escape): Remove.
3198         (global_info_obstack): Rename to ...
3199         (optimization_summary_obstack): ... this one.
3200         (initialization_status_t): Remove.
3201         (memory_identifier_string): Remove.
3202         (get_reference_vars_info): Fix indenting.
3203         (set_reference_vars_info): Likewise.
3204         (get_reference_optimization_summary): New.
3205         (set_reference_optimization_summary): New.
3206         (get_global_reference_vars_info): Remove.
3207         (ipa_reference_get_read_global): Remove.
3208         (ipa_reference_get_written_global): Remove.
3209         (ipa_reference_get_not_read_global): Update.
3210         (ipa_reference_get_not_written_global): Update.
3211         (is_proper_for_analysis): Outlaw addressable.
3212         (propagate_bits): Update for new datastructures.
3213         (analyze_variable): Remove.
3214         (init_function_info): Update for new datastructures.
3215         (clean_function_local_data): Remove.
3216         (clean_function): Remove.
3217         (copy_global_bitmap): Use optimizations_summary_obstack.
3218         (duplicate_node_data): Duplicate optimization summary only.
3219         (remove_node_data): Remove optimization summary only.
3220         (generate_summary): Do not analyze variables; do not compute
3221         module_statics_escape; do not prune solutions by it.
3222         (read_write_all_from_decl): Fix typos in comments.
3223         (propagate): Doscover readonly and nonaddressable first;
3224         update for new datastructures; share global bitmaps.
3225         * ipa-reference.h (ipa_reference_get_read_global,
3226         ipa_reference_get_written_global): Remove.
3227         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
3228         * Makefile.in: Remove ipa-refereference from GT files.
3230 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
3232         PR debug/44112
3233         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
3234         for all SYMBOL_REF_DECLs.
3236 2010-05-14  Jan Hubicka  <jh@suse.cz>
3238         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
3239         (varpool_all_refs_explicit_p): New inline function.
3240         * ipa-reference.c: Update comment.
3241         (module_statics_written): Remove.
3242         (get_static_decl): Remove.
3243         (ipa_init): Do not initialize module_statics_written.
3244         (analyze_function): Likewise.
3245         (generate_summary): Likewise; do not compute module_statics_readonly
3246         and do not update variable flags.
3247         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
3248         * ipa.c: Inlucde flags.h
3249         (cgraph_local_node_p): New.
3250         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
3251         promote functions to local.
3252         (ipa_discover_readonly_nonaddressable_vars): New function.
3253         (function_and_variable_visibility): Use cgraph_local_node_p.
3254         * varpool.c (varpool_finalize_decl): Set force_output for
3255         DECL_PRESERVE_P vars.
3257 2010-05-14  Jan Hubicka  <jh@suse.cz>
3259         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
3261 2010-05-14  Richard Guenther  <rguenther@suse.de>
3263         PR tree-optimization/44119
3264         * tree-ssa-pre.c (eliminate): Properly mark replacement of
3265         a PHI node necessary.
3267 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
3269         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
3271 2010-05-14  Jason Merrill  <jason@redhat.com>
3273         PR c++/44127
3274         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
3275         (gimple_call_set_nothrow): New.
3276         * gimple.c (gimple_build_call_from_tree): Call it.
3277         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
3279         PR c++/44127
3280         * gimplify.c (gimplify_seq_add_stmt): No longer static.
3281         * gimple.h: Declare it.
3282         * gimple.c (gimple_build_eh_filter): No ops.
3284 2010-05-14  Jan Hubicka  <jh@suse.cz>
3286         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
3287         nodes already in queue.
3288         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
3289         re-enqueueing node.
3291 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
3293         PR debug/44136
3294         * cfgexpand.c (expand_debug_expr): If non-memory op0
3295         has BLKmode, return NULL.
3297 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
3299         * config.gcc: Add support for --with-cpu option for bdver1.
3300         * config/i386/i386.h (TARGET_BDVER1): New macro.
3301         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
3302         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
3303         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
3304         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
3305         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
3306         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
3307         (processor_type): Add PROCESSOR_BDVER1.
3308         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
3309         processor_type in config/i386/i386.h.
3310         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
3311         movaps <reg, reg> instead of movapd <reg, reg> when replacing
3312         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
3313         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
3314         to emit packed xor instead of packed double/packed integer
3315         xor for SSE and AVX when moving a zero value.
3316         * config/i386/sse.md: Add check for
3317         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
3318         movapd/movdqa for SSE and AVX.
3319         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
3320         single logical operations i.e and, or and xor instead of packed double
3321         logical operations for SSE and AVX.
3322         * config/i386/i386-c.c (ix86_target_macros_internal):
3323         Add PROCESSOR_BDVER1.
3324         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
3325         (has_fma4, has_xop): New.
3326         * config/i386/i386.c (bdver1_cost): New variable.
3327         (m_BDVER1): New macro.
3328         (m_AMD_MULTIPLE): Add m_BDVER1.
3329         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
3330         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
3331         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
3332         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
3333         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
3334         x86_tune_sse_partial_reg_dependency,
3335         x86_tune_sse_unaligned_load_optimal,
3336         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
3337         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
3338         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
3339         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
3340         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
3341         Enable/disable for bdver1.
3342         (processor_target_table): Add bdver1_cost.
3343         (cpu_names): Add bdver1.
3344         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
3345          processor_alias_table.
3346         (ix86_expand_vector_move_misalign): Change.
3347         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
3348         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
3349         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
3350         of movupd/movdqu for SSE and AVX.
3351         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
3352         (ix86_tune_adjust_cost): Add code for bdver1.
3353         (standard_sse_constant_opcode): Add check for
3354         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
3355         of packed double xor for SSE and AVX.
3357 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
3359         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
3360         result to unsigned.
3362 2010-05-14  Tristan Gingold  <gingold@adacore.com>
3364         * toplev.c (default_debug_hooks): Remove this variable.
3365         (process_options): Remove assignments to default_debug_hooks.
3367 2010-05-14  Martin Jambor  <mjambor@suse.cz>
3369         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
3370         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
3371         * langhooks.h (struct lang_hooks_for_decls): Removed field
3372         fold_obj_type_ref.
3373         * tree.c (free_lang_data): Remove assignment to
3374         lang_hooks.fold_obj_type_ref.
3375         * tree.def (OBJ_TYPE_REF): Update comment.
3377 2010-05-14  Richard Guenther  <rguenther@suse.de>
3379         PR tree-optimization/44124
3380         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
3382 2010-05-14  Alan Modra  <amodra@gmail.com>
3384         PR target/44075
3385         * config/rs6000/rs6000.c (struct machine_function): Reorder
3386         fields for better packing.  Add lr_save_state.
3387         (rs6000_ra_ever_killed): Return lr_save_state if set.
3388         (rs6000_emit_eh_reg_restore): Set lr_save_state.
3390 2010-05-13  Jan Hubicka  <jh@suse.cz>
3392         * varpool.c (decide_is_variable_needed): Drop code checking
3393         TREE_SYMBOL_REFERENCED.
3395 2010-05-13  Jan Hubicka  <jh@suse.cz>
3397         * final.c (output_addr_const): Do not call mark_decl_referenced.
3398         * cgraphunit.c (process_function_and_variable_attributes): Use
3399         mark_needed_node dirrectly.
3400         (assemble_thunk): Do not call mark_decl_referenced.
3402 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
3404         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
3406 2010-05-13  Jeff Law  <law@redhat.com>
3408         * ira-conflicts.c (print_allocno_conflicts): New function broken out
3409         from...
3410         (print_conflicts): Call print_allocno_conflicts.
3412 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
3414         PR debug/44104
3415         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
3416         if it is NULL.
3418 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
3420         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
3421         t-mingw-w64 or t-mingw-w32 for multilib configuration.
3422         * config/i386/t-mingw-w32: New.
3423         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
3425 2010-05-13  Martin Jambor  <mjambor@suse.cz>
3427         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
3428         gimple-fold.c).
3429         * gimple-fold.c (get_base_binfo_for_type): New function.
3430         (gimple_get_relevant_ref_binfo): Likewise.
3431         (gimple_fold_obj_type_ref_known_binfo): Likewise.
3432         (gimple_fold_obj_type_ref): Likewise.
3433         (fold_gimple_call): Simplify condition for folding virtual calls
3434         and call gimple_fold_obj_type_ref.
3435         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
3436         (gimple_fold_obj_type_ref_known_binfo): Likewise.
3438 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
3440         * config/rs6000/rs6000-protos.h
3441         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
3442         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
3443         (rs6000_debug_mode_dependent_address)
3444         (rs6000_mode_dependent_address_ptr): Likewise.
3446 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
3448         PR debug/43983
3449         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
3450         by SRA.
3451         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
3452         * tree-sra.c (create_access_replacement): Call unshare_expr before
3453         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
3454         * dwarf2out.c: Include tree-flow.h.
3455         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
3456         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
3457         Handle DW_OP_bit_piece.
3458         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
3459         construct_piece_list, adjust_piece_list): New functions.
3460         (add_var_loc_to_decl): Handle SRA optimized variables.
3461         Adjust for var_loc_note to loc field renaming.
3462         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
3463         in VAR_LOCATION note.
3464         (new_loc_descr_op_bit_piece): New function.
3465         (dw_sra_loc_expr): New function.
3466         (dw_loc_list): Use it.  Don't handle the last range after the
3467         loop, handle it inside of the loop.  Adjust for var_loc_note
3468         to loc field renaming.
3469         (add_location_or_const_value_attribute): Only special case
3470         single entry loc lists if loc is NOTE_P.  Adjust for
3471         var_loc_note to loc field renaming.
3472         (dwarf2out_var_location): Don't set newloc->var_loc_note
3473         and newloc->next here.
3475 2010-05-12  Jan Hubicka  <jh@suse.cz>
3477         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
3478         flag.
3479         * cgraph.h (cgraph_only_called_directly_p,
3480         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
3481         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
3482         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
3483         (assemble
3484         * ipa.c (cgraph_remove_unreachable_nodes): Use
3485         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
3486         flags.
3487         * tree-inline.c (copy_bb): Check address_taken flag.
3488         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
3489         externally_visible flag.
3491 2010-05-12  Jason Merrill  <jason@redhat.com>
3493         PR bootstrap/44048
3494         PR target/44099
3495         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
3496         * sdbout.c (plain_type_1): Likewise.
3497         * dwarf2out.c (is_base_type): Likewise.
3498         (gen_type_die_with_usage): Likewise.  Generate
3499         DW_TAG_unspecified_type for any LANG_TYPE.
3501 2010-05-12  Jan Hubicka  <jh@suse.cz>
3503         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
3504         indrect edges too.
3505         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
3506         (cgraph_clone_edge): Update.
3507         (cgraph_node_remove_callees): Remove indirect calls too.
3508         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
3509         (cgraph_create_indirect_edge): Update prototype.
3510         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
3511         is_proper_for_analysis.
3512         (add_new_function, visited_nodes, function_insertion_hook_holder,
3513         get_local_reference_vars_info, mark_address_taken, mark_address,
3514         mark_load, mark_store, check_asm_memory_clobber, check_call,
3515         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
3516         (ipa_init): Do not initialize visited_nodes;
3517         function_insertion_hook_holder.
3518         (analyze_variable): Rewrite.
3519         (analyze_function): Rewrite.
3520         (copy_local_bitmap): Remove.
3521         (duplicate_node_dat): Do not duplicate local info.
3522         (generate_summary): Simplify to only walk cgraph.
3523         (write_node_summary_p, ipa_reference_write_summary,
3524         ipa_reference_read_summary): Remove.
3525         (propagate): Do not remove function insertion;
3526         generate summary.
3527         (pass_ipa_reference): NULLify summary handling fields.
3528         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
3529         (input_edge): Input ecf_flags.
3530         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
3531         (update_indirect_edges_after_inlining): Ignore edges with unknown
3532         param.
3534 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
3536         * implicit-zee.c: New file.
3537         * tree-pass.h (pass_implicit_zee): Declare.
3538         * passes.c (init_optimization_passes): Add zee pass.
3539         * common.opt (fzee): New flag.
3540         * timevar.def (TV_ZEE): Define.
3541         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
3542         and beyond.
3543         * Makefile.in (implicit-zee.o): Add new build file.
3545 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
3546             Nathan Froyd  <froydnj@codesourcery.com>
3548         * c-common.c (sync_resolve_params): Remove write-only variable.
3550 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
3552         * target.h (struct gcc_target): Add mode_dependent_address_p field.
3553         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3554         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
3555         * targhooks.c (default_mode_dependent_address_p): New function.
3556         * targhooks.h (default_mode_dependent_address_p): Declare function.
3557         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
3558         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
3559         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
3560         target hook. Change return type to bool.
3561         * recog.h (mode_dependent_address_p): Change return type to bool.
3563 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
3564             Nathan Froyd  <froydnj@codesourcery.com>
3566         * tree-mudflap.c (build_function_type_0, build_function_type_1,
3567         build_function_type_2, build_function_type_3): Remove.
3568         (mudflap_init): Use build_function_type_list.
3570 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
3571             Nathan Froyd  <froydnj@codesourcery.com>
3573         * coverage.c (build_fn_info_value): Call build_constructor instead of
3574         build_constructor_from_list.
3575         (build_ctr_info_value): Likewise.
3576         (build_gcov_info): Likewise.
3578 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
3580         * tree.c (build_constructor): Compute TREE_CONSTANT for the
3581         resultant constructor.
3582         (build_constructor_single): Don't set TREE_CONSTANT.
3583         (build_constructor_from_list): Don't compute TREE_CONSTANT.
3585 2010-05-12  Jan Hubicka  <jh@suse.cz>
3587         * cgraph.h (struct varpool_node): Add aux.
3588         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
3589         * varpool.c (varpool_remove_node): Do not remove initializer.
3590         (varpool_reset_queue): Export.
3591         (varpool_finalize_decl): Volatile vars are forced to be output.
3592         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
3593         replaced decl.
3594         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
3595         process_references, varpool_can_remove_if_no_refs): New functions.
3596         (cgraph_remove_unreachable_nodes): Handle variables too.
3598 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
3600         PR target/44088
3601         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
3603 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
3605         PR middle-end/44085
3606         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
3607         change value of ORT_TASK.
3608         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
3609         (omp_notice_threadprivate_variable): New function.
3610         (omp_notice_variable): Call it for threadprivate variables.
3611         If enclosing ctx is a task, print enclosing task rather than
3612         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
3613         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
3614         if task has untied clause.
3616         PR debug/42278
3617         * dwarf2out.c (base_type_die): Don't add name attribute here.
3618         (modified_type_die): Instead of sizetype use
3619         its underlying original type.  If a DW_TAG_base_type doesn't
3620         have name added, add __unknown__.
3621         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
3622         always call force_type_die instead.
3624 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
3626         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
3627         for __stack_chk_guard.
3629 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
3631         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
3632         don't call start_source_file debug hook here...
3633         (finish_options): ... but here, after outputting predefined and
3634         command line defines and undefs.
3636         PR middle-end/44071
3637         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
3638         no fallthru edge.
3639         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
3640         optimizing away empty bb with no successors, move over its
3641         footer chain to fallthru predecessor.
3642         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
3643         (rtl_split_edge): For asm goto call patch_jump_insn even if
3644         splitting fallthru edge.
3646         PR c++/44059
3647         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
3648         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
3649         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3650         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
3651         on DW.ref.* decls.
3653         PR c++/44062
3654         * c-parser.c (c_parser_expression): Mark LHS of a comma
3655         expression as read if it is a decl, handled component or
3656         COMPOUND_EXPR with that on the RHS.
3657         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
3658         if it is a decl or handled component.
3660 2010-05-11  Jan Hubicka  <jh@suse.cz>
3662         * lto-symtab.c (lto_symtab_free): New function.
3663         * lto-streamer.h (lto_symtab_free): Declare.
3665 2010-05-11  Jan Hubicka  <jh@suse.cz>
3667         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
3668         that if function is needed it is reachable.
3669         (lto_output_node): See if it the function is reachable or referenced.
3670         (output_cgraph): Update call of lto_output_node.
3671         * lto-streamer.h (reachable_from_other_partition_p): Declare.
3673 2010-05-11  Jan Hubicka  <jh@suse.cz>
3675         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
3676         Mark as used.
3678 2010-05-11  Jan Hubicka  <jh@suse.cz>
3680         PR tree-optimize/44063
3681         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
3682         queue.
3683         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
3684         limits.
3685         (estimate_function_body_sizes): Compute sizes even when disregarding.
3687 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
3689         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
3691 2010-05-11  Jan Hubicka  <jh@suse.cz>
3693         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
3694         into every boundary.
3696 2010-05-11  Jan Hubicka  <jh@suse.cz>
3698         * matrix-reorg.c (matrix_reorg): Rebuild edges.
3700 2010-05-11  Jan Hubicka  <jh@suse.cz>
3702         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
3703         lto_streamer_cache_delete): Put nodes into heap.
3704         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
3705         heap.
3707 2010-05-11  Jan Hubicka  <jh@suse.cz>
3709         * cgraphbuild.c (cgraph_rebuild_references): New.
3710         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
3711         out extern inlines.
3712         * cgraph.h (cgraph_rebuild_references): Declare.
3713         * tree-inline.c (tree_function_versioning): Use it.
3714         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
3716 2010-05-11  Jan Hubicka  <jh@suse.cz>
3718         * cgraph.c: Include ipa-utils.h
3719         (cgraph_create_virtual_clone): Update references.
3720         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
3722 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
3724         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
3725         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
3726         cache size.
3728 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
3730         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
3732 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
3734         * gcc.c (execute): For -### don't quote arguments that
3735         contain just alphanumerics and _/-. characters.
3736         * doc/invoke.texi: Document that change for -###.
3738         PR debug/44023
3739         * df-problems.c (struct dead_debug): Add to_rescan field.
3740         (dead_debug_init): Clear to_rescan field.
3741         (dead_debug_finish): Rescan all debug insns in to_rescan
3742         bitmap and free the bitmap.
3743         (dead_debug_insert_before): Instead of rescanning debug insns
3744         immediately queue their rescanning until dead_debug_finish.
3745         (df_note_bb_compute): After dead_debug_add do continue instead
3746         of break.
3748 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
3750         PR debug/44028
3751         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
3752         clear also INSN_REG_USE_LIST.
3754 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3756         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
3758 2010-05-10  Jan Hubicka  <jh@suse.cz>
3760         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
3761         commited change.
3763 2010-05-10  Jan Hubicka  <jh@suse.cz>
3765         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
3766         Allocate encoders.
3767         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
3768         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
3769         (lto_streamer_cache_create): Init alloc pool.
3770         (lto_streamer_cache_delete): Free alloc pool.
3771         * lto-streamer.h: Include alloc pool.
3772         (lto_streamer_cache_d): Use alloc pool.
3773         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
3775 2010-05-10  Jan Hubicka  <jh@suse.cz>
3777         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
3778         * cgraphbuild.c: Include except.h
3779         (record_type_list, record_eh_tables): New function.
3780         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
3782 2010-05-10  Jan Hubicka  <jh@suse.cz>
3784         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
3785         __frame_dummy_init_array_entry, force_to_data): Attribute as used
3786         rather than unused.
3788 2010-05-10  Michael Matz  <matz@suse.de>
3790         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
3791         (can_reassociate_p): Use FLOAT_TYPE_P.
3792         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
3793         (vect_force_simple_reduction): ... this.
3794         * tree-parloops.c (gather_scalar_reductions): Use
3795         vect_force_simple_reduction.
3796         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
3797         vect_is_simple_reduction, add modify argument, if true rewrite
3798         "a-b" into "a+(-b)".
3799         (vect_is_simple_reduction, vect_force_simple_reduction): New
3800         functions.
3801         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
3803 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
3804             Vladimir Makarov  <vmakarov@redhat.com>
3806         PR rtl-optimization/44012
3807         * ira-build.c (remove_unnecessary_allocnos): Nullify
3808         regno_allocno_map of the removed allocno.
3810 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3812         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
3813         to /dev/null.
3814         * configure: Regenerate.
3816 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3818         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
3819         unused.
3820         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
3821         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
3822         support in Sun ld.
3823         * configure: Regenerate.
3825 2010-05-10  Richard Guenther  <rguenther@suse.de>
3827         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
3828         marked if the entry identifier is marked.
3830 2010-05-10  Richard Guenther  <rguenther@suse.de>
3832         * c-common.c (struct c_common_attributes): Add fnspec attribute.
3833         (handle_fnspec_attribute): New function.
3834         * gimple.h (gimple_call_return_flags): Declare.
3835         (gimple_call_arg_flags): Likewise.
3836         * gimple.c (gimple_call_arg_flags): New function.
3837         (gimple_call_return_flags): Likewise.
3838         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
3839         New argument flags.
3840         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
3841         return value flags.
3842         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
3843         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
3844         main work to ...
3845         (make_heapvar_for): ... this new function.
3846         (handle_rhs_call): Handle fnspec attribute argument specifiers.
3847         (handle_lhs_call): Likewise.
3848         (find_func_aliases): Adjust.
3850 2010-05-10  Richard Guenther  <rguenther@suse.de>
3852         PR tree-optimization/44050
3853         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
3855 2010-05-10  Wei Guozhi  <carrot@google.com>
3857         PR target/42879
3858         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
3860 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
3862         PR c/10676
3863         * c-typeck.c (lookup_field): Take a type directly.  Update
3864         recursive calls.
3865         (build_component_ref): Update call to lookup_field.
3866         (set_init_label): Use lookup_field to find initialized field.
3867         Handle returned list of fields like a sequence of designators.
3869 2010-05-09  Richard Guenther  <rguenther@suse.de>
3871         PR middle-end/44024
3872         * fold-const.c (tree_single_nonzero_warnv_p): Properly
3873         handle &FUNCTION_DECL.
3875 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
3877         PR c/4784
3878         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
3879         structures and unions recursively.
3880         (detect_field_duplicates): Move duplicate detection with a hash to
3881         detect_field_duplicates_hash.  Always use a hash if anonymous
3882         structures or unions are present.
3883         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
3884         give errors.
3886 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
3888         PR target/44046
3889         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
3890         detect Atom, Core 2 and Core i7.
3892 2010-05-09  Richard Guenther  <rguenther@suse.de>
3894         * gcc.c (store_arg): Handle temporary file deletion for
3895         joined arguments.
3897 2010-05-09  Richard Guenther  <rguenther@suse.de>
3899         PR middle-end/44043
3900         * ipa-inline.c (estimate_function_body_sizes): Return after
3901         disregarding inline limits.
3903 2010-05-09  Richard Guenther  <rguenther@suse.de>
3905         * gcc.c (store_arg): Revert last change.
3907 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
3909         PR middle-end/28685
3910         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
3911         (optimize_ops_list): Call it.
3913 2010-05-08  Richard Guenther  <rguenther@suse.de>
3915         PR tree-optimization/44030
3916         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
3917         NECESSARY flag if we propagate from a inserted expression.
3919 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
3921         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
3922         domain types as equal if they are both PLACEHOLDER_EXPRs.
3924 2010-05-08  Richard Guenther  <rguenther@suse.de>
3926         * lto-wrapper.c (run_gcc): Remove linker output from
3927         command line for LTRANS invocation.
3929 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
3931         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3932         lto-macho as lto_binary_reader.
3933         * target.h (struct gcc_target): New hooks lto_start and lto_end.
3934         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
3935         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
3936         in lto_start and lto_end calls.
3937         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
3938         magic numbers.
3939         (scan_prog_file): Update is_elf_or_coff call.
3940         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
3942         * collect2.c (main): Fix enum comparison.
3944         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
3945         Add prototypes.
3946         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
3947         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
3948         and TARGET_ASM_LTO_END.
3949         * darwin.c: Include obstack.h and lto-streamer.h.
3950         (lto_section_names_offset, lto_section_names_obstack,
3951         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
3952         global variables.
3953         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
3954         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
3955         to a temporary file.
3956         (darwin_asm_lto_end): New function.  Restore asm_out_file.
3957         (darwin_asm_named_section): For LTO sections, replace the name with
3958         the offset of the section name in a string table, and build this
3959         table.
3960         (darwin_file_start): Initialize global vars for LTO support.
3961         (darwin_file_end): If output to asm_out_file was redirected, append it
3962         to the proper asm_out_file here.  Add the section names section.
3964 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
3966         * c-pragma.c (pending_weak_d, pending_weak): New.
3967         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
3968         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
3969         handle_pragma_weak): Update the uses of pending_weaks.
3971 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3973         PR documentation/44016
3974         * doc/standards.texi (Standards): Link to unversioned
3975         cxx0x_status.html page.
3977 2010-05-07  Iain Sandoe <iains@gcc.gnu.org>
3979         PR target/43708
3980         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
3981         in addition to TREE_USED, to avoid "set but unused" warnings.
3983 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
3985         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
3986         (is_loop_prefetching_profitable): Do not insert prefetches
3987         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
3988         times the prefetch ahead distance.
3990 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
3992         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
3993         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
3994         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
3995         the unroll_factor.
3997 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
3999         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
4000         a diagnostic info when the insn-to-mem ratio is too small.
4002 2010-05-07  Richard Guenther <rguenther@suse.de>
4004         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
4005         the linker plugin.
4006         (store_arg): Queue temp_filename for deletion instead of
4007         the whole argument.
4009 2010-05-07  Richard Guenther  <rguenther@suse.de>
4011         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
4012         (run_gcc): Handle LTRANS phase invocation.
4013         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
4015 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
4017         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
4018         this is also meaningful on PARM_DECLs and RESULT_DECLs.
4020 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4022         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
4024 2010-05-07  Richard Guenther  <rguenther@suse.de>
4026         PR tree-optimization/44020
4027         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
4028         code when PRE is not yet initialized.
4030 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4032         * config/mips/dbxmdebug.h: Remove.
4033         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
4035 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
4037         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
4038         with null pointer and also warn about ordered comparison of zero with
4039         pointer if -Wextra.
4041 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
4043         * graphite-blocking.c
4044         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
4045         * graphite-clast-to-gimple.c
4046         (clast_to_gcc_expression): Same.
4047         (precision_for_value): Same.
4048         (precision_for_interval): Same.
4049         (gcc_type_for_interval): Same.
4050         (graphite_create_new_guard): Same.
4051         (compute_bounds_for_level): Same.
4052         (graphite_create_new_loop_guard): Same.
4053         * graphite-interchange.c
4054         (build_linearized_memory_access): Same.
4055         (pdr_stride_in_loop): Same.
4056         (memory_strides_in_loop_1): Same.
4057         (memory_strides_in_loop): Same.
4058         (extend_scattering): Same.
4059         (psct_scattering_dim_for_loop_depth): Same.
4060         (pbb_number_of_iterations): Same.
4061         * graphite-poly.h
4062         (debug_iteration_domains): Same.
4063         * graphite-ppl.c
4064         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
4065         (ppl_set_inhomogeneous_gmp): Same.
4066         (ppl_strip_loop): Same.
4067         (ppl_lexico_compare_linear_expressions): Same.
4068         (ppl_read_polyhedron_matrix): Same.
4069         (ppl_max_for_le_pointset): Same.
4070         * graphite-ppl.h
4071         (ppl_read_polyhedron_matrix): Same.
4072         (tree_int_to_gmp): Same.
4073         (gmp_cst_to_tree): Same.
4074         (ppl_set_inhomogeneous): Same.
4075         (ppl_set_inhomogeneous_tree): Same.
4076         (ppl_set_coef): Same.
4077         (ppl_set_coef_tree): Same.
4078         * graphite-sese-to-poly.c
4079         (build_pbb_scattering_polyhedrons): Same.
4080         (build_scop_scattering): Same.
4081         (scan_tree_for_params_right_scev): Same.
4082         (scan_tree_for_params): Same.
4083         (find_params_in_bb): Same.
4084         (find_scop_parameters): Same.
4085         (add_upper_bounds_from_estimated_nit): Same.
4086         (build_loop_iteration_domains): Same.
4087         (add_condition_to_domain): Same.
4088         (pdr_add_memory_accesses): Same.
4090 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
4092         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
4093         CLooG's value_* macros to their respective mpz_* counterparts.
4094         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
4095         (graphite_create_new_loop_guard): Same.
4096         * graphite-interchange.c (build_linearized_memory_access): Same.
4097         (pdr_stride_in_loop): Same.
4098         (memory_strides_in_loop_1): Same.
4099         (1st_interchange_profitable_p): Same.
4100         * graphite-poly.c (extend_scattering): Same.
4101         (psct_scattering_dim_for_loop_depth): Same.
4102         (pbb_number_of_iterations): Same.
4103         (pbb_number_of_iterations_at_time): Same.
4104         * graphite-poly.h (new_1st_loop): Same.
4105         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
4106         (oppose_constraint): Same.
4107         (insert_constraint_into_matrix): Same.
4108         (ppl_set_inhomogeneous_gmp): Same.
4109         (ppl_set_coef_gmp): Same.
4110         (ppl_strip_loop): Same.
4111         (ppl_lexico_compare_linear_expressions): Same.
4112         (ppl_max_for_le_pointset): Same.
4113         (ppl_min_for_le_pointset): Same.
4114         (ppl_build_realtion): Same.
4115         * graphite-ppl.h (gmp_cst_to_tree): Same.
4116         (ppl_set_inhomogeneous): Same.
4117         (ppl_set_inhomogeneous_tree): Same.
4118         (ppl_set_coef): Same.
4119         (ppl_set_coef_tree): Same.
4120         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
4121         (build_scop_scattering): Same.
4122         (add_value_to_dim): Same.
4123         (scan_tree_for_params_right_scev): Same.
4124         (scan_tree_for_params_int): Same.
4125         (scan_tree_for_params): Same.
4126         (find_params_in_bb): Same.
4127         (find_scop_parameters): Same.
4128         (add_upper_bounds_from_estimated_nit): Same.
4129         (build_loop_iteration_domains): Same.
4130         (create_linear_expr_from_tree): Same.
4131         (add_condition_to_domain): Same.
4132         (pdr_add_memory_accesses): Same.
4134 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
4135             Jason Merrill  <jason@redhat.com>
4137         * c-common.c (c_common_reswords): Add nullptr.
4138         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
4139         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
4140         (gen_type_die_with_usage): Likewise.
4141         * dbxout.c (dbxout_type): Likewise.
4142         * sdbout.c (plain_type_1): Likewise.
4144 2010-05-06  Jason Merrill  <jason@redhat.com>
4146         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
4147         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
4148         ret appropriately.
4149         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
4151         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
4152         stripping WITH_SIZE_EXPR.
4153         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
4154         change.
4156 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4158         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
4159         list of obsolete configurations.
4160         Disabled check for obsolete configurations.
4161         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
4162         Removed support for previous versions.
4163         * config/mips/iris.h: Removed.
4164         * config/mips/iris5.h: Removed.
4165         * config/mips/iris6.h: Merged old iris.h contents.
4166         (TARGET_IRIX): Removed.
4167         (DRIVER_SELF_SPECS): Removed mabi=32.
4168         (IDENT_ASM_OP): Removed undef.
4169         (STARTFILE_SPEC): Removed mabi=32.
4170         (ENDFILE_SPEC): Likewise.
4171         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
4172         (MACHINE_TYPE): Update for IRIX 6.5.
4173         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
4174         TARGET_IRIX by TARGET_IRIX6.
4175         (mips_file_start): Likewise.
4176         (mips_output_external): Remove IRIX 5/6 O32 support.
4177         (mips_output_function_prologue): Likewise.
4178         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
4179         TARGET_IRIX6.
4180         (TARGET_CPU_CPP_BUILTINS): Likewise.
4181         (TARGET_IRIX): Removed.
4182         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
4183         (MULTILIB_DIRNAMES): Removed 32.
4184         (MULTILIB_OSDIRNAMES): Removed ../lib.
4185         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
4186         (Specific, mips-sgi-irix5): Document removal.
4187         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
4188         Remove references to older IRIX 6 releases and the O32 ABI.
4190 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
4192         PR bootstrap/43994
4193         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
4194         instead of DF_REF_REAL_REG.
4196 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
4198         PR target/43888
4199         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
4200         handling to still return true for x64 targets.
4202 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
4204         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
4206 2010-05-06  Jan Hubicka  <jh@suse.cz>
4208         PR tree-optimization/43791
4209         * ipa-inline.c (update_caller_keys): Remove bogus
4210         disregard_inline_limits check.
4212 2010-05-06  Michael Matz  <matz@suse.de>
4214         PR tree-optimization/43984
4215         * tree-ssa-pre.c (inserted_phi_names): Remove.
4216         (inserted_exprs): Change to bitmap.
4217         (create_expression_by_pieces): Set bits, don't append to vector.
4218         (insert_into_preds_of_block): Don't handle inserted_phi_names.
4219         (eliminate): Don't look at inserted_phi_names, remove deleted
4220         insns from inserted_exprs.
4221         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
4222         (init_pre, fini_pre): Allocate and free bitmaps.
4223         (execute_pre): Insert insns on edges before elimination.
4225 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
4227         * tree.c (initializer_zerop): Handle STRING_CST.
4229 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4231         PR 40989
4232         * doc/invoke.texi (Wimplicit): Document as C only.
4233         * opts.c (common_handle_option): Add argument kind.
4234         (handle_option): Rename as read_cmdline_option. Factor out code to...
4235         (handle_option): ... here. New.
4236         (handle_options): Rename as read_cmdline_options.
4237         (decode_options): Update call.
4238         (set_option): Use option index instead of option pointer. Classify
4239         diagnostics correctly.
4240         (enable_warning_as_error): Call handle_option.
4241         * opts.h (set_option): Update declaration.
4242         (handle_option): Declare.
4243         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
4244         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
4245         * c-opts.c (set_Wimplicit): Delete.
4246         (c_family_lang_mask): New static constant.
4247         (c_common_handle_option): Add argument kind. Use handle_option
4248         instead of set_Wimplicit.
4249         (c_common_post_options): warn_implicit and warn_implicit_int
4250         are disabled by default.
4251         * c-common.c (warn_implicit): Do not define here.
4252         * c-common.h (warn_implicit): Do not declare here.
4253         (c_common_handle_option): Update declaration.
4254         * lto-opts.c (lto_reissue_options): Update call to set_option.
4256 2010-05-06  Richard Guenther  <rguenther@suse.de>
4258         PR tree-optimization/43571
4259         * domwalk.c (walk_dominator_tree): Walk the dominator
4260         sons in more optimal order.
4262 2010-05-06  Richard Guenther  <rguenther@suse.de>
4264         PR tree-optimization/43934
4265         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
4266         (stmt_cost): Likewise.
4267         (extract_true_false_args_from_phi): New helper.
4268         (determine_max_movement): For PHI nodes verify we can hoist them
4269         and compute their cost.
4270         (determine_invariantness_stmt): Handle PHI nodes.
4271         (move_computations_stmt): Likewise.  Hoist PHI nodes in
4272         if-converted form using COND_EXPRs.
4273         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
4274         (tree_ssa_lim): Likewise.
4275         * tree-flow.h (tree_ssa_lim): Adjust prototype.
4276         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
4278 2010-05-06  Richard Guenther  <rguenther@suse.de>
4280         PR tree-optimization/43987
4281         * tree-ssa-structalias.c (could_have_pointers): For possibly
4282         address-taken variables force pointers to be recorded.
4283         (create_variable_info_for_1): Likewise.
4284         (push_fields_onto_fieldstack): Pass in wheter all fields
4285         must have pointers.
4286         (find_func_aliases): Query types instead of vars whether
4287         they contain pointers where appropriate.
4289 2010-05-06  Jan Hubicka  <jh@suse.cz>
4291         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
4292         (record_reference, mark_address, mark_load, mark_store): Record
4293         references.
4294         (record_references_in_initializer): Update call of record_references.
4295         (rebuild_cgraph_edges): Remove all references before rebuiding.
4296         * cgraph.c (cgraph_create_node): Clear ref list.
4297         (cgraph_remove_node): Remove references.
4298         (dump_cgraph_node): Dump references.
4299         (cgraph_clone_node): Clone references.
4300         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
4301         (struct cgraph_node, varpool_node): Add ref_lst.
4302         * ipa-ref.c: New file.
4303         * ipa-ref.h: New file.
4304         * ipa-ref-inline.h: New file.
4305         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
4306         (referenced_from_other_partition_p): New function.
4307         (lto_output_varpool_node): Take set arugment; call
4308         referenced_from_other_partition.
4309         (lto_output_ref): New.
4310         (add_references): New.
4311         (output_refs): New.
4312         (output_cgraph): Compute boundary based on references; output refs.
4313         (output_varpool): Accept cgraph_node_set argument.
4314         (input_ref): New.
4315         (input_refs): New.
4316         (input_cgraph): Call input_refs.
4317         * lto-section-in.c (lto_section_name): Add refs.
4318         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
4319         (ipa-ref.o): New file.
4320         * varpool.c (varpool_node): Clear ipa ref list.
4321         (varpool_remove_node): Remove references.
4322         (dump_varpool_node): Dump references.
4323         (varpool_assemble_decl): Only compile finalized ones.
4324         (varpool_extra_name_alias): Initialize ref list.
4325         * lto-streamer.c (lto-get_section_name): Add .refs section.
4326         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
4327         (referenced_from_other_partition_p): Declared.
4329 2010-05-06  Ira Rosen  <irar@il.ibm.com>
4331         PR tree-optimization/43901
4332         * tree-vect-stmts.c (vectorizable_call): Assert that vector
4333         type is not NULL if it's transformation phase, and return
4334         FALSE if it's analysis.
4335         (vectorizable_conversion, vectorizable_operation,
4336         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
4338 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
4340         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
4341         Delete.
4342         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
4343         New define.
4344         * config/mips/mips-protos.h
4345         (mips_small_register_classes_for_mode_p): Delete prototype.
4347 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
4349         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
4350         * config/arm/arm.c (multiple_operation_profitable_p,
4351         compute_offset_order): New static functions.
4352         (load_multiple_sequence, store_multiple_sequence): Use them.
4353         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
4354         memory offsets, not register numbers.
4355         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
4357 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
4359         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
4360         (get_pending_sizes, put_pending_size, put_pending_sizes):
4361         Update the uses of pending_sizes.
4362         * c-decl.c (store_parm_decls): Likewise.
4363         * c-tree.h (struct c_arg_info): Likewise.
4364         * tree.h: Update the prototype for get_pending_sizes and
4365         put_pending_sizes.
4367 2010-05-05  Jason Merrill  <jason@redhat.com>
4369         PR debug/43370
4370         * c-common.c (handle_aligned_attribute): Respect
4371         ATTR_FLAG_TYPE_IN_PLACE.
4373         PR testsuite/43758
4374         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
4375         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4376         (TARGET_INITIALIZER): Use it.
4377         * c-common.c (attribute_takes_identifier_p): Call it.
4378         * c-common.h: Update prototype.
4379         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
4380         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
4382 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
4384         PR debug/43950
4385         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
4386         DW_ID_down_case for Fortran compilation units.
4388 2010-05-05  Jan Hubicka  <jh@suse.cz>
4390         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
4391         handle aliases.
4393 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
4395         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
4396         a variable-sized RESULT_DECL.
4398 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
4400         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
4402 2010-05-05  Jason Merrill  <jason@redhat.com>
4404         PR c++/43787
4405         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
4406         returns GS_OK.
4407         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
4409 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
4410             Jakub Jelinek  <jakub@redhat.com>
4412         PR debug/43478
4413         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
4414         (dead_debug_init, dead_debug_finish): New functions.
4415         (dead_debug_add, dead_debug_insert_before): Likewise.
4416         (df_note_bb_compute): Initialize a dead_debug object, add dead
4417         debug uses to it, insert debug bind insns before death insns,
4418         reset debug insns that refer to pending uses at the end.
4419         * rtl.h (make_debug_expr_from_rtl): New prototype.
4420         * varasm.c (make_debug_expr_from_rtl): New function.
4422 2010-05-05  Jan Hubicka  <jh@suse.cz>
4424         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
4425         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
4426         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
4427         lto_varpool_encoder_deref, lto_varpool_encoder_size,
4428         lto_varpool_encoder_encode_initializer_p,
4429         lto_set_varpool_encoder_encode_initializer): New functions.
4430         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
4431         call output_varpool.
4432         (input_varpool_node): Do not always set analyzed.
4433         (input_cgraph_1): Return vector of cgraph nodes.
4434         (input_varpool_1): Return vector of varpools.
4435         (input_cgraph): Free the vectors.
4436         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
4437         output only initializers needed.
4438         (lto_output): Only call output_cgraph.
4439         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
4440         * lto-section-out.c (lto_new_out_decl_state): Initialize
4441         state->varpool_node_encoder.
4442         * lto-streamer.h (lto_varpool_encoder_d): New.
4443         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
4444         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
4445         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
4446         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
4447         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
4448         Declare.
4449         (output_varpool, input_varpool): Remove declarations.
4451 2010-05-05  Jan Hubicka  <jh@suse.cz>
4453         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
4454         with body can prevail.
4456 2010-05-05  Jan Hubicka  <jh@suse.cz>
4458         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
4459         size.
4461 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4463         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
4465         * gengtype.h (erro_at_line): Constify pos argument.
4467         * gengtype.c: Include hashtab.h.
4468         (enum gc_used): Document GC_MAYBE_POINTED_TO.
4469         (error_at_line): Constify pos argument.
4470         (do_typedef): Initialize p->opt field.
4471         (get_file_gtfilename): Fix comment typo.
4472         (struct walk_type_data): Constify line field.
4473         (get_output_file_for_structure): New function.
4474         (write_local_func_for_structure): Constify orig_s argument.
4475         Use get_output_file_for_structure.
4476         (write_func_for_structure): Use get_output_file_for_structure.
4477         (INDENT): New define.
4478         (dump_pair, dump_type, dump_type_list, dump_typekind)
4479         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
4480         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
4481         functions.
4482         (seen_types): New variable.
4483         (main): New variable do_dump.  Process "-d" command line option.
4484         Call dump_everything if dump requested.
4486 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
4488         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
4489         in a temporary instead of invoking the macro multiple times.
4490         (track_expr_p): Likewise.
4492 2010-05-04  Neil Vachharajani <nvachhar@google.com>
4494         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
4495         per new semantics.
4496         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
4497         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
4498         conditions for printing notes.
4499         * common.opt (-Wcoverage-mismatch): Allow negative, default to
4500         true, update documentation.
4501         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
4503 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
4505         PR c/43981
4506         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
4507         on dimen.
4509 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
4511         PR target/43799
4512         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
4513         (*sse_prologue_save_insn1): Likewise.
4514         (SSE prologue save splitter): Likewise.
4516 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
4518         * tree.c (free_lang_data_in_one_sizepos): New inline function.
4519         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
4520         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
4521         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
4522         all decls.  Call it on DECL_FIELD_OFFSET of fields.
4523         (find_decls_types_r): Follow DECL_VALUE_EXPR.
4524         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
4526 2010-05-04  Martin Jambor  <mjambor@suse.cz>
4528         * tree-sra.c (build_access_from_expr_1): The first parameter type
4529         changed to simple tree.
4530         (build_access_from_expr): Likewise, gsi parameter was eliminated.
4531         (scan_assign_result): Renamed to assignment_mod_result, enum elements
4532         renamed as well.
4533         (build_accesses_from_assign): Removed all parameters except for a
4534         simple gimple statement.  Now returns a simple bool.
4535         (scan_function): All non-analysis parts moved to separate functions
4536         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
4537         parameters and updated both callers.
4538         (sra_modify_expr): Removed parameter data.
4539         (sra_modify_function_body): New function.
4540         (perform_intra_sra): Call sra_modify_function_body to modify the
4541         function body.
4542         (replace_removed_params_ssa_names): Parameter data changed into
4543         adjustments vector.
4544         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
4545         changed the parameter dont_convert to convert with the opposite
4546         meaning.
4547         (sra_ipa_modify_assign): Parameter data changed into adjustments
4548         vector, return value changed to bool.
4549         (ipa_sra_modify_function_body): New function.
4550         (sra_ipa_reset_debug_stmts): Updated a comment.
4551         (modify_function): Use ipa_sra_modify_function_body to modify function
4552         body.
4554 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
4556         PR middle-end/43671
4557         * alias.c (true_dependence): Handle the same VALUE in x and mem.
4558         (canon_true_dependence): Likewise.
4559         (write_dependence_p): Likewise.
4561 2010-05-04  Jan Hubicka  <jh@suse.cz>
4563         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
4564         * cgraphbuild.c: Include ipa-utils.h
4565         (record_reference_ctx): New struct.
4566         (record_reference): Simplify to work on initializers; not statements.
4567         (mark_address, mark_load, mark_store): New.
4568         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4569         walk PHI nodes too.
4570         (record_references_in_initializer): Update use of record_reference.
4571         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
4572         walk PHI nodes too.
4574 2010-05-04  Jan Hubicka  <jh@suse.cz>
4576         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
4577         node will be removed anyway.
4578         (lto_varpool_replace_node): Allow also unanalyzed nodes;
4579         relink aliases of node into prevailing node.
4580         * varpool.c (varpool_remove_node): Remove aliases properly;
4581         when removing node, remove all its aliases too; remove DECL_INITIAL
4582         of removed node; ggc_free the varpool node.
4584 2010-05-04  Richard Guenther  <rguenther@suse.de>
4586         PR tree-optimization/43879
4587         * tree-ssa-structalias.c (alias_get_name): Use
4588         DECL_ASSEMBLER_NAME if available.
4589         (create_function_info_for): Return the varinfo node.
4590         (ipa_pta_execute): Associate same-body aliases and extra names
4591         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
4593 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
4595         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
4597 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
4599         PR bootstrap/43964
4600         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
4601         only if HONOR_REG_ALLOC_ORDER is not defined.
4603 2010-05-04  Richard Guenther  <rguenther@suse.de>
4605         PR tree-optimization/43949
4606         * tree-vrp.c (extract_range_from_binary_expr): Only handle
4607         TRUNC_MOD_EXPR.
4609 2010-04-26  Jason Merrill  <jason@redhat.com>
4611         * c.opt (-fstrict-enums): New.
4612         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
4614 2010-05-03  David Ung <davidu@mips.com>
4615             James E. Wilson  <wilson@codesourcery.com>
4617         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
4618         emit the trap instruction before the divide for TUNE_74K.
4620 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
4622         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
4623         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
4624         based on the above, for new target hook.
4626         * hooks.c (hook_bool_mode_true): New generic hook.
4627         * hooks.h (hook_bool_mode_true): Add prototype.
4629         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
4630         target hook.
4631         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
4632         target hook, set to hook_bool_mode_false.
4633         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
4634         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
4635         with targetm.small_register_classes_for_mode_p.
4636         (find_reusable_reload): Likewise.
4637         (combine_reloads): Likewise.
4638         * reload1.c (reload_as_needed): Likewise.
4639         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
4640         * ifcvt.c (noce_process_if_block, check_cond_move_block,
4641         dead_or_predicable): Likewise.
4642         * regmove.c (optimize_reg_copy_1): Likewise.
4643         * calls.c (prepare_call_address): Likewise.
4644         (precompute_register_parameters): Likewise.
4646         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
4647         hook definition.
4648         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
4649         implementation of the hook that considers all register classes
4650         small except for SH64.
4651         (sh_override_options): Use the new hook.
4652         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
4653         Add prototype.
4655         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
4656         hook definition.
4657         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
4658         implementation of the hook that considers all register classes
4659         small for THUMB1.
4660         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
4661         Add prototype.
4663         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
4664         hook definition.
4665         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
4666         implementation of the hook that considers all register classes
4667         small for MIPS16.
4668         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
4669         Add prototype.
4671         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
4672         hook definition.
4673         * config/m32c/m32c.h: Likewise.
4674         * config/pdp11/pdp11.h: Likewise.
4675         * config/avr/avr.h: Likewise.
4676         * config/xtensa/xtensa.h: Likewise.
4677         * config/m68hc11/m68hc11.h: Likewise.
4678         * config/mn10300/mn10300.h: Likewise.
4679         * config/mcore/mcore.h: Likewise.
4680         * config/h8300/h8300.h: Likewise.
4681         * config/bfin/bfin.h: Likewise.
4683         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
4684         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
4686 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
4688         * double-int.h (tree_to_double_int): Remove macro.
4689         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
4690         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4691         (tree_to_double_int): New function.
4692         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
4693         Move ...
4694         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
4696 2010-05-03  Richard Guenther  <rguenther@suse.de>
4698         PR tree-optimization/43971
4699         * tree-ssa-structalias.c (get_constraint_for_1): Fix
4700         constraints in the !flag_delete_null_pointer_checks case.
4702 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
4704         PR debug/43972
4705         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
4706         result mode matches original rtl mode.
4708 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
4710         PR target/43888
4711         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
4713 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
4715         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
4716         when processing flag options.
4718 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
4720         * gcov-iov.c (main): Change format string placeholder
4721         from %#08x to 0x%08x.
4722         * genchecksum.c (dosum): Change format string placeholder
4723         from %#02x to 0x%02x.
4725 2010-05-02  Richard Guenther  <rguenther@suse.de>
4727         PR tree-optimization/43879
4728         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
4730 2010-05-02  Bruno Haible  <bruno@clisp.org>
4732         * doc/extend.texi (Function Attributes): Fix a typo.
4734 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
4736         Revert:
4737         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
4738         placeholder from 0x%x to %#x.
4739         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4740         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
4741         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
4742         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
4743         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
4744         * config/i386/i386.c (ix86_target_string): Ditto.
4745         * config/i386/i386.c (output_pic_addr_const): Ditto.
4746         (print_operand): Ditto.
4748 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
4750         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
4751         placeholder from 0x%x to %#x.
4752         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
4753         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
4754         (ASM_OUTPUT_DEBUG_DATA): Ditto.
4755         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
4756         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
4757         * optc-gen.awk: Ditto.
4758         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
4759         (HOST_WIDE_INT_PRINT_HEX): Ditto.
4760         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
4761         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
4763 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
4765         * target.h (struct calls): Add function_value_regno_p field.
4766         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
4767         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
4768         * targhooks.c (default_function_value_regno_p): New function.
4769         * targhooks.h (default_function_value_regno_p): Declare function.
4770         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
4771         * builtins.c. (apply_result_size): (Ditto.).
4772         * combine.c. (likely_spilled_retval_p): (Ditto.).
4773         * mode-switching.c. Include 'target.h'.
4774         (create_pre_exit): Use function_value_regno_p hook.
4775         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
4776         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
4777         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
4779         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
4780         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
4781         (ix86_function_value_regno_p): Declare as static, change argument
4782         type to const unsigned int.
4783         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
4785 2010-05-01  Richard Guenther  <rguenther@suse.de>
4787         PR tree-optimization/43949
4788         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
4789         types.
4790         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
4792 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
4794         * rtl.h (CONST_DOUBLE_P): Define.
4795         (rtx_to_double_int): Declare.
4796         * emit-rtl.c (rtx_to_double_int): New function.
4797         * dwarf2out.c (insert_double): New function.
4798         (loc_descriptor, add_const_value_attribute): Clean up, use
4799         rtx_to_double_int and insert_double functions.
4801 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
4803         * doc/extend.texi (Inline): Add missing return keyword to examples.
4804         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
4805         "command-line".
4807 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
4809         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
4810         the variable part of the offset as well.  Use highest_pow2_factor for
4811         all alignment checks.
4813 2010-04-30  Richard Guenther  <rguenther@suse.de>
4815         PR tree-optimization/43879
4816         * tree-ssa-structalias.c (type_could_have_pointers): Functions
4817         can have pointers.
4819 2010-04-30  Jan Hubicka  <jh@suse.cz>
4821         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
4822         varpool.
4823         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
4825 2010-04-30  Jan Hubicka  <jh@suse.cz>
4827         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
4828         New.
4829         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
4830         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
4831         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
4832         cgraph_node_set_needs_ltrans_p): Remove.
4834 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
4836         * sdbout.c: Include vec.h, do not include varray.h.
4837         (deferred_global_decls, sdbout_global_decl,
4838         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
4839         * toplev.c: Do not include varray.h.
4840         (dump_memory_report): Do not dump VARRAY statistics.
4841         * gengtype.c (open_base_file): Ignore varray.h.
4842         * Makefile.in: Update for abovementioned changes.
4843         Remove all traces of varray.c and varray.h.
4844         * varray.c: Remove file.
4845         * varray.h: Remove file.
4847 2010-04-30  Jan Hubicka  <jh@suse.cz>
4849         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
4850         references.
4852 2010-04-30  Jan Hubicka  <jh@suse.cz>
4854         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
4855         needed.
4857 2010-04-30  Richard Guenther  <rguenther@suse.de>
4859         * tree-ssa-structalias.c (get_constraint_for_1): Generate
4860         constraints for CONSTRUCTOR.
4862 2010-04-30  Richard Guenther  <rguenther@suse.de>
4864         PR lto/43946
4865         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
4866         first after all lowering passes.
4868 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
4870         * toplev.c: Include varray.h for statistics dumping.
4871         * tree.h: Do not declare varray_head_tag.
4872         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
4873         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
4874         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
4875         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
4876         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
4877         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
4878         c-common.c, c-common.h, reg-stack.c, basic-block.h,
4879         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
4880         include varray.h.
4881         * Makefile.in: Update for abovementioned changes.
4883 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
4885         PR debug/43942
4886         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
4888 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
4890         * config/picochip/picochip.c (picochip_legitimize_address): Define.
4891         Use this function to do machine-specific conversion.
4892         (picochip_legitimize_reload_address): Likewise.
4893         (picochip_legitimate_address_p): Check valid base register only if
4894         strict.
4895         (picochip_check_conditional_copy): Check for modw only if opnd is
4896         register.
4897         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
4898         to call the function in c.
4899         * config/picochip/picochip-protos.h
4900         (picochip_legitimize_reload_address): Define.
4901         * config/picochip/picochip.md (supported_compare1): Define.
4903 2010-04-30  Jan Hubicka  <jh@suse.cz>
4905         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
4906         (cgraph_global_info): Remove inlined.
4907         (LTO_cgraph_tag_names): Remove.
4908         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
4909         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
4910         simplify cgraph tags and document.
4911         (lto_output_node): Use only LTO_cgraph_unavail_node and
4912         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
4913         for_functions_valid, global info, process and output flags.
4914         (input_overwrite_node): Initialize estimated stack size and
4915         estimated growth.  Do not read flags we no longer store.
4916         (input_node): Likewise do not read info no longer stored.
4917         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
4918         flag.
4920 2010-04-30  Richard Guenther  <rguenther@suse.de>
4922         PR tree-optimization/43879
4923         * tree-ssa-structalias.c (get_constraint_for_1): Properly
4924         handle non-zero initializers.
4926 2010-04-30  Richard Guenther  <rguenther@suse.de>
4928         * builtins.c (fold_builtin_1): Delete free (0).
4930 2010-04-29  Jan Hubicka  <jh@suse.cz>
4932         * gengtype.c (open_base_files): Add lto-streamer.h
4933         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
4934         (pass_ipa_cp): GGC collect.
4935         * toplev. (compile_file): Do not output symbols.
4936         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
4937         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
4938         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
4939         * lto-section-in.c: Include ggc.h
4940         (lto_new_in_decl_state): Alloc in GGC.
4941         (lto_delete_in_decl_state): Likewise.
4942         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
4943         Collect.
4945 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
4947         PR target/42895
4948         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
4949         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
4950         (HONOR_REG_ALLOC_ORDER): Describe new macro.
4951         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
4952         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
4953         account only if HONOR_REG_ALLOC_ORDER is not defined.
4954         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
4955         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
4957 2010-04-29  Jon Grant  <04@jguk.org>
4959         * collect2.c (vflag): Change type from int to bool.
4960         (debug): Likewise.
4961         (helpflag): New global bool.
4962         (main): Set vflag and debug with boolean, not integer truth values.
4963         Accept new "--help" option and output usage text if found.
4964         * collect2.h (vflag): Update prototype.
4965         (debug): Likewise.
4967 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
4969         PR bootstrap/43936
4970         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
4972 2010-04-29  Richard Guenther  <rguenther@suse.de>
4974         PR bootstrap/43935
4975         * plugin.h (invoke_plugin_callbacks): Annotate arguments
4976         with ATTRIBUTE_UNUSED.
4978 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
4980         PR target/43921
4981         * config/i386/i386.c (get_some_local_dynamic_name): Replace
4982         INSN_P with NONDEBUG_INSN_P.
4983         (distance_non_agu_define): Likewise.
4984         (distance_agu_use): Likewise.
4986 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
4988         From Dominique d'Humieres <dominiq@lps.ens.fr>
4989         PR bootstrap/43858
4990         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
4991         test_set.
4993 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
4995         * plugin.h (invoke_plugin_callbacks): New inline function.
4996         * plugin.c (flag_plugin_added): New global flag.
4997         (add_new_plugin): Initialize above flag.
4998         (invoke_plugin_callbacks): Rename to ...
4999         (invoke_plugin_callbacks_full): ... this.
5001 2010-04-28  Jan Hubicka  <jh@suse.cz>
5003         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
5004         (lto_varpool_replace_node): New.
5005         (lto_symtab_resolve_symbols): Resolve varpool nodes.
5006         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
5007         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
5008         * cgraph.h (varpool_node_ptr): New type.
5009         (varpool_node_ptr): New vector.
5010         (varpool_node_set_def): New structure.
5011         (varpool_node_set): New type.
5012         (varpool_node_set): New vector.
5013         (varpool_node_set_element_def): New structure.
5014         (varpool_node_set_element, const_varpool_node_set_element): New types.
5015         (varpool_node_set_iterator): New type.
5016         (varpool_node): Add prev pointers, add used_from_other_partition,
5017         in_other_partition.
5018         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
5019         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
5020         varpool_get_node, varpool_remove_node): Declare.
5021         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
5022         varpool_node_set_size): New inlines.
5023         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
5024         * tree-pass.h (varpool_node_set_def): Forward declare.
5025         (ipa_opt_pass_d): Summary writting takes vnode sets too.
5026         (ipa_write_optimization_summaries): Update prototype.
5027         * ipa-cp.c (ipcp_write_summary): Update.
5028         * ipa-reference.c (ipa_reference_write_summary): Update.
5029         * lto-cgraph.c (lto_output_varpool_node): New static function.
5030         (output_varpool): New function.
5031         (input_varpool_node): New static function.
5032         (input_varpool_1): New function.
5033         (input_cgraph): Input varpool.
5034         * ipa-pure-const.c (pure_const_write_summary): Update.
5035         * lto-streamer-out.c (lto_output): Update, output varpool too.
5036         (write_global_stream): Kill WPA hack.
5037         (produce_asm_for_decls): Update.
5038         (output_alias_pair_p): Handle variables.
5039         (output_unreferenced_globals): Output only needed partition of varpool.
5040         * ipa-inline.c (inline_write_summary): Update.
5041         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
5042         cgraph.
5043         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
5044         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
5045         varpool_node_set_new, varpool_node_set_add,
5046         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
5047         debug_varpool_node_set): New functions.
5048         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
5049         (execute_one_pass): Process new decls too.
5050         (ipa_write_summaries_2): Pass around vsets.
5051         (ipa_write_summaries_1): Likewise.
5052         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
5053         to add.
5054         (ipa_write_optimization_summaries_1): Pass around vsets.
5055         (ipa_write_optimization_summaries): Likewise.
5056         * varpool.c (varpool_get_node): New.
5057         (varpool_node): Update doubly linked lists.
5058         (varpool_remove_node): New.
5059         (dump_varpool_node): More dumping.
5060         (varpool_enqueue_needed_node): Update doubly linked lists.
5061         (decide_is_variable_needed): Kill ltrans hack.
5062         (varpool_finalize_decl): Kill lto hack.
5063         (varpool_assemble_decl): Skip decls in other partitions.
5064         (varpool_assemble_pending_decls): Update doubly linkes lists.
5065         (varpool_empty_needed_queue): Likewise.
5066         (varpool_extra_name_alias): Likewise.
5067         * lto-streamer.c (lto_get_section_name): Add vars section.
5068         * lto-streamer.h (lto_section_type): Update.
5069         (output_varpool, input_varpool): Declare.
5071 2010-04-28  Mike Stump  <mikestump@comcast.net>
5073         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
5075 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
5077         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
5078         record or union type with RECORD_OR_UNION_TYPE_P predicate.
5079         (lto_input_ts_type_tree_pointers): Likewise.
5080         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
5081         (lto_output_ts_type_tree_pointers): Likewise.
5083 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
5085         Uniquization of constants at the Tree level
5086         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
5087         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
5088         bit to the end.
5089         (tree_output_constant_def): Declare.
5090         * gimplify.c (gimplify_init_constructor): When using block copy, first
5091         uniquize the constant constructor on the RHS.
5092         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
5093         DECL_IN_CONSTANT_POOL flag.
5094         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
5095         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
5096         constant pool.
5097         (assemble_variable): Deal with symbols belonging to the tree constant
5098         pool.
5099         (get_constant_section): Add ALIGN parameter and simplify.
5100         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
5101         (assemble_constant_contents): Use the expression of the VAR_DECL.
5102         (output_constant_def_contents): Use the alignment of the VAR_DECL.
5103         (tree_output_constant_def): New global function.
5104         (mark_constant): Use the expression of the VAR_DECL.
5105         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
5106         its expression.
5107         (output_object_block): Likewise and assemble the expression.
5109 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
5111         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
5112         hash_tree, eq_tree): New tree hash table.
5113         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
5114         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
5115         lto_orig_address_remove): Reimplement.
5117 2010-04-28  Xinliang David Li  <davidxl@google.com>
5119         PR c/42643
5120         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
5121         (compute_uninit_opnds_pos): New function.
5122         (is_non_loop_exit_postdominating): New function.
5123         (compute_control_dep_chain): New function.
5124         (find_pdom): New function.
5125         (convert_control_dep_chain_into_preds): New function.
5126         (find_predicates): New function.
5127         (find_control_equiv_block): New function.
5128         (collect_phi_def_edges): New function.
5129         (find_def_preds): New function.
5130         (find_dom): New function.
5131         (dump_predicates): New function.
5132         (get_cmp_code): New function.
5133         (is_value_included_in): New function.
5134         (find_matching_predicate_in_rest_chains): New function.
5135         (use_pred_not_overlap_with_undef_path_pred): New function.
5136         (is_use_properly_guarded): New function.
5137         (normalize_cond_1): New function.
5138         (is_and_or_or): New function.
5139         (normalize_cond): New function.
5140         (is_gcond_subset_of): New function.
5141         (is_subset_of_any): New function.
5142         (is_or_set_subset_of): New function.
5143         (is_and_set_subset_of): New function.
5144         (is_norm_cond_subset_of): New function.
5145         (is_pred_expr_subset_of): New function.
5146         (is_pred_chain_subset_of): New function.
5147         (is_included_in): New function.
5148         (is_superset_of): New function.
5149         (find_uninit_use): New function.
5150         (warn_uninitialized_phi): New function.
5151         (compute_possibly_undefined_names): New function.
5152         (ssa_undefined_value_p): New function.
5153         (execute_late_warn_uninitialized): New function.
5154         * tree-ssa.c (ssa_undefined_value_p): Removed.
5155         (warn_uninit): Changed to extern.
5156         (warn_uninitialized_phi): Removed.
5157         (warn_uninitialized_vars): Changed to extern.
5158         (execute_late_warn_uninitialized): Removed
5159         * tree-flow.h: Add new prototypes.
5160         * timevar.def: Add new time variable.
5161         * Makefile.in: Add new build file.
5163 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
5165         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
5166         type if available.
5168 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5170         PR target/22224
5171         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
5173 2010-04-28  Martin Jambor  <mjambor@suse.cz>
5175         * cgraph.h (struct cgraph_node): New field indirect_calls.
5176         (struct cgraph_indirect_call_info): New type.
5177         (struct cgraph_edge): Removed field indirect_call. New fields
5178         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
5179         (cgraph_create_indirect_edge): Declare.
5180         (cgraph_make_edge_direct): Likewise.
5181         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
5182         * ipa-prop.h (struct ipa_param_call_note): Removed.
5183         (struct ipa_node_params): Removed field param_calls.
5184         (ipa_create_all_structures_for_iinln): Declare.
5185         * cgraph.c: Described indirect edges and uids in initial comment.
5186         (cgraph_add_edge_to_call_site_hash): New function.
5187         (cgraph_edge): Search also among the indirect edges, use
5188         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
5189         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
5190         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
5191         site hash.
5192         (initialize_inline_failed): Assign a reason to indirect edges.
5193         (cgraph_create_edge_1): New function.
5194         (cgraph_create_edge): Moved some functionality to
5195         cgraph_create_edge_1.
5196         (cgraph_create_indirect_edge): New function.
5197         (cgraph_edge_remove_callee): Add an assert checking for
5198         non-indirectness.
5199         (cgraph_edge_remove_caller): Special-case indirect edges.
5200         (cgraph_remove_edge): Likewise.
5201         (cgraph_set_edge_callee): New function.
5202         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
5203         (cgraph_make_edge_direct): New function.
5204         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
5205         the declaration of the call statement matches.
5206         (cgraph_node_remove_callees): Special-case indirect edges.
5207         (cgraph_clone_edge): Likewise.
5208         (cgraph_clone_node): Clone also the indirect edges.
5209         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
5210         indirect_call, dump count of indirect_calls edges.
5211         * ipa-prop.c (iinlining_processed_edges): New variable.
5212         (ipa_note_param_call): Create indirect edges instead of
5213         creating notes.  New parameter node.
5214         (ipa_analyze_call_uses): New parameter node, pass it on to
5215         ipa_note_param_call.
5216         (ipa_analyze_stmt_uses): Likewise.
5217         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
5218         (print_edge_addition_message): Work on edges rather than on notes.
5219         (update_call_notes_after_inlining): Likewise, renamed to
5220         update_indirect_edges_after_inlining.
5221         (ipa_create_all_structures_for_iinln): New function.
5222         (ipa_free_node_params_substructures): Do not free notes.
5223         (ipa_edge_duplication_hook): Propagate bits within
5224         iinlining_processed_edges bitmap.
5225         (ipa_node_duplication_hook): Do not duplicate notes.
5226         (free_all_ipa_structures_after_ipa_cp): Renamed to
5227         ipa_free_all_structures_after_ipa_cp.
5228         (free_all_ipa_structures_after_iinln): Renamed to
5229         ipa_free_all_structures_after_iinln.
5230         (ipa_write_param_call_note): Removed.
5231         (ipa_read_param_call_note): Removed.
5232         (ipa_write_indirect_edge_info): New function.
5233         (ipa_read_indirect_edge_info): Likewise.
5234         (ipa_write_node_info): Do not stream notes, do stream information
5235         in indirect edges.
5236         (ipa_read_node_info): Likewise.
5237         (lto_ipa_fixup_call_notes): Removed.
5238         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
5239         * ipa-inline.c (pass_ipa_inline): Likewise.
5240         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
5241         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
5242         * tree-inline.c (copy_bb): Removed an unnecessary double check for
5243         is_gimple_call.
5244         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
5245         edges.
5246         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
5247         (output_cgraph): Stream also indirect edges.
5248         (lto_output_edge): Added capability to stream indirect edges.
5249         (input_edge): Likewise.
5250         (input_cgraph_1): Likewise.
5251         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
5252         of indirect edges.
5254 2010-04-28  Richard Guenther  <rguenther@suse.de>
5256         PR tree-optimization/43879
5257         PR tree-optimization/43909
5258         * tree-ssa-structalias.c (struct variable_info): Add
5259         only_restrict_pointers flag.
5260         (new_var_info): Initialize it.  Increment stats.total_vars here.
5261         (create_function_info_for): Do not increment stats.total_vars here.
5262         (get_function_part_constraint): Fix build with C++.
5263         (insert_into_field_list): Remove.
5264         (push_fields_onto_fieldstack): Properly merge fields.
5265         (create_variable_info_for): Split and simplify.
5266         (create_variable_info_for_1): New piece.
5267         (intra_create_variable_infos): Properly make restrict constraints
5268         from parameters.
5270 2010-04-28  Richard Guenther  <rguenther@suse.de>
5272         PR c++/43880
5273         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
5275 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5276             Jan Hubicka <hubicka@ucw.cz>
5278         * doc/invoke.texi (-Wsuggest-attribute=const,
5279         -Wsuggest-attribute=pure): Document.
5280         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
5281         (function_always_visible_to_compiler_p,
5282         suggest_attribute, warn_function_pure, warn_function_const):
5283         New functions.
5284         (check_call): Improve debug info.
5285         (analyze_function): Do not check availability.
5286         (add_new_function): Check availability.
5287         (propagate): Output warnings.
5288         (skip_function_for_local_pure_const): New function.
5289         (local_pure_const): Use it; output warnings.
5290         * common.opt (Wsuggest-attribute=const,
5291         Wsuggest-attribute=pure): New.
5293 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
5295         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
5296         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
5297         or DW_CFA_def_cfa_offset{,_sf}.
5299 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
5301         * tree.h: Fix truncated long macros.
5303 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
5305         * collect2.c (TARGET_64BIT): Redefine to target's default.
5306         * tlink.c: Likewise.
5307         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
5308         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
5309         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
5310         for underscoring __USER_LABEL_PREFIX__.
5311         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
5312         (SUB_LINK_ENTRY32): New.
5313         (SUB_LINK_ENTRY64): New.
5314         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
5315         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
5316         (SUB_LINK_ENTRY64): New.
5317         (SUB_LINK_ENTRY): New.
5318         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
5319         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
5320         x64 target is choosen.
5321         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
5322         * configure: Regenerated.
5323         * configure.ac (leading-mingw64-underscores): Option added.
5325 2010-04-27  Jan Hubicka  <jh@suse.cz>
5327         * doc/invoke.texi (-fipa-profile): Document.
5328         * opts.c (decode_options): Enable ipa-profile at -O1.
5329         * timevar.def (TV_IPA_PROFILE): Define.
5330         * common.opt (fipa-profile): Add.
5331         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
5332         flag for clones.
5333         (cgraph_propagate_frequency): Handle only local ones.
5334         * tree-pass.h (pass_ipa_profile): Declare.
5335         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
5336         (pass_ipa_profile): Use TV_IPA_PROFILE.
5337         * ipa.c (ipa_profile): New function.
5338         (gate_ipa_profile): Likewise.
5339         (pass_ipa_profile): New global variable.
5340         * passes.c (pass_ipa_profile): New.
5342 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
5344         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
5346 2010-04-27  Martin Jambor  <mjambor@suse.cz>
5348         PR middle-end/43812
5349         * ipa.c (dissolve_same_comdat_group_list): New function.
5350         (function_and_variable_visibility): Call
5351         dissolve_same_comdat_group_list when comdat group contains external or
5352         newly local nodes.
5353         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
5354         lists are circular and that they contain only DECL_ONE_ONLY nodes.
5356 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
5358         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
5359         (const_hash_1) <VECTOR_CST>: New case.
5360         (compare_constant) <VECTOR_CST>: Likewise.
5361         <ADDR_EXPR>: Deal with LABEL_REFs.
5362         (copy_constant) <VECTOR_CST>: New case.
5364 2010-04-27  Jan Hubicka  <jh@suse.cz>
5366         * cgraph.c (cgraph_propagate_frequency): New function.
5367         * cgraph.h (cgraph_propagate_frequency): Declare.
5368         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
5369         cgraph_propagate_frequency.
5371 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
5373         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
5375 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
5377         PR target/40657
5378         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
5379         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
5380         here to determine which regs to push and how much stack to reserve.
5382 2010-04-27  Jie Zhang  <jie@codesourcery.com>
5384         * doc/gimple.texi (gimple_statement_with_ops): Remove
5385         addresses_taken field.
5386         (gimple_statement_with_memory_ops): Likewise.
5388 2010-04-27  Jan Hubicka  <jh@suse.cz>
5390         * tree-inline.c (eni_inlining_weights): Remove.
5391         (estimate_num_insns): Special case more builtins.
5393 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
5395         PR c/32207
5396         * c-typeck.c (build_binary_op): Move forward check for comparison
5397         pointer with null pointer constant and adjust the diagnostic message.
5399 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
5401         PR lto/42776
5402         * configure.ac (gcc_cv_as_section_has_align): Set if installed
5403         binutils supports extended .section directive needed by LTO, or
5404         warn if older binutils found.
5405         (LTO_BINARY_READER): New AC_SUBST'd variable.
5406         (LTO_USE_LIBELF): Likewise.
5407         * gcc/config.gcc (lto_binary_reader): New target-specific configure
5408         variable.
5409         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
5410         (LTO_USE_LIBELF): Likewise.
5411         * configure: Regenerate.
5413         * collect2.c (is_elf): Rename from this ...
5414         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
5415          object files in addition to ELF-formatted ones.
5416         (scan_prog_file): Caller updated.  Also allow for LTO info marker
5417         symbol to be prefixed or not by an extra underscore.
5419         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
5420         * config/i386/winnt.c: Also #include lto-streamer.h
5421         (i386_pe_asm_named_section): Specify 1-byte section alignment for
5422         LTO named sections.
5423         (i386_pe_asm_output_aligned_decl_common): Add comment.
5424         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
5426 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
5428         PR target/43889
5429         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
5430         Add missing earlyclobber for second alternative.
5432 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
5434         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
5435         bits for artificial defs at the top of the block.
5436         * fwprop.c (single_def_use_enter_block): Don't call it.
5438 2010-04-26  Jack Howarth <howarth@bromo.med.uc.edu>
5440         PR 43715
5441         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
5442         instead of "$gcc_cv_objdump -T".
5443         Use "-undefined dynamic_lookup" on darwin.
5444         * gcc/configure: Regenerate.
5446 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
5448         PR c/43893
5449         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
5451 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
5453         * c-parser.c (struct c_token): Move location field up.
5454         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
5455         (struct c_declspecs): Convert typespec_word, storage_class, and
5456         default_int_p into bitfields.
5457         (struct c_declarator): Move loc field up.
5459 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
5461         * cfgloop.h (struct loop): Move can_be_parallel field up.
5462         * ipa-prop.h (struct ip_node_params): Move bitfields up.
5463         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
5464         down.
5465         (struct iv_cand): Convert pos field into a bitfield.
5466         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
5467         field up.
5468         (struct _stmt_vec_info): Shuffle fields for better packing.
5470 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
5472         * varasm.c (IN_NAMED_SECTION): Remove guard.
5473         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
5474         (IN_NAMED_SECTION_P): ...this.
5475         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
5476         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
5478 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
5480         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
5481         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
5482         of shadowing it.  Fix comments.
5484 2010-04-26  Jan Hubicka  <jh@suse.cz>
5486         * cgraph.c (cgraph_create_node): Set node frequency to normal.
5487         (cgraph_clone_node): Copy function frequency.
5488         * cgraph.h (node_frequency): New enum
5489         (struct cgraph_node): Add.
5490         * final.c (rest_of_clean_state): Update.
5491         * lto-cgraph.c (lto_output_node): Output node frequency.
5492         (input_overwrite_node): Input node frequency.
5493         * tre-ssa-loop-ivopts (computation_cost): Update.
5494         * lto-streamer-out.c (output_function): Do not output function
5495         frequency.
5496         * predict.c (maybe_hot_frequency_p): Update and handle functions
5497         executed once.
5498         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
5499         attribute lookup.
5500         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
5501         (compute_function_frequency): Set noreturn functions to be executed
5502         once.
5503         (choose_function_section): Update.
5504         * lto-streamer-in.c (input_function): Do not input function frequency.
5505         * function.c (allocate_struct_function): Do not initialize function
5506         frequency.
5507         * function.h (function_frequency): Remove.
5508         (struct function): Remove function frequency.
5509         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
5510         (try_update): Update.
5511         * tree-inline.c (initialize_cfun): Do not update function frequency.
5512         * passes.c (pass_init_dump_file): Update.
5513         * i386.c (ix86_compute_frame_layout): Update.
5514         (ix86_pad_returns): Update.
5516 2010-04-26  Jie Zhang  <jie@codesourcery.com>
5518         PR tree-optimization/43833
5519         * tree-vrp.c (range_int_cst_p): New.
5520         (range_int_cst_singleton_p): New.
5521         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
5522         when both operands are constants.  Use range_int_cst_p in
5523         BIT_IOR_EXPR case.
5525 2010-04-26  Jan Hubicka  <jh@suse.cz>
5527         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
5529 2010-04-26  Richard Guenther  <rguenther@suse.de>
5531         PR lto/43080
5532         * gimple.c (gimple_decl_printable_name): Deal gracefully
5533         with a NULL DECL_NAME.
5535 2010-04-26  Richard Guenther  <rguenther@suse.de>
5537         PR lto/42425
5538         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
5539         if emitting debug information and it is either a function
5540         or a namespace decl.
5542 2010-04-26  Ira Rosen  <irar@il.ibm.com>
5544         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
5545         determine if the statement is vectorizable, and a macro to access it.
5546         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5547         Skip statements that can't be vectorized. If the analysis fails,
5548         mark the statement as unvectorizable if vectorizing basic block.
5549         (vect_compute_data_refs_alignment): Likewise.
5550         (vect_verify_datarefs_alignment): Skip statements marked as
5551         unvectorizable. Add print.
5552         (vect_analyze_group_access): Skip statements that can't be
5553         vectorized. If the analysis fails, mark the statement as
5554         unvectorizable if vectorizing basic block.
5555         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
5556         * tree-vect-stmts.c (vectorizable_store): Fix the number of
5557         generated stmts for SLP.
5558         (new_stmt_vec_info): Initialize the new field.
5559         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
5560         statements marked as unvectorizable.
5562 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
5564         * c-common.c (flag_isoc1x): New.
5565         (flag_isoc99): Update comment.
5566         * c-common.h (flag_isoc1x): New.
5567         (flag_isoc99): Update comment.
5568         * c-cppbuiltin.c (builtin_define_float_constants): Also define
5569         __<type>_DECIMAL_DIG__.
5570         * c-opts.c (set_std_c1x): New.
5571         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
5572         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
5573         * c.opt (-std=c1x, -std=gnu1x): New options.
5574         * doc/cpp.texi: Mention -std=c1x.
5575         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
5576         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
5577         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
5578         * doc/standards.texi: Mention C1X.
5579         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
5580         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
5581         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5582         Define for C1X.
5584 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
5586         * config/i386/gmon-sol2.c (_mcleanup): Change format string
5587         placeholder from 0x%x to %#x.
5588         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
5589         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
5590         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
5591         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
5592         * config/i386/i386.c (ix86_target_string): Ditto.
5593         (output_pic_addr_const): Ditto.
5594         (print_operand): Ditto.
5596 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
5598         * combine.c (find_split_point): Add third argument.  Use it
5599         to find nested multiply-accumulate instructions.  Adjust calls.
5600         (try_combine): Adjust call to find_split_point.
5602 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
5604         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
5606 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
5608         PR tree-optimization/41442
5609         * fold-const.c (merge_truthop_with_opposite_arm): New function.
5610         (fold_binary_loc): Call it.
5612 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
5614         * toplev.c (general_init): Set default for fdiagnostics-show-option.
5615         * opts.c (common_handle_option): Allow disabling it.
5616         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
5618 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
5620         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
5621         between modes if both types are integral.
5623 2010-04-23  Richard Guenther  <rguenther@suse.de>
5625         PR tree-optimization/43572
5626         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
5628 2010-04-23  Richard Guenther  <rguenther@suse.de>
5630         PR lto/43455
5631         * tree-inline.c (tree_can_inline_p): Also check compatibility
5632         of return types.
5634 2010-04-23  Martin Jambor  <mjambor@suse.cz>
5636         PR tree-optimization/43846
5637         * tree-sra.c (struct access): New flag grp_assignment_read.
5638         (build_accesses_from_assign): Set grp_assignment_read.
5639         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
5640         (enum mark_read_status): New type.
5641         (analyze_access_subtree): Propagate grp_assignment_read, create
5642         accesses also if both direct_read and root->grp_assignment_read.
5644 2010-04-23  Martin Jambor  <mjambor@suse.cz>
5646         PR middle-end/43835
5647         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
5648         function does not have type attributes.
5650 2010-04-23  Richard Guenther  <rguenther@suse.de>
5652         PR lto/42653
5653         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
5654         of FUNCTION_DECLs.
5656 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5658         * sese.h (create_if_region_on_edge): Remove.
5660         * sese.c (create_if_region_on_edge): Make static.
5662         * tree-inline.c: Do not include ggc.h.
5664         * expr.c: Do not include ggc.h.
5666         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
5667         dependencies.
5669 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
5671         PR target/43744
5672         * config/sh/sh.c (find_barrier): Don't emit a constant pool
5673         in the middle of insns for casesi_worker_2.
5675 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
5677         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
5679 2010-04-22  Ira Rosen  <irar@il.ibm.com>
5681         PR tree-optimization/43842
5682         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
5683         loop unrolling in update of exit phis. Fix comment.
5684         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
5685         least two reduction statements in the loop before starting SLP
5686         analysis.
5688 2010-04-22  Nick Clifton  <nickc@redhat.com>
5690         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
5692 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
5694         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
5695         to simplify a + ~a.
5697 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5699         * tree-parloops.c (loop_parallel_p): New argument
5700         parloop_obstack.  Pass it down.
5701         (parallelize_loops): New variable parloop_obstack.  Initialize it,
5702         pass it down, free it.
5704         * tree-loop-linear.c (linear_transform_loops): Pass down
5705         lambda_obstack.
5707         * tree-data-ref.h (lambda_compute_access_matrices): New argument
5708         of type struct obstack *.
5710         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
5711         scratch_obstack.  Initialize it, pass down, free it.
5713         * lambda.h (lambda_loop_new): Remove.
5714         (lambda_matrix_new, lambda_matrix_inverse)
5715         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
5716         argument of type struct obstack *.
5718         * lambda-trans.c (lambda_trans_matrix_new): New argument
5719         lambda_obstack.  Pass it down, use obstack allocation for ret.
5720         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
5721         it down.
5723         * lambda-mat.c (lambda_matrix_get_column)
5724         (lambda_matrix_project_to_null): Remove.
5725         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
5726         allocation for mat.
5727         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
5728         lambda_obstack.
5730         * lambda-code.c (lambda_loop_new): New function.
5731         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
5732         (lambda_compute_auxillary_space, lambda_compute_target_space)
5733         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
5734         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
5735         (build_access_matrix): New argument lambda_obstack.  Use obstack
5736         allocation for am.
5737         (lambda_compute_step_signs, lambda_compute_access_matrices): New
5738         argument lambda_obstack.  Pass it down.
5740 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
5742         * optabs.h (expand_widening_mult): Declare.
5744 2010-04-22  Richard Guenther  <rguenther@suse.de>
5746         PR tree-optimization/43845
5747         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
5748         lookup the CALL_EXPR function and arguments.
5750 2010-04-22  Nick Clifton  <nickc@redhat.com>
5752         * config/stormy16/stormy16.c
5753         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
5754         * config/stormy16/stormy16.h: Tidy up formatting.
5755         (DONT_USE_BUILTIN_SETJMP): Remove definition.
5756         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
5757         (ineqbranchsi): Delete pattern.
5758         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
5759         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
5760         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
5761         stormy16-lib2-ucmpsi2.c.
5763 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
5765         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
5766         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
5767         extra set merge_set_noclobber, and use it to relax the final test
5768         slightly.
5769         * df.h (df_simulate_find_noclobber_defs): Declare.
5770         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
5771         conditional defs.
5772         (df_simulate_find_noclobber_defs): New function.
5774 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
5776         * config/i386/i386.md: Use {} around multi-line preparation statements.
5778 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
5780         * c-tree.h (push_init_level, pop_init_level, set_init_index)
5781         (process_init_element): New argument of type struct obstack *.
5783         * c-typeck.c (push_init_level, pop_init_level, set_designator)
5784         (set_init_index, set_init_label, set_nonincremental_init)
5785         (set_nonincremental_init_from_string, find_init_member)
5786         (output_init_element, output_pending_init_elements)
5787         (process_init_element): New argument braced_init_obstack.  Pass it
5788         down.
5789         (push_range_stack, add_pending_init): New argument
5790         braced_init_obstack.  Use obstack allocation.
5792         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
5793         braced_init_obstack.  Pass it down.
5794         (c_parser_braced_init): New variables ret, braced_init_obstack.
5795         Initialize obstack, pass it down and finally free it.
5797 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
5799         PR middle-end/29274
5800         * tree-pass.h (pass_optimize_widening_mul): Declare.
5801         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
5802         gate_optimize_widening_mul): New static functions.
5803         (pass_optimize_widening_mul): New.
5804         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
5805         <case MULT_EXPR>: Remove support for widening multiplies.
5806         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
5807         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
5808         simplify_gen_unary rather than directly building extensions.
5809         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
5810         WIDEN_MULT_EXPR.
5811         * expmed.c (expand_widening_mult): New function.
5812         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
5814 2010-04-21  Jan Hubicka  <jh@suse.cz>
5816         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
5817         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
5818         * lto-wpa-fixup.c: Remove.
5819         * Makefile.in (lto-wpa-fixup.o): Remove.
5820         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
5821         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
5822         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
5824 2010-04-21  Jan Hubicka  <jh@suse.cz>
5826         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
5827         add write_optimization_summary, read_optimization_summary.
5828         (ipa_write_summaries_of_cgraph_node_set): Remove.
5829         (ipa_write_optimization_summaries): Declare.
5830         (ipa_read_optimization_summaries): Declare.
5831         * ipa-cp.c (pass_ipa_cp): Update.
5832         * ipa-reference.c (pass_ipa_reference): Update.
5833         * ipa-pure-const.c (pass_ipa_pure_const): Update.
5834         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
5835         Update.
5836         * ipa-inline.c (pass_ipa_inline): Update.
5837         * ipa.c (pass_ipa_whole_program): Update.
5838         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
5839         * passes.c (ipa_write_summaries_1): Do not test wpa.
5840         (ipa_write_optimization_summaries_1): New.
5841         (ipa_write_optimization_summaries): New.
5842         (ipa_read_summaries): Do not test ltrans.
5843         (ipa_read_optimization_summaries_1): New.
5844         (ipa_read_optimization_summaries): New.
5846 2010-04-21  Jan Hubicka  <jh@suse.cz>
5848         * lto-cgraph.c (lto_output_node): Do not output comdat groups
5849         for boundary nodes.
5850         (output_cgraph): Do not arrange comdat groups for boundary nodes.
5852 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
5854         PR debug/40040
5855         * dwarf2out.c (add_name_and_src_coords_attributes): Add
5856         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
5858 2010-04-21  Jan Hubicka  <jh@suse.cz>
5860         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
5862 2010-04-21  Jan Hubicka  <jh@suse.cz>
5864         * varpool.c (decide_is_variable_needed): Variable is always needed
5865         during ltrans.
5867 2010-04-21  Jan Hubicka  <jh@suse.cz>
5869         * opts.c (decode_options): Enable pure-const pass for whopr.
5871 2010-04-21  Jan Hubicka  <jh@suse.cz>
5873         * cgraph.c (dump_cgraph_node): Dump also assembler name.
5874         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
5875         at WPA dumping.
5876         (cgraph_decide_inlining): Do not expect callee to be removed in all
5877         cases.
5879 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
5881         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
5883 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
5885         * config/i386/i386.md (x86_shrd): Add athlon_decode and
5886         amdfam10_decode attributes.
5888 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
5890         PR middle-end/43570
5891         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
5892         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
5893         (lower_copyprivate_clauses): Use private var in outer
5894         context instead of original var.  Make sure the types
5895         are correct for VLAs.
5897 2010-04-21  Richard Guenther  <rguenther@suse.de>
5899         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
5900         to non-pointer objects.
5902 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
5904         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
5905         last chain entry if it starts with the still current label.
5906         (add_location_or_const_value_attribute): Check that
5907         loc_list->first->next is NULL instead of comparing ->first with ->last.
5908         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
5909         to add_var_loc_to_decl.
5911         * dwarf2out.c (output_call_frame_info): For dw_cie_version
5912         >= 4 add also address size and segment size fields into CIE header.
5914         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
5915         long as address size is the same as sizeof (void *) and
5916         segment size is 0.
5917         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
5918         address size or segment size is unexpected, return DW_EH_PE_omit.
5919         (classify_object_over_fdes): If get_cie_encoding returned
5920         DW_EH_PE_omit, return -1.
5921         (init_object): If classify_object_over_fdes returned -1,
5922         pretend there were no FDEs at all.
5924 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
5926         * config/i386/i386.md (bswap<mode>2): Macroize expander from
5927         bswap{si,di}2 using SWI48 mode iterator.
5928         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
5929         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
5930         set modrm attribute of bswap insn to 0 and remove length attribute.
5931         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
5932         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
5933         set mode attribute to <MODE> and remove length attribute.
5935 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
5937         PR rtl-optimization/43520
5938         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
5939         zero available registers.
5941 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5943         * builtins.c (fold_builtin_cproj): Fold more cases.
5945 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5947         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
5948         (fold_builtin_1): Fold builtin cproj.
5949         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
5950         Use ATTR_CONST_NOTHROW_LIST.
5952 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
5954         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
5955         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
5956         ffsi2_no_cmove for !TARGET_CMOVE.
5957         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
5958         (ffssi2): Remove expander.
5959         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
5960         mode iterator.
5961         (ctz<mode>2): Ditto from ctz{si,di}2.
5962         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
5963         mode iterator.
5964         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
5965         mode iterator.
5967 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
5969         * dwarf2out.c (AT_linkage_name): Define.
5970         (clone_as_declaration): Handle DW_AT_linkage_name.
5971         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
5972         of DW_AT_MIPS_linkage_name.
5973         (move_linkage_attr): Likewise.
5974         (dwarf2out_finish): Likewise.
5976 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
5978         PR middle-end/41952
5979         * fold-const.c (fold_comparison): New folding rule.
5981 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
5983         * double-int.h (double_int_setbit): Declare.
5984         * double-int.c (double_int_setbit): New function.
5985         * rtl.h (immed_double_int_const): Declare.
5986         * emit-rtl.c (immed_double_int_const): New function.
5987         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
5988         and immed_double_int_const functions.
5989         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
5990         expand_copysign_bit):  (Ditto.).
5991         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
5992         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
5993         * dojump.c (prefer_and_bit_test): (Ditto.).
5994         * expr.c (convert_modes, reduce_to_bit_field_precision,
5995         const_vector_from_tree): (Ditto.).
5996         * expmed.c (mask_rtx, lshift_value): (Ditto.).
5998 2010-04-20  Jan Hubicka  <jh@suse.cz>
6000         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
6001         (dump_cgraph_node): Dump new flags.
6002         * cgraph.h (struct cgraph_node): Add flags
6003         reachable_from_other_partition and in_other_partition.
6004         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
6005         other partition can not be removed.
6006         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
6007         the other partition must be output; silence sanity checking on
6008         leaking functions bodies from other paritition.
6009         * lto-cgraph.c (reachable_from_other_partition_p): New function.
6010         (lto_output_node): Output new flags; do not sanity check that inline
6011         clones are output; drop lto_forced_extern_inline_p code; do not mock
6012         visibility flags at partition boundaries.
6013         (add_node_to): New function.
6014         (output_cgraph): Use it to sort functions so masters appear before
6015         clones.
6016         (input_overwrite_node): Input new flags.
6017         * passes.c (ipa_write_summaries): Do not call
6018         lto_new_extern_inline_states.
6019         * lto-section-out.c (forced_extern_inline,
6020         lto_new_extern_inline_states lto_delete_extern_inline_states,
6021         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
6022         * lto-streamer.h (lto_new_extern_inline_states,
6023         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
6024         lto_forced_extern_inline_p): Kill.
6026 2010-04-20  Richard Guenther  <rguenther@suse.de>
6028         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
6029         from vars that can have pointers.
6030         (process_constraint): Dump useless constraints.
6032 2010-04-20  Richard Guenther  <rguenther@suse.de>
6034         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
6035         (dump_sa_points_to_info): Remove asserts.
6036         (init_base_vars): nothing_id isn't an escape point nor does it
6037         have pointers.
6039 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
6041         * tree.h (TYPE_REF_IS_RVALUE): Define.
6042         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
6043         should_move_die_to_comdat, prune_unused_types_walk): Handle
6044         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
6045         (modified_type_die, gen_reference_type_die): Emit
6046         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
6047         if TYPE_REF_IS_RVALUE and -gdwarf-4.
6049 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6051         PR target/43635
6052         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
6053         calls for -fpic -m31 if they have been sibcall optimized.
6055 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
6057         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
6058         ar.lc fixed and call-used.
6060         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
6062 2010-04-19  Jan Hubicka  <jh@suse.cz>
6064         * opts.c (decode_options): Disable whpr incompatible passes.
6065         * lto/lto.c (lto_1_to_1_map): Skip clones.
6066         (read_cgraph_and_symbols): Do not mark everything as needed.
6067         (do_whole_program_analysis): Do map only after optimizing;
6068         set proper cgraph_state; use passmanager.
6070 2010-04-19  DJ Delorie  <dj@redhat.com>
6072         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
6073         POINTER_PLUS_EXPR and fix them.
6075 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
6077         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
6078         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
6079         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
6080         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
6081         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
6082         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
6083         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
6084         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
6085         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
6086         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
6087         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
6089 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
6091         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
6092         (check_cond_move_block): Likewise.
6093         (cond_move_process_if_block): Likewise.
6094         (noce_find_if_block): Improve formatting.
6095         (find_if_header): Pass 0 to memset and tweak conditions.
6096         (cond_exec_find_if_block): Fix long lines and tweak conditions.
6098 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
6100         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
6101         for -gdwarf-4.
6103         PR middle-end/43337
6104         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
6105         with non-local decl doesn't need chain.
6107 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
6109         * ira-color.c (allocno_reload_assign): Avoid accumulating
6110         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
6112 2010-04-19  Martin Jambor  <mjambor@suse.cz>
6114         * gimple.h (create_tmp_reg): Declare.
6115         * gimplify.c (create_tmp_reg): New function.
6116         (gimplify_return_expr): Use create_tmp_reg.
6117         (gimplify_omp_atomic): Likewise.
6118         (gimple_regimplify_operands): Likewise.
6119         * tree-dfa.c (make_rename_temp): Likewise.
6120         * tree-predcom.c (predcom_tmp_var): Likewise.
6121         (reassociate_to_the_same_stmt): Likewise.
6122         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
6123         (get_replaced_param_substitute): Likewise.
6124         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
6125         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
6126         * tree-ssa-pre.c (get_representative_for): Likewise.
6127         (create_expression_by_pieces): Likewise.
6128         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
6129         (create_tailcall_accumulator): Likewise.
6131 2010-04-19  Martin Jambor  <mjambor@suse.cz>
6133         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
6134         new_stmt.
6135         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
6137 2010-04-19  Richard Guenther  <rguenther@suse.de>
6139         PR tree-optimization/43796
6140         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
6141         from SCEV in the lattice.
6142         (vrp_visit_phi_node): Dump change.
6144 2010-04-19  Richard Guenther  <rguenther@suse.de>
6146         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
6147         * configure: Re-generated.
6149 2010-04-19  Richard Guenther  <rguenther@suse.de>
6151         PR tree-optimization/43783
6152         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
6153         constant ARRAY_REF operands two and three if possible.
6155 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
6157         PR target/43766
6158         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
6160 2010-04-19  Jie Zhang  <jie@codesourcery.com>
6162         PR target/43662
6163         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
6165 2010-04-19  Ira Rosen  <irar@il.ibm.com>
6167         PR tree-optimization/37027
6168         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
6169         and macro to access it.
6170         (vectorizable_reduction): Add argument.
6171         (vect_get_slp_defs): Likewise.
6172         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
6173         statements for possible use in SLP.
6174         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
6175         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
6176         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
6177         add new argument.
6178         (vectorizable_reduction): Likewise.
6179         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
6180         vect_get_slp_defs.
6181         (vectorizable_type_demotion, vectorizable_type_promotion,
6182         vectorizable_store): Likewise.
6183         (vect_analyze_stmt): Update call to vectorizable_reduction.
6184         (vect_transform_stmt): Likewise.
6185         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
6186         (vect_build_slp_tree): Fix indentation. Check that there are no loads
6187         from different interleaving chains in same node.
6188         (vect_slp_rearrange_stmts): New function.
6189         (vect_supported_load_permutation_p): Allow load permutations for
6190         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
6191         inside SLP nodes if necessary.
6192         (vect_analyze_slp_instance): Handle reductions.
6193         (vect_analyze_slp): Try to build SLP instances originating from groups
6194         of reductions.
6195         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
6196         (vect_get_constant_vectors): Create initial vectors for reductions
6197         according to reduction code. Add new argument.
6198         (vect_get_slp_defs): Add new argument, pass it to
6199         vect_get_constant_vectors.
6200         (vect_schedule_slp_instance): Remove SLP tree root statements.
6202 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
6204         * tree.h (ENUM_IS_SCOPED): Define.
6205         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
6206         for ENUM_IS_SCOPED enums.
6208 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
6210         * fold-const.c (fold_comparison): Use ssizetype.
6211         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
6212         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
6213         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
6214         * tree-object-size.c (compute_object_sizes): Use size_type_node.
6216         * tree.h (initialize_sizetypes): Remove parameter.
6217         (build_common_tree_nodes): Remove second parameter.
6218         * stor-layout.c (initialize_sizetypes): Remove parameter.
6219         Always create an unsigned type.
6220         (set_sizetype): Assert that the passed type is unsigned and simplify.
6221         * tree.c (build_common_tree_nodes): Remove second parameter.
6222         Adjust call to initialize_sizetypes.
6223         * c-decl.c (c_init_decl_processing): Remove second argument in call to
6224         build_common_tree_nodes.
6226 2010-04-18  Matthias Klose  <doko@ubuntu.com>
6228         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
6230 2010-04-18  Ira Rosen  <irar@il.ibm.com>
6232         PR tree-optimization/43771
6233         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
6234         load permutation doesn't have gaps.
6236 2010-04-18  Jan Hubicka  <jh@suse.cz>
6238         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
6239         (sse_prologue_save_insn expander): Use new pattern.
6240         (sse_prologue_save_insn1): New pattern and splitter.
6241         (sse_prologue_save_insn): Update to deal also with 64bit aligned
6242         blocks.
6243         * i386.c (setup_incoming_varargs_64): Do not compute jump
6244         destination here.
6245         (ix86_gimplify_va_arg): Update alignment needed.
6246         (ix86_local_alignment): Do not align all local arrays to 128bit.
6248 2010-04-17  Jan Hubicka  <jh@suse.cz>
6250         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
6252 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
6254         * arm.md (negdi2): Remove redundant code to force values into a
6255         register.
6257 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
6259         * arm/bpabi.S: Add EABI alignment attributes to objects.
6260         * arm/bpabi-v6m.S: Likewise.
6261         * arm/crti.asm: Likewise.
6262         * arm/crtn.asm: Likewise.
6263         * arm/lib1funcs.asm: Likewise.
6264         * arm/libunwind.S: Likewise.
6266 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
6268         * arm-protos.h (tune_params): New structure.
6269         * arm.c (current_tune): New variable.
6270         (arm_constant_limit): Delete.
6271         (struct processors): Add pointer to the tune parameters.
6272         (arm_slowmul_tune): New tuning option.
6273         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
6274         (all_cores): Adjust to pick up the tuning model.
6275         (arm_constant_limit): New function.
6276         (arm_override_options): Select the appropriate tuning model.  Delete
6277         initialization of arm_const_limit.
6278         (arm_split_constant): Use the new constant-limit model.
6279         (arm_rtx_costs): Pick up the current tuning model.
6280         * arm.md (is_strongarm, is_xscale): Delete.
6281         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
6282         for Xscale variant architectures.
6283         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
6285 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6287         * config/arm/arm.c (arm_gen_constant): Remove unused variable
6288         can_shift.
6289         (arm_rtx_costs_1): Remove unused variable extra_cost.
6290         (arm_unwind_emit_set): Use variable offset.
6291         (thumb1_output_casesi): Remove unused variable flags.
6293 2010-04-16  Jeff Law  <law@redhat.com>
6295         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
6296         needing assignment rather than doing a two-phase assignment.  Remove
6297         unused variable 'm'.
6299 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
6301         PR bootstrap/43767
6302         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
6304 2010-04-16  Doug Kwan  <dougkwan@google.com>
6306         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
6307         (next_operand_entry_id): New static variable.
6308         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
6309         (add_to_ops_vec): Assigned unique ID to operand entry.
6310         (struct oecount_s): New field ID.
6311         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
6312         (undistribute_ops_list): Assign unique IDs to oecounts.
6313         (init_reassoc): reset next_operand_entry_id.
6315 2010-04-16  Doug Kwan  <dougkwan@google.com>
6317         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
6318         missing left parenthesis.
6320 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
6322         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
6323         *btdi_rex64 using SWI48 mode iterator.
6324         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
6325         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
6326         *jcc_btdi_mask_rex64.
6328 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
6330         * double-int.h (tree_to_double_int): Convert to macro.
6331         * double-int.c (tree_to_double_int): Remove.
6333 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
6335         PR debug/43762
6336         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
6337         with want_address 2 and in case a single element list might be
6338         possible, call it again with want_address 0.
6340 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
6342         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
6343         case 'W' print operands for HI mode.
6344         * config/h8300/h8300.h (Y0, Y2) : New constraints.
6345         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
6346         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
6347         * config/h8300/predicate.md (bit_register_indirect_operand): New.
6349         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
6351         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
6352         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
6353         #xx:3 and #xx:4 mode.
6355         * config/h8300/h8300.md (inverted load with HImode dest): Add
6356         support for H8300SX.
6358         * config/h8300/predicate.md (bit_operand): Allow immediate values that
6359         satisfy 'U' constraint.
6361 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6363         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
6364         * configure: Regenerate.
6365         * config.in: Regenerate.
6366         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
6367         works.
6369 2010-04-16  Richard Guenther  <rguenther@suse.de>
6371         * tree.h (struct tree_decl_minimal): Move pt_uid ...
6372         (struct tree_decl_common): ... here.
6373         (DECL_PT_UID): Adjust.
6374         (SET_DECL_PT_UID): Likewise.
6375         (DECL_PT_UID_SET_P): Likewise.
6377 2010-04-16  Richard Guenther  <rguenther@suse.de>
6379         PR tree-optimization/43572
6380         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
6381         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
6382         * tree-flow.h (is_call_clobbered): Remove.
6383         * tree-flow-inline.h (is_call_clobbered): Likewise.
6384         * tree-dfa.c (dump_variable): Do not dump call clobber state.
6385         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
6386         (execute_return_slot_opt): Adjust.
6387         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
6388         check for call clobbered vars here.
6389         (find_tail_calls): Move tailcall verification to the
6390         proper place.
6392 2010-04-16  Diego Novillo  <dnovillo@google.com>
6394         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
6396 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
6398         PR target/40603
6399         * config/arm/arm.md (cbranchqi4): New pattern.
6400         * config/arm/predicates.md (const0_operand,
6401         cbranchqi4_comparison_operator): New predicates.
6403 2010-04-16  Richard Guenther  <rguenther@suse.de>
6405         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
6406         (dump_gimple_stmt): Likewise.
6408 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
6410         * recog.h (struct recog_data): New field is_operator.
6411         (struct insn_operand_data): New field is_operator.
6412         * recog.c (extract_insn): Set recog_data.is_operator.
6413         * genoutput.c (output_operand_data): Emit code to set the
6414         is_operator field.
6415         * reload.c (find_reloads): Use it rather than testing for an
6416         empty constraint string.
6418         PR target/41514
6419         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
6420         If the previous insn is a cbranchsi4_insn with the same arguments,
6421         omit the compare instruction.
6423         * config/arm/arm.md (addsi3_cbranch): If destination is a high
6424         register, inputs must be low registers and we need a low register
6425         scratch.  Handle alternative 2 like alternative 3.
6427 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
6429         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
6430         don't call get_addr on both.  If one expression is a VALUE and
6431         the other a REG, check VALUE's locs if the REG isn't among them.
6433 2010-04-16  Christian Bruel  <christian.bruel@st.com>
6435         * config/sh/sh.h (sh_frame_pointer_required): New function.
6436         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
6437         (flag_omit_frame_pointer) Set.
6438         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
6439         (rounded_frame_size): Adjust size with outgoing_args_size.
6440         (sh_set_return_address): Must return from stack pointer.
6441         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
6442         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
6443         (ACCUMULATE_OUTGOING_ARGS): Define.
6444         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
6445         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
6447 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
6449         PR target/43471
6450         * config/sh/sh.c (sh_legitimize_reload_address): Use
6451         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
6452         Remove a unneeded check for offset_base.
6454 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
6456         * configure: Regenerated.
6458 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6460         * config/s390/s390.c (s390_call_save_register_used): Switch back
6461         to HARD_REGNO_NREGS.
6463 2010-04-15  Richard Guenther  <rguenther@suse.de>
6465         * alias.c (alias_set_subset_of): Handle alias-set zero
6466         child properly.
6468 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
6469             Julian Brown  <julian@codesourcery.com>
6471         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
6472         alternatives according to use of high and low regs.
6473         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
6474         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
6475         optimizing for size on Thumb-2.
6477 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
6479         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
6481 2010-04-15  Richard Guenther  <rguenther@suse.de>
6483         * tree-ssa-structalias.c (struct variable_info): Add
6484         is_fn_info flag.
6485         (new_var_info): Initialize it.
6486         (dump_constraints): Support printing last added constraints.
6487         (debug_constraints): Adjust.
6488         (dump_constraint_graph): Likewise.
6489         (make_heapvar_for): Check for NULL cfun.
6490         (get_function_part_constraint): New function.
6491         (get_fi_for_callee): Likewise.
6492         (find_func_aliases): Properly implement IPA PTA constraints.
6493         (process_ipa_clobber): New function.
6494         (find_func_clobbers): Likewise.
6495         (insert_into_field_list_sorted): Remove.
6496         (create_function_info_for): Properly allocate vars for IPA mode.
6497         Do not use insert_into_field_list_sorted.
6498         (create_variable_info_for): Properly generate constraints for
6499         global vars in IPA mode.
6500         (dump_solution_for_var): Always dump the solution.
6501         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
6502         (find_what_var_points_to): Adjust.
6503         (pt_solution_set): Change.
6504         (pt_solution_ior_into): New function.
6505         (pt_solution_empty_p): Export.
6506         (pt_solution_includes_global): Adjust.
6507         (pt_solution_includes_1): Likewise.
6508         (pt_solutions_intersect_1): Likewise.
6509         (dump_sa_points_to_info): Check some invariants.
6510         (solve_constraints): Move constraint dumping ...
6511         (compute_points_to_sets): ... here.
6512         (ipa_pta_execute): ... and here.
6513         (compute_may_aliases): Do not re-compute points-to info
6514         locally if IPA info is available.
6515         (ipa_escaped_pt): New global var.
6516         (ipa_pta_execute): Properly implement IPA PTA.
6517         * tree-into-ssa.c (dump_decl_set): Support dumping
6518         decls not in referenced-vars.
6519         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
6520         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
6521         (dump_points_to_solution): Likewise.
6522         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
6523         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
6524         (remap_gimple_stmt): Reset call clobber/use information if necessary.
6525         (copy_decl_to_var): Copy DECL_PT_UID.
6526         (copy_result_decl_to_var): Likewise.
6527         * tree.c (make_node_stat): Initialize DECL_PT_UID.
6528         (copy_node_stat): Copy it.
6529         * tree.h (DECL_PT_UID): New macro.
6530         (SET_DECL_PT_UID): Likewise.
6531         (DECL_PT_UID_SET_P): Likewise.
6532         (struct tree_decl_minimal): Add pt_uid member.
6533         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
6534         (pt_solution_empty_p): Declare.
6535         (pt_solution_set): Adjust.
6536         (ipa_escaped_pt): Declare.
6537         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
6538         * gimple-pretty-print.c (pp_points_to_solution): New function.
6539         (dump_gimple_call): Dump call clobber/use information.
6540         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
6541         * tree-pass.h (TDF_ALIAS): New dump option.
6542         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
6543         * doc/invoke.texi (-fipa-pta): Update documentation.
6545 2010-04-15  Richard Guenther  <rguenther@suse.de>
6547         * Makefile.in (OBJS-common): Add gimple-fold.o.
6548         (gimple-fold.o): New rule.
6549         * tree.h (maybe_fold_offset_to_reference,
6550         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
6551         prototypes ...
6552         * gimple.h: ... here.
6553         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
6554         may_propagate_address_into_dereference): Move prototypes ...
6555         * gimple.h: ... here.
6556         * tree-ssa-ccp.c (get_symbol_constant_value,
6557         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
6558         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
6559         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
6560         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
6561         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
6562         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
6563         gimplify_and_update_call_from_tree): Move ...
6564         * gimple-fold.c: ... here.  New file.
6565         (ccp_fold_builtin): Rename to ...
6566         (gimple_fold_builtin): ... this.
6567         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
6569 2010-04-15  Richard Guenther  <rguenther@suse.de>
6571         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
6572         fit_double_type, force_fit_type_double, add_double_with_sign,
6573         neg_double, mul_double_with_sign, lshift_double, rshift_double,
6574         lrotate_double, rrotate_double, div_and_round_double): Move ...
6575         * double-int.c: ... here.
6576         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
6577         add_double, neg_double, mul_double_with_sign, mul_double,
6578         lshift_double, rshift_double, lrotate_double, rrotate_double,
6579         div_and_round_double): Move prototypes ...
6580         * double-int.h: ... here.
6582 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
6584         PR target/43742
6585         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
6586         matching constraints to ensure inputs match the output.
6588 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
6590         PR target/43742
6591         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
6592         in an input-only operand.
6594 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
6596         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
6597         (double_int_not, double_int_lshift, double_int_rshift): Declare.
6598         (double_int_negative_p): Convert to static inline function.
6599         * double-int.c (double_int_lshift, double_int_lshift): New functions.
6600         (double_int_negative_p): Remove.
6601         * tree.h (lshift_double, rshift_double):
6602         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
6603         * fold-const.c (fold_convert_const_int_from_real,
6604         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
6605         (lshift_double): Change type of arith argument to bool.
6606         (rshift_double): Change type of arith argument to bool. Correct
6607         comment.
6608         * expmed.c (mask_rtx, lshift_value): (Ditto.).
6610 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
6612         PR target/21803
6613         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
6614         at the start and end of the then/else blocks, and omit them from the
6615         conversion.
6616         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
6617         argument; all callers changed.  Pass zero to old_insns_match_p instead.
6618         (flow_find_head_matching_sequence): New function.
6619         (old_insns_match_p): Check REG_EH_REGION notes for calls.
6620         * basic-block.h (flow_find_cross_jump,
6621         flow_find_head_matching_sequence): Declare functions.
6623 2010-04-14  Jason Merrill  <jason@redhat.com>
6625         PR c++/36625
6626         * c-common.c (attribute_takes_identifier_p): New fn.
6627         * c-common.h: Declare it.
6629 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6631         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
6632         splitter condition.
6633         (*udivmod<mode>4): Ditto.
6635 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6637         * config/i386/i386.md (maxmin_int): Rename code attribute from
6638         maxminiprefix and update all users.
6639         (maxmin_float): Ditto from maxminfprefix.
6640         (logic): Ditto from logicprefix.
6641         (absneg_mnemonic): Ditto from absnegprefix.
6642         * config/i386/mmx.md: Update all users of maxminiprefix,
6643         maxminfprefix and logicprefix for rename.
6644         * config/i386/sse.md: Ditto.
6645         * config/i386/sync.md (sync_<code><mode>): Update for
6646         logicprefix rename.
6648 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6650         PR 42966
6651         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
6652         warnings converted to errors.
6654 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6656         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
6657         used insn_type variable.
6658         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
6659         to avoid set-but-not-used warning.
6661 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6663         * df-core.c (df_ref_debug): Change format string placeholder
6664         from 0x%x to %#x.
6665         * dwarf2asm.c (dw2_asm_output_data_raw,
6666         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
6667         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
6668         * dwarf2out.c (output_cfi, output_cfi_directive,
6669         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
6670         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
6671         Ditto.
6672         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
6673         * print-rtl.c (print_rtx): Ditto.
6675 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
6677         PR middle-end/42694
6678         * builtins.c (expand_builtin_pow_root): New function to expand pow
6679         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
6680         series of sqrt and cbrt calls under -ffast-math.
6681         (expand_builtin_pow): Call it.
6683 2010-04-14  Michael Matz  <matz@suse.de>
6685         PR tree-optimization/42963
6686         * tree-cfg.c (touched_switch_bbs): New static variable.
6687         (group_case_labels_stmt): New function broken out from ...
6688         (group_case_labels): ... here, use the above.
6689         (start_recording_case_labels): Allocate touched_switch_bbs.
6690         (end_recording_case_labels): Deallocate it, call
6691         group_case_labels_stmt.
6692         (gimple_redirect_edge_and_branch): Remember index of affected BB.
6694 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6696         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
6697         from insn template.
6699 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
6701         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
6703 2010-04-13  Jan Hubicka  <jh@suse.cz>
6705         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
6706         of optimized out static functions.
6707         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
6708         cost computation.  Also sanity check for overflows.
6709         (update_caller_keys): Update cgraph_edge_badness call; properly
6710         update fibheap and sanity check that it is up to date.
6711         (add_new_edges_to_heap): Update cgraph_edge_badness.
6712         (cgraph_decide_inlining_of_small_function): Likewise;
6713         add sanity checking that badness in heap is up to date;
6714         improve dumping of reason; Update badness of calls to the
6715         offline copy of function currently inlined; dump badness
6716         of functions not inlined because of unit growth limits.
6718 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
6720         PR middle-end/32628
6721         * c-common.c (pointer_int_sum): Disregard overflow that occured only
6722         because of sign-extension change when converting to sizetype here...
6723         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
6725         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
6726         the folding to constants.  Remove redundant final conversion.
6727         (fold_binary) <associate>: Do not associate if the re-association of
6728         constants alone overflows.
6729         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
6730         to the end of the list.
6731         (multiple_of_p) <COND_EXPR>: New case.
6733 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6735         * opt-functions.awk (opt_sanitized_name): New.
6736         (opt_enum): New.
6737         * optc-gen.awk: Use it
6738         * opth-gen.awk: Use it.
6740 2010-04-13  Martin Jambor  <mjambor@suse.cz>
6742         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
6743         (sra_modify_assign): Delete stmts loading dead data even if racc has no
6744         children.  Call replace_uses_with_default_def_ssa_name to handle
6745         SSA_NAES on lhs.
6747 2010-04-13  Michael Matz  <matz@suse.de>
6749         PR middle-end/43730
6750         * builtins.c (expand_builtin_interclass_mathfn): Also create
6751         a register if the predicate doesn't match.
6753 2010-04-13  Diego Novillo  <dnovillo@google.com>
6755         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
6756         * c-pch.c: Include timevar.h.
6757         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
6758         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
6759         * ggc-common.c: Include timevar.h.
6760         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
6761         * timevar.def (TV_PCH_SAVE): Define.
6762         (TV_PCH_CPP_SAVE): Define.
6763         (TV_PCH_PTR_REALLOC): Define.
6764         (TV_PCH_PTR_SORT): Define.
6765         (TV_PCH_RESTORE): Define.
6766         (TV_PCH_CPP_RESTORE): Define.
6768 2010-04-13  Michael Matz  <matz@suse.de>
6770         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
6771         into MINUS_EXPRs.
6772         (can_reassociate_p): New function.
6773         (break_up_subtract_bb, reassociate_bb): Use it.
6775 2010-04-13  Richard Guenther  <rguenther@suse.de>
6777         PR bootstrap/43737
6778         * builtins.c (c_readstr): Fix assert.
6780 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
6782         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
6783         when generating cltd insn.
6785         (*ashl<mode>3_1): Remove special handling for register operand 2.
6786         (*ashlsi3_1_zext): Ditto.
6787         (*ashlhi3_1): Ditto.
6788         (*ashlhi3_1_lea): Ditto.
6789         (*ashlqi3_1): Ditto.
6790         (*ashlqi3_1_lea): Ditto.
6791         (*<shiftrt_insn><mode>3_1): Ditto.
6792         (*<shiftrt_insn>si3_1_zext): Ditto.
6793         (*<shiftrt_insn>qi3_1_slp): Ditto.
6794         (*<rotate_insn><mode>3_1): Ditto.
6795         (*<rotate_insn>si3_1_zext): Ditto.
6796         (*<rotate_insn>qi3_1_slp): Ditto.
6798 2010-04-13  Richard Guenther  <rguenther@suse.de>
6800         * tree-ssa-structalias.c (callused_id): Remove.
6801         (call_stmt_vars): New.
6802         (get_call_vi): Likewise.
6803         (lookup_call_use_vi): Likewise.
6804         (lookup_call_clobber_vi): Likewise.
6805         (get_call_use_vi): Likewise.
6806         (get_call_clobber_vi): Likewise.
6807         (make_transitive_closure_constraints): Likewise.
6808         (handle_const_call): Adjust to do per-call call-used handling.
6809         (handle_pure_call): Likewise.
6810         (find_what_var_points_to): Remove general callused handling.
6811         (init_base_vars): Likewise.
6812         (init_alias_vars): Initialize call_stmt_vars.
6813         (compute_points_to_sets): Process call-used and call-clobbered
6814         vars for call statements.
6815         (delete_points_to_sets): Free call_stmt_vars.
6817 2010-04-13  Richard Guenther  <rguenther@suse.de>
6819         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
6820         Only add RW dependence for dependence distance zero.
6821         Adjust maximal vectorization factor according to dependences.
6822         Move alignment handling ...
6823         (vect_find_same_alignment_drs): ... here.  New function.
6824         (vect_analyze_data_ref_dependences): Adjust.
6825         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
6826         (vect_analyze_data_refs): Adjust minimal vectorization factor
6827         according to data references.
6828         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
6829         dependences before determining the vectorization factor.
6830         Analyze alignment after determining the vectorization factor.
6831         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
6832         dependences before alignment.
6833         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
6834         Adjust prototype.
6835         (vect_analyze_data_refs): Likewise.
6836         (MAX_VECTORIZATION_FACTOR): New define.
6838 2010-04-13  Duncan Sands  <baldrick@free.fr>
6840         * except.h (lang_eh_type_covers): Remove.
6841         * except.c (lang_eh_type_covers): Likewise.
6843 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6844             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6846         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
6847         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
6848         UNITS_PER_LONG where it is ABI relevant.
6849         (s390_return_addr_rtx): Likewise.
6850         (s390_back_chain_rtx): Likewise.
6851         (s390_frame_area): Likewise.
6852         (s390_frame_info): Likewise.
6853         (s390_initial_elimination_offset): Likewise.
6854         (save_gprs): Likewise.
6855         (s390_emit_prologue): Likewise.
6856         (s390_emit_epilogue): Likewise.
6857         (s390_function_arg_advance): Likewise.
6858         (s390_function_arg): Likewise.
6859         (s390_va_start): Likewise.
6860         (s390_gimplify_va_arg): Likewise.
6861         (s390_function_profiler): Likewise.
6862         (s390_optimize_prologue): Likewise.
6863         (s390_rtx_costs): Likewise.
6864         (s390_secondary_reload): Likewise.
6865         (s390_promote_function_mode): Likewise.
6866         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
6867         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
6868         registers available.
6869         (s390_unwind_word_mode): New function.
6870         (s390_function_value): Split 64 bit values into register pair if
6871         used as return value.
6872         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
6873         function call parameters.  Handle parallels.
6874         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
6875         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
6876         (DWARF_CIE_DATA_ALIGNMENT): New macro.
6877         (s390_expand_setmem): Remove unused variable src_addr.
6878         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
6879         deal with 64 bit registers.
6880         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
6881         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
6882         (UNITS_PER_LONG): New macro.
6883         * libjava/include/s390-signal.h: Define extended ucontext
6884         structure containing the upper halfs of the 64 bit registers.
6886 2010-04-13  Simon Baldwin  <simonb@google.com>
6888         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
6890 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
6892         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
6893         rvalue on the RHS if the LHS is of a non-renamable type.
6894         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
6896 2010-04-13  Matthias Klose  <doko@ubuntu.com>
6898         * gcc.c (cc1_options): Handle -iplugindir before processing
6899         the cc1 spec. Only add -iplugindir once.
6900         (cpp_unique_options): Add -iplugindir option if -fplugin* options
6901         found.
6902         * common.opt (iplugindir): Remove `Separate' property, initialize.
6903         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
6904         option.
6905         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
6906         (distclean): Remove plugin dir.
6907         * doc/invoke.texi: Document -iplugindir.
6909 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
6911         * doc/plugins.texi (Loading Plugins): Document short
6912         -fplugin=foo option.
6913         (Plugin API): Mention default_plugin_dir_name function.
6915         * gcc.c (find_file_spec_function): Add new declaration.
6916         (static_spec_func): Use it for "find-file".
6917         (find_file_spec_function): Add new function.
6918         (cc1_options): Add -iplugindir option if -fplugin* options found.
6920         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
6922         * plugin.c (add_new_plugin): Updated comment, and handle short
6923         plugin name.
6924         (default_plugin_dir_name): Added new function.
6926         * common.opt (iplugindir): New option to set the plugin directory.
6928 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
6930         * config/i386/i386.md (any_rotate): New code iterator.
6931         (rotate_insn): New code attribute.
6932         (rotate): Ditto.
6933         (SWIM124): New mode iterator.
6934         (<rotate_insn>ti3): New expander.
6935         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
6936         any_rotate code iterator.
6937         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
6938         using any_rotate code iterator and SWIM124 mode iterator.
6939         (ix86_rotlti3): New insn_and_split pattern.
6940         (ix86_rotrti3): Ditto.
6941         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
6942         ix86_rotl{di,ti}3 patterns.
6943         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
6944         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
6945         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
6946         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
6947         code iterator and SWI mode iterator.
6948         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
6949         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
6950         code iterator.
6951         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
6952         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
6953         (bswap rotatert splitter): Add splitter.
6954         (bswap splitter): Macroize splitter using any_rotate code iterator.
6955         Add insn predicate to split only for TARGET_USE_XCHGB or when
6956         optimizing function for size.
6958 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
6960         * config/pa/pa.c (emit_move_sequence): Remove use of
6961         deleted variable flag_argument_noalias.
6963 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6965         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
6966         configurations.
6967         Add to unsupported targets list.
6968         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
6969         sparc*-sun-solaris2.[567]* from target lists.
6970         * configure: Regenerate.
6971         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
6972         removal.
6973         Remove Solaris 7 patch references.
6974         (Specific, sparc-sun-solaris2.7): Removed.
6975         (sparc-sun-solaris2*): Update Solaris 7 example.
6976         (sparc64-*-solaris2*): Likewise.
6978 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6980         * config.build (alpha*-dec-osf4*): Remove.
6981         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
6982         of obsolete configurations.
6983         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
6984         support.
6985         * config/alpha/t-osf4: Renamed to ...
6986         * config/alpha/t-osf5: ... this.
6987         * config/alpha/osf.h: Renamed to ...
6988         * config/alpha/osf5.h: ... this.
6989         Merged old osf5.h contents.
6990         Update comments.
6991         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
6992         (EXTRA_SPECS): Removed.
6993         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
6994         reflect removal of Tru64 UNIX V4.0/V5.0 support.
6995         Document that.
6997 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6999         * doc/contrib.texi (Contributors, Rainer Orth): Update.
7001 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
7003         PR/43702
7004         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
7005         __thiscall convention.
7007 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
7009         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
7010         orig_base.
7011         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
7013 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
7015         * function.c (assign_parms_initialize_all): Add unused attribute
7016         to fntype.
7018 2010-04-12  Richard Guenther  <rguenther@suse.de>
7020         * gsstruct.def (GSS_CALL): New.
7021         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
7022         * gimple.h: Include tree-ssa-alias.h.
7023         (struct gimple_statement_call): New.
7024         (union gimple_statement_struct_d): Add gimple_call member.
7025         (gimple_call_reset_alias_info): Declare.
7026         (gimple_call_use_set): New function.
7027         (gimple_call_clobber_set): Likewise.
7028         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
7029         * gimple.c (gimple_call_reset_alias_info): New function.
7030         (gimple_build_call_1): Call it.
7031         * lto-streamer-in.c (input_gimple_stmt): Likewise.
7032         * tree-inline.c (remap_gimple_stmt): Likewise.
7033         (expand_call_inline): Remove callused handling.
7034         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
7035         * tree-dfa.c (dump_variable): Likewise.
7036         * tree-parloops.c (parallelize_loops): Likewise.
7037         * tree-ssa.c (init_tree_ssa): Likewise.
7038         (delete_tree_ssa): Likewise.
7039         * tree-flow-inline.h (is_call_used): Remove.
7040         * tree-flow.h (struct gimple_df): Remove callused member.
7041         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
7042         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
7043         (ref_maybe_used_by_call_p_1): Simplify.
7044         (call_may_clobber_ref_p_1): Likewise.
7045         * tree-ssa-structalias.c (compute_points_to_sets): Set
7046         the call stmt used and clobbered sets.
7047         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
7048         (find_tail_calls): Verify the tail call.
7050 2010-04-12  Richard Guenther  <rguenther@suse.de>
7052         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
7053         single-iteration always-inline inlining.
7054         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
7055         (cgraph_decide_inlining): Do not handle always-inline specially.
7056         (try_inline): Remove always-inline cycle detection special case.
7057         Do not recurse on always-inlines.
7058         (cgraph_early_inlining): Do not iterate if not optimizing.
7059         (cgraph_gate_early_inlining): remove.
7060         (pass_early_inline): Run unconditionally.
7061         (gate_cgraph_decide_inlining): New function.
7062         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
7063         not inlining or optimizing.
7064         (cgraph_decide_inlining_of_small_functions): Also consider
7065         always-inline functions.
7066         (cgraph_default_inline_p): Return true for nodes which should
7067         disregard inline limits.
7068         (estimate_function_body_sizes): Assume zero size and time for
7069         nodes which are marked as disregarding inline limits.
7070         (cgraph_decide_recursive_inlining): Do not perform recursive
7071         inlining on always-inline nodes.
7073 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
7075         PR bootstrap/43699
7076         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
7077         for exprs satisfying handled_component_p.
7079 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
7081         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
7082         non-constant aggregate elements.
7084         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
7085         is a real initialization.
7087 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
7089         PR c/36774
7090         * c-decl.c (start_function): Move forward check for nested function.
7092 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
7094         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
7095         * config/sh/sh.c: Include reload.h.
7096         (sh_legitimize_reload_address): New.
7097         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
7098         sh_legitimize_reload_address.
7100 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
7102         * config/sh/sh.md (*movqi_pop): New insn pattern.
7103         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
7105 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
7107         * config/i386/i386.md (any_shiftrt): New code iterator.
7108         (shiftrt_insn): New code attribute.
7109         (shiftrt): Ditto.
7110         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
7111         using any_shiftrt code iterator.
7112         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
7113         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
7114         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
7115         pattern from corresponding peephole2 patterns.
7116         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
7117         using any_shiftrt code iterator.
7118         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
7119         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
7120         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
7121         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
7122         *{ashr,lshr}<mode>3_cmp_zext.
7123         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
7125 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
7127         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
7128         scratch register.
7129         (*lshr<mode>3_cconly): Ditto.
7131 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
7133         * config/i386/i386.md (lshr<mode>3): Macroize expander from
7134         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
7135         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
7136         pattern from *lshr{di,ti}3_1 and corresponding splitters using
7137         DWI mode iterator.
7138         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
7139         from corresponding peephole2 patterns.
7140         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
7141         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
7142         and *lshrdi3_1_rex64 using SWI mode iterator.
7143         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
7144         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
7145         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
7146         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
7147         and *lshrdi3_cmp_rex64 using SWI mode iterator.
7148         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
7149         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
7150         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
7151         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
7152         SWI mode iterator.
7154 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
7156         * config/i386/i386.md (ashr<mode>3): Macroize expander from
7157         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
7158         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
7159         pattern from *ashr{di,ti}3_1 and corresponding splitters using
7160         DWI mode iterator.
7161         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
7162         from corresponding peephole2 patterns.
7163         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
7164         (ashrsi3_cvt): Rename from ashrsi3_31.
7165         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
7166         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
7167         and x86_64_shift_adj_3 using SWI48 mode iterator.
7168         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
7169         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
7170         and *ashrdi3_1_rex64 using SWI mode iterator.
7171         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
7172         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
7173         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
7174         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
7175         and *ashrdi3_cmp_rex64 using SWI mode iterator.
7176         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
7177         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
7178         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
7179         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
7180         SWI mode iterator.
7181         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
7182         * config/i386/i386.c (ix86_split_ashr): Update for renamed
7183         x86_shift<mode>_adj_3 expanders.
7185 2010-04-10  Wei Guozhi  <carrot@google.com>
7187         PR target/42601
7188         * config/arm/arm.c (arm_pic_static_addr): New function.
7189         (legitimize_pic_address): Call arm_pic_static_addr when it detects
7190         a static symbol.
7191         (arm_output_addr_const_extra): Output expression for new pattern.
7192         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
7194 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
7196         * ira-costs.c (record_reg_classes): Ignore alternatives that are
7197         not enabled.
7199         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
7200         * web.c: Include "insn-config.h" and "recog.h".
7201         (union_match_dups): New function.
7202         (web_main): Call it.
7203         (union_defs): Don't try to recognize match_dups.
7205         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
7206         if doing so would replace the entire pattern.
7208 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
7210         PR target/43707
7211         PR target/43709
7212         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
7213         and splitter pattern.  Change splitter operand 1 predicate to
7214         nonmemory_operand.
7216 2010-04-09  Martin Jambor  <mjambor@suse.cz>
7218         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
7219         lattices are addresses of CONST_DECLs with the same initial value.
7220         (ipcp_print_all_lattices): Print values of CONST_DECLs.
7221         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
7223 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
7224             Bernd Schmidt  <bernds@codesourcery.com>
7226         * loop-invariant.c (replace_uses): New static function.
7227         (move_invariant_reg): Use it to ensure we can replace the uses.
7229 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
7231         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
7232         function template.
7233         (picochip_override_options): Enable section anchors only above -O1.
7234         (picochip_reorg): Fixed a couple of build warnings.
7236 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7238         * configure.ac (plugin -rdynamic test): Log result.
7239         * configure: Regenerate.
7240         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
7241         (RDYNAMIC_SPEC): Define.
7242         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
7244 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7246         * configure.ac: Determine Sun ld version numbers.
7247         (comdat_group): Restrict GNU ld version checks to gld.
7248         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
7249         (enable_comdat): Support --enable-comdat.
7250         * configure: Regenerate.
7251         * doc/install.texi (Configuration): Document --enable-comdat.
7253 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7255         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
7256         * config/sol2-gld.h: ... here.
7257         * config.gcc (sparc*-*-solaris2*): Reflect this.
7258         (i[34567]86-*-solaris2*): Use it.
7260 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
7262         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
7263         setup_clocks_p.
7264         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
7266 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7268         PR 42965
7269         * diagnostic.c (diagnostic_initialize): Initialize
7270         some_warnings_are_errors.
7271         (diagnostic_finish): New.
7272         (diagnostic_action_after_output): Call it before exiting.
7273         (diagnostic_report_diagnostic): Do not print message here. Set
7274         some_warnings_are_errors.
7275         * diagnostic.h (diagnostic_context): Delete
7276         issue_warnings_are_errors_message. Add some_warnings_are_errors.
7277         (diagnostic_finish): Declare.
7278         * toplev.c (toplev_main): Call it before exit.
7280 2010-04-09  Jason Merrill  <jason@redhat.com>
7282         PR c++/42623
7283         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
7284         for incomplete type.
7286         PR c++/41788
7287         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
7288         based on a warning flag.
7290 2010-04-09  Richard Guenther  <rguenther@suse.de>
7292         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
7294 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
7296         PR bootstrap/43684
7297         * varasm.c (default_assemble_visibility): Wrap vars that are
7298         set, but unused, by targets without GAS.
7299         * config/rs6000/rs6000.c (paired_emit_vector_compare):
7300         Remove set, but unused, vars.
7301         (rs6000_legitimize_tls_address): Likewise.
7302         (altivec_expand_dst_builtin): Likewise.
7303         * config/darwin.c (machopic_classify_symbol): Likewise.
7304         (machopic_indirection_name): Likewise.
7306 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
7308         * config/i386/i386.md (DWI): New mode iterator.
7309         (S): New mode attribute.
7310         (shift_operand): Ditto.
7311         (shift_immediate_operand): Ditto.
7312         (ashl_input_operand): Ditto.
7313         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
7314         using SDWIM mode iterator.
7315         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
7316         pattern from *ashl{di,ti}3_1 and corresponding splitters using
7317         DWI mode iterator.
7318         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
7319         from corresponding peephole2 patterns.
7320         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
7321         and x86_64_shift_adj_1 using SWI48 mode iterator.
7322         (x86_shift<mode>_adj_2): Ditto.
7323         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
7324         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
7325         using SWI48 mode iterator.
7326         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
7327         *ashldi3_cmp_rex64 using SWI mode iterator.
7328         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
7329         *ashldi3_cconly_rex64 using SWI mode iterator.
7330         * config/i386/i386.c (ix86_split_ashl): Update for renamed
7331         x86_shift<mode>_adj_{1,2}.
7332         (ix86_split_ashr): Ditto.
7333         (ix86_split_lshr): Ditto.
7335 2010-04-09  Richard Guenther  <rguenther@suse.de>
7337         * target.h (builtin_conversion): Pass in input and output types.
7338         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
7339         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
7340         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
7341         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
7343         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
7344         Handle AVX modes.
7345         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
7347 2010-04-09  Richard Guenther  <rguenther@suse.de>
7349         PR target/43152
7350         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
7352 2010-04-09  Richard Guenther  <rguenther@suse.de>
7354         * tree-vectorizer.h (struct _stmt_vec_info): Document
7355         that vectype is the type of the LHS.
7356         (supportable_widening_operation, supportable_narrowing_operation):
7357         Get both input and output vector types as arguments.
7358         (vect_is_simple_use_1): Declare.
7359         (get_same_sized_vectype): Likewise.
7360         * tree-vect-loop.c (vect_determine_vectorization_factor):
7361         Set STMT_VINFO_VECTYPE to the vector type of the def.
7362         (vectorizable_reduction): Adjust.
7363         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
7364         Adjust.  Specify the output vector type.
7365         (vect_pattern_recog_1): Adjust.
7366         * tree-vect-stmts.c (get_same_sized_vectype): New function.
7367         (vectorizable_call): Adjust.
7368         (vectorizable_conversion): Likewise.
7369         (vectorizable_operation): Likewise.
7370         (vectorizable_type_demotion): Likewise.
7371         (vectorizable_type_promotion): Likewise.
7372         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
7373         the def.
7374         (vect_is_simple_use_1): New function.
7375         (supportable_widening_operation): Get both input and output
7376         vector types.
7377         (supportable_narrowing_operation): Likewise.
7378         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
7380 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
7382         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
7383         __thiscall and _thiscall as predefined macros.
7384         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
7385         thiscall attribute handling.
7386         (ix86_comp_type_attributes): Likewise.
7387         (ix86_function_regparm): Likewise.
7388         (ix86_return_pops_args): Likewise.
7389         (init_cumulative_args): Likewise.
7390         (find_drap_reg): Likewise.
7391         (ix86_static_chain): Likewise.
7392         (x86_this_parameter): Likewise.
7393         (x86_output_mi_thunk): Likewise.
7394         (ix86_attribute_table): Add description for thiscall attribute.
7395         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
7396         * doc/extend.texi: Add documentation for thiscall.
7398 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7400         PR c++/28584
7401         * c.opt (Wint-to-pointer-cast): Available in C++.
7402         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
7404 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7406         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
7407         * calls.c (expand_call): Pass the function type to aggregate_value_p.
7408         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
7409         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
7410         function type instead.  Reorder and simplify checks.
7412         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
7414 2010-04-08  Jing Yu  <jingyu@google.com>
7415             Zdenek Dvorak  <ook@ucw.cz>
7417         PR tree-optimization/42720
7418         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
7419         loop unswitch conditions here from ...
7420         (tree_unswitch_single_loop): ... here.
7422 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
7424         * tree-if-conv.c: Fix comments and simplify logic.
7426 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
7428         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
7429         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
7430         (main_tree_if_conversion): Update call to tree_if_conversion.
7432 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7434         PR 42485
7435         * doc/invoke.texi (-b,-V): Delete.
7436         * doc/tm.texi: Do not mention -b.
7437         * gcc.c (display_help): Delete -b and -V.
7438         (process_command): Delete -b and -V.
7439         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
7441 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
7442             Wolfgang Gellerich  <gellerich@de.ibm.com>
7444         Implement target hook for loop unrolling
7445         * target.h (loop_unroll_adjust): Add a new target hook function.
7446         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
7447         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
7448         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
7449         (s390_loop_unroll_adjust): Implement the new target hook for s390.
7450         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
7451         target hook.
7452         (decide_unroll_stupid): Likewise.
7454 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7456         PR target/43643
7457         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
7459 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7461         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
7462         (Specific, *-*-solaris2*): Likewise.
7463         Don't prefer Sun as over GNU as.
7465 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
7467         * config/s390/s390.c (override_options): Adjust the z10 defaults
7468         for max-unroll-times, max-completely-peeled-insns
7469         and max-completely-peel-times.
7471 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7473         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
7474         instructions for z10.
7475         (s390_expand_setmem): Likewise.
7476         (s390_expand_cmpmem): Likewise.
7478 2010-04-08  Richard Guenther  <rguenther@suse.de>
7480         PR tree-optimization/43679
7481         * tree-ssa-pre.c (eliminate): Only propagate copies.
7483 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
7485         PR bootstrap/43681
7486         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
7487         set but not used variable warning.
7489 2010-04-08  Wei Guozhi  <carrot@google.com>
7491         PR target/41653
7492         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
7493         (arm_size_rtx_costs): Call the new function when optimized for size.
7495 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
7497         PR debug/43670
7498         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
7499         op0 is not a MEM, just return NULL instead of assertion
7500         failure.
7501         (discover_nonconstant_array_refs): Don't walk debug stmts.
7503 2010-04-08  Doug Kwan  <dougkwan@google.com>
7505         * configure.ac: Recognize gold and do not use its version number
7506         to test ld features.
7507         * configure: Regenerate.
7509 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
7511         PR middle-end/40815
7512         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
7513         (negate_value): Move code to push elements to broken_up_substracts ...
7514         (eliminate_plus_minus_pair): ... here.  Push operands that have no
7515         negative pair to plus_negates.
7516         (repropagate_negates, init_reassoc, fini_reassoc): Update.
7518 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7520         * doc/install.texi (Configuration): Move description of
7521         --enable-lto, --with-libelf*, --enable-gold from Java section to
7522         general section.
7524         * doc/generic.texi (Working with declarations)
7525         (Function Properties, C and C++ Trees): Fix typos.
7526         * doc/sourcebuild.texi (Top Level): Likewise.
7528 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
7530         PR c/18624
7531         * tree.h (DECL_READ_P): Define.
7532         (struct tree_decl_common): Add decl_read_flag.
7533         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
7534         a set but not used warning.
7535         (merge_decls): Merge DECL_READ_P flag.
7536         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
7537         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
7538         * c-common.c (handle_used_attribute, handle_unused_attribute):
7539         Likewise.
7540         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
7541         New prototypes.
7542         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
7543         New functions.
7544         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
7545         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
7546         c_parser_binary_expression, c_parser_cast_expression,
7547         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
7548         Call default_function_array_read_conversion instead of
7549         default_function_array_conversion where needed.
7550         (c_parser_unary_expression, c_parser_conditional_expression,
7551         c_parser_postfix_expression_after_primary, c_parser_initelt):
7552         Likewise.  Call mark_exp_read where needed.
7553         (c_parser_statement_after_labels, c_parser_asm_operands,
7554         c_parser_typeof_specifier, c_parser_sizeof_expression,
7555         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
7556         where needed.
7557         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
7558         New.
7559         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
7560         (warn_unused_but_set_parameter): Default to warn_unused
7561         && extra_warnings.
7562         * doc/invoke.texi: Document -Wunused-but-set-variable and
7563         -Wunused-but-set-parameter.
7565         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
7566         used count variable.
7567         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
7568         when operandN variables aren't used in the body of the expander
7569         or splitter.
7570         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
7571         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
7572         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
7573         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
7574         FOR_EACH_IMM_USE_ON_STMT): Likewise.
7575         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
7576         * tree.c (PROCESS_ARG): Likewise.
7578 2010-04-07  Simon Baldwin  <simonb@google.com>
7580         * diagnostic.h (diagnostic_override_option_index): New macro to
7581         set a diagnostic's option_index.
7582         * c-tree.h (c_cpp_error): Add warning reason argument.
7583         * opts.c (_warning_as_error_callback): New.
7584         (register_warning_as_error_callback): Store callback for
7585         warnings enabled via enable_warning_as_error.
7586         (enable_warning_as_error): Call callback, minor code tidy.
7587         * opts.h (register_warning_as_error_callback): Declare.
7588         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
7589         response to -Werror=.
7590         (c_common_init_options): Register warning_as_error_callback in opts.c.
7591         * common.opt: Add -Wno-cpp option.
7592         * c-common.c (struct reason_option_codes_t): Map cpp warning
7593         reason codes to gcc option indexes.
7594         * (c_option_controlling_cpp_error): New function, lookup the gcc
7595         option index for a cpp warning reason code.
7596         * (c_cpp_error): Add warning reason argument, call
7597         c_option_controlling_cpp_error for diagnostic_override_option_index.
7598         * doc/invoke.texi: Document -Wno-cpp.
7600 2010-04-07  Richard Guenther  <rguenther@suse.de>
7602         * ipa-reference.c (mark_load): Use get_base_address.
7603         (mark_store): Likewise.
7605         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
7606         inserting GIMPLE_NOPs into the IL.
7607         * tree-ssa-structalias.c (get_constraint_for_component_ref):
7608         Explicitly strip handled components and indirect references.
7610         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
7611         folding address expressions.
7612         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
7613         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
7614         operand_equal_p to compare decls.
7615         (ptr_deref_may_alias_decl_p): Likewise.
7616         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
7617         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
7618         Handle reversed comparison ops.
7619         * tree-sra.c (asm_visit_addr): Use get_base_address.
7620         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
7621         * ipa-reference.c (mark_address): Use get_base_address.
7623 2010-04-07  Richard Guenther  <rguenther@suse.de>
7625         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
7626         Propagate constants everywhere.
7628 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
7630         PR debug/43516
7631         * tree.c (MAX_INT_CACHED_PREC): Define.
7632         (nonstandard_integer_type_cache): New array.
7633         (build_nonstandard_integer_type): Cache results for precision
7634         <= MAX_INT_CACHED_PREC.
7636 2010-04-07  Richard Guenther  <rguenther@suse.de>
7638         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
7639         -fargument-noalias-global, -fargument-noalias-anything): Remove.
7640         * common.opt: Likewise.
7641         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
7642         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
7643         (nonoverlapping_memrefs_p): Likewise.
7644         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
7645         * opts.c (common_handle_option): Handle OPT_fargument_alias,
7646         OPT_fargument_noalias, OPT_fargument_noalias_anything and
7647         OPT_fargument_noalias_global for backward compatibility.
7649 2010-04-07  Richard Guenther  <rguenther@suse.de>
7651         PR tree-optimization/43270
7652         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
7653         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
7654         * tree-ssa-pre.c (phi_translate_1): Adjust.
7655         (fully_constant_expression): Split out vn_reference handling to ...
7656         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
7657         Fold reads from constant strings.
7658         (vn_reference_lookup): Handle fully constant references.
7659         (vn_reference_lookup_pieces): Likewise.
7660         * Makefile.in (expmed.o-warn): Add -Wno-error.
7662 2010-04-07  Martin Jambor  <mjambor@suse.cz>
7664         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
7666 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
7668         PR driver/41594
7669         * gcc.c: Add -static-libstdc++ to list of recognized options.
7671 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7673         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
7675 2010-04-07  Richard Guenther  <rguenther@suse.de>
7677         PR middle-end/42617
7678         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
7679         bases build simple mem attributes to retain points-to information.
7681 2010-04-07  Richard Guenther  <rguenther@suse.de>
7683         PR middle-end/42617
7684         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
7685         preserve points-to related information.
7687 2010-04-07  Richard Guenther  <rguenther@suse.de>
7689         PR middle-end/42617
7690         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
7691         discard plain indirect references.
7692         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
7693         * tree.c (tree_nop_conversion): Likewise.
7695 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
7697         PR debug/43628
7698         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
7700 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
7702         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
7703         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
7705 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
7707         * tree-if-conv.c: Fix indentation and comments.
7709 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
7711         * tree-if-conv.c: Sort static functions in topological order.
7713 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
7715         * tree-if-conv.c: Fix indentation and comments.
7717 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7719         PR middle-end/43519
7720         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
7721         lang_hooks.types.type_for_size instead of
7722         build_nonstandard_integer_type.
7723         When converting an unsigned type to signed, double its precision.
7724         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
7725         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
7726         (graphite_create_new_loop_guard): When ub + 1 wraps around,
7727         use lb <= ub.
7729 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7731         PR middle-end/43519
7732         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
7733         POINTER_PLUS_EXPR for pointer types.
7735 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7737         PR middle-end/43519
7738         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
7739         * graphite-clast-to-gimple.c: Include langhooks.h.
7740         (max_signed_precision_type): New.
7741         (max_precision_type): Takes two types as arguments.
7742         (precision_for_value): New.
7743         (precision_for_interval): New.
7744         (gcc_type_for_interval): New.
7745         (gcc_type_for_value): New.
7746         (gcc_type_for_clast_term): New.
7747         (gcc_type_for_clast_red): New.
7748         (gcc_type_for_clast_bin): New.
7749         (gcc_type_for_clast_expr): Split up into several functions.
7750         (gcc_type_for_clast_eq): Rewritten.
7751         (compute_bounds_for_level): New.
7752         (compute_type_for_level_1): New.
7753         (compute_type_for_level): New.
7754         (gcc_type_for_cloog_iv): Removed.
7755         (gcc_type_for_iv_of_clast_loop): Rewritten.
7756         (graphite_create_new_loop): Compute the lower and upper bound types
7757         with gcc_type_for_clast_expr.
7758         (graphite_create_new_loop_guard): Same.
7759         (find_cloog_iv_in_expr): Removed.
7760         (compute_cloog_iv_types_1): Removed.
7761         (compute_cloog_iv_types): Removed.
7762         (gloog): Do not call compute_cloog_iv_types.
7763         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
7764         GBB_CLOOG_IV_TYPES.
7765         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
7766         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
7767         (GBB_CLOOG_IV_TYPES): Removed.
7769 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7771         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
7772         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
7773         (detect_commutative_reduction): Same.
7775 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7777         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
7778         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
7779         argument.
7780         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
7781         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
7782         (rewrite_commutative_reductions_out_of_ssa): Same.
7783         * passes.c (execute_function_todo): Call verify_ssa for every pass
7784         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
7785         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
7786         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
7787         with an extra argument.
7788         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
7789         verify_ssa only when the extra argument is true.
7790         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
7791         with an extra argument.
7792         (tree_transform_and_unroll_loop): Same.
7794 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
7796         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
7797         for all the passes of the LNO having LOOP_CLOSED_SSA.
7798         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
7799         * tree-loop-distribution.c (pass_loop_distribution): Same.
7800         * tree-pass.h (TODO_verify_loops): Removed.
7801         * tree-ssa-loop.c (pass_tree_loop_init): Same.
7802         (pass_lim): Same.
7803         (pass_tree_unswitch): Same.
7804         (pass_predcom): Same.
7805         (pass_vectorize): Same.
7806         (pass_linear_transform): Same.
7807         (pass_graphite_transforms): Same.
7808         (pass_iv_canon): Same.
7809         (pass_complete_unroll): Same.
7810         (pass_complete_unrolli): Same.
7811         (pass_parallelize_loops): Same.
7812         (pass_loop_prefetch): Same.
7813         (pass_iv_optimize): Same.
7815 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
7817         PR middle-end/32824
7818         * passes.c (init_optimization_passes): Move pass_lim before
7819         pass_copy_prop and pass_dce_loop.
7821 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
7823         PR target/43667
7824         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
7825         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
7826         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
7827         MULTI_* defines for 4 argument vpermil2p* builtins.
7829 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
7831         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
7832         * config/i386/i386.c (x86_maybe_negate_const_int): New.
7833         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
7834         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
7835         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
7836         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
7837         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
7838         Use x86_maybe_negate_const_int to output insn mnemonic.
7839         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
7840         check from instruction predicate.  Update comments.
7841         * config/i386/sync.md (sync_add<mode>): Use
7842         x86_maybe_negate_const_int to output insn mnemonic.
7844 2010-04-06  Jan Hubicka  <jh@suse.cz>
7846         PR tree-optimization/42906
7847         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
7848         IGNORE_SELF argument.  Set visited_control_parents for fully
7849         processed BBs.
7850         (find_obviously_necessary_stmts): Update call of
7851         mark_control_dependent_edges_necessary.
7852         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
7854 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
7856         * config/i386/i386.md: Remove comment about 'e' and 'E'
7857         operand modifier.
7859 2010-04-06  Richard Guenther  <rguenther@suse.de>
7861         PR tree-optimization/43627
7862         * tree-vrp.c (extract_range_from_unary_expr): Widenings
7863         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
7864         not varying.
7866 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
7868         * BASE-VER: Change to 4.6.0.
7870         PR target/43638
7871         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
7872         handling.
7874 2010-04-06  Richard Guenther  <rguenther@suse.de>
7876         PR middle-end/43661
7877         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
7879 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7881         * doc/invoke.texi (Optimize Options): Document that LTO
7882         won't remove object access purely due to incompatible
7883         declarations.
7885 2010-04-04  Matthias Klose  <doko@ubuntu.com>
7887         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
7888         Initialize variable.
7890 2010-04-03  Richard Guenther  <rguenther@suse.de>
7892         PR middle-end/42509
7893         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
7894         require a non-NULL MEM_OFFSET.
7896 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
7898         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
7899         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
7900         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
7901         config/alpha/predicates.md, config/arm/arm.md,
7902         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
7903         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
7904         config/darwin9.h, config/darwin.c, config/darwin.h,
7905         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
7906         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
7907         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
7908         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
7909         config/mips/mips.md, config/mn10300/mn10300.c,
7910         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
7911         config/rs6000/aix.h, config/rs6000/dfp.md,
7912         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
7913         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
7914         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
7915         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
7916         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
7917         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
7918         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
7919         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
7920         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
7921         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
7922         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
7923         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
7924         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
7925         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
7926         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
7927         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
7928         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
7929         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
7930         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
7931         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
7932         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
7933         opt-functions.awk, opth-gen.awk, params.def, passes.c,
7934         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
7935         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
7936         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
7937         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
7938         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
7939         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
7940         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
7941         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
7942         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
7943         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
7944         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
7945         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
7946         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
7947         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
7949 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7951         PR other/43620
7952         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
7953         * aclocal.m4: Regenerate.
7955 2010-04-02  Richard Guenther  <rguenther@suse.de>
7957         PR tree-optimization/43629
7958         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
7959         if we have seen a constant value.
7961 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
7963         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
7965 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
7967         PR target/43469
7968         * arm.c (legitimize_tls_address): Adjust call to
7969         gen_tls_load_dot_plus_four.
7970         (arm_note_pic_base): New function.
7971         (arm_cannot_copy_insn_p): Use it.
7972         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
7973         constraint.
7975 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7977         PR bootstrap/43531
7979         Revert:
7980         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7982         * Makefile.in ($(out_object_file)): Depend on
7983         gt-$(basename $(notdir $(out_file))).h.
7985 2010-04-01  Ralf Corsépius <ralf.corsepius@rtems.org>
7987         * config.gcc (lm32-*-rtems*): Add t-lm32.
7989 2010-04-01  Joel Sherrill <joel.sherrill@oarcorp.com>
7991         * config.gcc: Add lm32-*-rtems*.
7992         * config/lm32/rtems.h: New file.
7994 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
7996         PR target/42609
7997         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
7999 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
8001         * dwarf2out.c (output_compilation_unit_header): For
8002         -gdwarf-4 use version 4 instead of version 3.
8003         (output_line_info): For version 4 and above emit additional
8004         maximum ops per insn header field.
8005         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
8007         * dwarf2out.c (is_c_family, is_java): Remove.
8008         (lower_bound_default): New function.
8009         (add_bound_info, gen_descr_array_type_die): Use it.
8011 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
8013         PR debug/43325
8014         * dwarf2out.c (gen_variable_die): Allow debug info for variable
8015         re-declaration when it happens in a function.
8017 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
8019         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
8020         (cgraph_remove_function_insertion_hook): Same.
8021         (cgraph_call_function_insertion_hooks): Same.
8023 2010-04-01  Richard Guenther  <rguenther@suse.de>
8025         PR middle-end/43614
8026         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
8027         and TREE_THIS_VOLATILE.
8028         (copy_ref_info): Likewise.
8029         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
8030         * tree.c (build6_stat): Ignore side-effects of all but arg5
8031         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
8032         TARGET_MEM_REF.
8034 2010-04-01  Richard Guenther  <rguenther@suse.de>
8036         PR tree-optimization/43607
8037         * ipa-type-escape.c (check_call): Do not access non-existing
8038         arguments.
8040 2010-04-01  Richard Guenther  <rguenther@suse.de>
8042         PR middle-end/43602
8043         Revert
8044         2010-03-30  Seongbae Park <seongbae.park@gmail.com>
8045                     Jack Howarth <howarth@bromo.med.uc.edu>
8047         * tree-profile.c (tree_init_ic_make_global_vars): Make static
8048         variables TLS.
8050 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8052         * doc/install.texi (Prerequisites): Document libelf usability on
8053         IRIX 5/6 and Solaris 2.
8054         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
8055         Update GNU as, GNU ld requirements.
8056         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
8057         Document Sun Studio compiler download.
8058         Update and simplify as, ld recommendations.
8059         (Specific, *-*-solaris2.7): Note obsoletion, removal.
8061 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8063         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
8064         with_tune_32 to pentium4.
8066 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
8068         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
8070 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8072         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
8073         obsoletion, removal.
8074         Update IDO URL.
8075         Document GNU as requirement.
8076         Update configure requirements.
8077         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
8078         Recomment IRIX 6.5.18+.
8079         Document IDF/IDL requirement.
8080         Document GNU as requirement.
8081         Document GNU ld bootstrap failure.
8082         Remove freeware.sgi.com reference.
8084 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8086         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
8087         UNIX V4.0, V5.0 obsoletion, removal.
8088         Remove --with-gc=simple reference.
8089         Update VM requirements during bootstrap.
8090         Remove -oldas bootstrap description.
8091         Update binutils reference.
8092         Remove comparison failure note.
8094 2010-03-31  Richard Guenther  <rguenther@suse.de>
8095             Zdenek Dvorak  <ook@ucw.cz>
8096             Sebastian Pop  <sebastian.pop@amd.com>
8098         PR middle-end/43464
8099         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
8100         with multiple arguments.
8101         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
8103 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
8105         * graphite-dependences.c (print_pddr): Call print_pdr with an
8106         extra argument.
8107         * graphite-poly.c (debug_pdr): Add an extra argument for the
8108         verbosity level.
8109         (print_pdr): Same.
8110         (print_pbb_domain): Same.
8111         (print_pbb): Same.
8112         (print_scop_context): Same.
8113         (print_scop): Same.
8114         (print_cloog): Same.
8115         (debug_pbb_domain): Same.
8116         (debug_pbb): Same.
8117         (print_pdrs): Same.
8118         (debug_pdrs): Same.
8119         (debug_scop_context): Same.
8120         (debug_scop): Same.
8121         (debug_cloog): Same.
8122         (print_scop_params): Same.
8123         (debug_scop_params): Same.
8124         (print_iteration_domain): Same.
8125         (print_iteration_domains): Same.
8126         (debug_iteration_domain): Same.
8127         (debug_iteration_domains): Same.
8128         (print_scattering_function): Same.
8129         (print_scattering_functions): Same.
8130         (debug_scattering_function): Same.
8131         (debug_scattering_functions): Same.
8132         * graphite-poly.h (debug_pdr): Update declaration.
8133         (print_pdr): Same.
8134         (print_pbb_domain): Same.
8135         (print_pbb): Same.
8136         (print_scop_context): Same.
8137         (print_scop): Same.
8138         (print_cloog): Same.
8139         (debug_pbb_domain): Same.
8140         (debug_pbb): Same.
8141         (print_pdrs): Same.
8142         (debug_pdrs): Same.
8143         (debug_scop_context): Same.
8144         (debug_scop): Same.
8145         (debug_cloog): Same.
8146         (print_scop_params): Same.
8147         (debug_scop_params): Same.
8148         (print_iteration_domain): Same.
8149         (print_iteration_domains): Same.
8150         (debug_iteration_domain): Same.
8151         (debug_iteration_domains): Same.
8152         (print_scattering_function): Same.
8153         (print_scattering_functions): Same.
8154         (debug_scattering_function): Same.
8155         (debug_scattering_functions): Same.
8157 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
8159         * graphite-poly.c (print_scattering_function_1): New.
8160         (print_scattering_function): Call it.
8161         (print_scop_params): Remove spaces at the end of lines.
8162         (print_cloog): New.
8163         (debug_cloog): New.
8164         * graphite-poly.h (print_cloog): Declared.
8165         (debug_cloog): Declared.
8167 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
8169         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
8170         in loop->header.
8171         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
8172         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
8173         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
8174         to switch between adding the IV bump in loop->latch or in loop->header.
8176 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
8178         * graphite-poly.c (print_scattering_function): Pretty print following
8179         the scoplib format.
8180         (print_pdr): Same.
8181         (print_pbb_domain): Same.
8182         (dump_gbb_cases): Same.
8183         (dump_gbb_conditions): Same.
8184         (print_pdrs): Same.
8185         (print_pbb): Same.
8186         (print_scop_params): Same.
8187         (print_scop_context): Same.
8188         (print_scop): Same.
8189         (print_pbb_body): New.
8190         (lst_indent_to): New.
8191         (print_lst): Start new lines with a #.
8192         * graphite-poly.h (pbb_bb): New.
8193         (pbb_index): Use pbb_bb.
8194         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
8195         disjuncts.
8196         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
8198 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
8200         * dwarf2out.c (size_of_die): For -gdwarf-4 use
8201         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
8202         and 0 instead of 1 for dw_val_class_flag.
8203         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
8204         dw_val_class_range_list, dw_val_class_loc_list,
8205         dw_val_class_lineptr and dw_val_class_macptr, use
8206         DW_FORM_flag_present for dw_val_class_flag and
8207         DW_FORM_exprloc for dw_val_class_loc.
8208         (output_die): For -gdwarf-4 print dw_val_class_loc
8209         size as uleb128 instead of 1 or 2 bytes and don't print
8210         anything for dw_val_class_flag.
8212         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
8213         instead of cselib_lookup following by tweaking locs->setting_insn.
8215         PR bootstrap/43596
8216         * cselib.c (cselib_process_insn): Clear cselib_current_insn
8217         even before returning from label, setjmp call or volatile asm
8218         handling.
8220 2010-03-31  Richard Guenther  <rguenther@suse.de>
8222         PR middle-end/43600
8223         * cgraphunit.c (cgraph_output_in_order): Do not allocate
8224         temporary data on stack.
8226 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8228         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
8229         (PUSHSECTION_ASM_OP): Remove.
8230         (POPSECTION_ASM_OP): Remove.
8231         (PUSHSECTION_FORMAT): Remove.
8232         * config/sol2.h (PUSHSECTION_FORMAT): Define.
8233         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
8234         * config/sol2.c (solaris_output_init_fini): Use it.
8236 2010-03-31  Jie Zhang  <jie@codesourcery.com>
8238         PR 43574
8239         * opt-functions.awk (var_type_struct): Use signed char type
8240         for simple variables.
8242 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8244         * config/sol2.c: Include output.h.
8245         (solaris_assemble_visibility): New function.
8246         * config/t-sol2 (sol2.o): Add output.h dependency.
8247         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
8248         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
8249         Redefine.
8251 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
8253         PR target/43580
8254         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
8255         V2SImode or XFmode on PRE_DEC.
8257         PR debug/43557
8258         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
8259         BLKmode.
8261 2010-03-31  Jie Zhang  <jie@codesourcery.com>
8263         PR 43562
8264         * reload.h (caller_save_initialized_p): Declare.
8265         * toplev.c (backend_init_target): Don't call
8266         init_caller_save but set caller_save_initialized_p to false.
8267         * caller-save.c (caller_save_initialized_p): Define.
8268         (init_caller_save): Check caller_save_initialized_p.
8269         * ira.c (ira): Call init_caller_save if flag_caller_saves.
8271 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8273         PR target/39048
8274         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
8275         and soft-fp/t-softfp to tmake_file.
8276         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
8277         (LIBGCC2_TF_CEXT): Define.
8278         (TF_SIZE): Define.
8280 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
8282         PR debug/42977
8283         * cselib.c (n_useless_values): Document handling of debug locs.
8284         (n_useless_debug_values, n_debug_values): New variables.
8285         (new_elt_loc_list): Don't add to debug values, keep count.
8286         (promote_debug_loc): New.
8287         (cselib_reset_table): Zero new variables.
8288         (entry_and_rtx_equal_p): Promote debug locs.
8289         (discard_useless_locs): Increment n_useless_debug_values for
8290         debug values.
8291         (remove_useless_values): Adjust n_useless_values and n_debug_values
8292         with n_useless_debug_values.
8293         (add_mem_for_addr): Promote debug locs.
8294         (cselib_lookup_mem): Likewise.
8295         (cselib_lookup_addr): Renamed to...
8296         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
8297         (cselib_log_lookup): ... this.  Turn into...
8298         (cselib_lookup_addr): ... new wrapper.
8299         (cselib_lookup_from_insn): New.
8300         (cselib_invalidate_regno): Increment n_useless_debug_values for
8301         debug values.
8302         (cselib_invalidate_mem): Likewise.
8303         (cselib_process_insn): Take n_deleted and n_debug_values into
8304         account to guard remove_useless_value call.
8305         (cselib_finish): Zero n_useless_debug_values.
8306         * cselib.h (cselib_lookup_from_insn): Declare.
8307         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
8308         (sched_analyze_2): Likewise.
8310 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
8312         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
8313         functions.
8314         (adjust_mems): Replace narrowing SUBREG of expression containing
8315         just PLUS, MINUS, MULT and ASHIFT of registers and constants
8316         with operations in the narrower mode.
8318         PR debug/43593
8319         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
8320         regs_invalidated_by_call instead all call_used_reg_set registers.
8322 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
8324         PR middle-end/43430
8325         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
8326         pointer comparisons with types_compatible_p.
8327         * tree-vect-stmts.c (vectorizable_call): Same.
8328         (vectorizable_condition): Same.
8330 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8332         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
8333         stack check if the mask would be zero.
8335 2010-03-30  Seongbae Park <seongbae.park@gmail.com>
8336             Jack Howarth <howarth@bromo.med.uc.edu>
8338         * tree-profile.c (tree_init_ic_make_global_vars): Make static
8339         variables TLS.
8341 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
8343         PR other/25232
8344         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
8345         and __unordtf2.
8346         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
8347         Include ___unordxf2 and ___unordtf2.
8348         * config/i386/libgcc-glibc.ver: Do not define inheritance from
8349         GCC_4.4.0 here.
8351 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
8353         * config/lm32/t-lm32: New file.
8354         * config.gcc: Use the above file when targetting lm32.
8356 2010-03-28  Duncan Sands  <baldrick@free.fr>
8358         * Makefile.in (PLUGIN_HEADERS): Add except.h.
8360 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
8362         PR middle-end/43431
8363         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
8364         Improve vectorization cost model diagnostic.
8366 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
8368         PR middle-end/43436
8369         * tree-vect-data-refs.c (vect_analyze_data_refs): When
8370         compute_data_dependences_for_loop returns false, early exit
8371         and output an extra diagnostic for the failed data reference
8372         analysis.
8374 2010-03-29  Richard Guenther  <rguenther@suse.de>
8376         PR tree-optimization/43560
8377         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
8378         (can_sm_ref_p): Treat stores to readonly locations as trapping.
8380 2010-03-29  Jie Zhang  <jie@codesourcery.com>
8382         PR 43564
8383         * toplev.c (process_options): Set optimization_default_node
8384         and optimization_current_node.
8385         * opts.c (decode_options): Don't set optimization_default_node
8386         and optimization_current_node.
8388 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
8390         * config/rtems.h: Abandon -qrtems_debug.
8392 2010-03-28  Jan Hubicka  <jh@suse.cz>
8394         PR tree-optimization/43505
8395         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
8396         map should not be copied.
8398 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8400         PR middle-end/41674
8401         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
8402         cdtors, set DECL_PRESERVE_P.
8403         * ipa.c (cgraph_externally_visible_p): Return true if declaration
8404         should be preseved.
8406 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
8408         PR tree-optimization/43528
8409         * stor-layout.c (place_field): Check that constant fits into
8410         unsigned HWI when skipping calculation of MS bitfield layout.
8412 2010-03-27  Jan Hubicka  <jh@suse.cz>
8414         PR middle-end/43391
8415         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
8416         notice_global_symbol work.
8418 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
8420         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
8421         instead of dwarf2out_decl.
8422         (struct var_loc_node): Remove section_label field.
8423         (dwarf2out_function_decl): New function.
8424         (dwarf2out_var_location): Don't set section_label field.
8425         (dwarf2out_begin_function): Don't empty decl_loc_table here.
8427 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
8429         PR tree-optimization/43544
8430         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
8431         First argument for builtin vectorized function hook is now a
8432         tree to be able to distinguish between machine specific and
8433         standard builtins.
8434         * targhooks.c (default_builtin_vectorized_function): Ditto.
8435         * targhooks.h (default_builtin_vectorized_function): Ditto.
8436         * target.h (struct gcc_target): Ditto.
8437         * tree-vect-stmts.c (vectorizable_function): Ditto.
8438         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
8439         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
8440         Ditto.
8442 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
8444         PR c/43381
8445         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
8446         nested binding iff it is a FUNCTION_DECL.
8447         (store_parm_decls_newstyle): Pass nested=true to bind for
8448         FUNCTION_DECLs amongst parameters.
8450 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
8452         * var-tracking.c (vt_expand_loc_callback): Don't run
8453         cselib_expand_value_rtx_cb in dummy mode if
8454         cselib_dummy_expand_value_rtx_cb returned false.
8456         * var-tracking.c (emit_note_insn_var_location): For one part
8457         notes with offset 0, don't add EXPR_LIST around the location.
8458         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
8459         add_location_or_const_value_attribute): Adjust for that change.
8461         PR debug/43540
8462         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
8463         into first operand and location into second.
8464         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
8465         dw_cfi_oprnd_loc for DW_CFA_expression.
8466         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
8467         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
8468         assume first argument is regnum and second argument is location.
8470 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
8472         PR target/42113
8473         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
8474         of scratch register to DImode.  Split to DImode comparison operator.
8475         Use SImode subreg of scratch register in the multiplication.
8476         (*cmp_sadd_sidi): Ditto.
8477         (*cmp_ssub_si): Ditto.
8478         (*cmp_ssub_sidi): Ditto.
8480 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
8482         PR target/43524
8483         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
8484         Remove invalid assert and wrong comment.
8486 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
8488         PR debug/43516
8489         * flags.h (final_insns_dump_p): New extern.
8490         * final.c (final_insns_dump_p): New variable.
8491         (rest_of_clean_state): Set it before -fdump-final-insns=
8492         dumping, clear afterwards.
8493         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
8494         MEM_ALIAS_SET on MEMs.
8496 2010-03-26  David S. Miller  <davem@davemloft.net>
8498         * configure.ac: Fix sparc GOTDATA_OP bug check.
8499         * configure: Rebuild.
8501 2010-03-26  Alan Modra  <amodra@gmail.com>
8503         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
8505 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8507         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
8508         TLS_SECTION_ASM_FLAG.
8510 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
8512         PR bootstrap/43511
8513         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
8514         Clear first_function_block_is_cold.
8516         PR c/43385
8517         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
8518         argument if the argument is truth_value_p.
8520 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8522         * config/rs6000/constraints.md: Update copyright year for my changes.
8524         PR target/43484
8525         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
8526         used in reg+reg addressing, swap registers.
8528 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
8530         PR debug/43293
8531         * target.h (struct gcc_target): Add code_end hook.
8532         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
8533         if not yet defined.
8534         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
8535         * toplev.c (compile_file): Call targetm.asm_out.code_end
8536         hook before unwind info/debug info output.
8537         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
8538         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
8539         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
8540         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
8541         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
8542         * config/i386/i386.c (ix86_file_end): Renamed to...
8543         (ix86_code_end): ... this.  Make static.  Don't call
8544         file_end_indicate_exec_stack.  Emit unwind info using
8545         final_start_function/final_end_function.
8546         (darwin_x86_file_end): Remove.
8547         (TARGET_ASM_CODE_END): Define.
8548         * config/i386/i386.h (TARGET_ASM_FILE_END,
8549         NEED_INDICATE_EXEC_STACK): Don't define.
8550         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
8551         (TARGET_ASM_FILE_END): Define to darwin_file_end.
8552         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
8553         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
8555         PR target/43498
8556         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
8557         at the beginning and final_end_function at the end.
8558         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8560 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8562         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
8563         and Sun as TLS syntax.
8564         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
8565         * configure: Regenerate.
8566         * config.in: Regenerate.
8567         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
8568         (default_elf_asm_named_section): Use it.
8569         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
8570         (i386_output_dwarf_dtprel): Likewise.
8571         (output_addr_const_extra): Likewise.
8572         (output_pic_addr_const): Lowercase @GOTTPOFF.
8573         (output_addr_const_extra): Likewise.
8574         (output_pic_addr_const): Lowercase @GOTNTPOFF.
8575         (output_addr_const_extra): Likewise.
8576         (output_pic_addr_const): Lowercase @INDNTPOFF.
8577         (output_addr_const_extra): Likewise.
8578         (output_pic_addr_const): Lowercase @NTPOFF.
8579         (output_addr_const_extra): Likewise.
8580         (output_pic_addr_const): Lowercase @TPOFF.
8581         (output_addr_const_extra): Likewise.
8582         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
8583         (*tls_global_dynamic_64): Likewise.
8584         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
8585         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
8587         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
8588         (ASM_OUTPUT_TLS_COMMON): Use it.
8589         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
8591         PR target/38118
8592         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
8593         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
8594         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
8595         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
8596         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8597         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
8599 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8601         * config/i386/i386.c (override_options): Don't accept
8602         -mtls-dialect=sun any longer.
8603         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
8604         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
8605         (*tls_local_dynamic_base_32_sun): Likewise.
8606         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
8608 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
8610         PR debug/43508
8611         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
8612         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
8614         PR debug/43479
8615         * ira.c (adjust_cleared_regs): New function.
8616         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
8618         PR debug/19192
8619         PR debug/43479
8620         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
8621         from gimple_block.
8622         * expr.c (expand_expr_real): Restore previous
8623         curr_insn_source_location and curr_insn_block after
8624         expand_expr_real_1 call.
8625         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
8626         instead of expand_expr_real_1.
8628 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
8630         PR rtl-optimization/43413
8631         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
8632         hard regs too.
8634 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
8636         PR target/43348
8637         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
8638         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
8640 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8642         * config/i386/i386.c (ix86_target_string): Add -mfma.
8643         Fix a typo in comment.
8645 2010-03-22  Mike Stump  <mikestump@comcast.net>
8647         PR target/23071
8648         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
8649         Don't overly align based upon packed packed fields.
8651 2010-03-22  Jason Merrill  <jason@redhat.com>
8653         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
8654         Use () rather than [], and move before the element type.
8656 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8658         * doc/configfiles.texi (Configuration Files): Removed
8659         fixinc/Makefile*, intl/Makefile.*.
8660         * doc/makefile.texi: Fixed markup. Abstract from version
8661         control system used.
8662         (Makefile): Removed obsolete gcc/java/parse.y example.
8663         * doc/sourcebuild.texi: Likewise.
8664         (Top Level): Added config, gnattools, libdecnumber, libgcc,
8665         libgomp, libssp.  Removed fastjar.
8666         (Miscellaneous Docs): Clarify location.
8667         Added COPYING3, COPYING3.LIB.
8668         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
8670 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8672         PR target/38085
8673         * config/i386/i386.c (x86_function_profiler)
8674         [!NO_PROFILE_COUNTERS]: Fix typo.
8675         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
8676         instead of callq.
8678 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
8679             Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8681         * doc/sourcebuild.texi (Test Directives): Split into six
8682         subsections, with most of the current text in new subsections
8683         Directives, Selectors, and Final Actions.
8684         (Directives): Split list of test directives into multiple
8685         subsubsections.
8686         (Selectors): Describe use and syntax of selectors.
8687         (Effective-Target Keywords): Describe all existing keywords.
8688         (Add Options): Describe features for dg-add-options.
8689         (Require Support): Describe variants of dg-require-support.
8690         (Final Actions): Describe commands to use in dg-final.
8692 2010-03-22  Michael Matz  <matz@suse.de>
8694         PR middle-end/43475
8695         * recog.c (validate_replace_rtx_group): Replace also in
8696         REG_EQUAL and REG_EQUIV notes.
8698 2010-03-22  Richard Guenther  <rguenther@suse.de>
8700         PR tree-optimization/43390
8701         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
8702         sure vector extracts are type correct.
8704 2010-03-22  Richard Guenther  <rguenther@suse.de>
8706         PR middle-end/40106
8707         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
8708         x * sqrt (x) even when optimizing for size if the target
8709         has native support for sqrt.
8711 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
8713         * varasm.c (make_decl_rtl_for_debug): Also clear
8714         flag_mudflap for the duration of make_decl_rtl call.
8716         PR debug/43443
8717         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
8718         locs from preserved VALUEs.
8720 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8722         PR middle-end/42718
8723         * pa.md (movmemsi): Set align to one if zero.
8724         (movmemdi): Likewise.
8726 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
8728         PR target/42321
8729         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
8730         with their corresponding prologue pushes.
8732 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
8734         PR target/43156
8735         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
8736         at the begining or end.
8737         (spu_expand_epilogue): Likewise.
8739 2010-03-20  Richard Guenther  <rguenther@suse.de>
8741         PR rtl-optimization/43438
8742         * combine.c (make_extraction): Properly zero-/sign-extend an
8743         extraction of the low part of a CONST_INT.  Also handle
8744         CONST_DOUBLE.
8746 2010-03-19  Mike Stump  <mikestump@comcast.net>
8748         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
8749         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
8750         (override_options): Use SUBTARGET32_DEFAULT_CPU.
8752 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
8754         PR c/43211
8755         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
8756         an error.
8758 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
8760         PR rtl-optimization/42258
8761         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
8762         use that may match DEF.
8764         PR target/40697
8765         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
8766         the cost of loading the constant rather than assuming
8767         COSTS_N_INSNS (1).
8768         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
8769         outer code is AND, do the same tests as the andsi3 expander and
8770         return COSTS_N_INSNS (1) if and is cheap.
8772         * optabs.c (avoid_expensive_constant): Fix formatting.
8774 2010-03-19  Michael Matz  <matz@suse.de>
8776         PR c++/43116
8777         * attribs.c (decl_attributes): When rebuilding a function pointer
8778         type use the same qualifiers as the original pointer type.
8780 2010-03-19  Martin Jambor  <mjambor@suse.cz>
8782         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
8783         and is_gimple_ip_invariant_address.
8785 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8787         Revert
8788         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8790         * config/arm/arm.c (arm_override_options): Turn off
8791         flag_dwarf2_cfi_asm for AAPCS variants.
8793 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8795         PR target/43399
8796         * config/arm/arm.c (emit_multi_reg_push): Update comments.
8797         Use PRE_MODIFY instead of PRE_DEC.
8798         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
8799         (vfp_emit_fstmd): Likewise.
8801 2010-03-19  Michael Matz  <matz@suse.de>
8803         PR target/43305
8804         * builtins.c (expand_builtin_interclass_mathfn,
8805         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
8806         if that fails.
8808 2010-03-19  Richard Guenther  <rguenther@suse.de>
8810         PR tree-optimization/43415
8811         * tree-ssa-pre.c (phi_translate): Split out worker to ...
8812         (phi_translate_1): ... this.
8813         (phi_translate): Move all caching here.  Cache all NARY
8814         and REFERENCE translations.
8816 2010-03-19  David S. Miller  <davem@davemloft.net>
8818         With help from Eric Botcazou.
8819         * config/sparc/sparc.c: Include dwarf2out.h.
8820         (emit_pic_helper): Delete.
8821         (pic_helper_symbol_name): Delete.
8822         (pic_helper_emitted_p): Delete.
8823         (pic_helper_needed): New.
8824         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
8825         (get_pc_thunk_name): New.
8826         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
8827         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
8828         Set pic_helper_needed to true.  Don't call emit_pic_helper.
8829         (sparc_expand_prologue): Update load_pic_register call.
8830         (sparc_output_mi_thunk): Likewise.
8831         (sparc_file_end): Emit a hidden comdat symbol for the PIC
8832         thunk if possible.  Output CFI information as needed.
8834 2010-03-18  Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8835             Jack Howarth <howarth@bromo.med.uc.edu>
8837         PR target/36399
8838         * config/i386/i386.h: Fix ABI on darwin x86-32.
8840 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
8842         * tree.h: Declare make_decl_rtl_for_debug.
8843         * varasm.c (make_decl_rtl_for_debug): New.
8844         * dwarf2out.c (rtl_for_decl_location): Call it.
8845         * cfgexpand.c (expand_debug_expr): Call it.
8847 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
8849         PR bootstrap/43399
8850         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
8851         mem_mode.
8853         PR bootstrap/43403
8854         * var-tracking.c (vt_init_cfa_base): Do nothing if
8855         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
8857 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
8859         PR debug/42873
8860         * var-tracking.c (canonicalize_vars_star): New.
8861         (dataflow_post_merge_adjust): Use it.
8863 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
8865         PR debug/43058
8866         * var-tracking.c (non_suitable_const): New function.
8867         (add_uses): For DEBUG_INSNs with constants, don't record any
8868         value, instead just the constant value itself.
8869         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
8870         is not VAR_LOC_UNKNOWN_P, set var to the constant.
8871         (emit_notes_in_bb): Likewise.
8872         (emit_note_insn_var_location): For onepart variables if
8873         cur_loc is a VOIDmode constant, use DECL_MODE.
8875 2010-03-18  Martin Jambor  <mjambor@suse.cz>
8877         PR middle-end/42450
8878         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
8879         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
8880         all non-clones.  Moved call redirection...
8881         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
8882         (cgraph_materialize_all_clones): Dispose of all
8883         combined_args_to_skip bitmaps.
8884         (verify_cgraph_node): Do not check for edges pointing to wrong
8885         nodes in inline clones.
8886         * tree-inline.c (copy_bb): Call
8887         cgraph_redirect_edge_call_stmt_to_callee.
8888         * ipa.c (cgraph_remove_unreachable_nodes): Call
8889         cgraph_node_remove_callees even when there are used clones.
8891 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
8893         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
8895 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
8897         PR target/43383
8898         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
8899         for 32bit.
8901 2010-03-18  Michael Matz  <matz@suse.de>
8903         PR middle-end/43419
8904         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
8905         into sqrt(x) if we need to preserve signed zeros.
8907 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
8908             Eric Botcazou  <ebotcazou@adacore.com>
8910         PR rtl-optimization/43360
8911         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
8912         note if we don't know its invariant status.
8914 2010-03-18  Michael Matz  <matz@suse.de>
8916         PR tree-optimization/43402
8917         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
8918         PHI chains of ssa names registered for update.
8920 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
8922         PR target/42427
8923         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
8924         non-offsettable and pre_modify update addressing.
8925         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
8926         and "2" alternatives "#".
8927         (*movdd_softfloat32): Make all alternatives "#";
8928         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
8929         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
8930         (*movdf_softfloat32): Make all alternatives "#";
8931         (movdi): Use the new DIFD mode iterator to create a common splitter
8932         for movdi, movdf and movdd patterns.
8934 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
8936         * common.opt (dumpdir): Remove redundant tab.
8938 2010-03-17  Martin Jambor  <mjambor@suse.cz>
8940         PR tree-optimization/43347
8941         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
8942         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
8944 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
8946         PR rtl-optimization/42216
8947         * regrename.c (create_new_chain): New function, broken out from...
8948         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
8949         appending a use to an empty chain.
8950         (build_def_use): Remove previous changes that convert OP_INOUT to
8951         OP_OUT operands; instead detect the case where an OP_INOUT operand
8952         uses a previously untracked register and create an empty chain for it.
8954 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8956         * doc/extend.texi (Function Attributes): Rewrite unfinished
8957         sentence in ms_abi documentation.
8959 2010-03-17  Alan Modra  <amodra@gmail.com>
8961         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
8962         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
8963         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
8964         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
8966 2010-03-16  Richard Henderson  <rth@redhat.com>
8968         PR middle-end/43365
8969         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
8970         (lower_try_finally): Save and restore eh_seq around the expansion
8971         of the try-finally.
8973 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
8975         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
8976         statements before splitting block.
8978 2010-03-16  Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8980         * doc/sourcebuild.texi (Testsuites): Fix markup.
8981         Use pathnames relative to gcc/testsuite.
8982         (Test Directives): Move description of how timeout is determined.
8983         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
8984         (C Tests): Correct gcc.misc-tests directory.
8985         Framework tests now live in gcc.test-framework.
8987 2010-03-16  Richard Guenther  <rguenther@suse.de>
8989         PR middle-end/43379
8990         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
8991         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
8993 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
8994             Alexandre Oliva  <aoliva@redhat.com>
8996         PR tree-optimization/42917
8997         * lambda-code.c (remove_iv): Skip debug statements.
8998         (lambda_loopnest_to_gcc_loopnest): Likewise.
8999         (not_interesting_stmt): Debug statements are not interesting.
9001 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
9003         PR debug/43051
9004         PR debug/43092
9005         * cselib.c (cselib_preserve_constants,
9006         cfa_base_preserved_val): New static variables.
9007         (preserve_only_constants): New function.
9008         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
9009         clear its REG_VALUES.  If cselib_preserve_constants, don't
9010         empty the whole hash table, but preserve there VALUEs with constants,
9011         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
9012         (cselib_preserve_cfa_base_value): New function.
9013         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
9014         (cselib_init): Change argument to int bitfield.  Set
9015         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
9016         is in it.
9017         (cselib_finish): Clear cselib_preserve_constants and
9018         cfa_base_preserved_val.
9019         * cselib.h (enum cselib_record_what): New enum.
9020         (cselib_init): Change argument to int.
9021         (cselib_preserve_cfa_base_value): New prototype.
9022         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
9023         * dse.c (dse_step1): Likewise.
9024         * cfgcleanup.c (thread_jump): Likewise.
9025         * sched-deps.c (sched_analyze): Likewise.
9026         * gcse.c (local_cprop_pass): Likewise.
9027         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
9028         If FN is non-NULL, call the callback always and whenever it returns
9029         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
9030         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
9031         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
9032         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
9033         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
9034         * var-tracking.c: Include recog.h.
9035         (bb_stack_adjust_offset): Remove.
9036         (vt_stack_adjustments): Don't call it, instead just gather the
9037         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
9038         (adjust_stack_reference): Remove.
9039         (compute_cfa_pointer): New function.
9040         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
9041         (struct adjust_mem_data): New type.
9042         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
9043         functions.
9044         (get_address_mode): New function.
9045         (replace_expr_with_values): Use it.
9046         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
9047         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
9048         (adjust_sets): Remove.
9049         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
9050         Use get_address_mode.
9051         (get_adjusted_src): Remove.
9052         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
9053         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
9054         (add_with_sets): Don't call adjust_sets.
9055         (fp_setter, vt_init_cfa_base): New functions.
9056         (vt_initialize): Change return type to bool.  Move most of pool etc.
9057         initialization to the beginning of the function from end.  Pass
9058         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
9059         If !frame_pointer_needed, call vt_stack_adjustment before mos
9060         vector is filled, call vt_init_cfa_base if argp/framep has been
9061         eliminated to sp.  If frame_pointer_needed and argp/framep has
9062         been eliminated to hard frame pointer, set
9063         hard_frame_pointer_adjustment and call vt_init_cfa_base after
9064         encountering fp setter in the prologue.  For MO_ADJUST, call
9065         log_op_type before pusing the op into mos vector, not afterwards.
9066         Call adjust_insn before cselib_process_insn/add_with_sets,
9067         call cancel_changes (0) afterwards.
9068         (variable_tracking_main_1): Adjust for vt_initialize calling
9069         vt_stack_adjustments and returning whether it succeeded or not.
9071 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
9073         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
9074         debug statements.
9076 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
9078         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
9079         has been set.
9080         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
9081         drap_reg has not been set.
9083 2010-03-15  Michael Matz  <matz@suse.de>
9085         PR middle-end/43300
9086         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
9087         use it to expand block copies.
9088         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
9089         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
9090         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
9092 2010-03-15  Richard Guenther  <rguenther@suse.de>
9094         PR tree-optimization/43367
9095         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
9096         elimination check.
9098 2010-03-15  Richard Guenther  <rguenther@suse.de>
9100         PR tree-optimization/43317
9101         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
9103 2010-03-15  Martin Jambor  <mjambor@suse.cz>
9105         PR tree-optimization/43141
9106         * tree-sra.c (create_abstract_origin): New function.
9107         (modify_function): Call create_abstract_origin.
9109 2010-03-15  Chris Demetriou  <cgd@google.com>
9111         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
9112         wasn't copied.
9114 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
9116         PR middle-end/43354
9117         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
9118         call insert_out_of_ssa_copy for default definitions.
9120 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
9122         * graphite-clast-to-gimple.c (my_long_long): Defined.
9123         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
9124         * graphite-sese-to-poly.c (my_long_long): Defined.
9125         (scop_ivs_can_be_represented): Use it.
9127 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
9129         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
9130         graphite-max-bbs-per-function, and loop-block-tile-size.
9131         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
9132         with "maximum".
9133         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
9135 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
9137         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
9138         forward declaration.
9139         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
9140         (add_upper_bounds_from_estimated_nit): New.
9141         (build_loop_iteration_domains): Use it.
9143 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
9145         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
9147 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
9149         PR middle-end/43306
9150         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
9151         should be an INTEGER_CST.  Also handle CASE_CONVERT.
9153 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
9155         * graphite.c (graphite_initialize): To bound the number of bbs per
9156         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
9157         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
9158         * doc/invoke.texi: Document it.
9160 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
9162         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
9163         * graphite-sese-to-poly.h (build_poly_scop): Same.
9165 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
9167         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
9168         the number of parameters in the scop.  Use as an upper bound
9169         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
9170         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
9171         * doc/invoke.texi: Document it.
9173 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
9175         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
9176         * doc/c-tree.texi: Remove.
9177         * doc/generic.texi: Merge c-tree.texi here.
9178         * doc/gccint.texi (Trees): Remove menu entry.
9179         (c-tree.texi): Remove @include.
9180         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
9181         * doc/languages.texi (Reading RTL): Ditto.
9183 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
9185         PR target/42869
9186         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
9188 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
9190         PR middle-end/42431
9191         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
9192         code added to work around reload clobbering CONST insns.
9194 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
9196         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
9197         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
9198         (cselib_preserve_only_values): Remove retain argument, don't
9199         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
9200         * cselib.h (cselib_preserve_only_values): Remove retain argument.
9201         * var-tracking.c (micro_operation): Move insn field before union.
9202         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
9203         (struct variable_tracking_info_def): Remove n_mos field, change
9204         mos into a vector of micro_operations.
9205         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
9206         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
9207         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
9208         changing into a vector.
9209         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
9210         come before all other uops generated by add_stores.
9211         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
9212         argument removal.
9213         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
9214         a vector.  Run just one pass over the bbs instead of separate counting
9215         and computation phase.
9216         (vt_finalize): Free VTI (bb)->mos vector instead of array.
9218         PR debug/43329
9219         * tree-inline.c (remap_decls): Put old_var rather than origin_var
9220         into *nonlocalized_list vector.
9221         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
9222         even if origin is non-NULL.
9223         (gen_variable_die): Likewise.
9224         (process_scope_var): Don't change origin.
9225         (gen_decl_die): Likewise.
9226         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
9227         before adding new edges instead of after it, fix moving over
9228         debug stmts.
9230 2010-03-11  David S. Miller  <davem@davemloft.net>
9232         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
9233         of four.
9234         * configure: Rebuild.
9236 2010-03-11  Martin Jambor  <mjambor@suse.cz>
9238         PR tree-optimization/43257
9239         * tree.c (assign_assembler_name_if_neeeded): New function.
9240         (free_lang_data_in_cgraph): Assembler name assignment moved to the
9241         above new function.
9242         * tree.h (assign_assembler_name_if_neeeded): Declare.
9243         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
9244         the function if needed.
9246 2010-03-11  Chris Demetriou  <cgd@google.com>
9248         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
9249         include/stdint-gcc.h, and include/stdint.h world-readable.
9251 2010-03-11  Richard Guenther  <rguenther@suse.de>
9253         PR tree-optimization/43255
9254         * tree-vrp.c (process_assert_insertions_for): Do not insert
9255         asserts for trivial conditions.
9257 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9259         PR tree-optimization/43280
9260         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
9261         generation.  Move calculation of size out of the if branch.
9262         (find_bswap): Modify compare number generation.
9264 2010-03-11  Richard Guenther  <rguenther@suse.de>
9266         PR lto/43200
9267         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
9268         (input_gimple_stmt): Fixup handled component types during
9269         operand read.  Also fix up decls in ADDR_EXPRs.
9271 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
9273         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
9274         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
9276 2010-03-10  Jan Hubicka  <jh@suse.cz>
9278         PR c/43288
9279         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
9280         * varasm.c (get_variable_section): Don't do that here...
9281         (make_decl_rtl): ... and here.
9282         (do_assemble_alias): Produce decl RTL.
9283         (assemble_alias): Likewise.
9285 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
9287         PR debug/43290
9288         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
9289         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
9290         of fde->vdrap_reg.
9291         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
9292         (based_loc_descr): Only express drap or vdrap regno based expressions
9293         using DW_OP_fbreg when not optimizing.
9294         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
9295         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
9296         REG_CFA_SET_VDRAP note.
9298 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
9300         PR tree-optimization/43236
9301         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
9302         error in calculation of base address in reverse iteration case.
9303         (generate_builtin): Take number of latch executions if the statement
9304         is in the latch.
9306 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
9308         PR middle-end/42859
9309         * tree-eh.c: Include pointer-set.h.
9310         (lower_eh_dispatch): Filter out duplicate case labels and
9311         remove the unneeded edge when the label is unused.  Return
9312         true when some edges are removed.
9313         (execute_lower_eh_dispatch): When any lowering resulted in
9314         removing an edge, also delete unreachable blocks.
9316 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
9318         PR bootstrap/43287
9319         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9320         UNSPEC_MACHOPIC_OFFSET.
9322 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
9324         PR target/43294
9325         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
9326         (m68k_delegitimize_address): New function.
9328 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
9330         PR debug/43299
9331         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
9333         PR debug/43299
9334         * var-tracking.c (adjust_sets): New function.
9335         (count_with_sets, add_with_sets): Use it.
9336         (get_adjusted_src): New inline function.
9337         (add_stores): Use it.
9339         PR debug/43304
9340         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
9341         call cselib_dummy_expand_value_rtx_cb instead of
9342         cselib_expand_value_rtx_cb.
9344         PR debug/43293
9345         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
9346         * config/i386/i386.c: Include debug.h and dwarf2out.h.
9347         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
9348         and .cfi_endproc around the pic thunks.
9349         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
9350         all queued unwind info register saves are saved before the call.
9351         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
9352         considered as sp-=4 for unwind info and the pop as sp+=4 which
9353         also clobbers dest, but doesn't actually restore it.
9355         PR debug/43290
9356         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
9357         RTX_FRAME_RELATED_P.
9359 2010-03-09  Jie Zhang  <jie@codesourcery.com>
9361         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
9362         whitespaces in output template.
9364 2010-03-09  Jie Zhang  <jie@codesourcery.com>
9366         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
9367         out array boundary.
9369 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
9371         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
9372         builtins.exp in a separate job.
9374 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9376         * graphite-sese-to-poly.c (add_param_constraints): Use
9377         lower_bound_in_type and upper_bound_in_type.
9379 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9381         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
9382         instead of unsigned_type_node.
9384 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9385             Reza Yazdani  <reza.yazdani@amd.com>
9387         PR middle-end/43065
9388         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
9389         on pointer type parameters.
9391 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
9393         PR middle-end/42644
9394         PR middle-end/42130
9395         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
9396         handle conversions from pointer to integers.
9397         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
9398         induction variable, to be able to work with code generated by CLooG.
9399         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
9400         (build_poly_scop): Bail out if we cannot codegen a loop.
9402 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
9404         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
9405         code generation with gloog_error.
9407 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9409         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
9410         Call fold_convert on all the returned values.
9411         (expand_scalar_variables_expr): Pass to
9412         expand_scalar_variables_ssa_name the type of the resulting expression.
9414 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9416         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
9417         ppl_min_for_le_pointset.
9418         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
9419         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
9421 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9423         * graphite-dependences.c (map_into_dep_poly): Removed.
9424         (dependence_polyhedron_1): Use combine_context_id_scat.
9426 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9428         * graphite-poly.h (struct poly_scattering): Add layout documentation.
9429         (struct poly_bb): Same.
9430         (combine_context_id_scat): New.
9432 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9434         PR middle-end/42326
9435         * sese.c (name_defined_in_loop_p): Return false for default
9436         definitions.
9438 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9440         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
9441         and clean up the logic.
9443 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
9445         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
9446         early return.
9448 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
9450         * var-tracking.c (remove_cselib_value_chains): Define only for
9451         ENABLE_CHECKING.
9452         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
9453         delete_slot_part, emit_notes_for_differences_1): Don't call
9454         remove_cselib_value_chains here.
9455         (set_slot_part, emit_notes_for_differences_2): Don't call
9456         add_cselib_value_chains here.
9457         (preserved_values): New vector.
9458         (preserve_value): New function.
9459         (add_uses, add_stores, vt_add_function_parameters): Use it
9460         instead of cselib_preserve_value.
9461         (changed_values_stack): New vector.
9462         (check_changed_vars_0): New function.
9463         (check_changed_vars_1, check_changed_vars_2): Use it.
9464         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
9465         changed_values_stack VALUEs.
9466         (vt_emit_notes): For all preserved_values call
9467         add_cselib_value_chains.  If ENABLE_CHECKING call
9468         remove_cselib_value_chains before verifying value_chains is empty.
9469         Initialize and free changed_values_stack.
9470         (vt_initialize): Initialize preserved_values.
9471         (vt_finalize): Free preserved_values.
9473 2010-03-08  Richard Guenther  <rguenther@suse.de>
9475         PR tree-optimization/43269
9476         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
9477         region detection.
9479 2010-03-08  Martin Jambor  <mjambor@suse.cz>
9481         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
9482         (ipa_is_param_called): Removed.
9483         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
9484         (ipa_print_node_params): Do not print the called flag.
9485         (ipa_write_node_info): Do not stream the called flag.
9486         (ipa_read_node_info): Likewise.
9488 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
9490         PR debug/43176
9491         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
9492         * cselib.c (struct expand_value_data): Add dummy field.
9493         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
9494         dummy to false.
9495         (cselib_dummy_expand_value_rtx_cb): New function.
9496         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
9497         any rtl.
9498         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
9499         * var-tracking.c: Include pointer-set.h.
9500         (variable): Change n_var_parts to char from int.  Add
9501         cur_loc_changed and in_changed_variables fields.
9502         (variable_canonicalize): Remove.
9503         (shared_var_p): New inline function.
9504         (unshare_variable): Maintain cur_loc_changed and
9505         in_changed_variables fields.  If var was in changed_variables,
9506         replace it there with new_var.  Just copy cur_loc instead of
9507         resetting it to something else.
9508         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
9509         (dataflow_set_union): Don't call variable_canonicalize.
9510         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
9511         of their DEBUG_EXPR_TREE_DECLs.
9512         (canonicalize_loc_order_check): Verify that cur_loc is NULL
9513         and in_changed_variables and cur_loc_changed is false.
9514         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
9515         and cur_loc_changed.  Don't update cur_loc here.
9516         (variable_merge_over_src): Don't call variable_canonicalize.
9517         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
9518         removing loc that is equal to cur_loc, clear cur_loc,
9519         set cur_loc_changed and ensure variable_was_changed is called.
9520         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
9521         compare pointers in cur_loc check, if it is equal to loc,
9522         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
9523         (variable_different_p): Remove compare_current_location argument,
9524         don't compare cur_loc.
9525         (dataflow_set_different_1): Adjust variable_different_p caller.
9526         (variable_was_changed): If dv had some var in changed_variables
9527         already, reset in_changed_variables flag for it and propagate
9528         cur_loc_changed over to the new variable.  On empty var
9529         always set cur_loc_changed.  Set in_changed_variables on whatever
9530         var is added to changed_variables.
9531         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
9532         Use shared_var_p.  When removing loc that is equal to cur_loc,
9533         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
9534         end, don't set it to something else, just call variable_was_changed.
9535         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
9536         loc being removed, clear cur_loc and set cur_loc_changed.
9537         Set cur_loc_changed if all locations have been removed.
9538         (struct expand_loc_callback_data): New type.
9539         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
9540         allocated.  Always create SUBREGs if simplify_subreg failed.
9541         Prefer to use cur_loc, when that fails and still in
9542         changed_variables (and seen first time) recompute it.  Set
9543         cur_loc_changed of variables which had to change cur_loc and
9544         compute elcd->cur_loc_changed if any of the subexpressions used
9545         had to change cur_loc.
9546         (vt_expand_loc): Adjust to pass arguments in
9547         expand_loc_callback_data structure.
9548         (vt_expand_loc_dummy): New function.
9549         (emitted_notes): New variable.
9550         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
9551         that weren't used for any other decl in current
9552         emit_notes_for_changes call call vt_expand_loc_dummy to update
9553         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
9554         first loc_chain location if NULL before.  Always use just
9555         cur_loc instead of first loc_chain location.  When cur_loc_changed
9556         is false, when not --enable-checking=rtl just don't emit any note.
9557         When rtl checking, compute the note and assert it is the same
9558         as previous note.  Clear cur_loc_changed and in_changed_variables
9559         at the end before removing from changed_variables.
9560         (check_changed_vars_3): New function.
9561         (emit_notes_for_changes): Traverse changed_vars to call
9562         check_changed_vars_3 on each changed var.
9563         (emit_notes_for_differences_1): Clear cur_loc_changed and
9564         in_changed_variables.  Recompute cur_loc of new_var.
9565         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
9566         (vt_emit_notes): Initialize and destroy emitted_notes.
9568 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
9570         PR rtl-optimization/42220
9571         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
9572         Use verify_reg_tracked to determine if we should use OP_OUT rather
9573         than OP_INOUT.
9574         (build_def_use): If we see an in-out operand for a register that we
9575         know nothing about, treat is an output if possible, fail the block if
9576         not.
9578 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
9580         PR debug/42897
9581         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
9582         permanently.
9584 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
9586         PR debug/42897
9587         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
9588         uses of relevant DEFs that are dead outside the loop too.
9590 2010-03-06  Alexandre Oliva <aoliva@redhat.com>
9592         * var-tracking.c (dataflow_set_merge): Swap src and src2.
9593         Reverted:
9594         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
9595         PR debug/41371
9596         * var-tracking.c (values_to_unmark): New variable.
9597         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
9598         values_to_unmark vector.  Moved body to...
9599         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
9600         instead queue it into values_to_unmark vector.
9601         (vt_find_locations): Free values_to_unmark vector.
9603 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
9605         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
9606         (site.exp): Export them when plugins are enabled.
9608 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
9610         PR middle-end/42326
9611         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
9612         that contain scevs.
9613         (chrec_fold_multiply): Same.
9615 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
9617         PR c/43248
9618         * c-decl.c (build_compound_literal): Return early if init is
9619         an error_mark_node.
9621 2010-03-04  Martin Jambor  <mjambor@suse.cz>
9623         PR tree-optimization/43164
9624         PR tree-optimization/43191
9625         * tree-sra.c (type_consists_of_records_p): Reject records with
9626         zero-size bit-fields at the end.
9628 2010-03-04  Mike Stump  <mikestump@comcast.net>
9630         * Makefile.in (TAGS): Remove *.y.
9632 2010-03-04  Richard Guenther  <rguenther@suse.de>
9634         PR tree-optimization/40761
9635         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
9636         in reverse order.
9637         (my_rev_post_order_compute): New function.
9638         (init_pre): Call it.
9640 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
9642         PR middle-end/43209
9643         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
9644         decrease the cost of an IV candidate when the cost is infinite.
9646 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9648         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
9649         Use '3DNow!' for the extension of that name, ensure normal space
9650         after the string.
9651         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
9653 2010-03-03  Jeff Law  <law@redhat.com>
9655         * PR middle-end/32693
9656         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
9657         than gen_rtx_SUBREG.
9658         (extract_bit_field_1): Likewise.
9660 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
9662         * doc/sourcebuild.texi (Test directives): Document that arguments
9663         include-opts and exclude-opts are now optional for dg-skip-if,
9664         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
9666 2010-03-03  Jason Merrill  <jason@redhat.com>
9668         PR c++/12909
9669         * cgraph.h (varpool_node): Add extra_name field.
9670         * varpool.c (varpool_extra_name_alias): New.
9671         (varpool_assemble_decl): Emit extra name aliases.
9672         (varpool_mark_needed_node): Look past an extra name alias.
9673         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
9674         * lto-streamer-in.c (lto_input_tree): Read it.
9675         * lto-streamer-out.c (output_unreferenced_globals): Write it.
9677 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
9679         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
9680         (sparc*-*-solaris2*): ...this.
9682 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
9684         PR debug/43229
9685         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
9686         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
9687         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
9688         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
9690         PR debug/43237
9691         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
9692         fallthrough to default handling, just with want_address 0 instead of 2.
9693         For single element lists, add_AT_loc directly, otherwise create an
9694         artificial variable DIE and stick location list to it.
9696         PR debug/43177
9697         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
9698         (VAL_EXPR_HAS_REVERSE): Define.
9699         (reverse_op): New function.
9700         (add_stores): For reversible operations add an extra MO_VAL_USE.
9702 2010-03-02  Jason Merrill  <jason@redhat.com>
9704         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
9706 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
9708         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
9709         (sparc64-*-linux*): Likewise.
9710         (sparc64-*-solaris2*): Include assembler files before linker ones.
9711         (sparc-*-solaris2*): Simplify and reorder to match previous case.
9712         * config/sparc/gas.h: Delete.
9713         * config/sparc/sol2-64.h: Add copyright notice.
9714         * config/sparc/sol2-gas-bi.h: Likewise.
9715         * config/sparc/sol2-gld.h: Likewise.
9716         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
9717         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
9718         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
9719         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
9720         (sparc_elf_asm_named_section): Rename into...
9721         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
9723 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
9725         * config/alpha/alpha.c (override_options): Fix -mtune error message.
9727 2010-03-02  Jeff Law  <law@redhat.com>
9729         PR middle-end/42431
9730         * reload1.c (rtx_p, substitute_stack): Declare.
9731         (substitute): Record addresses of changed rtxs.
9732         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
9733         Restore the original rtx when complete.
9734         (reload): Free subsitute_stack when complete.
9736 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
9738         * doc/gccint.texi (menu): Add Testsuites as a chapter.
9739         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
9740         new chapter.
9741         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
9742         LTO Testing, gcov Testing, profopt Testing, compat Testing,
9743         Torture Tests): Change from subsection to section.
9745 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
9746             Steven Bosscher  <steven@gcc.gnu.org>
9748         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
9749         instead of bb.
9751 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
9753         PR middle-end/42640
9754         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
9755         the assignment from the new induction variable to the assignment
9756         of the value from the original loop PHI function.
9758 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
9759             Daniel Jacobowitz  <dan@codesourcery.com>
9761         * doc/sourcebuild.texi (Test directives): Clarify options to
9762         dg-skip-if.
9764 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9766         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
9767         Disable cfi directives unless GCC and gas agree on using read-only
9768         .eh_frame sections for 64-bit.
9769         * configure: Regenerate.
9771 2010-03-01  Richard Guenther  <rguenther@suse.de>
9773         PR tree-optimization/43220
9774         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
9775         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
9777 2010-03-01  Richard Guenther  <rguenther@suse.de>
9778             Martin Jambor  <mjambor@suse.cz>
9780         PR middle-end/41250
9781         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
9782         gimplified parameters.
9784 2010-03-01  Christian Bruel  <christian.bruel@st.com>
9786         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
9788 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
9790         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
9792 2010-03-01  Richard Guenther  <rguenther@suse.de>
9794         PR middle-end/43213
9795         * expr.c (expand_assignment): Use the alias-oracle to tell
9796         if the rhs aliases the result decl.
9798 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9800         PR pch/14940
9801         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
9802         to sol_gt_pch_get_address.
9803         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
9804         64-bit, SPARC and x86.
9805         (sol_gt_pch_get_address): New function.
9807 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
9809         * toplev.h (inform_n, error_n): Declare.
9810         * diagnostic.c (inform_n, error_n): New function.
9812 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
9814         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
9815         has no rtl yet when processing local_decls, queue it and recheck
9816         if deferred stack allocation hasn't assigned it rtl.
9818 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
9820         * config/sh/sh.c (unspec_bbr_uid): New.
9821         (gen_block_redirect): Use it instead of INSN_UID.
9822         (gen_far_branch): Likewise.
9824 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
9826         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
9827         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
9829 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9831         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
9832         (Warning Options): -Wno-conversion-null is valid for
9833         Objective-C++ as well.
9834         * doc/tm.texi (Named Address Spaces): Likewise.
9835         * doc/plugins.texi (Plugins): Replace TABs with spaces.
9836         * doc/tree-ssa.texi (Tree SSA): Likewise.
9838 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
9840         PR bootstrap/43202
9841         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
9842         by default.  Don't set the default arch for
9843         i[34567]86-*-darwin*|x86_64-*-darwin*.
9845 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
9847         PR bootstrap/43202
9848         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
9849         default.  Set the default 32bit/64bit archs with $with_arch
9850         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
9852 2010-02-27  Richard Guenther  <rguenther@suse.de>
9854         PR tree-optimization/43186
9855         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
9856         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
9857         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
9858         unroller iterations.
9860 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
9862         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
9863         required and i[34567]86-*-* targets don't support 64bit ISA.
9865 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
9867         PR ada/43096
9868         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
9869         the same alias set.
9871 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
9873         * config.gcc: Set the default arch at least to Prescott for
9874         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
9875         if SSE math is enabled.
9877 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9879         * diagnostic.c (diagnostic_initialize): Update.
9880         (diagnostic_report_diagnostic): Test inhibit_notes_p for
9881         informative notes.
9882         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
9883         (diagnostic_inhibit_notes): New.
9884         * toplev.c (process_options): inhibit notes with -fcompare-debug.
9886 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9888         PR c/20631
9889         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
9890         * doc/standards.texi: Likewise.
9891         * doc/extend.texi: Likewise.
9892         * doc/trouble.texi: Likewise.
9893         * doc/cppopts.texi: Likewise.
9894         * doc/install.texi: Likewise.
9895         * c.opt (std=c90,std=gnu90): New options.
9896         * c-opts.c (c_common_handle_option): Handle them.
9898 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9900         PR c/24577
9901         * c-decl.c (undeclared_variable): Use an informative note.
9903 2010-02-26  Richard Guenther  <rguenther@suse.de>
9905         PR tree-optimization/43186
9906         * gimple.h (gimple_fold): Remove.
9907         * gimple.c (gimple_fold): Remove.  Inline into single user ...
9908         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
9909         Try harder for conditions.
9911 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
9913         PR debug/43190
9914         * function.c (used_types_insert): Don't skip through named pointer
9915         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
9916         and it is different from the main variant's type.
9918 2010-02-26  Nick Clifton  <nickc@redhat.com>
9920         * config/rx/rx.md (sminsi3): Remove bogus alternative.
9922 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
9924         * config.gcc: Support --with-fpmath=sse for x86.
9926         * config/i386/ssemath.h: New.
9928         * doc/install.texi (--with-fpmath=sse): Documented.
9930 2010-02-26  Richard Guenther  <rguenther@suse.de>
9932         PR tree-optimization/43188
9933         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
9934         vector types of over-aligned element type.
9936 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
9938         PR target/43175
9939         * config/i386/i386.c (expand_vec_perm_blend): Use correct
9940         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
9942 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
9944         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
9946 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
9948         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
9949         * var-tracking.c: Include diagnostic.h.
9950         (debug_dv): New function.
9951         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
9953         PR debug/43160
9954         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
9955         (add_value_chain, add_value_chains, remove_value_chain,
9956         remove_value_chains): Handle DEBUG_EXPRs.
9957         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
9959         PR debug/43161
9960         * regcprop.c (struct queued_debug_insn_change): New type.
9961         (struct value_data_entry): Add debug_insn_changes field.
9962         (struct value_data): Add n_debug_insn_changes field.
9963         (debug_insn_changes_pool): New variable.
9964         (free_debug_insn_changes, apply_debug_insn_changes,
9965         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
9966         (kill_value_one_regno): Call free_debug_insn_changes if needed.
9967         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
9968         fields.
9969         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
9970         changes for them.
9971         (copyprop_hardreg_forward_1): Don't call apply_change_group for
9972         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
9973         changes, call cprop_find_used_regs via note_stores.
9974         (copyprop_hardreg_forward): When copying vd from predecessor
9975         which has any queued DEBUG_INSN changes, make sure the pointers are
9976         cleared.  At the end call df_analyze and then if there are any
9977         DEBUG_INSN changes queued at the end of some basic block for still
9978         live registers, apply them.
9979         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
9981 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
9983         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
9984         (arm*-*-*): Ditto.
9986 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
9988         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
9989         targets.  Set the default with_cpu/with_arch from arch/cpu.
9990         Allow x86-64 and native for with_cpu/with_arch.
9992 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
9994         * ebitmap.c: Change calls to verify_popcount with calls to
9995         sbitmap_verify_popcount.
9996         (ebitmap_clear_bit): Fixed map->cacheindex test and
9997         map>cache update when bit clearing results in an empty
9998         element.
10000 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
10002         PR target/43154
10003         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
10004         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
10005         and support both V2DF and V2DI modes.
10006         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
10007         support both V2DF and V2DI modes.
10008         (general): Delete trailing whitespace from a few patterns.
10010         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10011         V2DF/V2DI interleave high/low builtins.
10013         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
10014         new VSX builtins.
10016         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
10017         interleave high/low functions.
10019 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
10021         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
10022         #pragma extern_prefix.
10024 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
10026         PR debug/43166
10027         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
10028         BLKmode, assert op0 is a MEM and just adjust its mode.
10030         PR debug/43165
10031         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
10032         if bitpos isn't multiple of mode's bitsize.
10034 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10036         * c.opt (-ftemplate-depth=): New.
10037         (-ftemplate-depth-): Deprecate.
10038         * optc-gen.awk: Handle -ftemplate-depth=.
10039         * opth-gen.awk: Likewise.
10040         * c-opts.c (c_common_handle_option): Likewise.
10041         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
10043 2010-02-24  Jason Merrill  <jason@redhat.com>
10045         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
10047 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10049         * cfg.c (alloc_aux_for_block): Remove inline.
10050         (alloc_aux_for_edge): Likewise.
10052 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10054         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
10056 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10058         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
10059         * config/i386/sol2-gas.h: New file.
10060         * config.gcc (i[34567]86-*-solaris2*): Use it.
10062 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10064         PR c/43128
10065         * c-typeck.c (ep_convert_and_check): New.
10066         (build_conditional_expr): Use it.
10067         (build_binary_op): Likewise.
10069 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
10071         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
10073         PR debug/43150
10074         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
10075         bounds even for -O+.
10076         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
10077         expr needs to have DECL_NAME set.
10079 2010-02-24  Nick Clifton  <nickc@redhat.com>
10081         * config/mep/mep.c: Include gimple.h.
10082         (mep_function_uses_sp): Delete unused function.
10083         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
10084         parameters.  Use unsigned integers to count args.  Return a
10085         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
10087 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
10089         PR target/43107
10090         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
10091         greater or equal to nelt instead of 2 * nelt.
10092         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
10093         with nelt - 1.
10095 2010-02-23  Jason Merrill  <jason@redhat.com>
10097         PR debug/42800
10098         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
10099         in cfun->local_decls even if they have register types.
10101         PR c++/42837
10102         * stor-layout.c (place_field): Don't warn about unnecessary
10103         DECL_PACKED if the type is packed.
10105 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
10107         PR target/43139
10108         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
10109         GOTOFF relocs, even when the base reg isn't pic pointer.
10111 2010-02-23  Michael Matz  <matz@suse.de>
10113         PR debug/43077
10114         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
10115         (expand_gimple_basic_block): Generate and use debug temps if there
10116         are debug uses left after the last real use of TERed ssa names.
10117         Unlink debug immediate uses when they are expanded.
10119 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10121         PR 43123
10122         * config/i386/i386.c (override_options): Reorganise to provide
10123         better error messages.
10125 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10127         PR middle-end/43083
10128         * graphite-scop-detection.c (create_single_exit_edge): Move
10129         the call to find_single_exit_edge to....
10130         (create_sese_edges): ...here.  Don't handle multiple edges
10131         exiting the function.
10132         (build_graphite_scops): Don't handle multiple edges
10133         exiting the function.
10135 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10137         PR middle-end/43097
10138         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
10139         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
10141 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
10143         PR middle-end/43026
10144         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
10146 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10148         PR c++/43126
10149         * c-typeck.c (convert_arguments): Print declaration location.
10150         * c-common.c (validate_nargs): Rename as
10151         builtin_function_validate_nargs.
10152         (check_builtin_function_arguments): Update.
10154 2010-02-22  Richard Guenther  <rguenther@suse.de>
10156         PR lto/43045
10157         * tree-inline.c (declare_return_variable): Use the type of
10158         the call stmt lhs if available.
10160 2010-02-22  Duncan Sands  <baldrick@free.fr>
10162         * passes.c (register_pass): Always consider all pass lists when
10163         ref_pass_instance_number is zero.
10165 2010-02-22  Richard Guenther  <rguenther@suse.de>
10167         PR tree-optimization/42749
10168         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
10169         parameter.  Do arithmetic in the original type.
10170         (update_accumulator_with_ops): Likewise.
10171         (adjust_accumulator_values): Adjust.
10173 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10175         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
10176         (QI to BLKmode splitter): New splitter.
10178 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
10180         * config/i386/i386.c (initial_ix86_tune_features): Turn on
10181         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
10183 2010-02-22  Richard Guenther  <rguenther@suse.de>
10185         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
10187 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
10189         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
10190         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
10191         ($(T)crti.o, $(T)crtn.o): Remove rules.
10193 2010-02-21  Tobias Burnus  <burnus@net-b.de>
10195         PR fortran/35259
10196         * doc/invoke.texi (-fassociative-math): Document that this
10197         option is automatically enabled for Fortran.
10199 2010-02-20  David S. Miller  <davem@davemloft.net>
10201         * configure.ac: Test if linker and assembler properly support
10202         GOTDATA_OP relocations.
10203         * configure: Rebuild.
10204         * config.in: Likewise.
10205         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
10206         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
10207         (movsi_high_pic): Likewise.
10208         (movdi_lo_sum_pic): Likewise.
10209         (movdi_high_pic): Likewise.
10210         (movsi_pic_gotdata_op): New pattern.
10211         (movdi_pic_gotdata_op): Likewise.
10212         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
10213         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
10215 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
10217         PR target/43067
10218         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
10219         attribute to ssemul.
10220         (xop_mulv2div2di3_high): Ditto.
10222 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10224         PR c++/35669
10225         * c.opt (Wconversion-null): New option.
10226         * doc/invoke.texi (Wconversion-null): Document.
10228 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10230         * common.opt (Wlarger-than-): Add Undocumented.
10232 2010-02-19  Mike Stump  <mikestump@comcast.net>
10234         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
10236 2010-02-19  Jason Merrill  <jason@redhat.com>
10238         PR target/40332
10239         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
10240         * configure: Likewise.
10242 2010-02-20  Alan Modra  <amodra@gmail.com>
10244         PR middle-end/42344
10245         * cgraph.h (cgraph_make_decl_local): Declare.
10246         * cgraph.c (cgraph_make_decl_local): New function.
10247         (cgraph_make_node_local): Use it.
10248         * cgraphunit.c (cgraph_function_versioning): Likewise.
10249         * ipa.c (function_and_variable_visibility): Likewise.
10251 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
10253         PR bootstrap/43121
10254         * except.c (sjlj_emit_function_enter): Don't call
10255         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
10256         directly.
10257         * rtl.h (add_reg_br_prob_note): Remove prototype.
10259 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10261         PR 41779
10262         * c-common.c (conversion_warning): Remove widening conversions
10263         before checking the conversion of integers to reals.
10265 2010-02-19  Mike Stump  <mikestump@comcast.net>
10267         PR middle-end/43125
10268         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
10270         PR objc/43061
10271         * cgraphunit.c (process_function_and_variable_attributes): Check
10272         DECL_PRESERVE_P instead of looking up attribute "used".
10273         * ipa-pure-const.c (check_decl): Likewise.
10274         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
10275         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
10276         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
10277         instead of attribute "used".
10278         * config/sol2-c.c (solaris_pragma_init): Likewise.
10279         (solaris_pragma_fini): Likewise.
10281 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
10283         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
10284         Use XCNEW instead of xcalloc.
10285         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
10286         XNEW instead of xmalloc.
10287         (get_fields): Use XNEWVEC instead of xmalloc.
10289         PR debug/43084
10290         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
10291         populate vars array.
10292         (create_new_general_access): For debug stmts just reset value.
10293         (get_stmt_accesses): For accesses within debug stmts just record them
10294         using add_access_to_acc_sites instead of preventing the peeling or
10295         counting them as accesses.
10297         PR middle-end/42233
10298         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
10300 2010-02-19  Richard Guenther  <rguenther@suse.de>
10302         PR tree-optimization/42916
10303         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
10304         instructions.
10306 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
10308         * configure.ac: Replace all uses of changequote in macro arguments
10309         with proper quoting.
10311 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
10313         PR middle-end/42233
10314         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
10316 2010-02-19  Richard Guenther  <rguenther@suse.de>
10318         PR tree-optimization/42944
10319         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
10320         test for aliasing with errno.
10322 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
10324         PR middle-end/42233
10325         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
10326         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
10327         * dojump.c: Include output.h.
10328         (inv): New inline function.
10329         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
10330         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
10331         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
10332         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
10333         argument, pass it down to other calls.
10334         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
10335         add REG_BR_PROB note to the conditional jump.
10336         * cfgexpand.c (add_reg_br_prob_note): Removed.
10337         (expand_gimple_cond): Don't call it, add the probability
10338         as last argument to jumpif_1/jumpifnot_1.
10339         * Makefile.in (dojump.o): Depend on output.h.
10340         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
10341         callers.
10342         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
10343         * stmt.c (do_jump_if_equal): Likewise.
10344         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
10345         * loop-unswitch.c (compare_and_jump_seq): Likewise.
10346         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
10347         Likewise.
10348         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
10349         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
10350         jumpifnot_1 callers.
10351         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
10352         callers.
10353         (store_expr): Adjust jumpifnot caller.
10354         (store_constructor): Adjust jumpif caller.
10356         PR middle-end/42233
10357         * gimplify.c (gimple_boolify): For __builtin_expect call
10358         gimple_boolify also on its first argument.
10360 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
10362         * configure.ac (gnu-unique-object): Wrap regexps using [] in
10363         changequote block.
10364         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
10365         * configure: Regenerated.
10367 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10369         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
10370         lang_hooks.types_compatible_p instead of comptypes.
10372 2010-02-18  Sebastian Huber <sebastian.huber@embedded-brains.de>
10374         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
10375         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
10376         if __prefer_thumb__ is defined.
10378 2010-02-18  Martin Jambor  <mjambor@suse.cz>
10380         PR tree-optimization/43066
10381         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
10382         array with zero-sized element type.
10384 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
10386         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
10387         rtx, allocate struct var_loc_node here and return it to the
10388         caller, and only if it is actually needed.
10389         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
10390         move it earlier and return immediately if it returns NULL.
10392 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
10394         * config/sparc/gas.h: New file.  Restore
10395         TARGET_ASM_NAMED_SECTION to its ELF default.
10396         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
10397         check !HAVE_GNU_AS.
10398         * config/sparc/sparc.c (sparc_elf_asm_named_section):
10399         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
10400         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
10401         after sparc/sysv4.h.
10403 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
10405         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
10407 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
10409         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
10410         patterns from predicated pattern.
10412 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
10414         PR target/43103
10415         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
10416         for insn mnemonic suffix.
10418 2010-02-17  Richard Guenther  <rguenther@suse.de>
10420         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
10421         to loop PHI nodes.
10423 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
10425         PR debug/42918
10426         * caller-save.c (save_call_clobbered_regs): If BB ends with
10427         a DEBUG_INSN, move any notes in between last real insn and the last
10428         DEBUG_INSN after the last DEBUG_INSN.
10430 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
10432         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
10433         Fix return type.  Fix argument type.  Explain meaning of return value.
10435 2010-02-16  Richard Guenther  <rguenther@suse.de>
10437         PR tree-optimization/41043
10438         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
10439         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
10440         statements ...
10441         (vrp_visit_phi_node): ... but only for loop PHI nodes.
10443 2010-02-16  Ira Rosen  <irar@il.ibm.com>
10445         PR tree-optimization/43074
10446         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
10447         * tree-vect-loop.c (vect_analyze_loop_operations): Add
10448         vectorizable cycles in hybrid SLP check.
10449         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
10451 2010-02-16  Richard Guenther  <rguenther@suse.de>
10453         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
10454         (true_dependence): If memrefs_conflict_p computes must-alias
10455         trust it.  Move TBAA check after offset-based disambiguation.
10456         (canon_true_dependence): Likewise.
10458 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
10460         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
10461         * doc/invoke.texi: Document it.
10462         * var-tracking.c: Include toplev.h and params.h.
10463         (vt_find_locations): Return bool indicating success.  Compute
10464         hash sizes unconditionally.  Check new parameter, report.
10465         (variable_tracking_main_1): Check vt_find_locations results and
10466         retry.  Renamed from...
10467         (variable_tracking_main): ... this.  New wrapper to preserve
10468         flag_var_tracking_assignments.
10469         * Makefile.in (var-tracking.o): Adjust dependencies.
10471 2010-02-16  Jack Howarth <howarth@bromo.med.uc.edu>
10472             Jakub Jelinek <jakub@redhat.com>
10474         PR target/42854
10475         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
10476         if weak_import attribute is present.
10477         * config/darwin.c (machopic_select_section): Likewise.
10479 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
10481         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
10482         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
10483         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
10484         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
10486         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
10487         types.
10489         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
10490         Fix argument types.
10492         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
10493         Rewrite text to refer to the names.
10495 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
10497         * config/i386/i386-builtin-types.def
10498         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
10499         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
10500         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
10501         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
10502         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
10503         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
10504         IX86_BUILTIN_VPERMIL2PS256.
10505         (MULTI_ARG_4_DF2_DI_I): Defined.
10506         (MULTI_ARG_4_DF2_DI_I1): Defined.
10507         (MULTI_ARG_4_SF2_SI_I): Defined.
10508         (MULTI_ARG_4_SF2_SI_I1): Defined.
10509         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
10510         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
10511         __builtin_ia32_vpermil2ps256.
10512         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
10513         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
10514         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
10515         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
10516         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
10517         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
10518         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
10519         CODE_FOR_xop_vpermil2v8sf3.
10520         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
10521         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
10522         * config/i386/xopintrin.h (_mm_permute2_pd): New.
10523         (_mm256_permute2_pd): New.
10524         (_mm_permute2_ps): New.
10525         (_mm256_permute2_ps): New.
10527 2010-02-15  Nick Clifton  <nickc@redhat.com>
10529         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
10530         boolean parameters.  Use emit_jump_insn when emitting a pop
10531         instruction containing a return insn.
10532         (push): Use 'true' rather than '1' as second parameter to F.
10533         (h8300_expand_prologue): Likewise.
10534         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
10535         (h8300_expand_epilogue): Likewise.
10537 2010-02-15  Richard Guenther  <rguenther@suse.de>
10539         PR middle-end/43068
10540         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
10541         if that is zero.
10543 2010-02-15  Nick Clifton  <nickc@redhat.com>
10545         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
10546         delta.
10548 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
10550         * intl.c (fake_ngettext): New function.
10551         * intl.h (fake_ngettext): Declare.
10552         (ngettext): Define macro.
10553         * collect2.c (notice_translated): New function.
10554         (main): Use notice_translated and ngettext.
10555         * collect2.h (notice_translated): Declare.
10557 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
10559         * reorg.c (delete_computation): Comment fixes.
10560         * caller-save.c (setup_save_areas): Idem.
10561         * sel-sched-dump.c (dump_lv_set): Idem.
10562         * rtl.def: Idem.
10564 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10566         * config/s390/s390.c (s390_sched_init): New function.
10567         (TARGET_SCHED_INIT): Target hook defined.
10569 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
10570             Jack Howarth  <howarth@bromo.med.uc.edu>
10571             Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
10573         PR target/42982
10574         Partial revert of unintended change in fix for PR41605.
10575         * config/darwin.h: Fix typo.
10576         * config/darwin9.h: Same.
10578 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
10580         * c-pch.c (pch_init): Clear v.
10582 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
10584         PR middle-end/42930
10585         * graphite-scop-detection.c (graphite_can_represent_scev): Call
10586         graphite_can_represent_init for MULT_EXPR.
10588 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
10590         PR middle-end/42914
10591         PR middle-end/42530
10592         * graphite-sese-to-poly.c (remove_phi): New.
10593         (translate_scalar_reduction_to_array): Call remove_phi.
10595 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
10597         PR middle-end/42771
10598         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
10599         * graphite-clast-to-gimple.h (gloog): Update declaration.
10600         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
10601         * graphite-poly.h (struct poly_bb): Add missing comments.
10602         (struct scop): Add poly_scop_p field.
10603         (POLY_SCOP_P): New.
10604         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
10605         * graphite.c (graphite_transform_loops): Build the polyhedral
10606         representation for each scop before code generation.
10607         * sese.c (rename_variables_in_operand): Removed.
10608         (rename_variables_in_expr): Return the renamed expression.
10609         (rename_sese_parameters): New.
10610         * sese.h (rename_sese_parameters): Declared.
10612 2010-02-11  Richard Guenther  <rguenther@suse.de>
10614         PR tree-optimization/42998
10615         * tree-ssa-pre.c (create_expression_by_pieces): Treat
10616         POINTER_PLUS_EXPR properly.
10618 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
10619             Changpeng Fang  <changpeng.fang@amd.com>
10621         PR middle-end/40886
10622         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
10623         the cost of an IV candidate when the IV is used in a test against zero.
10625         * gcc.dg/tree-ssa/ivopts-3.c: New.
10627 2010-02-11  Richard Guenther  <rguenther@suse.de>
10629         PR lto/41664
10630         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
10631         pointer-vs-decl case by swapping refs.  Handle some cases
10632         of pointer-vs-decl disambiguations more conservatively.
10633         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
10634         to false after expanding.
10636 2010-02-11  Richard Guenther  <rguenther@suse.de>
10638         PR driver/43021
10639         * gcc.c (process_command): Handle LTO file@offset case more
10640         appropriately.
10642 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
10644         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
10645         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
10646         of DEBUG_INSNs.
10647         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
10649         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
10650         if MEM's mode size isn't DWARF2_ADDR_SIZE.
10651         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
10652         Optimize eq/ne comparisons when both arguments are known to be
10653         zero-extended.
10654         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
10655         Don't mask operands unnecessarily if they are known to be already
10656         zero-extended.
10658 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
10660         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
10661         instead of loop.
10663 2010-02-10  Richard Guenther  <rguenther@suse.de>
10665         PR tree-optimization/43017
10666         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
10667         for wrapping signed arithmetic.
10669 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
10671         PR debug/43010
10672         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
10673         if no debug info should be emitted for it.
10675 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
10677         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
10678         note when flag_exceptions is set.
10680 2010-02-10  Duncan Sands  <baldrick@free.fr>
10682         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
10684 2010-02-10  Richard Guenther  <rguenther@suse.de>
10686         PR c/43007
10687         * tree.c (get_unwidened): Handle constants.
10688         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
10690 2010-02-10  Martin Jambor  <mjambor@suse.cz>
10692         PR lto/42985
10693         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
10694         check for variable argument counts independently.
10696 2010-02-10  Christian Bruel  <christian.bruel@st.com>
10698         PR target/42841
10699         * config/sh/sh.c (find_barrier): Increase length for non delayed
10700         conditional branches.
10702 2010-02-10  Christian Bruel  <christian.bruel@st.com>
10704         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
10706 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
10708         * builtins.c (set_builtin_user_assembler_name): Also handle
10709         ffs if int is smaller than word.
10711 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
10713         PR middle-end/42973
10714         * ira-conflicts.c (get_dup): Remove.
10715         (process_reg_shuffles): Add new parameter.  Use it as an
10716         additional guard for copy generation.
10717         (add_insn_allocno_copies): Rewrite.
10719 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
10721         * common.opt (fsched2-use-traces): Preserved for backward
10722         compatibility.
10723         * doc/invoke.texi: Remove the documentation about option
10724         -fsched2-use-traces.
10725         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
10726         flag_sched2_use_traces.
10727         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
10728         the backward compatibility flag section.
10730 2010-02-09  Richard Guenther  <rguenther@suse.de>
10732         PR tree-optimization/43008
10733         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
10734         make HEAP variables initialized from global memory if they
10735         are not known builtin functions.
10736         (find_func_aliases): Adjust.
10738 2010-02-09  Richard Guenther  <rguenther@suse.de>
10740         PR tree-optimization/43000
10741         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
10742         arithmetic manually.
10744 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
10746         PR tree-optimization/42931
10747         * tree-loop-linear.c (try_interchange_loops): Don't call
10748         double_int_mul if estimated_loop_iterations failed.
10750 2010-02-08  Martin Jambor  <mjambor@suse.cz>
10752         PR middle-end/42898
10753         * tree-sra.c (build_accesses_from_assign): Do not mark in
10754         should_scalarize_away_bitmap if stmt has volatile ops.
10755         (sra_modify_assign): Do not process assigns piecemeal if if stmt
10756         has volatile ops.
10758 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
10760         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
10762 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
10764         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
10765         before the pattern.
10767 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
10769         PR middle-end/42946
10770         * df-core.c (df_finish_pass): Change type of saved_flags to int.
10772 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
10774         PR middle-end/42988
10775         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
10776         to unknown_dependence.
10777         (graphite_legal_transform_dr): Handle the unknown_dependence.
10778         (graphite_carried_dependence_level_k): Same.
10780 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
10782         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
10784 2010-02-07  Richard Guenther  <rguenther@suse.de>
10786         PR middle-end/42991
10787         * expr.c (get_inner_reference): Always initialize *pbitsize.
10789 2010-02-07  Richard Guenther  <rguenther@suse.de>
10791         PR middle-end/42956
10792         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
10793         new ARRAY_REFs on variable size element or minimal index arrays.
10794         Complete.
10795         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
10796         gimple_fold_indirect_ref.
10798 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
10800         PR target/42957
10801         * arm.c (arm_override_options): Just return if the user has specified
10802         an invalid fpu name.
10804 2010-02-03  Jason Merrill  <jason@redhat.com>
10806         PR c++/42870
10807         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
10808         i386_pe_maybe_record_exported_symbol.
10810 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
10812         PR target/42924
10813         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
10814         (pa_delegitimize_address): New function.
10816 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
10818         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
10819         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
10821 2010-02-05  Richard Guenther  <rguenther@suse.de>
10823         PR lto/42762
10824         * lto-streamer-in.c (get_resolution): Deal with references
10825         to undefined functions.
10827 2010-02-05  Richard Guenther  <rguenther@suse.de>
10829         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
10830         (fold_const_aggregate_ref): Likewise.
10831         (ccp_fold_stmt): Substitute loads.
10832         (maybe_fold_reference): Verify types before substituting.
10833         Unshare properly.
10834         (fold_gimple_assign): Unshare properly.
10835         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
10837 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
10839         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
10840         for rs6000_gen_cell_microcode.
10842 2010-02-04  Richard Guenther  <rguenther@suse.de>
10844         PR rtl-optimization/42952
10845         * dse.c (const_or_frame_p): Remove MEM handling.
10847 2010-02-04  Nick Clifton  <nickc@redhat.com>
10849         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
10850         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
10851         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
10852         (mn10300_asm_output_mi_thunk): New function.
10853         (mn10300_can_output_mu_thunk): New function.
10854         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
10855         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
10856         (FUNCTION_ARG): Delete incorrect comment.
10858 2010-02-03  Jason Merrill  <jason@redhat.com>
10860         PR c++/40138
10861         * fold-const.c (operand_equal_p): Handle erroneous types.
10863 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
10865         * config/h8300/h8300.md (can_delay): Fix attibute condition.
10867 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
10869         PR rtl-optimization/42941
10870         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
10871         of xmalloc.
10873 2010-02-03  Jason Merrill  <jason@redhat.com>
10875         PR c++/35652
10876         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
10878 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
10880         PR debug/42896
10881         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
10882         (cselib_reset_table): Renamed from...
10883         (cselib_reset_table_with_next_value): ... this.
10884         (cselib_get_next_uid): Renamed from...
10885         (cselib_get_next_unknown_value): ... this.
10886         * cselib.c (next_uid): Renamed from...
10887         (next_unknown_value): ... this.
10888         (cselib_clear_table): Adjust.
10889         (cselib_reset_table): Adjust.  Renamed from...
10890         (cselib_reset_table_with_next_value): ... this.
10891         (cselib_get_next_uid): Adjust.  Renamed from...
10892         (cselib_get_next_unknown_value): ... this.
10893         (get_value_hash): Use hash.
10894         (cselib_hash_rtx): Likewise.
10895         (new_cselib_val): Adjust.  Set and dump uid.
10896         (cselib_lookup_mem): Pass next_uid as hash.
10897         (cselib_subst_to_values): Likewise.
10898         (cselib_log_lookup): Dump uid.
10899         (cselib_lookup): Pass next_uid as hash.  Adjust.
10900         (cselib_process_insn): Adjust.
10901         (cselib_init): Initialize next_uid.
10902         (cselib_finish): Adjust.
10903         (dump_cselib_table): Likewise.
10904         * dse.c (canon_address): Dump value uid.
10905         * print-rtl.c (print_rtx): Print value uid.
10906         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
10907         (dvuid): New type.
10908         (dv_uid): New function, sort of renamed from...
10909         (dv_htab_hash): ... this, reimplemented in terms of it and...
10910         (dv_uid2hash): ... this.  New.
10911         (variable_htab_eq): Drop excess assertions.
10912         (tie_break_pointers): Removed.
10913         (canon_value_cmp): Compare uids.
10914         (variable_post_merge_New_vals): Print uids.
10915         (vt_add_function_parameters): Adjust.
10916         (vt_initialize): Reset table.  Adjust.
10918 2010-02-03  Richard Guenther  <rguenther@suse.de>
10920         PR tree-optimization/42944
10921         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
10922         (call_may_clobber_ref_p_1): Likewise.  Properly handle
10923         malloc and calloc clobbering errno.
10925 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
10927         * doc/invoke.texi: Fix name of sched1 dump.
10929         * opts.c (decode_options): Set flag_tree_switch_conversion
10930         only conditionally on optimize >= 2.
10932         * gcse.c: Assorted comment fixes in pass description.
10934 2010-02-03  Anthony Green  <green@moxielogic.com>
10936         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
10937         nop padding in order to maintain alignment of storage location of
10938         target function address.
10939         (moxie_trampoline_init): Store target function address at newly
10940         aligned location.
10941         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
10942         to 32.
10943         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
10945 2010-02-03  Richard Guenther  <rguenther@suse.de>
10947         PR middle-end/42927
10948         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
10950 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10952         * config.gcc: Reenable check for obsolete targets.
10953         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
10954         mips-sgi-irix6.[0-4]*.
10956 2010-02-02  Nick Clifton  <nickc@redhat.com>
10958         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
10959         constant size of 4 as being the same as 0.
10960         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
10961         can take values in the range 0..4.
10963 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
10965         PR java/41991
10966         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
10967         as _darwin10_Unwind_FindEnclosingFunction().
10968         * libgcc-libsystem.ver: New.
10970 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
10972         PR target/41399
10973         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
10974         implicitly set registers.
10976 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
10978         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
10979         (arm_override_options): Allow automatic selection of the thread
10980         pointer register if thumb2.
10981         (legitimize_pic_address): Improve code sequences for Thumb2.
10982         (arm_call_tls_get_addr): Likewise.
10983         (legitimize_tls_address): Likewise.
10984         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
10985         (pic_load_addr_32bit): ... this.  New named pattern.
10986         * thumb2.md (pic_load_addr_thumb2): Delete.
10987         (pic_load_dot_plus_four): Delete.
10988         (tls_load_dot_plus_four): New named pattern.
10990 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10992         PR libgomp/29986
10993         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
10994         Document fix for TLS bug.
10996 2010-01-31  Richard Guenther  <rguenther@suse.de>
10998         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
10999         conservatively correct.
11001 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11003         PR target/42850
11004         Revert:
11005         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11007         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
11009 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11011         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
11013 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
11015         * config.gcc: Adjust order of makefile fragments for mingw targets.
11017 2010-01-31  Richard Guenther  <rguenther@suse.de>
11019         PR middle-end/42898
11020         * gimplify.c (gimplify_init_constructor): For volatile LHS
11021         initialize a temporary.
11023 2010-01-31  Matthias Klose  <doko@ubuntu.com>
11025         * configure.ac: Fix __stack_chk_fail check for cross builds configured
11026         --with-headers
11027         * configure: Regenerate.
11029 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
11031         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
11032         the same alias set and their sizes different constantness.
11033         (aliasing_component_refs_p): Revert 2009-10-24 change.
11035 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11037         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
11038         unused.
11040 2010-01-29  Richard Guenther  <rguenther@suse.de>
11042         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
11043         Assert we successfully updated the call.
11045 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
11047         PR rtl-optimization/42889
11048         * df.h (df_set_bb_dirty_nonlr): New prototype.
11049         * df-core.c (df_set_bb_dirty_nonlr): New function.
11050         * df-scan.c (df_insn_rescan): Call it instead of
11051         df_set_bb_dirty for DEBUG_INSNs.
11053 2010-01-29  Richard Guenther  <rguenther@suse.de>
11055         PR middle-end/37448
11056         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
11057         quadratic behavior in most cases.
11059 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
11061         PR target/42891
11062         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
11063         in the call to gen_x86_movsicc_0_m1.
11065 2010-01-28  Richard Guenther  <rguenther@suse.de>
11067         PR tree-optimization/42871
11068         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
11070 2010-01-28  Richard Guenther  <rguenther@suse.de>
11072         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
11073         into call arguments.
11075 2010-01-28  Richard Guenther  <rguenther@suse.de>
11077         PR middle-end/42883
11078         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
11079         the forwarder if the destination is an EH landing pad.
11081 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
11083         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
11084         block list passed to gimple_duplicate_sese_tail.
11085         (parallelize_loops): Avoid parallelization when the function
11086         has_nonlocal_label.
11087         Avoid parallelization when the preheader is IRREDUCIBLE.
11088         Try to optimize when estimated_loop_iterations_int is unresolved.
11089         Add the loop's location to the dump file.
11090         * tree-cfg.c (add_phi_args_after_redirect): Remove.
11091         (gimple_duplicate_sese_tail): Remove the check for the latch.
11092         Redirect nexits to the exit block.
11093         Remove handling of the incoming edges to the latch.
11094         Redirect the backedge from the copied latch to the exit bb.
11096 2010-01-28  Michael Matz  <matz@suse.de>
11098         PR target/42881
11099         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
11100         Wrap force_reg into a sequence, emit it before user.
11102 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
11104         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
11105         (arm_rev): New.
11106         (arm_legacy_rev): Likewise.
11107         (thumb_legacy_rev): Likewise.
11109 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
11111         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
11112         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
11113         on MEM's address failed, try avoid_constant_pool_reference and
11114         recurse if it returned something different.
11115         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
11116         address, try avoid_constant_pool_reference and recurse if it
11117         returned something different.
11118         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
11119         address and avoid_constant_pool_reference returned something
11120         different, don't set have_address.
11122 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
11124         PR debug/42861
11125         * var-tracking.c (val_store): Add modified argument, obey it.
11126         Adjust callers.
11127         (count_uses): Move down logging of main.
11128         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
11129         don't need resolution.
11130         (emit_notes_in_bb): Likewise.
11132 2010-01-27  Richard Guenther  <rguenther@suse.de>
11134         PR middle-end/42878
11135         * tree-inline.c (remap_decl): Delay remapping of SSA name
11136         default definitions until we need them.
11138 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
11140         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
11141         (rs6000_delegitimize_address): New function.
11143         * config/s390/s390.c (s390_delegitimize_address): Call
11144         delegitimize_mem_from_attrs.
11146         PR middle-end/42874
11147         * tree-inline.c (cannot_copy_type_1): Removed.
11148         (copy_forbidden): Don't forbid copying of functions containing
11149         records/unions with variable length fields.
11151 2010-01-27  Christian Bruel  <christian.bruel@st.com>
11153         Revert:
11154         PR target/42841
11155         * config/sh/sh.c (find_barrier): Increase length for non delayed
11156         conditional branches.
11158 2010-01-27  Matthias Klose  <doko@ubuntu.com>
11160         * configure.ac (gnu-unique-object): Fix ldd version check.
11161         * configure: Regenerate.
11163 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11165         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
11166         HAVE_GNU_AS value.
11167         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
11168         Test for HAVE_GNU_AS value.
11170 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11172         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
11173         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
11174         INT64_TYPE): Define.
11175         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
11176         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
11177         INT_LEAST64_TYPE): Define.
11178         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
11179         UINT_LEAST64_TYPE): Define.
11180         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
11181         INT_FAST64_TYPE): Define.
11182         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
11183         UINT_FAST64_TYPE): Define.
11184         (INTMAX_TYPE, UINTMAX_TYPE): Define.
11185         (INTPTR_TYPE, UINTPTR_TYPE): Define.
11186         (SIG_ATOMIC_TYPE): Define.
11188 2010-01-26  Richard Guenther  <rguenther@suse.de>
11190         * df-scan.c (df_scan_set_bb_info): Remove assert.
11191         (df_insn_rescan_debug_internal): Merge asserts.
11192         (df_install_ref): Likewise.
11193         (df_mark_reg): Use bitmap_set_range.
11194         (df_hard_reg_used_p): Remove assert.
11195         (df_hard_reg_used_count): Likewise.
11197 2010-01-26  Richard Guenther  <rguenther@suse.de>
11199         PR rtl-optimization/42685
11200         * web.c (web_main): Ignore DEBUG_INSNs.
11202 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
11204         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
11206         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
11207         Fix types of fndecl and arglist parameters.
11209 2010-01-26  Richard Guenther  <rguenther@suse.de>
11211         PR middle-end/42806
11212         * tree-eh.c (unsplit_eh): Skip debug insns.
11214 2010-01-26  Richard Guenther  <rguenther@suse.de>
11216         PR tree-optimization/42250
11217         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
11219 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
11221         PR fortran/42866
11222         * omp-low.c (expand_omp_sections): Only use single_pred if
11223         l2_bb is single_pred_p.
11225 2010-01-25  Christian Bruel  <christian.bruel@st.com>
11227         PR target/42841
11228         * config/sh/sh.c (find_barrier): Increase length for non delayed
11229         conditional branches.
11230         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
11232 2010-01-24  David S. Miller  <davem@davemloft.net>
11234         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
11235         define if not using GAS.
11236         * config/sparc/sparc.c (sparc_elf_asm_named_section):
11237         Likewise.  Delete SECTION_MERGE code, which is only applicable
11238         when using GAS.
11240 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
11242         PR c++/42748
11243         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
11244         mangling of va_list in system headers.
11246 2010-01-23  Toon Moene  <toon@moene.org>
11248         * tree-predcom.c (combine_chains): Return NULL, not false.
11250 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
11252         * tree-loop-distribution.c (distribute_loop): Fix declaration and
11253         initialization of variable res to agree with return type.
11255 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
11257         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
11258         * tree-sra.c: Add include of expr.h.
11260 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
11262         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
11263         insert the debug stmt on the single non-EH edge from the stmt.
11265 2010-01-22  Richard Henderson  <rth@redhat.com>
11267         PR tree-opt/42833
11268         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
11269         the RHS until after generate_subtree_copies has insertted its
11270         code before the current statement.
11272 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
11274         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
11276         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
11278 2010-01-21  Martin Jambor  <mjambor@suse.cz>
11280         PR tree-optimization/42585
11281         * tree-sra.c (struct access): New field grp_total_scalarization.
11282         (dump_access): Dump the new field.
11283         (should_scalarize_away_bitmap): New variable.
11284         (cannot_scalarize_away_bitmap): Likewise.
11285         (sra_initialize): Allocate new bitmaps.
11286         (sra_deinitialize): Free new bitmaps.
11287         (create_access_1): New function.
11288         (create_access): Parts moved to create_access_1.
11289         (type_consists_of_records_p): New function.
11290         (completely_scalarize_record): Likewise.
11291         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
11292         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
11293         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
11294         access.
11295         (analyze_all_variable_accesses): Completely scalarize small eligible
11296         records.
11298 2010-01-21  Martin Jambor  <mjambor@suse.cz>
11300         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
11302 2010-01-21  Andrew Haley  <aph@redhat.com>
11304         * gcc.c (process_command): Move lang_specific_driver before
11305         setting cc_libexec_prefix.
11307 2010-01-21  Richard Guenther  <rguenther@suse.de>
11309         PR middle-end/19988
11310         * fold-const.c (negate_expr_p): Pretend only negative
11311         real constants are easily negatable.
11313 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
11314             Jason Merrill  <jason@redhat.com>
11316         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
11317         (TYPE_TRANSPARENT_AGGR): this, for union and record.
11318         * calls.c (initialize argument_information): Handle it.
11319         * c-common.c (handle_transparent_union_attribute): Use new name.
11320         * c-decl.c (finish_struct): Ditto.
11321         * c-typeck.c (type_lists_compatible_p): Ditto.
11322         (convert_for_assignment): Use new name and also handle record.
11323         * function.c (aggregate_value_p): Handle it.
11324         (pass_by_reference): Ditto.
11325         (assign_parm_data_types): Ditto.
11326         * print-tree.c (print_node): Ditto.
11327         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
11328         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
11329         * tree.c (first_field): New fn.
11331 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
11333         PR target/42818
11334         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
11335         even when linking statically, for now.
11337 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
11339         PR debug/42715
11340         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
11341         without a cselib val.
11342         (count_uses): Accept MO_VAL_SET with no val on stores.
11343         (add_stores): Likewise.
11345 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
11347         * var-tracking.c (check_value_val): Add a compile time assertion.
11348         (dv_is_decl_p): Simplify.
11349         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
11350         gcc_assert if ENABLE_CHECKING.
11352 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
11354         PR debug/42782
11355         * var-tracking.c: Include tree-flow.h.
11356         (mem_dies_at_call): New.
11357         (dataflow_set_preserve_mem_locs): Use it.
11358         (dataflow_set_remove_mem_locs): Likewise.
11359         (dump_var): Renamed from dump_variable.  Adjust all callers.
11360         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
11361         * Makefile.in (var-tracking.o): Adjust deps.
11363 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
11365         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
11367 2010-01-20  Richard Guenther  <rguenther@suse.de>
11369         PR tree-optimization/42717
11370         * tree-ssa-dce.c (get_live_post_dom): Remove.
11371         (forward_edge_to_pdom): Take an arbitrary edge to copy
11372         degenerate PHI args from.
11373         (remove_dead_stmt): Use the first post-dominator even if it
11374         does not contain live statements as redirection destination.
11376 2010-01-20  Richard Guenther  <rguenther@suse.de>
11378         * tree-inline.c (estimate_num_insns): Handle EH builtins.
11380 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
11382         * sel-sched.c (create_speculation_check): Remove set but not used
11383         variable twin.
11384         (try_transformation_cache): Remove set but not used variable ds.
11385         (calculate_privileged_insns): Remove set but not used variables
11386         cur_insn and min_spec_insn.
11387         (find_best_expr): Remove set but not used variable avail_n.
11388         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
11389         variable e.
11390         * cgraphunit.c (assemble_thunk): Remove set but not used variable
11391         false_label.
11392         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
11393         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
11394         new_scop_exit_edge.
11396 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
11398         PR bootstrap/42786
11399         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
11400         cpu types.  Add support for *-sse3 cpu types.
11401         (x86_64-*-*): Ditto.
11403 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
11405         PR middle-end/42803
11406         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
11407         argument, call initializer_constant_valid_p_1 instead of
11408         initializer_constant_valid_p, pass CACHE to it, return NULL
11409         immediately if first call returns NULL.
11410         (initializer_constant_valid_p_1): New function.
11411         (initializer_constant_valid_p): Use it.
11413 2010-01-20  Thomas Quinot  <quinot@adacore.com>
11415         * tree.def (PLACEHOLDER_EXPR): Fix comment.
11417 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
11419         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
11420         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
11421         (loc_list_from_tree): Don't handle unsigned division.  Handle
11422         signed modulo using DW_OP_{over,over,div,mul,minus}.
11423         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
11424         modulo instead of signed.
11426 2010-01-20  DJ Delorie  <dj@redhat.com>
11428         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
11429         (Fpa): Pass it
11430         (h8300_emit_stack_adjustment): Propogate it.
11431         (push): Pass it.
11432         (h8300_expand_prologue): Likewise.
11433         (h8300_expand_epilogue): Likewise.
11435 2010-01-19  Michael Matz  <matz@suse.de>
11437         PR tree-optimization/41783
11438         * tree-data-ref.c (toplevel): Include flags.h.
11439         (dump_data_dependence_relation):  Also dump the inputs if the
11440         result will be unknown.
11441         (split_constant_offset_1): Look through some conversions.
11442         * tree-predcom.c (determine_roots_comp): Restart a new chain if
11443         the offset from last element is too large.
11444         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
11445         (reassociate_to_the_same_stmt): Handle vector registers.
11446         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
11447         (e.g. conversions).
11448         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
11449         wide_prolog_niters argument, emit widening instructions.
11450         (vect_do_peeling_for_alignment): Adjust caller, use widened
11451         variant of the iteration cound.
11452         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
11454 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11456         PR target/38697
11457         * config/arm/neon-testgen.m (emit_automatics): New parameter
11458         features. Adjust for Fixed_return_reg feature.
11459         (test_intrinsic): Call emit_automatics with new feature.
11460         * config/arm/neon.ml: Update copyright years.
11461         (features): New Fixed_return_reg feature.
11462         (ops): Update feature for Vget_low.
11464 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
11466         PR tree-optimization/42719
11467         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
11468         stmt uses.
11470         PR debug/42728
11471         * fwprop.c (all_uses_available_at): Return false if def_set dest
11472         is a REG that is used in def_insn.
11474 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
11476         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
11478         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
11479         Add argument names.
11481         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
11483         * target.h (struct gcc_target) <secondary_reload>: Change type
11484         of last argument to secondary_reload_info *.
11486 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
11488         PR target/42774
11489         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
11490         memory references with unaligned offsets.  Remove CQImode handling.
11491         (unaligned_memory_operand): Return 1 for memory references with
11492         unaligned offsets.  Remove CQImode handling.
11494 2010-01-18  Richard Guenther  <rguenther@suse.de>
11496         PR middle-end/39954
11497         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
11498         builtin calls.
11500 2010-01-18  Richard Guenther  <rguenther@suse.de>
11502         PR tree-optimization/42781
11503         * tree-ssa-structalias.c (find_what_var_points_to): Skip
11504         restrict processing only if the original variable was artificial.
11506 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
11508         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
11509         find number of popped argument bytes.
11511         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
11512         Fix the text that describes the return value for invalid insns.
11514         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
11516         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
11517         Clarify what 'cost of the -dependence' is.  Fix quoting.
11519         * toplev.c (default_get_pch_validity): Rename argument to "sz".
11520         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
11522 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
11524         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
11525         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
11527 2010-01-17  Richard Guenther  <rguenther@suse.de>
11529         PR middle-end/42248
11530         * function.c (split_complex_args): Take a VEC to modify.
11531         (assign_parms_augmented_arg_list): Build a VEC instead of
11532         a chain of PARM_DECLs.
11533         (assign_parms_unsplit_complex): Take a VEC of arguments.
11534         Do not fixup unmodified parms.
11535         (assign_parms): Deal with the VEC.
11536         (gimplify_parameters): Likewise.
11538 2010-01-17  Richard Guenther  <rguenther@suse.de>
11540         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
11541         node existence check.
11542         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
11543         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
11544         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
11545         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
11546         (gimple_execute_on_growing_pred): Likewise.
11548 2010-01-17  Richard Guenther  <rguenther@suse.de>
11550         PR tree-optimization/42773
11551         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
11552         (compute_antic_aux): Likewise.
11553         (compute_partial_antic_aux): Likewise.
11555 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
11557         PR debug/42767
11558         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
11559         and US_TRUNCATE.
11561 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
11563         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
11564         appearance.
11566         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
11567         Fix markup for strict argument.
11569         (TARGET_SCHED_REORDER2): Fix argument types.
11571         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
11572         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
11574         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
11575         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
11577         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
11578         Add argument name.
11580         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
11581         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
11582         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
11583         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
11584         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
11586         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
11588         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
11590         (TARGET_ASM_RELOC_RW_MASK): Add return type.
11591         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
11593         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
11595         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
11596         Use prototype.
11598         (TARGET_ASM_NAMED_SECTION): Fix argument list.
11600         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
11601         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
11603         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
11605         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
11607         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
11608         referring to it.  Fix language.
11610         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
11612         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
11614         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
11616         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
11618         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
11619         '@var{stream}.  Remove stray 'and'.
11621         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
11623         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
11625         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
11627         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
11628         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
11630         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
11631         Fix description of return value.
11632         Rename argument "sz" to "len."
11634         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
11635         Clarify meaning of 'true' return value.
11637         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
11639         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
11640         rep_mode versus mode_rep.
11642         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
11644         (TARGET_BUILTIN_DECL): Fix name.
11646         (TARGET_COMMUTATIVE_P): Fix type of first argument.
11648         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
11650         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
11652         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
11654         (TARGET_RELAXED_ORDERING): Use @deftypevr.
11656         (TARGET_GET_DRAP_RTX): Note that this is a hook.
11657         Clarify language.
11659         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
11660         Rename argument tm_fn to md_fn.
11662         (TARGET_OPTION_PRINT): Fix argument list.
11664 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
11666         PR target/42664
11667         * config/i386/i386.c (ix86_fixup_binary_operands):
11668         Revert FMA4 fixup of operands.
11670 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11672         PR gcc/42525
11673         * Makefile.in (write_entries_to_file, install-plugin):
11674         Use \012 instead of \n with tr.
11676 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
11678         * configure.ac (HAVE_AS_REF): New C macro.
11679         * configure: Regenerate.
11680         * config.in: Likewise.
11681         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
11682         if HAVE_AS_REF.
11683         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
11684         if HAVE_AS_REF.
11686 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
11688         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
11690         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
11692         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
11694         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
11696         (TARGET_IN_SMALL_DATA_P): Fix argument type.
11698         (TARGET_BINDS_LOCAL_P): Fix argument type.
11700         (TARGET_ASM_FILE_END): Use prototype.
11702         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
11704         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
11706         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
11708         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
11710         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
11711         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
11713         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
11714         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
11716         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
11717         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
11718         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
11719         (TARGET_ADDR_SPACE_CONVERT): Likewise.
11721         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
11723         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
11725         (TARGET_INIT_BUILTINS): Use prototype.
11727         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
11728         Put 'const char *' in braces.  Fix parameter types.
11729         (TARGET_INVALID_CONVERSION): Fix parameter types.
11730         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
11731         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
11733         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
11734         Fix argument type.
11736         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
11738         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
11740 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
11742         * doc/tm.texi (TARGET_HELP): Fix return type.
11744         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
11745         in braces.  Fix argument types.
11747         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
11749         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
11751         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
11753         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
11754         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
11756         (TARGET_MANGLE_TYPE): Fix argument types.
11758         (TARGET_IRA_COVER_CLASSES): Use prototype.
11760         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
11762         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
11764         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
11766         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
11768         (TARGET_CALLEE_COPIES): Fix argument types.
11770         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
11772         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
11774         (TARGET_FUNCTION_VALUE): Fix argument types.
11776         (TARGET_RETURN_IN_MSB): Fix argument type.
11778         (TARGET_RETURN_IN_MEMORY): Fix argument types.
11780         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
11782         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
11784         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
11785         agree with return type.
11787         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
11789 2010-01-15  Jing Yu  <jingyu@google.com>
11791         PR rtl-optimization/42691
11792         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
11793         a pseudo to a constant and are merged, and adjust comments.
11795 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
11797         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
11799 2010-01-15  Richard Guenther  <rguenther@suse.de>
11801         PR middle-end/42739
11802         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
11803         labels of computed or non-local gotos to the destination.
11804         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
11805         landing pad label is the first label.
11807 2010-01-15  Richard Guenther  <rguenther@suse.de>
11809         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
11811 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11813         PR target/42747
11814         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
11815         to allow generation of the xssqrtdp instruction on power7.
11816         (sqrtdf2_fpr): Ditto.
11818 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
11820         PR middle-end/42674
11821         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
11822         functions with noreturn attribute.
11824         PR c++/42608
11825         * varasm.c (declare_weak): Add weak attribute to decl if it
11826         doesn't have one already.
11827         (assemble_external): Only add decls to weak_decls if they also
11828         have weak attribute.
11830 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
11832         * var-tracking.c (var_reg_delete): Don't delete the association
11833         between REGs and values or one-part variables if the register
11834         isn't clobbered.
11836 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
11838         PR debug/42657
11839         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
11840         because its first operand is a non-localized variable.
11842 2010-01-14  Martin Jambor  <mjambor@suse.cz>
11844         PR tree-optimization/42706
11845         * tree-sra.c (encountered_recursive_call): New variable.
11846         (encountered_unchangable_recursive_call): Likewise.
11847         (sra_initialize): Initialize both new variables.
11848         (callsite_has_enough_arguments_p): New function.
11849         (scan_function): Call decl and flags check only for IPA-SRA, check
11850         whether there is a recursive call and whether it has enough arguments.
11851         (all_callers_have_enough_arguments_p): New function.
11852         (convert_callers): Look for recursive calls only when
11853         encountered_recursive_call is set.
11854         (ipa_early_sra): Bail out either if
11855         !all_callers_have_enough_arguments_p or
11856         encountered_unchangable_recursive_call.
11858 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11860         * sel-sched.c: Add 2010 to copyright years.
11861         * sel-sched-ir.c: Likewise.
11862         * sel-sched-ir.h: Likewise.
11864 2010-01-14  Martin Jambor  <mjambor@suse.cz>
11866         PR tree-optimization/42714
11867         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
11868         constructors specially.
11870 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11872         * config/i386/drivers-i386.c (detect_caches_intel):
11873         Add l2sizekb parameter and fill in.
11874         (host_detect_local_cpu): Add l2sizekb, fill in.
11875         Add Atom small cache heuristic.
11877 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11879         * config/i386/drivers-i386.c (detect_caches_cpuid4):
11880         Add level3 parameter and fill in.
11881         (detect_caches_intel): Handle level3 cache.
11883 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11885         * config/i386/drivers-i386.c (host_detect_local_cpu):
11886         Fix core duo detection.
11888 2010-01-14  Andi Kleen  <ak@linux.intel.com>
11890         * config/i386/drivers-i386.c (host_detect_local_cpu):
11891         Fix Atom detection.
11893 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11895         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
11896         (rs6000_variable_issue_1): this.  Use...
11897         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
11899 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11901         * sel-sched-ir.c (sel_restore_other_notes): Rename to
11902         sel_restore_notes.  Update all callers.  Call reemit_notes
11903         for all insns.
11905 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11907         PR rtl-optimization/42246
11908         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
11909         loops.
11911 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11913         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
11914         all successors is the same as number of successors in current region.
11916 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11918         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
11919         to rename is not separable.  Otherwise check that its LHS is not NULL.
11921 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11923         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
11925 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11927         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
11928         available registers when failed to discover LHS register class.
11929         Fix indentation.  Update comment.
11931 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11932             Alexander Monakov  <amonakov@ispras.ru>
11934         PR rtl-optimization/42389
11935         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
11936         to can_issue_more.
11937         (advance_state_on_fence): Likewise.
11938         (sel_target_adjust_priority): Print debug output only when
11939         sched_verbose >= 4, not 2.
11940         (get_expr_cost): Do not issue all unique insns on the next cycle.
11941         (fill_insns): Initialize can_issue_more from the value saved
11942         with the fence.
11943         * sel-sched-ir.c (flist_add): New parameter issue_more.
11944         Init FENCE_ISSUE_MORE with it.
11945         (merge_fences): Likewise.
11946         (init_fences): Update call to flist_add.
11947         (add_to_fences, add_clean_fence_to_fences)
11948         (add_dirty_fence_to_fences): Likewise.
11949         (move_fence_to_fences): Update call to merge_fences.
11950         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
11951         sched groups.
11952         * sel-sched-ir.h (struct _fence): New field issue_more.
11953         (FENCE_ISSUE_MORE): New accessor macro.
11955 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11957         PR rtl-optimization/42388
11958         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
11959         that have no predecessors nor successors.  Do not call move_bb_info
11960         for empty blocks outside of current region.
11962 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11964         PR rtl-optimization/42294
11965         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
11966         * sel-sched.c (move_exprs_to_boundary): Transitively add all
11967         originators' originators.
11969 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
11971         PR rtl-optimization/39453
11972         PR rtl-optimization/42246
11973         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
11974         for pipelining_p.
11975         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
11977 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
11978             Alexander Monakov  <amonakov@ispras.ru>
11980         PR middle-end/42245
11981         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
11982         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
11983         argument.  Update all callers.
11984         (tidy_control_flow): ... and here.  Recompute topological order
11985         of basic blocks in region if necessary.
11986         (sel_redirect_edge_and_branch): Change return type.  Return true
11987         if topological order might have been invalidated.
11988         (purge_empty_blocks): Export and move from...
11989         * sel-sched.c (purge_empty_blocks): ... here.
11990         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
11991         (maybe_tidy_empty_bb): Delete prototype.
11992         (purge_empty_blocks): Declare.
11994 2010-01-14  Andrey Belevantsev <abel@ispras.ru>
11996         PR rtl-optimization/42249
11997         * sel-sched.c (try_replace_dest_reg): When chosen register
11998         and original register is the same, do not bail out early, but
11999         still check all original insns for validity of replacing destination
12000         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
12001         in this case.
12003 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
12005         PR c/42721
12006         Port from no-undefined-overflow branch:
12007         2009-03-09  Richard Guenther  <rguenther@suse.de>
12009         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
12011 2010-01-14  Richard Guenther  <rguenther@suse.de>
12013         PR lto/42665
12014         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
12016 2010-01-14  Ira Rosen  <irar@il.ibm.com>
12018         PR tree-optimization/42709
12019         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
12020         as scalar type in creation of constant vector operand.
12022 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12024         PR testsuite/42414
12025         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
12026         (check-parallel-%): Match `testsuite' directory component only
12027         at the end.
12029 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
12031         PR translation/39521
12032         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
12033         strings with _().
12035 2010-01-13  Richard Guenther  <rguenther@suse.de>
12037         PR tree-optimization/42730
12038         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
12039         offset zero.
12041 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
12043         PR target/pr42542
12044         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
12045         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
12046         them signed.
12048 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
12050         * config/bfin/libgcc-bfin.ver: Regenerate based on current
12051         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
12052         ___umulsi3_highpart.
12054         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
12055         rather than schedule_insns if the pass is enabled.
12057 2010-01-13  Martin Jambor  <mjambor@suse.cz>
12059         PR tree-optimization/42704
12060         * tree-sra.c (sra_modify_assign): Do not delete assignments to
12061         SSA_NAMEs.
12063 2010-01-13  Martin Jambor  <mjambor@suse.cz>
12065         PR tree-optimization/42703
12066         * tree-sra.c (analyze_access_subtree): Check that we can build a
12067         reference to the original data within the aggregate.
12069 2010-01-13  Richard Guenther  <rguenther@suse.de>
12071         PR tree-optimization/42705
12072         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
12074 2010-01-13  Richard Guenther  <rguenther@suse.de>
12076         PR middle-end/42716
12077         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
12079 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
12081         PR debug/41371
12082         * var-tracking.c (values_to_unmark): New variable.
12083         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
12084         values_to_unmark vector.  Moved body to...
12085         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
12086         instead queue it into values_to_unmark vector.
12087         (vt_find_locations): Free values_to_unmark vector.
12089 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
12091         * config/s390/s390.c (override_options): Set
12092         default of max-pending-list-length to 256
12094 2010-01-13  Richard Guenther  <rguenther@suse.de>
12096         PR lto/42678
12097         * tree-pass.h (PROP_gimple_lcx): New.
12098         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
12099         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
12100         before the final cleanup_eh.
12101         (dump_properties): Dump PROP_gimple_lcx.
12102         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
12103         (tree_lower_complex_O0): Remove.
12104         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
12105         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
12106         tree_lower_complex, schedule TODO_update_ssa.
12107         * lto-streamer-out.c (output_function): Stream the functions
12108         properties.
12109         * lto-streamer-in.c (input_function): Likewise.
12110         (lto_read_body): Do not override them here.
12112 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
12114         PR c/42708
12115         * c-typeck.c (build_c_cast): Fold value cast to union type before
12116         wrapping it in a CONSTRUCTOR.
12118 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
12120         PR rtl-optimization/42699
12121         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
12122         involved.
12124 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12126         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
12127         SUBTARGET_WARN_UNUSED_SPEC): Move ...
12128         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
12129         SUBTARGET_WARN_UNUSED_SPEC): ... here
12130         * config/mips/iris5.h (LIBGCC_SPEC): Define.
12132 2010-01-12  Julian Brown  <julian@codesourcery.com>
12134         * config/arm/neon-schedgen.ml (Utils): Don't try to
12135         open missing module.
12136         (find_with_result): New.
12138 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
12140         PR debug/42662
12141         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
12142         sharing when canonicalizing ({lt,ge}u (plus a b) b).
12144         PR tree-optimization/42645
12145         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
12146         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
12147         decl_map, set processing_debug_stmt to -1 and return name without
12148         any remapping.
12150 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
12152         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
12153         binutils version, and reword target configuration description.
12155 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
12157         * config/avr/avr.h (LINKER_NAME): Remove.
12159 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
12161         PR target/42416
12162         * config/rs6000/rs6000.c (rs6000_override_options): On targets
12163         that support VSX, warn for -mno-altivec if vsx is not disabled,
12164         and disable vsx.
12166 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
12167             Shujing Zhao  <pearly.zhao@oracle.com>
12169         PR translation/42469
12170         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
12171         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
12172         character between option name and help text.
12173         * c.opt (imultilib): Likewise.
12175 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
12177         * lto-streamer-out.c (output_unreferenced_globals): Output static
12178         variables.
12180 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
12182         PR rtl-optimization/42621
12183         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
12184         optimizing for size.
12185         (duplicate_computed_gotos): Remove now-redundant check.
12187 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
12189         PR target/37454
12190         * configure.ac: Save and restore LDFLAGS and LIBS
12191         * configure: Regenerate.
12193 2010-01-10  Richard Guenther  <rguenther@suse.de>
12195         PR middle-end/42667
12196         * builtins.c (fold_builtin_strlen): Add type argument and
12197         convert the resulting length to it.
12198         (fold_builtin_1): Adjust.
12200 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
12202         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
12203         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
12204         1 insn.
12205         (num_insns_constant_wide): Adjust for that change.
12207 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
12209         PR debug/42631
12210         * web.c (union_defs): Add used argument, to combine uses of
12211         uninitialized regs.
12212         (entry_register): Adjust type and tests of used argument.
12213         (web_main): Widen used for new use.  Pass it to union_defs.
12214         * df.h (union_defs): Adjust prototype.
12216 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
12218         PR debug/42630
12219         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
12220         uses in new incoming argument.  Free body.
12221         (reset_debug_uses_in_loop): New.
12222         (analyze_insn_to_expand_var): Call the latter if the former found
12223         anything.  Fix whitespace.  Reject invalid dest overlaps before
12224         going through all insns in the loop.
12226 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
12228         PR debug/42629
12229         * haifa-sched.c (dying_use_p): Debug insns don't count.
12231 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
12233         PR middle-end/42363
12234         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
12235         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
12236         (verify_gimple_call): Reject LHS in noreturn calls.
12238 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
12240         PR debug/42604
12241         PR debug/42395
12242         * tree-vect-loop-manip.c (adjust_info): New type.
12243         (adjust_vec): New pointer to vector.
12244         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
12245         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
12246         (slpeel_update_phis_for_duplicate_loop): Use them.
12247         (slpeel_update_phi_nodes_for_guard1): Likewise.
12248         (slpeel_update_phi_nodes_for_guard2): Likewise.
12249         (slpeel_tree_peel_loop_to_edge): Likewise.
12250         (vect_update_ivs_after_vectorizer): Likewise.
12252 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
12254         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
12255         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
12257 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
12259         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
12260         bogus uninitialized warning.
12262 2010-01-09  Richard Guenther  <rguenther@suse.de>
12264         PR middle-end/42512
12265         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
12266         the evolution is compatible with the initial condition.
12268 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
12270         * gcc.c (process_command): Update copyright notice dates.
12271         * gcov.c (print_version): Likewise.
12272         * gcov-dump.c (print_version): Likewise.
12273         * mips-tfile.c (main): Likewise.
12274         * mips-tdump.c (main): Likewise.
12276 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
12278         PR target/41885
12279         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
12280         (rotlhi3): Delete.
12281         (rotlhi3_8): Delete.
12282         (rotlsi3): Delete.
12283         (rotlsi3_8): Delete.
12284         (rotlsi3_16): Delete.
12285         (rotlsi3_24): Delete.
12286         (rotl<mode>3): New.
12287         (*rotw<mode>3): New.
12288         (*rotb<mode>3): New.
12289         * config/avr/avr.c (avr_rotate_bytes): New function.
12290         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
12292 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
12294         PR target/37454
12295         * configure.ac: Modify -rdynamic check.
12296         * configure: Regenerate.
12298 2010-01-08  DJ Delorie  <dj@redhat.com>
12300         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
12301         register popping order.
12303 2010-01-08  Richard Guenther  <rguenther@suse.de>
12305         PR lto/42528
12306         * c.opt (fsigned-char): Also let LTO handle this option.
12307         (funsigned-char): Likewise.
12309 2010-01-07  Richard Guenther  <rguenther@suse.de>
12311         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
12312         (gimple_op): Likewise.
12313         (gimple_op_ptr): Likewise.
12314         (gimple_assign_set_lhs): Remove gcc_assert.
12315         (gimple_assign_set_rhs1): Likewise.
12316         (gimple_assign_set_rhs2): Likewise.
12317         (gimple_call_set_lhs): Likewise.
12318         (gimple_call_set_fn): Likewise.
12319         (gimple_call_set_fndecl): Likewise.
12320         (gimple_call_fndecl): Likewise.
12321         (gimple_call_return_type): Likewise.
12322         (gimple_call_set_chain): Likewise.
12323         (gimple_call_num_args): Likewise.
12324         (gimple_call_set_arg): Likewise.
12325         (gimple_cond_set_code): Likewise.
12326         (gimple_cond_set_lhs): Likewise.
12327         (gimple_cond_set_rhs): Likewise.
12328         (gimple_cond_set_true_label): Likewise.
12329         (gimple_cond_set_false_label): Likewise.
12330         (gimple_label_set_label): Likewise.
12331         (gimple_goto_set_dest): Likewise.
12332         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
12333         (gimple_debug_bind_get_value): Likewise.
12334         (gimple_debug_bind_get_value_ptr): Likewise.
12335         (gimple_debug_bind_set_var): Likewise.
12336         (gimple_debug_bind_set_value): Likewise.
12337         (gimple_debug_bind_reset_value): Likewise.
12338         (gimple_debug_bind_has_value_p): Likewise.
12339         (gimple_return_retval_ptr): Remove gcc_assert.
12340         (gimple_return_retval): Likewise.
12341         (gimple_return_set_retval): Likewise.
12342         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
12343         (safe_referenced_var_iterator): Remove.
12344         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
12345         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
12346         (fill_referenced_var_vec): Remove.
12347         (first_readonly_imm_use): Remove redundant gcc_assert.
12348         (phi_arg_index_from_use): Combine gcc_asserts.
12349         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
12350         (first_imm_use_stmt): Remove redundant gcc_assert.
12351         * tree-cfg.c (verify_gimple_call): Verify function and chain
12352         operands.  Verify arguments.
12353         (verify_types_in_gimple_stmt): Verify condition code and labels.
12355 2010-01-07  Richard Guenther  <rguenther@suse.de>
12357         PR tree-optimization/42641
12358         * sese.c (rename_map_elt_info): Use the SSA name version, do
12359         not hash pointers.
12361 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
12363         PR tree-optimization/42625
12364         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
12365         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
12367 2010-01-07  Duncan Sands  <baldrick@free.fr>
12369         * Makefile.in (PLUGIN_HEADERS): Add version.h.
12371 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
12373         PR target/42511
12374         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
12375         note itself is not function_invariant_p.
12377 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
12379         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
12380         Do not add the DF_NOTE problem.
12381         * store-motion.c (execute_rtl_store_motion): Likewise.
12383 2010-01-07  Martin Jambor  <mjambor@suse.cz>
12385         PR tree-optimization/42157
12386         * tree-sra.c (compare_access_positions): Stabilize sort if both
12387         accesses have integer types, return zero immediately if they are the
12388         same.
12390 2010-01-06  Richard Henderson  <rth@redhat.com>
12392         PR middle-end/41883
12393         * haifa-sched.c (add_to_note_list): Merge into ...
12394         (concat_note_lists): ... here, and ...
12395         (unlink_other_notes, rm_other_notes): Merge into...
12396         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
12397         NOTE_INSN_EPILOGUE_BEG.
12399 2010-01-06  Richard Guenther  <rguenther@suse.de>
12401         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
12402         not inline regular functions into always-inline functions.
12404 2010-01-06  Nick Clifton  <nickc@redhat.com>
12406         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
12407         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
12408         used together.
12409         (OVERRIDE_OPTIONS): Delete.
12410         (OPTIMIZATION_OPTIONS): Define.
12411         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
12412         * config/rx/rx.c (rx_handle_option): Issue an error message if
12413         -mcpu=rx200 and -fpu are used together.
12414         (rx_set_optimization_options): New function.  Issue an error
12415         message if an optimization attribute attempts to reset the FPU/
12416         math optimization pairing.
12417         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
12418         * config/rx/rx.opt: Set the default to 32-bit doubles.
12419         * config/rx/t-rx: Add multilibs for -nofpu option.
12420         * doc/invoke.texi: Update documentation of RX options.
12422 2010-01-06  Richard Guenther  <rguenther@suse.de>
12424         * tree-ssa-pre.c (name_to_id): New global.
12425         (alloc_expression_id): Simplify SSA name handling.
12426         (lookup_expression_id): Likewise.
12427         (init_pre): Zero name_to_id.
12428         (fini_pre): Free it.
12430 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
12432         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
12434 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
12436         PR target/42542
12437         * config/i386/sse.md (smaxv2di3): New.
12438         (umaxv2di3): Likewise.
12439         (sminv2di3): Likewise.
12440         (uminv2di3): Likewise.
12442 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
12444         PR target/42564
12445         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
12446         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
12447         (legitimize_tls_address): Likewise.
12448         (sparc_tls_referenced_p): Likewise.
12449         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
12450         and adjust calls to legitimize_pic_address.
12451         (legitimate_constant_p) Use sparc_tls_referenced_p.
12452         (legitimate_pic_operand_p): Likewise.
12453         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
12454         (sparc_tls_symbol_ref_1): Delete.
12455         (sparc_tls_referenced_p): Make static, recognize specific patterns.
12456         (legitimize_tls_address): Make static, handle CONST patterns.
12457         (legitimize_pic_address): Make static, remove unused parameter and
12458         adjust recursive calls.
12459         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
12460         and adjust call to legitimize_pic_address.
12461         (sparc_output_mi_thunk): Likewise.
12463 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
12464             H.J. Lu  <hongjiu.lu@intel.com>
12466         PR target/42542
12467         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
12468         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
12469         operands to make them signed.
12471         Revert:
12472         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
12474         PR target/42542
12475         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12476         GTU to GT for V4SI and V2DI.
12478         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12479         (umin<mode>3): Removed.
12480         (uminv8hi3): New.
12481         (uminv4si3): Likewise.
12483 2010-01-05  Martin Jambor  <mjambor@suse.cz>
12485         PR tree-optimization/42462
12486         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
12487         current_function_decl to helper functions and macros.
12489 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12491         PR bootstrap/41771
12492         * flags.h: Don't include real.h.
12493         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
12494         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
12495         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
12496         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
12497         * dominance.c: Update copyright.
12498         * gimple.c (walk_gimple_op): Remove inline.
12499         * tree-ssa-reassoc.c: Include real.h.
12500         * Makefile.in (FLAGS_H): Remove $(REAL_H).
12501         (tree-ssa-reassoc.o): Depend on $(REAL_H).
12503 2010-01-05  Nick Clifton  <nickc@redhat.com>
12505         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
12506         register to push into the stack frame when the accumulator has to
12507         be saved during interrupts.
12509 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
12511         * doc/invoke.texi: Remove the documentation about option
12512         -Wunreachable-code.
12513         * common.opt (Wunreachable-code):  Preserved for backward
12514         compatibility.
12515         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
12516         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
12517         the backward compatibility flag section.
12519 2010-01-05  Richard Guenther  <rguenther@suse.de>
12521         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
12523 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
12525         PR other/42611
12526         * cfgexpand.c (expand_one_var): Diagnose too large variables.
12528         PR tree-optimization/42508
12529         * tree-sra.c (convert_callers): Check for recursive call
12530         by comparing cgraph nodes instead of decls.
12531         (modify_function): Call ipa_modify_formal_parameters also
12532         on all same_body aliases.
12534         * cgraphunit.c (cgraph_materialize_all_clones): Compare
12535         cgraph nodes when checking for same_body aliases.
12537 2010-01-05  Richard Guenther  <rguenther@suse.de>
12539         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
12540         allocation and lookup.
12541         (get_or_alloc_expr_for_constant): Likewise.
12542         (phi_translate): Sink allocation.
12544 2010-01-04  Richard Guenther  <rguenther@suse.de>
12546         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
12547         a new entry only if needed.
12548         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
12549         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
12550         hashtable lookup.
12551         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
12552         the result array.
12553         (phi_translate): Handle CONSTANTs early.
12555 2010-01-04  Martin Jambor  <mjambor@suse.cz>
12557         PR tree-optimization/42398
12558         * tree-sra.c (struct access): Removed flag grp_different_types.
12559         (dump_access): Do not dump the removed flag.
12560         (sort_and_splice_var_accesses): Do not set the removed flag.
12561         (sra_modify_expr): Check for type compatibility directly.
12563 2010-01-04  Martin Jambor  <mjambor@suse.cz>
12565         PR tree-optimization/42366
12566         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
12567         edges with variable number of parameters.
12568         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
12569         flag instead of asserting it.
12570         (ipa_read_node_info): Read uses_analysis_done flag.
12572 2010-01-04  Richard Guenther  <rguenther@suse.de>
12574         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
12575         iterative_hash_* as intended.
12576         (vn_reference_compute_hash): Likewise.  Simplify hashing
12577         SSA names.
12578         (vn_reference_lookup_2): Likewise.
12579         (vn_nary_op_compute_hash): Likewise.
12580         (vn_phi_compute_hash): Likewise.
12581         (expressions_equal_p): Remove strange code.
12582         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
12583         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
12584         (bitmap_insert_into_set_1): Take value-id as parameter.
12585         (add_to_value): Pass it.
12586         (bitmap_insert_into_set): Likewise.
12587         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
12589 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
12591         PR driver/42442
12592         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
12593         (do_self_spec): For switches with SWITCH_IGNORE set set also
12594         SWITCH_IGNORE_PERMANENTLY.
12595         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
12596         of SWITCH_IGNORE.
12598 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
12600         * lto-streamer-out.c (output_unreferenced_globals): Output the full
12601         tree of an unreferenced global var.
12603 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
12605         PR target/42542
12606         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
12607         GTU to GT for V4SI and V2DI.
12609         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
12610         (umin<mode>3): Removed.
12611         (uminv8hi3): New.
12612         (uminv4si3): Likewise.
12614 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
12616         PR lto/42581
12617         * collect2.c (main): Turn on trace in collect2 if -v is passed
12618         to gcc with LTO.
12620 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
12622         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
12623         description of expression operand.
12625 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
12627         * configure.ac: Add install-html to target_list for Make-hooks.
12628         * configure: Regenerate.
12629         * fortran/Make-lang.in (F95_HTMLFILES): New.
12630         (fortran.html): Use it.
12631         (fortran.install-html): New.
12632         * Makefile.in (install-html): Add lang.install-html.
12633         * java/Make-lang.in (JAVA_HTMLFILES): New.
12634         (java.html): Use it.
12635         (java.install-html): New.
12636         * objc/Make-lang.in (objc.install-html): New.
12637         * objcp/Make-lang.in (obj-c++.install-html): New.
12638         * cp/Make-lang.in (c++.install-html): New.
12639         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
12640         * lto/Make-lang.in (lto.install-html): New.
12642 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
12644         PR lto/42520
12645         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
12647 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
12649         PR rtl-optimization/41862
12650         * store-motion.c (store_killed_in_insn, compute_store_table,
12651         remove_reachable_equiv_notes, replace_store_insn,
12652         build_store_vectors): Ignore all DEBUG_INSNs.
12654 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
12656         PR lto/41564
12657         * common.opt: Add dumpdir.
12659         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
12660         isn't specified.
12661         (option_map): Add --dumpdir.
12663         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
12665         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
12667         * opts.c (decode_options): Try dump_dir_name first if
12668         dump_base_name isn't an absolute path.
12669         (common_handle_option): Handle OPT_dumpdir.
12671         * toplev.c (dump_dir_name): New.
12672         (print_switch_values): Also ignore -dumpdir.
12674         * toplev.h (dump_dir_name): New.
12676 2010-01-03  Richard Guenther  <rguenther@suse.de>
12678         PR tree-optimization/42589
12679         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
12680         double-word expansion of bswap32.
12682 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
12684         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
12685         with BLOCK_FOR_INSN.
12686         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
12687         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
12688         noce_process_if_block): Likewise.
12689         * gcse.c (compute_local_properties, insert_expr_in_table,
12690         insert_set_in_table, canon_list_insert, find_avail_set,
12691         pre_insert_copy_insn): Likewise.
12693         * basic-block.h (BLOCK_NUM): Move from here...
12694         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
12696 2010-01-03  Richard Guenther  <rguenther@suse.de>
12698         PR tree-optimization/42438
12699         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
12700         contains_may_not_return_call flag.
12701         (BB_MAY_NOTRETURN): New.
12702         (valid_in_sets): Trapping nary operations are not valid
12703         in blocks that may not return.
12704         (insert_into_preds_of_block): Remove check for trapping expressions.
12705         (compute_avail): Compute also BB_MAY_NOTRETURN.
12707 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
12709         * doc/invoke.texi: Add 2010 to copyright years.
12711 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
12713         * config/sparc/sparc.c: Fix formatting nits.
12715 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
12716             Alexander Monakov  <amonakov@ispras.ru>
12718         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
12720 2010-01-02  Richard Guenther  <rguenther@suse.de>
12722         PR middle-end/42577
12723         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
12724         (simplify_switch_using_ranges): Mark to be removed edges
12725         as non-executable.
12727 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12729         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
12731         * collect2.c (scan_libraries): Add missing argument in call to
12732         scan_prog_file.
12734 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
12736         PR target/42448
12737         * config/alpha/predicates.md (aligned_memory_operand): Return false
12738         for CQImode.
12739         (unaligned_memory_operand): Return true for CQImode.
12740         * config/alpha/alpha.c (get_aligned_mem): Assert that location
12741         doesn not cross aligned SImode word boundary.
12743 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
12745         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
12746         Remove.
12747         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
12748         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
12750 2010-01-02  Richard Guenther  <rguenther@suse.de>
12752         PR lto/41597
12753         * toplev.c (compile_file): Emit LTO marker properly.  Change
12754         it to __gnu_lto_v1.
12755         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
12757 2010-01-01  Richard Guenther  <rguenther@suse.de>
12759         PR debug/42455
12760         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
12762 2010-01-01  Richard Guenther  <rguenther@suse.de>
12764         PR c/42570
12765         * c-decl.c (grokdeclarator): For zero-size arrays force
12766         structural equality checks as layout_type does.
12768 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
12770         * builtins.c: Update copyright to 2010.
12772 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
12774         PR lto/42531
12775         * lto-streamer-out.c (produce_asm): Revert the last change.
12776         (copy_function): Likewise.
12778         * lto-streamer.c (lto_get_section_name): Skip any leading
12779         asterisk in name.
12781 2010-01-01  Richard Guenther  <rguenther@suse.de>
12783         PR middle-end/42559
12784         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
12785         for LABEL_DECLs.
12788 Copyright (C) 2010 Free Software Foundation, Inc.
12790 Copying and distribution of this file, with or without modification,
12791 are permitted in any medium without royalty provided the copyright
12792 notice and this notice are preserved.