* config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
[official-gcc.git] / gcc / ChangeLog
blob8776d34d757246c6037e73a291b18a1275f0aaf3
1 2010-07-05  Nathan Sidwell  <nathan@codesourcery.com>
3         * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
4         * config/rs6000/e500crtsav64gprctr.asm: Likewise.
5         * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
6         directives.
8 2010-07-05  Ira Rosen  <irar@il.ibm.com>
10         * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
11         statements that are not vectorized.
12         * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
13         in INSIDE_COST. 
15 2010-07-05  Mikael Pettersson  <mikpe@it.uu.se>
17         PR bootstrap/44820
18         * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
20 2010-07-05  Richard Guenther  <rguenther@suse.de>
22         * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
23         RESULT_DECLs properly.
25 2010-07-04  H.J. Lu  <hongjiu.lu@intel.com>
27         PR rtl-optimization/44695
28         * config/i386/i386.md (extract_code): Removed.
29         (<u>divmodqi4): Likewise.
30         (divmodqi4): New.
31         (udivmodqi4): Likewise.
32         (divmodhiqi3): Change div/mod to HImode and extend operand 2 to
33         HImode.
34         (udivmodhiqi3): Likewise.
36 2010-07-04  Jan Hubicka  <jh@suse.cz>
38         * lto-cgraph.c (input_edge): Do not care about resolution decisions.
40 2010-07-04  Jan Hubicka  <jh@suse.cz>
42         * cgraphunit.c (init_cgraph): Only initialize dump file if it is not
43         already initialized.
45 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
47         * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
48         (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
49         (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
50         (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
51         (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
52         (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
53         (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
54         (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
55         (sync_new_nand_optab): Redefine as macros.
56         (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
57         Delete.
58         (direct_optab_index): New enum.
59         (direct_optab_d): New structure.
60         (direct_optab): New typedef.
61         (direct_optab_table): Declare.
62         (direct_optab_handler, set_direct_optab_handler): New functions.
63         (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
64         (sync_lock_release_optab): New macros.
65         * optabs.c (direct_optab_table): New variable.
66         (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
67         (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
68         cmpstr_optab and cmpstrn_optab.
69         (emit_conditional_move): Likewise for movcc_optab.
70         (can_conditionally_move_p): Likewise for movcc_gen_code.
71         (init_insn_codes): Clear direct_optab_table.
72         (init_optabs): Don't initialize the new "direct optabs" here.
73         (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
74         vcond_gen_code.
75         (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
76         (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
77         (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
78         (expand_sync_operation): Likewise other sync_*_optabs.
79         (expand_sync_fetch_operation): Likewise.  Rename sync_compare_and_swap
80         to sync_compare_and_swap_optab.
81         (expand_sync_lock_test_and_set): Use direct_optab_handler for
82         sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
83         to the names of both.
84         * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
85         cmpstr_optab and cmpstrn_optab.
86         (expand_builtin_lock_release): Likewise sync_lock_release.
87         * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
88         (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
89         (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
90         (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
91         (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
92         (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
93         (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
94         (sync_lock_test_and_set, sync_lock_release): Delete.
95         (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
96         (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
97         * genopinit.c (optabs): Use set_direct_optab_handler for the new
98         macro optabs.
99         * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
100         the "optab" local variable.  Use direct_optab_handler for optab and
101         sync_compare_and_swap_optab.
102         * reload1.c (reload_in_optab, reload_out_optab): Delete.
103         * targhooks.c (default_secondary_reload): Use direct_optab_handler for
104         reload_in_optab and reload_out_optab.
105         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
106         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
107         * config/pa/pa.c (pa_secondary_reload): Likewise.
108         * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
109         for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
110         (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
111         (VMSupportsCS8_builtin): Likewise.
113 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
115         * optabs.h (optab_handlers): Change type of insn_code to int.
116         (optab_handler, set_optab_handler, convert_optab_handler)
117         (set_convert_optab_handler): Treat the insn_code field as "insn_code -
118         CODE_FOR_nothing".
119         * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
120         (init_insn_codes): Zero both the above arrays.
121         (init_optabs): Never call init_insn_codes first time around.
123 2010-07-04  Richard Sandiford  <rdsandiford@googlemail.com>
125         * optabs.h (optab_handler, convert_optab_handler): Turn into
126         inline functions that return an insn code.
127         (set_optab_handler, set_convert_optab_handler): New functions.
128         * builtins.c: Replace optab_handler(X)->insn_code with
129         optab_handler or set_optab_handler thoughout.  Likewise
130         convert_optab_handler(X)->insn_code with convert_optab_handler
131         and set_convert_optab_handler.
132         * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
133         reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
134         tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
135         tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
136         tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
137         config/spu/spu.c: Likewise.
139 2010-07-04  Kaz Kojima  <kkojima@gcc.gnu.org>
141         PR target/44531
142         * config.gcc (sh*-*-*): Use regular expressions instead of
143         the 'i' modifier for sed substitutions.
145 2010-07-04  Jeremie Salvucci  <jeremie.salvucci@free.fr>
147         * gimple.c (gimple_body): Comments added.
149 2010-07-04  Richard Guenther  <rguenther@suse.de>
151         PR middle-end/44809
152         * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
153         of an INDIRECT_REF.
155 2010-07-04  Richard Guenther  <rguenther@suse.de>
157         PR tree-optimization/44479
158         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
159         extra SSA name copy statements which preserves points-to
160         information.
161         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
162         Copy points-to information for all pointers.  Properly handle
163         MEM_REFs.
164         (vect_create_data_ref_ptr): Likewise.  Avoid extra SSA name
165         copy statements.
166         * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
167         dependency.
169 2010-07-04  Richard Guenther  <rguenther@suse.de>
171         PR middle-end/44785
172         * tree-inline.c (initialize_inlined_parameters): Do not
173         re-use pointer-map slot over remap_type call.
175 2010-07-04  Richard Guenther  <rguenther@suse.de>
177         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
179 2010-07-04  Richard Guenther  <rguenther@suse.de>
181         PR tree-optimization/44656
182         * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
183         again after value-replacing in the defintions lhs.
185 2010-07-04  Ira Rosen  <irar@il.ibm.com>
186             Revital Eres  <eres@il.ibm.com>
188         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): 
189         Document new arguments.
190         * doc/tm.texi: Regenerate.
191         * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
192         Handle unaligned store.
193         * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
194         * target.def (builtin_vectorization_cost): Add new arguments.
195         * target.h (enum vect_cost_for_stmt): Add unaligned_store.
196         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
197         of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
198         (vect_vfa_segment_size): Fix indentation.
199         * tree-vectorizer.h (struct _vect_peel_info): New.
200         (struct _vect_peel_extended_info): New.
201         (struct _loop_vec_info): Add new field for peeling hash table and a
202         macro for its access.
203         (VECT_MAX_COST): Define.
204         (vect_get_load_cost): Declare.
205         (vect_get_store_cost, vect_get_known_peeling_cost, 
206         vect_get_single_scalar_iteraion_cost): Likewise.
207         (vect_supportable_dr_alignment): Add new argument.
208         * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
209         field.
210         (destroy_loop_vec_info): Free peeling hash table.
211         (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
212         (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
213         vect_analyze_slp. Fix indentation.
214         (vect_get_single_scalar_iteraion_cost): New function.
215         (vect_get_known_peeling_cost): Likewise.
216         (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel. 
217         Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per 
218         statement. Move outside cost calculation inside unknown peeling case.
219         Call vect_get_known_peeling_cost for known amount of peeling.
220         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
221         reference to the print message of forced alignment.
222         (vect_verify_datarefs_alignment): Update call to 
223         vect_supportable_dr_alignment.
224         (vect_get_data_access_cost): New function.
225         (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
226         vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
227         vect_peeling_hash_choose_best_peeling): Likewise.
228         (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
229         to store all the accesses in the loop and find best possible access to
230         align using peeling for known alignment case. For unknown alignment
231         check if stores are preferred or if peeling is worthy.
232         (vect_find_same_alignment_drs): Analyze pairs of loads too.
233         (vect_supportable_dr_alignment): Add new argument and check aligned
234         accesses according to it. 
235         * tree-vect-stmts.c (vect_get_stmt_cost): New function.
236         (cost_for_stmt): Call vect_get_stmt_cost. 
237         (vect_model_simple_cost): Likewise.
238         (vect_model_store_cost): Call vect_get_stmt_cost. Call 
239         vect_get_store_cost to calculate the cost of the statement.
240         (vect_get_store_cost): New function.
241         (vect_model_load_cost): Call vect_get_stmt_cost. Call 
242         vect_get_load_cost to calculate the cost of the statement.
243         (vect_get_load_cost): New function.
244         (vectorizable_store): Update call to vect_supportable_dr_alignment.
245         (vectorizable_load): Likewise.
246         * config/spu/spu.c (spu_builtin_vectorization_cost): Add new
247         arguments. 
248         * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
249         arguments. Handle unaligned store.
250         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
251         (rs6000_builtin_support_vector_misalignment): Return true for word and
252         double word alignments for VSX.
253         * tree-vect-slp.c (vect_build_slp_tree): Update calls to 
254         vect_supportable_dr_alignment and builtin_vectorization_cost.
256 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
258         PR target/44597
259         * config/pa/predicates.md (prefetch_cc_operand): Remove.
260         (prefetch_nocc_operand): Likewise.
261         * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
262         (prefetch_20): New insn.
263         (prefetch_cc): Remove.
264         (prefetch_nocc): Likewise.
266 2010-07-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
268         * expr.c (vector_mode_valid_p): Move to c-common.c.
269         * expr.h (vector_mode_valid_p): Do not declare here.
270         * system.h: Poison GCC_EXPR_H in front-ends.
271         * Makefile.in: Update dependencies.
273 2010-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
275         PR target/44705
276         * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
278 2010-07-03  Jan Hubicka  <jh@suse.cz>
280         * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
281         TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
282         * cfgexpand.c (gimple_expand_cfg): Use new timevars.
283         * var-tracking.c (vt_find_locations, variable_tracking_main_1):
284         Likewise.
286         * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
287         Update timevars.V
288         * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
289         (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
290         TV_IPA_LTO_DECL_OUT): New.
291         * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
293 2010-07-03  Jan Hubicka  <jh@suse.cz>
295         * ipa-inline.c (update_edge_key): Break out from ...
296         update_callers_keys): ... here;
297         (update_callee_keys): Update only the edges from caller to callee.
298         (update_all_calle_keys): Do what update_calle_keys did.
299         (decide_inlining_of_small_functions): Avoid recomputing of all
300         callees when badness increase.
302 2010-07-03  Jie Zhang  <jie@codesourcery.com>
304         * config/arm/arm.c (arm_attr_length_move_neon): New.
305         * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
306         * config/arm/neon.md (define_mode_attr V_slen): Remove.
307         (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
308         to compute length attribute.
310 2010-07-03  Jie Zhang  <jie@codesourcery.com>
312         * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
313         as predicate for operand 1 and remove its constraint.
314         * config/arm/predicates.md (vfp_register_operand): New.
315         * config/arm/arm.md (*push_multi): Remove the constraint of
316         operand 1.
317         (*push_fp_multi): Likewise.
319 2010-07-03  Eric Botcazou  <ebotcazou@adacore.com>
321         * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
323 2010-07-03  Jan Hubicka  <jh@suse.cz>
325         * config/i386/i386.c (override_options): Revert accidental commit.
327 2010-07-02  Le-Chun Wu  <lcwu@google.com>
329         PR c++/44128
330         * doc/invoke.texi: Update documentation of -Wshadow.
332 2010-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
333             Julian Brown  <julian@codesourcery.com>
334             Sandra Loosemore <sandra@codesourcery.com>
336         * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
337         comparisons.  Adjust to take both operands.
338         (arm_select_cc_mode): Handle DImode comparisons.
339         (arm_gen_compare_reg): Generate a scratch register for DImode
340         comparisons which require one.  Use xor for Thumb equality checks.
341         (arm_const_double_by_immediates): New.
342         (arm_print_operand): Allow 'Q' and 'R' for constants.
343         (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
344         * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
345         arm_canonicalize_comparison.
346         * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
347         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
348         prototype.
349         (arm_const_double_by_immediates): Declare.
350         * config/arm/constraints.md (Di): New constraint.
351         * config/arm/predicates.md (arm_immediate_di_operand)
352         (arm_di_operand, cmpdi_operand): New.
353         * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
354         (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
355         (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
356         (cstoredi4): Handle non-Cirrus also.
358 2010-07-02  Julian Brown  <julian@codesourcery.com>
359             Sandra Loosemore <sandra@codesourcery.com>
361         PR target/43703
362         * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
363         (smax<mode>3): Disable for NEON float modes when
364         flag_unsafe_math_optimizations is false.
365         * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
366         (*mul<mode>3_neon)
367         (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
368         (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
369         for NEON float modes when flag_unsafe_math_optimizations is false.
370         (quad_halves_<code>v4sf): Only enable if flag_unsafe_math_optimizations
371         is true.
372         * doc/invoke.texi (ARM Options): Add note about floating point
373         vectorization requiring -funsafe-math-optimizations.
375 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
376             Julian Brown  <julian@codesourcery.com>
378         * config/arm/neon.md (UNSPEC_VABA): Delete.
379         (UNSPEC_VABAL): Delete.
380         (UNSPEC_VABS): Delete.
381         (UNSPEC_VMUL_N): Delete.
382         (adddi3_neon): New.
383         (subdi3_neon): New.
384         (mul<mode>3add<mode>_neon): Make the pattern named.
385         (mul<mode>3neg<mode>add<mode>_neon): Likewise.
386         (neon_vadd<mode>): Replace with define_expand, and move the remaining
387         unspec parts...
388         (neon_vadd<mode>_unspec): ...to this.
389         (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
390         (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
391         (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
392         (neon_vaba<mode>): Rewrite in terms of vabd.
393         (neon_vabal<mode>): Rewrite in terms of vabdl.
394         (neon_vabs<mode>): Rewrite without unspec.
395         * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
396         (*arm_subdi3): Likewise.
397         * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
398         No_op attribute to disable assembly output checks.
399         * config/arm/arm_neon.h: Regenerated.
400         * doc/arm-neon-intrinsics.texi: Regenerated.
402 2010-07-02  Jan Hubicka  <jh@suse.cz>
404         * ipa-split.c (split_function): For aggregate values, set the return
405         slot optimization bit.  When passing DECL_BY_REFERENCE, produce
406         *<retval> = fncall.part ()
407         (execute_split_functions): Do not care about DECL_BY_REFERENCE.
409 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
411         * config/arm/neon.md (UNSPEC_VAND): Delete.
412         (UNSPEC_VBIC): Delete.
413         (UNSPEC_VCLZ): Delete.
414         (UNSPEC_VCNT): Delete.
415         (UNSPEC_VEOR): Delete.
416         (UNSPEC_VORN): Delete.
417         (UNSPEC_VORR): Delete.
418         (iordi3_neon): Rewrite RTL without unspec.  Add alternatives to handle
419         core registers too.
420         (anddi3_neon): Likewise.
421         (orndi3_neon): Likewise.
422         (bicdi3_neon): Likewise.
423         (xordi3_neon): Likewise.
424         (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
425         rid of unspec and handle unused operand.
426         (neon_vcnt<mode>): Similarly, with popcount<mode>2.
427         * config/arm/predicates.md (imm_for_neon_logic_operand):
428         Require TARGET_NEON.
429         (imm_for_neon_inv_logic_operand): Likewise.
430         * config/arm/arm.md (define_split for logical_binary_operator): 
431         Disable for NEON registers.
432         (anddi3): Add new define_expand, and rename the insn.  Disable
433         this insn for NEON, where anddi3_neon now applies.
434         (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
435         (iordi3): As for anddi3.
436         (xordi3): Likewise.
437         * config/arm/neon.ml (Vand): Split DImode variants and mark them
438         as No_op to disable testing for exact instruction match.
439         (Vorr): Likewise.
440         (Veor): Likewise.
441         (Vbic): Likewise.
442         (Vorn): Likewise.
443         * config/arm/arm_neon.h: Regenerated.
444         * doc/arm-neon-intrinsics.texi: Regenerated.
446 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
448         * expr.h (emit_stack_probe): Declare.
449         * explow.c (emit_stack_probe): Make global.
450         (anti_adjust_stack_and_probe): Fix comments.
451         * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
452         * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
453         * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
454         * config/sparc/sparc.c: Include except.h.
455         (sparc_emit_probe_stack_range): New function.
456         (output_probe_stack_range): Likewise.
457         (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
458         built-in stack checking is enabled.
459         * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
460         * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
461         (probe_stack_range): New insn.
463 2010-07-02  Richard Guenther  <rguenther@suse.de>
465         PR target/43958
466         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
467         for argument alignment.
469 2010-07-02  Jan Hubicka  <jh@suse.cz>
471         * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
472         walk backwards from entry_bb to check only those basic block of header
473         that might lead to execution of split part.
474         (consider_split) ... here.
475         (find_return_bb): Allow assignment in return BB.
476         (find_retval): New.
477         (split_function): Fix name of cloned function; take care of updating
478         return value in return_bb containing move.
480 2010-07-02  Andreas Schwab  <schwab@linux-m68k.org>
482         PR target/44771
483         * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
484         used variable insn.
486 2010-07-02  Eric Botcazou  <ebotcazou@adacore.com>
488         * implicit-zee.c (combine_reaching_defs): Fix long lines.
489         (is_set_with_extension_DI): Delete.
490         (struct zero_extend_info): New structure.
491         (add_removable_zero_extend): New function.
492         (find_removable_zero_extends): Use note_stores to find SETs.
493         (find_and_remove_ze): Fix long line, remove superfluous parentheses.
495 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
497         * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
498         is_miss_rate_acceptable. Pull total_positions computation
499         out of the loops.  Early return if miss_positions exceeds
500         the acceptable threshold.
501         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
502         is_miss_rate_acceptable after renaming of compute_miss_rate.
504 2010-07-02  Changpeng Fang  <changpeng.fang@amd.com>
506         PR middle-end/44576
507         * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
508         of 1000) for miss rate if the address diference is greater than or
509         equal to the cache line size (the two reference will never hit the
510         same cache line).
512 2010-07-02  Bernd Schmidt  <bernds@codesourcery.com>
514         PR target/42835
515         * config/arm/arm-modes.def (CC_NOTB): New mode.
516         * config/arm/arm.c (get_arm_condition_code): Handle it.
517         * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
518         * config/arm/arm.md (subsi3_compare0_c): New pattern.
519         (compare_scc): Now a define_and_split.  Add a number of extra
520         splitters before it.
522         PR target/42172
523         * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
524         and ZERO_EXTEND.
525         (arm_rtx_costs_1): Likewise.
526         (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
527         * config/arm/arm.md (is_arch6): New attribute.
528         (zero_extendhisi2, zero_extendqisi2, extendhisi2,
529         extendqisi2): Tighten the code somewhat, avoiding invalid
530         RTL to occur in the expander patterns.
531         (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
532         (thumb1_zero_extendhisi2_v6): Delete.
533         (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
534         (thumb1_extendhisi2_v6): Delete.
535         (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
536         (thumb1_extendqisi2_v6): Delete.
537         (zero_extendhisi2 for register input splitter): New.
538         (zero_extendqisi2 for register input splitter): New.
539         (thumb1_extendhisi2 for register input splitter): New.
540         (extendhisi2 for register input splitter): New.
541         (extendqisi2 for register input splitter): New.
542         (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
543         (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
544         and add support for a register alternative requiring a split.
545         (thumb1_zero_extendqisi2): Likewise.
546         (arm_zero_extendqisi2): Likewise.
547         (arm_extendhisi2): Likewise.
548         (arm_extendqisi2): Likewise.
550 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
552         * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
553         instead of an unspec.
554         (neon_expand_vector_init): Likewise.
555         * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
556         (UNSPEC_VDUP_LANE): Delete.
557         (UNSPEC VDUP_N): Delete.
558         (UNSPEC_VGET_HIGH): Delete.
559         (UNSPEC_VGET_LANE): Delete.
560         (UNSPEC_VGET_LOW): Delete.
561         (UNSPEC_VMVN): Delete.
562         (UNSPEC_VSET_LANE): Delete.
563         (V_double_vector_mode): New.
564         (vec_set<mode>_internal): Make code emitted match that for the
565         corresponding intrinsics.
566         (vec_setv2di_internal): Likewise.
567         (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
568         (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
569         (neon_vset_lane<mode>): Combine double and quad patterns and
570         expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
571         (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
572         (neon_vdup_n<mode>): Rewrite RTL without unspec.
573         (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
574         (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
575         with neon_vdup_lanev2di, adjusting the pattern from the latter
576         to be predicable for consistency.
577         (neon_vdup_lane<mode>_internal): New.
578         (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
579         to avoid using an unspec.
580         (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
581         (neon_vdup_lanev2di): Turn into a define_expand.
582         (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
583         (neon_vget_high<mode>): Replace with....
584         (neon_vget_highv16qi): New pattern using canonical RTL.
585         (neon_vget_highv8hi): Likewise.
586         (neon_vget_highv4si): Likewise.
587         (neon_vget_highv4sf): Likewise.
588         (neon_vget_highv2di): Likewise.
589         (neon_vget_low<mode>): Replace with....
590         (neon_vget_lowv16qi): New pattern using canonical RTL.
591         (neon_vget_lowv8hi): Likewise.
592         (neon_vget_lowv4si): Likewise.
593         (neon_vget_lowv4sf): Likewise.
594         (neon_vget_lowv2di): Likewise.
596         * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
597         test for this emitting vmov.
598         (Vset_lane): Likewise.
599         (Vdup_n): Likewise.
600         (Vmov_n): Likewise.
602         * doc/arm-neon-intrinsics.texi: Regenerated.
604 2010-07-02  Sandra Loosemore  <sandra@codesourcery.com>
606         * config/arm/neon.md (vec_extractv2di): Correct error in register
607         numbering to reconcile with neon_vget_lanev2di.
609 2010-07-02  Richard Guenther  <rguenther@suse.de>
611         * tree-ssa-structalias.c (pt_solution_set_var): New function.
612         * tree-ssa-alias.h (pt_solution_set_var): Declare.
613         * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
614         points-to information.
616 2010-07-02  Christian Borntraeger  <borntraeger@de.ibm.com>
618         * config/s390/s390.c (override_options): Adopt prefetching
619         at -O3 to handle flag_prefetch_loop_arrays as a tristate.
621 2010-07-02  Jan Hubicka  <jh@suse.cz>
623         * df-problems.c (df_kill_notes): Do not collect dead  notes.
624         (df_set_note): Just call add_reg_note.
625         (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
626         df_create_unused_note): Do not deal with lists of old notes.
627         (df_note_bb_compute): Likewise.
629 2010-07-02  Richard Guenther  <rguenther@suse.de>
631         * tree-ssa-structalias.c (find_func_aliases): Handle
632         pointer alignment via BIT_AND_EXPR.
633         * tree-vrp.c (extract_range_from_binary_expr): Likewise.
635 2010-07-02  Richard Guenther  <rguenther@suse.de>
637         * tree-data-ref.c (initialize_data_dependence_relation): Handle
638         mismatching number of dimensions properly.
640 2010-07-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
642         PR target/44707
643         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
644         (lo_sum (high ...) ...) patterns generated by earlier passes.
646 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
648         * doc/install.texi (Prerequisites): Document Perl requirement on
649         Solaris 2.
650         (Specific, *-*-solaris2*): Document GNU c++filt requirement.
652 2010-07-02  Richard Guenther  <rguenther@suse.de>
654         PR middle-end/44777
655         * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
657 2010-07-02  Jan Hubicka  <jh@suse.cz>
659         PR middle-end/44706
660         * predict.c (predict_paths_for_bb): Handle case when control dependence
661         BB has only abnormal edges.
663 2010-07-02  Richard Guenther  <rguenther@suse.de>
665         PR tree-optimization/44748
666         * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
667         the embedded conversion in MEM_REFs.
669 2010-07-01  López-Ibáñez  <manu@gcc.gnu.org>
671         * reload.c: Include toplev.h.
672         * recog.c:  Likewise.
673         * Makefile.in: Adjust dependencies.
675 2010-07-01  Jakub Jelinek  <jakub@redhat.com>
677         PR debug/44694
678         * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
679         or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
681 2010-07-01  Richard Guenther  <rguenther@suse.de>
683         * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
684         types for offsets.
686 2010-07-01  Joern Rennecke  <joern.rennecke@embecosm.com>
688         PR target/44732
689         * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
691         * config/ia64/ia64.c (ia64_register_move_cost): Fix argument types.
693 2010-07-01  Bernd Schmidt  <bernds@codesourcery.com>
695         PR target/44727
696         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
697         Make sure operand 0 dies.
699 2010-07-01  Richard Guenther  <rguenther@suse.de>
701         PR middle-end/42834
702         PR middle-end/44468
703         * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
704         * doc/generic.texi (References to storage): Document MEM_REF.
705         * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
706         (print_call_name): Likewise.
707         * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
708         (build_simple_mem_ref_loc): New function.
709         (mem_ref_offset): Likewise.
710         * tree.h (build_simple_mem_ref_loc): Declare.
711         (build_simple_mem_ref): Define.
712         (mem_ref_offset): Declare.
713         * fold-const.c: Include tree-flow.h.
714         (operand_equal_p): Handle MEM_REF.
715         (build_fold_addr_expr_with_type_loc): Likewise.
716         (fold_comparison): Likewise.
717         (fold_unary_loc): Fold
718         VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
719         (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
720         fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
721         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
722         (ptr_deref_may_alias_ref_p_1): Likewise.
723         (ao_ref_base_alias_set): Properly differentiate base object for
724         offset and TBAA.
725         (ao_ref_init_from_ptr_and_size): Use MEM_REF.
726         (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
727         (indirect_refs_may_alias_p): Likewise.
728         (refs_may_alias_p_1): Likewise.  Remove pointer SSA name def
729         chasing code.
730         (ref_maybe_used_by_call_p_1): Handle MEM_REF.
731         (call_may_clobber_ref_p_1): Likewise.
732         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
733         * expr.c (expand_assignment): Handle MEM_REF.
734         (store_expr): Handle MEM_REFs from STRING_CSTs.
735         (store_field): If expanding a MEM_REF of a non-addressable
736         decl use bitfield operations.
737         (get_inner_reference): Handle MEM_REF.
738         (expand_expr_addr_expr_1): Likewise.
739         (expand_expr_real_1): Likewise.
740         * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
741         * alias.c (ao_ref_from_mem): Handle MEM_REF.
742         (get_alias_set): Likewise.  Properly handle VIEW_CONVERT_EXPRs.
743         * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
744         (dr_analyze_indices): Likewise.
745         (dr_analyze_alias): Likewise.
746         (object_address_invariant_in_loop_p): Likewise.
747         * gimplify.c (mark_addressable): Handle MEM_REF.
748         (gimplify_cond_expr): Build MEM_REFs.
749         (gimplify_modify_expr_to_memcpy): Likewise.
750         (gimplify_init_ctor_preeval_1): Handle MEM_REF.
751         (gimple_fold_indirect_ref): Adjust.
752         (gimplify_expr): Handle MEM_REF.  Gimplify INDIRECT_REF to MEM_REF.
753         * tree.def (MEM_REF): New tree code.
754         * tree-dfa.c: Include toplev.h.
755         (get_ref_base_and_extent): Handle MEM_REF.
756         (get_addr_base_and_unit_offset): New function.
757         * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
758         * gimple-fold.c (may_propagate_address_into_dereference): Handle
759         MEM_REF.
760         (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
761         accesses if the array has just one dimension.  Remove always true
762         parameter.  Do not require type compatibility here.
763         (maybe_fold_offset_to_component_ref): Remove.
764         (maybe_fold_stmt_indirect): Remove.
765         (maybe_fold_reference): Remove INDIRECT_REF handling.
766         Fold back to non-MEM_REF.
767         (maybe_fold_offset_to_address): Simplify.  Deal with type
768         mismatches here.
769         (maybe_fold_reference): Likewise.
770         (maybe_fold_stmt_addition): Likewise.  Also handle
771         &ARRAY + I in addition to &ARRAY[0] + I.
772         (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
773         (gimple_get_relevant_ref_binfo): Handle MEM_REF.
774         * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
775         * tree-ssa.c (useless_type_conversion_p): Make most pointer
776         conversions useless.
777         (warn_uninitialized_var): Handle MEM_REF.
778         (maybe_rewrite_mem_ref_base): New function.
779         (execute_update_addresses_taken): Implement re-writing of MEM_REFs
780         to SSA form.
781         * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
782         INDIRECT_REF handling.
783         (copy_tree_body_r): Handle MEM_REF.
784         * gimple.c (is_gimple_addressable): Adjust.
785         (is_gimple_address): Likewise.
786         (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
787         invariant base are invariant.
788         (is_gimple_min_lval): Adjust.
789         (is_gimple_mem_ref_addr): New function.
790         (get_base_address): Handle MEM_REF.
791         (count_ptr_derefs): Likewise.
792         (get_base_loadstore): Likewise.
793         * gimple.h (is_gimple_mem_ref_addr): Declare.
794         (gimple_call_fndecl): Handle invariant MEM_REF addresses.
795         * tree-cfg.c (verify_address): New function, split out from ...
796         (verify_expr): ... here.  Use for verifying ADDR_EXPRs and
797         the address operand of MEM_REFs.  Verify MEM_REFs.  Reject
798         INDIRECT_REFs.
799         (verify_types_in_gimple_min_lval): Handle MEM_REF.  Disallow
800         INDIRECT_REF.  Allow conversions.
801         (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
802         a register does not change its size.
803         (verify_types_in_gimple_reference): Verify MEM_REF.
804         (verify_gimple_assign_single): Disallow INDIRECT_REF.
805         Handle MEM_REF.
806         * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
807         New.
808         (mark_address_taken): Handle MEM_REF.
809         (get_indirect_ref_operands): Pass through opf_not_non_addressable.
810         (get_asm_expr_operands): Pass opf_not_non_addressable.
811         (get_expr_operands): Handle opf_[not_]non_addressable.
812         Handle MEM_REF.  Remove INDIRECT_REF handling.
813         * tree-vrp.c: (check_array_ref): Handle MEM_REF.
814         (search_for_addr_array): Likewise.
815         (check_array_bounds): Likewise.
816         (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
817         * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
818         (ref_always_accessed_p): Likewise.
819         (gen_lsm_tmp_name): Likewise.  Handle ADDR_EXPR.
820         * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
821         Handle MEM_REF.
822         * cgraphbuild.c (mark_load): Properly check for NULL result
823         from get_base_address.
824         (mark_store): Likewise.
825         * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
826         * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
827         handling for MEM_REF.
828         * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
829         &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
830         * builtins.c (stabilize_va_list_loc): Use the function ABI
831         valist type if we couldn't canonicalize the argument type.
832         Always dereference with the canonical va-list type.
833         (maybe_emit_free_warning): Handle MEM_REF.
834         (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
835         memmove to memcpy.
836         * builtins.c (fold_builtin_memory_op): Use ref-all types
837         for all memcpy foldings.
838         * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
839         (build_outer_var_ref): Likewise.
840         (scan_omp_1_op): Likewise.
841         (lower_rec_input_clauses): Likewise.
842         (lower_lastprivate_clauses): Likewise.
843         (lower_reduction_clauses): Likewise.
844         (lower_copyprivate_clauses): Likewise.
845         (expand_omp_atomic_pipeline): Likewise.
846         (expand_omp_atomic_mutex): Likewise.
847         (create_task_copyfn): Likewise.
848         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
849         Remove old union trick.  Initialize constant offsets.
850         (ao_ref_init_from_vn_reference): Likewise.  Do not handle
851         INDIRECT_REF.  Init base_alias_set properly.
852         (vn_reference_lookup_3): Replace INDIRECT_REF handling with
853         MEM_REF.
854         (vn_reference_fold_indirect): Adjust for MEM_REFs.
855         (valueize_refs): Fold MEM_REFs.  Re-evaluate constant offset
856         for ARRAY_REFs.
857         (may_insert): Remove.
858         (visit_reference_op_load): Do not test may_insert.
859         (run_scc_vn): Remove parameter, do not fiddle with may_insert.
860         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
861         a field to store the constant offset this op applies.
862         (run_scc_vn): Adjust prototype.
863         * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
864         * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
865         MEM_REF.  Propagate &foo + CST as &MEM[&foo, CST].  Do not
866         bother about volatile qualifiers on pointers.
867         (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
868         * tree-ssa-loop-ivopts.c
869         * tree-ssa-loop-ivopts.c (determine_base_object): Adjust
870         for MEM_REF.
871         (strip_offset_1): Likewise.
872         (find_interesting_uses_address): Replace INDIRECT_REF handling with
873         MEM_REF handling.
874         (get_computation_cost_at): Likewise.
875         * ipa-pure-const.c (check_op): Handle MEM_REF.
876         * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
877         * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
878         and constants.
879         * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
880         * tree-parloops.c (take_address_of): Adjust for MEM_REF.
881         (eliminate_local_variables_1): Likewise.
882         (create_call_for_reduction_1): Likewise.
883         (create_loads_for_reductions): Likewise.
884         (create_loads_and_stores_for_name): Likewise.
885         * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
886         (ssa_accessed_in_tree): Handle MEM_REF.
887         (ssa_accessed_in_assign_rhs): Likewise.
888         (update_type_size): Likewise.
889         (analyze_accesses_for_call_stmt): Likewise.
890         (analyze_accesses_for_assign_stmt): Likewise.
891         (transform_access_sites): Likewise.
892         (transform_allocation_sites): Likewise.
893         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
894         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
895         not handle INDIRECT_REF.
896         * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
897         (cond_store_replacement): Likewise.
898         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
899         MEM_REF, no not handle INDIRECT_REFs.
900         (insert_into_preds_of_block): Properly initialize avail.
901         (phi_translate_1): Fold MEM_REFs.  Re-evaluate constant offset
902         for ARRAY_REFs.  Properly handle reference lookups that
903         require a bit re-interpretation.
904         (can_PRE_operation): Do not handle INDIRECT_REF.  Handle MEM_REF.
905         * tree-sra.c
906         * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
907         (build_ref_for_offset_1): Remove.
908         (build_ref_for_offset): Build MEM_REFs.
909         (gate_intra_sra): Disable for now.
910         (sra_ipa_modify_expr): Handle MEM_REF.
911         (ipa_early_sra_gate): Disable for now.
912         * tree-sra.c (create_access): Swap INDIRECT_REF handling for
913         MEM_REF handling.
914         (disqualify_base_of_expr): Likewise.
915         (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
916         MEM_REF handling.
917         (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
918         Use mem_ref_offset.  Remove bogus folding.
919         (build_access_from_expr_1): Properly handle MEM_REF for
920         non IPA-SRA.
921         (make_fancy_name_1): Add support for MEM_REF.
922         * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
923         * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
924         * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
925         (compute_complex_ancestor_jump_func): Likewise.
926         (ipa_analyze_virtual_call_uses): Likewise.
927         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
928         INDIRECT_REF folding with more generalized MEM_REF folding.
929         (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
930         (forward_propagate_addr_into_variable_array_index): Also handle
931         &ARRAY + I in addition to &ARRAY[0] + I.
932         * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
933         * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
934         creates assignments with overlap.
935         * tree-nested.c (get_static_chain): Adjust for MEM_REF.
936         (get_frame_field): Likewise.
937         (get_nonlocal_debug_decl): Likewise.
938         (convert_nonlocal_reference_op): Likewise.
939         (struct nesting_info): Add mem_refs pointer-set.
940         (create_nesting_tree): Allocate it.
941         (convert_local_reference_op): Insert to be folded mem-refs.
942         (fold_mem_refs): New function.
943         (finalize_nesting_tree_1): Perform defered folding of mem-refs 
944         (free_nesting_tree): Free the pointer-set.
945         * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
946         (vectorizable_load): Likewise.
947         * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
948         (propagate_with_phi): Likewise.
949         * tree-object-size.c (addr_object_size): Handle MEM_REFs
950         instead of INDIRECT_REFs.
951         (compute_object_offset): Handle MEM_REF.
952         (plus_stmt_object_size): Handle MEM_REF.
953         (collect_object_sizes_for): Dispatch to plus_stmt_object_size
954         for &MEM_REF.
955         * tree-flow.h (get_addr_base_and_unit_offset): Declare.
956         (symbol_marked_for_renaming): Likewise.
957         * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
958         (fold-const.o): Add $(TREE_FLOW_H).
959         * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
960         (find_func_clobbers): Likewise.
961         * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
962         (decompose_access): Likewise.
963         (replace_field_acc): Likewise.
964         (replace_field_access_stmt): Likewise.
965         (insert_new_var_in_stmt): Likewise.
966         (get_stmt_accesses): Likewise.
967         (reorg_structs_drive): Disable.
968         * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
969         (ix86_canonical_va_list_type): Likewise.
971 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
973         PR other/44566
974         * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
975         * target.def (struct gcc_target): Replace enum reg_class with
976         reg_class_t in hook argument / return types.
977         * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
978         (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
979         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
980         * targhooks.h (default_branch_target_register_class): Likewise.
981         (default_ira_cover_classes, default_secondary_reload): Likewise.
982         (default_memory_move_cost, default_register_move_cost): Likewise.
983         * targhooks.c (default_branch_target_register_class): Likewise.
984         (default_ira_cover_classes, default_secondary_reload): Likewise.
985         (default_memory_move_cost, default_register_move_cost): Likewise.
986         * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
987         * bt-load.c (branch_target_load_optimize): Likewise.
988         * ira.c (setup_cover_and_important_classes): Likewise.
989         * ira-costs.c (copy_cost): Likewise.
990         * reload1.c (emit_input_reload_insns): Likewise.
991         * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
992         * config/frv/frv.c (frv_secondary_reload): Likewise.
993         * config/s390/s390.c (s390_secondary_reload): Likewise.
994         * config/i386/i386.c (i386_ira_cover_classes): Likewise.
995         (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
996         (ix86_register_move_cost): Likewise.
997         * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
998         * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
999         * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
1000         * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
1001         * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
1002         (rs6000_ira_cover_classes): Likewise.
1003         * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
1004         * config/picochip/picochip-protos.h (picochip_secondary_reload):
1005         Likewise.
1006         * config/pa/pa.c (pa_secondary_reload): Likewise.
1007         * config/mips/mips.c (mips_ira_cover_classes): Likewise.
1008         * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
1009         * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
1010         * doc/tm.texi: Regenerate.
1012 2010-06-30  Sebastian Pop  <sebastian.pop@amd.com>
1014         PR bootstrrap/44726
1015         * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
1016         use.
1017         (build_alias_set_optimal_p): Likewise.
1018         (build_base_obj_set_for_drs): Likewise.
1020 2010-06-30  Joern Rennecke  <joern.rennecke@embecosm.com>
1022         * target.def: Remove comment about licensing problems of function
1023         declarations.
1025         * target.def (declare_constant_name): Change exp to expr.  Use DEFHOOK.
1026         * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
1027         * doc/tm.texi: Regenerate.
1029         * target.def (builtin_reciprocal): Change tm_fn to md_fn.  Use DEFHOOK.
1030         * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
1032         * target.def (enum_va_list_p): Use DEFHOOK.
1033         * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
1034         Rename ptype to ptree.
1035         * doc/tm.texi: Regenerate.
1037         * target.def (fold_builtin): Rename nargs to n_args.  Use DEFHOOK.
1038         * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
1039         * doc/tm.texi: Regenerate.
1041         * target.def (memory_move_cost): Use DEFHOOK.
1042         * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
1043         Rename regclass AKA class to rclass.
1044         * doc/tm.texi: Regenerate.
1046         * target.def (pragma_parse): Use DEFHOOK.
1047         * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
1048         s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
1049         * doc/tm.texi: Regenerate.
1051         * target.def (pass_by_reference): Use DEFHOOK.
1052         * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
1053         * doc/tm.texi: Regenerate.
1055         * target.def (resolve_overloaded_builtin): Rename params to arglist.
1056         Use DEFHOOK.
1057         * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
1058         * doc/tm.texi: Regenerate.
1060         * target.def (return_pops_args): Use DEFHOOK.
1061         * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
1062         Rename stack-size to size.
1063         * doc/tm.texi: Regenerate.
1065         * target.def (dfa_new_cycle): Use DEFHOOK.  Rename dump_file to dump,
1066         last-sched_cycle to last_clock, cur_cycle to clock.
1067         * doc/tm.texi.in: Use @hook.
1068         * doc/tm.texi: Regenerate.
1070         * target.def (print_operand, print_operand_address): Update comment.
1071         (print_operand_punct_valid_p): Likewise.
1073 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1075         * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
1076         to rtl.h.
1077         (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
1078         * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations
1079         here.
1080         * rtl-error.h: New.
1081         * regrename.c: Do not include toplev.h. Include rtl-error.h.
1082         * rtl-error.c: Likewise.
1083         * reload.c: Likewise.
1084         * recog.c:  Likewise.
1085         * sel-sched.c: Likewise.
1086         * function.c: Likewise.
1087         * reg-stack.c: Likewise.
1088         * cfgrtl.c: Likewise.
1089         * reload1.c: Likewise.
1090         * final.c: Include rtl-error.
1091         * Makefile.in: Adjust dependencies.
1093 2010-06-30  Jan Hubicka  <jh@suse.cz>
1095         PR middle-end/PR44706
1096         * ipa-split (split_function): Refine conditions when to use DECL_RESULT
1097         to return the value.
1099 2010-06-30  Michael Matz  <matz@suse.de>
1101         PR bootstrap/44699
1102         * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
1103         * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
1104         a gimple reg, attach the original VDEF to the last store in the
1105         sequence.
1107 2010-06-30  Iain Sandoe  <iains@gcc.gnu.org>
1109         PR other/44034
1110         * config/darwin.c (darwin_override_options): Use renamed
1111         targetm.asm_out.emit_unwind_label.
1113 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
1115         PR tree-optimization/39799
1116         * tree-inline.c (remap_ssa_name): Initialize variable only if
1117         SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1119 2010-06-30  Nathan Froyd  <froydnj@codesourcery.com>
1121         * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
1123 2010-06-30  Richard Guenther  <rguenther@suse.de>
1125         PR target/44722
1126         * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
1127         against oscillation with reverse peephole2.
1129 2010-06-30  H.J. Lu  <hongjiu.lu@intel.com>
1131         PR target/44721
1132         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1133         Fix last commit.
1135 2010-06-30  Nick Clifton  <nickc@redhat.com>
1137         * config/rx/rx-modes.def: New file.
1138         * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
1139         (CC_REGNUM): Define.
1140         (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
1141         register.
1142         (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
1143         (SELECT_CC_MODE): Define.
1144         * config/rx/rx.md (CC_REG): Define.  Update all patterns to use
1145         (reg:CC CC_REG) instead of (cc0).
1146         (attr "cc"): Delete.
1147         (cbranchsi4): Do not split compare and branch here. Instead move
1148         it to...
1149         (cbranchsi4_<code>): ... here.  New patterns.
1150         (cmpsi): Call rx-compare_redundant to find out if it is necessary
1151         to emit the compare instruction.
1152         * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
1153         cc_status flags.
1154         (rx_get_stack_layout): Iterate up to before CC_REGNUM not
1155         FIRST_PSEUDO_REGNUM.
1156         (rx_expand_prologue, rx_expand_epilogue): Likewise.
1157         (rx_notice_update_cc): Delete.
1158         (rx_cc_modes_compatible): New function.
1159         (flags_needed_for_conditional): New function.
1160         (flags_from_mode): New function.
1161         (rx_compare_redundant): New function - scans backwards through
1162         insn list to find out if condition flags are already set
1163         correctly.
1164         (TARGET_CC_MODES_COMPATIBLE): Define.
1165         * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
1167         * config/rx/rx.h (BRANCH_COST): Define.
1168         (REGISTER_MOVE_COST): Define.
1169         * config/rx/predicates (rx_source_operand): Allow all constant
1170         types.
1171         * config/rx/rx.md (addsi3): Add alternative for swapped operands.
1172         (tstsi4): New pattern.
1173         * config/rx/rx.c (rx_memory_move_cost): Define.
1174         (TARGET_MEMORY_MOVE_COST): Define.
1176 2010-06-30  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1178         * tree.h (block_may_fallthru): Declare here.
1179         * tree-flow.h (block_may_fallthru): Do not declare here.
1180         * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
1181         bitmap.h
1182         * Makefile.in (c-typeck.o): Update dependencies.
1184 2010-06-30  Jakub Jelinek  <jakub@redhat.com>
1186         PR debug/44694
1187         * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
1188         * cselib.c (cfa_base_preserved_regno): New static variable.
1189         (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
1190         of REGNO (cfa_base_preserved_val->locs->loc).
1191         (cselib_preserve_cfa_base_value): Add regno argument, set
1192         cfa_base_preserved_regno to it.
1193         (cselib_invalidate_regno): Allow removal of registers other than
1194         cfa_base_preserved_regno from cfa_base_preserved_val.
1195         (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
1196         * var-tracking.c (adjust_mems): Replace sp or hfp even outside
1197         of MEM addresses, if not on LHS.
1198         (reverse_op): Don't add reverse ops for cfa_base_rtx.
1199         (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
1201 2010-06-30  Bernd Schmidt  <bernds@codesourcery.com>
1203         * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
1204         static variables.
1205         (peep2_buf_position): New static function.
1206         (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
1207         peephole2_optimize): Use it.
1208         (peep2_attempt, peep2_update_life): New static functions, broken out
1209         of peephole2_optimize.
1210         (peep2_fill_buffer): New static function.
1211         (peephole2_optimize): Change the main loop to try to fill the buffer
1212         with the maximum number of insns before matching them against
1213         peepholes.  Use a forward scan.  Remove special case for targets with
1214         conditional execution.
1215         * genrecog.c (change_state): Delete dead code.
1216         * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1217         Rewrite so as not to expect the second insn to have had a peephole
1218         applied yet.
1220 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1222         * genhooks.c (emit_findices): Cast field precision to int.
1223         (emit_documentation): Likewise.
1225 2010-06-29  Jakub Jelinek  <jakub@redhat.com>
1227         PR tree-optimization/43801
1228         * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
1229         if old_decl was DECL_ONE_ONLY.
1231         PR debug/44668
1232         * dwarf2out.c (add_accessibility_attribute): New function.
1233         (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
1234         instead of adding DW_AT_accessibility manually.
1235         (gen_enumeration_type_die, gen_struct_or_union_type_die,
1236         gen_typedef_die): Use it.
1238 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1240         * vmsdbgout.c (full_name): Just output the file name if not native.
1242 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1244         * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
1245         (funcnam_table): New static table.
1246         (funcnum_table): New static table.
1247         (write_rtnbeg): Write value saved in funcnum_table.
1248         (write_rtnend): Write value saved in funcnum_table.
1249         (vmsdbgout_begin_function): Save current function info in
1250         (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
1251         (vmsdbgout_finish): Iterate over funcnum_table.
1253 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1255         * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
1256         (vmsdbgout_type_decl): Declare
1257         (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
1258         (FUNC_EPILOGUE_LABEL): New macro
1259         (vmsdbgout_begin_epilogue): New function.
1260         (vmsdbgout_type_decl): New function.
1262 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1264         * vmsdbg.h: Update copyright.
1266 2010-06-29  Douglas B Rupp  <rupp@gnat.com>
1268         * vmsdbg.h (DST_K_TBG): New DST constant.
1269         * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
1270         (write_modbeg): Cast module_language to avoid warning.
1271         (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
1273 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
1275         PR other/44034
1276         * target.def, doc/tm.texi.in, genhooks.c: New files.
1277         * target.h: Instead of defining individual hook members,
1278         define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
1279         include target.def.
1280         * target-def.h: Instead of defining individual hook initializers,
1281         include target-hooks-def.h.
1282         * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
1283         targetm.live_on_entry -> targetm.extra_live_on_entry
1284         targetm.sched.md_finish ->targetm.sched.finish
1285         targetm.sched.md_init -> targetm.sched.init
1286         targetm.sched.md_init_global -> targetm.sched.init_global
1287         targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
1288         targetm.asm_out.except_table_label ->
1289           targetm.asm_out.emit_except_table_label
1290         targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
1291         targetm.target_help -> targetm.help
1292         targetm.vectorize.builtin_support_vector_misalignment ->
1293           targetm.vectorize.support_vector_misalignment
1294         targetm.file_start_app_off -> targetm.asm_file_start_app_off
1295         targetm.file_start_file_directive ->
1296          targetm.asm_file_start_file_directive
1297         * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
1298         * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
1299         * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
1300         TARGET_VECTOR_ALIGNMENT_REACHABLE ->
1301           TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
1302         TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
1303           TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
1304         TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
1305         * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
1306         * Makefile.in (TARGET_H): Depend on target.def.
1307         (TARGET_DEF_H): Depend on target-hooks-def.h.
1308         (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
1309         (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
1310         * doc/tm.texi: Regenerate.
1312         * Makefile.in (s-tm-texi): Remove stray tab / rule.
1314         * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
1315         (targetm.sched.init): Likewise.
1317 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1319         PR bootstrap/44713
1320         * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
1321         (function_arg_advance_32): Const-ify TYPE parameter.
1322         (function_arg_advance_64): Likewise.  Change type of NAMED to bool.
1323         (ix86_function_arg_advance): Change type of NAMED to bool.
1324         (function_arg_32): Const-ify CUM and TYPE parameters.
1325         (function_arg_64): Likewise.  Change type of NAMED to bool.
1326         (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
1327         to bool.
1328         (ix86_function_arg): Change type of NAMED to bool.
1329         (ix86_setup_incoming_varargs): Call ix86_function_arg_advance.  Pass
1330         last argument as a bool.
1332 2010-06-29  Joern Rennecke  <joern.rennecke@embecosm.com>
1334         * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
1335         (OVERRIDE_OPTIONS): Add note of obsolescence.
1336         Replace references with references to TARGET_OPTION_OVERRIDE.
1337         (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
1338          the macro).
1339         * targhooks.c (default_target_option_override): New function.
1340         * targhooks.h (default_target_option_override): Declare.
1341         * target.h (struct gcc_target): Add override member to
1342         target_option member.
1343         * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
1344         targetm.target_option.override call.
1345         * target-def.h (TARGET_OPTION_OVERRIDE): Define.
1346         (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
1348 2010-06-29  Jan Hubicka  <jh@suse.cz>
1350         * tree-inline.c: Replace incomming by incomin and clonning by cloning.
1352 2010-06-29  Jan Hubicka  <jh@suse.cz>
1354         * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
1355         unreachable.
1356         (rebuild_frequencies): New function.
1357         * predict.h (rebuild_frequencies): Declare.
1358         * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
1359         entry block and edge reaching new_entry.
1360         (tree_function_versioning): When doing partial cloning, rebuild frequencies
1361         when done.
1362         * passes.c (execute_function_todo): Use rebild_frequencies.
1364 2010-06-29  Richard Guenther  <rguenther@suse.de>
1366         * tree-dfa.c (dump_variable): Remove noalias_state dumping.
1367         * tree-flow.h (enum noalias_state): Remove.
1368         (struct var_ann_d): Remove noalias_state member.
1370 2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
1372         PR target/43902
1373         * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
1374         (maddhisi4): Renamed from mulhisi3addsi.  Operands renumbered.
1375         (maddhidi4): Likewise.
1377         Revert parts of the change for PR25130.
1378         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1379         MEM_ALIAS_SET.
1381 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1383         * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
1384         targetm.calls.function_incoming_arg, and
1385         targetm.calls.function_arg_advance instead of FUNCTION_ARG,
1386         FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
1387         * target.h (struct gcc_target): Add function_arg_advance,
1388         function_arg, and function_incoming_arg fields.
1389         * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
1390         (TARGET_FUNCTION_INCOMING_ARG): Define.
1391         (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
1392         and TARGET_FUNCTION_INCOMING_ARG.
1393         * targhooks.h (default_function_arg_advance): Declare.
1394         (default_function_arg, default_function_incoming_arg): Declare.
1395         * targhooks.c (default_function_arg_advance): New function.
1396         (default_function_arg, default_function_incoming_arg): New function.
1397         * config/i386/i386.c (function_arg_advance): Rename to...
1398         (ix86_function_arg_advance): ...this.  Make static.
1399         (function_arg): Rename to...
1400         (ix86_function_arg): ...this.  Make static.
1401         (TARGET_FUNCTION_ARG_ADVANCE): Define.
1402         (TARGET_FUNCTION_ARG): Define.
1403         * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
1404         (FUNCTION_ARG): Delete.
1405         * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
1406         (function_arg): Delete prototype.
1408 2010-06-29  Nathan Froyd  <froydnj@codesourcery.com>
1410         * reginfo.c (init_reg_sets_1): Adjust comments.
1411         * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
1412         * calls.c (prepare_call_address): Likewise.
1413         (emit_call_1): Use targetm.calls.return_pops_args.
1414         (expand_call): Likewise.
1415         * function.c (assign_parms): Likewise.
1416         * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
1417         * target.h (struct gcc_target) [struct calls]: Add
1418         return_pops_args field.
1419         * targhooks.h (default_return_pops_args): Declare.
1420         * targhooks.c (default_return_pops_args): Define.
1421         * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
1422         (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
1423         * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
1424         (TARGET_RETURN_POPS_ARGS): ...this.  Use deftypefn.  Adjust
1425         documentation.
1426         * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
1427         * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
1428         * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
1429         * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
1430         * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
1431         * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
1432         * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
1433         * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
1434         * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
1435         * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
1436         * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
1437         * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
1438         * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
1439         * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
1440         * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
1441         * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
1442         * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
1443         * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
1444         * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
1445         * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
1446         * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
1447         * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
1448         * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
1449         * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
1450         * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
1451         * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
1452         * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
1453         * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
1454         * config/score/score.h (RETURN_POPS_ARGS): Likewise.
1455         * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
1456         * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
1457         * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
1458         * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
1459         * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
1460         * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
1461         * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
1462         * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
1463         * config/i386/i386.c (ix86_return_pops_args): Make static.
1464         Constify arguments.
1465         (TARGET_RETURN_POPS_ARGS): Define.
1466         * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
1467         * config/m68k/m68k.c (m68k_return_pops_args): ...here.  New function.
1468         (TARGET_RETURN_POPS_ARGS): Define.
1469         * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
1470         * config/vax/vax.c (vax_return_pops_args): ...here.  New function.
1471         (TARGET_RETURN_POPS_ARGS): Define.
1473 2010-06-29  Richard Guenther  <rguenther@suse.de>
1475         PR middle-end/44667
1476         * tree-inline.c (initialize_inlined_parameters): Make sure
1477         to remap the inlined parameter variable substitutions types.
1479 2010-06-29  Eric Botcazou  <ebotcazou@adacore.com>
1481         PR rtl-optimization/44659
1482         * combine.c (make_compound_operation) <SUBREG>: Do not return the
1483         result of force_to_mode if it partially re-expanded the compound.
1485 2010-06-28  Jan Hubicka  <jh@suse.cz>
1487         PR middle-end/44671
1488         * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
1489         RESULT_DECL.
1491 2010-06-28  Anatoly Sokolov  <aesok@post.ru>
1493         * double-int.h (force_fit_type_double): Remove declaration.
1494         * double-int.c (force_fit_type_double): Move to tree.c.
1495         * tree.h (force_fit_type_double): Declare.
1496         * tree.h (force_fit_type_double): Moved from double-int.c. Use
1497         double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
1498         double_int_to_tree instead of fit_double_type and build_int_cst_wide.
1499         * convert.c (convert_to_pointer): Adjust call to
1500         force_fit_type_double.
1501         * tree-vrp.c (extract_range_from_assert,
1502         extract_range_from_unary_expr): Adjust call to force_fit_type_double.
1503         * fold-const.c: Update comment.
1504         (int_const_binop, fold_convert_const_int_from_int,
1505         fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
1506         extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
1507         fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
1508         round_up_loc): Adjust call to force_fit_type_double.
1510 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1512         * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
1514 2010-06-28  Martin Jambor  <mjambor@suse.cz>
1516         * tree-sra.c (convert_callers): New parameter, change fndecls of
1517         recursive calls.
1518         (modify_function): Pass the old decl to convert_callers.
1520 2010-06-28  Martin Jambor  <mjambor@suse.cz>
1522         * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
1523         ipa_check_create_node_params and ipa_initialize_node_params with
1524         checking asserts they are not necessary.
1526 2010-06-28  Jan Hubicka  <jh@suse.cz>
1528         PR tree-optimization/44687
1529         * ipa-split.c (split_function): Use DECL_RESULT to store return value.
1531 2010-06-28  Martin Jambor  <mjambor@suse.cz>
1533         PR c++/44535
1534         * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
1535         (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
1536         instead of BINFO_BASE_BINFO.
1538 2010-06-28  Michael Matz  <matz@suse.de>
1540         PR middle-end/44592
1541         * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
1542         proper VDEF chain for intermediate stores in the sequence.
1544 2010-06-28  Jan Hubicka  <jh@suse.cz>
1546         PR tree-optimization/44357
1547         * ipa-inline.c (add_new_edges_to_heap): Do not add edges to uninlinable
1548         functions.
1550 2010-06-28  Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
1552         * config.gcc (powerpc*-*-*): Handle titan.
1553         * config/rs6000/rs6000.c (titan_cost): New costs.
1554         (rs6000_override_options): Add "titan" to processor_target_table.
1555         Add Titan to branch alignment logic.
1556         Correctly set rs6000_cost for titan.
1557         * config/rs6000/rs6000.md (cpu): Add titan.  Include "titan.md".
1558         * config/rs6000/titan.md: New file.
1559         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
1560         
1561 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
1563         * tree-browser.c (TB_history_stack): Convert to a VEC.
1564         (TB_SET_HEAD): Adjust for new type of TB_history_stack.
1565         (TB_history_prev): Likewise.
1567 2010-06-28  Nathan Froyd  <froydnj@codesourcery.com>
1569         * vec.h (vec_heap_free): Add parentheses around free.
1571 2010-06-28  Steven Bosscher  <steven@gcc.gnu.org>
1573         * system.h: Poison GCC_EXCEPT_H for front-end files.
1575         * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
1576         langhook.
1577         * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
1578         Define to NULL by default.
1579         * except.h: Define GCC_EXCEPT_H.
1580         (doing_eh): Remove prototype.
1581         (init_eh, init_eh_for_function): Move prototypes to toplev.h.
1582         (lang_protect_cleanup_actions): Remove.
1583         * except.c (lang_protect_cleanup_actions): Remove.
1584         (doing_eh): Remove.
1585         (gen_eh_region): Don't check doing_eh here.
1586         * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
1587         * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
1588         instead of lang_protect_cleanup_actions.
1589         * omp-low.c (maybe_catch_exception): Likewise.
1590         * Makefile.in: Update dependencies.
1592 2010-06-28  Bingfeng Mei  <bmei@broadcom.com>
1594         * cgraph.h (struct varpool_node): new used_from_object_file flag.
1595         (struct cgraph_local_info): new used_from_object_file flag.
1596         * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
1597         (cgraph_clone_node): initialize used_from_object_file.
1598         (cgraph_create_virtual_clone): initialize used_from_object_file.
1599         * lto-symbtab.c (lto_symtab_merge_decls_1): Set
1600         used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
1601         when compiling with -fwhole-program.
1602         (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
1603         internal resolver.
1604         * ipa.c (function_and_variable_visibility): Set externally_visible
1605         flag of varpool_node if used_from_object_file flag is set.
1606         (cgraph_externally_visible_p): check used_from_object_file flag.
1607         * doc/invoke.texi (-fwhole-program option): Change description of
1608         externally_visible attribute accordingly.
1609         * doc/extend.texi (externally_visible): Ditto.
1611 2010-06-27  Jan Hubicka  <jh@suse.cz>
1613         * params.def (max-inline-insns-auto): Default to 40.
1614         * doc/invoke.texi (max-inline-insns-auto): Document the change.
1616 2010-06-27  Jan Hubicka  <jh@suse.cz>
1618         PR middle-end/44671
1619         PR middle-end/44686
1620         * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
1621         signature change.
1622         * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
1623         * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
1625 2010-06-27  Anatoly Sokolov  <aesok@post.ru>
1627         * target.h (struct gcc_target): Add register_move_cost field.
1628         * target-def.h (TARGET_REGISTER_MOVE_COST): New.
1629         (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
1630         * targhooks.c (default_register_move_cost): New function.
1631         * targhooks.h (default_register_move_cost): Declare function.
1632         * defaults.h (REGISTER_MOVE_COST): Delete.
1633         * ira-int.h (ira_register_move_cost): Update comment.
1634         * ira.c: (ira_register_move_cost): Update comment.
1635         * reload.h (register_move_cost): Declare.
1636         * reginfo.c (register_move_cost): New function.
1637         (move_cost): Update comment.
1638         (init_move_cost, memory_move_secondary_cost): Replace
1639         REGISTER_MOVE_COST with register_move_cost.
1640         * postreload.c (reload_cse_simplify_set): (Ditto.).
1641         * reload.c (find_valid_class, find_reloads): (Ditto.).
1642         * reload1.c (choose_reload_regs): (Ditto.).
1643         * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
1644         (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
1645         * doc/md.texi (can_create_pseudo_p): Update documentation.
1647         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
1648         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
1649         * config/i386/i386.h (ix86_memory_move_cost): Make static.
1650         (TARGET_MEMORY_MOVE_COST): Define.
1652         * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
1653         * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
1654         * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
1655         (TARGET_MEMORY_MOVE_COST): Define.
1657 2010-06-27  Richard Guenther  <rguenther@suse.de>
1659         PR tree-optimization/44683
1660         * tree-ssa-dom.c (record_edge_info): Record equivalences for the
1661         false edge from the inverted condition.
1663 2010-06-27  Richard Guenther  <rguenther@suse.de>
1665         PR middle-end/44684
1666         * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
1667         (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
1668         for register LHS.  Or non-store assignments.
1670 2010-06-26  Eric Botcazou  <ebotcazou@adacore.com>
1672         * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
1673         (sparc_emit_set_const64): Likewise.  Remove disabled code.
1674         * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
1675         (sparc_emit_set_const64): Likewise.
1677 2010-06-26  Catherine Moore  <clm@codesourcery.com>
1679         * config/mips/mips.md (alu_type): New attribute.
1680         (type): Infer type from alu_type.
1681         (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
1682         *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
1683         *subsi3_extended, negsi2, negdi2, *low<mode>,
1684         *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
1685         xor<mode>3, *nor<mode>3,
1686         *zero_extend<GPR:mode>_trunc<SHORT:mode>,
1687         *zero_extendhi_truncqi):  Set alu_type instead of type.
1689 2010-06-26  Douglas B Rupp  <rupp@gnat.com>
1691         * config/alpha/alpha.c (alpha_need_linkage): Adjust
1692         splay_tree_new_ggc call.
1693         (alpha_use_linkage): Likewise.
1695 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
1697         * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
1698         * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
1699         * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
1700         (static_specs): Remove switches_need_spaces.
1701         (process_command, do_self_spec): Hardcode handling "-o" instead of
1702         checking switches_need_spaces.
1703         * system.h (SWITCHES_NEED_SPACES): Poison.
1705 2010-06-26  Richard Guenther  <rguenther@suse.de>
1707         PR tree-optimization/44393
1708         * tree-loop-distribution.c (generate_loops_for_partition): Fix
1709         stmt removal and VOP renaming.
1710         (generate_memset_zero): Remove redundant stmt updating.
1711         * tree-flow.h (mark_virtual_ops_in_bb): Remove.
1712         * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
1714 2010-06-26  Jan Hubicka  <jh@suse.cz>
1716         * ipa-split.c (consider_split): PHI in entry block is OK as long as all
1717         edges comming from header are equivalent.
1718         (visit_bb): Handle PHIs correctly.
1719         * tree-inline.c (copy_phis_for_bb): Be able to copy
1720         PHI from entry edge.
1721         (copy_cfg_body): Produce edge from entry BB before copying
1722         PHIs.
1724 2010-06-26  Richard Guenther  <rguenther@suse.de>
1726         PR middle-end/44674
1727         * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
1728         decls.  Handle LABEL_DECLs like FUNCTION_DECLs.
1730 2010-06-26  Joseph Myers  <joseph@codesourcery.com>
1732         * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
1733         add_infile, alloc_switch): New.
1734         (process_command): Remove variable lang_n_infiles.  Process
1735         options in a single pass.  Use new functions for allocating
1736         infiles and switches arrays.  Properly skip operands of
1737         -Xpreprocessor and -Xassembler.
1739 2010-06-26  Jan Hubicka  <jh@suse.cz>
1741         PR middle-end/44671
1742         * cgraphunit.c (cgraph_function_versioning): Remove wrong
1743         cgraph_make_decl_local call; fix typo copying RTL data.
1745 2010-06-25  DJ Delorie  <dj@redhat.com>
1747         * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
1748         (m32c_output_aligned_common): Likewise.
1749         * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
1750         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
1751         * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
1752         (m32c_register_pragmas): Register it.
1753         * config/m32c/m32c.c (m32c_get_pragma_address): New.
1754         (m32c_insert_attributes): Set #pragma address decls volatile.
1755         (pragma_entry_eq): New.
1756         (pragma_entry_hash): New.
1757         (m32c_note_pragma_address): New.
1758         (m32c_get_pragma_address): New.
1759         (m32c_output_aligned_common): New.
1760         * doc/extend.texi: Document the new pragma.
1762         * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
1763         also.
1764         * config/m32c/predicates.md (m32c_any_operand): Check the code
1765         instead of memory_operand so as to allow matching volatile MEMs.
1766         (m32c_nonimmediate_operand): Likewise.
1767         (mra_operand): Allow volatiles.
1769 2010-06-25  Alexandre Oliva  <aoliva@redhat.com>
1771         PR debug/44610
1772         * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
1773         address if the offset is unknown.
1775 2010-06-25  Douglas B Rupp  <rupp@gnat.com>
1777         * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
1778         * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
1779         * config/ia64/ia64-protos.h (ia64_start_function): Declare.
1780         * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
1781         to ia64_start_function. Invoke it.
1782         * config/ia64/ia64.c (ia64_start_function): Call new function
1783         dwarf2out_vms_debug_main_pointer.
1785 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
1787         * tree-if-conv.c (insert_gimplified_predicates): Do not insert
1788         statements computing the true predicate.
1790 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
1792         * tree-if-conv.c (init_bb_predicate): Initialize the predicate
1793         to boolean_true_node.
1794         (reset_bb_predicate): New.
1795         (predicate_bbs): Call reset_bb_predicate.
1797 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
1799         * tree-if-conv.c (combine_blocks): Remove FIXME comment.
1800         (tree_if_conversion): Returns true when something has been changed.
1801         (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
1802         changed something.
1804 2010-06-25  Sebastian Pop  <sebastian.pop@amd.com>
1806         * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
1807         * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
1808         * tree-if-conv.c: Include dbgcnt.h.
1809         (tree_if_conversion): Use if_conversion_tree to count the number of
1810         if-convertible loops.
1812 2010-06-25  Changpeng Fang  <changpeng.fang@amd.com>
1814         * common.opt (fprefetch-loop-arrays): Re-define
1815         -fprefetch-loop-arrays as a tri-state option with the initial
1816         value of -1.
1817         * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
1818         pass only when flag_prefetch_loop_arrays > 0.
1819         * toplev.c (process_options): Note that, with tri-states,
1820         flag_prefetch_loop_arrays>0 means prefetching is enabled.
1821         * config/i386/i386.c (override_options): Enable prefetching at -O3
1822         for a set of CPUs that sw prefetching is helpful.
1823         (software_prefetching_beneficial_p): New.  Return TRUE if software
1824         prefetching is beneficial for the given CPU.
1826 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
1828         PR rtl-optimization/44326
1829         * implicit-zee.c (find_removable_zero_extends): Replace
1830         INSN_P with NONDEBUG_INSN_P.
1832 2010-06-25  Martin Jambor  <mjambor@suse.cz>
1834         * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
1835         (struct ipa_node_params): Removed the modification_analysis_done flag.
1836         (ipa_is_param_modified): Removed.
1837         (ipa_analyze_node): Declare.
1838         (ipa_compute_jump_functions): Remove declaration.
1839         (ipa_count_arguments): Likewise.
1840         (ipa_detect_param_modifications): Likewise.
1841         (ipa_analyze_params_uses): Likewise.
1842         * ipa-prop.c (struct param_analysis_info): New type.
1843         (visit_store_addr_for_mod_analysis): Removed.
1844         (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
1845         moved down in the file.
1846         (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
1847         (ipa_count_arguments): Made static.
1848         (mark_modified): New function.
1849         (is_parm_modified_before_call): New function.
1850         (compute_pass_through_member_ptrs): New parameter parms_info, call
1851         is_parm_modified_before_call instead of ipa_is_param_modified.
1852         (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
1853         it to compute_pass_through_member_ptrs.
1854         (ipa_compute_jump_functions): New parameter parms_info, pass it to
1855         ipa_compute_jump_functions_for_edge.  Call ipa_initialize_node_params
1856         on the callee if it is analyzed.  Made static.
1857         (ipa_analyze_indirect_call_uses): New parameter parms_info, call
1858         is_parm_modified_before_call instead of ipa_is_param_modified.
1859         (ipa_analyze_call_uses): New parameter parms_info, pass it to
1860         ipa_analyze_indirect_call_uses.
1861         (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
1862         ipa_analyze_call_uses.
1863         (ipa_analyze_params_uses): New parameter parms_info, pass it to
1864         ipa_analyze_stmt_uses.  Also perform the used analysis.  Made static.
1865         (ipa_analyze_node): New function.
1866         (ipa_print_node_params): Do not dump the modified flag.
1867         (ipa_write_node_info): Assert uses_analysis_done rather than streaming
1868         it.  Do not stream the modified parameter flag.
1869         (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
1870         it.  Do not stream the modified parameter flag.
1871         * ipa-cp.c (ipcp_analyze_node): Removed.
1872         (ipcp_init_stage): Iterate only once over the nodes, analyze each one
1873         with only a call to ipa_analyze_node.
1874         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
1875         node with only a call to ipa_analyze_node.
1877 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1879         * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
1881 2010-06-25  Jan Hubicka  <jh@suse.cz>
1883         * tree-pass.h (pass_split_functions): Declare.
1884         * opts.c (decode_options): Enable function splitting at -O2
1885         * timevar.def (TV_IPA_FNSPLIT): New macro.
1886         * ipa-split.c: New file.
1887         * common.opt (-fpartial-inlining): New flag.
1888         * Makefile.in (ipa-split.o): New object file.
1889         * passes.c (init_optimization_passes): Add ipa-split.
1890         * params.def (partial-inlining-entry-probability): New parameters.
1891         * doc/invoke.texi (-fpartial-inlining): New.
1893 2010-06-25  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1895         PR 44665
1896         * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
1897         * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
1898         (gimplify_expr): Likewise.
1900 2010-06-25  Martin Jambor  <mjambor@suse.cz>
1902         * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
1903         statements instead of bailing out on them.
1904         (ipa_analyze_indirect_call_uses): Do not require that loads from the
1905         parameter are in the same BB as the condition.  Update comments.
1907 2010-06-25  Jakub Jelinek  <jakub@redhat.com>
1909         PR middle-end/43866
1910         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
1911         true or always false, return NULL_TREE.
1912         (tree_unswitch_single_loop): Optimize conditions even when reaching
1913         max-unswitch-level parameter.  If num > 0, optimize first all conditions
1914         using entry checks, then do still reachable block discovery and consider
1915         only conditions in still reachable basic blocks in the loop.
1917         PR tree-optimization/44539
1918         * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
1919         the call doesn't have LHS, but has VDEF.
1921 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
1923         * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
1924         * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
1925         * gcc.c (enum add_del, struct modify_target, modify_target):
1926         Remove.
1927         (process_command): Remove code conditional on MODIFY_TARGET_NAME.
1928         * system.h (MODIFY_TARGET_NAME): Poison.
1930 2010-06-25  Alan Modra  <amodra@gmail.com>
1932         * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
1933         * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
1934         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
1935         CMODEL_LARGE as default.
1936         * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
1937         (offsettable_ok_by_alignment): Delete.
1938         (rs6000_emit_move): Remove mcmodel=medium optimization.
1940 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
1942         With large parts from Jim Wilson:
1943         PR target/43902
1944         * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
1945         WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
1946         * optabs.c (optab_for_tree_code): Likewise.
1947         (expand_widen_pattern_expr): Likewise.
1948         * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
1949         out of execute_optimize_widening_mul.
1950         (convert_plusminus_to_widen): New function.
1951         (execute_optimize_widening_mul): Use the two new functions.
1952         * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
1953         Remove code to generate widening multiply-accumulate.  Add support
1954         for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
1955         * gimple-pretty-print.c (dump_ternary_rhs): New function.
1956         (dump_gimple_assign): Call it when appropriate.
1957         * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
1958         * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
1959         (expand_gimple_stmt_1): Likewise.
1960         (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
1961         WIDEN_MULT_MINUS_EXPR.
1962         * tree-ssa-operands.c (get_expr_operands): Likewise.
1963         * tree-inline.c (estimate_operator_cost): Likewise.
1964         * gimple.c (extract_ops_from_tree_1): Renamed from
1965         extract_ops_from_tree.  Add new arg for a third operand; fill it.
1966         (gimple_build_assign_stat): Support operations with three operands.
1967         (gimple_build_assign_with_ops_stat): Likewise.
1968         (gimple_assign_set_rhs_from_tree): Likewise.
1969         (gimple_assign_set_rhs_with_ops_1): Renamed from
1970         gimple_assign_set_rhs_with_ops.  Add new arg for a third operand.
1971         (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
1972         (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
1973         WIDEN_MULT_MINUS_EXPR.
1974         * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
1975         (extract_ops_from_tree_1): Adjust declaration.
1976         (gimple_assign_set_rhs_with_ops_1): Likewise.
1977         (gimple_build_assign_with_ops): Pass NULL for last operand.
1978         (gimple_build_assign_with_ops3): New macro.
1979         (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
1980         gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
1981         functions.
1982         * tree-cfg.c (verify_gimple_assign_ternary): New static function.
1983         (verify_gimple_assign): Call it.
1984         * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
1985         (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
1986         functions for dealing with three-operand statements.
1987         * tree.c (commutative_ternary_tree_code): New function.
1988         * tree.h (commutative_ternary_tree_code): Declare it.
1989         * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
1990         ternary statements.
1991         (gimple_assign_nonzero_warnv_p): Likewise.
1992         * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
1993         * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
1994         (ccp_fold): Use it.  Handle GIMPLE_TERNARY_RHS.
1995         * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
1996         (struct hashtable_expr): New member ternary in the union.
1997         (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
1998         (hashable_expr_equal_p): Fix indentation.  Handle EXPR_TERNARY.
1999         (iterative_hash_hashable_expr): Likewise.
2000         (print_expr_hash_elt): Handle EXPR_TERNARY.
2001         * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
2002         * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
2003         statements.  Handle GIMPLE_TERNARY_RHS.
2005 2010-06-25  Jan Hubicka  <jh@suse.cz>
2007         * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
2009 2010-06-25  Shujing Zhao  <pearly.zhao@oracle.com>
2011         PR c/44517
2012         * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
2013         parameters are not good.
2014         (c_parser_parameter_declaration): Error unknown type name if the type
2015         name can't start declaration specifiers.
2017 2010-06-25  Joseph Myers  <joseph@codesourcery.com>
2019         * gcc.c (translate_options): Don't mention +e in comment.
2020         (process_command): Don't handle +e specially.
2022 2010-06-25  Bernd Schmidt  <bernds@codesourcery.com>
2024         * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
2026         * ira-build.c (merge_hard_reg_conflicts): New function.
2027         (create_cap_allocno, copy_info_to_removed_store_destinations,
2028         propagate_some_info_from_allocno, propagate_allocno_info): Use it.
2029         (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
2030         (remove_unnecessary_allocnos, remove_low_level_allocnos)
2031         copy_nifo_to_removed_store_destination): Use them.
2032         * ira-lives.c (make_hard_regno_born): New function, split out of
2033         make_regno_born.
2034         (make_allocno_born): Likewise.
2035         (make_hard_regno_dead): New function, split out of make_regno_dead.
2036         (make_allocno_dead): Likewise.
2037         (inc_register_pressure): New function, split out of set_allocno_live.
2038         (dec_register_pressure): New function, split out of clear_allocno_live.
2039         (mark_pseudo_regno_live): New function, split out of mark_reg_live.
2040         (mark_hard_reg_live): Likewise.  Use inc_register_pressure.
2041         (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
2042         (mark_hard_reg_dead): Likewise.  Use dec_register_pressure.
2043         (make_pseudo_conflict): Use mark_pseudo_regno_dead and
2044         mark_pseudo_regno_live.
2045         (process_bb_node_lives): Use mark_pseudo_regno_live,
2046         make_hard_regno_born and make_allocno_dead.
2047         (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
2048         set_allocno_live, clear_allocno_live): Delete functions.
2050         * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
2051         * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
2052         functions.
2053         (ira_flattening): Use ira_parent_allocno.
2054         * ira-conflicts.c (process_regs_for_copy, propagate_copies)
2055         build_allocno_conflicts): Use ira_parent_or_cap_allocno.
2057         * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
2058         statement.
2060         * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
2061         TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
2062         minmax_set_iter_cond, minmax_set_iter_next,
2063         FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
2064         CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
2065         ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
2066         ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET.  All
2067         uses changed.
2069         * ira-int.h (struct live_range, live_range_t): Renamed from struct
2070         ira_allocno_live_range and allocno_live_range_t; all uses changed.
2071         * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
2072         All uses changed.
2074 2010-06-24  Richard Earnshaw  <rearnsha@arm.com>
2076         * thumb2.md (thumb2_tlobits_cbranch): Delete.
2077         (peephole2 to convert zero_extract/compare of single bit to
2078          lshift/compare): New.
2080 2010-06-24  Anatoly Sokolov  <aesok@post.ru>
2082         * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
2083         recursive call and call to 'int_const_binop'.
2084         (build_range_check, fold_cond_expr_with_comparison, unextend,
2085         fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
2086         multiple_of_p): Adjust call to const_binop.
2088 2010-06-24  Uros Bizjak  <ubizjak@gmail.com>
2090         * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
2091         determine size of XFmode operand.
2092         (XFmode extended DFmode push splitter): Ditto.
2093         (XFmode extended SFmode push splitter): Ditto.
2095 2010-06-24  H.J. Lu  <hongjiu.lu@intel.com>
2097         PR target/44588
2098         * config/i386/i386.md (extract_code): New.
2099         (<u>divmodqi4): Likewise.
2100         (divmodhiqi3): Likewise.
2101         (udivmodhiqi3): Likewise.
2102         (<u>divqi3): Remvoved.
2104 2010-06-24  Jakub Jelinek  <jakub@redhat.com>
2106         PR middle-end/44492
2107         * recog.h (struct recog_data): Add is_asm field.
2108         * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
2109         present in constraints of inline-asm operand and memory operand
2110         contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
2111         (extract_insn): Initialize recog_data.is_asm.
2112         * doc/md.texi (Constraints): Document operand side-effect rules.
2114 2010-06-24  Andi Kleen  <ak@linux.intel.com>
2116         * c-parser.c (c_parser_conditional_expression): Call
2117         warn_for_omitted_condop.
2118         * doc/invoke.texi: Document omitted condop warning.
2120 2010-06-24  Nick Clifton<nickc@redhat.com>
2122         * loop-unswitch.c (compare_and_jump_seq): Assert that the last
2123         insn in the sequence is a jump insn before setting its label.
2125 2010-06-24  Alan Modra  <amodra@gmail.com>
2127         * collect2.c (main): Match exactly --version and --help.
2129 2010-06-24  DJ Delorie  <dj@redhat.com>
2131         * config/m32c/m32c-pragma.c: Don't include rtl.h.
2133 2010-06-23  Uros Bizjak  <ubizjak@gmail.com>
2135         * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
2136         using X87MODEF mode iterator.
2137         (pushsf splitter): Macroize splitter using P mode iterator.
2138         (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
2139         mode iterator.
2141         (*movxf_internal): Rename from *movxf_integer.
2142         (*movxf_internal_nointeger): Rename from *movxf_nointeger.
2143         (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
2144         (*movdf_internal): Rename from *movdf_integer.
2145         (*movdf_internal_nointeger): Rename from *movdf_nointeger.
2146         (*movsf_internal): Rename from *movdf_1.
2148 2010-06-23  Basile Starynkevitch  <basile@starynkevitch.net>
2150         * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
2151         (const_gimple_seq_node): Removed typedefs.
2153         * gimple.h: (gimple_seq_node_d, gimple_seq_node)
2154         (const_gimple_seq_node): Added typedefs moved from coretypes.h.
2156 2010-06-23  H.J. Lu  <hongjiu.lu@intel.com>
2158         * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
2159         CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
2160         CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
2161         and CODE_FOR_vec_extract_lo_v4df.
2163         * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
2164         Changed to define_insn_and_split.
2165         (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
2166         (vec_extract_lo_v16hi): Likewise.
2167         (vec_extract_lo_v32qi): Likewise.
2168         (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
2169         (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
2171 2010-06-23  Joern Rennecke  <joern.rennecke@embecosm.com>
2173         PR target/44640
2174         * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
2175         * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
2176         (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
2177         (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
2178         (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
2180         PR target/44640
2181         * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
2183         PR other/44644
2184         * df-core.c (struct df): Rename to df_d.
2185         * df.h (struct df): Likewise.
2186         * dse.h (struct df): Remove forward declaration.
2187         * recog.h (struct insn_data): Rename to:
2188         (struct_insn_data_d).  Adjusted all users.
2190 2010-06-23  Arnaud Charlet  <charlet@adacore.com
2192         PR ada/22220
2193         * doc/install.texi: Update requirements to build GNAT.
2195 2010-06-22  Andreas Schwab  <schwab@linux-m68k.org>
2197         * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
2198         enum type.
2199         (m68k_sched_attr_opx_type): Remove unreachable return.
2200         (m68k_sched_attr_opy_type): Likewise.
2201         (m68k_sched_attr_size): Likewise.
2202         (sched_get_opxy_mem_type): Likewise.
2203         (m68k_sched_attr_op_mem): Likewise.
2205 2010-06-22  Eric Botcazou  <ebotcazou@adacore.com>
2207         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
2208         new statement and adjust VDEF only if necessary.  Remove superfluous
2209         call to maybe_clean_or_replace_eh_stmt.
2210         * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
2211         copy the flags.
2212         * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
2213         * tree-inline.c (copy_bb): ...and not there.
2215 2010-06-22  Cary Coutant  <ccoutant@google.com>
2217         * dwarf2out.c (is_nested_in_subprogram): New function.
2218         (should_move_die_to_comdat): Use it.
2219         (copy_ancestor_tree): Don't mark DIEs here.
2220         (copy_decls_walk): Start walk from root of newly-added tree;
2221         mark DIEs here instead.
2223 2010-06-22  H.J. Lu  <hongjiu.lu@intel.com>
2225         * config/i386/i386.md (unit): Also check sseishft1.
2227 2010-06-22  Jan Hubicka  <jh@suse.cz>
2229         * gimple.h (gimple_expr_code): Do checking on when gimple checking is
2230         enabled.
2232 2010-06-22  Jan Hubicka  <jh@suse.cz>
2234         * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
2235         df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
2236         Return true if something changed.
2237         * df.h (df_confluence_function_n): Return bool.
2238         * df-core.c (df_worklist_propagate_forward,
2239         df_worklist_propagate_backward): Track changes and ages.
2240         (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
2241         track ages.
2242         * dse.c (dse_confluence_n): Return always true.
2244 2010-06-22  Jan Hubicka  <jh@suse.cz>
2246         * bitmap.c (bitmap_clear_bit): Micro optimize.
2248 2010-06-22  Uros Bizjak  <ubizjak@gmail.com>
2250         * config/i386/i386.md (SWI1248x): New mode iterator.
2251         (SWI48x): Ditto.
2252         (SWI12): Ditto.
2253         (SWI24): Ditto.
2255         (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
2256         SWI1248x mode iterator.
2257         (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
2258         using SWI124 mode iterator.
2259         (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
2260         mode iterator.
2261         (*push<mode>2_prologue): Macroize insn from  *pushsi2_prologue and
2262         *pushdi2_prologue_rex64 using P mode iterator.
2263         (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
2264         using SWI48 mode iterator.
2265         (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
2266         (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
2267         using SWI1248x mode iterator.
2268         (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
2269         (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
2270         SWI48 mode iterator.
2271         (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
2272         iterator.
2273         (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
2274         (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
2275         SWI12 mode iterator.
2276         (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
2277         SWI12 mode iterator.
2278         (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
2279         (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
2280         SWI24 mode iterator.
2281         (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
2282         SWI48 mode iterator.
2283         (mov<mode>_insn_1): New expander.
2284         (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
2285         using SWI48x mode iterator.
2287         (*movoi_internal_avx): Rename from *movoi_internal.
2288         (*movti_internal_rex64): Rename from *movti_rex64.
2289         (*movti_internal_sse): Rename from *movti_sse.
2290         (*movdi_internal_rex64): Rename from *movdi_1_rex64.
2291         (*movdi_internal): Rename from *movdi_2.
2292         (*movsi_internal): Rename from *movsi_1.
2293         (*movhi_internal): Rename from *movhi_1.
2294         (*movqi_internal): Rename from *movqi_1.
2296         (insv): Update the call to gen_movsi_insv_1 for rename.
2297         * config/i386/i386.c (promote_duplicated_reg): Ditto.
2299 2010-06-22  Jan Hubicka  <jh@suse.cz>
2301         * passes.c (execute_function_todo): Move call of statistics_fini_pass
2302         to ...
2303         (execute_todo) ... this one.
2305 2010-06-22  Alan Modra  <amodra@gmail.com>
2307         PR target/44364
2308         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
2309         * caller-save.c (insert_restore, insert_save): Use non-validate
2310         form of adjust_address.
2312 2010-06-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2314         PR target/39690
2315         * config/pa/pa.c (override_options): Disable
2316         -freorder-blocks-and-partition.
2318 2010-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2320         PR target/44615
2321         * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
2323         * config/i386/i386.md (type): Add sseishft1
2325         * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
2326         (ppro_insn_load): Likewise.
2327         (ppro_insn_store): Likewise.
2328         (ppro_insn_both): Likewise.
2330         * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
2331         (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
2332         for type.
2333         (*vec_extractv2di_1_avx): Likewise.
2334         (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
2335         type.  Remove atom_unit.
2336         (*vec_extractv2di_1_sse2): Likewise.
2338 2010-06-21  DJ Delorie  <dj@redhat.com>
2340         * diagnostic.h (diagnostic_classification_change_t): New.
2341         (diagnostic_context): Add history and push/pop list.
2342         (diagnostic_push_diagnostics): Declare.
2343         (diagnostic_pop_diagnostics): Declare.
2344         * diagnostic.c (diagnostic_classify_diagnostic): Store changes
2345         from pragmas in a history chain instead of the global table.
2346         (diagnostic_push_diagnostics): New.
2347         (diagnostic_pop_diagnostics): New.
2348         (diagnostic_report_diagnostic): Scan history chain to find state
2349         of diagnostics as of the diagnostic location.
2350         * opts.c (set_option): Pass UNKNOWN_LOCATION to
2351         diagnostic_classify_diagnostic.
2352         (enable_warning_as_error): Likewise.
2353         * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
2354         use in the history chain.
2355         * doc/extend.texi: Document pragma GCC diagnostic changes.
2357 2010-06-21  Jakub Jelinek  <jakub@redhat.com>
2359         * dwarf2out.c (add_linkage_name): New function.  Don't add
2360         anything to DW_TAG_member DIEs.
2361         (add_name_and_src_coords_attributes): Use it.
2362         (gen_variable_die): Call it for C++ static data members if
2363         specification is DW_TAG_member.
2365         * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
2366         C++ char16_t and char32_t.
2368         * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
2369         * genattrtab.c: Include vecprim.h.
2370         (cached_attrs, cached_attr_count, attrs_seen_once,
2371         attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
2372         attrs_cached_after): New variables.
2373         (find_attrs_to_cache): New function.
2374         (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
2375         (write_test_expr): Add attrs_cached argument, return it too,
2376         attempt to cache non-const attributes used more than once in
2377         a single case handling.
2378         (write_attr_get): Use find_attrs_to_cache, for caching candidates
2379         emit cached_* variables.  Adjust write_attr_set callers.
2380         (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
2381         to find attributes that should be cached in this block.  Adjust
2382         write_test_expr callers.
2383         (write_attr_case): Clear attrs_to_cache.  Adjust write_attr_set
2384         callers.
2385         (make_automaton_attrs): Adjust write_test_expr caller.
2387         * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
2388         * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
2389         (make_automaton_attrs): If find_tune_attr returns non-NULL,
2390         write separate internal_dfa_insn_code_* and insn_default_latency_*
2391         functions for each attribute's value and emit init_sched_attrs
2392         function and function pointers.
2393         * genattr.c (const_attrs, reservations): New variables.
2394         (gen_attr): Add const attributes to const_attrs vector.
2395         (check_tune_attr, find_tune_attr): New functions.
2396         (main): Add reservations to reservations vector.  If find_tune_attr
2397         returns true, add prototype for init_sched_attrs and make
2398         internal_dfa_insn_code and insn_default_latency function pointers,
2399         otherwise define init_sched_attrs as dummy macro.
2400         * cfgexpand.c: Include insn-attr.h.
2401         (gimple_expand_cfg): Call init_sched_attrs.
2403         * stmt.c (resolve_asm_operand_names): Fix handling of %%.
2405         PR target/44575
2406         * config/i386/i386.c (ix86_gimplify_va_arg): When copying
2407         va_arg from a set of register save slots into a temporary,
2408         if the container is bigger than type size, do the copying
2409         using smaller mode or using memcpy.
2411         PR bootstrap/44426
2412         * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
2413         prototype.
2414         (sel_print_to_dot): Remove macro.
2415         (sel_print): Likewise.  New prototype.
2416         * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
2417         (sel_print): New function.
2419 2010-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2421         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
2422         __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
2424 2010-06-21  Nick Clifton  <nickc@redhat.com>
2426         * config/rx/rx.h (PTRDIFF_TYPE): Define.
2427         (SMALL_REGISTER_CLASS): Define (to zero).
2428         (PRINT_OPERAND): Delete.
2429         (PRINT_OPERAND_ADDRESS): Delete.
2430         * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
2431         (rx_print_operand_address): Delete prototype.
2432         * config/rx/rx.c (rx_print_operand): Make static.
2433         Allow %H and %L to handle CONST_DOUBLEs.
2434         (rx_print_operand_address): Make static.
2435         (rx_gen_move_template): Rename local variable 'template' to
2436         out_template.
2437         (rx_function_arg): Do not pass unknown sized objects in registers.
2438         (TARGET_PRINT_OPERAND): Define.
2439         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2441 2010-06-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2443         * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
2445 2010-06-21  Kai Tietz  <kai.tietz@onevision.com>
2447         * config/i386/i386.c (ix86_compute_frame_layout): Avoid
2448         stack-alignment for simple leaf-functions.
2450 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
2452         * doc/install.texi: Document bootstrap-lto.
2454 2010-06-20  Alexandre Oliva  <aoliva@redhat.com>
2456         PR debug/44248
2457         * lto-streamer-in.c (input_bb): Leave debug stmts alone.
2458         (input_function): Drop them here, if VTA is disabled.
2460 2010-06-20  Uros Bizjak  <ubizjak@gmail.com>
2462         PR target/44546
2463         * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
2464         New predicate.
2465         * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
2466         ix86_swapped_fp_comparsion_operator instead of
2467         ix86_fp_comparison_operator.
2469         (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
2470         (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
2471         (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
2472         (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
2473         (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
2474         (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
2476 2010-06-20  Joseph Myers  <joseph@codesourcery.com>
2478         PR other/32998
2479         * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
2480         OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
2481         * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
2482         (decode_cmdline_option): Update for this return value.  Set
2483         orig_option_with_args_text field.  Set arg field for unknown
2484         options.  Make static.
2485         (decode_cmdline_options_to_array): New.
2486         (prune_options): Update handling of find_opt return value.
2487         * opts.c (read_cmdline_option): Take decoded option.  Return void.
2488         (read_cmdline_options): Take decoded options.
2489         (decode_options): Add parameters for decoded options.  Use
2490         decode_cmdline_options_to_array.  Use decoded options for -O
2491         scan.  Use integral_argument for -O parameters.  Update call to
2492         read_cmdline_options.
2493         (enable_warning_as_error): Update handling of find_opt return value.
2494         * opts.h: Update comment on unknown options.
2495         (struct cl_decoded_option): Update comments on opt_index and arg.
2496         Add orig_option_with_args_text.
2497         (decode_cmdline_option): Remove.
2498         (decode_cmdline_options_to_array): Declare.
2499         (decode_options): Update prototype.
2500         * toplev.c (save_argv): Remove.
2501         (save_decoded_options, save_decoded_options_count): New.
2502         (read_integral_parameter): Remove.
2503         (print_switch_values): Use decoded options.
2504         (toplev_main): Don't set save_argv.  Update call to decode_options.
2505         * toplev.h (read_integral_parameter): Remove.
2506         * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
2508 2010-06-19  Richard Earnshaw  <rearnsha@arm.com>
2510         PR target/44072
2511         * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
2512         immediate.
2513         * constraints.md (Pw, Px): New constraints.
2514         * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
2516 2010-06-19  H.J. Lu  <hongjiu.lu@intel.com>
2518         * config/i386/sse.md (fma4modesuffixf4): Removed.
2519         (ssemodesuffixf2s): Likewise.
2520         (ssemodesuffixf4): Likewise.
2521         (ssemodesuffixf2c): Likewise.
2522         (ssescalarmodesuffix2s): Likewise.
2523         (avxmodesuffixf2c): Likewise.
2524         (ssemodesuffix): New.
2525         (ssescalarmodesuffix): Likewise.
2526         Update patterns with ssemodesuffix and ssescalarmodesuffix.
2528 2010-06-19  Philip Herron  <herron.philip@googlemail.com>
2530         * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
2532 2010-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2534         * stor-layout.c (debug_rli): Remove unused local variables.
2536 2010-06-18  Eric Botcazou  <ebotcazou@adacore.com>
2538         PR rtl-optimization/40900
2539         * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line.  Save the
2540         original expression for later reuse.
2541         <expand_decl_rtl>: Use promote_function_mode to compute the signedness
2542         of the promoted RTL for a SSA_NAME on the LHS of a call statement.
2544 2010-06-18  Anatoly Sokolov  <aesok@post.ru>
2546         * double-int.h (double_int_to_shwi, double_int_to_uhwi,
2547         double_int_fits_in_uhwi_p): Implement as static inline.
2548         (double_int_xor): New inline function.
2549         (double_int_lrotate, double_int_rrotate, double_int_max,
2550         double_int_umax, double_int_smax, double_int_min, double_int_umin,
2551         double_int_smin): Declare.
2552         (lrotate_double, rrotate_double): Remove declaration.
2553         * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
2554         double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
2555         (double_int_lrotate, double_int_rrotate, double_int_max,
2556         double_int_umax, double_int_smax, double_int_min, double_int_umin,
2557         double_int_smin): New function.
2558         * fold-const.c (int_const_binop): Clean up, use double_int_*
2559         functions.
2560         * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
2561         double_int_* and immed_double_int_const functions.
2563 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
2565         * function.h (types_used_by_cur_var_decl): Change type to a VEC.
2566         * function.c (types_used_by_cur_var_decl): Likewise.
2567         (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
2569 2010-06-18  Nathan Froyd  <froydnj@codesourcery.com>
2571         * tree.h (record_layout_info): Change type of pending_statics field
2572         to a VEC.
2573         * stor-layout.c (start_record_layout): Store NULL into
2574         pending_statics.
2575         (debug_rli): Call debug_vec_tree instead of debug_tree.
2576         (place_field): Likewise.
2577         (finish_record_layout): Likewise.
2579 2010-06-18  Alan Modra  <amodra@gmail.com>
2581         * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
2583 2010-06-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2585         PR target/43740
2586         * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
2587         for SET source operand from SET destination operand.
2589 2010-06-17  Bernd Schmidt  <bernds@codesourcery.com>
2591         PR rtl-optimization/39871
2592         * reload1.c (init_eliminable_invariants): For flag_pic, disable
2593         equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
2594         (function_invariant_p): Rule out a plus of frame or arg pointer with
2595         a SYMBOL_REF.
2596         * ira.c (find_reg_equiv_invariant_const): Likewise.
2598 2010-06-17  Gunther Nikl  <gnikl@users.sourceforge.net>
2600         * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
2601         print_operand_address and puts to output the operand for CONST.
2603 2010-06-17  Jakub Jelinek  <jakub@redhat.com>
2605         PR debug/44572
2606         * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
2607         hook.
2609 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2611         * v850-protos.h (print_operand): Delete.
2612         (print_operand_address): Delete.
2613         * v850.h (PRINT_OPERAND): Delete.
2614         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2615         (PRINT_OPERAND_ADDRESS): Delete.
2616         * v850.c (print_operand_address): Rename to...
2617         (v850_print_operand_address): ...this.  Make static. Call
2618         v850_print_operand.
2619         (print_operand): Rename to...
2620         (v850_print_operand): ...this.  Make static.  Call
2621         v850_print_operand_address.
2622         (v850_print_operand_punct_valid_p): New function.
2623         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2624         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2626 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2628         * config/sh/sh-protos.h (print_operand): Delete.
2629         (print_operand_address): Delete.
2630         * config/sh/sh.h (PRINT_OPERAND): Delete.
2631         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2632         (PRINT_OPERAND_ADDRESS): Delete.
2633         * config/sh/sh.c (sh_print_operand_address): Make static.
2634         (sh_print_operand): Make static.  Call sh_print_operand_address
2635         and sh_print_operand.
2636         (sh_print_operand_punct_valid_p): New function.
2637         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2638         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2640 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2642         * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
2643         (mcore_print_operand_address): Delete.
2644         * config/mcore/mcore.h (PRINT_OPERAND): Delete.
2645         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2646         (PRINT_OPERAND_ADDRESS): Delete.
2647         * config/mcore/mcore.c (mcore_print_operand_address): Make static.
2648         (mcore_print_operand): Make static.
2649         (mcore_print_operand_punct_valid_p): New function.
2650         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
2651         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2653 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2655         * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
2656         (print_operand_address): Delete.
2657         * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
2658         (PRINT_OPERAND_ADDRESS): Delete.
2659         * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
2660         static.
2661         (m68hc11_print_operand): Make static.
2662         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2664 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2666         * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
2667         (m32r_print_operand_address): Delete.
2668         * config/m32r/m32r.h (m32r_punct_chars): Delete.
2669         (PRINT_OPERAND): Delete.
2670         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2671         (PRINT_OPERAND_ADDRESS): Delete.
2672         * config/m32r/m32r.c (m32r_punct_chars): Make static.
2673         (m32r_print_operand_address): Make static.
2674         (m32r_print_operand): Make static.
2675         (m32r_print_operand_punct_valid_p): New function.
2676         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2677         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2679 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2681         * config/iq2000/iq2000-protos.h (print_operand): Delete.
2682         (print_operand_address): Delete.
2683         * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
2684         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2685         (PRINT_OPERAND_ADDRESS): Delete.
2686         (iq2000_print_operand_punct): Delete.
2687         * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
2688         (iq2000_print_operand_address): Make static.
2689         (iq2000_print_operand): Make static.
2690         (iq2000_print_operand_punct_valid_p): New function.
2691         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2692         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2694 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2696         * config/frv/frv-protos.h (frv_print_operand): Delete.
2697         (frv_print_operand_address): Delete.
2698         * config/frv/frv.h (PRINT_OPERAND): Delete.
2699         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2700         (PRINT_OPERAND_ADDRESS): Delete.
2701         * config/frv/frv.c (frv_print_operand_address): Make static.
2702         (frv_print_operand): Make static.
2703         (frv_print_operand_punct_valid_p): New function.
2704         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2705         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2707 2010-06-17  Nathan Froyd  <froydnj@codesourcery.com>
2709         * tree.h (vec_member): Declare.
2710         * tree.c (vec_member): Define.
2712 2010-06-17  Richard Guenther  <rguenther@suse.de>
2714         * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
2715         * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
2717 2010-06-17  Richard Guenther  <rguenther@suse.de>
2719         * tree-inline.c (declare_return_variable): Remove bogus code.
2721 2010-06-17  Richard Guenther  <rguenther@suse.de>
2723         * gimplify.c (gimplify_bind_expr): Always promote complex
2724         and vector variables to registers if possible.
2726 2010-06-17  Richard Guenther  <rguenther@suse.de>
2728         * expr.c (get_inner_reference): Use double_int for bit_offset
2729         calculation.
2731 2010-06-16  DJ Delorie  <dj@redhat.com>
2733         * common.opt (-fstrict-volatile-bitfields): new.
2734         * doc/invoke.texi: Document it.
2735         * fold-const.c (optimize_bit_field_compare): For volatile
2736         bitfields, use the field's type to determine the mode, not the
2737         field's size.
2738         * expr.c (expand_assignment): Likewise.
2739         (get_inner_reference): Likewise.
2740         (expand_expr_real_1): Likewise.
2741         * expmed.c (store_fixed_bit_field): Likewise.
2742         (extract_bit_field_1): Likewise.
2743         (extract_fixed_bit_field): Likewise.
2745 2010-06-16  Richard Guenther  <rguenther@suse.de>
2747         * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
2749 2010-06-16  Douglas B Rupp  <rupp@gnat.com>
2751         * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
2752         (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
2753         * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
2754         * debug.c: Likewise.
2755         * sdbout.c: Likewise.
2756         * vmsdbgout.c: Likewise.
2757         * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
2758         * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
2759         * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
2760         (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
2761         * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
2762         * dwarf2out.c (dw_fde_struct): New fields
2763         dw_fde_vms_{end,begin}_prologue.
2764         (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
2765         (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
2766         (dwarf2out_vms_end_prologue): New function.
2767         (dwarf2out_vms_begin_epilogue): New function.
2768         (dw_val_struct): New value dw_val_class_vms_delta.
2769         (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
2770         begin_epilogue for VMS.
2771         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
2772         new static functions.
2773         (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
2774         (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
2775         static functions.
2776         (print_die): New case dw_val_class_vms_delta.
2777         (attr_checksum): Likewise.
2778         (same_dw_val_p: Likewise.
2779         (size_of_die): Likewise.
2780         (value_format): Likewise.
2781         (output_die): Likewise.
2782         (gen_subprogram_die): Call add_AT_vms_delta on VMS.
2783         (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
2784         * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
2785         dwarf2out_cfi_begin_epilogue
2786         * final.c (final_scan_insn): Likewise. Call begin_epilogue.
2788 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
2790         * config/cris/cris-protos.h (cris_print_operand): Delete.
2791         (cris_print_operand_address): Delete.
2792         * config/cris/cris.h (PRINT_OPERAND): Delete.
2793         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2794         (PRINT_OPERAND_ADDRESS): Delete.
2795         * config/cris/cris.c (cris_print_operand_address): Make static.
2796         (cris_print_operand): Make static.
2797         (cris_print_operand_punct_valid_p): New function.
2798         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2799         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2801 2010-06-16  Nathan Froyd  <froydnj@codesourcery.com>
2803         * config/arm/arm-protos.h (arm_print_operand): Delete.
2804         (arm_print_operand_address): Delete.
2805         * config/arm/arm.h (PRINT_OPERAND): Delete.
2806         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2807         (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
2808         (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
2809         * config/arm/arm.c (arm_print_operand_address): ...here.  New function.
2810         (arm_print_operand): Make static.
2811         (arm_print_operand_punct_valid_p): New function.
2812         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2813         (TARGET_PRINT_OPERAND_ADDRESS): Define.
2815 2010-06-16  Nick Clifton  <nickc@redhat.com>
2817         * config/rx/constraints.md (NEGint4): New constraint.
2818         * config/rx/rx.md (attr cc): Add set_zsc.
2819         (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
2820         initialised.
2821         (cmpsf): Likewise.
2822         (call_internal): Clobber the cc0 register.
2823         (call_value_internal): Likewise.
2824         (cstoresi4): Likewise.
2825         (movsieq): Likewise.
2826         (movsine): Likewise.
2827         (addsi3): Add alternative to handle small negative constants.
2828         (sunsi3): Likewise.
2829         (addsi3): Do not set the O bit in the cc0 register.
2830         (adddi3): Likewise.
2831         (subsi3): Likewise.
2832         (subdi3): Likewise.
2833         (andsi3): Reorder alternatives to prefer shorter forms.
2834         (mulsi3): Likewise.
2835         (iorsi3): Likewise.
2836         (negsi2): Note that the cc0 flags are set.
2837         (rotlsi3): Note that only the Z and S bits are set in cc0.
2838         (lshrsi3): Likewise.
2839         (ashlsi3): Likewise.
2840         (subsf3): Use %Q for the MEM operand.
2841         (fix_truncsfsi2): Likewise.
2842         (floatsisf2): Likewise.
2843         (bitset): Remove early clobber from destination.
2844         (bitset_in_memory): Likewise.
2845         (lrintsf2): Clobber the cc0 register.
2846         * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
2847         (rx_print_operand): Handle %N.
2849 2010-06-16  Jan Hubicka  <jh@suse.cz>
2851         * df-core.c (df_compact_blocks): Free problem_temps vector.
2853 2010-06-16  Martin Jambor  <mjambor@suse.cz>
2855         PR tree-optimization/43905
2856         * tree-sra.c: Include tree-inline.h.
2857         (create_abstract_origin): Removed.
2858         (modify_function): Version the call graph node instead of creating
2859         abstract origins and dealing with same_body aliases.
2860         * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
2861         function is versionable.
2862         * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
2864 2010-06-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
2866         * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
2867         (CHOOSE_DYNAMIC_LINKER): Update.
2869 2010-06-15  Uros Bizjak  <ubizjak@gmail.com>
2871         * config/i386/i386.c (*prefetch_sse_<mode>):  Macroize insn from
2872         *prefetch_sse and *prefetch_sse_rex using P mode iterator.
2873         (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
2874         *prefetch_3dnow_rex.
2876 2010-06-15  Anatoly Sokolov  <aesok@post.ru>
2878         * target.h (struct asm_out):Add declare_constant_name field.
2879         * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
2880         (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
2881         * output.h (default_asm_declare_constant_name): Declare.
2882         (assemble_label): Update prototype.
2883         * varasm.c (assemble_constant_contents): Use
2884         targetm.asm_out.declare_constant_name target hook.
2885         (assemble_label): Add 'file' argument.
2886         (default_asm_declare_constant_name): New function.
2887         * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
2888         * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
2889         (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
2891         * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
2892         * config/darwin.c (darwin_asm_declare_constant_name): New function.
2893         (machopic_output_indirection): Update assemble_label argument list.
2894         * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
2895         (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
2897 2010-06-15  Sebastian Pop  <sebastian.pop@amd.com>
2899         PR middle-end/44391
2900         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
2901         size_one_node for pointer types.  Do not call gmp_cst_to_tree.
2903 2010-06-15  Richard Guenther  <rguenther@suse.de>
2905         * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
2907 2010-06-15  Paul Brook  <paul@codesourcery.com>
2909         * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
2910         hard-float ABI.
2912 2010-06-15  Alexandre Oliva  <aoliva@redhat.com>
2914         * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
2915         don't get a vector type for output.
2917 2010-06-15  Jakub Jelinek  <jakub@redhat.com>
2919         PR fortran/44536
2920         * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
2921         * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
2922         (LANG_HOOKS_DECLS): Add it.
2923         * gimplify.c (omp_notice_variable): Call
2924         lang_hooks.decls.omp_report_decl.
2926 2010-06-15  Martin Jambor  <mjambor@suse.cz>
2928         PR lto/44464
2929         * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
2930         on the newly dead SSA name.
2932 2010-06-15  Alan Modra  <amodra@gmail.com>
2934         * doc/invoke.texi: Add mcmodel to powerpc options.
2935         * configure.ac: Add HAVE_LD_LARGE_TOC test.
2936         * configure: Regenerate.
2937         * config.in: Regenerate.
2938         * config/rs6000/linux64.opt (mcmodel): New.
2939         * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
2940         (TARGET_CMODEL, SET_CMODEL): Define.
2941         (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
2942         select CMODEL_MEDIUM default.
2943         * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
2944         (TARGET_CMODEL): Define default.
2945         * config/rs6000/rs6000.c (cmodel): New variable.
2946         (rs6000_explicit_options): Add cmodel field.
2947         (rs6000_handle_option): Handle -mcmodel.
2948         (create_TOC_reference): Add largetoc_reg param.  Generate high,
2949         lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE.  Update all callers.
2950         (rs6000_delegitimize_address): Recognise new toc reference rtl
2951         and minimal-toc rtl.
2952         (rs6000_legitimize_reload_address): Handle new toc references.
2953         (print_operand_address): Handle legitimate_constant_pool_address_p
2954         match before lo_sum.
2955         (rs6000_eliminate_indexed_memrefs): Tidy.
2956         (rs6000_emit_move): Tweak threshold for inlining constants.
2957         Keep rs6000_emit_allocate_stack large stack frame offsets
2958         loaded into r0 inline.
2959         (rs6000_generate_compare <cmptf_internal2>): One more clobber.
2960         (tocrel_base, tocrel_offset): New variables.
2961         (toc_relative_expr_p): Set them here.
2962         (print_operand_address): Skip over any offset on constant pool address.
2963         (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
2964         (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
2965         (offsettable_ok_by_alignment): New function.
2966         (rs6000_emit_move): Address suitably aligned local symbol_refs
2967         relative to the toc pointer for -mcmodel=medium.
2968         (legitimate_constant_pool_address_p): Make param const_rtx.  Add
2969         strict param.  Allow lo_sum version of addressing.  Verify reg
2970         used for -mminimal-toc and -mcmodel != small.  Update all callers.
2971         * config/rs6000/constraints.md: Update for above change.
2972         * config/rs6000/predicates.md: Likewise.
2973         * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
2974         code.
2975         (tls_gd): Split for -mcmodel=medium/large.
2976         (tls_gd_high, tls_gd_low): New.
2977         (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
2978         (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
2979         (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
2980         (largetoc_high, largetoc_low): New.
2981         (cmptf_internal2): Add clobber.
2982         * config/rs6000/rs6000-protos.h: Update.
2984 2010-06-14  Changpeng Fang  <changpeng.fang@amd.com>
2986         * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New.  Return
2987         true if no prefetch is going to be generated for a given group.
2988         (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
2989         estimate the prefetch_count.
2990         (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
2991         prefetch count by considering the unroll_factor and prefetch_mod
2992         for is_loop_prefetching_profitable.
2994 2010-06-14  Andreas Schwab  <schwab@linux-m68k.org>
2996         * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
2997         anything if the argument is not a MEM.
2999 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
3001         PR debug/43650
3002         PR debug/44181
3003         PR debug/44247
3004         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
3005         debug stmts.
3006         (canonicalize_loop_ivs): Likewise.
3008 2010-06-14  Alexandre Oliva  <aoliva@redhat.com>
3010         PR debug/43656
3011         * haifa-sched.c (setup_insn_reg_pressure_info,
3012         update_register_pressure): Reject debug insns.
3013         (ready_sort): Don't setup reg pressure for debug insns.
3014         (schedule_insn): Don't update reg pressure for debug insns.
3016 2010-06-14  Richard Guenther  <rguenther@suse.de>
3018         * lto-streamer.c (cached_bp): Remove.
3019         (bitpack_delete): Likewise.
3020         (bitpack_create): Likewise.
3021         (bp_get_next_word): Likewise.
3022         (bp_pack_value, bp_unpack_value): Move ...
3023         * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
3024         Re-implement.
3025         (struct bitpack_d): Likewise.
3026         (bitpack_create, lto_output_bitpack, lto_input_bitpack):
3027         New inline functions.
3028         * lto-streamer-out.c (lto_output_bitpack): Remove.
3029         (pack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
3030         (pack_value_fields): Adjust.
3031         (lto_write_tree): Likewise.
3032         (output_gimple_stmt): Likewise.
3033         (output_function): Likewise.
3034         * lto-streamer-in.c (input_gimple_stmt): Adjust.
3035         (input_function): Likewise.
3036         (unpack_ts_base_value_fields): Adjust.  Avoid conditional bitpacking.
3037         (lto_input_bitpack): Remove.
3038         (lto_materialize_tree): Adjust.
3039         * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
3040         * lto-cgraph.c (lto_output_edge): Adjust.
3041         (lto_output_node): Likewise.
3042         (lto_output_varpool_node): Likewise.
3043         (lto_output_ref): Likewise.
3044         (input_node): Likewise.
3045         (input_varpool_node): Likewise.
3046         (input_ref): Likewise.
3047         (input_edge): Likewise.
3048         (output_node_opt_summary): Likewise.
3049         (input_node_opt_summary): Likewise.
3050         * ipa-pure-const.c (pure_const_write_summary): Likewise.
3051         (pure_const_read_summary): Likewise.
3052         * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
3053         (ipa_read_indirect_edge_info): Likewise.
3054         (ipa_write_node_info): Likewise.
3055         (ipa_read_node_info): Likewise.
3057 2010-06-14  H.J. Lu  <hongjiu.lu@intel.com>
3059         PR target/44534
3060         * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
3061         (vec_extract_lo_v16hi): Likewise.
3062         (vec_extract_lo_v32qi): Likewise.
3064 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
3066         PR bootstrap/44426
3067         * tree.h (build_call_expr): Don't define as vararg macro, instead
3068         add a prototype.
3069         * builtins.c (build_call_nofold): Remove.
3070         (expand_builtin_int_roundingfn, expand_builtin_pow,
3071         expand_builtin_mempcpy_args, expand_builtin_stpcpy,
3072         expand_builtin_memset_args, expand_builtin_strcmp,
3073         expand_builtin_strncmp, expand_builtin_memory_chk): Use
3074         build_call_nofold_loc instead of build_call_nofold.
3075         (build_call_expr): New function.
3077         PR tree-optimization/44508
3078         * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
3079         * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
3080         don't eliminate trivially dead stmts.
3081         * tree-vrp.c (vrp_finalize): Pass false as last argument
3082         to substitute_and_fold.
3083         * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
3084         to substitute_and_fold.
3085         * tree-ssa-ccp.c (ccp_finalize): Likewise.
3087         PR bootstrap/44509
3088         * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
3090 2010-06-14  Ira Rosen  <irar@il.ibm.com>
3092         PR tree-optimization/44507
3093         * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
3094         to build initial vector for BIT_AND_EXPR.
3095         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3097 2010-06-14  Jakub Jelinek  <jakub@redhat.com>
3099         * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
3100         adjust z10prop set_attr.
3102 2010-06-13  Jan Hubicka  <jh@suse.cz>
3104         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
3105         bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
3106         bitmap_ior_into, bitmap_xor, bitmap_xor_into,
3107         bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
3108         datastructure checks into checking asserts.
3109         * rtlanal.c (find_reg_note): Use gcc_checking_assert.
3110         * tree-ssa-sccvn.c (VN_INFO): Likewise.
3111         * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
3112         df_ref_create_structure): Likewise.
3113         * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
3114         pool_free): Use gcc_checking_assert.
3115         * alias.c (get_alias_set): Likewise.
3116         * var-tracking.c (variable_htab_free, shared_hash_copy,
3117         canonicalize_values_mark, variable_merge_over_cur): Likewise.
3118         * lto-streamer.c (bp_unpack_value): Likewise.
3120 2010-06-13  Richard Guenther  <rguenther@suse.de>
3122         * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
3123         Do not stream but initialize TYPE_CANONICAL to NULL.
3124         (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
3125         * gimple.c (gimple_types_compatible_p): Disregard
3126         TYPE_STRUCTURAL_EQUALITY_P.
3127         (gimple_register_type): Use TYPE_CANONICAL as cache.
3128         * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
3129         before registering common types.
3130         * config/i386/i386.c (ix86_function_arg_boundary): Do not
3131         use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
3132         * tree.h (TYPE_CANONICAL): Clarify documentation.
3134 2010-06-13  Anatoly Sokolov  <aesok@post.ru>
3136         * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3137         LIBCALL_VALUE): Remove macros.
3138         * config/ia64/ia64-protos.h (ia64_function_value): Remove.
3139         * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3140         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3141         (ia64_libcall_value, ia64_function_value_regno_p): New functions.
3142         (ia64_function_value): Make static. Handle receiving the function
3143         type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
3145 2010-06-12  Jan Hubicka  <jh@suse.cz>
3147         * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
3148         at correct place.
3150 2010-06-12  Bernd Schmidt  <bernds@codesourcery.com>
3152         * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
3154 2010-06-12  Jan Hubicka  <jh@suse.cz>
3156         * df-core.c (df_clear_bb_info): New function.
3157         (df_set_blocks): bb_info is always allocated.
3158         (df_get_bb_info): Use block_info_elt_size.
3159         (df_set_bb_info): Likewise.
3160         (df_compact_blocks): Update for new block_info.
3161         (grow_bb_info): New function.
3162         * df-problems.c (df_grow_bb_info): Move to df-core.c
3163         (df_rd_set_bb_info): Remove.
3164         (df_rd_free_bb_info): Do not free block pool.
3165         (df_rd_alloc): Do not create pool, use check for
3166         obstack presence instead of NULL pointer for new blocks.
3167         (df_rd_free): DO not free alloc pool; clear block_info.
3168         (problem_RD): Add size of block info structure.
3169         (df_lr_set_bb_info): Remove.
3170         (df_lr_free_bb_info): Do not free block pool.
3171         (df_lr_alloc): Do not create pool, use check for
3172         obstack presence instead of NULL pointer for new blocks.
3173         (df_lr_free): DO not free alloc pool; clear block_info.
3174         (problem_LR): Add size of block info structure.
3175         (df_live_set_bb_info): Remove.
3176         (df_live_free_bb_info): Do not free block pool.
3177         (df_live_alloc): Do not create pool, use check for
3178         obstack presence instead of NULL pointer for new blocks.
3179         (df_live_free): DO not free alloc pool; clear block_info.
3180         (problem_LIVE): Add size of block info structure.
3181         (problem_CHAIN): Add size of block info structure.
3182         (df_byte_lr_set_bb_info): Remove.
3183         (df_byte_lr_free_bb_info): Do not free block pool.
3184         (df_byte_lr_alloc): Do not create pool, use check for
3185         obstack presence instead of NULL pointer for new blocks.
3186         (df_byte_lr_free): DO not free alloc pool; clear block_info.
3187         (problem_BYTE_LR): Add size of block info structure.
3188         (problem_NOTE): Add size of block info structure.
3189         (df_byte_MD_set_bb_info): Remove.
3190         (df_byte_MD_free_bb_info): Do not free block pool.
3191         (df_byte_MD_alloc): Do not create pool, use check for
3192         obstack presence instead of NULL pointer for new blocks.
3193         (df_byte_MD_free): DO not free alloc pool; clear block_info.
3194         (problem_BD): Add size of block info structure.
3195         * df-scan.c (df_scan_free_internal): Free block pool.
3196         (df_scan_set_bb_info): Remove.
3197         (df_scan_free_bb_info): Check for artificial_defs instead
3198         of bb_info being non-NULL.
3199         (df_scan_alloc): DO not create df_scan_block pool.
3200         (problem_SCAN): Set size of block info.
3201         (df_bb_refs_record): Do not allocate bb_info.
3202         * df.h (df_problem): Add block_info_elt_size.
3203         (struct dataflow): Change block_info to void *.
3204         (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
3205         df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
3206         in-line structures.
3208 2010-06-12  Jan Hubicka  <jh@suse.cz>
3210         PR tree-optimize/44485
3211         * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
3212         containing use of return value of noreturn function.
3214 2010-06-12  Anatoly Sokolov  <aesok@post.ru>
3216         * targhooks.c (default_function_value): Don't use
3217         FUNCTION_OUTGOING_VALUE.
3218         * system.h (FUNCTION_OUTGOING_VALUE): Poison.
3219         * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
3221 2010-06-12  Kazu Hirata  <kazu@codesourcery.com>
3223         * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
3224         Add crtfastmath.o to extra_parts.
3225         * config/mips/crtfastmath.c: New.
3226         * config/mips/linux.h (ENDFILE_SPEC): New.
3228 2010-06-12  Sebastian Pop  <sebastian.pop@amd.com>
3230         * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
3231         old_type in parameter.
3232         (gcc_type_for_value): Update call to gcc_type_for_interval.
3233         (compute_type_for_level_1): Renamed compute_type_for_level.
3234         Update call to gcc_type_for_interval.
3236 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
3238         * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
3239         flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
3241 2010-06-11  Joseph Myers  <joseph@codesourcery.com>
3243         * opts-common.c: Include options.h.
3244         (integral_argument): Move from opts.c.
3245         (decode_cmdline_option): New.  Based on read_cmdline_option.
3246         * opts.c (integral_argument): Move to opts-common.c.
3247         (read_cmdline_option): Move most contents to
3248         decode_cmdline_option.  Use %qs in diagnostics.
3249         * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
3250         CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
3251         decode_cmdline_option): New.
3253 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
3255         PR target/44481
3256         * config/i386/i386.md (UNSPEC_PARITY): New unspec.
3257         (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
3258         (partiysi2_cmp): Ditto.
3259         (*partiyhi2_cmp): Ditto.
3260         (*parityqi2_cmp): Remove.
3262 2010-06-11  Jan Hubicka  <jh@suse.cz>
3264         * bitmap.h (bmp_iter_next_bit): New.
3265         (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
3267 2010-06-11  Sandra Loosemore  <sandra@codesourcery.com>
3268             Eric Botcazou  <ebotcazou@adacore.com>
3270         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
3271         computed cost.
3273 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
3275         * config/i386/i386.md (unspec): New define_c_enum.
3276         (unspecv): Ditto.
3278 2010-06-10  Jakub Jelinek  <jakub@redhat.com>
3280         * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
3282 2010-06-11  Sebastian Pop  <sebastian.pop@amd.com>
3284         PR middle-end/44483
3285         * tree-if-conv.c (bb_predicate_s): New struct.
3286         (bb_predicate_p): New.
3287         (bb_has_predicate): New.
3288         (bb_predicate): New.
3289         (set_bb_predicate): New.
3290         (bb_predicate_gimplified_stmts): New.
3291         (set_bb_predicate_gimplified_stmts): New.
3292         (add_bb_predicate_gimplified_stmts): New.
3293         (init_bb_predicate): New.
3294         (free_bb_predicate): New.
3295         (is_predicated): Use bb_predicate.
3296         (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
3297         (predicate_bbs): Same.  Gimplify the condition of the basic blocks
3298         before processing their successors.
3299         (clean_predicate_lists): Removed.
3300         (find_phi_replacement_condition): Use bb_predicate.
3301         (process_phi_nodes): Renamed ifconvert_phi_nodes.  Avoid useless
3302         computations.
3303         (insert_gimplified_predicates): New.
3304         (combine_blocks): Call insert_gimplified_predicates.
3305         (tree_if_conversion): Call free_bb_predicate instead of
3306         clean_predicate_lists.
3308 2010-10-11  Paul Brook  <paul@codesourcery.com>
3310         * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
3311         * config/arm/arm.c (all_architectures): Change v7e-m default to
3312         cortexm4.
3313         * config/arm/arm-cores.def: Add cortex-m4.
3314         * config/arm/arm-tune.md: Regenerate.
3316 2010-06-11  Jan Hubicka  <jh@suse.cz>
3318         * ipa-pure-const.c (special_builtlin_state): New function.
3319         (check_call): Use it instead of special casign BUILT_IN_RETURN.
3320         (propagate_pure_const): Use it.
3322 2010-06-11  Jan Hubicka  <jh@suse.cz>
3324         * df-problems.c (df_live_scratch): Convert to bitmap_head.
3325         (df_live_alloc): Initialize df_live_scratch when initializing
3326         problem_data.
3327         (df_live_transfer_function): Update uses of df_live_scratch.
3328         (df_live_free): Free problem_data; clear df_live_scratch before
3329         releasing the obstack.
3330         (df_md_free): Free problem data.
3332 2010-06-11  Jan Hubicka  <jh@suse.cz>
3334         * doc/invoke.texi (Wsuggest-attribute): Document.
3335         (Wmissing-noreturn): Remove.
3336         * ipa-pure-const.c (warn_function_noreturn): New function.
3337         * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
3338         warn_missing_noreturn.
3339         * common.opt (Wsuggest-attribute=noreturn): New.
3340         * tree-flow.h (warn_function_noreturn): Declare.
3341         * tree-cfg.c (execute_warn_function_noreturn): Use
3342         warn_function_noreturn.
3343         (gate_warn_function_noreturn): New.
3344         (pass_warn_function_noreturn): Update.
3346 2010-06-11  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3348         * c-typeck.c (handle_warn_cast_qual): Add loc
3349         parameter. Improve warning message.
3350         (build_c_cast): Pass location to handle_warn_cast_qual.
3352 2010-06-11  Uros Bizjak  <ubizjak@gmail.com>
3354         * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
3355         that operand 0 == operand 1.  Use x86_maybe_negate_const_int to output
3356         insn mnemonic.
3357         (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
3359 2010-06-10  Dodji Seketeli  <dodji@redhat.com>
3361         Fix bootstap on mips
3362         * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
3363         be naming typedefs.
3365 2010-06-11  Kai Tietz  <kai.tietz@onevision.com>
3367         * system.h (helper_const_non_const_cast): New inline for
3368         gcc version <= 4.0.
3369         (CONST_CAST2): For gcc version <= 4.0 use
3370         new helper to do const/non-const casting.
3372 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3374         * doc/md.texi: Document the "unspec" and "unspecv" enum names.
3375         * Makefile.in (OBJS-common): Include insn-enums.o.
3376         (insn-enums.o): New rule.
3377         (simple_generated_c): Add insn-enums.c.
3378         (build/genenums.o): New rule.
3379         (genprogmd): Add "enums".
3380         * genconstants.c (print_enum_type): Declare a C string array
3381         for each enum.
3382         * genenums.c: New file.
3383         * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
3384         for UNSPEC_VOLATILE.  If defined, use the "unspec" enum for both
3385         UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
3387 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3389         * doc/md.texi (define_enum_attr): Document.
3390         * rtl.def (DEFINE_ENUM_ATTR): New rtx.
3391         * read-md.h (lookup_enum_type): Declare.
3392         * read-md.c (lookup_enum_type): New function.
3393         * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
3394         * genattrtab.c (attr_desc): Add an enum_name field.
3395         (evaluate_eq_attr): Take the associated attribute as argument.
3396         Get the enum prefix from the enum_name field, if defined.
3397         Use ACONCAT rather than a fixed-length buffer.  Update recursive calls.
3398         (simplify_test_exp): Pass attr to evaluate_eq_attr.
3399         (add_attr_value): New function, split out from...
3400         (gen_attr): ...here.  Handle DEFINE_ENUM_ATTR.
3401         (write_test_expr): Pass attr to evaluate_eq_attr.
3402         (write_attr_get): Use the enum_name as the enum tag, if defined.
3403         (write_attr_valueq): Use the enum_name as a prefix, if defined.
3404         (find_attr): Initialize enum_name.
3405         (main): Handle DEFINE_ENUM_ATTR.
3406         * gensupport.c (process_rtx): Likewise.
3407         * config/mips/mips.h (mips_tune_attr): Delete.
3408         * config/mips/mips.md (cpu): Use define_attr_enum.
3410 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3412         * doc/md.texi (define_c_enum, define_enum): Document.
3413         * read-md.h (md_constant): Add a parent_enum field.
3414         (enum_value, enum_type): New structures.
3415         (upcase_string, traverse_enum_types): Declare.
3416         * read-md.c (enum_types): New variable.
3417         (upcase_string, add_constant): New functions.
3418         (handle_constants): Don't create the hash table here.
3419         Use add_constant.
3420         (traverse_md_constants): Don't check for a null md_constants.
3421         (decimal_string, handle_enum, traverse_enum_types): New functions.
3422         (read_md_files): Initialize md_constants and md_enums.
3423         * genconstants.c (print_md_constant): Ignore info argument.
3424         Only print constants that belong to no enum.
3425         (print_enum_type): New function.
3426         (main): Don't pass stdout to print_md_constant.  Call print_enum_type
3427         for each defined enum type.
3428         * config/mips/mips.md (processor): New define_enum.
3429         (unspec): New define_c_enum.
3430         (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
3431         (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
3432         (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
3433         (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
3434         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
3435         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
3436         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
3437         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
3438         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
3439         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
3440         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
3441         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
3442         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
3443         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
3444         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
3445         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
3446         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
3447         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
3448         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
3449         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
3450         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
3451         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
3452         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
3453         (UNSPEC_RDDSP): Move to mips-dsp.md.
3454         (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
3455         (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
3456         (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
3457         (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
3458         (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
3459         (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
3460         (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
3461         (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
3462         (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
3463         (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
3464         (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
3465         (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
3466         (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
3467         Moved to mips-dspr2.md.
3468         (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
3469         (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
3470         (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
3471         (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
3472         (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
3473         (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
3474         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
3475         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
3476         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
3477         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
3478         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
3479         UNSPEC_LOONGSON_PSADBH)
3480         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
3481         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
3482         (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
3483         (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3484         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3485         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3486         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
3487         (cpu): Update comment.
3488         * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
3489         (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
3490         (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
3491         (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
3492         * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
3493         UNSPEC_LOONGSON_PCMPEQ)
3494         (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
3495         UNSPEC_LOONGSON_PINSR_0)
3496         (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
3497         (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
3498         (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
3499         (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
3500         (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
3501         UNSPEC_LOONGSON_PSADBH)
3502         (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
3503         (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
3504         (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
3505         * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3506         (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3507         (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3508         (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
3509         * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
3510         (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
3511         (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
3512         (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
3513         (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
3514         (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
3515         (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
3516         (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
3517         (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
3518         (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
3519         (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
3520         (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
3521         (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
3522         (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
3523         (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
3524         (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
3525         (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
3526         (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
3527         (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
3528         (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
3529         (UNSPEC_RDDSP): Moved from mips.md.
3530         * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
3531         (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
3532         (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
3533         (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
3534         (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
3535         (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
3536         (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
3537         (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
3538         (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
3539         (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
3540         (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
3541         (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
3542         (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
3543         (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
3544         * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
3545         (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
3546         (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
3547         (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
3548         (UNSPEC_SCC): Moved from mips.md.
3549         * config/mips/mips.c (mips_arch, mips_tune): Change enum from
3550         "processor_type" to "processor".
3551         (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
3552         * config/mips/mips.h (processor_type): Delete.
3553         (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
3554         "processor_type" to "processor".
3556 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3558         * configure.ac (tm_include_list): Add insn-constants.h.
3559         * configure: Regenerate.
3560         * Makefile.in (GTM_H): Move insn-constants.h here from...
3561         (TM_H): ...here.
3562         * mkconfig.sh: Remove special handling for insn-constants.h.
3564 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3566         * Makefile.in (BUILD_RTL): Move build/read-md.o to...
3567         (BUILD_MD): ...this new variable.
3568         (simple_generated_rtl_h, simple_generated_rtl_c): New variables
3569         that include the old contents of simple_generated_h and
3570         simple_generated_c.
3571         (simple_generated_h, simple_generated_c): Include them.  Add
3572         insn-constants.h.
3573         (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
3574         and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
3575         Remove these dependencies from the main rule and include
3576         insn-conditions.md in the command line only if it appears
3577         in the dependency list.
3578         (insn-constants.h, s-constants): Delete.
3579         (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
3580         or gensupport.h.
3581         (build/genmddeps.o): Likewise.
3582         (genprogrtl): New variable that contains everything from genprogmd
3583         except mddeps and constants.
3584         (genprogmd): Redefine in terms of genprogrtl.  Make these programs
3585         depend on $(BUILD_MD)
3586         (genprog): New variable.  Make these programs depend on
3587         $(BUILD_ERRORS).
3588         * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
3589         (main): Use read_md_files instead of init_rtx_reader_args.
3590         * genconstants.c: As for genmddeps.c.
3591         * read-md.h (read_skip_construct): Declare.
3592         * read-md.c (read_skip_construct): New function.
3593         (handle_file): Allow a null handle_directive, skipping the
3594         construct if so.
3595         (parse_include): Update the comment accordingly.
3597 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3599         * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
3600         * genmddeps.c: Include read-md.h.
3601         (main): Call init_rtx_reader_args instead of init_md_reader_args.
3602         * genattr.c (main): Likewise.
3603         * genattrtab.c (main): Likewise.
3604         * genautomata.c (main): Likewise.
3605         * gencodes.c (main): Likewise.
3606         * genconditions.c (main): Likewise.
3607         * genconfig.c (main): Likewise.
3608         * genconstants.c (main): Likewise.
3609         * genemit.c (main): Likewise.
3610         * genextract.c (main): Likewise.
3611         * genflags.c (main): Likewise.
3612         * genopinit.c (main): Likewise.
3613         * genoutput.c (main): Likewise.
3614         * genpeep.c (main): Likewise.
3615         * genrecog.c (main): Likewise.
3616         * genpreds.c (main): Likewise.
3617         * gensupport.h (in_fname): Move to read-md.h.
3618         (init_md_reader_args_cb): Rename to...
3619         (init_rtx_reader_args_cb): ...this and return a bool.
3620         (init_md_reader_args): Rename to...
3621         (init_rtx_reader_args): ...this and return a bool.
3622         (include_callback): Move to read-md.h.
3623         * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
3624         (file_name_list, first_dir_md_include): Move to read-md.c
3625         (first_bracket_include): Delete unused variable.
3626         (last_dir_md_include): Move to read-md.c.
3627         (process_include): Delete, moving code to read-md.c:handle_include.
3628         (process_rtx): Don't handle INCLUDE.
3629         (save_string): Delete.
3630         (rtx_handle_directive): New function.
3631         (init_md_reader_args_cb): Rename to...
3632         (init_rtx_reader_args_cb): ...this and return a boolean success value.
3633         Use read_md_args.
3634         (init_md_reader_args): Rename to...
3635         (init_rtx_reader_args): ...this and return a boolean success value.
3636         * rtl.def (INCLUDE): Delete.
3637         * rtl.h (read_rtx): Remove "int *" argument.  Add "const char *"
3638         argument.
3639         * read-rtl.c (read_conditions): Don't gobble ')' here.
3640         (read_mapping): Likewise.
3641         (read_rtx): Remove LINENO argument.  Add RTX_NAME argument.
3642         Handle top-level non-rtx constructs here rather than in read_rtx_1.
3643         Store the whole queue in *X.  Remove call to init_md_reader.
3644         (read_rtx_1): Rename to...
3645         (read_rtx_code): ...this.  Call read_nested_rtx to read subrtxes.
3646         Don't handle top-level non-rtx constructs here.  Don't handle (nil)
3647         here.
3648         (read_nested_rtx): New function.  Handle (nil) here rather than
3649         in read_rtx_code.
3650         (read_rtx_variadic): Call read_nested_rtx to read subrtxes.  Don't
3651         gobble ')' here.
3652         * read-md.h (directive_handler_t): New type.
3653         (in_fname, include_callback): Moved from read-md.h.
3654         (read_constants, init_md_reader): Delete.
3655         (read_md_files): Declare.
3656         * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
3657         (last_dir_md_include_ptr, include_callback, max_include_len): Moved
3658         from gensupport.c.
3659         (read_constants): Rename to...
3660         (handle_constants): ...this.  Don't gobble ')' here.
3661         (handle_include, handle_file, handle_toplevel_file)
3662         (parse_include): New functions, mostly taken from gensupport.c.
3663         (init_md_reader): Subsume into...
3664         (read_md_files): ...this new function.
3666 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3668         * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
3669         (unread_char): Decrement read_md_lineno after putting back '\n'.
3670         * read-md.c (fatal_with_file_and_line): Push back any characters
3671         that we decide not to add to the context.
3672         (read_skip_spaces): Don't increment read_md_lineno here.  Avoid using
3673         fatal_expected_char in cases where '/' ends a line (for example).
3674         (read_name): Don't increment read_md_lineno here.
3675         (read_escape): Likewise.
3676         (read_quoted_string): Likewise.
3677         (read_braced_string): Likewise.
3679 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3681         * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
3682         (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
3683         * genconstants.c: Include read-md.h.
3684         * read-rtl.c (md_constants): Move to read-md.c.
3685         (md_name): Move to read-md.h.
3686         (initialize_iterators): Use leading_string_hash instead of def_hash
3687         and leading_string_eq_p instead of def_name_eq_p.
3688         (read_name): Move to read-md.c.
3689         (def_hash, def_name_eq_p): Delete.
3690         (read_constants, traverse_md_constants): Move to read-md.c.
3691         * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
3692         * read-md.h: Include hashtab.h.
3693         (md_name): Moved from read-rtl.c.
3694         (md_constant): Moved from read-md.h.
3695         (leading_string_hash, leading_string_eq_p, read_name)
3696         (read_constants, traverse_md_constants): Declare.
3697         * read-md.c (md_constants): Moved from read-rtl.c.
3698         (leading_string_hash, leading_string_eq_p): New functions.
3699         (read_name, read_constants, traverse_md_constants): Moved from
3700         read-rtl.c.
3702 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3704         * read-rtl.c (md_name): New structure.
3705         (read_name): Take an md_name instead of a buffer pointer.
3706         Use the "string" field instead of strcpy when expanding constants.
3707         (read_constants): Remove the tmp_char argument.  Update the calls
3708         to read_name, using two local name buffers instead of the tmp_char
3709         argument.  Merge the constant-creation code.
3710         (read_conditions): Remove the tmp_char argument.  Update the calls
3711         to read_name, using a local name buffer instead of the tmp_char
3712         argument.
3713         (read_mapping): Replace tmp_char variable with a local name buffer.
3714         Update the calls to read_name.
3715         (read_rtx_1): Likewise.  Update the calls to read_constants and
3716         read_conditions.
3718 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3720         * Makefile.in (build/read-md.o): Depend on errors.h.
3721         * read-md.h (error_with_line): Declare.
3722         * read-md.c: Include errors.h.
3723         (message_with_line_1): New function, extracted from...
3724         (message_with_line): ...here.
3725         (error_with_line): New function.
3726         * genattrtab.c: If a call to message_with_line is followed by
3727         "have_error = 1;", replace both statements with a call to
3728         error_with_line.
3729         * genoutput.c: Likewise.
3730         * genpreds.c: Likewise.
3731         * genrecog.c: If a call to message_with_line is followed by
3732         "error_count++;", replace both statements with a call to
3733         error_with_line.
3734         (errorcount): Delete.
3735         (main): Don't check it.
3736         * gensupport.c: If a call to message_with_line is followed by
3737         "errors = 1;", replace both statements with a call to error_with_line.
3738         (errors): Delete.
3739         (process_define_cond_exec): Check have_error instead of errors.
3740         (init_md_reader_args_cb): Likewise.  Don't set errors.
3742 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3744         * read-md.h (read_md_file): Declare.
3745         (read_char, unread_char): New functions.
3746         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
3747         (read_quoted_string, read_string): Remove FILE * argument.
3748         * read-md.c (read_md_file): New variable.
3749         (read_md_filename, read_md_lineno): Update comments and remove
3750         unnecessary initialization.
3751         (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
3752         (read_escape, read_quoted_string, read_braced_string, read_string):
3753         Remove FILE * argument.  Update calls accordingly, using read_char
3754         and unread_char instead of getc and ungetc.
3755         * rtl.h (read_rtx): Remove FILE * argument.
3756         * read-rtl.c (iterator_group): Remove FILE * argument from
3757         "find_builtin".
3758         (iterator_traverse_data): Remove "infile" field.
3759         (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
3760         (add_mapping, read_name, read_constants, read_conditions)
3761         (validate_const_int, find_iterator, read_mapping, check_code_iterator)
3762         (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
3763         Remove file arguments from all calls, using read_char and unread_char
3764         instead of getc and ungetc.
3765         * gensupport.c (process_include): Preserve read_md_file around
3766         the include.  Set read_md_file to the handle of the included file.
3767         Update call to read_rtx.
3768         (init_md_reader_args_cb): Set read_md_file to the handle of the file
3769         and remove local FILE *.  Update calls to read_rtx.
3771 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3773         * read-md.h (read_rtx_lineno): Rename to...
3774         (read_md_lineno): ...this.
3775         (read_rtx_filename): Rename to...
3776         (read_md_filename): ...this.
3777         (copy_rtx_ptr_loc): Rename to...
3778         (copy_md_ptr_loc): ...this.
3779         (print_rtx_ptr_loc): Rename to...
3780         (print_md_ptr_loc): ...this.
3781         * read-md.c: Likewise.  Update references after renaming.
3782         (string_obstack): Replace RTL with MD in comment.
3783         (set_rtx_ptr_loc): Rename to...
3784         (set_md_ptr_loc): ...this.
3785         (get_rtx_ptr_loc): Rename to...
3786         (get_md_ptr_loc): ...this.
3787         * genconditions.c: Update references after renaming.
3788         * genemit.c: Likewise.
3789         * genoutput.c: Likewise.
3790         * genpreds.c: Likewise.
3791         * gensupport.c: Likewise.
3792         * read-rtl.c: Likewise.
3794 2010-06-10  Richard Sandiford  <rdsandiford@googlemail.com>
3796         * Makefile.in (READ_MD_H): New variable.
3797         (BUILD_RTL): Add build/read-md.o.
3798         (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
3799         (build/gensupport.o, build/read-rtl.o, build/genattr.o)
3800         (build/genattrtab.o, build/genconditions.o build/genemit.o)
3801         (build/genextract.o, build/genflags.o, build/genoutput.o)
3802         (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
3803         (build/read-md.o): New rule.
3804         * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
3805         (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
3806         * coretypes.h: ...here.
3807         * lto-wrapper.c: Include coretypes.h instead of defaults.h.
3808         * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
3809         * genattr.c: Include read-md.h.
3810         * genattrtab.c: Likewise.
3811         * genconditions.c: Likewise.
3812         * genemit.c: Likewise.
3813         * genextract.c: Likewise.
3814         * genflags.c: Likewise.
3815         * genoutput.c: Likewise.
3816         * genpreds.c: Likewise.
3817         * genrecog.c: Likewise.
3818         * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
3819         (join_c_conditions, print_c_condition, read_rtx_filename)
3820         (read_rtx_lineno): Move to read-md.h.
3821         * read-rtl.c: Include read-md.h.
3822         (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
3823         (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
3824         (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
3825         (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
3826         (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
3827         (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
3828         (read_braced_string, read_string): Move to read-md.c.
3829         (read_rtx): Move some initialization to init_md_reader and call
3830         init_md_reader here.
3831         * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
3832         Move to read-md.h.
3833         * gensupport.c: Include read-md.h.
3834         (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
3835         * read-md.h, read-md.c: New files.
3837 2010-06-10  Anatoly Sokolov  <aesok@post.ru>
3839         * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
3840         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
3841         * config/moxie/moxie-protos.h (moxie_function_value): Remove.
3842         * config/moxie/moxie.c (moxie_function_value): Make static.
3843         (moxie_libcall_value, moxie_function_value_regno_p): New functions.
3844         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
3846 2010-06-10  Martin Jambor  <mjambor@suse.cz>
3848         * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
3849         * dbgcnt.def (tree_sra): New counter.
3850         * tree-sra.c: Include dbgcnt.h.
3851         (gate_intra_sra): Check tree_sra debug counter.
3853 2010-06-10  Martin Jambor  <mjambor@suse.cz>
3855         PR tree-optimization/44258
3856         * tree-sra.c (build_access_subtree): Return false iff there is a
3857         partial overlap.
3858         (build_access_trees): Likewise.
3859         (analyze_all_variable_accesses): Disqualify candidates if
3860         build_access_trees returns true for them.
3862 2010-06-10  Alexandre Oliva  <aoliva@redhat.com>
3864         PR debug/41371
3865         * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
3866         tail-recurse into canonical node.  Fast-forward over
3867         non-canonical VALUEs.
3869 2010-06-10  H.J. Lu  <hongjiu.lu@intel.com>
3871         PR boostrap/44470
3872         * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
3873         (*addsi_1_zext) <TYPE_LEA>: Likewise.
3874         (add lea splitter): Likewise.
3875         (add_zext lea splitter): Likewise.
3877 2010-06-10  Joseph Myers  <joseph@codesourcery.com>
3879         * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
3881 2010-06-10  Jan Hubicka  <jh@suse.cz>
3883         * df-problems.c (df_live_problem_data): Add live_bitmaps.
3884         (df_live_alloc): Initialize problem data and live_osbtacks.
3885         (df_live_finalize): Remove obstack, problem data; do not
3886         clear all bitmaps.
3887         (df_live_top_dump, df_live_bottom_dump): Do not dump old
3888         data when not allocated.
3889         (df_live_verify_solution_start): Do not allocate problem data.
3890         (df_live_verify_solution_end): Check if out is allocated.
3891         (struct df_md_problem_data): New structure.
3892         (df_md_alloc): Allocate problem data.
3893         (df_md_free): Free problem data; do not clear bitmaps.
3895 2010-06-10  Jan Beulich  <jbeulich@novell.com>
3897         PR bootstrap/37304
3898         * configure.ac: Replace $() with ${} when intending to expand
3899         variables rather than invoking commands.
3900         * configure: Re-generate.
3902 2010-06-10  Jan Hubicka  <jh@suse.cz>
3904         PR rtl-optimization/44460
3905         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
3906         TYPE_NEEDS_CONSTRUCTING sanity check.
3908 2010-06-10  Gerald Pfeifer  <gerald@pfeifer.com>
3910         * doc/include/fdl.texi: Move to GFDL version 1.3.
3912         * doc/cpp.texi: Move to GFDL version 1.3.
3913         * doc/gcc.texi: Move to GFDL version 1.3.  Fix copyright years.
3914         * doc/gccint.texi: Move to GFDL version 1.3.
3915         * doc/gcov.texi: Move to GFDL version 1.3.  Update copyright years.
3916         * doc/install.texi: Move to GFDL version 1.3.  Fix copyright years.
3917         * doc/invoke.texi: Move to GFDL version 1.3.
3919 2010-06-09  Jan Hubicka  <jh@suse.cz>
3921         * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
3922         Break out from ...
3923         (propagate) ... here; swap the order.
3925 2010-06-09  Jan Hubicka  <jh@suse.cz>
3927         * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
3928         bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
3929         bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
3930         bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
3932 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
3934         * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
3935         Do not the gather memory reference in the outer loop if the step
3936         is not a constant.
3938 2010-06-09  Changpeng Fang  <changpeng.fang@amd.com>
3940         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
3941         Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
3942         8 to 4.  Minor change of the related comments.
3944 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
3946         * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
3947         the scev analysis when the variable is not used outside the loop
3948         in a close phi node: call compute_overall_effect_of_inner_loop.
3950 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
3952         * graphite-sese-to-poly.c (single_pred_cond): Renamed
3953         single_pred_cond_non_loop_exit.  Return NULL for loop exit edges.
3954         (build_sese_conditions_before): Renamed call to single_pred_cond.
3955         (build_sese_conditions_after): Same.
3957 2010-06-09  Sebastian Pop  <sebastian.pop@amd.com>
3959         * graphite-poly.h: Fix comments and indentation.
3960         * graphite-sese-to-poly.c: Same.
3961         (build_sese_conditions_before): Compute stmt and gbb only when needed.
3962         * tree-chrec.c: Fix comments and indentation.
3963         (tree-ssa-loop-niter.c): Same.
3965 2010-06-09  Eric Botcazou  <ebotcazou@adacore.com>
3967         PR rtl-optimization/42461
3968         * dce.c (deletable_insn_p): Return true for const or pure calls again.
3969         * except.c (insn_could_throw_p): Return false if !flag_exceptions.
3971 2010-06-09  Jan Hubicka  <jh@suse.cz>
3973         * bitmap.c (bitmap_and): Walk array forward.
3974         (bitmap_and_compl_into): Likewise.
3975         (bitmap_xor): Likewise.
3976         (bitmap_xor_into):  Likewise.
3977         (bitmap_equal_p): Likewise.
3978         (bitmap_intersect_p): Likewise.
3979         (bitmap_intersect_compl_p): Likewise.
3980         (bitmap_ior_and_into): Likewise.
3981         (bitmap_elt_copy): Likewise.
3982         (bitmap_and_compl): Likewise.
3983         (bitmap_elt_ior): Likewise.
3985 2010-06-09  Dave Korn  <dave.korn.cygwin@gmail.com>
3987         * opts-common.c (prune_options): Ensure replacement argv array
3988         is correctly terminated by a NULL entry.
3990 2010-06-09  Jan Hubicka  <jh@suse.cz>
3992         * cgraph.h (varpool_first_static_initializer,
3993         varpool_next_static_initializer): Make checking only when
3994         checking enabled.
3995         * tree-vectorizer.h (vinfo_for_stmt): Remove check.
3996         (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
3997         gcc_assert to gcc_checking_assert.
3998         * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
3999         phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
4000         op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
4001         op_iter_init_phiuse, op_iter_init_phidef,
4002         array_ref_contains_indirect_ref, ref_contains_array_ref): Use
4003         gcc_checking_assert.
4004         * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
4005         * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
4006         partition_is_global, live_on_entry, live_on_exit,
4007         live_merge_and_clear): Likewise.
4008         * system.h (gcc_checking_assert): New macro.
4009         * gimple.h (set_bb_seq): Use gcc_checking_assert.
4011 2010-06-09  Jason Merrill  <jason@redhat.com>
4013         * Makefile.in (TAGS): Collect tags info from c-family.
4015 2010-06-09  Jan Hubicka  <jh@suse.cz>
4017         * gimple.h (gcc_gimple_checking_assert): New macro.
4018         (gimple_set_def_ops, gimple_set_use_ops,
4019         gimple_set_vuse, gimple_set_vdef,
4020         gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
4021         gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
4022         gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
4023         gimple_asm_output_op, gimple_asm_output_op_ptr,
4024         gimple_asm_set_output_op, gimple_asm_clobber_op,
4025         gimple_asm_set_clobber_op, gimple_asm_label_op,
4026         gimple_asm_set_label_op, gimple_try_set_kind,
4027         gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
4028         gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
4029         gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
4030         gimple_omp_for_index_ptr, gimple_omp_for_set_index,
4031         gimple_omp_for_initial, gimple_omp_for_initial_ptr,
4032         gimple_omp_for_set_initial, gimple_omp_for_final,
4033         gimple_omp_for_final_ptr, gimple_omp_for_set_final,
4034         gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
4035         gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
4036         conditional with ENABLE_GIMPLE_CHECKING.
4037         (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
4039 2010-06-09  Sandra Loosemore  <sandra@codesourcery.com>
4041         * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
4042         (get_computation_cost_at): Use it.
4043         (determine_use_iv_cost_condition): Likewise.
4044         (determine_iv_cost): Likewise.
4046 2010-06-09  Richard Guenther  <rguenther@suse.de>
4048         * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
4049         replace constants.
4051 2010-06-09  Kai Tietz  <kai.tietz@onevision.com>
4053         * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
4055 2010-06-09  Martin Jambor  <mjambor@suse.cz>
4057         PR tree-optimization/44423
4058         * tree-sra.c (dump_access): Dump also grp_assignment_read.
4059         (analyze_access_subtree): Pass negative allow_replacements to children
4060         if the current type is scalar.
4062 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4064         PR testsuite/42843
4065         * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
4066         * doc/plugins.texi (Plugin license check): Update information
4067         on type of plugin_is_GPL_compatible.
4068         * Makefile.in (PLUGINCC): Define as $(COMPILER).
4069         (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
4071 2010-06-09  Bernd Schmidt  <bernds@codesourcery.com>
4073         * config/arm/arm.c (thumb2_reorg): New function.
4074         (arm_reorg): Call it.
4075         * config/arm/thumb2.md (define_peephole2 for flag clobbering
4076         arithmetic operations): Delete.
4078 2010-06-09  Edmar Wienskoski  <edmar@freescale.com>
4080         PR target/44067
4081         * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
4082         e500v2 target.
4084 2010-06-09  Joern Rennecke  <joern.rennecke@embecosm.com>
4086         PR plugins/44459
4087         * gcc-plugin.h: Encapsulate all declarations in extern "C".
4089 2010-06-08  Jan Hubicka  <jh@suse.cz>
4091         * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
4092         ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
4094 2010-06-08  Sandra Loosemore  <sandra@codesourcery.com>
4096         PR tree-optimization/39874
4097         PR middle-end/28685
4098         * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
4099         Declare.
4100         * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
4101         same_bool_result_p): New.
4102         (and_var_with_comparison, and_var_with_comparison_1,
4103         and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
4104         (or_var_with_comparison, or_var_with_comparison_1,
4105         or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
4106         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
4107         maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
4108         of combine_comparisons.
4109         * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
4111 2010-06-08  Anatoly Sokolov  <aesok@post.ru>
4113         * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4114         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4115         * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
4116         pdp11_function_value_regno_p): New functions.
4117         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4118         TARGET_FUNCTION_VALUE_REGNO_P): Define.
4120 2010-06-08  Kazu Hirata  <kazu@codesourcery.com>
4122         * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
4123         Thumb-2 in the MINUS case.
4125 2010-06-08  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
4127         * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
4129         * doc/gty.texi (GTY Options): Document typed GC allocation and
4130         variable_size GTY option.
4132         * ggc-internal.h: New.
4134         * ggc.h: Update copyright year.
4135         (digit_string): Move to stringpool.c.
4136         (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
4137         (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
4138         (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
4139         (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
4140         (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
4141         (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
4142         (ggc_force_collect, ggc_get_size, ggc_statistics)
4143         (ggc_print_common_statistics): Move to ggc-internal.h.
4144         (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
4145         (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
4146         (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
4147         (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
4148         (ggc_min_heapsize_heuristic, ggc_alloc_zone)
4149         (ggc_alloc_zone_pass_stat): Remove.
4150         (ggc_internal_alloc_stat, ggc_internal_alloc)
4151         (ggc_internal_cleared_alloc_stat): New.
4152         (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
4153         (ggc_internal_vec_alloc_stat)
4154         (ggc_internal_cleared_vec_alloc_stat)
4155         (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
4156         (ggc_alloc_atomic_stat, ggc_alloc_atomic)
4157         (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
4158         (ggc_cleared_alloc_ptr_array_two_args): New.
4159         (htab_create_ggc, splay_tree_new_ggc): Redefine.
4160         (ggc_splay_alloc): Change the type of the first argument to
4161         enum gt_types_enum.
4162         (ggc_alloc_string): Make macro.
4163         (ggc_alloc_string_stat): New.
4164         (ggc_strdup): Redefine.
4165         (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
4166         (ggc_alloc_rtvec_sized): New.
4167         (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
4168         (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
4169         (ggc_internal_cleared_alloc_zone_stat)
4170         (ggc_internal_zone_alloc_stat)
4171         (ggc_internal_zone_cleared_alloc_stat)
4172         (ggc_internal_zone_vec_alloc_stat)
4173         (ggc_alloc_zone_rtx_def_stat)
4174         (ggc_alloc_zone_tree_node_stat)
4175         (ggc_alloc_zone_cleared_tree_node_stat)
4176         (ggc_alloc_cleared_gimple_statement_d_stat): New.
4178         * ggc-common.c: Include ggc-internal.h.
4179         (ggc_internal_cleared_alloc_stat): Rename from
4180         ggc_alloc_cleared_stat.
4181         (ggc_realloc_stat): Use ggc_internal_alloc_stat.
4182         (ggc_calloc): Remove.
4183         (ggc_cleared_alloc_htab_ignore_args): New.
4184         (ggc_cleared_alloc_ptr_array_two_args): New.
4185         (ggc_splay_alloc): Add obj_type parameter.
4186         (init_ggc_heuristics): Formatting fixes.
4188         * ggc-none.c: Update copyright year.
4189         (ggc_alloc_stat): Rename to ggc_alloc_stat.
4190         (ggc_alloc_cleared_stat): Rename to
4191         ggc_internal_cleared_alloc_stat.
4192         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
4194         * ggc-page.c: Update copyright year.  Include ggc-internal.h.
4195         Remove references to ggc_alloc in comments.
4196         (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
4197         (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
4198         (new_ggc_zone, destroy_ggc_zone): Remove.
4199         (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
4201         * ggc-zone.c: Include ggc-internal.h.  Remove references to
4202         ggc_alloc in comments.
4203         (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
4204         (ggc_internal_alloc_zone_pass_stat): New.
4205         (ggc_internal_cleared_alloc_zone_stat): New.
4206         (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
4207         (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
4208         (new_ggc_zone, destroy_ggc_zone): Remove.
4210         * stringpool.c: Update copyright year.  Include ggc-internal.h
4211         (digit_vector): Make static.
4212         (digit_string): Moved from ggc.h.
4213         (stringpool_ggc_alloc): Use ggc_alloc_atomic.
4214         (ggc_alloc_string): Rename to ggc_alloc_string_stat.
4216         * Makefile.in (GGC_INTERNAL_H): New.
4217         (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
4218         $(GGC_INTERNAL_H) to dependencies.
4220         * gentype.c: Update copyright year.
4221         (walk_type): Accept variable_size GTY option.
4222         (USED_BY_TYPED_GC_P): New macro.
4223         (write_enum_defn): Use USED_BY_TYPED_GC_P.  Do not output
4224         whitespace at the end of strings.
4225         (get_type_specifier, variable_size_p): New functions.
4226         (alloc_quantity, alloc_zone): New enums.
4227         (write_typed_alloc_def): New function.
4228         (write_typed_struct_alloc_def): Likewise.
4229         (write_typed_typed_typedef_alloc_def): Likewise.
4230         (write_typed_alloc_defns): Likewise.
4231         (output_typename, write_splay_tree_allocator_def): Likewise.
4232         (write_splay_tree_allocators): Likewise.
4233         (main): Call write_typed_alloc_defns and
4234         write_splay_tree_allocators.
4236         * lto-streamer.h (lto_file_decl_data_ptr): New.
4238         * passes.c (order): Define using cgraph_node_ptr.
4240         * strinpool.c (struct string_pool_data): Declare nested_ptr using
4241         ht_identifier_ptr.
4243         * gimple.h (union gimple_statement_d): Likewise.
4245         * rtl.h (struct rtx_def): Likewise.
4246         (struct rtvec_def): Likewise.
4248         * tree.h (union tree_node): Likewise.
4250         * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
4252         * cfgloop.c (record_loop_exits): Use htab_create_ggc.
4254         * tree-scalar-evolution.c (scev_initialize): Likewise.
4256         * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
4258         * dwarf2asm.c (dw2_force_const_mem): Likewise.
4260         * omp-low.c (lower_omp_critical): Likewise.
4262         * bitmap.h (struct bitmap_head_def): Update comment to not
4263         reference ggc_alloc.
4265         * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
4267         * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
4269         * ipa-prop.c (duplicate_ggc_array): Rename to
4270         duplicate_ipa_jump_func_array.  Use typed GC allocation.
4271         (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
4273         * gimple.c (gimple_alloc_stat): Use
4274         ggc_alloc_cleared_gimple_statement_d_stat.
4276         * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
4278         * tree.c (make_node_stat): Use
4279         ggc_alloc_zone_cleared_tree_node_stat.
4280         (make_tree_vec_stat): Likewise.
4281         (build_vl_exp_stat): Likewise.
4282         (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
4283         (make_tree_binfo_stat): Likewise.
4284         (tree_cons_stat): Likewise.
4286         * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
4287         (shallow_copy_rtx_stat): Likewise.
4288         (make_node_stat): Likewise.
4290         * lto-symtab.c: Fix comment.
4292         * tree-cfg.c (create_bb): Update comment to not reference
4293         ggc_alloc_cleared.
4294         * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
4296         * varpool.c (varpool_node): Use typed GC allocation.
4297         (varpool_extra_name_alias): Likewise.
4299         * varasm.c (emutls_decl): Likewise.
4300         (get_unnamed_section): Likewise.
4301         (get_noswitch_section): Likewise.
4302         (get_section): Likewise.
4303         (get_block_for_section): Likewise.
4304         (build_constant_desc): Likewise.
4305         (create_constant_pool): Likewise.
4306         (force_const_mem): Likewise.
4308         * tree.c (build_vl_exp_stat): Likewise.
4309         (build_real): Likewise.
4310         (build_string): Likewise.
4311         (decl_debug_expr_insert): Likewise.
4312         (decl_value_expr_insert): Likewise.
4313         (type_hash_add): Likewise.
4314         (build_omp_clause): Likewise.
4316         * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
4318         * tree-ssa.c (init_tree_ssa): Likewise.
4320         * tree-ssa-structalias.c (heapvar_insert): Likewise.
4322         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
4324         * tree-ssa-loop-niter.c (record_estimate): Likewise.
4326         * tree-ssa-alias.c (get_ptr_info): Likewise.
4328         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
4330         * tree-phinodes.c (allocate_phi_node): Likewise.
4332         * tree-iterator.c (tsi_link_before): Likewise.
4333         (tsi_link_after): Likewise.
4335         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
4337         * tree-dfa.c (create_var_ann): Likewise.
4339         * tree-cfg.c (create_bb): Likewise.
4341         * toplev.c (alloc_for_identifier_to_locale): Likewise.
4342         (general_init): Likewise.
4344         * stringpool.c (stringpool_ggc_alloc): Likewise.
4345         (gt_pch_save_stringpool): Likewise.
4347         * sese.c (if_region_set_false_region): Likewise.
4349         * passes.c (do_per_function_toporder): Likewise.
4351         * optabs.c (set_optab_libfunc): Likewise.
4352         (set_conv_libfunc): Likewise.
4354         * lto-symtab.c (lto_symtab_register_decl): Likewise.
4356         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
4357         (input_eh_region): Likewise.
4358         (input_eh_lp): Likewise.
4359         (make_new_block): Likewise.
4360         (unpack_ts_real_cst_value_fields): Likewise.
4362         * lto-section-in.c (lto_new_in_decl_state): Likewise.
4364         * lto-cgraph.c (input_node_opt_summary): Likewise.
4366         * loop-init.c (loop_optimizer_init): Likewise.
4368         * lambda.h (lambda_vector_new): Likewise.
4370         * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
4372         * ira.c (update_equiv_regs): Likewise.
4374         * ipa.c (cgraph_node_set_new): Likewise.
4375         (cgraph_node_set_add): Likewise.
4376         (varpool_node_set_new): Likewise.
4377         (varpool_node_set_add): Likewise.
4379         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
4380         (duplicate_ipa_jump_func_array): Likewise.
4381         (ipa_read_node_info): Likewise.
4383         * ipa-cp.c (ipcp_create_replace_map): Likewise.
4385         * integrate.c (get_hard_reg_initial_val): Likewise.
4387         * gimple.c (gimple_alloc_stat): Likewise.
4388         (gimple_build_omp_for): Likewise.
4389         (gimple_seq_alloc): Likewise.
4390         (gimple_copy): Likewise.
4392         * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
4393         (gsi_insert_after_without_update): Likewise.
4395         * function.c (add_frame_space): Likewise.
4396         (insert_temp_slot_address): Likewise.
4397         (assign_stack_temp_for_type): Likewise.
4398         (allocate_struct_function): Likewise.
4399         (types_used_by_var_decl_insert): Likewise.
4401         * except.c (init_eh_for_function): Likewise.
4402         (gen_eh_region): Likewise.
4403         (gen_eh_region_catch): Likewise.
4404         (gen_eh_landing_pad): Likewise.
4405         (add_call_site): Likewise.
4407         * emit-rtl.c (get_mem_attrs): Likewise.
4408         (get_reg_attrs): Likewise.
4409         (start_sequence): Likewise.
4410         (init_emit): Likewise.
4412         * dwarf2out.c (new_cfi): Likewise.
4413         (queue_reg_save): Likewise.
4414         (dwarf2out_frame_init): Likewise.
4415         (new_loc_descr): Likewise.
4416         (find_AT_string): Likewise.
4417         (new_die): Likewise.
4418         (add_var_loc_to_decl): Likewise.
4419         (clone_die): Likewise.
4420         (clone_as_declaration): Likewise.
4421         (break_out_comdat_types): Likewise.
4422         (new_loc_list): Likewise.
4423         (loc_descriptor): Likewise.
4424         (add_loc_descr_to_each): Likewise.
4425         (add_const_value_attribute): Likewise.
4426         (tree_add_const_value_attribute): Likewise.
4427         (add_comp_dir_attribute): Likewise.
4428         (add_name_and_src_coords_attributes): Likewise.
4429         (lookup_filename): Likewise.
4430         (store_vcall_insn): Likewise.
4431         (dwarf2out_init): Likewise.
4433         * dbxout.c (dbxout_init): Likewise.
4435         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
4437         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
4439         * config/score/score7.c (score7_output_external): Likewise.
4441         * config/score/score3.c (score3_output_external): Likewise.
4443         * config/s390/s390.c (s390_init_machine_status): Likewise.
4445         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
4446         (rs6000_init_machine_status): Likewise.
4447         (output_toc): Likewise.
4449         * config/pa/pa.c (pa_init_machine_status): Likewise.
4450         (get_deferred_plabel): Likewise.
4452         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
4454         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
4456         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
4458         * config/mep/mep.c (mep_init_machine_status): Likewise.
4459         (mep_note_pragma_flag): Likewise.
4461         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
4463         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
4465         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
4467         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
4468         (i386_pe_maybe_record_exported_symbol): Likewise.
4470         * config/i386/i386.c (get_dllimport_decl): Likewise.
4471         (ix86_init_machine_status): Likewise.
4472         (assign_386_stack_local): Likewise.
4474         * config/frv/frv.c (frv_init_machine_status): Likewise.
4476         * config/darwin.c (machopic_indirection_name): Likewise.
4478         * config/cris/cris.c (cris_init_machine_status): Likewise.
4480         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
4482         * config/avr/avr.c (avr_init_machine_status): Likewise.
4484         * config/arm/arm.c (arm_init_machine_status): Likewise.
4486         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
4487         (alpha_need_linkage): Likewise.
4488         (alpha_use_linkage): Likewise.
4490         * cgraph.c (cgraph_allocate_node): Likewise.
4491         (cgraph_create_edge_1): Likewise.
4492         (cgraph_create_indirect_edge): Likewise.
4493         (cgraph_add_asm_node): Likewise.
4495         * cfgrtl.c (init_rtl_bb_info): Likewise.
4497         * cfgloop.c (alloc_loop): Likewise.
4498         (rescan_loop_exit): Likewise.
4500         * cfg.c (init_flow): Likewise.
4501         (alloc_block): Likewise.
4502         (unchecked_make_edge): Likewise.
4504         * c-parser.c (c_parse_init): Likewise.
4505         (c_parse_file): Likewise.
4507         * c-decl.c (bind): Likewise.
4508         (record_inline_static): Likewise.
4509         (push_scope): Likewise.
4510         (make_label): Likewise.
4511         (lookup_label_for_goto): Likewise.
4512         (finish_struct): Likewise.
4513         (finish_enum): Likewise.
4514         (c_push_function_context): Likewise.
4516         * bitmap.c (bitmap_element_allocate): Likewise.
4517         (bitmap_gc_alloc_stat): Likewise.
4519         * alias.c (record_alias_subset): Likewise.
4520         (init_alias_analysis): Likewise.
4522 2010-06-08  Shujing Zhao  <pearly.zhao@oracle.com>
4524         * fold-const.c (fold_comparison): Remove redundant parenthesis.
4525         * tree-inline.c (expand_call_inline): Pass translated return value of
4526         cgraph_inline_failed_string to diagnostic function.
4528 2010-06-08  Andrew Pinski  <pinskia@gmail.com>
4529             Shujing Zhao  <pearly.zhao@oracle.com>
4531         PR c/37724
4532         * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
4533         implicit bad conversions is initialization.
4534         (error_init): Use gmsgid instead of msgid for argument name and change
4535         the call for error.
4536         (pedwarn_init): Use gmsgid instead of msgid for argument name and
4537         change the call for pedwarn.
4538         (warning_init): Use gmsgid instead of msgid for argument name and
4539         change the call for warning.
4541 2010-06-07  Nathan Froyd  <froydnj@codesourcery.com>
4543         * config/mips/mips-protos.h (mips_print_operand): Delete.
4544         (mips_print_operand_address): Delete.
4545         * config/mips/mips.h (mips_print_operand_punct): Delete.
4546         (PRINT_OPERAND): Delete.
4547         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4548         (PRINT_OPERAND_ADDRESS): Delete.
4549         * config/mips/mips.c (mips_print_operand_punct): Make static.
4550         (mips_print_operand_address): Make static.
4551         (mips_print_operand): Make static.  Call
4552         mips_print_operand_punct_valid_p.
4553         (mips_print_operand_punct_valid_p): New function.
4554         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4555         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4557 2010-06-07  Jan Hubicka  <jh@suse.cz>
4559         PR middle-end/44454
4560         (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
4561         are allocated.
4563 2010-06-07  Kaz Kojima  <kkojima@gcc.gnu.org>
4565         * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
4566         name of RECORD.
4568 2010-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4570         * doc/sourcebuild.texi (Effective-Target Keywords, Other
4571         attributes): Document gas.
4573 2010-06-07  Uros Bizjak  <ubizjak@gmail.com>
4575         * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
4576         <TYPE_LEA>: Split instruction.
4577         <default>: Remove alternative 2 handling.
4578         (*addsi_1_zext) <TYPE_LEA>: Split instruction.
4579         (add lea splitter): Generate SImode lea for mode sizes <= SImode.
4580         (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
4582         (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
4583         (ashift_zext lea splitter): Use DImode for multiplication.
4585         * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
4586         to generate addition.
4588 2010-06-07  Joseph Myers  <joseph@codesourcery.com>
4590         * common.opt (fira-verbose): Use Var.
4591         (fpcc-struct-return): Use Init instead of VarExists.
4592         * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
4593         toplev.c.
4594         * flags.h (flag_signed_char, flag_short_enums,
4595         flag_pcc_struct_return, flag_ira_verbose,
4596         flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
4597         * toplev.c (flag_detailed_statistics, flag_signed_char,
4598         flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
4599         (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
4600         * toplev.h (flag_crossjumping, flag_if_conversion,
4601         flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
4602         flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
4603         flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
4604         flag_cprop_registers, time_report, flag_ira_loop_pressure,
4605         flag_ira_coalesce, flag_ira_move_spills,
4606         flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
4608 2010-06-07  Jan Hubicka  <jh@suse.cz>
4610         * df-core.c (df_analyze_problem): Do verification after allocation.
4612         * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
4613         (df_lr_alloc): Initialize problem data; move bitmaps to
4614         lr_bitmaps obstack.
4615         (df_lr_finalize): Free problem data; do not bother to free bitmaps.
4616         (df_lr_verify_solution_start): Do not initialize problem data;
4617         allocate bitmaps in lr_bitmaps.
4618         (df_lr_verify_solution_end): Do not free problem data.
4620 2010-06-07  Jan Hubicka  <jh@suse.cz>
4622         * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
4623         if caller is noreturn.
4624         * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
4625         * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
4626         * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
4627         * ipa-pure-const.c (check_decl): Add IPA parameter.
4628         (state_from_flags): New function.
4629         (better_state, worse_state): New functions.
4630         (check_call): When in IPA mode, do not care about callees.
4631         (check_load, check_store): Update.
4632         (check_ipa_load, check_ipa_store): New.
4633         (check_stmt): When in IPA mode, use IPA checkers.
4634         (analyze_function): Use state_from_flags.
4635         (propagate): Check indirect edges and references.
4637 2010-06-07  Kazu Hirata  <kazu@codesourcery.com>
4639         PR rtl-optimization/44404
4640         * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
4641         of count_occurrences to see if it's safe to modify mem_insn.
4643 2010-06-07  Richard Guenther  <rguenther@suse.de>
4645         * gimplify.c (gimplify_cleanup_point_expr): For empty body
4646         and EH-only cleanup drop the cleanup instead of inserting it
4647         unconditionally.
4649 2010-06-07  Ira Rosen  <irar@il.ibm.com>
4651         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
4652         documentation.
4653         * targhooks.c (default_builtin_vectorization_cost): New function.
4654         * targhooks.h (default_builtin_vectorization_cost): Declare.
4655         * target.h (enum vect_cost_for_stmt): Define.
4656         (builtin_vectorization_cost): Change argument and comment.
4657         * tree-vectorizer.h: Remove cost model macros.
4658         * tree-vect-loop.c: Include target.h.
4659         (vect_get_cost): New function.
4660         (vect_estimate_min_profitable_iters): Replace cost model macros with
4661         calls to vect_get_cost.
4662         (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
4663         * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
4664         default implementation.
4665         * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
4666         calls to target hook builtin_vectorization_cost.
4667         (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
4668         Likewise.
4669         * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
4670         * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
4671         implementation to return costs.
4672         * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
4673         * config/spu/spu.h: Remove vectorizer cost model macros.
4674         * config/i386/i386.h: Likewise.
4675         * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
4676         a call to target hook builtin_vectorization_cost.
4678 2010-06-06  Sriraman Tallam  <tmsriram@google.com>
4680         PR target/44319
4681         * config/i386/i386.c (override_options): Turn zee pass on for level 2
4682         and above and defer till target is known.
4683         (optimization_options): Turn on zee pass if TARGET_64BIT is set and
4684         turn off otherwise.
4686 2010-05-25  Jan Hubicka  <jh@suse.cz>
4688         * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
4689         (df_compact_blocks): Likewise.
4690         * df.h (struct df): Turn hardware_regs_used,
4691         regular_block_artificial_uses, eh_block_artificial_uses,
4692         insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
4693         bitmap_head.
4694         * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
4695         df_byte_lr_alloc, df_simulate_fixup_sets): Update.
4696         * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
4697         df_scan_blocks, df_insn_delete, df_insn_rescan,
4698         df_insn_rescan_debug_internal, df_insn_rescan_all,
4699         df_process_deferred_rescans, df_process_deferred_rescans,
4700         df_notes_rescan, df_get_call_refs, df_get_call_refs,
4701         regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
4702         df_record_entry_block_defs, df_record_exit_block_uses,
4703         df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
4704         df_scan_verify): Update.
4706 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
4708         PR c++/44188
4709         * c-common.c (is_typedef_decl): Move this definition ...
4710         * tree.c (is_typedef_decl): ... here.
4711         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
4712         * c-common.h (is_typedef_decl): Move this declaration ...
4713         * tree.h (is_typedef_decl): ... here.
4714         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
4715         * dwarf2out.c (is_naming_typedef_decl): New function.
4716         (gen_tagged_type_die): Split out of ...
4717         (gen_type_die_with_usage): ... this function. When an anonymous
4718         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
4719         is emitted for the typedef.
4720         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
4721         anonymous tagged types.
4723 2010-06-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4725         PR c/20000
4726         * c-decl.c (grokdeclarator): Delete warning.
4728 2010-06-06  Eric Botcazou  <ebotcazou@adacore.com>
4730         * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
4731         newly built CALL_EXPR.
4732         * tree-profile.c (tree_profiling): Don't profile functions produced
4733         for built-in stuff.
4735 2010-06-06  Segher Boessenkool  <segher@kernel.crashing.org>
4737         PR bootstrap/44427
4738         PR bootstrap/44428
4739         * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
4740         endianness-independent.
4742 2010-06-05  Steven Bosscher  <steven@gcc.gnu.org>
4744         * c-common.c: Move to c-family/.
4745         * c-common.def: Likewise.
4746         * c-common.h: Likewise.
4747         * c-cppbuiltin.c: Likewise.
4748         * c-dump.c: Likewise.
4749         * c-format.c: Likewise.
4750         * c-format.h : Likewise.
4751         * c-gimplify.c: Likewise.
4752         * c-lex.c: Likewise.
4753         * c-omp.c: Likewise.
4754         * c.opt: Likewise.
4755         * c-opts.c: Likewise.
4756         * c-pch.c: Likewise.
4757         * c-ppoutput.c: Likewise.
4758         * c-pragma.c: Likewise.
4759         * c-pragma.h: Likewise.
4760         * c-pretty-print.c: Likewise.
4761         * c-pretty-print.h: Likewise.
4762         * c-semantics.c: Likewise.
4763         * stub-objc.c: Likewise.
4765         * gengtype.c (get_file_langdir): Special-case files in c-family/.
4766         (get_output_file_with_visibility): Fix name for c-common.h.
4767         * c-config-lang.in: Update paths in gtfiles for files in c-family/.
4769         * c-tree.h: Update include path for moved files.
4770         * c-lang.c: Likewise.
4771         * c-lang.h: Likewise.
4772         * c-parser.c: Likewise.
4773         * c-convert.c: Likewise.
4774         * c-decl.c: Likewise.
4775         * c-objc-common.c: Likewise.
4776         * configure.ac: Make sure c-family/ exists in the build directory.
4777         * configure: Regenerate.
4778         * Makefile.in: Update paths for moved files.  Regroup files per
4779         location and update dependencies.  Move generated_files down after
4780         ALL_GTFILES_H.
4782         * config/spu/spu-c.c: Update paths for moved files.
4783         * config/mep/mep-pragma.c: Likewise.
4784         * config/darwin-c.c: Likewise.
4785         * config/i386/msformat-c.c: Likewise.
4786         * config/i386/i386-c.c: Likewise.
4787         * config/avr/avr-c.c: Likewise.
4788         * config/sol2-c.c: Likewise.
4789         * config/ia64/ia64-c.c: Likewise.
4790         * config/rs6000/rs6000-c.c: Likewise.
4791         * config/arm/arm.c: Likewise.
4792         * config/arm/arm-c.c: Likewise.
4793         * config/h8300/h8300.c: Likewise.
4794         * config/v850/v850-c.c: Likewise.
4796         * config/t-darwin: Fix dependencies for moved files.
4797         * config/t-sol2: Fix dependencies for moved files.
4798         * config/mep/t-mep: Fix dependencies for moved files.
4799         * config/ia64/t-ia64: Fix dependencies for moved files.
4800         * config/rs6000/t-rs6000: Fix dependencies for moved files.
4801         * config/v850/t-v850: Fix dependencies for moved files.
4802         * config/v850/t-v850e: Fix dependencies for moved files.
4804         * config/m32c/m32c-pragma.c
4806         * po/exgettext: Look in c-family/ also.
4808 2010-06-05  Eric Botcazou  <ebotcazou@adacore.com>
4810         * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
4811         (mark_control_dependent_edges_necessary): Call it instead of marking
4812         the last statement manually.
4813         (propagate_necessity): Likewise.
4815 2010-06-05  Jan Hubicka  <jh@suse.cz>
4817         * basic-block.h (compute_dominance_frontiers): Updated.
4818         (compute_idf): Likewise.
4820         * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
4821         for dominance frontiers.
4822         (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
4823         (insert_updated_phi_nodes_for): Likewise.
4824         (update_ssa): Likewise.
4825         * cfganal.c (compute_dominance_frontiers_1): Likewise.
4826         (compute_dominance_frontiers): Likewise.
4827         (compute_idf): Likewise.
4828         * df-problems.c (df_md_local_compute): Likewise.
4830 2010-06-05  Anatoly Sokolov  <aesok@post.ru>
4832         * target.h (struct gcc_target): Add memory_move_cost field.
4833         * target-def.h (TARGET_MEMORY_MOVE_COST): New.
4834         (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
4835         * targhooks.c (default_memory_move_cost): New function.
4836         * targhooks.h (default_memory_move_cost): Declare function.
4837         * reload.h (memory_move_cost): Declare.
4838         (memory_move_secondary_cost): Change type of 'in' argument to bool.
4839         * reginfo.c (memory_move_cost): New function.
4840         (memory_move_secondary_cost): Change type of 'in' argument to bool.
4841         * ira.h (ira_memory_move_cost): Update comment.
4842         * ira.c: (ira_memory_move_cost): Update comment.
4843         (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
4844         with memory_move_cost.
4845         * postreload.c (reload_cse_simplify_set): (Ditto.).
4846         * reload1.c (choose_reload_regs): (Ditto.).
4847         * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
4848         (MEMORY_MOVE_COST):  Revise documentation.
4850         * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
4851         * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
4852         * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
4853         type of 'in' argument to bool.
4854         (TARGET_MEMORY_MOVE_COST): Define.
4856 2010-06-05  Jan Hubicka  <jh@suse.cz>
4858         * ipa-pure-const.c (propagate): Fix typo in handling of functions
4859         that cannot return.  Be more careful when merging the results with
4860         previously known ones.
4862 2010-06-05  Matthias Klose  <doko@ubuntu.com>
4864         * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
4865         function to add the -iplugindir option.
4866         (find_plugindir_spec_function): Add new declaration and function.
4867         (static_spec_func): Use it for "find-plugindir".
4869 2010-06-05  Jakub Jelinek  <jakub@redhat.com>
4871         PR c++/44361
4872         * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
4873         * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
4874         statement expression.
4876 2010-06-05  Jan Hubicka  <jh@suse.cz>
4878         * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
4879         (df_rd_problem_data): Convert sparse_invalidated_by_call,
4880         dense_invalidated_by_call to bitmap head.
4881         (df_rd_alloc, df_rd_bb_local_compute_process_def,
4882         df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
4883         df_rd_start_dump, df_lr_verify_transfer_functions,
4884         df_live_verify_transfer_functions, df_chain_create_bb,
4885         df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
4886         df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
4887         df_simulate_one_insn_forwards, df_md_alloc,
4888         df_md_bb_local_compute_process_def,
4889         df_md_bb_local_compute_process_def, df_md_local_compute,
4890         df_md_transfer_function df_md_free): Update.
4892 2010-06-05  Joseph Myers  <joseph@codesourcery.com>
4894         PR c/44322
4895         * c-typeck.c (build_unary_op): Merge qualifiers into pointer
4896         target type for ADDR_EXPR; require no changes to qualifiers except
4897         for function types.
4898         * c-tree.h (c_build_type_variant): Remove.
4900 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
4902         * genautomata.c (get_excl_set): Do work per element, not per char.
4903         (check_presence_pattern_sets): Similar.
4904         (check_absence_pattern_sets): Similar.
4906 2010-06-05  Segher Boessenkool  <segher@kernel.crashing.org>
4908         * genautomata.c (curr_state_pass_num): Delete.
4909         (min_issue_delay_pass_states): Delete.
4910         (min_issue_delay): Delete.
4911         (initiate_min_issue_delay_pass_states): Delete.
4912         (output_min_issue_delay_table): Compute min_issue_delay_vect
4913         using a breadth-first search variant.
4914         (output_tables): Don't call initiate_min_issue_delay_pass_states.
4916 2010-06-04  H.J. Lu  <hongjiu.lu@intel.com>
4918         PR boostrap/44421
4919         * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
4920         (df_byte_lr_bb_local_compute): Likewise.
4922 2010-06-03  Jason Merrill  <jason@redhat.com>
4924         Implement noexcept operator (5.3.7)
4925         * c-common.c (c_common_reswords): Add noexcept.
4926         * c-common.h (enum rid): Add RID_NOEXCEPT.
4928 2010-06-04  Joseph Myers  <joseph@codesourcery.com>
4930         * config/darwin-driver.c (darwin_default_min_version): Use
4931         GCC-specific formats in diagnostics.
4932         * cppspec.c (lang_specific_driver): Use GCC-specific formats in
4933         diagnostics.
4934         * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
4935         execute, process_command, end_going_arg, do_self_spec, do_spec_1,
4936         eval_spec_function, handle_braces, process_brace_body, main,
4937         perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
4938         getenv_spec_function, compare_version_strings,
4939         version_compare_spec_function): Use GCC-specific formats in
4940         diagnostics.
4942 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
4944         * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
4945         that operand 0 and operand 1 are equal.
4946         (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
4947         (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
4948         and operand 1 are equal.
4949         <default>: Ditto.  Remove ??? comment.
4950         (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
4951         and operand 1 are equal.
4952         <default>: Ditto.  Remove ??? comment.
4953         (*adddi_4) <default>: Remove assert that operand 0 and operand 1
4954         are equal.
4955         (*add<mode>_4) <default>: Ditto.
4956         (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
4958 2010-06-04  Nathan Froyd  <froydnj@codesourcery.com>
4960         * config/i386/i386-protos.h (ix86_print_operand): Declare.
4961         * config/i386/i386.c (ix86_print_operand): Make non-static.
4962         * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
4963         * output.h (output_operand): Declare.
4964         * final.c (output_operand): Make non-static.
4966 2010-06-04  Alexandre Oliva  <aoliva@redhat.com>
4968         PR rtl-optimization/44013
4969         * sched-deps.c (add_dependence_list_and_free): Don't free lists
4970         when processing debug insns.
4972         PR debug/41371
4973         * var-tracking.c (find_loc_in_1pdv): Mark initial value before
4974         recursing.  Check that recursion is bounded.  Rename inner var
4975         to avoid hiding incoming argument.
4977 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
4979         * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
4980         operands[2] == 255.
4981         (*addqi_3): Ditto.
4982         (*addqi_4): Ditto.
4983         (*addqi_5): Ditto.
4984         (*addqi_ext_1_rex64): Ditto.
4985         (*addqi_ext_1): Ditto.
4987         (*addqi_4): Check for incdec_operand in QImode.
4989         (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
4990         using SWI mode iterator.
4991         (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
4992         (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
4993         mode iterator.
4994         (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
4995         using SWI mode iterator.
4997 2010-06-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
4999         PR c/25880
5000         * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
5001         * c-format.c (gcc_diag_flag_specs): Add hash.
5002         (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
5003         (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
5004         * c-pretty-print.c (pp_c_cv_qualifier): Rename as
5005         pp_c_cv_qualifiers. Handle qualifiers spelling here.
5006         (pp_c_type_qualifier_list): Call the function above.
5007         * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
5008         * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
5009         (WARN_FOR_QUALIFIERS): New macro.
5010         (convert_for_assignment): Use it.
5012 2010-06-04  Kai Tietz  <kai.tietz@onevision.com>
5014         * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
5016 2010-06-04  Jan Hubicka  <jh@suse.cz>
5018         * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
5019         df_byte_lr_bb_info): Embedd bitmap_head into the structure.
5020         (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
5021         DF_BYTE_LR_OUT): Update for embedded bitmaps.
5022         * fwprop.c (single_def_use_enter_block): Likewise.
5023         * ddg.c (create_ddg_dep_from_intra_loop_link,
5024         add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
5025         * loop-iv.c (latch_dominating_def): Likewise.
5026         * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
5027         df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
5028         df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
5029         df_rd_transfer_function, df_rd_top_dump,
5030         df_rd_bottom_dump): Update.
5031         (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
5032         df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
5033         df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
5034         df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
5035         df_lr_verify_solution_start, df_lr_verify_solution_end,
5036         df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
5037         df_live_free_bb_info, df_live_alloc, df_live_reset,
5038         df_live_bb_local_compute, df_live_init, df_live_transfer_function,
5039         df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
5040         df_live_verify_solution_start, df_live_verify_solution_end,
5041         df_live_verify_transfer_functions, df_chain_create_bb,
5042         df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
5043         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5044         df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5045         df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
5046         df_byte_lr_confluence_0, df_byte_lr_confluence_n,
5047         df_byte_lr_transfer_function, df_byte_lr_top_dump,
5048         df_byte_lr_bottom_dump, df_create_unused_note,
5049         df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
5050         df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
5051         df_md_transfer_function, df_md_init, df_md_confluence_0,
5052         df_md_confluence_n,
5053         df_md_top_dump, df_md_bottom_dump): Update.
5054         (struct df_lr_problem_data): Embedd bitmap headers.
5056 2010-06-04  Jan Hubicka  <jh@suse.cz>
5058         * dce.c (dce_process_block): Do not re-scan already marked
5059         instructions.
5061 2010-06-04  Bernd Schmidt  <bernds@codesourcery.com>
5063         PR rtl-optimization/39871
5064         PR rtl-optimization/40615
5065         PR rtl-optimization/42500
5066         PR rtl-optimization/42502
5067         * ira.c (init_reg_equiv_memory_loc: New function.
5068         (ira): Call it twice.
5069         * reload.h (calculate_elim_costs_all_insns): Declare.
5070         * ira-costs.c: Include "reload.h".
5071         (regno_equiv_gains): New static variable.
5072         (init_costs): Allocate it.
5073         (finish_costs): Free it.
5074         (ira_costs): Call calculate_elim_costs_all_insns.
5075         (find_costs_and_classes): Take estimated elimination costs
5076         into account.
5077         (ira_adjust_equiv_reg_cost): New function.
5078         * ira.h (ira_adjust_equiv_reg_cost): Declare it.
5079         * reload1.c (init_eliminable_invariants, free_reg_equiv,
5080         elimination_costs_in_insn, note_reg_elim_costly): New static functions.
5081         (elim_bb): New static variable.
5082         (reload): Move code out of here into init_eliminable_invariants and
5083         free_reg_equiv.  Call them.
5084         (calculate_elim_costs_all_insns): New function.
5085         (eliminate_regs_1): Declare.  Add extra arg FOR_COSTS;
5086         all callers changed.  If FOR_COSTS is true, don't call alter_reg,
5087         but call note_reg_elim_costly if we turned a valid memory address
5088         into an invalid one.
5089         * Makefile.in (ira-costs.o): Depend on reload.h.
5091 2010-06-04  Julian Brown  <julian@codesourcery.com>
5093         * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
5094         for pool ranges.
5096 2010-06-04  Richard Guenther  <rguenther@suse.de>
5098         PR lto/41584
5099         * cgraph.h (struct varpool_node): Add lto_file_data field.
5100         * lto-cgraph.c (input_varpool_node): Initialize it.
5102 2010-06-04  Uros Bizjak  <ubizjak@gmail.com>
5104         * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
5105         * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
5106         predicate in "type" attribute calculation.
5107         (*addsi_1_zext): Ditto.
5108         (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
5109         (*addsi_2_zext): Ditto.
5110         (*add<mode>_3): Ditto.
5111         (*addsi_3_zext): Ditto.
5112         (*add<mode>_5): Ditto.
5114 2010-06-03  Jan Hubicka  <jh@suse.cz>
5116         * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
5117         of bitmap_bit_p.
5118         * cfganal.c (compute_dominance_frontiers_1): Likewise.
5120 2010-06-03  Jan Hubicka  <jh@suse.cz>
5122         * df-problems.c (df_create_unused_note, df_note_bb_compute):
5123         micro-optimize the checks when to add new note.
5125 2010-06-03  Nathan Froyd  <froydnj@codesourcery.com>
5127         * final.c (output_asm_insn): Call
5128         targetm.asm_out.print_operand_punct_valid_p.  Update comments.
5129         (output_operand): Call targetm.asm_out.print_operand.  Update comments.
5130         (output_address): Call targetm.asm_out.print_operand_address.
5131         Update comments.
5132         * target.h (struct gcc_target): Add print_operand,
5133         print_operand_address, and print_operand_punct_valid_p fields.
5134         * targhooks.h (default_print_operand): Declare.
5135         (default_print_operand_address): Declare.
5136         (default_print_operand_punct_valid_p): Declare.
5137         * targhooks.c (default_print_operand): Define.
5138         (default_print_operand_address): Define.
5139         (default_print_operand_punct_valid_p): Define.
5140         * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
5141         (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
5142         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5143         (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
5144         TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
5145         * vmsdbgout.c (addr_const_to_string): Update comment.
5146         * config/i386/i386.c (print_operand): Rename to...
5147         (ix86_print_operand): ...this.  Make static.
5148         (print_operand_address): Rename to...
5149         (ix86_print_operand_address): ...this.  Make static.  Call
5150         ix86_print_operand instead of PRINT_OPERAND.
5151         (ix86_print_operand_punct_valid_p): New function.
5152         (TARGET_PRINT_OPERAND): Define.
5153         (TARGET_PRINT_OPERAND_ADDRESS): Define.
5154         (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5155         * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
5156         (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5157         (PRINT_OPERAND): Delete.
5158         (PRINT_OPERAND_ADDRESS): Delete.
5159         * config/i386/i386-protos.h (print_operand): Delete prototype.
5160         (print_operand_address): Delete prototype.
5162 2010-06-03  Richard Guenther  <rguenther@suse.de>
5164         PR tree-optimization/44403
5165         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5166         Preserve pointer qualifiers.
5167         (vect_create_data_ref_ptr): Likewise.
5169 2010-06-03  H.J. Lu  <hongjiu.lu@intel.com>
5171         PR c++/44294
5172         * defaults.h (MAX_FIXED_MODE_SIZE): New.
5174         * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
5176 2010-06-03  Jakub Jelinek  <jakub@redhat.com>
5178         PR debug/44375
5179         * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
5180         return false if merging the bbs would lead to goto_locus
5181         location being lost from the IL.
5183 2010-06-03  Jan Hubicka  <jh@suse.cz>
5184             Jakub Jelinek  <jakub@redhat.com>
5186         * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
5187         set->regs[i] is NULL or has just one entry.
5189 2010-06-03  Jan Hubicka  <jh@suse.cz>
5191         * lto-cgraph.c (lto_varpool_encoder_size): Remove.
5192         * lto-streamer.h (lto_varpool_encoder_size): New inline function.
5194 2010-06-03  Paul Brook  <paul@codesourcery.com>
5196         * config/arm/arm.c (FL_TUNE): Define.
5197         (arm_default_cpu, arm_cpu_select): Remove.
5198         (all_cores): Populate core field.
5199         (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
5200         (arm_find_cpu): New function.
5201         (arm_handle_option): Lookup cpu/architecture names.
5202         (arm_override_options): Cleanup mcpu/march/mtune handling.
5203         (arm_file_start): Ditto.
5205 2010-06-03  Alan Modra  <amodra@gmail.com>
5207         PR target/44169
5208         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
5209         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
5210         rtx to gen_load_toc_v4_PIC_1b.  Tidy.
5211         (rs6000_emit_load_toc_table): Likewise.
5213 2010-06-02  Jan Hubicka  <jh@suse.cz>
5215         * passes.c (init_optimization_passes): Put ipa reference
5216         after ipa pure-const.
5218 2010-06-02  Jan Hubicka  <jh@suse.cz>
5220         * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
5221         calls_read_all and calls_write_all.
5222         (get_reference_optimization_summary): Fix formatting.
5223         (is_proper_for_analysis): Check that decl is not readonly.
5224         (propagate_bits): Check CONST/PURE/noreturn flags.
5225         (ipa_init): Move all_module_statics to optimization_summary_obstack.
5226         (analyze_function): Ignore indirect edges.
5227         (copy_global_bitmap): For all module statics, do nothing.
5228         (generate_summary): Do not print calls_read_all/calls_write_all.
5229         (read_write_all_from_decl): Take node as argument; check
5230         cgraph_node_cannot_return.
5231         (propagate): Reorganize read_all/write_all computation;
5232         check indirect edges; check ecf flags; use all_module_statics
5233         in the results; do not free all_module_statics.
5234         (stream_out_bitmap): Handle all_module_statics.
5235         (ipa_reference_write_optimization_summary): Likewise; use
5236         varpool/cgraph encoders to get boundaries.
5237         (ipa_reference_read_optimization_summary): Read in all_module_statics;
5238         use it when possible.
5240 2010-06-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
5242         PR target/44218
5243         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
5244         -mswdiv option.  Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
5246         * doc/extend.texi (powerpc builtins): Document vec_recip,
5247         vec_rsqrt, vec_rsqrte altivec/vsx builtins.
5249         * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
5250         (rs6000_emit_swrsqrt): Ditto.
5251         (rs6000_emit_swdivsf): Delete.
5252         (rs6000_emit_swdivdf): Ditto.
5253         (rs6000_emit_swrsqrtsf): Ditto.
5255         * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
5256         describe the reciprocal estimate support for each type.
5257         (recip_options): Map -mrecip=<opt> into option bits.
5258         (gen_2arg_fn_t): New typedef for binary rtx gen function.
5259         (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
5260         reciprocal estimate instructions.
5261         (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
5262         debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
5263         Set up rs6000_recip_bits based on the -mrecip* options.  Print the
5264         cost information if -mdebug=cost or -mdebug=reg.
5265         (rs6000_override_options): Set -mrecip-precision for power6, and
5266         power7 machines.  If -mvsx or -mdfp, enable various options that
5267         came in previous instruction set ISAs, unless the option was
5268         explicitly disabled by the command line option.  Parse
5269         -mrecip=<opt> options.
5270         (rs6000_builtin_vectorized_function): Add support for vectorizing
5271         the reciprocal estimate builtins and expansions.
5272         (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
5273         (bdesc_2arg): Add reciprocal estimate builtins.
5274         (bdesc_1arg): Add reciprocal square root estimate builtins.
5275         (rs6000_expand_builtin): Rewrite to use a switch statement,
5276         instead of multiple if/then/elses.  Add reciprocal estimate builtins.
5277         (rs6000_init_builtins): Create declarations for reciprocal
5278         estimate builtins.
5279         (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
5280         sized, prefer traditional floating point registers, if integer
5281         vector types, prefer altivec registers.  Don't actually look at
5282         the memory address any more.
5283         (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
5284         builtins.
5285         (rs6000_load_constant_and_splat): New helper function to load up
5286         the constant for reciprocal estimate instructions.
5287         (rs6000_emit_madd): New helper function for generating
5288         multiply/add type instructions, based on the current switches.
5289         (rs6000_emit_msub): Ditto.
5290         (rs6000_emit_mnsub): Ditto.
5291         (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
5292         replace a divide with a reciprocal estimate and fixup, adding
5293         support for machines with high precision and vectors.
5294         (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
5295         low precision machines.
5296         (rs6000_emit_swdiv): New common function to be called to replace a
5297         division with reciprocal estimate and fixup.
5298         (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf.  Add support
5299         for double and vector types.  Add support for high precision machines.
5301         * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
5302         the reciprocal estimate instructions can be generated.
5303         (TARGET_FRE): Ditto.
5304         (TARGET_FRSQRTES): Ditto.
5305         (TARGET_FRSQRTE): Ditto.
5306         (RS6000_RECIP_*): New macros for reciprocal estimate support.
5308         * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
5309         square root estimate on vectors.
5310         (re<mode>2): New insn for reciprocal division estimate on vectors.
5312         * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
5313         New builtin.
5314         (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
5315         (ALTIVEC_BUITLIN_VEC_RE): Ditto.
5316         (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
5317         (VSX_BUILTIN_RSQRT_V4SF): Ditto.
5318         (VSX_BUITLIN_RSQRT_V2DF): Ditto.
5319         (RS6000_BUILTIN_RSQRT): Ditto.
5320         (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
5321         floating point builtin.
5323         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5324         macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
5325         __RECIP_PRECISION__ based on the command line switches.
5326         (altivec_overloaded_builtins): Add reciprocal estimate builtins.
5328         * config/rs6000/rs6000.opt (-mrecip): Document add support for
5329         replacing division instructions with reciprocal estimate and fixup.
5330         (-mrecip=<opt>): New option.
5331         (-mrecip-precision): Ditto.
5333         * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
5334         (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
5335         (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
5336         precision scalar.
5338         * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
5339         (UNSPEC_VREFP): Ditto.
5340         (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
5341         conterparts with regard to support of -mno-fused-madd and -ffast-math.
5342         (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
5343         reciprocal estimate instructions to be generated.
5344         (altivec_vrefp): Ditto.
5346         * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
5347         estimate support.
5348         (rreg): New mode attribute for reciprocal estimate support.
5349         (recip<mode>3): New insn for division using reciprocal estimate
5350         and fixup builtins.
5351         (divide define_split): New define_split to convert floating point
5352         division to use reciprocal estimate if the user used the
5353         appropriate options and the split is run when we can add new
5354         pseudo registers for the fixup.
5355         (rsqrt<mode>2): New insn for reciprocal square root support.
5356         (recipsf3): Move into recip<mode>3.
5357         (recipdf3): Ditto.
5358         (fres): Use TARGET_FRES.
5359         (rsqrtsf2): Move into rsqrt<mode>2.
5360         (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
5361         (copysignsf3): Add support for VSX.
5362         (fred): Use TARGET_FRE.
5363         (fred_fpr): Ditto.
5364         (rsqrtdf_internal1): New function for frsqrte instruciton.
5366         * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
5367         (vec_rsqrt): Ditto.
5369 2010-06-03  Richard Guenther  <rguenther@suse.de>
5371         PR middle-end/44291
5372         * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
5373         (set_user_assembler_libfunc): Likewise.
5375 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
5377         * mkconfig.sh: Include insn-flags.h and insn-constants.h before
5378         defaults.h.
5379         * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
5380         to defaults.h
5381         * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
5382         DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
5383         FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
5384         STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
5385         STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
5386         STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
5387         STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
5388         STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
5389         * defaults.h: Updated for above mentioned changes.
5391 2010-06-02  Kai Tietz  <kai.tietz@onevision.com>
5393         * c-common.c: Remove header include of tm_p.h.
5394         * Makefile.in (c-common.o): Remove TM_P_H dependency.
5396 2010-06-02  Jakub Jelinek  <jakub@redhat.com>
5398         * tree.h (struct tree_decl_map): New type.
5399         (tree_decl_map_eq, tree_decl_map_marked_p): Define.
5400         (tree_decl_map_hash): New prototype.
5401         (debug_expr_for_decl, value_expr_for_decl): Change into
5402         tree_decl_map hashtab from tree_map.
5403         (init_ttree): Adjust initialization.
5404         (tree_decl_map_hash): New function.
5405         (decl_debug_expr_lookup, decl_debug_expr_insert,
5406         decl_value_expr_lookup, decl_value_expr_insert): Adjust.
5408 2010-06-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5410         * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
5411         linker emulations.
5412         * configure: Regenerate.
5413         * config.in: Regenerate.
5415         * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
5416         (X86_64_EMULATION): Define.
5417         (TARGET_LD_EMULATION): Use them.
5419         * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
5420         (SPARC64_EMULATION): Define.
5421         (LINK_ARCH_SPEC): Use them.
5423 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
5425         * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
5426         smallest_mode_for_size for computing the precision types of new
5427         graphite IVs.  Do not call lang_hooks.types.type_for_size.
5429 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
5431         * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
5432         information.
5433         (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
5435 2010-06-02  Sebastian Pop  <sebastian.pop@amd.com>
5437         PR middle-end/44363
5438         * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
5439         return false instead.
5441 2010-06-02  Jan Hubicka  <jh@suse.cz>
5443         PR middle-end/44295
5444         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
5445         create new cgraph node to check callee.
5447 2010-06-02  Richard Guenther  <rguenther@suse.de>
5449         * lto-streamer-in.c (input_gimple_stmt): Fix typo.
5451 2010-06-02  Richard Guenther  <rguenther@suse.de>
5453         * lto-wrapper.c (lto_wrapper_exit): Rename to ...
5454         (lto_wrapper_cleanup): ... this.  Do not exit.
5455         (fatal): Adjust.  Exit here.
5456         (fatal_perror): Likewise.
5457         (fatal_signal): New function.
5458         (main): Set up signal handlers to cleanup temporary files.
5459         * Makefile.in (lto-wrapper.o): Adjust dependencies.
5461 2010-06-02  Richard Guenther  <rguenther@suse.de>
5463         PR tree-optimization/44377
5464         * tree-ssa-structalias.c (find_func_aliases): Fix typo.
5466 2010-06-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5468         * config/s390/2097.md (z10_fhex): Remove insn reservation.
5469         * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
5470         (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
5471         *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
5472         instruction.
5473         * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
5475 2010-06-02  Jan Hubicka  <jh@suse.cz>
5477         * bitmap.c (bitmap_descriptor): Add search_iter.
5478         (bitmap_find_bit): Increment it.
5479         (print_statistics): Print it.
5481 2010-06-02  Nathan Froyd  <froydnj@codesourcery.com>
5483         * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
5484         instead of gimple_build_call_vec.  Delete unnecessary local variable.
5486 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
5488         * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
5489         change from yesterday.
5491 2010-06-02  Steven Bosscher  <steven@gcc.gnu.org>
5493         * c-ada-spec.c: Clean up redundant includes.
5495 2010-06-01  Steven Bosscher  <steven@gcc.gnu.org>
5497         * gimplify.c: Do not include except.h and optabs.h.
5498         (gimplify_body): Do not initialize RTL profiling.
5499         * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
5500         langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
5501         * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
5502         output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
5503         langhooks.h.
5505         * tree-pretty-print.h: Include pretty-print.h.
5506         * gimple-pretty-print.h: Include pretty-print.h.
5508         * tree-pretty-print.c: Do not include diagnostic.h.
5509         * tree-vrp.c: Likewise.
5510         * tree-tailcall.c: Likewise
5511         * tree-scalar-evolution.c: Likewise
5512         * tree-ssa-dse.c: Likewise
5513         * tree-chrec.c: Likewise
5514         * tree-ssa-sccvn.c: Likewise
5515         * tree-ssa-copyrename.c: Likewise
5516         * tree-nomudflap.c: Likewise
5517         * tree-call-cdce.c: Likewise
5518         * tree-stdarg.c: Likewise
5519         * tree-ssa-math-opts.c: Likewise
5520         * tree-nrv.c: Likewise
5521         * tree-ssa-sink.c: Likewise
5522         * tree-browser.c: Likewise
5523         * tree-ssa-loop-ivcanon.c: Likewise
5524         * tree-ssa-loop.c: Likewise
5525         * tree-parloops.c: Likewise
5526         * tree-ssa-address.c: Likewise
5527         * tree-ssa-ifcombine.c: Likewise
5528         * tree-if-conv.c: Likewise
5529         * tree-data-ref.c: Likewise
5530         * tree-affine.c: Likewise
5531         * tree-ssa-phiopt.c: Likewise
5532         * tree-ssa-coalesce.c: Likewise
5533         * tree-ssa-pre.c: Likewise
5534         * tree-ssa-live.c: Likewise
5535         * tree-predcom.c: Likewise
5536         * tree-ssa-forwprop.c: Likewise
5537         * tree-ssa-dce.c: Likewise
5538         * tree-ssa-ter.c: Likewise
5539         * tree-ssa-loop-prefetch.c: Likewise
5540         * tree-optimize.c: Likewise
5541         * tree-ssa-phiprop.c: Likewise
5542         * tree-object-size.c: Likewise
5543         * tree-outof-ssa.c: Likewise
5544         * tree-ssa-structalias.c: Likewise
5545         * tree-switch-conversion.c: Likewise
5546         * tree-ssa-reassoc.c: Likewise
5547         * tree-ssa-operands.c: Likewise
5548         * tree-vectorizer.c: Likewise
5549         * tree-vect-data-refs.c: Likewise
5550         * tree-vect-generic.c: Likewise
5551         * tree-vect-stmts.c: Likewise
5552         * tree-vect-patterns.c: Likewise
5553         * tree-vect-slp.c: Likewise
5554         * tree-vect-loop.c: Likewise
5555         * tree-ssa-loop-ivopts.c: Likewise
5556         * tree-ssa-loop-im.c: Likewise
5557         * tree-ssa-loop-niter.c: Likewise
5558         * tree-ssa-loop-unswitch.c: Likewise
5559         * tree-ssa-loop-manip.c: Likewise
5560         * tree-ssa-loop-ch.c: Likewise
5561         * tree-dump.c: Likewise
5562         * tree-complex.c: Likewise
5564         * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
5565         * tree-ssa-uninit.c: Likewise
5566         * tree-ssa-threadupdate.c: Likewise
5567         * tree-ssa-uncprop.c: Likewise
5568         * tree-ssa-ccp.c: Likewise
5569         * tree-ssa-dom.c: Likewise
5570         * tree-ssa-propagate.c: Likewise
5571         * tree-ssa-alias.c: Likewise
5572         * tree-dfa.c: Likewise
5573         * tree-cfgcleanup.c: Likewise
5574         * tree-sra.c: Likewise
5575         * tree-ssa-copy.c: Likewise
5576         * tree-ssa.c: Likewise
5577         * tree-profile.c: Likewise
5578         * tree-cfg.c: Likewise
5579         * tree-ssa-threadedge.c: Likewise
5580         * tree-vect-loop-manip.c: Likewise
5582         * tree-inline.c: Do not include diagnostic.h and expr.h.
5583         Include rtl.h.
5584         (copy_decl_for_dup_finish): Do not use NULL_RTX.
5586         * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
5587         * tree-loop-distribution.c: Likewise.
5589 2010-06-01  Jan Hubicka  <jh@suse.cz>
5591         * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
5593 2010-06-01  Jan Hubicka  <jh@suse.cz>
5595         * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
5596         remove return value.
5597         (split_bbs_on_noreturn_calls) .... here.
5598         * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
5599         * tree-flow.h (fixup_noreturn_call): New.
5601 2010-06-01  Jan Hubicka  <jh@suse.cz>
5603         * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
5605 2010-06-01  Nathan Froyd  <froydnj@codesourcery.com>
5607         * tree.h (build_nt_call_list): Delete.
5608         * tree.c (build_nt_call_list): Delete.
5610 2010-06-01  Jan Hubicka  <jh@suse.cz>
5612         * fwprop.c: Make emit-rtl.h include last.
5613         * rtlanal.c: Include emit-rtl.h.
5614         * genautomata.c: Output emit-rtl include into insn-automata.c
5615         * df-scan.c: Include emit-rtl.h.
5616         * haifa-sched.c: Indlude emit-rtl.h.
5617         * mode-switching.c: Indlude emit-rtl.h.
5618         * graph.c: Indlude emit-rtl.h.
5619         * sel-sched.c: Include emit-rtl.h.
5620         * sel-sched-ir.c: Include emit-rtl.h.
5621         * ira-build.c: Include emit-rtl.h.
5622         * emit-rtl.c: (first_insn, last_insn): Remove defines.
5623         (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
5624         Move to emit-rtl.h.
5625         (set_new_first_and_last_insn, get_last_insn_anywhere,
5626         get_first_nonnote_insn, get_last_nonnote_insn, try_split,
5627         make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
5628         delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
5629         emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
5630         push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
5631         Use accessor functions.
5632         * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
5633          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
5634         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
5635         mem_expr_equal_p): Move here from rtl.h.
5636         (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
5637         Move here from emit-rtl.c; make inline.
5638         * cfglayout.h: Include emit-rtl.h.
5639         * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
5640          gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
5641         set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
5642         mem_expr_equal_p, get_insns, set_first-insn,
5643         get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
5644         * reg-stack.c: Include emit-rtl.h.
5645         * dce.c: Likewise.
5647 2010-06-01  Jan Hubicka  <jh@suse.cz>
5649         * cgraph.h (tree_function_versioning): Update prototype.
5650         (cgraph_function_versioning): Update prototype.
5651         * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
5652         bitmap.
5653         (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
5654         (cgraph_materialize_clone, save_inline_function_body): Update use of
5655         tree_function_versioning.
5656         * tree-inline.c (copy_bb): Look for previous copied block to link
5657         after; fix debug output.
5658         (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
5659         (copy_body): Likewise.
5660         (expand_call_inline): Update use of copy_body.
5661         (tree_function_versioning): Update use of copy body; accept
5662         blocks_to_copy and new_entry.
5664 2010-06-01  Jan Hubicka  <jh@suse.cz>
5666         * gegenrtl.c: Remove unnecesary prototypes.
5667         (gendecl): Remove.
5668         (gendef): Produce static inline.
5669         (gencode): Remove.
5670         (main): Do not decode parameters; generate header only.
5671         * Makefile.in (genrtl.c): Remove.
5673 2010-06-01  Jan Hubicka  <jh@suse.cz>
5675         * tree-switch-conversion.c (build_one_array): Make it readonly.
5677 2010-06-01  Richard Guenther  <rguenther@suse.de>
5679         * optabs.c (init_optabs): Guard all accesses to reinit.
5680         * ipa-pure-const.c (propagate): Fix another typo.
5681         * opts.c (common_handle_option): Split assignment to bool.
5682         * c-opts.c (c_common_handle_option): Likewise.
5684 2010-06-01  Arnaud Charlet  <charlet@adacore.com>
5685             Matthew Gingell  <gingell@adacore.com>
5687         * doc/invoke.texi: Mention -fdump-ada-spec.
5688         * tree-dump.c (dump_files): Add ada-spec.
5689         (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
5690         * tree-pass.h (tree_dump_index): Add TDI_ada.
5691         * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
5692         (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
5693         (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
5694         * c-decl.c: Include c-ada-spec.h.
5695         (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
5696         functions.
5697         (c_write_global_declarations): Add handling of -fdump-ada-spec.
5698         * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
5699         * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
5700         * c-ada-spec.h, c-ada-spec.c: New files.
5702 2010-06-01  Richard Guenther  <rguenther@suse.de>
5704         PR lto/43853
5705         * ipa-pure-const.c (get_function_state): Hand back varying state
5706         if we do not have one.
5707         (has_function_state): New function.
5708         (duplicate_node_data): Adjust.
5709         (remove_node_data): Likewise.
5710         (pure_const_write_summary): Likewise.
5711         (propagate): Likewise.  Fix typo.
5713 2010-06-01  Jan Hubicka  <jh@suse.cz>
5715         * tree-cfg.c (verify_stmt): Do not skip could_throw test.
5716         * passes.c (execute_function_todo): Do not make implicit verify_ssa.
5717         (execute_all_ipa_transforms): Do not play with the states.
5719 2010-06-01  Maxim Kuvyrkov  <maxim@codesourcery.com>
5721         * config/arm/t-linux-androideabi: New.
5722         * config.gcc (arm*-*-linux-androideabi): Include multilib config.
5724 2010-06-01  Jan Hubicka  <jh@suse.cz>
5726         * tree-inline.c (estimate_num_insns): For stdarg functions look
5727         into call statement to count cost of argument passing.
5729 2010-06-01  Kai Tietz  <kai.tietz@onevision.com>
5731         * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
5732         argument for fprintf.
5733         (ix86_output_addr_diff_elt): Likewise.
5734         (x86_function_profiler): Likewise.
5735         * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
5736         (LPREFIX): Likewise.
5737         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5739 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
5741         PR target/44338
5742         * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
5743         fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
5744         fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
5745         fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
5746         fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
5747         fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
5748         fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
5749         Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
5750         TARGET_FUSED_MADD.
5752 2010-05-31  Jan Hubicka  <jh@suse.cz>
5754         * tree.h (tree_range_check_failed): Declare noreturn.
5756 2010-05-31  Jan Hubicka  <jh@suse.cz>
5758         * gimple.c (gimple_call_builtin_p): New function.
5759         * gimple.h (gimple_call_builtin_p): Declare.
5760         * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
5761         to exit.
5762         (execute_warn_function_return): BUILT_IN_RETURN is return.
5763         (split_critical_edges): Return edges are not critical.
5764         (is_ctrl_altering_stmt): Builtin_in_return is altering.
5765         (gimple_verify_flow_info): Handle built_in_return.
5766         (execute_warn_function_return): Handle built_in_return.
5767         * ipa-pure-const.c (check_call): Ignore builtin_return.
5769 2010-05-31  Jakub Jelinek  <jakub@redhat.com>
5771         PR middle-end/44337
5772         * expr.c (expand_assignment): Don't store anything for out-of-bounds
5773         array accesses with non-MEM.
5775         PR tree-optimization/44182
5776         * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
5777         newly needs to end a bb is followed by debug stmts, instead return
5778         true from the function at the end.
5779         (maybe_move_debug_stmts_to_successors): New function.
5780         (copy_cfg_body): Call it if copy_edges_for_bb returned true.
5782 2010-05-31  Kai Tietz  <kai.tietz@onevision.com>
5784         PR target/44161
5785         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
5787 2010-05-31  Eric Botcazou  <ebotcazou@adacore.com>
5789         * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
5790         for nested functions in non-optimized compilation.
5792 2010-05-31  Richard Guenther  <rguenther@suse.de>
5794         * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
5796 2010-05-30  Jan Hubicka  <jh@suse.cz>
5798         * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
5800 2010-05-30  Richard Guenther  <rguenther@suse.de>
5802         PR lto/42975
5803         * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
5804         (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
5805         no longer needed.
5807 2010-05-30  Iain Sandoe  <iains@gcc.gnu.org>
5809         * config/darwin.c (output_objc_section_asm_op): Add comment.
5810         (name_needs_quotes): Add '_' to list of valid comment chars.
5811         (machopic_output_function_base_name): Remove unneeded quotes.
5812         (darwin_encode_section_info): Adjust asm whitespace.
5813         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
5814         (ASM_OUTPUT_LOCAL): Ditto.
5815         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
5816         * config/darwin.h (GLOBAL_ASM_OP): Ditto.
5817         * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
5819 2010-05-30  Eric Botcazou  <ebotcazou@adacore.com>
5821         * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
5822         RS6000_OUTPUT_BASENAME unconditionally.
5823         (rs6000_output_function_epilogue): Likewise.
5825 2010-05-30  Jan Hubicka  <jh@suse.cz>
5827         * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
5828         nodes.
5830 2010-05-30  Richard Guenther  <rguenther@suse.de>
5832         * tree-cfg.c (verify_gimple_assign_single): Implement
5833         verification for COND_EXPR rhs.
5835 2010-05-30  Jan Hubicka  <jh@suse.cz>
5837         * cgraph.h (cgraph_dump_file): Declare.
5838         * cgraphunit.c (cgraph_dump_file): Export.
5839         * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
5841 2010-05-30  Jan Hubicka  <jh@suse.cz>
5843         * dwarf2out.c (reference_to_unused,
5844         premark_types_used_by_global_vars_helper): Avoid creation of new
5845         varpool nodes.
5847 2010-05-30  Jan Hubicka  <jh@suse.cz>
5849         * cgraph.h (cgraph_node_cannot_return,
5850         cgraph_edge_cannot_lead_to_return): New functions.
5851         * cgraph.c (cgraph_node_cannot_return,
5852         cgraph_edge_cannot_lead_to_return): Use them.
5853         * ipa-pure-const.c (pure_const_names): New static var.
5854         (check_call): Handle calls not leading to return.
5855         (pure_const_read_summary): Dump info read.
5856         (propagate): Dump info about propagation process; ignore side effects
5857         of functions not leading to exit; fix handling of pure functions.
5859 2010-05-30  Jan Hubicka  <jh@suse.cz>
5861         * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
5862         for tail call epilogues.
5864 2010-05-30  Jan Hubicka  <jh@suse.cz>
5866         * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
5867         ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
5868         dump files.
5870 2010-05-29  Jan Hubicka  <jh@suse.cz>
5872         * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
5873         node; remove references in node we no longer keep in cgrpah but need
5874         body of.
5876 2010-05-29  Jan Hubicka  <jh@suse.cz>
5878         * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
5880 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5882         PR target/44165
5883         * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
5885 2010-05-29  Jan Hubicka  <jh@suse.cz>
5887         * tree-vrp.c (debug_value_range, debug_all_value_ranges,
5888         debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
5889         * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
5890         debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
5891         debug_names_replaced_by, debug_update_ssa): Likewise.
5892         * sbitmap.c (debug_sbitmap): Likewise.
5893         * genrecog.c (debug_decision, debug_decision_list): Likewise.
5894         * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
5895         debug_tree_chain): Likewise.
5896         * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
5897         * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
5898         * optabs.c  (debug_optab_libfuncs): Likewise.
5899         (verify_loop_closed_ssa): Likewise.
5900         * value-prof.c (verify_histograms): Likewise.
5901         * reload.c (debug_reload_to_stream, debug_reload): Likewise.
5902         * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
5903         * cfghooks.c (verify_flow_info): Likewise.
5904         * fold-const.c (debug_fold_checksum): Likewise.
5905         * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
5906         * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
5907         Likewise.
5908         * omega.c (debug_omega_problem): Likewise.
5909         * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
5910         * tree-ssa-ccp.c (debug_lattice_value): Likewise.
5911         * dominance.c (verify_dominators, debug_dominance_info,
5912         debug_dominance_tree): Likewise.
5913         * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
5914         * df_regno_debug, df_ref_debug,
5915         debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
5916         debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
5917         * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
5918         * sel-sched.c (debug_state): Likewise.
5919         * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
5920         Likewise.
5921         * cfganal.c (print_edge_list, verify_edge_list): Likewise.
5922         * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
5923         * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
5924         * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
5925         Likewise.
5926         * c-pretty-print.c (debug_c_tree): Likewise.
5927         * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
5928         debug_av_set, debug_lv_set, debug_ilist, debug_blist,
5929         debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
5930         * ebitmap.c (debug_ebitmap): Likewise.
5931         * function.c (debug_find_var_in_block_tree): Likewise.
5932         * print-rtl.c (debug_rtx): Likewise.
5933         (debug_rtx_count): Likewise.
5934         (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
5935         * stor-layout.c (debug_rli): Likewise.
5936         * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
5937         * tree-data-ref.c (debug_data_references,
5938         debug_data_dependence_relations, debug_data_reference,
5939         debug_data_dependence_relation, debug_rdg_vertex,
5940         debug_rdg_component, debug_rdg): Likewise.
5941         * tree-affine.c (debug_aff): Likewise.
5942         * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
5943         Likewise.
5944         * except.c (debug_eh_tree, verify_eh_tree): Likewise.
5945         * emit-rtl.c (verify_rtl_sharing): Likewise.
5946         * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
5947         debug_value_expressions): Likewise.
5948         * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
5949         * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
5950         * print-tree.c (debug_tree, debug_vec_tree): Likewise.
5951         * cfglayout.c (verify_insn_chain): Likewise.
5952         * graphite-clast-to-gimple.c (debug_clast_name_indexes,
5953         debug_clast_stmt, debug_generated_program): Likewise.
5954         * ggc-page.c (debug_print_page_list): Likewise.
5955         * tree-ssa-ter.c (debug_ter): Likewise.
5956         * graphite-dependences.c (debug_pddr): Likewise.
5957         * sched-deps.c (debug_ds): Likewise.
5958         * tree-ssa.c (verify_ssa): Likewise.
5959         * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
5960         debug_scattering_functions, debug_iteration_domains, debug_pdr,
5961         debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
5962         debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
5963         * tree-inline.c (debug_find_tree): Likewise.
5964         * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
5965         debug_ppl_powerset_matrix): Likewise.
5966         * var-tracking.c (debug_dv): Likewise.
5967         * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
5968         * cfgloop.c (verify_loop_structure): Likewise.
5969         * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
5970         * c-common.c (verify_sequence_points): Likewise.
5971         * sched-rgn.c (debug_regions, debug_region, debug_candidate,
5972         debug_candidates, debug_rgn_dependencies): Likewise.
5973         * tree-ssa-structalias.c (debug_constraint, debug_constraints,
5974         * debug_constraint_graph, debug_solution_for_var,
5975         debug_sa_points_to_info): Likewise.
5976         * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
5977         Likewie.
5978         * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
5979         debug_loops, debug_loop, debug_loop_num): Likewise.
5980         * passes.c (debug_pass): Likewise.
5981         (dump_properties): Likewise; add cfglayout property.
5982         (debug_properties): Likewise.
5983         * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
5984         * varpool.c (debug_varpool): Likewise.
5985         * regcprop.c (debug_value_data): Likewise.
5986         * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
5987         debug_immediate_uses_for): Likewise.
5989 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
5991         PR bootstrap/44315
5992         * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
5993         Filter out insn-flags.h.
5995 2010-05-29  Jan Hubicka  <jh@suse.cz>
5997         * cgraph.h (struct varpool_node_set_def,
5998         struct cgraph_node_set_def): Remove unused AUX pointer.
5999         (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
6000         VEC_empty macro.
6002 2010-05-29  Jan Hubicka  <jh@suse.cz>
6004         PR middle-end/44324
6005         * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
6007 2010-05-29  Richard Guenther  <rguenther@suse.de>
6009         * lto-streamer.c (cached_bp): New global variable.
6010         (bitpack_create): Return the cached bitpack, if available.
6011         (bitpack_delete): Clear and cache the bitpack, if appropriate.
6012         (bp_pack_value): Remove redundant asserts.
6014 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
6016         PR middle-end/44306
6017         * tree-if-conv.c (is_true_predicate): New.
6018         (is_predicated): Use is_true_predicate.
6019         (add_to_predicate_list): Same.  Do not use unshare_expr.
6020         (add_to_dst_predicate_list): Same.
6022 2010-05-29  Sebastian Pop  <sebastian.pop@amd.com>
6024         * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
6025         field on edges.
6026         (predicate_bbs): Same.
6027         (clean_predicate_lists): Same.
6028         (find_phi_replacement_condition): Do not AND the predicate from
6029         edge->aux.
6031 2010-05-29  H.J. Lu  <hongjiu.lu@intel.com>
6033         PR bootstrap/44315
6034         * Makefile.in (build/gencondmd.o): Add a missing `\'.
6036 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6038         PR target/44261
6039         config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
6040         (negdf2): Adjust expander pattern and use negdf2_slow.
6041         (negsf2): Likewise.
6043 2010-05-29  Nathan Froyd  <froydnj@codesourcery.com>
6045         * basic-block.h (struct control_flow_graph): Move last_label_uid field
6046         up.
6047         * df.h (struct df_base_ref): Move regno field up.
6048         * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
6049         * expr.h (struct separate_ops): Move location field up.
6050         * optabs.h (struct optab_d): Move libcall_basename field down.
6051         * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
6052         * config/i386/i386.h (struct machine_function): Convert call_abi field
6053         into a bitfield.  Move cfa field to the end of the structure.
6055 2010-05-29  Jan Hubicka  <jh@suse.cz>
6057         * varpool.c (varpool_get_node): Fix lookup.
6059 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6061         * config/spu/spu-protos.h: Do not include rtl.h.  Protect
6062         RTL specific prototypes with #ifdef RTX_CODE.
6063         * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
6064         * config/spu/t-spu-elf: Fix dependencies.
6066         * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
6068 2010-05-29  Mike Stump  <mikestump@comcast.net>
6070         PR bootstrap/44315
6071         * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
6072         TM_H when building to avoid dependency loops.
6074 2010-05-29  Jan Hubicka  <jh@suse.cz>
6076         * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
6077         refs and body; not the whole node for masters of materialized clones.
6079 2010-05-29  Mike Stump  <mikestump@comcast.net>
6081         * config/rs6000/rs6000-c.c: Remove c-tree.h include.
6083 2010-05-29  Jan Hubicka  <jh@suse.cz>
6085         * cgraph.c (clone_function_name): Take SUFFIX argument; export.
6086         (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
6087         use of clone_function_name.
6088         * cgraph.h (cgraph_create_virtual_clone,
6089         cgraph_function_versioning): update prototypes.
6090         (clone_function_name): Declare.
6091         * ipa-cp.c (ipcp_insert_stage): Update call of
6092         cgraph_create_virtual_clone.
6093         * omp-low.c (create_omp_child_function_name): Use
6094         cgraph_create_virtual_clone.
6095         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
6096         (cgraph_function_versioning): Take SUFFIX argument; produce new name
6097         and make decl local.
6099 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6101         * vec.h: Include statistics.h
6102         * Makefile.in: Introduce VEC_H.  Replace all vec.h dependencies
6103         with VEC_H.
6105 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6107         * c-lex.c: Do not include c-tree.h.
6108         * c-pretty-print.c: Likewise.
6109         * c-opts.c: Likewise.
6110         * c-gimplify.c: Likewise.
6111         * c-common.c: Likewise.
6112         * c-dump.c: Likewise.  Include c-common.h.
6114 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6116         * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
6117         before including diagnostic-core.h.
6118         (c_cpp_error): New prototype moved from c-tree.h.
6119         Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
6120         * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
6121         (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
6122         (c_cpp_error): Prototype moved to c-common.h.
6123         * Makefile.in: Update dependency for C_COMMON_H.
6125 2010-05-29  Steven Bosscher  <steven@gcc.gnu.org>
6127         * c-common.h: Add FIXME for awkward split of c_register_addr_space.
6128         * c-common.c (c_register_addr_space): Remove here.
6129         * c-decl.c (c_register_addr_space): Re-add here.
6131 2010-05-28  Mike Stump  <mikestump@comcast.net>
6133         * config/darwin-c.c: Remove c-tree.h include.
6135 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6137         * gcc.c: Include diagnostic.h.
6138         (error_count): Remove.  All users changed to use errorcount.
6139         (programname): Remove.  All users changed to use progname.
6140         (fancy_abort, internal_error, fatal_error, error, warning, inform,
6141         fnotice): Remove.
6142         (execute): Don't include "Internal error" and bug reporting
6143         information in argument of internal_error call.
6144         (process_command): Don't increment error_count after calling
6145         perror_with_name.
6146         (input_filename): Rename to gcc_input_filename.  All users
6147         changed.
6148         (main): Call diagnostic_initialize.  Register delete_temp_files
6149         with atexit.  Use seen_error to test for errors.
6150         * gcc.h: Include diagnostic-core.h.
6151         (fatal_error, error, warning): Remove.
6152         * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
6153         (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
6154         (gcc.o): Update dependencies.
6156 2010-05-28  Jeff Law  <law@redhat.com>
6158         * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
6159         functions.
6160         * ira.h (ira_bad_reload_regno): Declare
6161         * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
6163         * ira-color.c (update_curr_costs): Free updated hard reg costs.
6164         (ira_reassign_conflict_allocnos): Remove bogus asserts.
6165         (allocno_reload_assign): Likewise.
6167 2010-05-28  Nathan Froyd  <froydnj@codesourcery.com>
6169         * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
6170         build1_stat.
6172 2010-05-28  Richard Guenther  <rguenther@suse.de>
6174         PR lto/44312
6175         * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
6176         Stream fixed-point constants mode.
6177         (unpack_ts_type_value_fields): Fix width of TYPE_MODE
6178         and TYPE_PRECISION.
6179         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
6180         Stream fixed-point constants mode.
6181         (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
6182         and TYPE_PRECISION.
6184 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
6186         * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
6187         only place it was called from.
6188         (number_of_latch_executions): Do not return chrec_dont_know when the
6189         may_be_zero is a runtime condition: instead, return a COND_EXPR
6190         including the may_be_zero condition.
6191         * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
6192         of nb_iterations.
6193         * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
6194         COND_EXPRs.
6196 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
6198         * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
6199         generate COND_EXPRs for degenerate_phi_result.
6201 2010-05-28  Sebastian Pop  <sebastian.pop@amd.com>
6203         PR middle-end/44293
6204         * tree-if-conv.c (if_convertible_loop_p): Check the
6205         if-convertibility of phi nodes in non predicated BBs.
6207 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6209         * gcc.c (error, warning, inform): Remove duplicate ": " in output.
6211 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6213         PR driver/15303
6214         * gcc.c (inform, warning, inform): New functions.
6215         (fatal_ice): Rename to internal_error; change cmsgid parameter to
6216         gmsgid.  All callers changed.
6217         (notice): Rename to fnotice; add parameter fp.  All callers changed.
6218         (fatal_error): Rename to fatal_signal.  All users changed.
6219         (fatal): Rename to fatal_error; change cmsgid parameter to
6220         gmsgid.  All callers changed.
6221         (process_command): Use warning instead of error for warnings.
6222         (end_going_arg): Don't use _() around argument of error.
6223         (do_spec_1): Use inform for message from %n specs.  Use warning
6224         instead of error for warnings.
6225         (main): Use inform for comparison messages.  Use warning for
6226         message about unused linker input.
6227         (error): Increment error_count.  Print "error: ".
6228         * gcc.h (fatal): Change to fatal_error.
6229         (warning): Declare.
6230         * config/darwin-driver.c (darwin_default_min_version): Use warning
6231         instead of fprintf for warnings.
6232         * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
6234 2010-05-28  Julian Brown  <julian@codesourcery.com>
6236         * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
6237         (*thumb2_addsi3_compare0_scratch): New.
6238         * config/arm/constraints.md (Pv): New.
6239         * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
6240         for ARM mode only.
6241         (*addsi3_compare0_scratch): Likewise.
6243 2010-05-28  Jan Hubicka  <jh@suse.cz>
6245         * ipa-reference.c (add_static_var): Remove redundant all_module_statics
6246         check.
6247         (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
6248         only on local statics.
6250 2010-05-28  Iain Sandoe  <iains@gcc.gnu.org>
6252         * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
6254 2010-05-28  Maxim Kuvyrkov  <maxim@codesourcery.com>
6256         PR bootstrap/44314
6257         * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
6258         (OPTION_GLIBC): Define.
6260 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
6262         PR debug/41048
6263         * dwarf2out.c (double_int_type_size_in_bits): New function.
6264         (round_up_to_align): Change first argument and return value to
6265         double_int.
6266         (field_byte_offset): Work internally on double_ints.
6268         PR target/43636
6269         * builtins.c (expand_movstr): Use a temporary pseudo instead
6270         of target even when target is not NULL and not const0_rtx, but
6271         fails movstr predicate.
6272         * config/m32c/blkmov.md (movstr): Add predicate to first operand.
6274 2010-05-28  Joseph Myers  <joseph@codesourcery.com>
6276         * final.c (rest_of_clean_state): Use %m in errors instead of
6277         strerror (errno).
6278         * gengtype.c (read_input_list, close_output_files): Use xstrerror
6279         instead of strerror.
6280         * toplev.c (process_options): Use %m in errors instead of strerror
6281         (errno).
6282         * tree-dump.c (dump_begin): Use %m in errors instead of strerror
6283         (errno).
6285 2010-05-28  Uros Bizjak  <ubizjak@gmail.com>
6287         * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
6288         (ix86_canonical_va_list_type): Make static.  Add declaration.
6289         (ix86_enum_va_list): Make static.  Reindent.
6290         * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
6291         (ix86_canonical_va_list_type): Ditto.
6292         (ix86_enum_va_list): Ditto.
6294 2010-05-28  Richard Guenther  <rguenther@suse.de>
6296         * lto-wrapper.c (run_gcc): With -save-temps generate a
6297         user-visible ltrans filename.  Fixup ltrans unit numbering.
6299 2010-05-28  Kai Tietz  <kai.tietz@onevision.com>
6301         * c-common.c (c_common_nodes_and_builtins): Replace use
6302         of TARGET_ENUM_VA_LIST by target hook enum_va_list.
6303         * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
6304         to ix86_enum_va_list.
6305         * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
6306         * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
6307         (TARGET_ENUM_VA_LIST_P): Add hook description.
6308         * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
6309         * target.h (gcc_target): Add enum_va_list hook.
6311         PR bootstrap/44299
6312         * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
6313         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
6314         * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
6316 2010-05-28  Alan Modra  <amodra@gmail.com>
6318         PR target/44266
6319         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6320         emit_library_call machinery to set up __tls_get_addr calls.
6322 2010-05-28  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6324         * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
6326 2010-05-28  Dodji Seketeli  <dodji@redhat.com>
6328         Revert fix for PR c++/44188
6329         * c-common.c (is_typedef_decl): Revert the moving of  this
6330         definition ...
6331         * tree.c (is_typedef_decl): ... here.
6332         (typdef_variant_p): Revert the moving of this  definition
6333         here from gcc/cp/tree.c.
6334         * c-common.h (is_typedef_decl): Revert the moving of this
6335         declaration ...
6336         * tree.h (is_typedef_decl): ... here.
6337         (typedef_variant_p): Revert the moving of this  declaration here
6338         from gcc/cp/cp-tree.h
6339         * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
6340         (gen_tagged_type_die): Revert the splitting out of ...
6341         (gen_type_die_with_usage): ... this function. Revert the anonymous
6342         tagged type handling.
6343         (gen_typedef_die): Revert emitting DW_TAG_typedef  for
6344         typedefs naming anonymous tagged types.
6346 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
6348         * config/rs6000/rs6000-modes.def (PSImode): Delete.
6350 2010-05-28  Segher Boessenkool  <segher@kernel.crashing.org>
6352         * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
6353         * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
6354         throughout.
6355         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
6356         "xer" to "ca".
6357         Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
6358         XER_REGS to CA_REGS throughout.
6359         * config/rs6000/rs6000.h: Same.
6360         (ADDITIONAL_REGISTER_NAMES): Add "xer".
6361         * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO.  Document
6362         that mode_iterator "P" is the size for arithmetic carries as well.
6363         * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
6365 2010-05-28  Jakub Jelinek  <jakub@redhat.com>
6367         PR bootstrap/44255
6368         * combine.c (struct rtx_subst_pair): Define unconditionally.
6369         (propagate_for_debug_subst): Likewise.  If not AUTO_INC_DEC,
6370         copy_rtx pair->to instead of cleanup_auto_inc_dec it.
6371         Call make_compound_operation on pair->to.
6372         (propagate_for_debug): Don't call make_compound_operation here.
6373         Always use simplify_replace_fn_rtx.
6375 2010-05-27  Sterling Augustine  <sterling@tensilica.com>
6377         * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
6378         * config/xtensa/xtensa.c (override_options): Check
6379           TARGET_FORCE_NO_PIC and set flag_pic.
6380         * config/xtensa/xtensa.opt: Document -mforce-no-pic
6382 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
6384         PR bootstrap/44299
6385         * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
6386         * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
6388 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
6390         * diagnostic-core.h: New.  Contents moved from diagnostic.h and
6391         toplev.h.
6392         * diagnostic.c: Don't include toplev.h.
6393         (progname): Define.  Moved from toplev.c.
6394         (seen_error): New function.
6395         * diagnostic.h: Include diagnostic-core.h.
6396         (diagnostic_t, emit_diagnostic): Don't declare here.
6397         * toplev.c (progname): Move to toplev.c.
6398         (emit_debug_global_declarations, compile_file, finalize,
6399         do_compile, toplev_main): Use seen_error.
6400         * toplev.h: Include diagnostic-core.h.
6401         (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
6402         internal_error, warning, warning_at, error, error_n, error_at,
6403         fatal_error, pedwarn, permerror, sorry, inform, inform_n,
6404         verbatim, fnotice, progname): Move to diagnostic-core.h.
6405         * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
6406         (expand_builtin_expect): Use seen_error.
6407         * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
6408         (c_make_fname_decl, c_write_global_declarations): Use seen_error.
6409         * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
6410         * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
6411         * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
6412         * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
6413         errorcount for errors.
6414         * c-opts.c (c_common_finish): Use seen_error.
6415         * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
6416         * cgraphunit.c (verify_cgraph_node, verify_cgraph,
6417         cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
6418         * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
6419         (get_coverage_counts): Use seen_error.
6420         * dwarf2out.c (dwarf2out_finish): Use seen_error.
6421         * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
6422         gimplify_body): Use seen_error.
6423         * ipa-inline.c (cgraph_early_inlining): Use seen_error.
6424         * ipa-pure-const.c (gate_pure_const): Use seen_error.
6425         * ipa-reference.c (gate_reference): Use seen_error.
6426         * jump.c: Include diagnostic-core.h instead of diagnostic.h.
6427         * lambda-code.c: Include diagnostic-core.h instead of
6428         diagnostic.h.
6429         * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
6430         * lto-compress.c: Include diagnostic-core.h instead of
6431         diagnostic.h.
6432         * lto-section-in.c: Include diagnostic-core.h instead of
6433         diagnostic.h.
6434         * lto-streamer-out.c: Include diagnostic-core.h instead of
6435         diagnostic.h.
6436         * lto-streamer.c: Include diagnostic-core.h instead of
6437         diagnostic.h.
6438         (gate_lto_out): Use seen_error.
6439         * matrix-reorg.c: Include diagnostic-core.h instead of
6440         diagnostic.h.
6441         * omega.c: Include diagnostic-core.h instead of diagnostic.h.
6442         * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
6443         (gate_expand_omp, lower_omp_1): Use seen_error.
6444         * passes.c: Include diagnostic-core.h instead of diagnostic.h.
6445         (rest_of_decl_compilation, rest_of_type_compilation,
6446         gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
6447         * tree-cfg.c (label_to_block_fn): Use seen_error.
6448         * tree-inline.c (optimize_inline_calls): Use seen_error.
6449         * tree-mudflap.c (mudflap_finish_file): Use
6450         seen_error.
6451         * tree-optimize.c (gate_all_optimizations,
6452         gate_all_early_local_passes, gate_all_early_optimizations): Use
6453         seen_error.
6454         * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
6455         * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
6456         (varpool_remove_unreferenced_decls,
6457         varpool_assemble_pending_decls): Use seen_error.
6458         * Makefile.in (DIAGNOSTIC_CORE_H): Define.
6459         (TOPLEV_H, DIAGNOSTIC_H): Update.
6460         (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
6461         lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
6462         c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
6463         builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
6464         coverage.o, lambda-code.o): Update dependencies.
6466 2010-05-25  Dodji Seketeli  <dodji@redhat.com>
6468         PR c++/44188
6469         * c-common.c (is_typedef_decl): Move this definition ...
6470         * tree.c (is_typedef_decl): ... here.
6471         (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6472         * c-common.h (is_typedef_decl): Move this declaration ...
6473         * tree.h (is_typedef_decl): ... here.
6474         (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6475         * dwarf2out.c (is_naming_typedef_decl): New function.
6476         (gen_tagged_type_die): Split out of ...
6477         (gen_type_die_with_usage): ... this function. When an anonymous
6478         tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6479         is emitted for the typedef.
6480         (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6481         anonymous tagged types.
6483 2010-05-27  Jason Merrill  <jason@redhat.com>
6485         * print-tree.c (debug_vec_tree): New fn.
6486         (print_vec_tree): New fn.
6487         * tree.h: Declare them.
6488         * gdbinit.in (pvt): New command.
6490         * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
6492         * gdbinit.in (pdd): New command.
6494 2010-05-27  Jan Hubicka  <jh@suse.cz>
6496         * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
6497         (update_caller_keys): Return early if there are no callers;
6498         only update fibheap when decresing the key.
6499         (update_callee_keys): Avoid recursion.
6500         (decide_inlining_of_small_functions): When badness does not match;
6501         re-insert into fibheap.
6503 2010-05-27  Steven Bosscher  <steven@gcc.gnu.org>
6505         * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
6506         (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
6507         (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
6508         (ALL_HOST_OBJS): Now a union of the above two.
6509         <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
6510         all files in ALL_HOST_FRONTEND_OBJS.
6511         * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
6513         * c-common.c: Pretend to be a backend file by undefining
6514         IN_GCC_FRONTEND (still need rtl.h here).
6516 2010-05-27  Jan Hubicka  <jh@suse.cz>
6518         * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
6519         * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
6521 2010-05-27  Jan Hubicka  <jh@suse.cz>
6523         * sched-ebb.c: Rename struct deps to struct deps_desc.
6524         * ddg.c: Likewise.
6525         * sel-sched-ir.c: Likewise.
6526         * sched-deps.c: Likewise.
6527         * sched-int.h: Likewise.
6528         * sched-rgn.c: Likewise.
6530 2010-05-27  Jon Beniston  <jon@beniston.com>
6532         PR 43726
6533         * config/lm32/lm32.h: Remove definition of
6534         GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
6536 2010-05-27  Eric Botcazou  <ebotcazou@adacore.com>
6538         PR lto/44230
6539         * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
6541 2010-05-27  Richard Guenther  <rguenther@suse.de>
6543         PR tree-optimization/44284
6544         * tree-vect-stmts.c (vectorizable_assignment): Handle
6545         sign-changing conversions as simple copy.
6547 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
6549         * gthr-posix.h (pthread_cancel): Don't declare if compiling against
6550         Bionic C library.
6551         (__gthread_active_p): Check for pthread_create if compiling against
6552         Bionic C library.
6554 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
6556         Support compilation for Android platform.  Reimplement -mandroid.
6558         * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
6559         (*android*): Set ANDROID_DEFAULT.
6560         (arm*-*-linux*): Include linux-android.h.
6561         (arm*-*-eabi*): Don't include previous -mandroid implementation.
6562         * config/arm/eabi.h: Remove, move Android-specific parts ...
6563         * config/linux-android.h: ... here.  New file.
6564         * config/arm/eabi.opt: Rename to ...
6565         * config/linux-android.opt: ... this.
6566         (mandroid): Allow -mno-android option.  Initialize based on
6567         ANDROID_DEFAULT.
6568         * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
6569         Move logic to corresponding LINUX_TARGET_* macros.
6570         (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
6571         * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
6572         (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
6573         Android definitions.
6574         (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
6575         * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
6576         Document.
6578 2010-05-27  Maxim Kuvyrkov  <maxim@codesourcery.com>
6580         Add support for Bionic C library
6582         * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
6583         macro.
6584         (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
6585         (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
6587         * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
6588         (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
6589         (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
6590         to support multiple C libraries.  Handle Bionic.
6591         (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
6592         (BIONIC_DYNAMIC_LINKER64): Define.
6593         (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
6594         Update.
6595         (TARGET_HAS_SINCOS): Enable for Bionic.
6597         * config/linux.opt: Rewrite to handle more than 2 C libraries.  Make
6598         the last option specified on command line take effect.
6599         (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
6600         (mbionic): New.
6601         (mglibc, muclibc): Update.
6603         * config/alpha/linux-elf.h, config/rs6000/linux64.h,
6604         * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
6605         DEFAULT_LIBC.
6607         * doc/invoke.texi (-mglibc, -muclibc): Update.
6608         (-mbionic): Document.
6610 2010-05-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
6612         * c-common.h (c_register_addr_space): Add prototype.
6613         (ADDR_SPACE_KEYWORD): Remove.
6614         * c-common.c (c_register_addr_space): New function.
6615         (c_addr_space_name): Reimplement.
6616         (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
6618         * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
6619         (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
6621         * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
6622         Remove TARGET_ADDR_SPACE_KEYWORDS.
6624 2010-05-27  Joseph Myers  <joseph@codesourcery.com>
6626         * input.c: New file.
6627         * input.h (main_input_filename): Move declaration to toplev.h.
6628         * toplev.c (input_location, line_table): Move to input.c
6629         * toplev.h (main_input_filename): Move declaration from input.h.
6630         * tree.c (expand_location): Move to input.c.
6631         * Makefile.in (OBJS-common): Add input.o.
6632         (input.o): Add dependencies.
6634 2010-05-27  Richard Guenther  <rguenther@suse.de>
6636         * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
6637         for non-existant files.
6638         (fork_execute): Mark args_name file as deleted.
6640 2010-05-27  Kai Tietz  <kai.tietz@onevision.com>
6642         PR bootstrp/44287
6643         * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
6644         (narrow_signed_type): Likewise.
6646 2010-05-26  Jan Hubicka  <jh@suse.cz>
6648         * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
6649         edge only when checking is enabled; check using former_clone_of;
6650         check inline clones too.
6651         (cgraph_materialize_clone): Record former_clone_of pointer.
6652         (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
6653         combining redirections; dump args_to_skip bitmap
6654         (cgraph_materialize_all_clones): Do no redirection here.
6655         * ipa-inline.c (inline_transform): Do redirection here.
6656         * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
6657         cheking only).
6659 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
6661         * config/avr/avr-c.c: Do not include regs.h.
6662         Include cpplib.h for cpp_define and tree.h for c-common.h.
6663         * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
6664         * config/avr/t-avr: Fix dependencies for avr-c.o.
6666 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
6668         * explow.c (set_stack_check_libfunc): Adjust to accept name as a
6669         string instead of SYMBOL_REF rtx.
6670         * rtl.h (set_stack_check_libfunc): Move prototype from here...
6671         * libfuncs.h: ...to here.  Adjust for explow.c change.
6673 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
6675         * pretty-print.c: Don't include ggc.h.
6676         (identifier_to_locale_alloc, identifier_to_locale_free): Define.
6677         (identifier_to_locale): Use them for allocation.
6678         * pretty-print.h (identifier_to_locale_alloc,
6679         identifier_to_locale_free): Declare.
6680         * toplev.c (alloc_for_identifier_to_locale): New.
6681         (general_init): Set identifier_to_locale_alloc and
6682         identifier_to_locale_free.
6683         * Makefile.in (pretty-print.o): Update dependencies.
6685 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
6687         * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
6688         pointer types if they have different alignment or mode.
6690 2010-05-26  Anatoly Sokolov  <aesok@post.ru>
6692         * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6693         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6694         * config/sparc/sparc-protos.h (function_value): Remove declaration.
6695         * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
6696         sparc_function_value_regno_p): New functions.
6697         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6698         TARGET_FUNCTION_VALUE_REGNO_P): Define.
6699         (function_value): Rename to...
6700         (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
6701         argument to 'outgoing'.
6702         (function_arg_record_value, function_arg_union_value,
6703         function_arg_vector_value): Update comment.
6705 2010-05-26  Eric Botcazou  <ebotcazou@adacore.com>
6707         * dwarf2out.c (struct dw_fde_struct): Reorder flags.
6708         (fde_needed_for_eh_p): New predicate.
6709         (output_call_frame_info): Use it throughout to decide whether FDEs
6710         are needed for EH purpose.
6711         (dwarf2out_begin_prologue): Reorder assignments.
6713 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6715         * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
6716         special case loop->header.
6717         (is_predicated): New.
6718         (if_convertible_loop_p): Call it.
6720 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6722         * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
6723         iterator in parameter.  Do not generate code during the analysis.
6724         (tree_if_convert_cond_stmt): Removed.
6725         (tree_if_convert_stmt): Removed.
6726         (predicate_bbs): New.
6727         (if_convertible_loop_p): Call predicate_bbs.
6728         (tree_if_conversion): Simplify the top-level logic as predicate_bbs
6729         now contains all the analysis part.
6731 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6733         * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
6734         statements in the analysis part.
6735         (tree_if_convert_stmt): Update comment.
6736         (remove_conditions_and_labels): New.
6737         (combine_blocks): Call remove_conditions_and_labels.
6738         (tree_if_conversion): Update comment.
6740 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6742         * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
6743         than 2 predecessors or more than 2 successors.
6745 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6747         * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
6748         of loops in which the data dependence analysis fails.
6750 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6752         * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
6753         CDI_POST_DOMINATORS.
6754         (tree_if_conversion): Same.
6756 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6758         * tree-if-conv.c (tree_if_conversion): Do not return a bool.
6760 2010-05-26  Sebastian Pop  <sebastian.pop@amd.com>
6762         * tree-if-conv.c: Update copyright years.  Fix comments.
6763         Fix indentation.
6765 2010-05-26  Kai Tietz  <kai.tietz@onevision.com>
6767         * builtin-types.def (BT_INT128): New primitive type.
6768         (BT_UINT128): Likewise.
6769         * c-common.c (c_common_r): Add __int128 keyword.
6770         (c_common_type_for_size): Handle __int128.
6771         (c_common_type_for_mode): Likewise.
6772         (c_common_signed_or_unsigned_type): Likewise.
6773         (c_common_nodes_and_builtins): Add builtin type
6774         if target supports 128-bit integer scalar.
6775         * c-common.h (enum rid): Add RID_INT128.
6776         * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
6777         if target supports 128-bit integer scalar.
6778         * c-decl.c (declspecs_add_type): Handle new keyword __int128.
6779         (finish_declspecs): Likewise.
6780         * c-parser.c (c_token_starts_typename): Handle RID_INT128.
6781         (c_token_starts_declspecs): Likewise.
6782         (c_parser_declspecs): Likewise.
6783         (c_parser_attributes): Likewise.
6784         (c_parser_objc_selector): Likewise.
6785         * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
6786         * c-tree.h (enum c_typespec_keyword): Add cts_int128.
6787         * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
6788         * tree.c (make_or_reuse_type): Likewise.
6789         (make_unsigned_type): Likewise.
6790         (build_common_tree_nodes_2): Likewise.
6791         * tree.h (enum integer_type_kind): Add itk_int128 and
6792         itk_unsigned_int128.
6793         (int128_integer_type_node): New define.
6794         (int128_unsigned_type_node): New define.
6795         * doc/extend.texi: Add documentation about __int128 type.
6797 2010-05-26  Richard Guenther  <rguenther@suse.de>
6799         * tree-ssa-sccvn.c (copy_nary): Adjust.
6800         (copy_phis): Rename to ...
6801         (copy_phi): ... this.  Adjust.
6802         (copy_references): Rename to ...
6803         (copy_reference): ... this.  Adjust.
6804         (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
6805         result into the valid table.
6807 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
6809         * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
6810         insn-config.h, insn-codes.h, recog.h, and optabs.h.
6812 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6814         * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
6816 2010-05-26  Richard Guenther  <rguenther@suse.de>
6818         * opts.c (common_handle_option): Handle OPT_Ofast.
6820 2010-05-26  Joseph Myers  <joseph@codesourcery.com>
6822         * diagnostic.c: Don't include opts.h.
6823         (permissive_error_option): Define.
6824         (diagnostic_initialize): Take n_opts parameter.  Allocate memory
6825         for classify_diagnostic.  Don't use memset for
6826         classify_diagnostic.  Initialize new and recently added fields.
6827         (diagnostic_classify_diagnostic): Use context->n_opts instead of
6828         N_OPTS.
6829         (diagnostic_report_diagnostic): Pass context parameter to
6830         diagnostic_report_warnings_p.  Use option_enabled and option_name
6831         hooks from context.
6832         (emit_diagnostic): Use permissive_error_option.
6833         (permerror): Likewise.
6834         * diagnostic.h: Don't include options.h.
6835         (struct diagnostic_context): Add n_opts, opt_permissive,
6836         inhibit_warnings, warn_system_headers, option_enabled and
6837         option_name fields.  Change classify_diagnostic to a pointer.
6838         * opts-diagnostic.h: New file.
6839         * opts.c: Include opts-diagnostic.h.
6840         (common_handle_option): Set global_dc fields for -Wfatal-errors,
6841         -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
6842         (option_name): New function.
6843         * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
6844         (c_common_handle_option): Set global_dc->permissive for
6845         -fpermissive.
6846         * c-common.c (c_cpp_error): Save and restore
6847         global_dc->warn_system_headers, not variable warn_system_headers.
6848         * toplev.c: Include opts-diagnostic.h.
6849         (general_init): Update call to diagnostic_initialize.  Set
6850         global_dc->show_column, global_dc->option_enabled and
6851         global_dc->option_name.
6852         (process_options): Don't set global_dc fields here.
6853         * Makefile.in (DIAGNOSTIC_H): Remove options.h.
6854         (diagnostic.o, opts.o, toplev.o): Update dependencies.
6856 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
6858         * config/picochip/picochip.md (movsi): Split a movsi from a
6859         const after reload.
6861 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6863         * ggc-zone.c: Update copyright year.
6864         (poison_region): Mark memory for Valgrind as undefined before
6865         memset () call and inaccessible afterwards.
6866         (ggc_pch_total_size): Change type of i to int.
6868 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6870         * ggc-common.c (ggc_free_overhead): Allow empty slot.
6872 2010-05-26  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
6874         * ggc-common.c: Update copyright year.
6875         (ggc_rlimit_bound): Remove prototype.  Compile only if
6876         !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
6877         (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
6878         && !ENABLE_GC_ALWAYS_COLLECT.  Make static.
6879         (ggc_min_heapsize_heuristic): Likewise.
6881 2010-05-26  Richard Guenther  <rguenther@suse.de>
6883         PR rtl-optimization/44164
6884         * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
6885         no-common access-path disambiguation.
6886         (indirect_ref_may_alias_decl_p): Adjust.
6887         (indirect_refs_may_alias_p): Likewise.
6888         (refs_may_alias_p_1): Likewise.
6890 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
6892         * c-typeck.c: Do not include expr.h.
6894 2010-05-26  Steven Bosscher  <steven@gcc.gnu.org>
6896         * rtl.h (decl_default_tls_model): Move prototype from here...
6897         * output.h: ...to here.
6898         * c-decl.c: Do not include rtl.h.
6899         * c-pragma.c: Likewise.
6900         * c-parser.c: Likewise.
6901         * c-gimplify.c: Likewise.  And also not hard-reg-set.
6902         * c-common.c: Do not include rtl.h.  Include tm_p.h and add a
6903         FIXME note for it.  Add a FIXME note for expr.h.
6904         * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
6905         ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
6906         defined.
6908 2010-05-26  Jakub Jelinek  <jakub@redhat.com>
6910         PR target/44199
6911         * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
6912         or total_size is larger than red zone size for non-V4 ABI, emit a
6913         stack_tie resp. frame_tie insn before stack pointer restore.
6914         * config/rs6000/rs6000.md (frame_tie): New insn.
6916 2010-05-25  Eric Botcazou  <ebotcazou@adacore.com>
6918         * function.h (struct function): Add can_throw_non_call_exceptions bit.
6919         * lto-streamer-in.c (input_function): Stream it in.
6920         * lto-streamer-out.c (output_function): Stream it out.
6921         * function.c (allocate_struct_function): Set it.
6922         (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
6923         for flag_non_call_exceptions.
6924         * cfgbuild.c (control_flow_insn_p): Likewise.
6925         (make_edges): Likewise.
6926         * cfgexpand.c (expand_stack_alignment): Likewise.
6927         * combine.c (distribute_notes): Likewise.
6928         * cse.c (cse_extended_basic_block): Likewise.
6929         * except.c (insn_could_throw_p): Likewise.
6930         * gcse.c (simple_mem): Likewise.
6931         * ipa-pure-const.c (check_call): Likewise.
6932         (check_stmt ): Likewise.
6933         * lower-subreg.c (lower-subreg.c): Likewise.
6934         * optabs.c (emit_libcall_block): Likewise.
6935         (prepare_cmp_insn): Likewise.
6936         * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
6937         * postreload.c (rest_of_handle_postreload): Likewise.
6938         * reload1.c (reload_as_needed): Likewise.
6939         (emit_input_reload_insns): Likewise.
6940         (emit_output_reload_insns): Likewise.
6941         (fixup_abnormal_edges): Likewise.
6942         * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
6943         * store-motion.c (find_moveable_store): Likewise.
6944         * tree-eh.c (stmt_could_throw_p): Likewise.
6945         (tree_could_throw_p): Likewise.
6946         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
6947         * config/arm/arm.c (arm_expand_prologue): Likewise.
6948         (thumb1_expand_prologue): Likewise.
6949         * config/rx/rx.md (cbranchsf4): Likewise.
6950         (cmpsf): Likewise.
6951         * config/s390/s390.c (s390_emit_prologue): Likewise.
6952         * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
6953         (inline_forbidden_into_p): New predicate.
6954         (expand_call_inline): Use it to forbid inlining.
6955         (tree_can_inline_p): Likewise.
6957 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
6959         * config/i386/i386-c.c: Do not include rtl.h.
6960         * config/i386/t-i386: Update dependencies.
6962 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
6964         * attribs.c: Do not include rtl.h.
6965         * Makefile.in: Update dependencies.
6967 2010-05-25  Anatoly Sokolov  <aesok@post.ru>
6969         * double-int.h (double_int_and): New.
6970         * combine.c (try_combine): Clean up, use double_int_* and
6971         immed_double_int_const functions.
6973 2010-05-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6975         * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
6976         stderr to /dev/null instead of grep -q.
6977         * configure: Regenerate.
6979 2010-05-25  Steven Bosscher  <steven@gcc.gnu.org>
6981         * Makefile.in (EXCEPT_H): Fix typo.
6983 2010-05-25  Vladimir Makarov  <vmakarov@redhat.com>
6985         * ira-build.c (update_conflict_hard_reg_costs): New.
6986         (ira_build): Call update_conflict_hard_reg_costs.
6988 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
6990         PR debug/41371
6991         * var-tracking.c (find_loc_in_1pdv): Guard asserts with
6992         ENABLE_CHECKING.
6993         (intersect_loc_chains): Walk the s2var's loc_chain together
6994         with s1node chain as long as the locations are equal, don't
6995         call find_loc_in_1pdv in that case.
6997         PR debug/42801
6998         * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
6999         (copy_bind_expr): ... instead of here.
7000         (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
7001         if the block hasn't been remapped.
7002         * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
7003         emitting concrete instance of abstract VLA, add DW_AT_type attribute.
7005 2010-05-25  Richard Guenther  <rguenther@suse.de>
7007         PR middle-end/44069
7008         * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
7009         out-of-bounds array accesses.
7011 2010-05-25  Richard Guenther  <rguenther@suse.de>
7013         * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
7014         (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
7015         (run_gcc): Re-organize to make cleanup easier.
7017 2010-05-25  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7019         * config/s390/s390.c (optimization_options): Fix and move the
7020         flag_prefetch_loop_arrays override ...
7021         (override_options): ... here.
7023 2010-05-25  Joseph Myers  <joseph@codesourcery.com>
7025         * diagnostic.c: Don't include plugin.h.
7026         (diagnostic_report_diagnostic): Don't handle plugins specially
7027         here.  Pass context to internal_error callback.
7028         * diagnostic.h (struct diagnostic_context): Add context parameter
7029         to internal_error callback.
7030         * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
7031         * plugin.h (struct diagnostic_context): Declare.
7032         (warn_if_plugins, plugins_internal_error_function): Declare.
7033         * toplev.c (general_init): Set global_dc->internal_error.
7034         * Makefile.in (diagnostic.o): Update dependencies.
7036 2010-05-25 Iain Sandoe  <iains@gcc.gnu.org>
7038         * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
7039         * config/rs6000/t-darwin64: New.
7040         * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
7041         build crt2.
7043 2010-05-25  Christian Borntraeger  <borntraeger@de.ibm.com>
7045         PR 44203
7046         * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
7047         match the original (and intended) behaviour before r159557.  This
7048         changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
7049         in two ways.
7051 2010-05-25  Richard Guenther  <rguenther@suse.de>
7053         * doc/invoke.texi: Document -Ofast.
7054         * target.h (struct gcc_target): Add handle_ofast.
7055         * target-def.h (TARGET_HANDLE_OFAST): Add.
7056         (TARGET_INITIALIZER): Adjust.
7057         * opts.c (decode_options): Handle -Ofast.  Enable -ffast-math with it.
7058         * common.opt (Ofast): Add.
7060 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
7062         * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
7063         * doc/md.texi (cstoreXX4): Update for cond-optab changes.
7065 2010-05-25  Paolo Bonzini  <bonzini@gnu.org>
7067         PR target/43610
7068         * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
7069         even if !FLOAT_LIB_COMPARE_RETURNS_BOOL.  Always compute true_rtx and
7070         false_rtx.  Use false_rtx to compute the correct *ptest for reversed
7071         comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
7073 2010-05-25  Jakub Jelinek  <jakub@redhat.com>
7075         * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
7076         DW_OP_minus with negated offset instead of DW_OP_plus.
7077         (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
7079 2010-05-25  Wei Guozhi  <carrot@google.com>
7081         * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
7082         tst instruction and a new alternative.
7083         * config/arm/constraints.md (Pu): New constraint.
7085 2010-05-24  Sebastian Pop  <sebastian.pop@amd.com>
7087         * function.c (assign_stack_local_1): Initialize variable
7088         to avoid warning when bootstrapping at -O3.
7090 2010-05-24  Steven Bosscher  <steven@gcc.gnu.org>
7092         * configure.ac (all_lang_makefiles): Remove everything related to it.
7093         * configure: Regenerate.
7094         * Makefile.in: Fix reference to ada Make-lang.in.
7095         Remove support for LANG_MAKEFILES.
7097 2010-05-24  Daniel Jacobowitz  <dan@codesourcery.com>
7098             Sandra Loosemore  <sandra@codesourcery.com>
7100         * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
7101         * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
7102         description.  Add arm_neon_fp16_ok.
7103         (Add Options): Add arm_neon and arm_neon_fp16.
7105 2010-05-24  Joseph Myers  <joseph@codesourcery.com>
7107         * diagnostic.c: Don't include flags.h.
7108         (pedantic_warning_kind, permissive_error_kind): Take diagnostic
7109         context parameters.  Check flags in the context passed as a parameter.
7110         (diagnostic_build_prefix): Add context parameter.  Check
7111         show_column flag in context.
7112         (diagnostic_action_after_output): Check fatal_errors flag in context.
7113         (diagnostic_report_current_module): Check show_column flag in context.
7114         (default_diagnostic_starter): Update call to
7115         diagnostic_build_prefix.
7116         (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
7117         (emit_diagnostic): Pass context to permissive_error_kind.
7118         (permerror): Pass context to permissive_error_kind.
7119         * diagnostic.h (struct diagnostic_context): Add show_column,
7120         pedantic_errors, permissive and fatal_errors fields.
7121         (diagnostic_build_prefix): Update prototype.
7122         * langhooks.c
7123         * toplev.c (process_options): Set flags in global_dc from
7124         flag_show_column, flag_pedantic_errors, flag_permissive,
7125         flag_fatal_errors.
7126         * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
7127         to diagnostic_build_prefix.
7128         * Makefile.in (diagnostic.o): Update dependencies.
7130 2010-05-24  H.J. Lu  <hongjiu.lu@intel.com>
7132         * config/i386/ia32intrin.h (__crc32q): Define only if
7133         __SSE4_2__ is defined.
7135 2010-05-24  Iain Sandoe  <iains@gcc.gnu.org>
7137         PR target/44132
7138         PR middle-end/43602
7139         * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
7140         DECL_VISIBILITY_SPECIFIED.
7141         (emutls_decl): Set DECL_PRESERVE_P and copy
7142         DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
7143         (emutls_finalize_control_var): New callback.
7144         (emutls_finish): Finalize emutls control variables.
7145         * toplev.c (compile_file): Move the call to emutls_finish ()
7146         before varpool_assemble_pending_decls ().
7148 2010-05-24  Daniel Gutson  <dgutson@codesourcery.com>
7150         * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
7151         added to the preprocessor condition.
7153 2010-05-24  Paul Brook  <paul@codesourcery.com>
7155         * gengtype-lex.l: Add HARD_REG_SET.
7156         * expr.c (expand_expr_real_1): Record writes to hard registers.
7157         * function.c (rtl_data): Add asm_clobbers.
7158         * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
7159         (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
7160         Use crtl->asm_clobbers.
7162 2010-05-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7164         * doc/makefile.texi (Makefile): Mention stages 'profile'
7165         and 'feedback' for profiledbootstrap.
7167 2010-05-23  H.J. Lu  <hongjiu.lu@intel.com>
7169         PR target/44245
7170         * config/i386/i386.c (def_builtin): Properly check
7171         OPTION_MASK_ISA_64BIT.
7173 2010-05-23  Joseph Myers  <joseph@codesourcery.com>
7175         * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
7176         typedefs with different but compatible types.  Allow duplicate
7177         typedefs with the same type except for pedantic non-C1X, but give
7178         warning for variably modified types.
7179         * c-typeck.c (tagged_types_tu_compatible_p,
7180         function_types_compatible_p, type_lists_compatible_p,
7181         comptypes_internal): Add parameter different_types_p; set
7182         *different_types_p for different but compatible types.  All
7183         callers changed.
7184         (comptypes_check_different_types): New.
7185         * c-tree.h (comptypes_check_different_types): Declare.
7187 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
7189         * regs.h: Do not include obstack.h, basic-block.h.  Include machmode.h.
7190         * jump.c: Include basic-block.h.
7191         * profile.c: Likewise.
7192         * tree-profile.c: Likewise.
7193         * coverage.c: Likewise.
7194         * basic-block.h (optimize_function_for_size_p): Move to function.h.
7195         (optimize_function_for_speed_p): Likewise.
7196         * function.h (optimize_function_for_size_p,
7197         optimize_function_for_speed_p): Moved here from basic-block.h.
7198         * Makefile.in: Update dependencies.
7200 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7202         * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
7203         before calling make; allow override through $MAKE.
7204         * doc/invoke.texi (Optimize Options): Document override.
7206 2010-05-23  Anatoly Sokolov  <aesok@post.ru>
7208         * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
7209         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7210         (rs6000_mode_dependent_address_ptr): Make static.
7211         * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7212         * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
7213         Remove.
7215 2010-05-23  Maarten Lankhorst  <mlankhorst@codeweavers.com>
7217         PR target/43869
7218         * config/i386/i386.c: Make sure that the correct regparm is passed.
7220 2010-05-23  Steven Bosscher  <steven@gcc.gnu.org>
7222         * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
7223         * sbitmap.c: ...to here to internalize sbitmap element access.
7224         Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
7225         Explain why basic-block.h is included.
7226         * function.h: Include tm.h for CUMULATIVE_ARGS.
7227         * Makefile.in: Update dependencies.
7229 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
7231         * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
7232         New core types.
7233         * sbitmap.h (struct sbitmap_def): Do not typedef here.
7234         * sbitmap.c: Include sbitmap.h.
7235         * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
7236         hard-reg-set.h.  Split everything related to regsets out from here...
7237         * regset.h: ...to here.  New file.
7238         * df.h: Include regset.h and sbitmap.h.
7239         * tree-flow.h: Likewise.
7240         * cfgloop.h: Likewise.
7241         * except.h: Do not include sbitmap.h.  Include hashtab.h.
7242         * cgraph.h: Include vec.h and function.h.
7243         * reload.h (struct insn_chain): Change types of live_throughout
7244         and dead_or_set from regset_head to bitmap_head.
7245         (compute_use_by_pseudos): Be defined also if regset.h is not included.
7246         * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
7247         spilled_regs from regset_head to bitmap_head to avoid dependency
7248         in regset.h.
7249         * sel-sched-ir.h: Include regset.h.
7250         * reload.c: Include df.h before reload.h.
7251         * caller-save.c: Likewise.
7252         * reload1.c: Likewise.
7253         * ira.c: Likewise.
7254         (mark_elimination): Update type of r to bitmap, consistent with
7255         DF_LR_IN.
7256         * dominance.c: Include bitmap.h.
7257         * modulo-sched.c: Include df.h.
7258         * cfganal.c: Include bitmap.h and sbitmap.h.
7259         * cfgbuild.c: Include sbitmap.h.
7260         * lcm.c: Include sbitmap.h.
7261         * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
7262         * domwalk.c: Include sbitmap.h, exclude ggc.h.
7263         * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
7264         * cselib.c: Include bitmap.h.
7265         * tree-optimize.c: Include regset.h.
7266         * stmt.c: Include bitmap.h.
7267         * Makefile.in: Update dependencies.
7269 2010-05-22  Jan Hubicka  <jh@suse.cz>
7271         * cgraph.h (struct varpool_node): Add same_comdat_group.
7272         * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
7273         pointer.
7274         (output_varpool): Update call of lto_output_varpool_node.
7275         (input_varpool): Read same_comdat_group pointer.
7276         (input_varpool_1): Fixup same_comdat_group pointer.
7277         * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
7278         group is needed, all are.
7279         * varpool.c (varpool_remove_node): Remove node from same comdat group
7280         linklist too.
7281         (varpool_analyze_pending_decls): Walk same comdat groups.
7283 2010-05-22  Steven Bosscher  <steven@gcc.gnu.org>
7285         * rtl.h (union rtunion_def): Remove rt_bit member.
7286         (XBITMAP, X0BITMAP, XCBITMAP): Remove.
7287         * print-rtl (print_rtx): Do not print the member.
7288         * gengtype.c (adjust_field_rtx_def): Do not handle it.
7289         * gengenrtl.c (type_from_format): Likewise.
7290         (accessor_from_format): Likewise.
7292 2010-05-22  Joseph Myers  <joseph@codesourcery.com>
7294         * dbgcnt.c: Include toplev.h instead of errors.h.
7295         * ira-emit.c: Don't include errors.h.
7296         * ira.c: Include toplev.h instead of errors.h.
7297         * lto-compress.c: Include toplev.h instead of errors.h.
7298         * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
7299         ira.o, dbgcnt.o): Update dependencies.
7301 2010-05-22  Richard Guenther  <rguenther@suse.de>
7303         * gimple.c (gimple_types_compatible_p): Check type qualifications
7304         before merging pointer to complete and pointer to incomplete type.
7305         * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
7306         we use our own resolution algorithm.  The gold linker plugin
7307         doesn't do the job we want it to do here.
7309 2010-05-22  Anatoly Sokolov  <aesok@post.ru>
7311         * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7312         * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7313         (sparc_mode_dependent_address_p): New function.
7315 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
7317         * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
7319         * timevar.c: Do not include any core headers.
7320         (timevar_print): De-i18n-ize.
7321         (print_time): Likewise.
7322         * timevar.h (timevar_push, timevar_pop): Make inline functions.
7324 2010-05-21  Joseph Myers  <joseph@codesourcery.com>
7326         * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
7327         langhooks-def.h.
7328         (diagnostic_initialize): Initialize x_data not last_function.
7329         (diagnostic_report_current_function): Move to tree-diagnostic.c.
7330         (default_diagnostic_starter): Call
7331         diagnostic_report_current_module not
7332         diagnostic_report_current_function.
7333         (diagnostic_report_diagnostic): Initialize x_data not
7334         abstract_origin.
7335         (verbatim): Likewise.
7336         * diagnostic.h (struct diagnostic_info): Change abstract_origin to
7337         x_data.
7338         (struct diagnostic_context): Change last_function to x_data.
7339         (diagnostic_auxiliary_data): Replace with
7340         diagnostic_context_auxiliary_data and
7341         diagnostic_info_auxiliary_data.
7342         (diagnostic_last_function_changed, diagnostic_set_last_function,
7343         diagnostic_report_current_function): Move to tree-diagnostic.h.
7344         (print_declaration, dump_generic_node, print_generic_stmt,
7345         print_generic_stmt_indented, print_generic_expr,
7346         print_generic_decl, debug_c_tree, dump_omp_clauses,
7347         print_call_name, debug_generic_expr, debug_generic_stmt,
7348         debug_tree_chain, default_tree_printer): Move to
7349         tree-pretty-print.h.
7350         (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
7351         print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
7352         gimple-pretty-print.h.
7353         * pretty-print.c: Don't include tree.h
7354         (pp_base_format): Don't handle %K here.
7355         (pp_base_tree_identifier): Move to tree-pretty-print.c.
7356         * pretty-print.h (text_info): Change abstract_origin to x_data.
7357         (pp_tree_identifier, pp_unsupported_tree,
7358         pp_base_tree_identifier): Move to tree-pretty-print.h.
7359         * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
7360         tree-pretty-print.h: New files.
7361         * tree-pretty-print.c: Include tree-pretty-print.h.
7362         (percent_K_format): New.  Moved from pretty-print.c.
7363         (pp_base_tree_identifier): Move from pretty-print.c.
7364         * c-objc-common.c: Include tree-pretty-print.h.
7365         (c_tree_printer): Handle %K here.
7366         * langhooks.c: Include tree-diagnostic.h.
7367         (lhd_print_error_function): Use diagnostic_abstract_origin macro.
7368         * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
7369         (default_tree_printer): Handle %K using percent_K_format.
7370         (general_init): Use default_tree_diagnostic_starter.
7371         * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
7372         (free_lang_data): Use default_tree_diagnostic_starter.
7373         * c-pretty-print.c: Include tree-pretty-print.h.
7374         * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7375         * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7376         * dwarf2out.c: Include tree-pretty-print.h.
7377         * except.c: Include tree-pretty-print.h.
7378         * gimple-pretty-print.c: Include tree-pretty-print.h and
7379         gimple-pretty-print.h.
7380         * gimplify.c: Include tree-pretty-print.h.
7381         * graphite-poly.c: Include tree-pretty-print.h and
7382         gimple-pretty-print.h.
7383         * ipa-cp.c: Include tree-pretty-print.h.
7384         * ipa-inline.c: Include gimple-pretty-print.h.
7385         * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7386         * ipa-pure-const.c: Include gimple-pretty-print.h.
7387         * ipa-struct-reorg.c: Include tree-pretty-print.h and
7388         gimple-pretty-print.h.
7389         * ipa-type-escape.c: Include tree-pretty-print.h.
7390         * print-rtl.c: Include tree-pretty-print.h.
7391         * print-tree.c: Include gimple-pretty-print.h.
7392         * sese.c: Include tree-pretty-print.h.
7393         * tree-affine.c: Include tree-pretty-print.h.
7394         * tree-browser.c: Include tree-pretty-print.h.
7395         * tree-call-cdce.c: Include gimple-pretty-print.h.
7396         * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7397         * tree-chrec.c: Include tree-pretty-print.h.
7398         * tree-data-ref.c: Include tree-pretty-print.h and
7399         gimple-pretty-print.h.
7400         * tree-dfa.c: Include tree-pretty-print.h.
7401         * tree-if-conv.c: Include tree-pretty-print.h and
7402         gimple-pretty-print.h.
7403         * tree-inline.c: Include tree-pretty-print.h.
7404         * tree-into-ssa.c: Include tree-pretty-print.h and
7405         gimple-pretty-print.h.
7406         * tree-nrv.c: Include tree-pretty-print.h.
7407         * tree-object-size.c: Include tree-pretty-print.h and
7408         gimple-pretty-print.h.
7409         * tree-outof-ssa.c: Include tree-pretty-print.h and
7410         gimple-pretty-print.h.
7411         * tree-parloops.c: Include tree-pretty-print.h and
7412         gimple-pretty-print.h.
7413         * tree-predcom.c: Include tree-pretty-print.h and
7414         gimple-pretty-print.h.
7415         * tree-scalar-evolution.c: Include tree-pretty-print.h and
7416         gimple-pretty-print.h.
7417         * tree-sra.c: Include tree-pretty-print.h.
7418         * tree-ssa-address.c: Include tree-pretty-print.h.
7419         * tree-ssa-alias.c: Include tree-pretty-print.h.
7420         * tree-ssa-ccp.c: Include tree-pretty-print.h and
7421         gimple-pretty-print.h.
7422         * tree-ssa-coalesce.c: Include tree-pretty-print.h.
7423         * tree-ssa-copy.c: Include tree-pretty-print.h and
7424         gimple-pretty-print.h.
7425         * tree-ssa-copyrename.c: Include tree-pretty-print.h.
7426         * tree-ssa-dce.c: Include tree-pretty-print.h and
7427         gimple-pretty-print.h.
7428         * tree-ssa-dom.c: Include tree-pretty-print.h and
7429         gimple-pretty-print.h.
7430         * tree-ssa-dse.c: Include gimple-pretty-print.h.
7431         * tree-ssa-forwprop.c: Include tree-pretty-print.h.
7432         * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
7433         * tree-ssa-live.c: Include tree-pretty-print.h and
7434         gimple-pretty-print.h.
7435         * tree-ssa-loop-im.c: Include tree-pretty-print.h and
7436         gimple-pretty-print.h.
7437         * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
7438         gimple-pretty-print.h.
7439         * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
7440         gimple-pretty-print.h.
7441         * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
7442         gimple-pretty-print.h.
7443         * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
7444         * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
7445         * tree-ssa-operands.c: Include tree-pretty-print.h and
7446         gimple-pretty-print.h.
7447         * tree-ssa-phiprop.c: Include tree-pretty-print.h and
7448         gimple-pretty-print.h.
7449         * tree-ssa-pre.c: Include tree-pretty-print.h and
7450         gimple-pretty-print.h.
7451         * tree-ssa-propagate.c: Include gimple-pretty-print.h.
7452         * tree-ssa-reassoc.c: Include tree-pretty-print.h and
7453         gimple-pretty-print.h.
7454         * tree-ssa-sccvn.c: Include tree-pretty-print.h and
7455         gimple-pretty-print.h.
7456         * tree-ssa-sink.c: Include gimple-pretty-print.h.
7457         * tree-ssa-ter.c: Include tree-pretty-print.h and
7458         gimple-pretty-print.h.
7459         * tree-ssa-uninit.c: Include gimple-pretty-print.h.
7460         * tree-ssa.c: Include tree-pretty-print.h and
7461         gimple-pretty-print.h.
7462         * tree-stdarg.c: Include gimple-pretty-print.h.
7463         * tree-switch-conversion.c: Include gimple-pretty-print.h.
7464         * tree-tailcall.c: Include tree-pretty-print.h and
7465         gimple-pretty-print.h.
7466         * tree-vect-data-refs.c: Include tree-pretty-print.h and
7467         gimple-pretty-print.h.
7468         * tree-vect-loop-manip.c: Include tree-pretty-print.h and
7469         gimple-pretty-print.h.
7470         * tree-vect-loop.c: Include tree-pretty-print.h and
7471         gimple-pretty-print.h.
7472         * tree-vect-patterns.c: Include gimple-pretty-print.h.
7473         * tree-vect-slp.c: Include tree-pretty-print.h and
7474         gimple-pretty-print.h.
7475         * tree-vect-stmts.c: Include tree-pretty-print.h and
7476         gimple-pretty-print.h.
7477         * tree-vectorizer.c: Include tree-pretty-print.h.
7478         * tree-vrp.c: Include tree-pretty-print.h and
7479         gimple-pretty-print.h.
7480         * value-prof.c: Include tree-pretty-print.h and
7481         gimple-pretty-print.h.
7482         * var-tracking.c: Include tree-pretty-print.h.
7483         * Makefile.in (OBJS-common): Add tree-diagnostic.o.
7484         (tree-diagnostic.o): New dependencies.
7485         (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
7486         tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
7487         tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
7488         tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
7489         tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
7490         tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
7491         tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
7492         tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
7493         tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
7494         tree-ssa-address.o, tree-ssa-loop-niter.o,
7495         tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
7496         tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
7497         tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
7498         gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
7499         tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
7500         tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
7501         tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
7502         tree-parloops.o, tree-stdarg.o, tree-object-size.o,
7503         gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
7504         toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
7505         ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
7506         ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
7507         tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
7508         tree-switch-conversion.o, var-tracking.o, value-prof.o,
7509         cfgexpand.o, pretty-print.o): Update dependencies.
7511 2010-05-22  Andreas Tobler  <andreast@fgznet.ch>
7513         * tree-ssa-structalias.c: Remove tm_p.h from include.
7515 2010-05-21  Jeff Law  <law@redhat.com>
7517         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
7519 2010-05-21  Jason Merrill  <jason@redhat.com>
7521         * tree-eh.c (cleanup_is_dead_in): New.
7522         (lower_try_finally): Don't generate a dead cleanup region.
7523         (lower_cleanup): Likewise.
7525 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
7527         PR debug/44223
7528         * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
7529         unchain each use from the cyclic next_regno_use chain first.
7531 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
7533         * real: Do not include gmp.h, mpfr.h, and mpc.h.
7534         (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
7535         (real_value_negate, real_value_abs): New prototypes.
7536         (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
7537         * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
7538         new include file for interface between MPFR and REAL_VALUE_TYPE.
7539         * real.c: Include realmpfr.h.
7540         (real_arithmetic2): Remove legacy function.
7541         (real_value_negate): New.
7542         (real_value_abs): New.
7543         (mfpr_from_real, real_from_mpfr): Move from here...
7544         * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
7545         * builtins.c: Include realmpfr.h.
7546         * fold-const.c: Include realmpfr.h.
7547         (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
7548         (fold_negate_const): Likewise.
7549         (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
7550         * toplev.c: Include realmpfr.h.
7551         * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
7552         and real_value_negate.
7553         * fixed-value.c (check_real_for_fixed_mode): Likewise.
7554         * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
7555         (vfp3_const_double_index): Likewise.
7556         (arm_print_operand): Likewise.
7557         * Makefile.in: Update dependencies.
7559 2010-05-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7561         * config/s390/s390.c (override_options): Increase the default
7562         of max-completely-peel-times.
7564 2010-05-21  Julian Brown  <julian@codesourcery.com>
7565             Mark Mitchell  <mark@codesourcery.com>
7567         * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
7568         sibling calls for Thumb-1.
7569         * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
7570         * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
7571         Thumb-2.
7572         (*call_insn, *call_value_insn): Don't use for Thumb-2.
7573         (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
7574         for Thumb-2.
7575         (return): New expander.
7576         (*arm_return): New name for ARM return insn.
7577         * config/arm/thumb2.md (*thumb2_return): New insn pattern.
7579 2010-05-19  Joel Sherrill  <joel.sherrill@oarcorp.com>
7581         * config.gcc (sparc64-*-rtems*): New target.
7583 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
7585         * tree.c (build_function_decl_skip_args): Fix grammar.
7586         (build_function_type_list_1): Fix typos, adjust formatting.
7588 2010-05-21  Steven Bosscher  <steven@gcc.gnu.org>
7590         * tree.h: Include real.h and fixed-value.h as basic datatypes.
7591         * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
7592         tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
7593         tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
7594         tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
7595         genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
7596         tree-pretty-print.c, tree-loop-distribution.c,
7597         tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
7598         tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
7599         tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
7600         tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
7601         tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
7602         tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
7603         tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
7604         tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
7605         tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
7606         tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
7607         genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
7608         tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
7609         gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
7610         tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
7611         tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
7612         store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
7613         tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
7614         tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
7615         tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
7616         tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
7617         fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
7618         tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
7619         config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
7620         config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
7621         config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
7622         config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
7623         config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
7624         config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
7625         config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
7626         config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
7627         config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
7628         config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
7629         config/score/score7.c, config/score/score.c, config/arm/arm.c,
7630         config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
7631         config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
7632         config/bfin/bfin.c: Clean up redundant includes.
7633         * Makefile.in: Update accordingly.
7635 2010-05-21  Nathan Froyd  <froydnj@codesourcery.com>
7637         PR middle-end/44204
7638         * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
7639         statement has no arguments.
7641 2010-05-21  Kai Tietz  <kai.tietz@onevision.com>
7643         PR/44139
7644         * varasm.c (emutls_decl): Merge attributes to new decl.
7646 2010-05-21  Eric Botcazou  <ebotcazou@adacore.com>
7648         PR middle-end/44101
7649         * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
7650         around the uniquized constructor if its type requires a conversion.
7652 2010-05-21  Jakub Jelinek  <jakub@redhat.com>
7654         PR debug/44205
7655         * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
7656         at -O0 goto_locus of any of the incoming edges differs from
7657         goto_locus of outgoing edge, or gimple_location of any of the
7658         labels differs.
7660 2009-09-14  Vladimir Makarov  <vmakarov@redhat.com>
7662         * ira.c (ira_non_ordered_class_hard_regs): Define.
7663         (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
7664         * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
7665         * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
7666         cost of unaligned hard regs when allocating multi-reg pseudos.
7668 2010-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
7670         * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
7671         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
7672         for TARGET_NO_FLOAT.
7673         * config/mips/mips.c (mips_file_start): Expand conditional expression
7674         into "if" statements.  Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
7675         (mips_override_options): Move -mno-float override -msoft-float and
7676         -mhard-float.
7677         * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
7678         Condition(TARGET_SUPPORTS_NO_FLOAT).
7679         * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
7680         __mips_no_float here.
7681         (SUBTARGET_OVERRIDE_OPTIONS): Delete.
7682         (TARGET_SUPPORTS_NO_FLOAT): Define.
7683         * config/mips/sdemtk.opt: Delete.
7685 2010-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
7687         * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
7689 2010-05-20  Uros Bizjak  <ubizjak@gmail.com>
7691         PR target/43733
7692         * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
7693         * configure: Regenerate.
7694         * config.in: Regenerate.
7695         * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
7696         instead of sahf only for 64bit targets.
7698 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
7700         PR debug/44178
7701         * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
7702         setup_ref_regs for DEBUG_INSNs.
7704 2010-05-20  Jan Hubicka  <jh@suse.cz>
7706         PR middle-end/44197
7707         * varpool.c (varpool_remove_node): Handle in-varpool aliases.
7709 2010-05-20  Kenneth Zadeck  <zadeck@naturalbridge.com>
7711         PR bootstrap/43870
7712         * df-scan.c (df_ref_compare): Stabilize sort.
7714 2010-05-20  Jakub Jelinek  <jakub@redhat.com>
7716         * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
7717         argument.  Don't use DW_OP_piece if offset is non-zero,
7718         put offset into second DW_OP_bit_piece argument.
7719         (dw_sra_loc_expr): Adjust callers.  For memory expressions
7720         compute offset.
7722 2010-05-20  Hans-Peter Nilsson  <hp@axis.com>
7724         PR target/44202
7725         * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
7726         settings for 16-bit-constant "addo" alternative.
7728 2010-05-19  James E. Wilson  <wilson@codesourcery.com>
7730         * config/mips/mips-dsp.md (add<DSPV:mode>3,
7731         mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
7733         PR target/43764
7734         * mips.c (mips_call_expr_from_insn): New arg second_call.  Set it.
7735         (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
7736         Use it.
7738 2010-05-19  Joseph Myers  <joseph@codesourcery.com>
7740         * diagnostic.c (FLOAT, FFS): Don't undefine.
7741         * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
7742         * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
7743         include ordering.
7745 2010-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
7747         * combine.c (propagate_for_debug): Call make_compound_operation
7748         on the source value.
7749         (try_combine): When implementing a split chosen by find_split_point,
7750         either copy i2src or set it to null.  Assert that i2src is not null
7751         before substituting into CALL_INSN_FUNCTION_USAGE.
7753 2010-05-19  Anatoly Sokolov  <aesok@post.ru>
7755         * double-int.h (double_int_ior): New function.
7756         * tree.h (build_int_cst_wide_type): Remove.
7757         * tree.c (build_int_cst_wide_type): Remove.
7758         * fold-const.c (native_interpret_int): Use double_int_to_tree instead
7759         of build_int_cst_wide_type.
7760         * stor-layout.c (set_sizetype): (Ditto.).
7761         * dojump.c (do_jump): Use build_int_cstu instead of
7762         build_int_cst_wide_type.
7764 2010-05-19  Eric Botcazou  <ebotcazou@adacore.com>
7766         * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
7767         * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
7768         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
7769         * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
7770         TARGET_EXPR nodes, but only once, if instructed to do so.  Do not
7771         propagate the 'data' argument to copy_tree_r.
7772         (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
7773         Propagate 'data' argument to walk_tree.
7774         (copy_if_shared): New function.
7775         (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
7776         (unmark_visited): New function.
7777         (unshare_body): Call copy_if_shared instead of doing it manually.
7778         (unvisit_body): Call unmark_visited instead of doing it manually.
7780 2010-05-19  Nathan Froyd  <froydnj@codesourcery.com>
7782         * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
7783         (hook_tree_tree_int_treep_bool_null): ...this.  Update signature.
7784         * hooks.c: Likewise.
7785         * target-def.h (TARGET_FOLD_BUILTIN): Define to
7786         hook_tree_tree_int_treep_bool_null.
7787         * target.h (struct gcc_target): Update signature of fold_builtin
7788         field.
7789         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
7790         * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
7791         instead of the call expression.
7792         (fold_builtin_call_array): Pass n and argarray directly.
7793         (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
7794         consing a list.
7795         * config/alpha/alpha.c (alpha_fold_builtin): Update signature.  Lift
7796         MAX_ARGS check out of the loop.  Delete declaration of `arity', declare
7797         `i' and use it in place of `arity'.
7798         * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
7799         Dereference `args' directly.
7800         * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
7802 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7804         * doc/sourcebuild.texi (Effective-Target Keywords): Document
7805         3dnow, sse3, sse2.
7806         (Directives): Document optional dg-require-effective-target
7807         selector.
7809 2010-05-19  Richard Guenther  <rguenther@suse.de>
7811         PR lto/44196
7812         * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
7814 2010-05-19  Richard Guenther  <rguenther@suse.de>
7816         * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
7817         * common.opt (fwhopr=): New.
7818         * opts.c (common_handle_option): Handle OPT_fwhopr.
7819         * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
7820         * collect2.c (main): Match -fwhopr*.
7821         * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
7822         Execute ltrans stage in parallel when jobs is bigger than 1.
7824 2010-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7826         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
7827         pentiumpro on Solaris 8/x86 with Sun as.
7828         * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
7829         hidden alias bug.
7830         (gcc_cv_as_ix86_quad): Check for .quad directive.
7831         * configure: Regenerate.
7832         * config.in: Regenerate.
7833         * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
7835 2010-05-19  Martin Jambor  <mjambor@suse.cz>
7837         * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
7838         also for indirect edges.  Actual printing moved...
7839         (ipa_print_node_jump_functions_for_edge): ...here.
7840         (ipa_compute_jump_functions): Renamed to
7841         ipa_compute_jump_functions_for_edge and made static.
7842         (ipa_compute_jump_functions): New function.
7843         (make_edge_direct_to_target): Check if the number of arguments on
7844         the newly direct edge is the same as the number of parametrs of
7845         the callee.
7846         * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
7847         ipa_compute_jump_functions.  Call ipa_analyze_params_uses.
7848         * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
7849         analysis functions unconditionally, call the new
7850         ipa_analyze_params_uses on the node instead of every edge.
7852 2010-05-19  Christian Borntraeger  <borntraeger@de.ibm.com>
7854         * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
7855         to tree.
7856         (dump_mem_ref): Adopt debug code to handle a tree as step.  This
7857         also checks for a constant int vs.  non-constant but
7858         loop-invariant steps.
7859         (find_or_create_group): Change the sort algorithm to only consider
7860         steps that are constant ints.
7861         (idx_analyze_ref): Adopt code to handle a tree instead of a
7862         HOST_WIDE_INT for step.
7863         (gather_memory_references_ref): Handle tree instead of int and be
7864         prepared to see a NULL_TREE.
7865         (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
7866         prefetches if the step cannot be calculated at compile time.
7867         (issue_prefetch_ref): Issue prefetches for non-constant but
7868         loop-invariant steps.
7870 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
7872         Revert:
7873         2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
7875         * tree.h (build_call_list): Remove.
7876         * tree.c (build_call_list): Remove.
7878 2010-05-18  Nathan Froyd  <froydnj@codesourcery.com>
7880         * tree.h (build_call_list): Remove.
7881         * tree.c (build_call_list): Remove.
7883 2010-05-18  Jan Hubicka  <jh@suse.cz>
7885         * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
7887 2010-05-18  Vladimir Makarov  <vmakarov@redhat.com>
7889         PR rtl-optimization/43332
7890         * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
7892 2010-05-18  Anatoly Sokolov  <aesok@post.ru>
7894         * tree.h (build_int_cstu): Implement as static inline.
7895         * tree.c (build_int_cstu): Remove function.
7896         (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
7897         sign extended.
7899 2010-05-18  Richard Guenther  <rguenther@suse.de>
7901         PR lto/44143
7902         * lto-wrapper.c (verbose): New variable.  Initialize from -v.
7903         (debug): Initialize from -save-temps.
7904         (collect_execute): Print command-line when verbose.
7905         (run_gcc): Always use COLLECT_GCC_OPTIONS.  Use fork_execute
7906         for ltrans invocation.  Produce -dumpbase flag again.
7907         (process_args): Remove.
7908         (main): Simplify.
7909         * collect2.c (maybe_run_lto_and_relink): Only pass object
7910         files to lto-wrapper.
7911         * gcc.c (LINK_COMMAND_SPEC): Likewise.
7913 2010-05-18  Jan Hubicka  <jh@suse.cz>
7915         * opts.c (decode_options): Do not disable whopr at ipa_cp.
7916         * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
7918 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
7920         PR lto/44184
7921         * lto-streamer-out.c (output_gimple_stmt): Output number of labels
7922         in a GIMPLE_ASM.
7923         * lto-streamer-in.c (input_gimple_stmt): Read number of labels
7924         in a GIMPLE_ASM.
7926 2010-05-18  Jakub Jelinek  <jakub@redhat.com>
7928         PR debug/41371
7929         * var-tracking.c (find_loc_in_1pdv): Add a few checks from
7930         rtx_equal_p inline.
7932 2010-05-18  Steven Bosscher  <steven@gcc.gnu.org>
7934         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
7935         lto-macho as lto_binary_reader.
7937         * darwin.c (darwin_asm_named_section): Do not add assembler comment
7938         after .section directive; just print it before the directive instead.
7940 2010-05-17  Jan Hubicka  <jh@suse.cz>
7942         * cgraph.c (cgraph_create_virtual_clone): Only check
7943         versionable_function_p when not in wpa and checking is enabled.
7944         * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
7945         there are no more functions to materialize.
7947 2010-05-17  Jan Hubicka  <jh@suse.cz>
7949         * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
7950         * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
7951         New functions.
7952         (output_cgraph): Call output_cgraph_opt_summary.
7953         (input_cgrpah): Call input_cgraph_opt_summary.
7954         (output_cgraph_opt_summary_p, output_node_opt_summary,
7955         input_node_opt_summary, input_cgraph_opt_section): New functions.
7956         * lto-section-in.c (lto_section_name): Add cgraphopt.
7957         * tree-inline.c (tree_function_versioning): Handle parm_num.
7958         * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
7959         * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
7961 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
7963         * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
7964         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
7965         the insn to prefetch ratio heuristic to loops with known trip count.
7967 2010-05-17  Changpeng Fang  <changpeng.fang@amd.com>
7969         * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
7970         (schedule_prefetches): Do not generate a prefetch if the unroll factor
7971         is far from what is required by the prefetch.
7973 2010-05-17  Jan Hubicka  <jh@suse.cz>
7975         * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
7976         (ipcp_estimate_growth): Likewise.
7977         (ipcp_const_param_count): Likewise.
7978         (ipcp_insert_stage): Likewise.
7979         * ipa-prop.c (visit_load_for_mod_analysis): New function.
7980         (visit_store_addr_for_mod_analysis): Set used flag.
7981         (ipa_detect_param_modifications): Set used flag for SSE params;
7982         update use of walk_stmt_load_store_addr_ops.
7983         (ipa_print_node_params): Print used flag.
7984         (ipa_write_node_info): Stream used flag.
7985         (ipa_read_node_info): Likewise.
7986         * ipa-prop.h (struct ipa_param_descriptor): Add used field.
7987         (ipa_is_param_used): New function.
7988         (lto_ipa_fixup_call_notes): Remove unused declaration.
7990 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7992         PR target/44074
7993         * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
7994         * configure: Regenerate.
7995         * config.in: Regenerate.
7996         * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
7997         !HAVE_AS_IX86_REP_LOCK_PREFIX.
7998         Don't emit whitespace.
7999         * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
8000         (*rep_movsi): Likewise.
8001         (*rep_movsi_rex64): Likewise.
8002         (*rep_movqi): Likewise.
8003         (*rep_movqi_rex64): Likewise.
8004         (*rep_stosdi_rex64): Likewise.
8005         (*rep_stossi): Likewise.
8006         (*rep_stossi_rex64): Likewise.
8007         (*rep_stosqi): Likewise.
8008         (*rep_stosqi_rex64): Likewise.
8009         (*cmpstrnqi_nz_1): Use {%;} after repz.
8010         (*cmpstrnqi_nz_rex_1): Likewise.
8011         (*cmpstrnqi_1): Likewise.
8012         (*cmpstrnqi_rex_1): Likewise.
8013         (*strlenqi_1): Use {%;} after repnz.
8014         (*strlenqi_rex_1): Likewise.
8015         * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
8016         (*sync_compare_and_swap<mode>): Likewise.
8017         (sync_double_compare_and_swap<mode>): Likewise.
8018         (*sync_double_compare_and_swapdi_pic): Likewise.
8019         (sync_old_add<mode>): Likewise.
8020         (sync_add<mode>): Likewise.
8021         (sync_sub<mode>): Likewise.
8022         (sync_<code><mode>): Likewise.
8024 2010-05-17  Martin Jambor  <mjambor@suse.cz>
8026         * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
8027         otr_token and polymorphic.
8028         * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
8029         (cgraph_clone_edge): Copy the above fields.
8030         * tree.c (get_binfo_at_offset): New function.
8031         * tree.h (get_binfo_at_offset): Declare.
8032         * ipa-prop.h (enum jump_func_type): Added known_type jump function
8033         type, reordered items, updated comments.
8034         (union jump_func_value): Added base_type field, reordered fields.
8035         (enum ipa_lattice_type): Moved down in the file.
8036         (struct ipa_param_descriptor): New field polymorphic.
8037         (ipa_is_param_polymorphic): New function.
8038         * ipa-prop.c: Include gimple.h and gimple-fold.h.
8039         (ipa_print_node_jump_functions): Print known type jump functions.
8040         (compute_complex_pass_through): Renamed to...
8041         (compute_complex_assign_jump_func): this.
8042         (compute_complex_ancestor_jump_func): New function.
8043         (compute_known_type_jump_func): Likewise.
8044         (compute_scalar_jump_functions): Create known type and complex ancestor
8045         jump functions.
8046         (ipa_note_param_call): New parameter polymorphic, set the corresponding
8047         flag in the call note accordingly.
8048         (ipa_analyze_call_uses): Renamed to...
8049         (ipa_analyze_indirect_call_uses): this.  New parameter target, define
8050         variable var only in the block where it is used.
8051         (ipa_analyze_virtual_call_uses): New function.
8052         (ipa_analyze_call_uses): Likewise.
8053         (combine_known_type_and_ancestor_jfs): Likewise.
8054         (update_jump_functions_after_inlining): Implemented handling of a
8055         number of new jump function types combination.
8056         (print_edge_addition_message): Removed.
8057         (make_edge_direct_to_target): New function.
8058         (try_make_edge_direct_simple_call): Likewise.
8059         (try_make_edge_direct_virtual_call): Likewise.
8060         (update_call_notes_after_inlining): Renamed to...
8061         (update_indirect_edges_after_inlining): this.  Moved edge creation for
8062         indirect calls to try_make_edge_direct_simple_call, also calls
8063         try_make_edge_direct_virtual_call for virtual calls.
8064         (ipa_print_node_params): Changed the header message.
8065         (ipa_write_jump_function): Stream also known type jump functions.
8066         (ipa_read_jump_function): Likewise.
8067         (ipa_write_indirect_edge_info): Stream new fields in
8068         cgraph_indirect_call_info.
8069         (ipa_read_indirect_edge_info): Likewise.
8070         * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
8071         GIMPLE_FOLD_H.
8073 2010-05-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8075         * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
8077 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
8079         * tree.h (CALL_EXPR_ARGS): Delete.
8080         (call_expr_arglist): Delete.
8081         * tree.c (call_expr_arglist): Delete.
8082         * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
8083         targetm.fold_builtin.
8084         * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
8085         Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
8086         * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
8087         arglist parameter.  Use CALL_EXPR_ARG.
8088         (picochip_expand_builtin_3op): Likewise.
8089         (picochip_expand_builtin_2opvoid): Likewise.
8090         (picochip_expand_array_get): Likewise.
8091         (picochip_expand_array_put): Likewise.
8092         (picochip_expand_array_testport): Likewise.
8093         (picochip_expand_builtin): Don't call CALL_EXPR_ARGS.  Pass exp
8094         rather than arglist.
8095         * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
8096         CALL_EXPR_ARGS.
8097         * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
8098         than TREE_VALUE and TREE_CHAIN.
8099         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8100         * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
8101         the arglist.
8103 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
8105         PR bootstrap/42347
8106         * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
8107         to have no fallthru edge.
8109         PR middle-end/44102
8110         * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
8111         bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
8112         mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
8113         add BARRIER after previous bb if needed.
8115 2010-05-17  Nathan Froyd  <froydnj@codesourcery.com>
8117         * tree.c (build_function_type_list_1): Remove bogus assert condition.
8119 2010-05-17  Alan Modra  <amodra@gmail.com>
8121         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
8122         unnecessary prototype.  Replace copy_r12 and copy_r11 flag params
8123         with copy_reg rtx param.
8124         (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
8125         Correct cases where code for ABI_V4 did not initialise the reg
8126         used to access frame.  Also leave frame_reg_rtx as sp for large
8127         frames that save no regs.
8129 2010-05-17  Martin Jambor  <mjambor@suse.cz>
8131         PR middle-end/44133
8132         * tree-sra.c (create_access_replacement): New parameter rename, mark
8133         the replaement for renaming only when it is true.
8134         (get_access_replacement): Pass true in the rename parameter of
8135         create_access_replacement.
8136         (get_unrenamed_access_replacement): New function.
8137         (replace_uses_with_default_def_ssa_name): New parameter racc, get the
8138         replacement declaration from it.
8140 2010-05-17  Bernd Schmidt  <bernds@codesourcery.com>
8142         * function.c (try_fit_stack_local, add_frame_space): New static
8143         functions.
8144         (assign_stack_local_1): Use them.  Look for opportunities to use
8145         space previously wasted on alignment.
8146         * function.h (struct frame_space): New.
8147         (struct rtl_data): Add FRAME_SPACE_LIST member.
8148         * reload1.c (something_was_spilled): New static variable.
8149         (alter_reg): Set it.
8150         (reload): Test it in addition to testing if the frame size changed.
8152 2010-05-17  Christian Borntraeger  <borntraeger@de.ibm.com>
8154         * config/s390/s390.c: Define sane prefetch settings and activate
8155         flag_prefetch_loop_arrays on -O3.
8156         * config/s390/s390.h: Declare that read can use write prefetch.
8158 2010-05-17  Jakub Jelinek  <jakub@redhat.com>
8160         * lto-streamer-out.c (lto_output): Fix --enable-checking=release
8161         build.
8163 2010-05-16  Jan Hubicka  <jh@suse.cz>
8165         * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
8166         function body; do not check stdarg field of struct function.
8168 2010-05-16  Jan Hubicka  <jh@suse.cz>
8170         * cgraph.c (dump_cgraph_node): Dump versionable flag.
8171         * cgraph.h (cgraph_local_info): Add versionable flag.
8172         * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
8173         (ipcp_versionable_function_p): Use it.
8174         * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
8175         versionable flag.
8177 2010-05-16  Jan Hubicka  <jh@suse.cz>
8179         * cgraph.c (cgraph_clone_node): Take decl argument and insert
8180         clone into hash when it is different from orig.
8181         (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
8182         * cgraph.h (cgraph_clone_node): Update prototype.
8183         * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
8184         (lto_cgraph_encoder_delete): Delete body map.
8185         (lto_cgraph_encoder_size): Move to header.
8186         (lto_cgraph_encoder_encode_body_p,
8187         lto_set_cgraph_encoder_encode_body): New.
8188         (lto_output_node): Do not take written_decls argument; output clone_of
8189         pointer.
8190         (add_node_to): Add include_body_argument; call
8191         lto_set_cgraph_encoder_encode_body on master of the clone.
8192         (add_references): Update use of add_node_to.
8193         (compute_ltrans_boundary): Likewise.
8194         (output_cgraph): Do not create written_decls bitmap.
8195         (input_node): Take nodes argument; stream in clone_of correctly.
8196         (input_cgraph_1): Update use of input_node.
8197         * lto-streamer-out.c (lto_output): Use encoder info to decide
8198         what bodies to output.
8199         * ipa-inline.c (cgraph_clone_inlined_nodes,
8200         cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
8201         * lto-streamer.h (lto_cgraph_encoder_d): Add body.
8202         (lto_cgraph_encoder_size): Define here.
8203         (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
8204         Declare.
8206 2010-05-16  Richard Guenther  <rguenther@suse.de>
8208         * doc/invoke.texi (-fipa-struct-reorg): Do not mention
8209         -fipa-type-escape.
8210         * ipa-type-escape.c (gate_type_escape_vars): Run when
8211         -fipa-struct-reorg runs.
8212         * opts.c (decode_options): Do not unset flag_ipa_type_escape.
8213         * common.opt (fipa-type-escape): Remove.
8215 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
8217         * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
8218         (decode_options): Likewise.
8219         * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
8221 2010-05-16  Jan Hubicka  <jh@suse.cz>
8223         * ipa.c (function_and_variable_visibility): Also bring local all
8224         aliases.
8226 2010-05-16  Richard Guenther  <rguenther@suse.de>
8228         * alias.c (nonoverlapping_memrefs_p): Remove use of
8229         IPA type-escape information.
8231 2010-05-16  Joseph Myers  <joseph@codesourcery.com>
8233         * c-common.c (c_common_reswords): Add _Static_assert for C.
8234         * c-parser.c (c_token_starts_declaration,
8235         c_parser_next_token_starts_declaration,
8236         c_parser_static_assert_declaration_no_semi,
8237         c_parser_static_assert_declaration): New.
8238         (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
8239         Handle static assertions if static_assert_ok.
8240         (c_parser_external_declaration, c_parser_declaration_or_fndef,
8241         c_parser_compound_statement_nostart, c_parser_label,
8242         c_parser_for_statement, c_parser_objc_methodprotolist,
8243         c_parser_omp_for_loop): All callers of
8244         c_parser_declaration_or_fndef changed.
8245         (c_parser_struct_declaration): Handle static assertions.
8246         (c_parser_compound_statement_nostart): Use
8247         c_parser_next_token_starts_declaration and
8248         c_token_starts_declaration to detect start of declarations.
8249         (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
8250         Likewise.
8252 2010-05-16  Anatoly Sokolov  <aesok@post.ru>
8254         * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8255         LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8256         * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8257         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8258         (mmix_function_outgoing_value): Rename to...
8259         (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
8260         (mmix_function_value_regno_p): Make static.
8261         (mmix_libcall_value): New function.
8262         * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
8263         mmix_function_value_regno_p): Remove declaration.
8265 2010-05-16  Eric Botcazou  <ebotcazou@adacore.com>
8267         * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
8268         BUILT_IN_ALLOCA if stack checking is enabled.
8270 2010-05-16  Richard Guenther  <rguenther@suse.de>
8272         * var-tracking.c (vars_copy_1): Inline ...
8273         (vars_copy): ... here.  Use FOR_EACH_HTAB_ELEMENT.
8274         (variable_union): Use FOR_EACH_HTAB_ELEMENT.  Merge asserts.
8275         (variable_merge_over_cur): Adjust.  Merge asserts.
8276         (variable_merge_over_src): Likewise.
8277         (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
8278         (variable_post_merge_new_vals): Merge asserts.
8279         (variable_post_merge_perm_vals): Likewise.
8280         (find_mem_expr_in_1pdv): Likewise.
8281         (dataflow_set_different_value): Remove.
8282         (onepart_variable_different_p): Merge asserts.
8283         (variable_different_p): Likewise.
8284         (dataflow_set_different_1): Inline ...
8285         (dataflow_set_different): ... here.  Use FOR_EACH_HTAB_ELEMENT.
8286         (emit_notes_for_differences_1): Merge asserts.
8288 2010-05-16  Richard Guenther  <rguenther@suse.de>
8290         * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
8291         * optabs.c (libfunc_decl_hash): Likewise.
8292         * varasm.c (emutls_decl): Likewise.
8294 2010-05-16  Steven Bosscher  <steven@gcc.gnu.org>
8296         * c-decl.c: Don't include gimple.h.
8297         (merge_decls): Do not copy gimple_body.
8299 2010-05-15  Jason Merrill  <jason@redhat.com>
8301         * c.opt: Add -fnothrow-opt.
8303 2010-05-15  Jan Hubicka  <jh@suse.cz>
8305         * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
8306         analyzed.
8307         * passes.c (ipa_write_summaries): Write all analyzed nodes.
8309 2010-05-15  Steven Bosscher  <steven@gcc.gnu.org>
8311         * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
8312         * Makefile.in: Add it.
8313         Fix all other Makefile dependencies for changes below.
8314         * tree.h: Include it instead of defining VEC primitives here.
8315         * gimple.h: Likewise.
8316         * rtl.h: Likewise.
8317         * tree-inline.h: Inlclude vecir.h instead of gimple.h.
8318         * except.h: Include vecir.h, break dependence on tree.h.
8320         * gimplify.c (append_to_statement_list_1, append_to_statement_list):
8321         Move from here...
8322         * tree-iterator.c: ...to here.
8323         * tree-iterator.h: Fix file introduction comment.  Add extern markers.
8325         * c-lex.c: Include fixed-value.h instead of rtl.h.  Do not include
8326         tm_p.h.
8327         * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
8328         * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
8329         integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
8330         tree-mudflap.h, and target.h.
8331         * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
8332         predict.h, tree-inline.h, gimple.h, and langhooks.h.
8333         * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
8334         Add FIXME for why gimple.h is still included (should be unnecessary
8335         since GCC 4.5 gimplification unit-at-a-time).
8336         * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
8337         * c-pragma.c: Add FIXME for why function.h needs to be included just
8338         for cfun, at front-end level.
8339         Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
8340         Do not include ggc.h, but include vecprim.h for VEC(char).
8341         * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
8342         Explain why target.h is included.
8343         * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
8344         Explain why gimple.h is included.
8345         * c-ppoutput.c: Do not include tm.h.
8346         * c-common.c: Do not include gimple.h.  Explain why expr.h is included.
8347         * c-parses.c: Explain why rtl.h is included, and that this (and only
8348         this) is also why tm.h must be included.
8349         Do not include except.h.
8350         * c-lang.c: Do not include ggc.h.
8352 2010-05-15  Uros Bizjak  <ubizjak@gmail.com>
8354         * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
8356 2010-05-15  Joseph Myers  <joseph@codesourcery.com>
8358         * c-decl.c (grokfield): Allow typedefs for anonymous structs and
8359         unions by default if those structs and unions have no tags.  Do
8360         not condition anonymous struct and unions handling on flag_iso.
8361         Allow anonymous structs and unions for C1X.
8362         (finish_struct): Do not diagnose lack of named fields when
8363         anonymous structs and unions present for C1X.  Accept flexible
8364         array members in structure with anonymous structs or unions but no
8365         directly named fields.
8366         * doc/extend.texi (Unnamed Fields): Update.
8368 2010-05-15  Eric Botcazou  <ebotcazou@adacore.com>
8370         * gimple.h (compare_field_offset): Rename into...
8371         (gimple_compare_field_offset): ...this.
8372         * gimple.c (compare_field_offset): Rename into...
8373         (gimple_compare_field_offset): ...this.  Compare the full access if
8374         the offset is self-referential.
8375         (gimple_types_compatible_p): Adjust for above renaming.
8376         * lto-streamer-in.c (input_gimple_stmt): Likewise.  Also compare the
8377         DECL_NONADDRESSABLE_P flag of fields before merging them.
8379 2010-05-15  Nathan Froyd  <froydnj@codesourcery.com>
8381         * tree.h (ctor_to_list): Delete.
8382         * tree.c (ctor_to_list): Delete.
8384 2010-05-15  Jan Hubicka  <jh@suse.cz>
8386         * ipa-reference.c: Include toplev.h
8387         (is_proper_for_analysis): Only add to all_module_statics
8388         if it is allocated.
8389         (write_node_summary_p, stream_out_bitmap,
8390         ipa_reference_write_optimization_summary,
8391         ipa_reference_read_optimization_summary): New.
8392         (struct ipa_opt_pass_d pass_ipa_reference): Add
8393         optimization summary streaming.
8394         * lto-cgraph.c (referenced_from_this_partition_p,
8395         reachable_from_this_partition_p): New functions.
8396         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8397         call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
8398         * opts.c (decode_options): Enable ipa_reference.
8399         * Makefile.in (ipa-reference.o): Add toplev.h dependency.
8400         * lto-streamer.h (referenced_from_this_partition_p,
8401         reachable_from_this_partition_p): Declare.
8403 2010-05-15  Richard Guenther  <rguenther@suse.de>
8405         PR tree-optimization/44038
8406         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
8407         taking the address of a V_C_E of a constant.
8409 2010-05-14  Jan Hubicka  <jh@suse.cz>
8411         * tree.h (memory_identifier_string): Remove.
8412         * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
8413         (ipa_reference_global_vars_info_d): Remove statics_not_read and
8414         statics_not_written.
8415         (ipa_reference_optimization_summary_d): New structure.
8416         (ipa_reference_optimization_summary_t): New type and vector.
8417         (ipa_reference_vars_info_d): Embedd structures instead of using
8418         pointers.
8419         (reference_vars_to_consider): Remove out of GGC space.
8420         (module_statics_escape): Remove.
8421         (global_info_obstack): Rename to ...
8422         (optimization_summary_obstack): ... this one.
8423         (initialization_status_t): Remove.
8424         (memory_identifier_string): Remove.
8425         (get_reference_vars_info): Fix indenting.
8426         (set_reference_vars_info): Likewise.
8427         (get_reference_optimization_summary): New.
8428         (set_reference_optimization_summary): New.
8429         (get_global_reference_vars_info): Remove.
8430         (ipa_reference_get_read_global): Remove.
8431         (ipa_reference_get_written_global): Remove.
8432         (ipa_reference_get_not_read_global): Update.
8433         (ipa_reference_get_not_written_global): Update.
8434         (is_proper_for_analysis): Outlaw addressable.
8435         (propagate_bits): Update for new datastructures.
8436         (analyze_variable): Remove.
8437         (init_function_info): Update for new datastructures.
8438         (clean_function_local_data): Remove.
8439         (clean_function): Remove.
8440         (copy_global_bitmap): Use optimizations_summary_obstack.
8441         (duplicate_node_data): Duplicate optimization summary only.
8442         (remove_node_data): Remove optimization summary only.
8443         (generate_summary): Do not analyze variables; do not compute
8444         module_statics_escape; do not prune solutions by it.
8445         (read_write_all_from_decl): Fix typos in comments.
8446         (propagate): Doscover readonly and nonaddressable first;
8447         update for new datastructures; share global bitmaps.
8448         * ipa-reference.h (ipa_reference_get_read_global,
8449         ipa_reference_get_written_global): Remove.
8450         * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
8451         * Makefile.in: Remove ipa-refereference from GT files.
8453 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
8455         PR debug/44112
8456         * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
8457         for all SYMBOL_REF_DECLs.
8459 2010-05-14  Jan Hubicka  <jh@suse.cz>
8461         * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
8462         (varpool_all_refs_explicit_p): New inline function.
8463         * ipa-reference.c: Update comment.
8464         (module_statics_written): Remove.
8465         (get_static_decl): Remove.
8466         (ipa_init): Do not initialize module_statics_written.
8467         (analyze_function): Likewise.
8468         (generate_summary): Likewise; do not compute module_statics_readonly
8469         and do not update variable flags.
8470         (propagate): Call ipa_discover_readonly_nonaddressable_vars.
8471         * ipa.c: Inlucde flags.h
8472         (cgraph_local_node_p): New.
8473         (cgraph_remove_unreachable_nodes): Return early when not optimizing;
8474         promote functions to local.
8475         (ipa_discover_readonly_nonaddressable_vars): New function.
8476         (function_and_variable_visibility): Use cgraph_local_node_p.
8477         * varpool.c (varpool_finalize_decl): Set force_output for
8478         DECL_PRESERVE_P vars.
8480 2010-05-14  Jan Hubicka  <jh@suse.cz>
8482         * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
8484 2010-05-14  Richard Guenther  <rguenther@suse.de>
8486         PR tree-optimization/44119
8487         * tree-ssa-pre.c (eliminate): Properly mark replacement of
8488         a PHI node necessary.
8490 2010-05-14  Eric Botcazou  <ebotcazou@adacore.com>
8492         * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
8494 2010-05-14  Jason Merrill  <jason@redhat.com>
8496         PR c++/44127
8497         * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
8498         (gimple_call_set_nothrow): New.
8499         * gimple.c (gimple_build_call_from_tree): Call it.
8500         (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
8502         PR c++/44127
8503         * gimplify.c (gimplify_seq_add_stmt): No longer static.
8504         * gimple.h: Declare it.
8505         * gimple.c (gimple_build_eh_filter): No ops.
8507 2010-05-14  Jan Hubicka  <jh@suse.cz>
8509         * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
8510         nodes already in queue.
8511         (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
8512         re-enqueueing node.
8514 2010-05-14  Jakub Jelinek  <jakub@redhat.com>
8516         PR debug/44136
8517         * cfgexpand.c (expand_debug_expr): If non-memory op0
8518         has BLKmode, return NULL.
8520 2010-05-14  Harsha Jagasia  <harsha.jagasia@amd.com>
8522         * config.gcc: Add support for --with-cpu option for bdver1.
8523         * config/i386/i386.h (TARGET_BDVER1): New macro.
8524         (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
8525         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
8526         (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
8527         to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
8528         Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
8529         (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
8530         (processor_type): Add PROCESSOR_BDVER1.
8531         * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
8532         processor_type in config/i386/i386.h.
8533         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
8534         movaps <reg, reg> instead of movapd <reg, reg> when replacing
8535         movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
8536         Add check for  TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
8537         to emit packed xor instead of packed double/packed integer
8538         xor for SSE and AVX when moving a zero value.
8539         * config/i386/sse.md: Add check for
8540         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
8541         movapd/movdqa for SSE and AVX.
8542         Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
8543         single logical operations i.e and, or and xor instead of packed double
8544         logical operations for SSE and AVX.
8545         * config/i386/i386-c.c (ix86_target_macros_internal):
8546         Add PROCESSOR_BDVER1.
8547         * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
8548         (has_fma4, has_xop): New.
8549         * config/i386/i386.c (bdver1_cost): New variable.
8550         (m_BDVER1): New macro.
8551         (m_AMD_MULTIPLE): Add m_BDVER1.
8552         (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
8553         x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
8554         x86_tune_use_simode_fiop, x86_tune_promote_qimode,
8555         x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
8556         x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
8557         x86_tune_sse_partial_reg_dependency,
8558         x86_tune_sse_unaligned_load_optimal,
8559         x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
8560         x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
8561         x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
8562         x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
8563         x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
8564         Enable/disable for bdver1.
8565         (processor_target_table): Add bdver1_cost.
8566         (cpu_names): Add bdver1.
8567         (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
8568          processor_alias_table.
8569         (ix86_expand_vector_move_misalign): Change.
8570         TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
8571         Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
8572         Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
8573         of movupd/movdqu for SSE and AVX.
8574         (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
8575         (ix86_tune_adjust_cost): Add code for bdver1.
8576         (standard_sse_constant_opcode): Add check for
8577         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
8578         of packed double xor for SSE and AVX.
8580 2010-05-14  Pat Haugen  <pthaugen@us.ibm.com>
8582         * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
8583         result to unsigned.
8585 2010-05-14  Tristan Gingold  <gingold@adacore.com>
8587         * toplev.c (default_debug_hooks): Remove this variable.
8588         (process_options): Remove assignments to default_debug_hooks.
8590 2010-05-14  Martin Jambor  <mjambor@suse.cz>
8592         * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
8593         (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
8594         * langhooks.h (struct lang_hooks_for_decls): Removed field
8595         fold_obj_type_ref.
8596         * tree.c (free_lang_data): Remove assignment to
8597         lang_hooks.fold_obj_type_ref.
8598         * tree.def (OBJ_TYPE_REF): Update comment.
8600 2010-05-14  Richard Guenther  <rguenther@suse.de>
8602         PR tree-optimization/44124
8603         * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
8605 2010-05-14  Alan Modra  <amodra@gmail.com>
8607         PR target/44075
8608         * config/rs6000/rs6000.c (struct machine_function): Reorder
8609         fields for better packing.  Add lr_save_state.
8610         (rs6000_ra_ever_killed): Return lr_save_state if set.
8611         (rs6000_emit_eh_reg_restore): Set lr_save_state.
8613 2010-05-13  Jan Hubicka  <jh@suse.cz>
8615         * varpool.c (decide_is_variable_needed): Drop code checking
8616         TREE_SYMBOL_REFERENCED.
8618 2010-05-13  Jan Hubicka  <jh@suse.cz>
8620         * final.c (output_addr_const): Do not call mark_decl_referenced.
8621         * cgraphunit.c (process_function_and_variable_attributes): Use
8622         mark_needed_node dirrectly.
8623         (assemble_thunk): Do not call mark_decl_referenced.
8625 2010-05-13  Anatoly Sokolov  <aesok@post.ru>
8627         * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
8629 2010-05-13  Jeff Law  <law@redhat.com>
8631         * ira-conflicts.c (print_allocno_conflicts): New function broken out
8632         from...
8633         (print_conflicts): Call print_allocno_conflicts.
8635 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
8637         PR debug/44104
8638         * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
8639         if it is NULL.
8641 2010-05-13  Kai Tietz  <kai.tietz@onevision.com>
8643         * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
8644         t-mingw-w64 or t-mingw-w32 for multilib configuration.
8645         * config/i386/t-mingw-w32: New.
8646         * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
8648 2010-05-13  Martin Jambor  <mjambor@suse.cz>
8650         * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
8651         gimple-fold.c).
8652         * gimple-fold.c (get_base_binfo_for_type): New function.
8653         (gimple_get_relevant_ref_binfo): Likewise.
8654         (gimple_fold_obj_type_ref_known_binfo): Likewise.
8655         (gimple_fold_obj_type_ref): Likewise.
8656         (fold_gimple_call): Simplify condition for folding virtual calls
8657         and call gimple_fold_obj_type_ref.
8658         * gimple.h (gimple_get_relevant_ref_binfo): Declare.
8659         (gimple_fold_obj_type_ref_known_binfo): Likewise.
8661 2010-05-13  Andreas Schwab  <schwab@linux-m68k.org>
8663         * config/rs6000/rs6000-protos.h
8664         (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
8665         * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
8666         (rs6000_debug_mode_dependent_address)
8667         (rs6000_mode_dependent_address_ptr): Likewise.
8669 2010-05-13  Jakub Jelinek  <jakub@redhat.com>
8671         PR debug/43983
8672         * var-tracking.c (track_expr_p): Allow tracking of variables optimized
8673         by SRA.
8674         * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
8675         * tree-sra.c (create_access_replacement): Call unshare_expr before
8676         passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
8677         * dwarf2out.c: Include tree-flow.h.
8678         (struct var_loc_node): Rename var_loc_note field to loc, add comment.
8679         (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
8680         Handle DW_OP_bit_piece.
8681         (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
8682         construct_piece_list, adjust_piece_list): New functions.
8683         (add_var_loc_to_decl): Handle SRA optimized variables.
8684         Adjust for var_loc_note to loc field renaming.
8685         (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
8686         in VAR_LOCATION note.
8687         (new_loc_descr_op_bit_piece): New function.
8688         (dw_sra_loc_expr): New function.
8689         (dw_loc_list): Use it.  Don't handle the last range after the
8690         loop, handle it inside of the loop.  Adjust for var_loc_note
8691         to loc field renaming.
8692         (add_location_or_const_value_attribute): Only special case
8693         single entry loc lists if loc is NOTE_P.  Adjust for
8694         var_loc_note to loc field renaming.
8695         (dwarf2out_var_location): Don't set newloc->var_loc_note
8696         and newloc->next here.
8698 2010-05-12  Jan Hubicka  <jh@suse.cz>
8700         * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
8701         flag.
8702         * cgraph.h (cgraph_only_called_directly_p,
8703         cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
8704         (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
8705         * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
8706         (assemble
8707         * ipa.c (cgraph_remove_unreachable_nodes): Use
8708         cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
8709         flags.
8710         * tree-inline.c (copy_bb): Check address_taken flag.
8711         * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
8712         externally_visible flag.
8714 2010-05-12  Jason Merrill  <jason@redhat.com>
8716         PR bootstrap/44048
8717         PR target/44099
8718         * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
8719         * sdbout.c (plain_type_1): Likewise.
8720         * dwarf2out.c (is_base_type): Likewise.
8721         (gen_type_die_with_usage): Likewise.  Generate
8722         DW_TAG_unspecified_type for any LANG_TYPE.
8724 2010-05-12  Jan Hubicka  <jh@suse.cz>
8726         * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
8727         indrect edges too.
8728         * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
8729         (cgraph_clone_edge): Update.
8730         (cgraph_node_remove_callees): Remove indirect calls too.
8731         * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
8732         (cgraph_create_indirect_edge): Update prototype.
8733         * ipa-reference.c (has_proper_scope_for_analysis): Rename to
8734         is_proper_for_analysis.
8735         (add_new_function, visited_nodes, function_insertion_hook_holder,
8736         get_local_reference_vars_info, mark_address_taken, mark_address,
8737         mark_load, mark_store, check_asm_memory_clobber, check_call,
8738         scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
8739         (ipa_init): Do not initialize visited_nodes;
8740         function_insertion_hook_holder.
8741         (analyze_variable): Rewrite.
8742         (analyze_function): Rewrite.
8743         (copy_local_bitmap): Remove.
8744         (duplicate_node_dat): Do not duplicate local info.
8745         (generate_summary): Simplify to only walk cgraph.
8746         (write_node_summary_p, ipa_reference_write_summary,
8747         ipa_reference_read_summary): Remove.
8748         (propagate): Do not remove function insertion;
8749         generate summary.
8750         (pass_ipa_reference): NULLify summary handling fields.
8751         * lto-cgraph.c (lto_output_edge): Output ecf_flags.
8752         (input_edge): Input ecf_flags.
8753         * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
8754         (update_indirect_edges_after_inlining): Ignore edges with unknown
8755         param.
8757 2010-05-12  Sriraman Tallam  <tmsriram@google.com>
8759         * implicit-zee.c: New file.
8760         * tree-pass.h (pass_implicit_zee): Declare.
8761         * passes.c (init_optimization_passes): Add zee pass.
8762         * common.opt (fzee): New flag.
8763         * timevar.def (TV_ZEE): Define.
8764         * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
8765         and beyond.
8766         * Makefile.in (implicit-zee.o): Add new build file.
8768 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
8769             Nathan Froyd  <froydnj@codesourcery.com>
8771         * c-common.c (sync_resolve_params): Remove write-only variable.
8773 2010-05-12  Anatoly Sokolov  <aesok@post.ru>
8775         * target.h (struct gcc_target): Add mode_dependent_address_p field.
8776         * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
8777         (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
8778         * targhooks.c (default_mode_dependent_address_p): New function.
8779         * targhooks.h (default_mode_dependent_address_p): Declare function.
8780         * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
8781         (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
8782         * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
8783         target hook. Change return type to bool.
8784         * recog.h (mode_dependent_address_p): Change return type to bool.
8786 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
8787             Nathan Froyd  <froydnj@codesourcery.com>
8789         * tree-mudflap.c (build_function_type_0, build_function_type_1,
8790         build_function_type_2, build_function_type_3): Remove.
8791         (mudflap_init): Use build_function_type_list.
8793 2010-05-12  Kazu Hirata  <kazu@codesourcery.com>
8794             Nathan Froyd  <froydnj@codesourcery.com>
8796         * coverage.c (build_fn_info_value): Call build_constructor instead of
8797         build_constructor_from_list.
8798         (build_ctr_info_value): Likewise.
8799         (build_gcov_info): Likewise.
8801 2010-05-12  Nathan Froyd  <froydnj@codesourcery.com>
8803         * tree.c (build_constructor): Compute TREE_CONSTANT for the
8804         resultant constructor.
8805         (build_constructor_single): Don't set TREE_CONSTANT.
8806         (build_constructor_from_list): Don't compute TREE_CONSTANT.
8808 2010-05-12  Jan Hubicka  <jh@suse.cz>
8810         * cgraph.h (struct varpool_node): Add aux.
8811         * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
8812         * varpool.c (varpool_remove_node): Do not remove initializer.
8813         (varpool_reset_queue): Export.
8814         (varpool_finalize_decl): Volatile vars are forced to be output.
8815         * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
8816         replaced decl.
8817         * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
8818         process_references, varpool_can_remove_if_no_refs): New functions.
8819         (cgraph_remove_unreachable_nodes): Handle variables too.
8821 2010-05-12  H.J. Lu  <hongjiu.lu@intel.com>
8823         PR target/44088
8824         * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
8826 2010-05-12  Jakub Jelinek  <jakub@redhat.com>
8828         PR middle-end/44085
8829         * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
8830         change value of ORT_TASK.
8831         (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
8832         (omp_notice_threadprivate_variable): New function.
8833         (omp_notice_variable): Call it for threadprivate variables.
8834         If enclosing ctx is a task, print enclosing task rather than
8835         enclosing parallel.  Handle ORT_UNTIED_TASK like ORT_TASK.
8836         (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
8837         if task has untied clause.
8839         PR debug/42278
8840         * dwarf2out.c (base_type_die): Don't add name attribute here.
8841         (modified_type_die): Instead of sizetype use
8842         its underlying original type.  If a DW_TAG_base_type doesn't
8843         have name added, add __unknown__.
8844         (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
8845         always call force_type_die instead.
8847 2010-05-12  Maxim Kuvyrkov  <maxim@codesourcery.com>
8849         * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
8850         for __stack_chk_guard.
8852 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
8854         * c-opts.c (c_common_parse_file): If start_end_main_source_file,
8855         don't call start_source_file debug hook here...
8856         (finish_options): ... but here, after outputting predefined and
8857         command line defines and undefs.
8859         PR middle-end/44071
8860         * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
8861         no fallthru edge.
8862         * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
8863         optimizing away empty bb with no successors, move over its
8864         footer chain to fallthru predecessor.
8865         * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
8866         (rtl_split_edge): For asm goto call patch_jump_insn even if
8867         splitting fallthru edge.
8869         PR c++/44059
8870         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
8871         even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
8872         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
8873         * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
8874         on DW.ref.* decls.
8876         PR c++/44062
8877         * c-parser.c (c_parser_expression): Mark LHS of a comma
8878         expression as read if it is a decl, handled component or
8879         COMPOUND_EXPR with that on the RHS.
8880         * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
8881         if it is a decl or handled component.
8883 2010-05-11  Jan Hubicka  <jh@suse.cz>
8885         * lto-symtab.c (lto_symtab_free): New function.
8886         * lto-streamer.h (lto_symtab_free): Declare.
8888 2010-05-11  Jan Hubicka  <jh@suse.cz>
8890         * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
8891         that if function is needed it is reachable.
8892         (lto_output_node): See if it the function is reachable or referenced.
8893         (output_cgraph): Update call of lto_output_node.
8894         * lto-streamer.h (reachable_from_other_partition_p): Declare.
8896 2010-05-11  Jan Hubicka  <jh@suse.cz>
8898         * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
8899         Mark as used.
8901 2010-05-11  Jan Hubicka  <jh@suse.cz>
8903         PR tree-optimize/44063
8904         * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
8905         queue.
8906         (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
8907         limits.
8908         (estimate_function_body_sizes): Compute sizes even when disregarding.
8910 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
8912         * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
8914 2010-05-11  Jan Hubicka  <jh@suse.cz>
8916         * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
8917         into every boundary.
8919 2010-05-11  Jan Hubicka  <jh@suse.cz>
8921         * matrix-reorg.c (matrix_reorg): Rebuild edges.
8923 2010-05-11  Jan Hubicka  <jh@suse.cz>
8925         * lto-streamer.c (lto_streamer_cache_add_to_node_array,
8926         lto_streamer_cache_delete): Put nodes into heap.
8927         * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
8928         heap.
8930 2010-05-11  Jan Hubicka  <jh@suse.cz>
8932         * cgraphbuild.c (cgraph_rebuild_references): New.
8933         * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
8934         out extern inlines.
8935         * cgraph.h (cgraph_rebuild_references): Declare.
8936         * tree-inline.c (tree_function_versioning): Use it.
8937         * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
8939 2010-05-11  Jan Hubicka  <jh@suse.cz>
8941         * cgraph.c: Include ipa-utils.h
8942         (cgraph_create_virtual_clone): Update references.
8943         * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
8945 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
8947         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
8948         prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
8949         cache size.
8951 2010-05-11  Christian Borntraeger  <borntraeger@de.ibm.com>
8953         * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
8955 2010-05-11  Jakub Jelinek  <jakub@redhat.com>
8957         * gcc.c (execute): For -### don't quote arguments that
8958         contain just alphanumerics and _/-. characters.
8959         * doc/invoke.texi: Document that change for -###.
8961         PR debug/44023
8962         * df-problems.c (struct dead_debug): Add to_rescan field.
8963         (dead_debug_init): Clear to_rescan field.
8964         (dead_debug_finish): Rescan all debug insns in to_rescan
8965         bitmap and free the bitmap.
8966         (dead_debug_insert_before): Instead of rescanning debug insns
8967         immediately queue their rescanning until dead_debug_finish.
8968         (df_note_bb_compute): After dead_debug_add do continue instead
8969         of break.
8971 2010-05-10  Jakub Jelinek  <jakub@redhat.com>
8973         PR debug/44028
8974         * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
8975         clear also INSN_REG_USE_LIST.
8977 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8979         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
8981 2010-05-10  Jan Hubicka  <jh@suse.cz>
8983         * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
8984         commited change.
8986 2010-05-10  Jan Hubicka  <jh@suse.cz>
8988         * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
8989         Allocate encoders.
8990         * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
8991         * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
8992         (lto_streamer_cache_create): Init alloc pool.
8993         (lto_streamer_cache_delete): Free alloc pool.
8994         * lto-streamer.h: Include alloc pool.
8995         (lto_streamer_cache_d): Use alloc pool.
8996         * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
8998 2010-05-10  Jan Hubicka  <jh@suse.cz>
9000         * Makefile.in (cgraphbuild.o): Add dependency on except.h.
9001         * cgraphbuild.c: Include except.h
9002         (record_type_list, record_eh_tables): New function.
9003         (build_cgraph_edges, rebuild_cgraph_edges): Use it.
9005 2010-05-10  Jan Hubicka  <jh@suse.cz>
9007         * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
9008         __frame_dummy_init_array_entry, force_to_data): Attribute as used
9009         rather than unused.
9011 2010-05-10  Michael Matz  <matz@suse.de>
9013         * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
9014         (can_reassociate_p): Use FLOAT_TYPE_P.
9015         * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
9016         (vect_force_simple_reduction): ... this.
9017         * tree-parloops.c (gather_scalar_reductions): Use
9018         vect_force_simple_reduction.
9019         * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
9020         vect_is_simple_reduction, add modify argument, if true rewrite
9021         "a-b" into "a+(-b)".
9022         (vect_is_simple_reduction, vect_force_simple_reduction): New
9023         functions.
9024         (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
9026 2010-05-10  H.J. Lu  <hongjiu.lu@intel.com>
9027             Vladimir Makarov  <vmakarov@redhat.com>
9029         PR rtl-optimization/44012
9030         * ira-build.c (remove_unnecessary_allocnos): Nullify
9031         regno_allocno_map of the removed allocno.
9033 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9035         * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
9036         to /dev/null.
9037         * configure: Regenerate.
9039 2010-05-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9041         * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
9042         unused.
9043         Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
9044         * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
9045         support in Sun ld.
9046         * configure: Regenerate.
9048 2010-05-10  Richard Guenther  <rguenther@suse.de>
9050         * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
9051         marked if the entry identifier is marked.
9053 2010-05-10  Richard Guenther  <rguenther@suse.de>
9055         * c-common.c (struct c_common_attributes): Add fnspec attribute.
9056         (handle_fnspec_attribute): New function.
9057         * gimple.h (gimple_call_return_flags): Declare.
9058         (gimple_call_arg_flags): Likewise.
9059         * gimple.c (gimple_call_arg_flags): New function.
9060         (gimple_call_return_flags): Likewise.
9061         * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
9062         New argument flags.
9063         (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
9064         return value flags.
9065         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
9066         * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
9067         main work to ...
9068         (make_heapvar_for): ... this new function.
9069         (handle_rhs_call): Handle fnspec attribute argument specifiers.
9070         (handle_lhs_call): Likewise.
9071         (find_func_aliases): Adjust.
9073 2010-05-10  Richard Guenther  <rguenther@suse.de>
9075         PR tree-optimization/44050
9076         * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
9078 2010-05-10  Wei Guozhi  <carrot@google.com>
9080         PR target/42879
9081         * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
9083 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
9085         PR c/10676
9086         * c-typeck.c (lookup_field): Take a type directly.  Update
9087         recursive calls.
9088         (build_component_ref): Update call to lookup_field.
9089         (set_init_label): Use lookup_field to find initialized field.
9090         Handle returned list of fields like a sequence of designators.
9092 2010-05-09  Richard Guenther  <rguenther@suse.de>
9094         PR middle-end/44024
9095         * fold-const.c (tree_single_nonzero_warnv_p): Properly
9096         handle &FUNCTION_DECL.
9098 2010-05-09  Joseph Myers  <joseph@codesourcery.com>
9100         PR c/4784
9101         * c-decl.c (detect_field_duplicates_hash): New.  Handle anonymous
9102         structures and unions recursively.
9103         (detect_field_duplicates): Move duplicate detection with a hash to
9104         detect_field_duplicates_hash.  Always use a hash if anonymous
9105         structures or unions are present.
9106         * doc/extend.texi (Unnamed Fields): Document that duplicate fields
9107         give errors.
9109 2010-05-09  H.J. Lu  <hongjiu.lu@intel.com>
9111         PR target/44046
9112         * config/i386/driver-i386.c (host_detect_local_cpu): Properly
9113         detect Atom, Core 2 and Core i7.
9115 2010-05-09  Richard Guenther  <rguenther@suse.de>
9117         * gcc.c (store_arg): Handle temporary file deletion for
9118         joined arguments.
9120 2010-05-09  Richard Guenther  <rguenther@suse.de>
9122         PR middle-end/44043
9123         * ipa-inline.c (estimate_function_body_sizes): Return after
9124         disregarding inline limits.
9126 2010-05-09  Richard Guenther  <rguenther@suse.de>
9128         * gcc.c (store_arg): Revert last change.
9130 2010-05-08  Sandra Loosemore  <sandra@codesourcery.com>
9132         PR middle-end/28685
9133         * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
9134         (optimize_ops_list): Call it.
9136 2010-05-08  Richard Guenther  <rguenther@suse.de>
9138         PR tree-optimization/44030
9139         * tree-ssa-pre.c (eliminate): Copy NECESSARY flag.  Set
9140         NECESSARY flag if we propagate from a inserted expression.
9142 2010-05-08  Eric Botcazou  <ebotcazou@adacore.com>
9144         * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
9145         domain types as equal if they are both PLACEHOLDER_EXPRs.
9147 2010-05-08  Richard Guenther  <rguenther@suse.de>
9149         * lto-wrapper.c (run_gcc): Remove linker output from
9150         command line for LTRANS invocation.
9152 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
9154         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9155         lto-macho as lto_binary_reader.
9156         * target.h (struct gcc_target): New hooks lto_start and lto_end.
9157         * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
9158         * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
9159         in lto_start and lto_end calls.
9160         (is_elf_or_coff): Rename to maybe_lto_object_file.  Add Mach-O
9161         magic numbers.
9162         (scan_prog_file): Update is_elf_or_coff call.
9163         * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
9165         * collect2.c (main): Fix enum comparison.
9167         * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
9168         Add prototypes.
9169         * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
9170         * darwin.h (LINK_COMMAND_SPEC): Likewise.  Define TARGET_ASM_LTO_START
9171         and TARGET_ASM_LTO_END.
9172         * darwin.c: Include obstack.h and lto-streamer.h.
9173         (lto_section_names_offset, lto_section_names_obstack,
9174         lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
9175         global variables.
9176         (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
9177         (darwin_asm_lto_start): New function.  Redirect output to asm_out_file
9178         to a temporary file.
9179         (darwin_asm_lto_end): New function.  Restore asm_out_file.
9180         (darwin_asm_named_section): For LTO sections, replace the name with
9181         the offset of the section name in a string table, and build this
9182         table.
9183         (darwin_file_start): Initialize global vars for LTO support.
9184         (darwin_file_end): If output to asm_out_file was redirected, append it
9185         to the proper asm_out_file here.  Add the section names section.
9187 2010-05-07  Steven Bosscher  <steven@gcc.gnu.org>
9189         * c-pragma.c (pending_weak_d, pending_weak): New.
9190         (pending_weaks): Change the type to VEC((pending_weak,gc) *.
9191         (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
9192         handle_pragma_weak): Update the uses of pending_weaks.
9194 2010-05-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9196         PR documentation/44016
9197         * doc/standards.texi (Standards): Link to unversioned
9198         cxx0x_status.html page.
9200 2010-05-07  Iain Sandoe  <iains@gcc.gnu.org>
9202         PR target/43708
9203         * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
9204         in addition to TREE_USED, to avoid "set but unused" warnings.
9206 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
9208         * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
9209         (is_loop_prefetching_profitable): Do not insert prefetches
9210         when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
9211         times the prefetch ahead distance.
9213 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
9215         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
9216         Account for loop unrolling in the insn-to-prefetch ratio heuristic.
9217         (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
9218         the unroll_factor.
9220 2010-05-07  Changpeng Fang  <changpeng.fang@amd.com>
9222         * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
9223         a diagnostic info when the insn-to-mem ratio is too small.
9225 2010-05-07  Richard Guenther  <rguenther@suse.de>
9227         * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
9228         the linker plugin.
9229         (store_arg): Queue temp_filename for deletion instead of
9230         the whole argument.
9232 2010-05-07  Richard Guenther  <rguenther@suse.de>
9234         * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
9235         (run_gcc): Handle LTRANS phase invocation.
9236         * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
9238 2010-05-07  Jakub Jelinek  <jakub@redhat.com>
9240         * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
9241         this is also meaningful on PARM_DECLs and RESULT_DECLs.
9243 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9245         * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
9247 2010-05-07  Richard Guenther  <rguenther@suse.de>
9249         PR tree-optimization/44020
9250         * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
9251         code when PRE is not yet initialized.
9253 2010-05-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9255         * config/mips/dbxmdebug.h: Remove.
9256         * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
9258 2010-05-07  Shujing Zhao  <pearly.zhao@oracle.com>
9260         * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
9261         with null pointer and also warn about ordered comparison of zero with
9262         pointer if -Wextra.
9264 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9266         * graphite-blocking.c
9267         (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
9268         * graphite-clast-to-gimple.c
9269         (clast_to_gcc_expression): Same.
9270         (precision_for_value): Same.
9271         (precision_for_interval): Same.
9272         (gcc_type_for_interval): Same.
9273         (graphite_create_new_guard): Same.
9274         (compute_bounds_for_level): Same.
9275         (graphite_create_new_loop_guard): Same.
9276         * graphite-interchange.c
9277         (build_linearized_memory_access): Same.
9278         (pdr_stride_in_loop): Same.
9279         (memory_strides_in_loop_1): Same.
9280         (memory_strides_in_loop): Same.
9281         (extend_scattering): Same.
9282         (psct_scattering_dim_for_loop_depth): Same.
9283         (pbb_number_of_iterations): Same.
9284         * graphite-poly.h
9285         (debug_iteration_domains): Same.
9286         * graphite-ppl.c
9287         (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
9288         (ppl_set_inhomogeneous_gmp): Same.
9289         (ppl_strip_loop): Same.
9290         (ppl_lexico_compare_linear_expressions): Same.
9291         (ppl_read_polyhedron_matrix): Same.
9292         (ppl_max_for_le_pointset): Same.
9293         * graphite-ppl.h
9294         (ppl_read_polyhedron_matrix): Same.
9295         (tree_int_to_gmp): Same.
9296         (gmp_cst_to_tree): Same.
9297         (ppl_set_inhomogeneous): Same.
9298         (ppl_set_inhomogeneous_tree): Same.
9299         (ppl_set_coef): Same.
9300         (ppl_set_coef_tree): Same.
9301         * graphite-sese-to-poly.c
9302         (build_pbb_scattering_polyhedrons): Same.
9303         (build_scop_scattering): Same.
9304         (scan_tree_for_params_right_scev): Same.
9305         (scan_tree_for_params): Same.
9306         (find_params_in_bb): Same.
9307         (find_scop_parameters): Same.
9308         (add_upper_bounds_from_estimated_nit): Same.
9309         (build_loop_iteration_domains): Same.
9310         (add_condition_to_domain): Same.
9311         (pdr_add_memory_accesses): Same.
9313 2010-05-05  Andreas Simbuerger  <simbuerg@fim.uni-passau.de>
9315         * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
9316         CLooG's value_* macros to their respective mpz_* counterparts.
9317         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
9318         (graphite_create_new_loop_guard): Same.
9319         * graphite-interchange.c (build_linearized_memory_access): Same.
9320         (pdr_stride_in_loop): Same.
9321         (memory_strides_in_loop_1): Same.
9322         (1st_interchange_profitable_p): Same.
9323         * graphite-poly.c (extend_scattering): Same.
9324         (psct_scattering_dim_for_loop_depth): Same.
9325         (pbb_number_of_iterations): Same.
9326         (pbb_number_of_iterations_at_time): Same.
9327         * graphite-poly.h (new_1st_loop): Same.
9328         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
9329         (oppose_constraint): Same.
9330         (insert_constraint_into_matrix): Same.
9331         (ppl_set_inhomogeneous_gmp): Same.
9332         (ppl_set_coef_gmp): Same.
9333         (ppl_strip_loop): Same.
9334         (ppl_lexico_compare_linear_expressions): Same.
9335         (ppl_max_for_le_pointset): Same.
9336         (ppl_min_for_le_pointset): Same.
9337         (ppl_build_realtion): Same.
9338         * graphite-ppl.h (gmp_cst_to_tree): Same.
9339         (ppl_set_inhomogeneous): Same.
9340         (ppl_set_inhomogeneous_tree): Same.
9341         (ppl_set_coef): Same.
9342         (ppl_set_coef_tree): Same.
9343         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
9344         (build_scop_scattering): Same.
9345         (add_value_to_dim): Same.
9346         (scan_tree_for_params_right_scev): Same.
9347         (scan_tree_for_params_int): Same.
9348         (scan_tree_for_params): Same.
9349         (find_params_in_bb): Same.
9350         (find_scop_parameters): Same.
9351         (add_upper_bounds_from_estimated_nit): Same.
9352         (build_loop_iteration_domains): Same.
9353         (create_linear_expr_from_tree): Same.
9354         (add_condition_to_domain): Same.
9355         (pdr_add_memory_accesses): Same.
9357 2010-05-06  Magnus Fromreide  <magfr@lysator.liu.se>
9358             Jason Merrill  <jason@redhat.com>
9360         * c-common.c (c_common_reswords): Add nullptr.
9361         * c-common.h: Add RID_NULLPTR.  Reorganize C++0x rids.
9362         * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
9363         (gen_type_die_with_usage): Likewise.
9364         * dbxout.c (dbxout_type): Likewise.
9365         * sdbout.c (plain_type_1): Likewise.
9367 2010-05-06  Jason Merrill  <jason@redhat.com>
9369         * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
9370         Don't change GS_OK to GS_ALL_DONE.  Make sure that all cases set
9371         ret appropriately.
9372         (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
9374         * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
9375         stripping WITH_SIZE_EXPR.
9376         (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
9377         change.
9379 2010-05-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9381         * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
9382         list of obsolete configurations.
9383         Disabled check for obsolete configurations.
9384         (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
9385         Removed support for previous versions.
9386         * config/mips/iris.h: Removed.
9387         * config/mips/iris5.h: Removed.
9388         * config/mips/iris6.h: Merged old iris.h contents.
9389         (TARGET_IRIX): Removed.
9390         (DRIVER_SELF_SPECS): Removed mabi=32.
9391         (IDENT_ASM_OP): Removed undef.
9392         (STARTFILE_SPEC): Removed mabi=32.
9393         (ENDFILE_SPEC): Likewise.
9394         (IRIX_SUBTARGET_LINK_SPEC): Likewise.
9395         (MACHINE_TYPE): Update for IRIX 6.5.
9396         * config/mips/mips.c (mips_build_builtin_va_list): Replaced
9397         TARGET_IRIX by TARGET_IRIX6.
9398         (mips_file_start): Likewise.
9399         (mips_output_external): Remove IRIX 5/6 O32 support.
9400         (mips_output_function_prologue): Likewise.
9401         * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
9402         TARGET_IRIX6.
9403         (TARGET_CPU_CPP_BUILTINS): Likewise.
9404         (TARGET_IRIX): Removed.
9405         * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
9406         (MULTILIB_DIRNAMES): Removed 32.
9407         (MULTILIB_OSDIRNAMES): Removed ../lib.
9408         * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
9409         (Specific, mips-sgi-irix5): Document removal.
9410         (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
9411         Remove references to older IRIX 6 releases and the O32 ABI.
9413 2010-05-06  Jakub Jelinek  <jakub@redhat.com>
9415         PR bootstrap/43994
9416         * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
9417         instead of DF_REF_REAL_REG.
9419 2010-05-06  Dave Korn  <dave.korn.cygwin@gmail.com>
9421         PR target/43888
9422         * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
9423         handling to still return true for x64 targets.
9425 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
9427         * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
9429 2010-05-06  Jan Hubicka  <jh@suse.cz>
9431         PR tree-optimization/43791
9432         * ipa-inline.c (update_caller_keys): Remove bogus
9433         disregard_inline_limits check.
9435 2010-05-06  Michael Matz  <matz@suse.de>
9437         PR tree-optimization/43984
9438         * tree-ssa-pre.c (inserted_phi_names): Remove.
9439         (inserted_exprs): Change to bitmap.
9440         (create_expression_by_pieces): Set bits, don't append to vector.
9441         (insert_into_preds_of_block): Don't handle inserted_phi_names.
9442         (eliminate): Don't look at inserted_phi_names, remove deleted
9443         insns from inserted_exprs.
9444         (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
9445         (init_pre, fini_pre): Allocate and free bitmaps.
9446         (execute_pre): Insert insns on edges before elimination.
9448 2010-05-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
9450         * tree.c (initializer_zerop): Handle STRING_CST.
9452 2010-05-06  Manuel López-Ibáñez  <manu@gcc.gnu.org>
9454         PR 40989
9455         * doc/invoke.texi (Wimplicit): Document as C only.
9456         * opts.c (common_handle_option): Add argument kind.
9457         (handle_option): Rename as read_cmdline_option. Factor out code to...
9458         (handle_option): ... here. New.
9459         (handle_options): Rename as read_cmdline_options.
9460         (decode_options): Update call.
9461         (set_option): Use option index instead of option pointer. Classify
9462         diagnostics correctly.
9463         (enable_warning_as_error): Call handle_option.
9464         * opts.h (set_option): Update declaration.
9465         (handle_option): Declare.
9466         * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
9467         * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
9468         * c-opts.c (set_Wimplicit): Delete.
9469         (c_family_lang_mask): New static constant.
9470         (c_common_handle_option): Add argument kind. Use handle_option
9471         instead of set_Wimplicit.
9472         (c_common_post_options): warn_implicit and warn_implicit_int
9473         are disabled by default.
9474         * c-common.c (warn_implicit): Do not define here.
9475         * c-common.h (warn_implicit): Do not declare here.
9476         (c_common_handle_option): Update declaration.
9477         * lto-opts.c (lto_reissue_options): Update call to set_option.
9479 2010-05-06  Richard Guenther  <rguenther@suse.de>
9481         PR tree-optimization/43571
9482         * domwalk.c (walk_dominator_tree): Walk the dominator
9483         sons in more optimal order.
9485 2010-05-06  Richard Guenther  <rguenther@suse.de>
9487         PR tree-optimization/43934
9488         * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
9489         (stmt_cost): Likewise.
9490         (extract_true_false_args_from_phi): New helper.
9491         (determine_max_movement): For PHI nodes verify we can hoist them
9492         and compute their cost.
9493         (determine_invariantness_stmt): Handle PHI nodes.
9494         (move_computations_stmt): Likewise.  Hoist PHI nodes in
9495         if-converted form using COND_EXPRs.
9496         (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
9497         (tree_ssa_lim): Likewise.
9498         * tree-flow.h (tree_ssa_lim): Adjust prototype.
9499         * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
9501 2010-05-06  Richard Guenther  <rguenther@suse.de>
9503         PR tree-optimization/43987
9504         * tree-ssa-structalias.c (could_have_pointers): For possibly
9505         address-taken variables force pointers to be recorded.
9506         (create_variable_info_for_1): Likewise.
9507         (push_fields_onto_fieldstack): Pass in wheter all fields
9508         must have pointers.
9509         (find_func_aliases): Query types instead of vars whether
9510         they contain pointers where appropriate.
9512 2010-05-06  Jan Hubicka  <jh@suse.cz>
9514         * cgraphbuild.c (record_reference_ctx): Add varpool_node.
9515         (record_reference, mark_address, mark_load, mark_store): Record
9516         references.
9517         (record_references_in_initializer): Update call of record_references.
9518         (rebuild_cgraph_edges): Remove all references before rebuiding.
9519         * cgraph.c (cgraph_create_node): Clear ref list.
9520         (cgraph_remove_node): Remove references.
9521         (dump_cgraph_node): Dump references.
9522         (cgraph_clone_node): Clone references.
9523         * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
9524         (struct cgraph_node, varpool_node): Add ref_lst.
9525         * ipa-ref.c: New file.
9526         * ipa-ref.h: New file.
9527         * ipa-ref-inline.h: New file.
9528         * lto-cgraph.c (output_varpool): Take cgrag node set argument.
9529         (referenced_from_other_partition_p): New function.
9530         (lto_output_varpool_node): Take set arugment; call
9531         referenced_from_other_partition.
9532         (lto_output_ref): New.
9533         (add_references): New.
9534         (output_refs): New.
9535         (output_cgraph): Compute boundary based on references; output refs.
9536         (output_varpool): Accept cgraph_node_set argument.
9537         (input_ref): New.
9538         (input_refs): New.
9539         (input_cgraph): Call input_refs.
9540         * lto-section-in.c (lto_section_name): Add refs.
9541         * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
9542         (ipa-ref.o): New file.
9543         * varpool.c (varpool_node): Clear ipa ref list.
9544         (varpool_remove_node): Remove references.
9545         (dump_varpool_node): Dump references.
9546         (varpool_assemble_decl): Only compile finalized ones.
9547         (varpool_extra_name_alias): Initialize ref list.
9548         * lto-streamer.c (lto-get_section_name): Add .refs section.
9549         * lto-streamer.h (lto_section_type): Add LTO_section_refs.
9550         (referenced_from_other_partition_p): Declared.
9552 2010-05-06  Ira Rosen  <irar@il.ibm.com>
9554         PR tree-optimization/43901
9555         * tree-vect-stmts.c (vectorizable_call): Assert that vector
9556         type is not NULL if it's transformation phase, and return
9557         FALSE if it's analysis.
9558         (vectorizable_conversion, vectorizable_operation,
9559         vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
9561 2010-05-05  Andrew Pinski  <andrew.pinski@caviumnetworks.com>
9563         * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
9564         Delete.
9565         * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
9566         New define.
9567         * config/mips/mips-protos.h
9568         (mips_small_register_classes_for_mode_p): Delete prototype.
9570 2010-05-06  Bernd Schmidt  <bernds@codesourcery.com>
9572         * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
9573         * config/arm/arm.c (multiple_operation_profitable_p,
9574         compute_offset_order): New static functions.
9575         (load_multiple_sequence, store_multiple_sequence): Use them.
9576         Replace constant 4 with MAX_LDM_STM_OPS.  Compute order[0] from
9577         memory offsets, not register numbers.
9578         (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
9580 2010-05-05  Steven Bosscher  <steven@gcc.gnu.org>
9582         * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
9583         (get_pending_sizes, put_pending_size, put_pending_sizes):
9584         Update the uses of pending_sizes.
9585         * c-decl.c (store_parm_decls): Likewise.
9586         * c-tree.h (struct c_arg_info): Likewise.
9587         * tree.h: Update the prototype for get_pending_sizes and
9588         put_pending_sizes.
9590 2010-05-05  Jason Merrill  <jason@redhat.com>
9592         PR debug/43370
9593         * c-common.c (handle_aligned_attribute): Respect
9594         ATTR_FLAG_TYPE_IN_PLACE.
9596         PR testsuite/43758
9597         * target.h (struct gcc_target): Add attribute_takes_identifier_p.
9598         * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9599         (TARGET_INITIALIZER): Use it.
9600         * c-common.c (attribute_takes_identifier_p): Call it.
9601         * c-common.h: Update prototype.
9602         * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
9603         (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9605 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
9607         PR debug/43950
9608         * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
9609         DW_ID_down_case for Fortran compilation units.
9611 2010-05-05  Jan Hubicka  <jh@suse.cz>
9613         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
9614         handle aliases.
9616 2010-05-05  Eric Botcazou  <ebotcazou@adacore.com>
9618         * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
9619         a variable-sized RESULT_DECL.
9621 2010-05-05  Maxim Kuvyrkov  <maxim@codesourcery.com>
9623         * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
9625 2010-05-05  Jason Merrill  <jason@redhat.com>
9627         PR c++/43787
9628         * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
9629         returns GS_OK.
9630         (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
9632 2010-05-05  Alexandre Oliva  <aoliva@redhat.com>
9633             Jakub Jelinek  <jakub@redhat.com>
9635         PR debug/43478
9636         * df-problems.c (struct dead_debug_use, struct dead_debug): New.
9637         (dead_debug_init, dead_debug_finish): New functions.
9638         (dead_debug_add, dead_debug_insert_before): Likewise.
9639         (df_note_bb_compute): Initialize a dead_debug object, add dead
9640         debug uses to it, insert debug bind insns before death insns,
9641         reset debug insns that refer to pending uses at the end.
9642         * rtl.h (make_debug_expr_from_rtl): New prototype.
9643         * varasm.c (make_debug_expr_from_rtl): New function.
9645 2010-05-05  Jan Hubicka  <jh@suse.cz>
9647         * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
9648         (lto_varpool_encoder_new, lto_varpool_encoder_delete,
9649         lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
9650         lto_varpool_encoder_deref, lto_varpool_encoder_size,
9651         lto_varpool_encoder_encode_initializer_p,
9652         lto_set_varpool_encoder_encode_initializer): New functions.
9653         (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
9654         call output_varpool.
9655         (input_varpool_node): Do not always set analyzed.
9656         (input_cgraph_1): Return vector of cgraph nodes.
9657         (input_varpool_1): Return vector of varpools.
9658         (input_cgraph): Free the vectors.
9659         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9660         output only initializers needed.
9661         (lto_output): Only call output_cgraph.
9662         (produce_asm_for_decls): Call lto_varpool_encoder_delete.
9663         * lto-section-out.c (lto_new_out_decl_state): Initialize
9664         state->varpool_node_encoder.
9665         * lto-streamer.h (lto_varpool_encoder_d): New.
9666         (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
9667         (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
9668         (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
9669         lto_varpool_encoder_encode, lto_varpool_encoder_delete,
9670         lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
9671         Declare.
9672         (output_varpool, input_varpool): Remove declarations.
9674 2010-05-05  Jan Hubicka  <jh@suse.cz>
9676         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
9677         with body can prevail.
9679 2010-05-05  Jan Hubicka  <jh@suse.cz>
9681         * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
9682         size.
9684 2010-05-05  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
9686         * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
9688         * gengtype.h (erro_at_line): Constify pos argument.
9690         * gengtype.c: Include hashtab.h.
9691         (enum gc_used): Document GC_MAYBE_POINTED_TO.
9692         (error_at_line): Constify pos argument.
9693         (do_typedef): Initialize p->opt field.
9694         (get_file_gtfilename): Fix comment typo.
9695         (struct walk_type_data): Constify line field.
9696         (get_output_file_for_structure): New function.
9697         (write_local_func_for_structure): Constify orig_s argument.
9698         Use get_output_file_for_structure.
9699         (write_func_for_structure): Use get_output_file_for_structure.
9700         (INDENT): New define.
9701         (dump_pair, dump_type, dump_type_list, dump_typekind)
9702         (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
9703         (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
9704         functions.
9705         (seen_types): New variable.
9706         (main): New variable do_dump.  Process "-d" command line option.
9707         Call dump_everything if dump requested.
9709 2010-05-05  Jakub Jelinek  <jakub@redhat.com>
9711         * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
9712         in a temporary instead of invoking the macro multiple times.
9713         (track_expr_p): Likewise.
9715 2010-05-04  Neil Vachharajani  <nvachhar@google.com>
9717         * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
9718         per new semantics.
9719         * opts.c (decode_options): Enable -Werror=coverage-mismatch.
9720         * coverage.c (get_coverage_counts): Always emit a warning.  Adjust
9721         conditions for printing notes.
9722         * common.opt (-Wcoverage-mismatch): Allow negative, default to
9723         true, update documentation.
9724         * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
9726 2010-05-04  Jakub Jelinek  <jakub@redhat.com>
9728         PR c/43981
9729         * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
9730         on dimen.
9732 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9734         PR target/43799
9735         * config/i386/i386.md (sse_prologue_save): Clobber CC register.
9736         (*sse_prologue_save_insn1): Likewise.
9737         (SSE prologue save splitter): Likewise.
9739 2010-05-04  Eric Botcazou  <ebotcazou@adacore.com>
9741         * tree.c (free_lang_data_in_one_sizepos): New inline function.
9742         (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
9743         types.  Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
9744         (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
9745         all decls.  Call it on DECL_FIELD_OFFSET of fields.
9746         (find_decls_types_r): Follow DECL_VALUE_EXPR.
9747         (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
9749 2010-05-04  Martin Jambor  <mjambor@suse.cz>
9751         * tree-sra.c (build_access_from_expr_1): The first parameter type
9752         changed to simple tree.
9753         (build_access_from_expr): Likewise, gsi parameter was eliminated.
9754         (scan_assign_result): Renamed to assignment_mod_result, enum elements
9755         renamed as well.
9756         (build_accesses_from_assign): Removed all parameters except for a
9757         simple gimple statement.  Now returns a simple bool.
9758         (scan_function): All non-analysis parts moved to separate functions
9759         sra_modify_function_body and ipa_sra_modify_function_body.  Removed all
9760         parameters and updated both callers.
9761         (sra_modify_expr): Removed parameter data.
9762         (sra_modify_function_body): New function.
9763         (perform_intra_sra): Call sra_modify_function_body to modify the
9764         function body.
9765         (replace_removed_params_ssa_names): Parameter data changed into
9766         adjustments vector.
9767         (sra_ipa_modify_expr): Likewise.  Also removed unused parameter gsi and
9768         changed the parameter dont_convert to convert with the opposite
9769         meaning.
9770         (sra_ipa_modify_assign): Parameter data changed into adjustments
9771         vector, return value changed to bool.
9772         (ipa_sra_modify_function_body): New function.
9773         (sra_ipa_reset_debug_stmts): Updated a comment.
9774         (modify_function): Use ipa_sra_modify_function_body to modify function
9775         body.
9777 2010-05-04  H.J. Lu  <hongjiu.lu@intel.com>
9779         PR middle-end/43671
9780         * alias.c (true_dependence): Handle the same VALUE in x and mem.
9781         (canon_true_dependence): Likewise.
9782         (write_dependence_p): Likewise.
9784 2010-05-04  Jan Hubicka  <jh@suse.cz>
9786         * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
9787         * cgraphbuild.c: Include ipa-utils.h
9788         (record_reference_ctx): New struct.
9789         (record_reference): Simplify to work on initializers; not statements.
9790         (mark_address, mark_load, mark_store): New.
9791         (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
9792         walk PHI nodes too.
9793         (record_references_in_initializer): Update use of record_reference.
9794         (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
9795         walk PHI nodes too.
9797 2010-05-04  Jan Hubicka  <jh@suse.cz>
9799         * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
9800         node will be removed anyway.
9801         (lto_varpool_replace_node): Allow also unanalyzed nodes;
9802         relink aliases of node into prevailing node.
9803         * varpool.c (varpool_remove_node): Remove aliases properly;
9804         when removing node, remove all its aliases too; remove DECL_INITIAL
9805         of removed node; ggc_free the varpool node.
9807 2010-05-04  Richard Guenther  <rguenther@suse.de>
9809         PR tree-optimization/43879
9810         * tree-ssa-structalias.c (alias_get_name): Use
9811         DECL_ASSEMBLER_NAME if available.
9812         (create_function_info_for): Return the varinfo node.
9813         (ipa_pta_execute): Associate same-body aliases and extra names
9814         with their origin nodes varinfo.  Dump DECL_ASSEMBLER_NAME.
9816 2010-05-04  Kaz Kojima  <kkojima@gcc.gnu.org>
9818         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
9820 2010-05-04  Mikael Pettersson  <mikpe@it.uu.se>
9822         PR bootstrap/43964
9823         * ira-color.c (assign_hard_reg): Declare rclass and add_cost
9824         only if HONOR_REG_ALLOC_ORDER is not defined.
9826 2010-05-04  Richard Guenther  <rguenther@suse.de>
9828         PR tree-optimization/43949
9829         * tree-vrp.c (extract_range_from_binary_expr): Only handle
9830         TRUNC_MOD_EXPR.
9832 2010-04-26  Jason Merrill  <jason@redhat.com>
9834         * c.opt (-fstrict-enums): New.
9835         * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
9837 2010-05-03  David Ung  <davidu@mips.com>
9838             James E. Wilson  <wilson@codesourcery.com>
9840         * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
9841         emit the trap instruction before the divide for TUNE_74K.
9843 2010-05-03  Steven Bosscher  <steven@gcc.gnu.org>
9845         * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
9846         (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
9847         based on the above, for new target hook.
9849         * hooks.c (hook_bool_mode_true): New generic hook.
9850         * hooks.h (hook_bool_mode_true): Add prototype.
9852         * target.h (struct gcc_target): Add small_register_classes_for_mode_p
9853         target hook.
9854         * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
9855         target hook, set to hook_bool_mode_false.
9856         * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
9857         * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
9858         with targetm.small_register_classes_for_mode_p.
9859         (find_reusable_reload): Likewise.
9860         (combine_reloads): Likewise.
9861         * reload1.c (reload_as_needed): Likewise.
9862         * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
9863         * ifcvt.c (noce_process_if_block, check_cond_move_block,
9864         dead_or_predicable): Likewise.
9865         * regmove.c (optimize_reg_copy_1): Likewise.
9866         * calls.c (prepare_call_address): Likewise.
9867         (precompute_register_parameters): Likewise.
9869         * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
9870         hook definition.
9871         * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
9872         implementation of the hook that considers all register classes
9873         small except for SH64.
9874         (sh_override_options): Use the new hook.
9875         * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
9876         Add prototype.
9878         * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
9879         hook definition.
9880         * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
9881         implementation of the hook that considers all register classes
9882         small for THUMB1.
9883         * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
9884         Add prototype.
9886         * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
9887         hook definition.
9888         * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
9889         implementation of the hook that considers all register classes
9890         small for MIPS16.
9891         * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
9892         Add prototype.
9894         * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
9895         hook definition.
9896         * config/m32c/m32c.h: Likewise.
9897         * config/pdp11/pdp11.h: Likewise.
9898         * config/avr/avr.h: Likewise.
9899         * config/xtensa/xtensa.h: Likewise.
9900         * config/m68hc11/m68hc11.h: Likewise.
9901         * config/mn10300/mn10300.h: Likewise.
9902         * config/mcore/mcore.h: Likewise.
9903         * config/h8300/h8300.h: Likewise.
9904         * config/bfin/bfin.h: Likewise.
9906         * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
9907         * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
9909 2010-05-03  Anatoly Sokolov  <aesok@post.ru>
9911         * double-int.h (tree_to_double_int): Remove macro.
9912         (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
9913         * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
9914         (tree_to_double_int): New function.
9915         * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
9916         Move ...
9917         * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
9919 2010-05-03  Richard Guenther  <rguenther@suse.de>
9921         PR tree-optimization/43971
9922         * tree-ssa-structalias.c (get_constraint_for_1): Fix
9923         constraints in the !flag_delete_null_pointer_checks case.
9925 2010-05-03  Jakub Jelinek  <jakub@redhat.com>
9927         PR debug/43972
9928         * config/i386/i386.c (ix86_delegitimize_address): Make sure the
9929         result mode matches original rtl mode.
9931 2010-05-03  Dave Korn  <dave.korn.cygwin@gmail.com>
9933         PR target/43888
9934         * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
9936 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
9938         * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
9939         when processing flag options.
9941 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
9943         * gcov-iov.c (main): Change format string placeholder
9944         from %#08x to 0x%08x.
9945         * genchecksum.c (dosum): Change format string placeholder
9946         from %#02x to 0x%02x.
9948 2010-05-02  Richard Guenther  <rguenther@suse.de>
9950         PR tree-optimization/43879
9951         * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
9953 2010-05-02  Bruno Haible  <bruno@clisp.org>
9955         * doc/extend.texi (Function Attributes): Fix a typo.
9957 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
9959         Revert:
9960         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
9961         placeholder from 0x%x to %#x.
9962         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
9963         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
9964         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
9965         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
9966         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
9967         * config/i386/i386.c (ix86_target_string): Ditto.
9968         * config/i386/i386.c (output_pic_addr_const): Ditto.
9969         (print_operand): Ditto.
9971 2010-05-02  Uros Bizjak  <ubizjak@gmail.com>
9973         * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
9974         placeholder from 0x%x to %#x.
9975         (ASM_OUTPUT_DEBUG_DATA1): Ditto.
9976         (ASM_OUTPUT_DEBUG_DATA4): Ditto.
9977         (ASM_OUTPUT_DEBUG_DATA): Ditto.
9978         (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
9979         (ASM_OUTPUT_DEBUG_DATA8): Ditto.
9980         * optc-gen.awk: Ditto.
9981         * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
9982         (HOST_WIDE_INT_PRINT_HEX): Ditto.
9983         (HOST_WIDEST_INT_PRINT_HEX): Ditto.
9984         (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
9986 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
9988         * target.h (struct calls): Add function_value_regno_p field.
9989         * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
9990         (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
9991         * targhooks.c (default_function_value_regno_p): New function.
9992         * targhooks.h (default_function_value_regno_p): Declare function.
9993         * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
9994         * builtins.c. (apply_result_size): (Ditto.).
9995         * combine.c. (likely_spilled_retval_p): (Ditto.).
9996         * mode-switching.c. Include 'target.h'.
9997         (create_pre_exit): Use function_value_regno_p hook.
9998         * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
9999         * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
10000         TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
10002         * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
10003         * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
10004         (ix86_function_value_regno_p): Declare as static, change argument
10005         type to const unsigned int.
10006         * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
10008 2010-05-01  Richard Guenther  <rguenther@suse.de>
10010         PR tree-optimization/43949
10011         * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
10012         types.
10013         (extract_range_from_binary_expr): Handle *_MOD_EXPR.
10015 2010-05-01  Anatoly Sokolov  <aesok@post.ru>
10017         * rtl.h (CONST_DOUBLE_P): Define.
10018         (rtx_to_double_int): Declare.
10019         * emit-rtl.c (rtx_to_double_int): New function.
10020         * dwarf2out.c (insert_double): New function.
10021         (loc_descriptor, add_const_value_attribute): Clean up, use
10022         rtx_to_double_int and insert_double functions.
10024 2010-05-01  Jonathan Wakely  <jwakely.gcc@gmail.com>
10026         * doc/extend.texi (Inline): Add missing return keyword to examples.
10027         (Function Attributes, Variable Attributes, Pragmas): Hyphenate
10028         "command-line".
10030 2010-04-30  Eric Botcazou  <ebotcazou@adacore.com>
10032         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
10033         the variable part of the offset as well.  Use highest_pow2_factor for
10034         all alignment checks.
10036 2010-04-30  Richard Guenther  <rguenther@suse.de>
10038         PR tree-optimization/43879
10039         * tree-ssa-structalias.c (type_could_have_pointers): Functions
10040         can have pointers.
10042 2010-04-30  Jan Hubicka  <jh@suse.cz>
10044         * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
10045         varpool.
10046         (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
10048 2010-04-30  Jan Hubicka  <jh@suse.cz>
10050         * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
10051         New.
10052         * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
10053         * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
10054         (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
10055         cgraph_node_set_needs_ltrans_p): Remove.
10057 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10059         * sdbout.c: Include vec.h, do not include varray.h.
10060         (deferred_global_decls, sdbout_global_decl,
10061         sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
10062         * toplev.c: Do not include varray.h.
10063         (dump_memory_report): Do not dump VARRAY statistics.
10064         * gengtype.c (open_base_file): Ignore varray.h.
10065         * Makefile.in: Update for abovementioned changes.
10066         Remove all traces of varray.c and varray.h.
10067         * varray.c: Remove file.
10068         * varray.h: Remove file.
10070 2010-04-30  Jan Hubicka  <jh@suse.cz>
10072         * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
10073         references.
10075 2010-04-30  Jan Hubicka  <jh@suse.cz>
10077         * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
10078         needed.
10080 2010-04-30  Richard Guenther  <rguenther@suse.de>
10082         * tree-ssa-structalias.c (get_constraint_for_1): Generate
10083         constraints for CONSTRUCTOR.
10085 2010-04-30  Richard Guenther  <rguenther@suse.de>
10087         PR lto/43946
10088         * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
10089         first after all lowering passes.
10091 2010-04-30  Steven Bosscher  <steven@gcc.gnu.org>
10093         * toplev.c: Include varray.h for statistics dumping.
10094         * tree.h: Do not declare varray_head_tag.
10095         * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
10096         regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
10097         c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
10098         gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
10099         lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
10100         tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
10101         c-common.c, c-common.h, reg-stack.c, basic-block.h,
10102         tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
10103         include varray.h.
10104         * Makefile.in: Update for abovementioned changes.
10106 2010-04-30  Jakub Jelinek  <jakub@redhat.com>
10108         PR debug/43942
10109         * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
10111 2010-04-30  Hariharan Sandanagobalane  <hariharan@picochip.com>
10113         * config/picochip/picochip.c (picochip_legitimize_address): Define.
10114         Use this function to do machine-specific conversion.
10115         (picochip_legitimize_reload_address): Likewise.
10116         (picochip_legitimate_address_p): Check valid base register only if
10117         strict.
10118         (picochip_check_conditional_copy): Check for modw only if opnd is
10119         register.
10120         * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
10121         to call the function in c.
10122         * config/picochip/picochip-protos.h
10123         (picochip_legitimize_reload_address): Define.
10124         * config/picochip/picochip.md (supported_compare1): Define.
10126 2010-04-30  Jan Hubicka  <jh@suse.cz>
10128         * cgraph.h (cgraph_local_info): Remove for_functions_valid.
10129         (cgraph_global_info): Remove inlined.
10130         (LTO_cgraph_tag_names): Remove.
10131         (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
10132         * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
10133         simplify cgraph tags and document.
10134         (lto_output_node): Use only LTO_cgraph_unavail_node and
10135         LTO_cgraph_analyzed_node; Do not save analzed, reachable,
10136         for_functions_valid, global info, process and output flags.
10137         (input_overwrite_node): Initialize estimated stack size and
10138         estimated growth.  Do not read flags we no longer store.
10139         (input_node): Likewise do not read info no longer stored.
10140         * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
10141         flag.
10143 2010-04-30  Richard Guenther  <rguenther@suse.de>
10145         PR tree-optimization/43879
10146         * tree-ssa-structalias.c (get_constraint_for_1): Properly
10147         handle non-zero initializers.
10149 2010-04-30  Richard Guenther  <rguenther@suse.de>
10151         * builtins.c (fold_builtin_1): Delete free (0).
10153 2010-04-29  Jan Hubicka  <jh@suse.cz>
10155         * gengtype.c (open_base_files): Add lto-streamer.h
10156         * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
10157         (pass_ipa_cp): GGC collect.
10158         * toplev. (compile_file): Do not output symbols.
10159         * ipa-inline.c (pass_ipa_inline): Add ggc collect.
10160         * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
10161         TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
10162         * lto-section-in.c: Include ggc.h
10163         (lto_new_in_decl_state): Alloc in GGC.
10164         (lto_delete_in_decl_state): Likewise.
10165         * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
10166         Collect.
10168 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
10170         PR target/42895
10171         * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
10172         ORDER_REGS_FOR_LOCAL_ALLOC.  All instances of this macro changed.
10173         (HONOR_REG_ALLOC_ORDER): Describe new macro.
10174         * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
10175         * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
10176         account only if HONOR_REG_ALLOC_ORDER is not defined.
10177         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
10178         * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
10180 2010-04-29  Jon Grant  <04@jguk.org>
10182         * collect2.c (vflag): Change type from int to bool.
10183         (debug): Likewise.
10184         (helpflag): New global bool.
10185         (main): Set vflag and debug with boolean, not integer truth values.
10186         Accept new "--help" option and output usage text if found.
10187         * collect2.h (vflag): Update prototype.
10188         (debug): Likewise.
10190 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
10192         PR bootstrap/43936
10193         * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
10195 2010-04-29  Richard Guenther  <rguenther@suse.de>
10197         PR bootstrap/43935
10198         * plugin.h (invoke_plugin_callbacks): Annotate arguments
10199         with ATTRIBUTE_UNUSED.
10201 2010-04-29  H.J. Lu  <hongjiu.lu@intel.com>
10203         PR target/43921
10204         * config/i386/i386.c (get_some_local_dynamic_name): Replace
10205         INSN_P with NONDEBUG_INSN_P.
10206         (distance_non_agu_define): Likewise.
10207         (distance_agu_use): Likewise.
10209 2010-04-29  Bernd Schmidt  <bernds@codesourcery.com>
10211         From Dominique d'Humieres  <dominiq@lps.ens.fr>
10212         PR bootstrap/43858
10213         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
10214         test_set.
10216 2010-04-29  Brian Hackett  <bhackett1024@gmail.com>
10218         * plugin.h (invoke_plugin_callbacks): New inline function.
10219         * plugin.c (flag_plugin_added): New global flag.
10220         (add_new_plugin): Initialize above flag.
10221         (invoke_plugin_callbacks): Rename to ...
10222         (invoke_plugin_callbacks_full): ... this.
10224 2010-04-28  Jan Hubicka  <jh@suse.cz>
10226         * lto-symtab.c (lto_symtab_entry_def) Add vnode.
10227         (lto_varpool_replace_node): New.
10228         (lto_symtab_resolve_symbols): Resolve varpool nodes.
10229         (lto_symtab_merge_decls_1): Prefer decls with varpool node.
10230         (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
10231         * cgraph.h (varpool_node_ptr): New type.
10232         (varpool_node_ptr): New vector.
10233         (varpool_node_set_def): New structure.
10234         (varpool_node_set): New type.
10235         (varpool_node_set): New vector.
10236         (varpool_node_set_element_def): New structure.
10237         (varpool_node_set_element, const_varpool_node_set_element): New types.
10238         (varpool_node_set_iterator): New type.
10239         (varpool_node): Add prev pointers, add used_from_other_partition,
10240         in_other_partition.
10241         (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
10242         varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
10243         varpool_get_node, varpool_remove_node): Declare.
10244         (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
10245         varpool_node_set_size): New inlines.
10246         * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
10247         * tree-pass.h (varpool_node_set_def): Forward declare.
10248         (ipa_opt_pass_d): Summary writting takes vnode sets too.
10249         (ipa_write_optimization_summaries): Update prototype.
10250         * ipa-cp.c (ipcp_write_summary): Update.
10251         * ipa-reference.c (ipa_reference_write_summary): Update.
10252         * lto-cgraph.c (lto_output_varpool_node): New static function.
10253         (output_varpool): New function.
10254         (input_varpool_node): New static function.
10255         (input_varpool_1): New function.
10256         (input_cgraph): Input varpool.
10257         * ipa-pure-const.c (pure_const_write_summary): Update.
10258         * lto-streamer-out.c (lto_output): Update, output varpool too.
10259         (write_global_stream): Kill WPA hack.
10260         (produce_asm_for_decls): Update.
10261         (output_alias_pair_p): Handle variables.
10262         (output_unreferenced_globals): Output only needed partition of varpool.
10263         * ipa-inline.c (inline_write_summary): Update.
10264         * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
10265         cgraph.
10266         * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
10267         * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
10268         varpool_node_set_new, varpool_node_set_add,
10269         varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
10270         debug_varpool_node_set): New functions.
10271         * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
10272         (execute_one_pass): Process new decls too.
10273         (ipa_write_summaries_2): Pass around vsets.
10274         (ipa_write_summaries_1): Likewise.
10275         (ipa_write_summaries): Build vset; be more selective about cgraph nodes
10276         to add.
10277         (ipa_write_optimization_summaries_1): Pass around vsets.
10278         (ipa_write_optimization_summaries): Likewise.
10279         * varpool.c (varpool_get_node): New.
10280         (varpool_node): Update doubly linked lists.
10281         (varpool_remove_node): New.
10282         (dump_varpool_node): More dumping.
10283         (varpool_enqueue_needed_node): Update doubly linked lists.
10284         (decide_is_variable_needed): Kill ltrans hack.
10285         (varpool_finalize_decl): Kill lto hack.
10286         (varpool_assemble_decl): Skip decls in other partitions.
10287         (varpool_assemble_pending_decls): Update doubly linkes lists.
10288         (varpool_empty_needed_queue): Likewise.
10289         (varpool_extra_name_alias): Likewise.
10290         * lto-streamer.c (lto_get_section_name): Add vars section.
10291         * lto-streamer.h (lto_section_type): Update.
10292         (output_varpool, input_varpool): Declare.
10294 2010-04-28  Mike Stump  <mikestump@comcast.net>
10296         * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
10298 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10300         * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
10301         record or union type with RECORD_OR_UNION_TYPE_P predicate.
10302         (lto_input_ts_type_tree_pointers): Likewise.
10303         * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
10304         (lto_output_ts_type_tree_pointers): Likewise.
10306 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10308         Uniquization of constants at the Tree level
10309         * tree.h (DECL_IN_CONSTANT_POOL): New macro.
10310         (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
10311         bit to the end.
10312         (tree_output_constant_def): Declare.
10313         * gimplify.c (gimplify_init_constructor): When using block copy, first
10314         uniquize the constant constructor on the RHS.
10315         * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
10316         DECL_IN_CONSTANT_POOL flag.
10317         * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
10318         * varasm.c (make_decl_rtl): Deal with variables belonging to the global
10319         constant pool.
10320         (assemble_variable): Deal with symbols belonging to the tree constant
10321         pool.
10322         (get_constant_section): Add ALIGN parameter and simplify.
10323         (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
10324         (assemble_constant_contents): Use the expression of the VAR_DECL.
10325         (output_constant_def_contents): Use the alignment of the VAR_DECL.
10326         (tree_output_constant_def): New global function.
10327         (mark_constant): Use the expression of the VAR_DECL.
10328         (place_block_symbol): Use the alignment of the VAR_DECL and the size of
10329         its expression.
10330         (output_object_block): Likewise and assemble the expression.
10332 2010-04-28  Eric Botcazou  <ebotcazou@adacore.com>
10334         * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
10335         hash_tree, eq_tree): New tree hash table.
10336         (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
10337         [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
10338         lto_orig_address_remove): Reimplement.
10340 2010-04-28  Xinliang David Li  <davidxl@google.com>
10342         PR c/42643
10343         * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
10344         (compute_uninit_opnds_pos): New function.
10345         (is_non_loop_exit_postdominating): New function.
10346         (compute_control_dep_chain): New function.
10347         (find_pdom): New function.
10348         (convert_control_dep_chain_into_preds): New function.
10349         (find_predicates): New function.
10350         (find_control_equiv_block): New function.
10351         (collect_phi_def_edges): New function.
10352         (find_def_preds): New function.
10353         (find_dom): New function.
10354         (dump_predicates): New function.
10355         (get_cmp_code): New function.
10356         (is_value_included_in): New function.
10357         (find_matching_predicate_in_rest_chains): New function.
10358         (use_pred_not_overlap_with_undef_path_pred): New function.
10359         (is_use_properly_guarded): New function.
10360         (normalize_cond_1): New function.
10361         (is_and_or_or): New function.
10362         (normalize_cond): New function.
10363         (is_gcond_subset_of): New function.
10364         (is_subset_of_any): New function.
10365         (is_or_set_subset_of): New function.
10366         (is_and_set_subset_of): New function.
10367         (is_norm_cond_subset_of): New function.
10368         (is_pred_expr_subset_of): New function.
10369         (is_pred_chain_subset_of): New function.
10370         (is_included_in): New function.
10371         (is_superset_of): New function.
10372         (find_uninit_use): New function.
10373         (warn_uninitialized_phi): New function.
10374         (compute_possibly_undefined_names): New function.
10375         (ssa_undefined_value_p): New function.
10376         (execute_late_warn_uninitialized): New function.
10377         * tree-ssa.c (ssa_undefined_value_p): Removed.
10378         (warn_uninit): Changed to extern.
10379         (warn_uninitialized_phi): Removed.
10380         (warn_uninitialized_vars): Changed to extern.
10381         (execute_late_warn_uninitialized): Removed
10382         * tree-flow.h: Add new prototypes.
10383         * timevar.def: Add new time variable.
10384         * Makefile.in: Add new build file.
10386 2010-04-28  Uros Bizjak  <ubizjak@gmail.com>
10388         * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
10389         type if available.
10391 2010-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10393         PR target/22224
10394         * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
10396 2010-04-28  Martin Jambor  <mjambor@suse.cz>
10398         * cgraph.h (struct cgraph_node): New field indirect_calls.
10399         (struct cgraph_indirect_call_info): New type.
10400         (struct cgraph_edge): Removed field indirect_call. New fields
10401         indirect_info, indirect_inlining_edge and indirect_unknown_callee.
10402         (cgraph_create_indirect_edge): Declare.
10403         (cgraph_make_edge_direct): Likewise.
10404         (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
10405         * ipa-prop.h (struct ipa_param_call_note): Removed.
10406         (struct ipa_node_params): Removed field param_calls.
10407         (ipa_create_all_structures_for_iinln): Declare.
10408         * cgraph.c: Described indirect edges and uids in initial comment.
10409         (cgraph_add_edge_to_call_site_hash): New function.
10410         (cgraph_edge): Search also among the indirect edges, use
10411         cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
10412         (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
10413         one, use cgraph_add_edge_to_call_site_hash to add edges to the call
10414         site hash.
10415         (initialize_inline_failed): Assign a reason to indirect edges.
10416         (cgraph_create_edge_1): New function.
10417         (cgraph_create_edge): Moved some functionality to
10418         cgraph_create_edge_1.
10419         (cgraph_create_indirect_edge): New function.
10420         (cgraph_edge_remove_callee): Add an assert checking for
10421         non-indirectness.
10422         (cgraph_edge_remove_caller): Special-case indirect edges.
10423         (cgraph_remove_edge): Likewise.
10424         (cgraph_set_edge_callee): New function.
10425         (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
10426         (cgraph_make_edge_direct): New function.
10427         (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
10428         the declaration of the call statement matches.
10429         (cgraph_node_remove_callees): Special-case indirect edges.
10430         (cgraph_clone_edge): Likewise.
10431         (cgraph_clone_node): Clone also the indirect edges.
10432         (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
10433         indirect_call, dump count of indirect_calls edges.
10434         * ipa-prop.c (iinlining_processed_edges): New variable.
10435         (ipa_note_param_call): Create indirect edges instead of
10436         creating notes.  New parameter node.
10437         (ipa_analyze_call_uses): New parameter node, pass it on to
10438         ipa_note_param_call.
10439         (ipa_analyze_stmt_uses): Likewise.
10440         (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
10441         (print_edge_addition_message): Work on edges rather than on notes.
10442         (update_call_notes_after_inlining): Likewise, renamed to
10443         update_indirect_edges_after_inlining.
10444         (ipa_create_all_structures_for_iinln): New function.
10445         (ipa_free_node_params_substructures): Do not free notes.
10446         (ipa_edge_duplication_hook): Propagate bits within
10447         iinlining_processed_edges bitmap.
10448         (ipa_node_duplication_hook): Do not duplicate notes.
10449         (free_all_ipa_structures_after_ipa_cp): Renamed to
10450         ipa_free_all_structures_after_ipa_cp.
10451         (free_all_ipa_structures_after_iinln): Renamed to
10452         ipa_free_all_structures_after_iinln.
10453         (ipa_write_param_call_note): Removed.
10454         (ipa_read_param_call_note): Removed.
10455         (ipa_write_indirect_edge_info): New function.
10456         (ipa_read_indirect_edge_info): Likewise.
10457         (ipa_write_node_info): Do not stream notes, do stream information
10458         in indirect edges.
10459         (ipa_read_node_info): Likewise.
10460         (lto_ipa_fixup_call_notes): Removed.
10461         * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
10462         * ipa-inline.c (pass_ipa_inline): Likewise.
10463         * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
10464         * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
10465         * tree-inline.c (copy_bb): Removed an unnecessary double check for
10466         is_gimple_call.
10467         * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
10468         edges.
10469         * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
10470         (output_cgraph): Stream also indirect edges.
10471         (lto_output_edge): Added capability to stream indirect edges.
10472         (input_edge): Likewise.
10473         (input_cgraph_1): Likewise.
10474         * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
10475         of indirect edges.
10477 2010-04-28  Richard Guenther  <rguenther@suse.de>
10479         PR tree-optimization/43879
10480         PR tree-optimization/43909
10481         * tree-ssa-structalias.c (struct variable_info): Add
10482         only_restrict_pointers flag.
10483         (new_var_info): Initialize it.  Increment stats.total_vars here.
10484         (create_function_info_for): Do not increment stats.total_vars here.
10485         (get_function_part_constraint): Fix build with C++.
10486         (insert_into_field_list): Remove.
10487         (push_fields_onto_fieldstack): Properly merge fields.
10488         (create_variable_info_for): Split and simplify.
10489         (create_variable_info_for_1): New piece.
10490         (intra_create_variable_infos): Properly make restrict constraints
10491         from parameters.
10493 2010-04-28  Richard Guenther  <rguenther@suse.de>
10495         PR c++/43880
10496         * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
10498 2010-04-27  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10499             Jan Hubicka  <hubicka@ucw.cz>
10501         * doc/invoke.texi (-Wsuggest-attribute=const,
10502         -Wsuggest-attribute=pure): Document.
10503         * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
10504         (function_always_visible_to_compiler_p,
10505         suggest_attribute, warn_function_pure, warn_function_const):
10506         New functions.
10507         (check_call): Improve debug info.
10508         (analyze_function): Do not check availability.
10509         (add_new_function): Check availability.
10510         (propagate): Output warnings.
10511         (skip_function_for_local_pure_const): New function.
10512         (local_pure_const): Use it; output warnings.
10513         * common.opt (Wsuggest-attribute=const,
10514         Wsuggest-attribute=pure): New.
10516 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
10518         * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
10519         force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
10520         or DW_CFA_def_cfa_offset{,_sf}.
10522 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
10524         * tree.h: Fix truncated long macros.
10526 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
10528         * collect2.c (TARGET_64BIT): Redefine to target's default.
10529         * tlink.c: Likewise.
10530         * config/i386/cygming.h (USER_LABEL_PREFIX): Define
10531         dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
10532         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
10533         for underscoring __USER_LABEL_PREFIX__.
10534         * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
10535         (SUB_LINK_ENTRY32): New.
10536         (SUB_LINK_ENTRY64): New.
10537         (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
10538         * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
10539         (SUB_LINK_ENTRY64): New.
10540         (SUB_LINK_ENTRY): New.
10541         (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
10542         (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
10543         x64 target is choosen.
10544         * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
10545         * configure: Regenerated.
10546         * configure.ac (leading-mingw64-underscores): Option added.
10548 2010-04-27  Jan Hubicka  <jh@suse.cz>
10550         * doc/invoke.texi (-fipa-profile): Document.
10551         * opts.c (decode_options): Enable ipa-profile at -O1.
10552         * timevar.def (TV_IPA_PROFILE): Define.
10553         * common.opt (fipa-profile): Add.
10554         * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
10555         flag for clones.
10556         (cgraph_propagate_frequency): Handle only local ones.
10557         * tree-pass.h (pass_ipa_profile): Declare.
10558         * ipa-profile.c (gate_profile): Use flag_ipa_profile.
10559         (pass_ipa_profile): Use TV_IPA_PROFILE.
10560         * ipa.c (ipa_profile): New function.
10561         (gate_ipa_profile): Likewise.
10562         (pass_ipa_profile): New global variable.
10563         * passes.c (pass_ipa_profile): New.
10565 2010-04-27  Nathan Froyd  <froydnj@codesourcery.com>
10567         * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
10569 2010-04-27  Martin Jambor  <mjambor@suse.cz>
10571         PR middle-end/43812
10572         * ipa.c (dissolve_same_comdat_group_list): New function.
10573         (function_and_variable_visibility): Call
10574         dissolve_same_comdat_group_list when comdat group contains external or
10575         newly local nodes.
10576         * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
10577         lists are circular and that they contain only DECL_ONE_ONLY nodes.
10579 2010-04-27  Eric Botcazou  <ebotcazou@adacore.com>
10581         * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
10582         (const_hash_1) <VECTOR_CST>: New case.
10583         (compare_constant) <VECTOR_CST>: Likewise.
10584         <ADDR_EXPR>: Deal with LABEL_REFs.
10585         (copy_constant) <VECTOR_CST>: New case.
10587 2010-04-27  Jan Hubicka  <jh@suse.cz>
10589         * cgraph.c (cgraph_propagate_frequency): New function.
10590         * cgraph.h (cgraph_propagate_frequency): Declare.
10591         * ipa-inline.c (cgraph_clone_inlined_nodes): Call
10592         cgraph_propagate_frequency.
10594 2010-04-27  Jakub Jelinek  <jakub@redhat.com>
10596         * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
10598 2010-04-27  Bernd Schmidt  <bernds@codesourcery.com>
10600         PR target/40657
10601         * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
10602         (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
10603         here to determine which regs to push and how much stack to reserve.
10605 2010-04-27  Jie Zhang  <jie@codesourcery.com>
10607         * doc/gimple.texi (gimple_statement_with_ops): Remove
10608         addresses_taken field.
10609         (gimple_statement_with_memory_ops): Likewise.
10611 2010-04-27  Jan Hubicka  <jh@suse.cz>
10613         * tree-inline.c (eni_inlining_weights): Remove.
10614         (estimate_num_insns): Special case more builtins.
10616 2010-04-27  Shujing Zhao  <pearly.zhao@oracle.com>
10618         PR c/32207
10619         * c-typeck.c (build_binary_op): Move forward check for comparison
10620         pointer with null pointer constant and adjust the diagnostic message.
10622 2010-04-27  Dave Korn  <dave.korn.cygwin@gmail.com>
10624         PR lto/42776
10625         * configure.ac (gcc_cv_as_section_has_align): Set if installed
10626         binutils supports extended .section directive needed by LTO, or
10627         warn if older binutils found.
10628         (LTO_BINARY_READER): New AC_SUBST'd variable.
10629         (LTO_USE_LIBELF): Likewise.
10630         * gcc/config.gcc (lto_binary_reader): New target-specific configure
10631         variable.
10632         * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
10633         (LTO_USE_LIBELF): Likewise.
10634         * configure: Regenerate.
10636         * collect2.c (is_elf): Rename from this ...
10637         (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
10638          object files in addition to ELF-formatted ones.
10639         (scan_prog_file): Caller updated.  Also allow for LTO info marker
10640         symbol to be prefixed or not by an extra underscore.
10642         * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
10643         * config/i386/winnt.c: Also #include lto-streamer.h
10644         (i386_pe_asm_named_section): Specify 1-byte section alignment for
10645         LTO named sections.
10646         (i386_pe_asm_output_aligned_decl_common): Add comment.
10647         (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
10649 2010-04-27  Hans-Peter Nilsson  <hp@bitrange.com>
10651         PR target/43889
10652         * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
10653         Add missing earlyclobber for second alternative.
10655 2010-04-26  Bernd Schmidt  <bernds@codesourcery.com>
10657         * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
10658         bits for artificial defs at the top of the block.
10659         * fwprop.c (single_def_use_enter_block): Don't call it.
10661 2010-04-26  Jack Howarth  <howarth@bromo.med.uc.edu>
10663         PR 43715
10664         * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
10665         instead of "$gcc_cv_objdump -T".
10666         Use "-undefined dynamic_lookup" on darwin.
10667         * gcc/configure: Regenerate.
10669 2010-04-26  Jakub Jelinek  <jakub@redhat.com>
10671         PR c/43893
10672         * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
10674 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
10676         * c-parser.c (struct c_token): Move location field up.
10677         * c-tree.h (struct c_typespec): Move expr_const_operands field up.
10678         (struct c_declspecs): Convert typespec_word, storage_class, and
10679         default_int_p into bitfields.
10680         (struct c_declarator): Move loc field up.
10682 2010-04-26  Nathan Froyd  <froydnj@codesourcery.com>
10684         * cfgloop.h (struct loop): Move can_be_parallel field up.
10685         * ipa-prop.h (struct ip_node_params): Move bitfields up.
10686         * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
10687         down.
10688         (struct iv_cand): Convert pos field into a bitfield.
10689         * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
10690         field up.
10691         (struct _stmt_vec_info): Shuffle fields for better packing.
10693 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
10695         * varasm.c (IN_NAMED_SECTION): Remove guard.
10696         * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
10697         (IN_NAMED_SECTION_P): ...this.
10698         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
10699         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
10701 2010-04-26  Eric Botcazou  <ebotcazou@adacore.com>
10703         * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
10704         Use VOID_TYPE_P for all void type tests.  Adjust TYPE variable instead
10705         of shadowing it.  Fix comments.
10707 2010-04-26  Jan Hubicka  <jh@suse.cz>
10709         * cgraph.c (cgraph_create_node): Set node frequency to normal.
10710         (cgraph_clone_node): Copy function frequency.
10711         * cgraph.h (node_frequency): New enum
10712         (struct cgraph_node): Add.
10713         * final.c (rest_of_clean_state): Update.
10714         * lto-cgraph.c (lto_output_node): Output node frequency.
10715         (input_overwrite_node): Input node frequency.
10716         * tre-ssa-loop-ivopts (computation_cost): Update.
10717         * lto-streamer-out.c (output_function): Do not output function
10718         frequency.
10719         * predict.c (maybe_hot_frequency_p): Update and handle functions
10720         executed once.
10721         (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
10722         attribute lookup.
10723         (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
10724         (compute_function_frequency): Set noreturn functions to be executed
10725         once.
10726         (choose_function_section): Update.
10727         * lto-streamer-in.c (input_function): Do not input function frequency.
10728         * function.c (allocate_struct_function): Do not initialize function
10729         frequency.
10730         * function.h (function_frequency): Remove.
10731         (struct function): Remove function frequency.
10732         * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
10733         (try_update): Update.
10734         * tree-inline.c (initialize_cfun): Do not update function frequency.
10735         * passes.c (pass_init_dump_file): Update.
10736         * i386.c (ix86_compute_frame_layout): Update.
10737         (ix86_pad_returns): Update.
10739 2010-04-26  Jie Zhang  <jie@codesourcery.com>
10741         PR tree-optimization/43833
10742         * tree-vrp.c (range_int_cst_p): New.
10743         (range_int_cst_singleton_p): New.
10744         (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
10745         when both operands are constants.  Use range_int_cst_p in
10746         BIT_IOR_EXPR case.
10748 2010-04-26  Jan Hubicka  <jh@suse.cz>
10750         * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
10752 2010-04-26  Richard Guenther  <rguenther@suse.de>
10754         PR lto/43080
10755         * gimple.c (gimple_decl_printable_name): Deal gracefully
10756         with a NULL DECL_NAME.
10758 2010-04-26  Richard Guenther  <rguenther@suse.de>
10760         PR lto/42425
10761         * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
10762         if emitting debug information and it is either a function
10763         or a namespace decl.
10765 2010-04-26  Ira Rosen  <irar@il.ibm.com>
10767         * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
10768         determine if the statement is vectorizable, and a macro to access it.
10769         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10770         Skip statements that can't be vectorized. If the analysis fails,
10771         mark the statement as unvectorizable if vectorizing basic block.
10772         (vect_compute_data_refs_alignment): Likewise.
10773         (vect_verify_datarefs_alignment): Skip statements marked as
10774         unvectorizable. Add print.
10775         (vect_analyze_group_access): Skip statements that can't be
10776         vectorized. If the analysis fails, mark the statement as
10777         unvectorizable if vectorizing basic block.
10778         (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
10779         * tree-vect-stmts.c (vectorizable_store): Fix the number of
10780         generated stmts for SLP.
10781         (new_stmt_vec_info): Initialize the new field.
10782         * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
10783         statements marked as unvectorizable.
10785 2010-04-25  Joseph Myers  <joseph@codesourcery.com>
10787         * c-common.c (flag_isoc1x): New.
10788         (flag_isoc99): Update comment.
10789         * c-common.h (flag_isoc1x): New.
10790         (flag_isoc99): Update comment.
10791         * c-cppbuiltin.c (builtin_define_float_constants): Also define
10792         __<type>_DECIMAL_DIG__.
10793         * c-opts.c (set_std_c1x): New.
10794         (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
10795         (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
10796         * c.opt (-std=c1x, -std=gnu1x): New options.
10797         * doc/cpp.texi: Mention -std=c1x.
10798         * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
10799         * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
10800         * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
10801         * doc/standards.texi: Mention C1X.
10802         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
10803         LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
10804         LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
10805         Define for C1X.
10807 2010-04-25  Uros Bizjak  <ubizjak@gmail.com>
10809         * config/i386/gmon-sol2.c (_mcleanup): Change format string
10810         placeholder from 0x%x to %#x.
10811         * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
10812         * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
10813         * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
10814         * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
10815         * config/i386/i386.c (ix86_target_string): Ditto.
10816         (output_pic_addr_const): Ditto.
10817         (print_operand): Ditto.
10819 2010-04-25  Paolo Bonzini  <bonzini@gnu.org>
10821         * combine.c (find_split_point): Add third argument.  Use it
10822         to find nested multiply-accumulate instructions.  Adjust calls.
10823         (try_combine): Adjust call to find_split_point.
10825 2010-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
10827         * doc/contrib.texi (Contributors): Add Dodji Seketeli.
10829 2010-04-24  Bernd Schmidt  <bernds@codesourcery.com>
10831         PR tree-optimization/41442
10832         * fold-const.c (merge_truthop_with_opposite_arm): New function.
10833         (fold_binary_loc): Call it.
10835 2010-04-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
10837         * toplev.c (general_init): Set default for fdiagnostics-show-option.
10838         * opts.c (common_handle_option): Allow disabling it.
10839         * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
10841 2010-04-23  Eric Botcazou  <ebotcazou@adacore.com>
10843         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
10844         between modes if both types are integral.
10846 2010-04-23  Richard Guenther  <rguenther@suse.de>
10848         PR tree-optimization/43572
10849         * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
10851 2010-04-23  Richard Guenther  <rguenther@suse.de>
10853         PR lto/43455
10854         * tree-inline.c (tree_can_inline_p): Also check compatibility
10855         of return types.
10857 2010-04-23  Martin Jambor  <mjambor@suse.cz>
10859         PR tree-optimization/43846
10860         * tree-sra.c (struct access): New flag grp_assignment_read.
10861         (build_accesses_from_assign): Set grp_assignment_read.
10862         (sort_and_splice_var_accesses): Propagate grp_assignment_read.
10863         (enum mark_read_status): New type.
10864         (analyze_access_subtree): Propagate grp_assignment_read, create
10865         accesses also if both direct_read and root->grp_assignment_read.
10867 2010-04-23  Martin Jambor  <mjambor@suse.cz>
10869         PR middle-end/43835
10870         * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
10871         function does not have type attributes.
10873 2010-04-23  Richard Guenther  <rguenther@suse.de>
10875         PR lto/42653
10876         * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
10877         of FUNCTION_DECLs.
10879 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10881         * sese.h (create_if_region_on_edge): Remove.
10883         * sese.c (create_if_region_on_edge): Make static.
10885         * tree-inline.c: Do not include ggc.h.
10887         * expr.c: Do not include ggc.h.
10889         * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
10890         dependencies.
10892 2010-04-22  Kaz Kojima  <kkojima@gcc.gnu.org>
10894         PR target/43744
10895         * config/sh/sh.c (find_barrier): Don't emit a constant pool
10896         in the middle of insns for casesi_worker_2.
10898 2010-04-22  David Edelsohn  <edelsohn@gnu.org>
10900         * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
10902 2010-04-22  Ira Rosen  <irar@il.ibm.com>
10904         PR tree-optimization/43842
10905         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
10906         loop unrolling in update of exit phis. Fix comment.
10907         * tree-vect-slp.c (vect_analyze_slp): Check that there are at
10908         least two reduction statements in the loop before starting SLP
10909         analysis.
10911 2010-04-22  Nick Clifton  <nickc@redhat.com>
10913         * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
10915 2010-04-22  Alexander Monakov  <amonakov@ispras.ru>
10917         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
10918         to simplify a + ~a.
10920 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
10922         * tree-parloops.c (loop_parallel_p): New argument
10923         parloop_obstack.  Pass it down.
10924         (parallelize_loops): New variable parloop_obstack.  Initialize it,
10925         pass it down, free it.
10927         * tree-loop-linear.c (linear_transform_loops): Pass down
10928         lambda_obstack.
10930         * tree-data-ref.h (lambda_compute_access_matrices): New argument
10931         of type struct obstack *.
10933         * tree-data-ref.c (analyze_subscript_affine_affine): New variable
10934         scratch_obstack.  Initialize it, pass down, free it.
10936         * lambda.h (lambda_loop_new): Remove.
10937         (lambda_matrix_new, lambda_matrix_inverse)
10938         (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
10939         argument of type struct obstack *.
10941         * lambda-trans.c (lambda_trans_matrix_new): New argument
10942         lambda_obstack.  Pass it down, use obstack allocation for ret.
10943         (lambda_trans_matrix_inverse): New argument lambda_obstack.  Pass
10944         it down.
10946         * lambda-mat.c (lambda_matrix_get_column)
10947         (lambda_matrix_project_to_null): Remove.
10948         (lambda_matrix_new): New argument lambda_obstack.  Use obstack
10949         allocation for mat.
10950         (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
10951         lambda_obstack.
10953         * lambda-code.c (lambda_loop_new): New function.
10954         (lambda_lattice_new, compute_nest_using_fourier_motzkin)
10955         (lambda_compute_auxillary_space, lambda_compute_target_space)
10956         (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
10957         (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
10958         (build_access_matrix): New argument lambda_obstack.  Use obstack
10959         allocation for am.
10960         (lambda_compute_step_signs, lambda_compute_access_matrices): New
10961         argument lambda_obstack.  Pass it down.
10963 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
10965         * optabs.h (expand_widening_mult): Declare.
10967 2010-04-22  Richard Guenther  <rguenther@suse.de>
10969         PR tree-optimization/43845
10970         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
10971         lookup the CALL_EXPR function and arguments.
10973 2010-04-22  Nick Clifton  <nickc@redhat.com>
10975         * config/stormy16/stormy16.c
10976         (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
10977         * config/stormy16/stormy16.h: Tidy up formatting.
10978         (DONT_USE_BUILTIN_SETJMP): Remove definition.
10979         * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
10980         (ineqbranchsi): Delete pattern.
10981         * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
10982         * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
10983         * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
10984         stormy16-lib2-ucmpsi2.c.
10986 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
10988         * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
10989         df_simulate_find_noclobber_defs as appropriate.  Keep track of an
10990         extra set merge_set_noclobber, and use it to relax the final test
10991         slightly.
10992         * df.h (df_simulate_find_noclobber_defs): Declare.
10993         * df-problems.c (df_simulate_find_defs): Don't ignore partial or
10994         conditional defs.
10995         (df_simulate_find_noclobber_defs): New function.
10997 2010-04-22  Uros Bizjak  <ubizjak@gmail.com>
10999         * config/i386/i386.md: Use {} around multi-line preparation statements.
11001 2010-04-22  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
11003         * c-tree.h (push_init_level, pop_init_level, set_init_index)
11004         (process_init_element): New argument of type struct obstack *.
11006         * c-typeck.c (push_init_level, pop_init_level, set_designator)
11007         (set_init_index, set_init_label, set_nonincremental_init)
11008         (set_nonincremental_init_from_string, find_init_member)
11009         (output_init_element, output_pending_init_elements)
11010         (process_init_element): New argument braced_init_obstack.  Pass it
11011         down.
11012         (push_range_stack, add_pending_init): New argument
11013         braced_init_obstack.  Use obstack allocation.
11015         * c-parser.c (c_parser_initelt, c_parser_initval): New argument
11016         braced_init_obstack.  Pass it down.
11017         (c_parser_braced_init): New variables ret, braced_init_obstack.
11018         Initialize obstack, pass it down and finally free it.
11020 2010-04-22  Bernd Schmidt  <bernds@codesourcery.com>
11022         PR middle-end/29274
11023         * tree-pass.h (pass_optimize_widening_mul): Declare.
11024         * tree-ssa-math-opts.c (execute_optimize_widening_mul,
11025         gate_optimize_widening_mul): New static functions.
11026         (pass_optimize_widening_mul): New.
11027         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
11028         <case MULT_EXPR>: Remove support for widening multiplies.
11029         * tree.def (WIDEN_MULT_EXPR): Tweak comment.
11030         * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
11031         simplify_gen_unary rather than directly building extensions.
11032         * tree-cfg.c (verify_gimple_assign_binary): Add tests for
11033         WIDEN_MULT_EXPR.
11034         * expmed.c (expand_widening_mult): New function.
11035         * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
11037 2010-04-21  Jan Hubicka  <jh@suse.cz>
11039         * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
11040         * lto-section-in.c (lto_section_name): Remove wpa_fixup.
11041         * lto-wpa-fixup.c: Remove.
11042         * Makefile.in (lto-wpa-fixup.o): Remove.
11043         * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
11044         (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
11045         * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
11047 2010-04-21  Jan Hubicka  <jh@suse.cz>
11049         * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
11050         add write_optimization_summary, read_optimization_summary.
11051         (ipa_write_summaries_of_cgraph_node_set): Remove.
11052         (ipa_write_optimization_summaries): Declare.
11053         (ipa_read_optimization_summaries): Declare.
11054         * ipa-cp.c (pass_ipa_cp): Update.
11055         * ipa-reference.c (pass_ipa_reference): Update.
11056         * ipa-pure-const.c (pass_ipa_pure_const): Update.
11057         * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
11058         Update.
11059         * ipa-inline.c (pass_ipa_inline): Update.
11060         * ipa.c (pass_ipa_whole_program): Update.
11061         * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
11062         * passes.c (ipa_write_summaries_1): Do not test wpa.
11063         (ipa_write_optimization_summaries_1): New.
11064         (ipa_write_optimization_summaries): New.
11065         (ipa_read_summaries): Do not test ltrans.
11066         (ipa_read_optimization_summaries_1): New.
11067         (ipa_read_optimization_summaries): New.
11069 2010-04-21  Jan Hubicka  <jh@suse.cz>
11071         * lto-cgraph.c (lto_output_node): Do not output comdat groups
11072         for boundary nodes.
11073         (output_cgraph): Do not arrange comdat groups for boundary nodes.
11075 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
11077         PR debug/40040
11078         * dwarf2out.c (add_name_and_src_coords_attributes): Add
11079         DW_AT_{,MIPS_}linkage_name even for Fortran decls.
11081 2010-04-21  Jan Hubicka  <jh@suse.cz>
11083         * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
11085 2010-04-21  Jan Hubicka  <jh@suse.cz>
11087         * varpool.c (decide_is_variable_needed): Variable is always needed
11088         during ltrans.
11090 2010-04-21  Jan Hubicka  <jh@suse.cz>
11092         * opts.c (decode_options): Enable pure-const pass for whopr.
11094 2010-04-21  Jan Hubicka  <jh@suse.cz>
11096         * cgraph.c (dump_cgraph_node): Dump also assembler name.
11097         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
11098         at WPA dumping.
11099         (cgraph_decide_inlining): Do not expect callee to be removed in all
11100         cases.
11102 2010-04-21  Eric B. Weddington  <eric.weddington@atmel.com>
11104         * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
11106 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
11108         * config/i386/i386.md (x86_shrd): Add athlon_decode and
11109         amdfam10_decode attributes.
11111 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
11113         PR middle-end/43570
11114         * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
11115         OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
11116         (lower_copyprivate_clauses): Use private var in outer
11117         context instead of original var.  Make sure the types
11118         are correct for VLAs.
11120 2010-04-21  Richard Guenther  <rguenther@suse.de>
11122         * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
11123         to non-pointer objects.
11125 2010-04-21  Jakub Jelinek  <jakub@redhat.com>
11127         * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument.  Drop
11128         last chain entry if it starts with the still current label.
11129         (add_location_or_const_value_attribute): Check that
11130         loc_list->first->next is NULL instead of comparing ->first with ->last.
11131         (dwarf2out_var_location): Pass last_label resp. last_postcall_label
11132         to add_var_loc_to_decl.
11134         * dwarf2out.c (output_call_frame_info): For dw_cie_version
11135         >= 4 add also address size and segment size fields into CIE header.
11137         * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
11138         long as address size is the same as sizeof (void *) and
11139         segment size is 0.
11140         * unwind-dw2-fde.c (get_cie_encoding): Likewise.  If
11141         address size or segment size is unexpected, return DW_EH_PE_omit.
11142         (classify_object_over_fdes): If get_cie_encoding returned
11143         DW_EH_PE_omit, return -1.
11144         (init_object): If classify_object_over_fdes returned -1,
11145         pretend there were no FDEs at all.
11147 2010-04-21  Uros Bizjak  <ubizjak@gmail.com>
11149         * config/i386/i386.md (bswap<mode>2): Macroize expander from
11150         bswap{si,di}2 using SWI48 mode iterator.
11151         (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
11152         SWI48 mode iterator.  Set type attribute of bswap insn to bitmanip,
11153         set modrm attribute of bswap insn to 0 and remove length attribute.
11154         (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
11155         iterator.  Set type attribute to bitmanip, set modrm attribute to 0,
11156         set mode attribute to <MODE> and remove length attribute.
11158 2010-04-20  James E. Wilson  <wilson@codesourcery.com>
11160         PR rtl-optimization/43520
11161         * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
11162         zero available registers.
11164 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11166         * builtins.c (fold_builtin_cproj): Fold more cases.
11168 2010-04-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11170         * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
11171         (fold_builtin_1): Fold builtin cproj.
11172         * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
11173         Use ATTR_CONST_NOTHROW_LIST.
11175 2010-04-20  Uros Bizjak  <ubizjak@gmail.com>
11177         * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
11178         and ffsdi2 using SWI48 mode iterator.  Expand SImode insn through
11179         ffsi2_no_cmove for !TARGET_CMOVE.
11180         (ffssi2_no_cmove): Rename from *ffs_no_cmove.  Make public.
11181         (ffssi2): Remove expander.
11182         (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
11183         mode iterator.
11184         (ctz<mode>2): Ditto from ctz{si,di}2.
11185         (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
11186         mode iterator.
11187         (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
11188         mode iterator.
11190 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
11192         * dwarf2out.c (AT_linkage_name): Define.
11193         (clone_as_declaration): Handle DW_AT_linkage_name.
11194         (add_name_and_src_coords_attributes): Use AT_linkage_name instead
11195         of DW_AT_MIPS_linkage_name.
11196         (move_linkage_attr): Likewise.
11197         (dwarf2out_finish): Likewise.
11199 2010-04-20  Xinliang David Li  <davidxl@gcc.gnu.org>
11201         PR middle-end/41952
11202         * fold-const.c (fold_comparison): New folding rule.
11204 2010-04-20  Anatoly Sokolov  <aesok@post.ru>
11206         * double-int.h (double_int_setbit): Declare.
11207         * double-int.c (double_int_setbit): New function.
11208         * rtl.h (immed_double_int_const): Declare.
11209         * emit-rtl.c (immed_double_int_const): New function.
11210         * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
11211         and immed_double_int_const functions.
11212         * optabs.c (expand_absneg_bit, expand_copysign_absneg,
11213         expand_copysign_bit):  (Ditto.).
11214         * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
11215         * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
11216         * dojump.c (prefer_and_bit_test): (Ditto.).
11217         * expr.c (convert_modes, reduce_to_bit_field_precision,
11218         const_vector_from_tree): (Ditto.).
11219         * expmed.c (mask_rtx, lshift_value): (Ditto.).
11221 2010-04-20  Jan Hubicka  <jh@suse.cz>
11223         * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
11224         (dump_cgraph_node): Dump new flags.
11225         * cgraph.h (struct cgraph_node): Add flags
11226         reachable_from_other_partition and in_other_partition.
11227         (cgraph_can_remove_if_no_direct_calls_p): Functions used by
11228         other partition can not be removed.
11229         * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
11230         the other partition must be output; silence sanity checking on
11231         leaking functions bodies from other paritition.
11232         * lto-cgraph.c (reachable_from_other_partition_p): New function.
11233         (lto_output_node): Output new flags; do not sanity check that inline
11234         clones are output; drop lto_forced_extern_inline_p code; do not mock
11235         visibility flags at partition boundaries.
11236         (add_node_to): New function.
11237         (output_cgraph): Use it to sort functions so masters appear before
11238         clones.
11239         (input_overwrite_node): Input new flags.
11240         * passes.c (ipa_write_summaries): Do not call
11241         lto_new_extern_inline_states.
11242         * lto-section-out.c (forced_extern_inline,
11243         lto_new_extern_inline_states lto_delete_extern_inline_states,
11244         lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
11245         * lto-streamer.h (lto_new_extern_inline_states,
11246         * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
11247         lto_forced_extern_inline_p): Kill.
11249 2010-04-20  Richard Guenther  <rguenther@suse.de>
11251         * tree-ssa-structalias.c (do_sd_constraint): Add edges only
11252         from vars that can have pointers.
11253         (process_constraint): Dump useless constraints.
11255 2010-04-20  Richard Guenther  <rguenther@suse.de>
11257         * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
11258         (dump_sa_points_to_info): Remove asserts.
11259         (init_base_vars): nothing_id isn't an escape point nor does it
11260         have pointers.
11262 2010-04-20  Jakub Jelinek  <jakub@redhat.com>
11264         * tree.h (TYPE_REF_IS_RVALUE): Define.
11265         * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
11266         should_move_die_to_comdat, prune_unused_types_walk): Handle
11267         DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
11268         (modified_type_die, gen_reference_type_die): Emit
11269         DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
11270         if TYPE_REF_IS_RVALUE and -gdwarf-4.
11272 2010-04-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11274         PR target/43635
11275         * config/s390/s390.c (s390_emit_call): Turn direct into indirect
11276         calls for -fpic -m31 if they have been sibcall optimized.
11278 2010-04-19  James E. Wilson  <wilson@codesourcery.com>
11280         * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
11281         ar.lc fixed and call-used.
11283         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
11285 2010-04-19  Jan Hubicka  <jh@suse.cz>
11287         * opts.c (decode_options): Disable whpr incompatible passes.
11288         * lto/lto.c (lto_1_to_1_map): Skip clones.
11289         (read_cgraph_and_symbols): Do not mark everything as needed.
11290         (do_whole_program_analysis): Do map only after optimizing;
11291         set proper cgraph_state; use passmanager.
11293 2010-04-19  DJ Delorie  <dj@redhat.com>
11295         * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
11296         POINTER_PLUS_EXPR and fix them.
11298 2010-04-19  Eric B. Weddington  <eric.weddington@atmel.com>
11300         * config/avr/avr-devices.c (avr_mcu_types): Add support for new
11301         devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
11302         attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
11303         atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
11304         atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
11305         atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
11306         atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
11307         atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
11308         m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
11309         atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
11310         * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
11312 2010-04-19  Eric Botcazou  <ebotcazou@adacore.com>
11314         * ifcvt.c (noce_try_cmove_arith): Fix long lines.
11315         (check_cond_move_block): Likewise.
11316         (cond_move_process_if_block): Likewise.
11317         (noce_find_if_block): Improve formatting.
11318         (find_if_header): Pass 0 to memset and tweak conditions.
11319         (cond_exec_find_if_block): Fix long lines and tweak conditions.
11321 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
11323         * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
11324         for -gdwarf-4.
11326         PR middle-end/43337
11327         * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
11328         with non-local decl doesn't need chain.
11330 2010-04-19  Vladimir Makarov  <vmakarov@redhat.com>
11332         * ira-color.c (allocno_reload_assign): Avoid accumulating
11333         reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
11335 2010-04-19  Martin Jambor  <mjambor@suse.cz>
11337         * gimple.h (create_tmp_reg): Declare.
11338         * gimplify.c (create_tmp_reg): New function.
11339         (gimplify_return_expr): Use create_tmp_reg.
11340         (gimplify_omp_atomic): Likewise.
11341         (gimple_regimplify_operands): Likewise.
11342         * tree-dfa.c (make_rename_temp): Likewise.
11343         * tree-predcom.c (predcom_tmp_var): Likewise.
11344         (reassociate_to_the_same_stmt): Likewise.
11345         * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
11346         (get_replaced_param_substitute): Likewise.
11347         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
11348         * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
11349         * tree-ssa-pre.c (get_representative_for): Likewise.
11350         (create_expression_by_pieces): Likewise.
11351         * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
11352         (create_tailcall_accumulator): Likewise.
11354 2010-04-19  Martin Jambor  <mjambor@suse.cz>
11356         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
11357         new_stmt.
11358         (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
11360 2010-04-19  Richard Guenther  <rguenther@suse.de>
11362         PR tree-optimization/43796
11363         * tree-vrp.c (adjust_range_with_scev): Lookup init and step
11364         from SCEV in the lattice.
11365         (vrp_visit_phi_node): Dump change.
11367 2010-04-19  Richard Guenther  <rguenther@suse.de>
11369         * configure.ac: Fix quoting around elf_getshstrndx ABI check.
11370         * configure: Re-generated.
11372 2010-04-19  Richard Guenther  <rguenther@suse.de>
11374         PR tree-optimization/43783
11375         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
11376         constant ARRAY_REF operands two and three if possible.
11378 2010-04-19  Uros Bizjak  <ubizjak@gmail.com>
11380         PR target/43766
11381         * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
11383 2010-04-19  Jie Zhang  <jie@codesourcery.com>
11385         PR target/43662
11386         * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
11388 2010-04-19  Ira Rosen  <irar@il.ibm.com>
11390         PR tree-optimization/37027
11391         * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
11392         and macro to access it.
11393         (vectorizable_reduction): Add argument.
11394         (vect_get_slp_defs): Likewise.
11395         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
11396         statements for possible use in SLP.
11397         (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
11398         (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
11399         (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
11400         add new argument.
11401         (vectorizable_reduction): Likewise.
11402         * tree-vect-stmts.c (vect_get_vec_defs): Update call to
11403         vect_get_slp_defs.
11404         (vectorizable_type_demotion, vectorizable_type_promotion,
11405         vectorizable_store): Likewise.
11406         (vect_analyze_stmt): Update call to vectorizable_reduction.
11407         (vect_transform_stmt): Likewise.
11408         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
11409         (vect_build_slp_tree): Fix indentation. Check that there are no loads
11410         from different interleaving chains in same node.
11411         (vect_slp_rearrange_stmts): New function.
11412         (vect_supported_load_permutation_p): Allow load permutations for
11413         reductions. Call vect_slp_rearrange_stmts() to rearrange statements
11414         inside SLP nodes if necessary.
11415         (vect_analyze_slp_instance): Handle reductions.
11416         (vect_analyze_slp): Try to build SLP instances originating from groups
11417         of reductions.
11418         (vect_detect_hybrid_slp_stmts): Skip reduction statements.
11419         (vect_get_constant_vectors): Create initial vectors for reductions
11420         according to reduction code. Add new argument.
11421         (vect_get_slp_defs): Add new argument, pass it to
11422         vect_get_constant_vectors.
11423         (vect_schedule_slp_instance): Remove SLP tree root statements.
11425 2010-04-19  Jakub Jelinek  <jakub@redhat.com>
11427         * tree.h (ENUM_IS_SCOPED): Define.
11428         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
11429         for ENUM_IS_SCOPED enums.
11431 2010-04-18  Eric Botcazou  <ebotcazou@adacore.com>
11433         * fold-const.c (fold_comparison): Use ssizetype.
11434         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
11435         * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
11436         * tree-loop-distribution.c (build_size_arg_loc): Likewise.
11437         * tree-object-size.c (compute_object_sizes): Use size_type_node.
11439         * tree.h (initialize_sizetypes): Remove parameter.
11440         (build_common_tree_nodes): Remove second parameter.
11441         * stor-layout.c (initialize_sizetypes): Remove parameter.
11442         Always create an unsigned type.
11443         (set_sizetype): Assert that the passed type is unsigned and simplify.
11444         * tree.c (build_common_tree_nodes): Remove second parameter.
11445         Adjust call to initialize_sizetypes.
11446         * c-decl.c (c_init_decl_processing): Remove second argument in call to
11447         build_common_tree_nodes.
11449 2010-04-18  Matthias Klose  <doko@ubuntu.com>
11451         * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
11453 2010-04-18  Ira Rosen  <irar@il.ibm.com>
11455         PR tree-optimization/43771
11456         * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
11457         load permutation doesn't have gaps.
11459 2010-04-18  Jan Hubicka  <jh@suse.cz>
11461         * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
11462         (sse_prologue_save_insn expander): Use new pattern.
11463         (sse_prologue_save_insn1): New pattern and splitter.
11464         (sse_prologue_save_insn): Update to deal also with 64bit aligned
11465         blocks.
11466         * i386.c (setup_incoming_varargs_64): Do not compute jump
11467         destination here.
11468         (ix86_gimplify_va_arg): Update alignment needed.
11469         (ix86_local_alignment): Do not align all local arrays to 128bit.
11471 2010-04-17  Jan Hubicka  <jh@suse.cz>
11473         * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
11475 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
11477         * arm.md (negdi2): Remove redundant code to force values into a
11478         register.
11480 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
11482         * arm/bpabi.S: Add EABI alignment attributes to objects.
11483         * arm/bpabi-v6m.S: Likewise.
11484         * arm/crti.asm: Likewise.
11485         * arm/crtn.asm: Likewise.
11486         * arm/lib1funcs.asm: Likewise.
11487         * arm/libunwind.S: Likewise.
11489 2010-04-17  Richard Earnshaw  <rearnsha@arm.com>
11491         * arm-protos.h (tune_params): New structure.
11492         * arm.c (current_tune): New variable.
11493         (arm_constant_limit): Delete.
11494         (struct processors): Add pointer to the tune parameters.
11495         (arm_slowmul_tune): New tuning option.
11496         (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
11497         (all_cores): Adjust to pick up the tuning model.
11498         (arm_constant_limit): New function.
11499         (arm_override_options): Select the appropriate tuning model.  Delete
11500         initialization of arm_const_limit.
11501         (arm_split_constant): Use the new constant-limit model.
11502         (arm_rtx_costs): Pick up the current tuning model.
11503         * arm.md (is_strongarm, is_xscale): Delete.
11504         * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
11505         for Xscale variant architectures.
11506         (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
11508 2010-04-17  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
11510         * config/arm/arm.c (arm_gen_constant): Remove unused variable
11511         can_shift.
11512         (arm_rtx_costs_1): Remove unused variable extra_cost.
11513         (arm_unwind_emit_set): Use variable offset.
11514         (thumb1_output_casesi): Remove unused variable flags.
11516 2010-04-16  Jeff Law  <law@redhat.com>
11518         * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
11519         needing assignment rather than doing a two-phase assignment.  Remove
11520         unused variable 'm'.
11522 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
11524         PR bootstrap/43767
11525         * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
11527 2010-04-16  Doug Kwan  <dougkwan@google.com>
11529         * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
11530         (next_operand_entry_id): New static variable.
11531         (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
11532         (add_to_ops_vec): Assigned unique ID to operand entry.
11533         (struct oecount_s): New field ID.
11534         (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
11535         (undistribute_ops_list): Assign unique IDs to oecounts.
11536         (init_reassoc): reset next_operand_entry_id.
11538 2010-04-16  Doug Kwan  <dougkwan@google.com>
11540         * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
11541         missing left parenthesis.
11543 2010-04-16  Uros Bizjak  <ubizjak@gmail.com>
11545         * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
11546         *btdi_rex64 using SWI48 mode iterator.
11547         (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
11548         (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
11549         *jcc_btdi_mask_rex64.
11551 2010-04-16  Anatoly Sokolov  <aesok@post.ru>
11553         * double-int.h (tree_to_double_int): Convert to macro.
11554         * double-int.c (tree_to_double_int): Remove.
11556 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
11558         PR debug/43762
11559         * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
11560         with want_address 2 and in case a single element list might be
11561         possible, call it again with want_address 0.
11563 2010-04-12  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
11565         * config/h8300/h8300.c (print_operand) : Modify case 'V' and
11566         case 'W' print operands for HI mode.
11567         * config/h8300/h8300.h (Y0, Y2) : New constraints.
11568         * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
11569         (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
11570         * config/h8300/predicate.md (bit_register_indirect_operand): New.
11572         * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
11574         * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
11575         cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
11576         #xx:3 and #xx:4 mode.
11578         * config/h8300/h8300.md (inverted load with HImode dest): Add
11579         support for H8300SX.
11581         * config/h8300/predicate.md (bit_operand): Allow immediate values that
11582         satisfy 'U' constraint.
11584 2010-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11586         * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
11587         * configure: Regenerate.
11588         * config.in: Regenerate.
11589         * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
11590         works.
11592 2010-04-16  Richard Guenther  <rguenther@suse.de>
11594         * tree.h (struct tree_decl_minimal): Move pt_uid ...
11595         (struct tree_decl_common): ... here.
11596         (DECL_PT_UID): Adjust.
11597         (SET_DECL_PT_UID): Likewise.
11598         (DECL_PT_UID_SET_P): Likewise.
11600 2010-04-16  Richard Guenther  <rguenther@suse.de>
11602         PR tree-optimization/43572
11603         * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
11604         * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
11605         * tree-flow.h (is_call_clobbered): Remove.
11606         * tree-flow-inline.h (is_call_clobbered): Likewise.
11607         * tree-dfa.c (dump_variable): Do not dump call clobber state.
11608         * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
11609         (execute_return_slot_opt): Adjust.
11610         * tree-tailcall.c (suitable_for_tail_opt_p): Remove
11611         check for call clobbered vars here.
11612         (find_tail_calls): Move tailcall verification to the
11613         proper place.
11615 2010-04-16  Diego Novillo  <dnovillo@google.com>
11617         * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
11619 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
11621         PR target/40603
11622         * config/arm/arm.md (cbranchqi4): New pattern.
11623         * config/arm/predicates.md (const0_operand,
11624         cbranchqi4_comparison_operator): New predicates.
11626 2010-04-16  Richard Guenther  <rguenther@suse.de>
11628         * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
11629         (dump_gimple_stmt): Likewise.
11631 2010-04-16  Bernd Schmidt  <bernds@codesourcery.com>
11633         * recog.h (struct recog_data): New field is_operator.
11634         (struct insn_operand_data): New field is_operator.
11635         * recog.c (extract_insn): Set recog_data.is_operator.
11636         * genoutput.c (output_operand_data): Emit code to set the
11637         is_operator field.
11638         * reload.c (find_reloads): Use it rather than testing for an
11639         empty constraint string.
11641         PR target/41514
11642         * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
11643         If the previous insn is a cbranchsi4_insn with the same arguments,
11644         omit the compare instruction.
11646         * config/arm/arm.md (addsi3_cbranch): If destination is a high
11647         register, inputs must be low registers and we need a low register
11648         scratch.  Handle alternative 2 like alternative 3.
11650 2010-04-16  Jakub Jelinek  <jakub@redhat.com>
11652         * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
11653         don't call get_addr on both.  If one expression is a VALUE and
11654         the other a REG, check VALUE's locs if the REG isn't among them.
11656 2010-04-16  Christian Bruel  <christian.bruel@st.com>
11658         * config/sh/sh.h (sh_frame_pointer_required): New function.
11659         * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
11660         (flag_omit_frame_pointer) Set.
11661         (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
11662         (rounded_frame_size): Adjust size with outgoing_args_size.
11663         (sh_set_return_address): Must return from stack pointer.
11664         * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
11665         (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
11666         (ACCUMULATE_OUTGOING_ARGS): Define.
11667         * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
11668         * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
11670 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
11672         PR target/43471
11673         * config/sh/sh.c (sh_legitimize_reload_address): Use
11674         MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
11675         Remove a unneeded check for offset_base.
11677 2010-04-15  H.J. Lu  <hongjiu.lu@intel.com>
11679         * configure: Regenerated.
11681 2010-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11683         * config/s390/s390.c (s390_call_save_register_used): Switch back
11684         to HARD_REGNO_NREGS.
11686 2010-04-15  Richard Guenther  <rguenther@suse.de>
11688         * alias.c (alias_set_subset_of): Handle alias-set zero
11689         child properly.
11691 2010-04-15  Mark Shinwell  <shinwell@codesourcery.com>
11692             Julian Brown  <julian@codesourcery.com>
11694         * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
11695         alternatives according to use of high and low regs.
11696         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
11697         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
11698         optimizing for size on Thumb-2.
11700 2010-04-15  Thomas Schwinge  <tschwinge@gnu.org>
11702         * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
11704 2010-04-15  Richard Guenther  <rguenther@suse.de>
11706         * tree-ssa-structalias.c (struct variable_info): Add
11707         is_fn_info flag.
11708         (new_var_info): Initialize it.
11709         (dump_constraints): Support printing last added constraints.
11710         (debug_constraints): Adjust.
11711         (dump_constraint_graph): Likewise.
11712         (make_heapvar_for): Check for NULL cfun.
11713         (get_function_part_constraint): New function.
11714         (get_fi_for_callee): Likewise.
11715         (find_func_aliases): Properly implement IPA PTA constraints.
11716         (process_ipa_clobber): New function.
11717         (find_func_clobbers): Likewise.
11718         (insert_into_field_list_sorted): Remove.
11719         (create_function_info_for): Properly allocate vars for IPA mode.
11720         Do not use insert_into_field_list_sorted.
11721         (create_variable_info_for): Properly generate constraints for
11722         global vars in IPA mode.
11723         (dump_solution_for_var): Always dump the solution.
11724         (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
11725         (find_what_var_points_to): Adjust.
11726         (pt_solution_set): Change.
11727         (pt_solution_ior_into): New function.
11728         (pt_solution_empty_p): Export.
11729         (pt_solution_includes_global): Adjust.
11730         (pt_solution_includes_1): Likewise.
11731         (pt_solutions_intersect_1): Likewise.
11732         (dump_sa_points_to_info): Check some invariants.
11733         (solve_constraints): Move constraint dumping ...
11734         (compute_points_to_sets): ... here.
11735         (ipa_pta_execute): ... and here.
11736         (compute_may_aliases): Do not re-compute points-to info
11737         locally if IPA info is available.
11738         (ipa_escaped_pt): New global var.
11739         (ipa_pta_execute): Properly implement IPA PTA.
11740         * tree-into-ssa.c (dump_decl_set): Support dumping
11741         decls not in referenced-vars.
11742         * tree-flow.h (struct gimple_df): Add ipa_pta flag.
11743         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
11744         (dump_points_to_solution): Likewise.
11745         * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
11746         * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
11747         (remap_gimple_stmt): Reset call clobber/use information if necessary.
11748         (copy_decl_to_var): Copy DECL_PT_UID.
11749         (copy_result_decl_to_var): Likewise.
11750         * tree.c (make_node_stat): Initialize DECL_PT_UID.
11751         (copy_node_stat): Copy it.
11752         * tree.h (DECL_PT_UID): New macro.
11753         (SET_DECL_PT_UID): Likewise.
11754         (DECL_PT_UID_SET_P): Likewise.
11755         (struct tree_decl_minimal): Add pt_uid member.
11756         * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
11757         (pt_solution_empty_p): Declare.
11758         (pt_solution_set): Adjust.
11759         (ipa_escaped_pt): Declare.
11760         * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
11761         * gimple-pretty-print.c (pp_points_to_solution): New function.
11762         (dump_gimple_call): Dump call clobber/use information.
11763         * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
11764         * tree-pass.h (TDF_ALIAS): New dump option.
11765         * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
11766         * doc/invoke.texi (-fipa-pta): Update documentation.
11768 2010-04-15  Richard Guenther  <rguenther@suse.de>
11770         * Makefile.in (OBJS-common): Add gimple-fold.o.
11771         (gimple-fold.o): New rule.
11772         * tree.h (maybe_fold_offset_to_reference,
11773         maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
11774         prototypes ...
11775         * gimple.h: ... here.
11776         * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
11777         may_propagate_address_into_dereference): Move prototypes ...
11778         * gimple.h: ... here.
11779         * tree-ssa-ccp.c (get_symbol_constant_value,
11780         may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
11781         maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
11782         maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
11783         maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
11784         ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
11785         fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
11786         gimplify_and_update_call_from_tree): Move ...
11787         * gimple-fold.c: ... here.  New file.
11788         (ccp_fold_builtin): Rename to ...
11789         (gimple_fold_builtin): ... this.
11790         * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
11792 2010-04-15  Richard Guenther  <rguenther@suse.de>
11794         * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
11795         fit_double_type, force_fit_type_double, add_double_with_sign,
11796         neg_double, mul_double_with_sign, lshift_double, rshift_double,
11797         lrotate_double, rrotate_double, div_and_round_double): Move ...
11798         * double-int.c: ... here.
11799         * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
11800         add_double, neg_double, mul_double_with_sign, mul_double,
11801         lshift_double, rshift_double, lrotate_double, rrotate_double,
11802         div_and_round_double): Move prototypes ...
11803         * double-int.h: ... here.
11805 2010-04-15  Bernd Schmidt  <bernds@codesourcery.com>
11807         PR target/43742
11808         * config/sh/sh.md (doloop_end_split, dect): Undo previous patch.  Use
11809         matching constraints to ensure inputs match the output.
11811 2010-04-15  Kaz Kojima  <kkojima@gcc.gnu.org>
11813         PR target/43742
11814         * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
11815         in an input-only operand.
11817 2010-04-15  Anatoly Sokolov  <aesok@post.ru>
11819         * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
11820         (double_int_not, double_int_lshift, double_int_rshift): Declare.
11821         (double_int_negative_p): Convert to static inline function.
11822         * double-int.c (double_int_lshift, double_int_lshift): New functions.
11823         (double_int_negative_p): Remove.
11824         * tree.h (lshift_double, rshift_double):
11825         * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
11826         * fold-const.c (fold_convert_const_int_from_real,
11827         fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
11828         (lshift_double): Change type of arith argument to bool.
11829         (rshift_double): Change type of arith argument to bool. Correct
11830         comment.
11831         * expmed.c (mask_rtx, lshift_value): (Ditto.).
11833 2010-04-14  Bernd Schmidt  <bernds@codesourcery.com>
11835         PR target/21803
11836         * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
11837         at the start and end of the then/else blocks, and omit them from the
11838         conversion.
11839         * cfgcleanup.c (flow_find_cross_jump): No longer static.  Remove MODE
11840         argument; all callers changed.  Pass zero to old_insns_match_p instead.
11841         (flow_find_head_matching_sequence): New function.
11842         (old_insns_match_p): Check REG_EH_REGION notes for calls.
11843         * basic-block.h (flow_find_cross_jump,
11844         flow_find_head_matching_sequence): Declare functions.
11846 2010-04-14  Jason Merrill  <jason@redhat.com>
11848         PR c++/36625
11849         * c-common.c (attribute_takes_identifier_p): New fn.
11850         * c-common.h: Declare it.
11852 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
11854         * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
11855         splitter condition.
11856         (*udivmod<mode>4): Ditto.
11858 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
11860         * config/i386/i386.md (maxmin_int): Rename code attribute from
11861         maxminiprefix and update all users.
11862         (maxmin_float): Ditto from maxminfprefix.
11863         (logic): Ditto from logicprefix.
11864         (absneg_mnemonic): Ditto from absnegprefix.
11865         * config/i386/mmx.md: Update all users of maxminiprefix,
11866         maxminfprefix and logicprefix for rename.
11867         * config/i386/sse.md: Ditto.
11868         * config/i386/sync.md (sync_<code><mode>): Update for
11869         logicprefix rename.
11871 2010-04-14  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11873         PR 42966
11874         * diagnostics.c (diagnostic_report_diagnostic): Mark specially
11875         warnings converted to errors.
11877 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
11879         * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
11880         used insn_type variable.
11881         (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
11882         to avoid set-but-not-used warning.
11884 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
11886         * df-core.c (df_ref_debug): Change format string placeholder
11887         from 0x%x to %#x.
11888         * dwarf2asm.c (dw2_asm_output_data_raw,
11889         dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
11890         dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
11891         * dwarf2out.c (output_cfi, output_cfi_directive,
11892         dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
11893         output_cfa_loc_raw, output_die, output_ranges, output_file_names):
11894         Ditto.
11895         * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
11896         * print-rtl.c (print_rtx): Ditto.
11898 2010-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11900         PR middle-end/42694
11901         * builtins.c (expand_builtin_pow_root): New function to expand pow
11902         calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
11903         series of sqrt and cbrt calls under -ffast-math.
11904         (expand_builtin_pow): Call it.
11906 2010-04-14  Michael Matz  <matz@suse.de>
11908         PR tree-optimization/42963
11909         * tree-cfg.c (touched_switch_bbs): New static variable.
11910         (group_case_labels_stmt): New function broken out from ...
11911         (group_case_labels): ... here, use the above.
11912         (start_recording_case_labels): Allocate touched_switch_bbs.
11913         (end_recording_case_labels): Deallocate it, call
11914         group_case_labels_stmt.
11915         (gimple_redirect_edge_and_branch): Remember index of affected BB.
11917 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
11919         * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
11920         from insn template.
11922 2010-04-14  Uros Bizjak  <ubizjak@gmail.com>
11924         * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
11926 2010-04-13  Jan Hubicka  <jh@suse.cz>
11928         * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
11929         of optimized out static functions.
11930         (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
11931         cost computation.  Also sanity check for overflows.
11932         (update_caller_keys): Update cgraph_edge_badness call; properly
11933         update fibheap and sanity check that it is up to date.
11934         (add_new_edges_to_heap): Update cgraph_edge_badness.
11935         (cgraph_decide_inlining_of_small_function): Likewise;
11936         add sanity checking that badness in heap is up to date;
11937         improve dumping of reason; Update badness of calls to the
11938         offline copy of function currently inlined; dump badness
11939         of functions not inlined because of unit growth limits.
11941 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
11943         PR middle-end/32628
11944         * c-common.c (pointer_int_sum): Disregard overflow that occured only
11945         because of sign-extension change when converting to sizetype here...
11946         * fold-const.c (fold_convert_const_int_from_int): ...and not here.
11948         * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
11949         the folding to constants.  Remove redundant final conversion.
11950         (fold_binary) <associate>: Do not associate if the re-association of
11951         constants alone overflows.
11952         (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
11953         to the end of the list.
11954         (multiple_of_p) <COND_EXPR>: New case.
11956 2010-04-13  Manuel López-Ibáñez  <manu@gcc.gnu.org>
11958         * opt-functions.awk (opt_sanitized_name): New.
11959         (opt_enum): New.
11960         * optc-gen.awk: Use it
11961         * opth-gen.awk: Use it.
11963 2010-04-13  Martin Jambor  <mjambor@suse.cz>
11965         * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
11966         (sra_modify_assign): Delete stmts loading dead data even if racc has no
11967         children.  Call replace_uses_with_default_def_ssa_name to handle
11968         SSA_NAES on lhs.
11970 2010-04-13  Michael Matz  <matz@suse.de>
11972         PR middle-end/43730
11973         * builtins.c (expand_builtin_interclass_mathfn): Also create
11974         a register if the predicate doesn't match.
11976 2010-04-13  Diego Novillo  <dnovillo@google.com>
11978         * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
11979         * c-pch.c: Include timevar.h.
11980         (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
11981         (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
11982         * ggc-common.c: Include timevar.h.
11983         (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
11984         * timevar.def (TV_PCH_SAVE): Define.
11985         (TV_PCH_CPP_SAVE): Define.
11986         (TV_PCH_PTR_REALLOC): Define.
11987         (TV_PCH_PTR_SORT): Define.
11988         (TV_PCH_RESTORE): Define.
11989         (TV_PCH_CPP_RESTORE): Define.
11991 2010-04-13  Michael Matz  <matz@suse.de>
11993         * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
11994         into MINUS_EXPRs.
11995         (can_reassociate_p): New function.
11996         (break_up_subtract_bb, reassociate_bb): Use it.
11998 2010-04-13  Richard Guenther  <rguenther@suse.de>
12000         PR bootstrap/43737
12001         * builtins.c (c_readstr): Fix assert.
12003 2010-04-13  Uros Bizjak  <ubizjak@gmail.com>
12005         * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
12006         when generating cltd insn.
12008         (*ashl<mode>3_1): Remove special handling for register operand 2.
12009         (*ashlsi3_1_zext): Ditto.
12010         (*ashlhi3_1): Ditto.
12011         (*ashlhi3_1_lea): Ditto.
12012         (*ashlqi3_1): Ditto.
12013         (*ashlqi3_1_lea): Ditto.
12014         (*<shiftrt_insn><mode>3_1): Ditto.
12015         (*<shiftrt_insn>si3_1_zext): Ditto.
12016         (*<shiftrt_insn>qi3_1_slp): Ditto.
12017         (*<rotate_insn><mode>3_1): Ditto.
12018         (*<rotate_insn>si3_1_zext): Ditto.
12019         (*<rotate_insn>qi3_1_slp): Ditto.
12021 2010-04-13  Richard Guenther  <rguenther@suse.de>
12023         * tree-ssa-structalias.c (callused_id): Remove.
12024         (call_stmt_vars): New.
12025         (get_call_vi): Likewise.
12026         (lookup_call_use_vi): Likewise.
12027         (lookup_call_clobber_vi): Likewise.
12028         (get_call_use_vi): Likewise.
12029         (get_call_clobber_vi): Likewise.
12030         (make_transitive_closure_constraints): Likewise.
12031         (handle_const_call): Adjust to do per-call call-used handling.
12032         (handle_pure_call): Likewise.
12033         (find_what_var_points_to): Remove general callused handling.
12034         (init_base_vars): Likewise.
12035         (init_alias_vars): Initialize call_stmt_vars.
12036         (compute_points_to_sets): Process call-used and call-clobbered
12037         vars for call statements.
12038         (delete_points_to_sets): Free call_stmt_vars.
12040 2010-04-13  Richard Guenther  <rguenther@suse.de>
12042         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
12043         Only add RW dependence for dependence distance zero.
12044         Adjust maximal vectorization factor according to dependences.
12045         Move alignment handling ...
12046         (vect_find_same_alignment_drs): ... here.  New function.
12047         (vect_analyze_data_ref_dependences): Adjust.
12048         (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
12049         (vect_analyze_data_refs): Adjust minimal vectorization factor
12050         according to data references.
12051         * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
12052         dependences before determining the vectorization factor.
12053         Analyze alignment after determining the vectorization factor.
12054         * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
12055         dependences before alignment.
12056         * tree-vectorizer.h (vect_analyze_data_ref_dependences):
12057         Adjust prototype.
12058         (vect_analyze_data_refs): Likewise.
12059         (MAX_VECTORIZATION_FACTOR): New define.
12061 2010-04-13  Duncan Sands  <baldrick@free.fr>
12063         * except.h (lang_eh_type_covers): Remove.
12064         * except.c (lang_eh_type_covers): Likewise.
12066 2010-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12067             Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12069         * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
12070         * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
12071         UNITS_PER_LONG where it is ABI relevant.
12072         (s390_return_addr_rtx): Likewise.
12073         (s390_back_chain_rtx): Likewise.
12074         (s390_frame_area): Likewise.
12075         (s390_frame_info): Likewise.
12076         (s390_initial_elimination_offset): Likewise.
12077         (save_gprs): Likewise.
12078         (s390_emit_prologue): Likewise.
12079         (s390_emit_epilogue): Likewise.
12080         (s390_function_arg_advance): Likewise.
12081         (s390_function_arg): Likewise.
12082         (s390_va_start): Likewise.
12083         (s390_gimplify_va_arg): Likewise.
12084         (s390_function_profiler): Likewise.
12085         (s390_optimize_prologue): Likewise.
12086         (s390_rtx_costs): Likewise.
12087         (s390_secondary_reload): Likewise.
12088         (s390_promote_function_mode): Likewise.
12089         (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
12090         (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
12091         registers available.
12092         (s390_unwind_word_mode): New function.
12093         (s390_function_value): Split 64 bit values into register pair if
12094         used as return value.
12095         (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
12096         function call parameters.  Handle parallels.
12097         (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
12098         (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
12099         (DWARF_CIE_DATA_ALIGNMENT): New macro.
12100         (s390_expand_setmem): Remove unused variable src_addr.
12101         * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
12102         deal with 64 bit registers.
12103         * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
12104         Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
12105         (UNITS_PER_LONG): New macro.
12106         * libjava/include/s390-signal.h: Define extended ucontext
12107         structure containing the upper halfs of the 64 bit registers.
12109 2010-04-13  Simon Baldwin  <simonb@google.com>
12111         * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
12113 2010-04-13  Eric Botcazou  <ebotcazou@adacore.com>
12115         * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
12116         rvalue on the RHS if the LHS is of a non-renamable type.
12117         * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
12119 2010-04-13  Matthias Klose  <doko@ubuntu.com>
12121         * gcc.c (cc1_options): Handle -iplugindir before processing
12122         the cc1 spec. Only add -iplugindir once.
12123         (cpp_unique_options): Add -iplugindir option if -fplugin* options
12124         found.
12125         * common.opt (iplugindir): Remove `Separate' property, initialize.
12126         * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
12127         option.
12128         * Makefile.in (check-%, check-parallel-%): Create plugin dir.
12129         (distclean): Remove plugin dir.
12130         * doc/invoke.texi: Document -iplugindir.
12132 2010-04-13  Basile Starynkevitch  <basile@starynkevitch.net>
12134         * doc/plugins.texi (Loading Plugins): Document short
12135         -fplugin=foo option.
12136         (Plugin API): Mention default_plugin_dir_name function.
12138         * gcc.c (find_file_spec_function): Add new declaration.
12139         (static_spec_func): Use it for "find-file".
12140         (find_file_spec_function): Add new function.
12141         (cc1_options): Add -iplugindir option if -fplugin* options found.
12143         * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
12145         * plugin.c (add_new_plugin): Updated comment, and handle short
12146         plugin name.
12147         (default_plugin_dir_name): Added new function.
12149         * common.opt (iplugindir): New option to set the plugin directory.
12151 2010-04-12  Uros Bizjak  <ubizjak@gmail.com>
12153         * config/i386/i386.md (any_rotate): New code iterator.
12154         (rotate_insn): New code attribute.
12155         (rotate): Ditto.
12156         (SWIM124): New mode iterator.
12157         (<rotate_insn>ti3): New expander.
12158         (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
12159         any_rotate code iterator.
12160         (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
12161         using any_rotate code iterator and SWIM124 mode iterator.
12162         (ix86_rotlti3): New insn_and_split pattern.
12163         (ix86_rotrti3): Ditto.
12164         (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
12165         ix86_rotl{di,ti}3 patterns.
12166         (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
12167         (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
12168         and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
12169         *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
12170         code iterator and SWI mode iterator.
12171         (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
12172         Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
12173         code iterator.
12174         (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
12175         Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
12176         (bswap rotatert splitter): Add splitter.
12177         (bswap splitter): Macroize splitter using any_rotate code iterator.
12178         Add insn predicate to split only for TARGET_USE_XCHGB or when
12179         optimizing function for size.
12181 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
12183         * config/pa/pa.c (emit_move_sequence): Remove use of
12184         deleted variable flag_argument_noalias.
12186 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12188         * config.gcc: Removed *-*-solaris2.7* from list of obsolete
12189         configurations.
12190         Add to unsupported targets list.
12191         * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
12192         sparc*-sun-solaris2.[567]* from target lists.
12193         * configure: Regenerate.
12194         * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
12195         removal.
12196         Remove Solaris 7 patch references.
12197         (Specific, sparc-sun-solaris2.7): Removed.
12198         (sparc-sun-solaris2*): Update Solaris 7 example.
12199         (sparc64-*-solaris2*): Likewise.
12201 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12203         * config.build (alpha*-dec-osf4*): Remove.
12204         * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
12205         of obsolete configurations.
12206         (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
12207         support.
12208         * config/alpha/t-osf4: Renamed to ...
12209         * config/alpha/t-osf5: ... this.
12210         * config/alpha/osf.h: Renamed to ...
12211         * config/alpha/osf5.h: ... this.
12212         Merged old osf5.h contents.
12213         Update comments.
12214         (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
12215         (EXTRA_SPECS): Removed.
12216         * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
12217         reflect removal of Tru64 UNIX V4.0/V5.0 support.
12218         Document that.
12220 2010-04-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12222         * doc/contrib.texi (Contributors, Rainer Orth): Update.
12224 2010-04-12  Kai Tietz  <kai.tietz@onevision.com>
12226         PR/43702
12227         * config/i386/i386.c (x86_this_parameter): Handle aggregate for
12228         __thiscall convention.
12230 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
12232         * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
12233         orig_base.
12234         * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
12236 2010-04-12  Steve Ellcey  <sje@cup.hp.com>
12238         * function.c (assign_parms_initialize_all): Add unused attribute
12239         to fntype.
12241 2010-04-12  Richard Guenther  <rguenther@suse.de>
12243         * gsstruct.def (GSS_CALL): New.
12244         * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
12245         * gimple.h: Include tree-ssa-alias.h.
12246         (struct gimple_statement_call): New.
12247         (union gimple_statement_struct_d): Add gimple_call member.
12248         (gimple_call_reset_alias_info): Declare.
12249         (gimple_call_use_set): New function.
12250         (gimple_call_clobber_set): Likewise.
12251         * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
12252         * gimple.c (gimple_call_reset_alias_info): New function.
12253         (gimple_build_call_1): Call it.
12254         * lto-streamer-in.c (input_gimple_stmt): Likewise.
12255         * tree-inline.c (remap_gimple_stmt): Likewise.
12256         (expand_call_inline): Remove callused handling.
12257         * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
12258         * tree-dfa.c (dump_variable): Likewise.
12259         * tree-parloops.c (parallelize_loops): Likewise.
12260         * tree-ssa.c (init_tree_ssa): Likewise.
12261         (delete_tree_ssa): Likewise.
12262         * tree-flow-inline.h (is_call_used): Remove.
12263         * tree-flow.h (struct gimple_df): Remove callused member.
12264         * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
12265         * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
12266         (ref_maybe_used_by_call_p_1): Simplify.
12267         (call_may_clobber_ref_p_1): Likewise.
12268         * tree-ssa-structalias.c (compute_points_to_sets): Set
12269         the call stmt used and clobbered sets.
12270         * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
12271         (find_tail_calls): Verify the tail call.
12273 2010-04-12  Richard Guenther  <rguenther@suse.de>
12275         * ipa.c (cgraph_postorder): Adjust postorder to guarantee
12276         single-iteration always-inline inlining.
12277         * ipa-inline.c (cgraph_mark_inline): Do not return anything.
12278         (cgraph_decide_inlining): Do not handle always-inline specially.
12279         (try_inline): Remove always-inline cycle detection special case.
12280         Do not recurse on always-inlines.
12281         (cgraph_early_inlining): Do not iterate if not optimizing.
12282         (cgraph_gate_early_inlining): remove.
12283         (pass_early_inline): Run unconditionally.
12284         (gate_cgraph_decide_inlining): New function.
12285         (pass_ipa_inline): Use it.  Do not run the IPA inliner if
12286         not inlining or optimizing.
12287         (cgraph_decide_inlining_of_small_functions): Also consider
12288         always-inline functions.
12289         (cgraph_default_inline_p): Return true for nodes which should
12290         disregard inline limits.
12291         (estimate_function_body_sizes): Assume zero size and time for
12292         nodes which are marked as disregarding inline limits.
12293         (cgraph_decide_recursive_inlining): Do not perform recursive
12294         inlining on always-inline nodes.
12296 2010-04-12  Jakub Jelinek  <jakub@redhat.com>
12298         PR bootstrap/43699
12299         * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
12300         for exprs satisfying handled_component_p.
12302 2010-04-12  Eric Botcazou  <ebotcazou@adacore.com>
12304         * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
12305         non-constant aggregate elements.
12307         * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
12308         is a real initialization.
12310 2010-04-12  Shujing Zhao  <pearly.zhao@oracle.com>
12312         PR c/36774
12313         * c-decl.c (start_function): Move forward check for nested function.
12315 2010-04-11  Kaz Kojima  <kkojima@gcc.gnu.org>
12317         * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
12318         * config/sh/sh.c: Include reload.h.
12319         (sh_legitimize_reload_address): New.
12320         * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
12321         sh_legitimize_reload_address.
12323 2010-04-11  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
12325         * config/sh/sh.md (*movqi_pop): New insn pattern.
12326         * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
12328 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
12330         * config/i386/i386.md (any_shiftrt): New code iterator.
12331         (shiftrt_insn): New code attribute.
12332         (shiftrt): Ditto.
12333         (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
12334         using any_shiftrt code iterator.
12335         (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
12336         *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
12337         (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
12338         pattern from corresponding peephole2 patterns.
12339         (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
12340         using any_shiftrt code iterator.
12341         (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
12342         (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
12343         (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
12344         (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
12345         *{ashr,lshr}<mode>3_cmp_zext.
12346         (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
12348 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
12350         * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
12351         scratch register.
12352         (*lshr<mode>3_cconly): Ditto.
12354 2010-04-11  Uros Bizjak  <ubizjak@gmail.com>
12356         * config/i386/i386.md (lshr<mode>3): Macroize expander from
12357         lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
12358         (*lshr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
12359         pattern from *lshr{di,ti}3_1 and corresponding splitters using
12360         DWI mode iterator.
12361         (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
12362         from corresponding peephole2 patterns.
12363         (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
12364         *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
12365         and *lshrdi3_1_rex64 using SWI mode iterator.
12366         (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
12367         (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
12368         (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
12369         *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
12370         and *lshrdi3_cmp_rex64 using SWI mode iterator.
12371         (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
12372         (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
12373         *lshrdi3_one_bit_cconly_rex64. Macroize insn from
12374         *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
12375         SWI mode iterator.
12377 2010-04-10  Uros Bizjak  <ubizjak@gmail.com>
12379         * config/i386/i386.md (ashr<mode>3): Macroize expander from
12380         ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
12381         (*ashr<mode>3_doubleword): New insn_and_split_pattern.  Macroize
12382         pattern from *ashr{di,ti}3_1 and corresponding splitters using
12383         DWI mode iterator.
12384         (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
12385         from corresponding peephole2 patterns.
12386         (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
12387         (ashrsi3_cvt): Rename from ashrsi3_31.
12388         (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
12389         (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
12390         and x86_64_shift_adj_3 using SWI48 mode iterator.
12391         (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
12392         *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
12393         and *ashrdi3_1_rex64 using SWI mode iterator.
12394         (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
12395         (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
12396         (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
12397         *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
12398         and *ashrdi3_cmp_rex64 using SWI mode iterator.
12399         (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
12400         (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
12401         *ashrdi3_one_bit_cconly_rex64. Macroize insn from
12402         *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
12403         SWI mode iterator.
12404         (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
12405         * config/i386/i386.c (ix86_split_ashr): Update for renamed
12406         x86_shift<mode>_adj_3 expanders.
12408 2010-04-10  Wei Guozhi  <carrot@google.com>
12410         PR target/42601
12411         * config/arm/arm.c (arm_pic_static_addr): New function.
12412         (legitimize_pic_address): Call arm_pic_static_addr when it detects
12413         a static symbol.
12414         (arm_output_addr_const_extra): Output expression for new pattern.
12415         * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
12417 2010-04-10  Bernd Schmidt  <bernds@codesourcery.com>
12419         * ira-costs.c (record_reg_classes): Ignore alternatives that are
12420         not enabled.
12422         * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
12423         * web.c: Include "insn-config.h" and "recog.h".
12424         (union_match_dups): New function.
12425         (web_main): Call it.
12426         (union_defs): Don't try to recognize match_dups.
12428         * reload1.c (eliminate_regs_in_insn): Don't restore an operand
12429         if doing so would replace the entire pattern.
12431 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
12433         PR target/43707
12434         PR target/43709
12435         * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
12436         and splitter pattern.  Change splitter operand 1 predicate to
12437         nonmemory_operand.
12439 2010-04-09  Martin Jambor  <mjambor@suse.cz>
12441         * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
12442         lattices are addresses of CONST_DECLs with the same initial value.
12443         (ipcp_print_all_lattices): Print values of CONST_DECLs.
12444         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
12446 2010-04-09  Eric Botcazou  <ebotcazou@adacore.com>
12447             Bernd Schmidt  <bernds@codesourcery.com>
12449         * loop-invariant.c (replace_uses): New static function.
12450         (move_invariant_reg): Use it to ensure we can replace the uses.
12452 2010-04-09  Hariharan Sandanagobalane  <hariharan@picochip.com>
12454         * config/picochip/picochip.c (picochip_rtx_costs): Use correct
12455         function template.
12456         (picochip_override_options): Enable section anchors only above -O1.
12457         (picochip_reorg): Fixed a couple of build warnings.
12459 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12461         * configure.ac (plugin -rdynamic test): Log result.
12462         * configure: Regenerate.
12463         * config/sol2.h (LINK_SPEC): Handle -rdynamic.
12464         (RDYNAMIC_SPEC): Define.
12465         * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
12467 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12469         * configure.ac: Determine Sun ld version numbers.
12470         (comdat_group): Restrict GNU ld version checks to gld.
12471         (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
12472         (enable_comdat): Support --enable-comdat.
12473         * configure: Regenerate.
12474         * doc/install.texi (Configuration): Document --enable-comdat.
12476 2010-04-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12478         * config/sparc/sol2-gld.h: Remove SPARC reference.  Rename ...
12479         * config/sol2-gld.h: ... here.
12480         * config.gcc (sparc*-*-solaris2*): Reflect this.
12481         (i[34567]86-*-solaris2*): Use it.
12483 2010-04-09  Steve Ellcey  <sje@cup.hp.com>
12485         * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
12486         setup_clocks_p.
12487         (final_emit_insn_group_barriers): Remove unused variable prev_insn.
12489 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12491         PR 42965
12492         * diagnostic.c (diagnostic_initialize): Initialize
12493         some_warnings_are_errors.
12494         (diagnostic_finish): New.
12495         (diagnostic_action_after_output): Call it before exiting.
12496         (diagnostic_report_diagnostic): Do not print message here. Set
12497         some_warnings_are_errors.
12498         * diagnostic.h (diagnostic_context): Delete
12499         issue_warnings_are_errors_message. Add some_warnings_are_errors.
12500         (diagnostic_finish): Declare.
12501         * toplev.c (toplev_main): Call it before exit.
12503 2010-04-09  Jason Merrill  <jason@redhat.com>
12505         PR c++/42623
12506         * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
12507         for incomplete type.
12509         PR c++/41788
12510         * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
12511         based on a warning flag.
12513 2010-04-09  Richard Guenther  <rguenther@suse.de>
12515         * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
12517 2010-04-09  Iain Sandoe  <iains@gcc.gnu.org>
12519         PR bootstrap/43684
12520         * varasm.c (default_assemble_visibility): Wrap vars that are
12521         set, but unused, by targets without GAS.
12522         * config/rs6000/rs6000.c (paired_emit_vector_compare):
12523         Remove set, but unused, vars.
12524         (rs6000_legitimize_tls_address): Likewise.
12525         (altivec_expand_dst_builtin): Likewise.
12526         * config/darwin.c (machopic_classify_symbol): Likewise.
12527         (machopic_indirection_name): Likewise.
12529 2010-04-09  Uros Bizjak  <ubizjak@gmail.com>
12531         * config/i386/i386.md (DWI): New mode iterator.
12532         (S): New mode attribute.
12533         (shift_operand): Ditto.
12534         (shift_immediate_operand): Ditto.
12535         (ashl_input_operand): Ditto.
12536         (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
12537         using SDWIM mode iterator.
12538         (*ashl<mode>3_doubleword): New insn_and_split_pattern.  Macroize
12539         pattern from *ashl{di,ti}3_1 and corresponding splitters using
12540         DWI mode iterator.
12541         (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
12542         from corresponding peephole2 patterns.
12543         (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
12544         and x86_64_shift_adj_1 using SWI48 mode iterator.
12545         (x86_shift<mode>_adj_2): Ditto.
12546         (*ashldi3_1_rex64): Split TYPE_LEA pattern.
12547         (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
12548         using SWI48 mode iterator.
12549         (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
12550         *ashldi3_cmp_rex64 using SWI mode iterator.
12551         (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
12552         *ashldi3_cconly_rex64 using SWI mode iterator.
12553         * config/i386/i386.c (ix86_split_ashl): Update for renamed
12554         x86_shift<mode>_adj_{1,2}.
12555         (ix86_split_ashr): Ditto.
12556         (ix86_split_lshr): Ditto.
12558 2010-04-09  Richard Guenther  <rguenther@suse.de>
12560         * target.h (builtin_conversion): Pass in input and output types.
12561         * targhooks.c (default_builtin_vectorized_conversion): Adjust.
12562         * targhooks.h (default_builtin_vectorized_conversion): Likewise.
12563         * tree-vect-stmts.c (vectorizable_conversion): Adjust.
12564         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
12566         * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
12567         Handle AVX modes.
12568         * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
12570 2010-04-09  Richard Guenther  <rguenther@suse.de>
12572         PR target/43152
12573         * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
12575 2010-04-09  Richard Guenther  <rguenther@suse.de>
12577         * tree-vectorizer.h (struct _stmt_vec_info): Document
12578         that vectype is the type of the LHS.
12579         (supportable_widening_operation, supportable_narrowing_operation):
12580         Get both input and output vector types as arguments.
12581         (vect_is_simple_use_1): Declare.
12582         (get_same_sized_vectype): Likewise.
12583         * tree-vect-loop.c (vect_determine_vectorization_factor):
12584         Set STMT_VINFO_VECTYPE to the vector type of the def.
12585         (vectorizable_reduction): Adjust.
12586         * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
12587         Adjust.  Specify the output vector type.
12588         (vect_pattern_recog_1): Adjust.
12589         * tree-vect-stmts.c (get_same_sized_vectype): New function.
12590         (vectorizable_call): Adjust.
12591         (vectorizable_conversion): Likewise.
12592         (vectorizable_operation): Likewise.
12593         (vectorizable_type_demotion): Likewise.
12594         (vectorizable_type_promotion): Likewise.
12595         (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
12596         the def.
12597         (vect_is_simple_use_1): New function.
12598         (supportable_widening_operation): Get both input and output
12599         vector types.
12600         (supportable_narrowing_operation): Likewise.
12601         * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
12603 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
12605         * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
12606         __thiscall and _thiscall as predefined macros.
12607         * config/i386/i386.c (ix86_handle_cconv_attribute): Add
12608         thiscall attribute handling.
12609         (ix86_comp_type_attributes): Likewise.
12610         (ix86_function_regparm): Likewise.
12611         (ix86_return_pops_args): Likewise.
12612         (init_cumulative_args): Likewise.
12613         (find_drap_reg): Likewise.
12614         (ix86_static_chain): Likewise.
12615         (x86_this_parameter): Likewise.
12616         (x86_output_mi_thunk): Likewise.
12617         (ix86_attribute_table): Add description for thiscall attribute.
12618         * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
12619         * doc/extend.texi: Add documentation for thiscall.
12621 2010-04-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12623         PR c++/28584
12624         * c.opt (Wint-to-pointer-cast): Available in C++.
12625         * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
12627 2010-04-08  Eric Botcazou  <ebotcazou@adacore.com>
12629         * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
12630         * calls.c (expand_call): Pass the function type to aggregate_value_p.
12631         * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
12632         the target function of a CALL_EXPR.  Honor TREE_ADDRESSABLE on the
12633         function type instead.  Reorder and simplify checks.
12635         * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
12637 2010-04-08  Jing Yu  <jingyu@google.com>
12638             Zdenek Dvorak  <ook@ucw.cz>
12640         PR tree-optimization/42720
12641         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
12642         loop unswitch conditions here from ...
12643         (tree_unswitch_single_loop): ... here.
12645 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
12647         * tree-if-conv.c: Fix comments and simplify logic.
12649 2010-04-08  Sebastian Pop  <sebastian.pop@amd.com>
12651         * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
12652         (tree_if_conversion): Same.  Update call to if_convertible_loop_p.
12653         (main_tree_if_conversion): Update call to tree_if_conversion.
12655 2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
12657         PR 42485
12658         * doc/invoke.texi (-b,-V): Delete.
12659         * doc/tm.texi: Do not mention -b.
12660         * gcc.c (display_help): Delete -b and -V.
12661         (process_command): Delete -b and -V.
12662         * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
12664 2010-04-08  Christian Borntraeger  <borntraeger@de.ibm.com>
12665             Wolfgang Gellerich  <gellerich@de.ibm.com>
12667         Implement target hook for loop unrolling
12668         * target.h (loop_unroll_adjust): Add a new target hook function.
12669         * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
12670         * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
12671         * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
12672         (s390_loop_unroll_adjust): Implement the new target hook for s390.
12673         * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
12674         target hook.
12675         (decide_unroll_stupid): Likewise.
12677 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12679         PR target/43643
12680         * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
12682 2010-04-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12684         * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
12685         (Specific, *-*-solaris2*): Likewise.
12686         Don't prefer Sun as over GNU as.
12688 2010-04-08  Wolfgang Gellerich  <gellerich@de.ibm.com>
12690         * config/s390/s390.c (override_options): Adjust the z10 defaults
12691         for max-unroll-times, max-completely-peeled-insns
12692         and max-completely-peel-times.
12694 2010-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12696         * config/s390/s390.c (s390_expand_movmem): Issue prefetch
12697         instructions for z10.
12698         (s390_expand_setmem): Likewise.
12699         (s390_expand_cmpmem): Likewise.
12701 2010-04-08  Richard Guenther  <rguenther@suse.de>
12703         PR tree-optimization/43679
12704         * tree-ssa-pre.c (eliminate): Only propagate copies.
12706 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
12708         PR bootstrap/43681
12709         * expr.c (block_move_libcall_safe_for_call_parm): Avoid
12710         set but not used variable warning.
12712 2010-04-08  Wei Guozhi  <carrot@google.com>
12714         PR target/41653
12715         * config/arm/arm.c (thumb1_size_rtx_costs): New function.
12716         (arm_size_rtx_costs): Call the new function when optimized for size.
12718 2010-04-08  Jakub Jelinek  <jakub@redhat.com>
12720         PR debug/43670
12721         * cfgexpand.c (expand_debug_expr): If for non-NULL offset
12722         op0 is not a MEM, just return NULL instead of assertion
12723         failure.
12724         (discover_nonconstant_array_refs): Don't walk debug stmts.
12726 2010-04-08  Doug Kwan  <dougkwan@google.com>
12728         * configure.ac: Recognize gold and do not use its version number
12729         to test ld features.
12730         * configure: Regenerate.
12732 2010-04-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
12734         PR middle-end/40815
12735         * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
12736         (negate_value): Move code to push elements to broken_up_substracts ...
12737         (eliminate_plus_minus_pair): ... here.  Push operands that have no
12738         negative pair to plus_negates.
12739         (repropagate_negates, init_reassoc, fini_reassoc): Update.
12741 2010-04-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12743         * doc/install.texi (Configuration): Move description of
12744         --enable-lto, --with-libelf*, --enable-gold from Java section to
12745         general section.
12747         * doc/generic.texi (Working with declarations)
12748         (Function Properties, C and C++ Trees): Fix typos.
12749         * doc/sourcebuild.texi (Top Level): Likewise.
12751 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
12753         PR c/18624
12754         * tree.h (DECL_READ_P): Define.
12755         (struct tree_decl_common): Add decl_read_flag.
12756         * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
12757         a set but not used warning.
12758         (merge_decls): Merge DECL_READ_P flag.
12759         (finish_decl, build_compound_literal): Set DECL_READ_P flag.
12760         (finish_function): Issue -Wunused-but-set-parameter diagnostics.
12761         * c-common.c (handle_used_attribute, handle_unused_attribute):
12762         Likewise.
12763         * c-tree.h (default_function_array_read_conversion, mark_exp_read):
12764         New prototypes.
12765         * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
12766         New functions.
12767         (default_conversion, c_process_expr_stmt): Call mark_exp_read.
12768         * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
12769         c_parser_binary_expression, c_parser_cast_expression,
12770         c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
12771         Call default_function_array_read_conversion instead of
12772         default_function_array_conversion where needed.
12773         (c_parser_unary_expression, c_parser_conditional_expression,
12774         c_parser_postfix_expression_after_primary, c_parser_initelt):
12775         Likewise.  Call mark_exp_read where needed.
12776         (c_parser_statement_after_labels, c_parser_asm_operands,
12777         c_parser_typeof_specifier, c_parser_sizeof_expression,
12778         c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
12779         where needed.
12780         * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
12781         New.
12782         * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
12783         (warn_unused_but_set_parameter): Default to warn_unused
12784         && extra_warnings.
12785         * doc/invoke.texi: Document -Wunused-but-set-variable and
12786         -Wunused-but-set-parameter.
12788         * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
12789         used count variable.
12790         * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
12791         when operandN variables aren't used in the body of the expander
12792         or splitter.
12793         * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
12794         FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
12795         * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
12796         * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
12797         FOR_EACH_IMM_USE_ON_STMT): Likewise.
12798         * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
12799         * tree.c (PROCESS_ARG): Likewise.
12801 2010-04-07  Simon Baldwin  <simonb@google.com>
12803         * diagnostic.h (diagnostic_override_option_index): New macro to
12804         set a diagnostic's option_index.
12805         * c-tree.h (c_cpp_error): Add warning reason argument.
12806         * opts.c (_warning_as_error_callback): New.
12807         (register_warning_as_error_callback): Store callback for
12808         warnings enabled via enable_warning_as_error.
12809         (enable_warning_as_error): Call callback, minor code tidy.
12810         * opts.h (register_warning_as_error_callback): Declare.
12811         * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
12812         response to -Werror=.
12813         (c_common_init_options): Register warning_as_error_callback in opts.c.
12814         * common.opt: Add -Wno-cpp option.
12815         * c-common.c (struct reason_option_codes_t): Map cpp warning
12816         reason codes to gcc option indexes.
12817         * (c_option_controlling_cpp_error): New function, lookup the gcc
12818         option index for a cpp warning reason code.
12819         * (c_cpp_error): Add warning reason argument, call
12820         c_option_controlling_cpp_error for diagnostic_override_option_index.
12821         * doc/invoke.texi: Document -Wno-cpp.
12823 2010-04-07  Richard Guenther  <rguenther@suse.de>
12825         * ipa-reference.c (mark_load): Use get_base_address.
12826         (mark_store): Likewise.
12828         * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
12829         inserting GIMPLE_NOPs into the IL.
12830         * tree-ssa-structalias.c (get_constraint_for_component_ref):
12831         Explicitly strip handled components and indirect references.
12833         * fold-const.c (fold_unary_loc): Do not strip qualifiers when
12834         folding address expressions.
12835         * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
12836         * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
12837         operand_equal_p to compare decls.
12838         (ptr_deref_may_alias_decl_p): Likewise.
12839         * tree-ssa-operands.c (get_asm_expr_operands): Simplify
12840         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
12841         Handle reversed comparison ops.
12842         * tree-sra.c (asm_visit_addr): Use get_base_address.
12843         * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
12844         * ipa-reference.c (mark_address): Use get_base_address.
12846 2010-04-07  Richard Guenther  <rguenther@suse.de>
12848         * tree-ssa-forwprop.c (forward_propagate_addr_expr):
12849         Propagate constants everywhere.
12851 2010-04-07  Jakub Jelinek  <jakub@redhat.com>
12853         PR debug/43516
12854         * tree.c (MAX_INT_CACHED_PREC): Define.
12855         (nonstandard_integer_type_cache): New array.
12856         (build_nonstandard_integer_type): Cache results for precision
12857         <= MAX_INT_CACHED_PREC.
12859 2010-04-07  Richard Guenther  <rguenther@suse.de>
12861         * doc/invoke.texi (-fargument-alias, -fargument-noalias,
12862         -fargument-noalias-global, -fargument-noalias-anything): Remove.
12863         * common.opt: Likewise.
12864         * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
12865         * alias.c (base_alias_check): Remove flag_argument_noalias handling.
12866         (nonoverlapping_memrefs_p): Likewise.
12867         * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
12868         * opts.c (common_handle_option): Handle OPT_fargument_alias,
12869         OPT_fargument_noalias, OPT_fargument_noalias_anything and
12870         OPT_fargument_noalias_global for backward compatibility.
12872 2010-04-07  Richard Guenther  <rguenther@suse.de>
12874         PR tree-optimization/43270
12875         * tree-vrp.c (check_array_ref): Fix flexible array member detection.
12876         * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
12877         * tree-ssa-pre.c (phi_translate_1): Adjust.
12878         (fully_constant_expression): Split out vn_reference handling to ...
12879         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
12880         Fold reads from constant strings.
12881         (vn_reference_lookup): Handle fully constant references.
12882         (vn_reference_lookup_pieces): Likewise.
12883         * Makefile.in (expmed.o-warn): Add -Wno-error.
12885 2010-04-07  Martin Jambor  <mjambor@suse.cz>
12887         * tree-sra.c (find_param_candidates): Allow scalar va_list types.
12889 2010-04-07  Iain Sandoe  <iains@gcc.gnu.org>
12891         PR driver/41594
12892         * gcc.c: Add -static-libstdc++ to list of recognized options.
12894 2010-04-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12896         * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
12898 2010-04-07  Richard Guenther  <rguenther@suse.de>
12900         PR middle-end/42617
12901         * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
12902         bases build simple mem attributes to retain points-to information.
12904 2010-04-07  Richard Guenther  <rguenther@suse.de>
12906         PR middle-end/42617
12907         * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
12908         preserve points-to related information.
12910 2010-04-07  Richard Guenther  <rguenther@suse.de>
12912         PR middle-end/42617
12913         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
12914         discard plain indirect references.
12915         * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
12916         * tree.c (tree_nop_conversion): Likewise.
12918 2010-04-07  Dodji Seketeli  <dodji@redhat.com>
12920         PR debug/43628
12921         * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
12923 2010-04-06  Kai Tietz  <kai.tietz@onevision.com>
12925         * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
12926         calling convention attributes on METHOD_TYPEs for w64 ABI, too.
12928 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
12930         * tree-if-conv.c: Fix indentation and comments.
12932 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
12934         * tree-if-conv.c: Sort static functions in topological order.
12936 2010-04-07  Sebastian Pop  <sebastian.pop@amd.com>
12938         * tree-if-conv.c: Fix indentation and comments.
12940 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
12942         PR middle-end/43519
12943         * graphite-clast-to-gimple.c (max_signed_precision_type): Use
12944         lang_hooks.types.type_for_size instead of
12945         build_nonstandard_integer_type.
12946         When converting an unsigned type to signed, double its precision.
12947         (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
12948         (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
12949         (graphite_create_new_loop_guard): When ub + 1 wraps around,
12950         use lb <= ub.
12952 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
12954         PR middle-end/43519
12955         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
12956         POINTER_PLUS_EXPR for pointer types.
12958 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
12960         PR middle-end/43519
12961         * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
12962         * graphite-clast-to-gimple.c: Include langhooks.h.
12963         (max_signed_precision_type): New.
12964         (max_precision_type): Takes two types as arguments.
12965         (precision_for_value): New.
12966         (precision_for_interval): New.
12967         (gcc_type_for_interval): New.
12968         (gcc_type_for_value): New.
12969         (gcc_type_for_clast_term): New.
12970         (gcc_type_for_clast_red): New.
12971         (gcc_type_for_clast_bin): New.
12972         (gcc_type_for_clast_expr): Split up into several functions.
12973         (gcc_type_for_clast_eq): Rewritten.
12974         (compute_bounds_for_level): New.
12975         (compute_type_for_level_1): New.
12976         (compute_type_for_level): New.
12977         (gcc_type_for_cloog_iv): Removed.
12978         (gcc_type_for_iv_of_clast_loop): Rewritten.
12979         (graphite_create_new_loop): Compute the lower and upper bound types
12980         with gcc_type_for_clast_expr.
12981         (graphite_create_new_loop_guard): Same.
12982         (find_cloog_iv_in_expr): Removed.
12983         (compute_cloog_iv_types_1): Removed.
12984         (compute_cloog_iv_types): Removed.
12985         (gloog): Do not call compute_cloog_iv_types.
12986         * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
12987         GBB_CLOOG_IV_TYPES.
12988         (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
12989         * sese.h (struct gimple_bb): Removed field cloog_iv_types.
12990         (GBB_CLOOG_IV_TYPES): Removed.
12992 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
12994         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
12995         gimple_phi_num_args of the loop close SSA phi node is equal to 1.
12996         (detect_commutative_reduction): Same.
12998 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13000         * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
13001         call to verify_ssa.  Invoke verify_loop_closed_ssa with an extra
13002         argument.
13003         * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
13004         * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
13005         (rewrite_commutative_reductions_out_of_ssa): Same.
13006         * passes.c (execute_function_todo): Call verify_ssa for every pass
13007         in the LNO.  Invoke verify_loop_closed_ssa with an extra argument.
13008         * tree-flow.h (verify_loop_closed_ssa): Update declaration.
13009         * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
13010         with an extra argument.
13011         * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same.  Call
13012         verify_ssa only when the extra argument is true.
13013         (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
13014         with an extra argument.
13015         (tree_transform_and_unroll_loop): Same.
13017 2010-04-06  Sebastian Pop  <sebastian.pop@amd.com>
13019         * passes.c (execute_function_todo): Call verify_loop_closed_ssa
13020         for all the passes of the LNO having LOOP_CLOSED_SSA.
13021         * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
13022         * tree-loop-distribution.c (pass_loop_distribution): Same.
13023         * tree-pass.h (TODO_verify_loops): Removed.
13024         * tree-ssa-loop.c (pass_tree_loop_init): Same.
13025         (pass_lim): Same.
13026         (pass_tree_unswitch): Same.
13027         (pass_predcom): Same.
13028         (pass_vectorize): Same.
13029         (pass_linear_transform): Same.
13030         (pass_graphite_transforms): Same.
13031         (pass_iv_canon): Same.
13032         (pass_complete_unroll): Same.
13033         (pass_complete_unrolli): Same.
13034         (pass_parallelize_loops): Same.
13035         (pass_loop_prefetch): Same.
13036         (pass_iv_optimize): Same.
13038 2010-04-06  Changpeng Fang  <changpeng.fang@amd.com>
13040         PR middle-end/32824
13041         * passes.c (init_optimization_passes): Move pass_lim before
13042         pass_copy_prop and pass_dce_loop.
13044 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
13046         PR target/43667
13047         * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
13048         instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
13049         (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
13050         MULTI_* defines for 4 argument vpermil2p* builtins.
13052 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
13054         * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
13055         * config/i386/i386.c (x86_maybe_negate_const_int): New.
13056         (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
13057         * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
13058         *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
13059         *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
13060         *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
13061         Use x86_maybe_negate_const_int to output insn mnemonic.
13062         (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto.  Remove overflow
13063         check from instruction predicate.  Update comments.
13064         * config/i386/sync.md (sync_add<mode>): Use
13065         x86_maybe_negate_const_int to output insn mnemonic.
13067 2010-04-06  Jan Hubicka  <jh@suse.cz>
13069         PR tree-optimization/42906
13070         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
13071         IGNORE_SELF argument.  Set visited_control_parents for fully
13072         processed BBs.
13073         (find_obviously_necessary_stmts): Update call of
13074         mark_control_dependent_edges_necessary.
13075         (propagate_necessity): Likewise.  Handle PHI edges more curefully.
13077 2010-04-06  Uros Bizjak  <ubizjak@gmail.com>
13079         * config/i386/i386.md: Remove comment about 'e' and 'E'
13080         operand modifier.
13082 2010-04-06  Richard Guenther  <rguenther@suse.de>
13084         PR tree-optimization/43627
13085         * tree-vrp.c (extract_range_from_unary_expr): Widenings
13086         of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
13087         not varying.
13089 2010-04-06  Jakub Jelinek  <jakub@redhat.com>
13091         * BASE-VER: Change to 4.6.0.
13093         PR target/43638
13094         * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
13095         handling.
13097 2010-04-06  Richard Guenther  <rguenther@suse.de>
13099         PR middle-end/43661
13100         * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
13102 2010-04-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13104         * doc/invoke.texi (Optimize Options): Document that LTO
13105         won't remove object access purely due to incompatible
13106         declarations.
13108 2010-04-04  Matthias Klose  <doko@ubuntu.com>
13110         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
13111         Initialize variable.
13113 2010-04-03  Richard Guenther  <rguenther@suse.de>
13115         PR middle-end/42509
13116         * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
13117         require a non-NULL MEM_OFFSET.
13119 2010-04-02  Steven Bosscher  <steven@gcc.gnu.org>
13121         * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
13122         basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
13123         collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
13124         config/alpha/predicates.md, config/arm/arm.md,
13125         config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
13126         config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
13127         config/darwin9.h, config/darwin.c, config/darwin.h,
13128         config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
13129         config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
13130         config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
13131         config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
13132         config/mips/mips.md, config/mn10300/mn10300.c,
13133         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
13134         config/rs6000/aix.h, config/rs6000/dfp.md,
13135         config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
13136         config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
13137         config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
13138         config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
13139         config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
13140         config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
13141         c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
13142         diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
13143         doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
13144         doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
13145         fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
13146         gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
13147         graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
13148         graphite-dependences.c, graphite-poly.c, graphite-poly.h,
13149         graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
13150         graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
13151         intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
13152         ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
13153         ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
13154         loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
13155         objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
13156         opt-functions.awk, opth-gen.awk, params.def, passes.c,
13157         postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
13158         rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
13159         store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
13160         tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
13161         tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
13162         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13163         tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
13164         tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
13165         tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
13166         tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13167         tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
13168         tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
13169         tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
13170         unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
13172 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13174         PR other/43620
13175         * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
13176         * aclocal.m4: Regenerate.
13178 2010-04-02  Richard Guenther  <rguenther@suse.de>
13180         PR tree-optimization/43629
13181         * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
13182         if we have seen a constant value.
13184 2010-04-02  Joseph Myers  <joseph@codesourcery.com>
13186         * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
13188 2010-04-02  Richard Earnshaw  <rearnsha@arm.com>
13190         PR target/43469
13191         * arm.c (legitimize_tls_address): Adjust call to
13192         gen_tls_load_dot_plus_four.
13193         (arm_note_pic_base): New function.
13194         (arm_cannot_copy_insn_p): Use it.
13195         * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
13196         constraint.
13198 2010-04-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13200         PR bootstrap/43531
13202         Revert:
13203         2009-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13205         * Makefile.in ($(out_object_file)): Depend on
13206         gt-$(basename $(notdir $(out_file))).h.
13208 2010-04-01  Ralf Corsépius  <ralf.corsepius@rtems.org>
13210         * config.gcc (lm32-*-rtems*): Add t-lm32.
13212 2010-04-01  Joel Sherrill  <joel.sherrill@oarcorp.com>
13214         * config.gcc: Add lm32-*-rtems*.
13215         * config/lm32/rtems.h: New file.
13217 2010-04-01  Dave Korn  <dave.korn.cygwin@gmail.com>
13219         PR target/42609
13220         * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
13222 2010-04-01  Jakub Jelinek  <jakub@redhat.com>
13224         * dwarf2out.c (output_compilation_unit_header): For
13225         -gdwarf-4 use version 4 instead of version 3.
13226         (output_line_info): For version 4 and above emit additional
13227         maximum ops per insn header field.
13228         (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
13230         * dwarf2out.c (is_c_family, is_java): Remove.
13231         (lower_bound_default): New function.
13232         (add_bound_info, gen_descr_array_type_die): Use it.
13234 2010-04-01  Dodji Seketeli  <dodji@redhat.com>
13236         PR debug/43325
13237         * dwarf2out.c (gen_variable_die): Allow debug info for variable
13238         re-declaration when it happens in a function.
13240 2010-04-01  Aldy Hernandez  <aldyh@redhat.com>
13242         * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
13243         (cgraph_remove_function_insertion_hook): Same.
13244         (cgraph_call_function_insertion_hooks): Same.
13246 2010-04-01  Richard Guenther  <rguenther@suse.de>
13248         PR middle-end/43614
13249         * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
13250         and TREE_THIS_VOLATILE.
13251         (copy_ref_info): Likewise.
13252         * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
13253         * tree.c (build6_stat): Ignore side-effects of all but arg5
13254         for TARGET_MEM_REF.  Set TREE_THIS_VOLATILE from arg5 of
13255         TARGET_MEM_REF.
13257 2010-04-01  Richard Guenther  <rguenther@suse.de>
13259         PR tree-optimization/43607
13260         * ipa-type-escape.c (check_call): Do not access non-existing
13261         arguments.
13263 2010-04-01  Richard Guenther  <rguenther@suse.de>
13265         PR middle-end/43602
13266         Revert
13267         2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
13268                     Jack Howarth  <howarth@bromo.med.uc.edu>
13270         * tree-profile.c (tree_init_ic_make_global_vars): Make static
13271         variables TLS.
13273 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13275         * doc/install.texi (Prerequisites): Document libelf usability on
13276         IRIX 5/6 and Solaris 2.
13277         (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
13278         Update GNU as, GNU ld requirements.
13279         (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
13280         Document Sun Studio compiler download.
13281         Update and simplify as, ld recommendations.
13282         (Specific, *-*-solaris2.7): Note obsoletion, removal.
13284 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13286         * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
13287         with_tune_32 to pentium4.
13289 2010-04-01  Uros Bizjak  <ubizjak@gmail.com>
13291         * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
13293 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13295         * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
13296         obsoletion, removal.
13297         Update IDO URL.
13298         Document GNU as requirement.
13299         Update configure requirements.
13300         (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
13301         Recomment IRIX 6.5.18+.
13302         Document IDF/IDL requirement.
13303         Document GNU as requirement.
13304         Document GNU ld bootstrap failure.
13305         Remove freeware.sgi.com reference.
13307 2010-04-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13309         * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
13310         UNIX V4.0, V5.0 obsoletion, removal.
13311         Remove --with-gc=simple reference.
13312         Update VM requirements during bootstrap.
13313         Remove -oldas bootstrap description.
13314         Update binutils reference.
13315         Remove comparison failure note.
13317 2010-03-31  Richard Guenther  <rguenther@suse.de>
13318             Zdenek Dvorak  <ook@ucw.cz>
13319             Sebastian Pop  <sebastian.pop@amd.com>
13321         PR middle-end/43464
13322         * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
13323         with multiple arguments.
13324         (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
13326 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
13328         * graphite-dependences.c (print_pddr): Call print_pdr with an
13329         extra argument.
13330         * graphite-poly.c (debug_pdr): Add an extra argument for the
13331         verbosity level.
13332         (print_pdr): Same.
13333         (print_pbb_domain): Same.
13334         (print_pbb): Same.
13335         (print_scop_context): Same.
13336         (print_scop): Same.
13337         (print_cloog): Same.
13338         (debug_pbb_domain): Same.
13339         (debug_pbb): Same.
13340         (print_pdrs): Same.
13341         (debug_pdrs): Same.
13342         (debug_scop_context): Same.
13343         (debug_scop): Same.
13344         (debug_cloog): Same.
13345         (print_scop_params): Same.
13346         (debug_scop_params): Same.
13347         (print_iteration_domain): Same.
13348         (print_iteration_domains): Same.
13349         (debug_iteration_domain): Same.
13350         (debug_iteration_domains): Same.
13351         (print_scattering_function): Same.
13352         (print_scattering_functions): Same.
13353         (debug_scattering_function): Same.
13354         (debug_scattering_functions): Same.
13355         * graphite-poly.h (debug_pdr): Update declaration.
13356         (print_pdr): Same.
13357         (print_pbb_domain): Same.
13358         (print_pbb): Same.
13359         (print_scop_context): Same.
13360         (print_scop): Same.
13361         (print_cloog): Same.
13362         (debug_pbb_domain): Same.
13363         (debug_pbb): Same.
13364         (print_pdrs): Same.
13365         (debug_pdrs): Same.
13366         (debug_scop_context): Same.
13367         (debug_scop): Same.
13368         (debug_cloog): Same.
13369         (print_scop_params): Same.
13370         (debug_scop_params): Same.
13371         (print_iteration_domain): Same.
13372         (print_iteration_domains): Same.
13373         (debug_iteration_domain): Same.
13374         (debug_iteration_domains): Same.
13375         (print_scattering_function): Same.
13376         (print_scattering_functions): Same.
13377         (debug_scattering_function): Same.
13378         (debug_scattering_functions): Same.
13380 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
13382         * graphite-poly.c (print_scattering_function_1): New.
13383         (print_scattering_function): Call it.
13384         (print_scop_params): Remove spaces at the end of lines.
13385         (print_cloog): New.
13386         (debug_cloog): New.
13387         * graphite-poly.h (print_cloog): Declared.
13388         (debug_cloog): Declared.
13390 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
13392         * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
13393         in loop->header.
13394         * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
13395         * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
13396         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
13397         to switch between adding the IV bump in loop->latch or in loop->header.
13399 2010-03-31  Sebastian Pop  <sebastian.pop@amd.com>
13401         * graphite-poly.c (print_scattering_function): Pretty print following
13402         the scoplib format.
13403         (print_pdr): Same.
13404         (print_pbb_domain): Same.
13405         (dump_gbb_cases): Same.
13406         (dump_gbb_conditions): Same.
13407         (print_pdrs): Same.
13408         (print_pbb): Same.
13409         (print_scop_params): Same.
13410         (print_scop_context): Same.
13411         (print_scop): Same.
13412         (print_pbb_body): New.
13413         (lst_indent_to): New.
13414         (print_lst): Start new lines with a #.
13415         * graphite-poly.h (pbb_bb): New.
13416         (pbb_index): Use pbb_bb.
13417         * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
13418         disjuncts.
13419         * tree-data-ref.c (dump_data_reference): Start new lines with a #.
13421 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
13423         * dwarf2out.c (size_of_die): For -gdwarf-4 use
13424         uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
13425         and 0 instead of 1 for dw_val_class_flag.
13426         (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
13427         dw_val_class_range_list, dw_val_class_loc_list,
13428         dw_val_class_lineptr and dw_val_class_macptr, use
13429         DW_FORM_flag_present for dw_val_class_flag and
13430         DW_FORM_exprloc for dw_val_class_loc.
13431         (output_die): For -gdwarf-4 print dw_val_class_loc
13432         size as uleb128 instead of 1 or 2 bytes and don't print
13433         anything for dw_val_class_flag.
13435         * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
13436         instead of cselib_lookup following by tweaking locs->setting_insn.
13438         PR bootstrap/43596
13439         * cselib.c (cselib_process_insn): Clear cselib_current_insn
13440         even before returning from label, setjmp call or volatile asm
13441         handling.
13443 2010-03-31  Richard Guenther  <rguenther@suse.de>
13445         PR middle-end/43600
13446         * cgraphunit.c (cgraph_output_in_order): Do not allocate
13447         temporary data on stack.
13449 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13451         * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
13452         (PUSHSECTION_ASM_OP): Remove.
13453         (POPSECTION_ASM_OP): Remove.
13454         (PUSHSECTION_FORMAT): Remove.
13455         * config/sol2.h (PUSHSECTION_FORMAT): Define.
13456         * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
13457         * config/sol2.c (solaris_output_init_fini): Use it.
13459 2010-03-31  Jie Zhang  <jie@codesourcery.com>
13461         PR 43574
13462         * opt-functions.awk (var_type_struct): Use signed char type
13463         for simple variables.
13465 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13467         * config/sol2.c: Include output.h.
13468         (solaris_assemble_visibility): New function.
13469         * config/t-sol2 (sol2.o): Add output.h dependency.
13470         * config/sol2-protos.h (solaris_assemble_visibility): Declare.
13471         * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
13472         Redefine.
13474 2010-03-31  Jakub Jelinek  <jakub@redhat.com>
13476         PR target/43580
13477         * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
13478         V2SImode or XFmode on PRE_DEC.
13480         PR debug/43557
13481         * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
13482         BLKmode.
13484 2010-03-31  Jie Zhang  <jie@codesourcery.com>
13486         PR 43562
13487         * reload.h (caller_save_initialized_p): Declare.
13488         * toplev.c (backend_init_target): Don't call
13489         init_caller_save but set caller_save_initialized_p to false.
13490         * caller-save.c (caller_save_initialized_p): Define.
13491         (init_caller_save): Check caller_save_initialized_p.
13492         * ira.c (ira): Call init_caller_save if flag_caller_saves.
13494 2010-03-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13496         PR target/39048
13497         * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
13498         and soft-fp/t-softfp to tmake_file.
13499         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
13500         (LIBGCC2_TF_CEXT): Define.
13501         (TF_SIZE): Define.
13503 2010-03-30  Alexandre Oliva  <aoliva@redhat.com>
13505         PR debug/42977
13506         * cselib.c (n_useless_values): Document handling of debug locs.
13507         (n_useless_debug_values, n_debug_values): New variables.
13508         (new_elt_loc_list): Don't add to debug values, keep count.
13509         (promote_debug_loc): New.
13510         (cselib_reset_table): Zero new variables.
13511         (entry_and_rtx_equal_p): Promote debug locs.
13512         (discard_useless_locs): Increment n_useless_debug_values for
13513         debug values.
13514         (remove_useless_values): Adjust n_useless_values and n_debug_values
13515         with n_useless_debug_values.
13516         (add_mem_for_addr): Promote debug locs.
13517         (cselib_lookup_mem): Likewise.
13518         (cselib_lookup_addr): Renamed to...
13519         (cselib_lookup_addr_1): ... this.  Promote debug locs.  Don't call...
13520         (cselib_log_lookup): ... this.  Turn into...
13521         (cselib_lookup_addr): ... new wrapper.
13522         (cselib_lookup_from_insn): New.
13523         (cselib_invalidate_regno): Increment n_useless_debug_values for
13524         debug values.
13525         (cselib_invalidate_mem): Likewise.
13526         (cselib_process_insn): Take n_deleted and n_debug_values into
13527         account to guard remove_useless_value call.
13528         (cselib_finish): Zero n_useless_debug_values.
13529         * cselib.h (cselib_lookup_from_insn): Declare.
13530         * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
13531         (sched_analyze_2): Likewise.
13533 2010-03-30  Jakub Jelinek  <jakub@redhat.com>
13535         * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
13536         functions.
13537         (adjust_mems): Replace narrowing SUBREG of expression containing
13538         just PLUS, MINUS, MULT and ASHIFT of registers and constants
13539         with operations in the narrower mode.
13541         PR debug/43593
13542         * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
13543         regs_invalidated_by_call instead all call_used_reg_set registers.
13545 2010-03-30  Sebastian Pop  <sebastian.pop@amd.com>
13547         PR middle-end/43430
13548         * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
13549         pointer comparisons with types_compatible_p.
13550         * tree-vect-stmts.c (vectorizable_call): Same.
13551         (vectorizable_condition): Same.
13553 2010-03-30  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13555         * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
13556         stack check if the mask would be zero.
13558 2010-03-30  Seongbae Park  <seongbae.park@gmail.com>
13559             Jack Howarth  <howarth@bromo.med.uc.edu>
13561         * tree-profile.c (tree_init_ic_make_global_vars): Make static
13562         variables TLS.
13564 2010-03-30  Joseph Myers  <joseph@codesourcery.com>
13566         PR other/25232
13567         * libgcc-std.ver (GCC_4.5.0): Define version.  Include __unordxf2
13568         and __unordtf2.
13569         * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
13570         Include ___unordxf2 and ___unordtf2.
13571         * config/i386/libgcc-glibc.ver: Do not define inheritance from
13572         GCC_4.4.0 here.
13574 2010-03-30  Tarik Graba  <tarik.graba@telecom-paristech.fr>
13576         * config/lm32/t-lm32: New file.
13577         * config.gcc: Use the above file when targetting lm32.
13579 2010-03-28  Duncan Sands  <baldrick@free.fr>
13581         * Makefile.in (PLUGIN_HEADERS): Add except.h.
13583 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
13585         PR middle-end/43431
13586         * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13587         Improve vectorization cost model diagnostic.
13589 2010-03-29  Sebastian Pop  <sebastian.pop@amd.com>
13591         PR middle-end/43436
13592         * tree-vect-data-refs.c (vect_analyze_data_refs): When
13593         compute_data_dependences_for_loop returns false, early exit
13594         and output an extra diagnostic for the failed data reference
13595         analysis.
13597 2010-03-29  Richard Guenther  <rguenther@suse.de>
13599         PR tree-optimization/43560
13600         * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
13601         (can_sm_ref_p): Treat stores to readonly locations as trapping.
13603 2010-03-29  Jie Zhang  <jie@codesourcery.com>
13605         PR 43564
13606         * toplev.c (process_options): Set optimization_default_node
13607         and optimization_current_node.
13608         * opts.c (decode_options): Don't set optimization_default_node
13609         and optimization_current_node.
13611 2010-03-29  Ralf Corsépius  <ralf.corsepius@rtems.org>
13613         * config/rtems.h: Abandon -qrtems_debug.
13615 2010-03-28  Jan Hubicka  <jh@suse.cz>
13617         PR tree-optimization/43505
13618         * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
13619         map should not be copied.
13621 2010-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13623         PR middle-end/41674
13624         * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
13625         cdtors, set DECL_PRESERVE_P.
13626         * ipa.c (cgraph_externally_visible_p): Return true if declaration
13627         should be preseved.
13629 2010-03-27  Uros Bizjak  <ubizjak@gmail.com>
13631         PR tree-optimization/43528
13632         * stor-layout.c (place_field): Check that constant fits into
13633         unsigned HWI when skipping calculation of MS bitfield layout.
13635 2010-03-27  Jan Hubicka  <jh@suse.cz>
13637         PR middle-end/43391
13638         * varasm.c (make_decl_rtl): Deal with COMMON flag to make
13639         notice_global_symbol work.
13641 2010-03-27  Jakub Jelinek  <jakub@redhat.com>
13643         * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
13644         instead of dwarf2out_decl.
13645         (struct var_loc_node): Remove section_label field.
13646         (dwarf2out_function_decl): New function.
13647         (dwarf2out_var_location): Don't set section_label field.
13648         (dwarf2out_begin_function): Don't empty decl_loc_table here.
13650 2010-03-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
13652         PR tree-optimization/43544
13653         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
13654         First argument for builtin vectorized function hook is now a
13655         tree to be able to distinguish between machine specific and
13656         standard builtins.
13657         * targhooks.c (default_builtin_vectorized_function): Ditto.
13658         * targhooks.h (default_builtin_vectorized_function): Ditto.
13659         * target.h (struct gcc_target): Ditto.
13660         * tree-vect-stmts.c (vectorizable_function): Ditto.
13661         * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
13662         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
13663         Ditto.
13665 2010-03-26  Joseph Myers  <joseph@codesourcery.com>
13667         PR c/43381
13668         * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
13669         nested binding iff it is a FUNCTION_DECL.
13670         (store_parm_decls_newstyle): Pass nested=true to bind for
13671         FUNCTION_DECLs amongst parameters.
13673 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
13675         * var-tracking.c (vt_expand_loc_callback): Don't run
13676         cselib_expand_value_rtx_cb in dummy mode if
13677         cselib_dummy_expand_value_rtx_cb returned false.
13679         * var-tracking.c (emit_note_insn_var_location): For one part
13680         notes with offset 0, don't add EXPR_LIST around the location.
13681         * dwarf2out.c (loc_descriptor, dw_loc_list_1,
13682         add_location_or_const_value_attribute): Adjust for that change.
13684         PR debug/43540
13685         * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
13686         into first operand and location into second.
13687         (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
13688         dw_cfi_oprnd_loc for DW_CFA_expression.
13689         (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
13690         (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
13691         assume first argument is regnum and second argument is location.
13693 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
13695         PR target/42113
13696         * config/alpha/alpha.md (*cmp_sadd_si): Change mode
13697         of scratch register to DImode.  Split to DImode comparison operator.
13698         Use SImode subreg of scratch register in the multiplication.
13699         (*cmp_sadd_sidi): Ditto.
13700         (*cmp_ssub_si): Ditto.
13701         (*cmp_ssub_sidi): Ditto.
13703 2010-03-26  Uros Bizjak  <ubizjak@gmail.com>
13705         PR target/43524
13706         * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
13707         Remove invalid assert and wrong comment.
13709 2010-03-26  Jakub Jelinek  <jakub@redhat.com>
13711         PR debug/43516
13712         * flags.h (final_insns_dump_p): New extern.
13713         * final.c (final_insns_dump_p): New variable.
13714         (rest_of_clean_state): Set it before -fdump-final-insns=
13715         dumping, clear afterwards.
13716         * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
13717         MEM_ALIAS_SET on MEMs.
13719 2010-03-26  David S. Miller  <davem@davemloft.net>
13721         * configure.ac: Fix sparc GOTDATA_OP bug check.
13722         * configure: Rebuild.
13724 2010-03-26  Alan Modra  <amodra@gmail.com>
13726         * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
13728 2010-03-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13730         * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
13731         TLS_SECTION_ASM_FLAG.
13733 2010-03-25  Jakub Jelinek  <jakub@redhat.com>
13735         PR bootstrap/43511
13736         * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
13737         Clear first_function_block_is_cold.
13739         PR c/43385
13740         * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
13741         argument if the argument is truth_value_p.
13743 2010-03-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13745         * config/rs6000/constraints.md: Update copyright year for my changes.
13747         PR target/43484
13748         * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
13749         used in reg+reg addressing, swap registers.
13751 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
13753         PR debug/43293
13754         * target.h (struct gcc_target): Add code_end hook.
13755         * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
13756         if not yet defined.
13757         (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
13758         * toplev.c (compile_file): Call targetm.asm_out.code_end
13759         hook before unwind info/debug info output.
13760         * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
13761         * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
13762         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
13763         * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
13764         (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
13765         * config/i386/i386.c (ix86_file_end): Renamed to...
13766         (ix86_code_end): ... this.  Make static.  Don't call
13767         file_end_indicate_exec_stack.  Emit unwind info using
13768         final_start_function/final_end_function.
13769         (darwin_x86_file_end): Remove.
13770         (TARGET_ASM_CODE_END): Define.
13771         * config/i386/i386.h (TARGET_ASM_FILE_END,
13772         NEED_INDICATE_EXEC_STACK): Don't define.
13773         * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
13774         (TARGET_ASM_FILE_END): Define to darwin_file_end.
13775         * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
13776         * doc/tm.texi (TARGET_ASM_CODE_END): Document.
13778         PR target/43498
13779         * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
13780         at the beginning and final_end_function at the end.
13781         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
13783 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13785         * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
13786         and Sun as TLS syntax.
13787         (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
13788         * configure: Regenerate.
13789         * config.in: Regenerate.
13790         * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
13791         (default_elf_asm_named_section): Use it.
13792         * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
13793         (i386_output_dwarf_dtprel): Likewise.
13794         (output_addr_const_extra): Likewise.
13795         (output_pic_addr_const): Lowercase @GOTTPOFF.
13796         (output_addr_const_extra): Likewise.
13797         (output_pic_addr_const): Lowercase @GOTNTPOFF.
13798         (output_addr_const_extra): Likewise.
13799         (output_pic_addr_const): Lowercase @INDNTPOFF.
13800         (output_addr_const_extra): Likewise.
13801         (output_pic_addr_const): Lowercase @NTPOFF.
13802         (output_addr_const_extra): Likewise.
13803         (output_pic_addr_const): Lowercase @TPOFF.
13804         (output_addr_const_extra): Likewise.
13805         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
13806         (*tls_global_dynamic_64): Likewise.
13807         (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
13808         (*tls_local_dynamic_base_64): Lowercase @TLSLD.
13810         * defaults.h (TLS_COMMON_ASM_OP): Provide default.
13811         (ASM_OUTPUT_TLS_COMMON): Use it.
13812         * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
13814         PR target/38118
13815         * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
13816         * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13817         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
13818         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
13819         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
13820         (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
13822 2010-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13824         * config/i386/i386.c (override_options): Don't accept
13825         -mtls-dialect=sun any longer.
13826         * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
13827         * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
13828         (*tls_local_dynamic_base_32_sun): Likewise.
13829         * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
13831 2010-03-24  Jakub Jelinek  <jakub@redhat.com>
13833         PR debug/43508
13834         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
13835         VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
13837         PR debug/43479
13838         * ira.c (adjust_cleared_regs): New function.
13839         (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
13841         PR debug/19192
13842         PR debug/43479
13843         * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
13844         from gimple_block.
13845         * expr.c (expand_expr_real): Restore previous
13846         curr_insn_source_location and curr_insn_block after
13847         expand_expr_real_1 call.
13848         (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
13849         instead of expand_expr_real_1.
13851 2010-03-23  Vladimir Makarov  <vmakarov@redhat.com>
13853         PR rtl-optimization/43413
13854         * ira-color.c (setup_allocno_available_regs_num): Count prohibited
13855         hard regs too.
13857 2010-03-22  James E. Wilson  <wilson@codesourcery.com>
13859         PR target/43348
13860         * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
13861         call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
13863 2010-03-22  H.J. Lu  <hongjiu.lu@intel.com>
13865         * config/i386/i386.c (ix86_target_string): Add -mfma.
13866         Fix a typo in comment.
13868 2010-03-22  Mike Stump  <mikestump@comcast.net>
13870         PR target/23071
13871         * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
13872         Don't overly align based upon packed packed fields.
13874 2010-03-22  Jason Merrill  <jason@redhat.com>
13876         * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
13877         Use () rather than [], and move before the element type.
13879 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13881         * doc/configfiles.texi (Configuration Files): Removed
13882         fixinc/Makefile*, intl/Makefile.*.
13883         * doc/makefile.texi: Fixed markup. Abstract from version
13884         control system used.
13885         (Makefile): Removed obsolete gcc/java/parse.y example.
13886         * doc/sourcebuild.texi: Likewise.
13887         (Top Level): Added config, gnattools, libdecnumber, libgcc,
13888         libgomp, libssp.  Removed fastjar.
13889         (Miscellaneous Docs): Clarify location.
13890         Added COPYING3, COPYING3.LIB.
13891         (Front End Directory): Moved Make-lang.in entry to new subsubsection.
13893 2010-03-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13895         PR target/38085
13896         * config/i386/i386.c (x86_function_profiler)
13897         [!NO_PROFILE_COUNTERS]: Fix typo.
13898         * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
13899         instead of callq.
13901 2010-03-22  Janis Johnson  <janis187@us.ibm.com>
13902             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13904         * doc/sourcebuild.texi (Test Directives): Split into six
13905         subsections, with most of the current text in new subsections
13906         Directives, Selectors, and Final Actions.
13907         (Directives): Split list of test directives into multiple
13908         subsubsections.
13909         (Selectors): Describe use and syntax of selectors.
13910         (Effective-Target Keywords): Describe all existing keywords.
13911         (Add Options): Describe features for dg-add-options.
13912         (Require Support): Describe variants of dg-require-support.
13913         (Final Actions): Describe commands to use in dg-final.
13915 2010-03-22  Michael Matz  <matz@suse.de>
13917         PR middle-end/43475
13918         * recog.c (validate_replace_rtx_group): Replace also in
13919         REG_EQUAL and REG_EQUIV notes.
13921 2010-03-22  Richard Guenther  <rguenther@suse.de>
13923         PR tree-optimization/43390
13924         * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
13925         sure vector extracts are type correct.
13927 2010-03-22  Richard Guenther  <rguenther@suse.de>
13929         PR middle-end/40106
13930         * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
13931         x * sqrt (x) even when optimizing for size if the target
13932         has native support for sqrt.
13934 2010-03-22  Jakub Jelinek  <jakub@redhat.com>
13936         * varasm.c (make_decl_rtl_for_debug): Also clear
13937         flag_mudflap for the duration of make_decl_rtl call.
13939         PR debug/43443
13940         * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
13941         locs from preserved VALUEs.
13943 2010-03-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13945         PR middle-end/42718
13946         * pa.md (movmemsi): Set align to one if zero.
13947         (movmemdi): Likewise.
13949 2010-03-21  Richard Earnshaw  <rearnsha@arm.com>
13951         PR target/42321
13952         * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
13953         with their corresponding prologue pushes.
13955 2010-03-20  Andrew Pinski  <pinskia@gmail.com>
13957         PR target/43156
13958         * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
13959         at the begining or end.
13960         (spu_expand_epilogue): Likewise.
13962 2010-03-20  Richard Guenther  <rguenther@suse.de>
13964         PR rtl-optimization/43438
13965         * combine.c (make_extraction): Properly zero-/sign-extend an
13966         extraction of the low part of a CONST_INT.  Also handle
13967         CONST_DOUBLE.
13969 2010-03-19  Mike Stump  <mikestump@comcast.net>
13971         * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
13972         * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
13973         (override_options): Use SUBTARGET32_DEFAULT_CPU.
13975 2010-03-19  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
13977         PR c/43211
13978         * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
13979         an error.
13981 2010-03-19  Bernd Schmidt  <bernds@codesourcery.com>
13983         PR rtl-optimization/42258
13984         * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
13985         use that may match DEF.
13987         PR target/40697
13988         * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
13989         the cost of loading the constant rather than assuming
13990         COSTS_N_INSNS (1).
13991         * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
13992         outer code is AND, do the same tests as the andsi3 expander and
13993         return COSTS_N_INSNS (1) if and is cheap.
13995         * optabs.c (avoid_expensive_constant): Fix formatting.
13997 2010-03-19  Michael Matz  <matz@suse.de>
13999         PR c++/43116
14000         * attribs.c (decl_attributes): When rebuilding a function pointer
14001         type use the same qualifiers as the original pointer type.
14003 2010-03-19  Martin Jambor  <mjambor@suse.cz>
14005         * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
14006         and is_gimple_ip_invariant_address.
14008 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14010         Revert
14011         2009-10-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14013         * config/arm/arm.c (arm_override_options): Turn off
14014         flag_dwarf2_cfi_asm for AAPCS variants.
14016 2010-03-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14018         PR target/43399
14019         * config/arm/arm.c (emit_multi_reg_push): Update comments.
14020         Use PRE_MODIFY instead of PRE_DEC.
14021         (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
14022         (vfp_emit_fstmd): Likewise.
14024 2010-03-19  Michael Matz  <matz@suse.de>
14026         PR target/43305
14027         * builtins.c (expand_builtin_interclass_mathfn,
14028         expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
14029         if that fails.
14031 2010-03-19  Richard Guenther  <rguenther@suse.de>
14033         PR tree-optimization/43415
14034         * tree-ssa-pre.c (phi_translate): Split out worker to ...
14035         (phi_translate_1): ... this.
14036         (phi_translate): Move all caching here.  Cache all NARY
14037         and REFERENCE translations.
14039 2010-03-19  David S. Miller  <davem@davemloft.net>
14041         With help from Eric Botcazou.
14042         * config/sparc/sparc.c: Include dwarf2out.h.
14043         (emit_pic_helper): Delete.
14044         (pic_helper_symbol_name): Delete.
14045         (pic_helper_emitted_p): Delete.
14046         (pic_helper_needed): New.
14047         (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
14048         (get_pc_thunk_name): New.
14049         (load_pic_register): Remove 'delay_pic_helper' arg.  Use
14050         get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
14051         Set pic_helper_needed to true.  Don't call emit_pic_helper.
14052         (sparc_expand_prologue): Update load_pic_register call.
14053         (sparc_output_mi_thunk): Likewise.
14054         (sparc_file_end): Emit a hidden comdat symbol for the PIC
14055         thunk if possible.  Output CFI information as needed.
14057 2010-03-18  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
14058             Jack Howarth  <howarth@bromo.med.uc.edu>
14060         PR target/36399
14061         * config/i386/i386.h: Fix ABI on darwin x86-32.
14063 2010-03-18  Aldy Hernandez  <aldyh@redhat.com>
14065         * tree.h: Declare make_decl_rtl_for_debug.
14066         * varasm.c (make_decl_rtl_for_debug): New.
14067         * dwarf2out.c (rtl_for_decl_location): Call it.
14068         * cfgexpand.c (expand_debug_expr): Call it.
14070 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
14072         PR bootstrap/43399
14073         * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
14074         mem_mode.
14076         PR bootstrap/43403
14077         * var-tracking.c (vt_init_cfa_base): Do nothing if
14078         cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
14080 2010-03-18  Alexandre Oliva  <aoliva@redhat.com>
14082         PR debug/42873
14083         * var-tracking.c (canonicalize_vars_star): New.
14084         (dataflow_post_merge_adjust): Use it.
14086 2010-03-18  Jakub Jelinek  <jakub@redhat.com>
14088         PR debug/43058
14089         * var-tracking.c (non_suitable_const): New function.
14090         (add_uses): For DEBUG_INSNs with constants, don't record any
14091         value, instead just the constant value itself.
14092         (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
14093         is not VAR_LOC_UNKNOWN_P, set var to the constant.
14094         (emit_notes_in_bb): Likewise.
14095         (emit_note_insn_var_location): For onepart variables if
14096         cur_loc is a VOIDmode constant, use DECL_MODE.
14098 2010-03-18  Martin Jambor  <mjambor@suse.cz>
14100         PR middle-end/42450
14101         * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
14102         * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
14103         all non-clones.  Moved call redirection...
14104         (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
14105         (cgraph_materialize_all_clones): Dispose of all
14106         combined_args_to_skip bitmaps.
14107         (verify_cgraph_node): Do not check for edges pointing to wrong
14108         nodes in inline clones.
14109         * tree-inline.c (copy_bb): Call
14110         cgraph_redirect_edge_call_stmt_to_callee.
14111         * ipa.c (cgraph_remove_unreachable_nodes): Call
14112         cgraph_node_remove_callees even when there are used clones.
14114 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
14116         * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
14118 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
14120         PR target/43383
14121         * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
14122         for 32bit.
14124 2010-03-18  Michael Matz  <matz@suse.de>
14126         PR middle-end/43419
14127         * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
14128         into sqrt(x) if we need to preserve signed zeros.
14130 2010-03-18  Steven Bosscher  <steven@gcc.gnu.org>
14131             Eric Botcazou  <ebotcazou@adacore.com>
14133         PR rtl-optimization/43360
14134         * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
14135         note if we don't know its invariant status.
14137 2010-03-18  Michael Matz  <matz@suse.de>
14139         PR tree-optimization/43402
14140         * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
14141         PHI chains of ssa names registered for update.
14143 2010-03-17  Peter Bergner  <bergner@vnet.ibm.com>
14145         PR target/42427
14146         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
14147         non-offsettable and pre_modify update addressing.
14148         * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
14149         and "2" alternatives "#".
14150         (*movdd_softfloat32): Make all alternatives "#";
14151         * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
14152         (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
14153         (*movdf_softfloat32): Make all alternatives "#";
14154         (movdi): Use the new DIFD mode iterator to create a common splitter
14155         for movdi, movdf and movdd patterns.
14157 2010-03-18  Shujing Zhao  <pearly.zhao@oracle.com>
14159         * common.opt (dumpdir): Remove redundant tab.
14161 2010-03-17  Martin Jambor  <mjambor@suse.cz>
14163         PR tree-optimization/43347
14164         * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
14165         original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
14167 2010-03-17  Bernd Schmidt  <bernd.schmidt@analog.com>
14169         PR rtl-optimization/42216
14170         * regrename.c (create_new_chain): New function, broken out from...
14171         (scan_rtx_reg): ... here.  Call it.  Handle the case where we are
14172         appending a use to an empty chain.
14173         (build_def_use): Remove previous changes that convert OP_INOUT to
14174         OP_OUT operands; instead detect the case where an OP_INOUT operand
14175         uses a previously untracked register and create an empty chain for it.
14177 2010-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14179         * doc/extend.texi (Function Attributes): Rewrite unfinished
14180         sentence in ms_abi documentation.
14182 2010-03-17  Alan Modra  <amodra@gmail.com>
14184         * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
14185         * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
14186         (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
14187         * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
14189 2010-03-16  Richard Henderson  <rth@redhat.com>
14191         PR middle-end/43365
14192         * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
14193         (lower_try_finally): Save and restore eh_seq around the expansion
14194         of the try-finally.
14196 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
14198         * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
14199         statements before splitting block.
14201 2010-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14203         * doc/sourcebuild.texi (Testsuites): Fix markup.
14204         Use pathnames relative to gcc/testsuite.
14205         (Test Directives): Move description of how timeout is determined.
14206         (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
14207         (C Tests): Correct gcc.misc-tests directory.
14208         Framework tests now live in gcc.test-framework.
14210 2010-03-16  Richard Guenther  <rguenther@suse.de>
14212         PR middle-end/43379
14213         * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
14214         operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
14216 2010-03-16  Aldy Hernandez  <aldyh@redhat.com>
14217             Alexandre Oliva  <aoliva@redhat.com>
14219         PR tree-optimization/42917
14220         * lambda-code.c (remove_iv): Skip debug statements.
14221         (lambda_loopnest_to_gcc_loopnest): Likewise.
14222         (not_interesting_stmt): Debug statements are not interesting.
14224 2010-03-16  Jakub Jelinek  <jakub@redhat.com>
14226         PR debug/43051
14227         PR debug/43092
14228         * cselib.c (cselib_preserve_constants,
14229         cfa_base_preserved_val): New static variables.
14230         (preserve_only_constants): New function.
14231         (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
14232         clear its REG_VALUES.  If cselib_preserve_constants, don't
14233         empty the whole hash table, but preserve there VALUEs with constants,
14234         cfa_base_preserved_val and cfa_base_preserved_val plus constant.
14235         (cselib_preserve_cfa_base_value): New function.
14236         (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
14237         (cselib_init): Change argument to int bitfield.  Set
14238         cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
14239         is in it.
14240         (cselib_finish): Clear cselib_preserve_constants and
14241         cfa_base_preserved_val.
14242         * cselib.h (enum cselib_record_what): New enum.
14243         (cselib_init): Change argument to int.
14244         (cselib_preserve_cfa_base_value): New prototype.
14245         * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
14246         * dse.c (dse_step1): Likewise.
14247         * cfgcleanup.c (thread_jump): Likewise.
14248         * sched-deps.c (sched_analyze): Likewise.
14249         * gcse.c (local_cprop_pass): Likewise.
14250         * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
14251         If FN is non-NULL, call the callback always and whenever it returns
14252         non-NULL just return that.  Only do rtx_equal_p if FN is NULL.
14253         * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
14254         * combine.c (propagate_for_debug_subst): Add old_rtx argument,
14255         compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
14256         * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
14257         * var-tracking.c: Include recog.h.
14258         (bb_stack_adjust_offset): Remove.
14259         (vt_stack_adjustments): Don't call it, instead just gather the
14260         adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
14261         (adjust_stack_reference): Remove.
14262         (compute_cfa_pointer): New function.
14263         (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
14264         (struct adjust_mem_data): New type.
14265         (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
14266         functions.
14267         (get_address_mode): New function.
14268         (replace_expr_with_values): Use it.
14269         (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
14270         Use get_address_mode.  For cfa_base_rtx return MO_CLOBBER.
14271         (adjust_sets): Remove.
14272         (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
14273         Use get_address_mode.
14274         (get_adjusted_src): Remove.
14275         (add_stores): Don't call it.  Never reuse expr SET.  Don't add extra
14276         MO_VAL_USE for cfa_base_rtx plus constant.  Use get_address_mode.
14277         (add_with_sets): Don't call adjust_sets.
14278         (fp_setter, vt_init_cfa_base): New functions.
14279         (vt_initialize): Change return type to bool.  Move most of pool etc.
14280         initialization to the beginning of the function from end.  Pass
14281         CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
14282         If !frame_pointer_needed, call vt_stack_adjustment before mos
14283         vector is filled, call vt_init_cfa_base if argp/framep has been
14284         eliminated to sp.  If frame_pointer_needed and argp/framep has
14285         been eliminated to hard frame pointer, set
14286         hard_frame_pointer_adjustment and call vt_init_cfa_base after
14287         encountering fp setter in the prologue.  For MO_ADJUST, call
14288         log_op_type before pusing the op into mos vector, not afterwards.
14289         Call adjust_insn before cselib_process_insn/add_with_sets,
14290         call cancel_changes (0) afterwards.
14291         (variable_tracking_main_1): Adjust for vt_initialize calling
14292         vt_stack_adjustments and returning whether it succeeded or not.
14294 2010-03-15  Aldy Hernandez  <aldyh@redhat.com>
14296         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
14297         debug statements.
14299 2010-03-15  Jakub Jelinek  <jakub@redhat.com>
14301         * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
14302         has been set.
14303         (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
14304         drap_reg has not been set.
14306 2010-03-15  Michael Matz  <matz@suse.de>
14308         PR middle-end/43300
14309         * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
14310         use it to expand block copies.
14311         (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
14312         insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
14313         (insert_value_copy_on_edge): Use store_expr for BLKmode values.
14315 2010-03-15  Richard Guenther  <rguenther@suse.de>
14317         PR tree-optimization/43367
14318         * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
14319         elimination check.
14321 2010-03-15  Richard Guenther  <rguenther@suse.de>
14323         PR tree-optimization/43317
14324         * ipa-struct-reorg.c (create_new_general_access): Update stmt.
14326 2010-03-15  Martin Jambor  <mjambor@suse.cz>
14328         PR tree-optimization/43141
14329         * tree-sra.c (create_abstract_origin): New function.
14330         (modify_function): Call create_abstract_origin.
14332 2010-03-15  Chris Demetriou  <cgd@google.com>
14334         * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
14335         wasn't copied.
14337 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14339         PR middle-end/43354
14340         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
14341         call insert_out_of_ssa_copy for default definitions.
14343 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14345         * graphite-clast-to-gimple.c (my_long_long): Defined.
14346         (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
14347         * graphite-sese-to-poly.c (my_long_long): Defined.
14348         (scop_ivs_can_be_represented): Use it.
14350 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14352         * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
14353         graphite-max-bbs-per-function, and loop-block-tile-size.
14354         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
14355         with "maximum".
14356         (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
14358 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14360         * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
14361         forward declaration.
14362         * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
14363         (add_upper_bounds_from_estimated_nit): New.
14364         (build_loop_iteration_domains): Use it.
14366 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14368         * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
14370 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14372         PR middle-end/43306
14373         * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
14374         should be an INTEGER_CST.  Also handle CASE_CONVERT.
14376 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14378         * graphite.c (graphite_initialize): To bound the number of bbs per
14379         function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
14380         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
14381         * doc/invoke.texi: Document it.
14383 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14385         * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
14386         * graphite-sese-to-poly.h (build_poly_scop): Same.
14388 2010-03-13  Sebastian Pop  <sebastian.pop@amd.com>
14390         * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
14391         the number of parameters in the scop.  Use as an upper bound
14392         PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
14393         * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
14394         * doc/invoke.texi: Document it.
14396 2010-03-13  Jerry Quinn  <jlquinn@optonline.net>
14398         * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
14399         * doc/c-tree.texi: Remove.
14400         * doc/generic.texi: Merge c-tree.texi here.
14401         * doc/gccint.texi (Trees): Remove menu entry.
14402         (c-tree.texi): Remove @include.
14403         * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
14404         * doc/languages.texi (Reading RTL): Ditto.
14406 2010-03-12  Steve Ellcey  <sje@cup.hp.com>
14408         PR target/42869
14409         * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
14411 2010-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
14413         PR middle-end/42431
14414         * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
14415         code added to work around reload clobbering CONST insns.
14417 2010-03-12  Jakub Jelinek  <jakub@redhat.com>
14419         * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
14420         (cselib_preserve_definitely, cselib_clear_preserve): Remove.
14421         (cselib_preserve_only_values): Remove retain argument, don't
14422         traverse hash table with cselib_{preserve_definitely,clear_preserve}.
14423         * cselib.h (cselib_preserve_only_values): Remove retain argument.
14424         * var-tracking.c (micro_operation): Move insn field before union.
14425         Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
14426         (struct variable_tracking_info_def): Remove n_mos field, change
14427         mos into a vector of micro_operations.
14428         (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
14429         (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
14430         compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
14431         changing into a vector.
14432         (add_with_sets): Likewise.  Ensure MO_VAL_USE uops from add_stores
14433         come before all other uops generated by add_stores.
14434         (vt_add_function_parameters): Adjust for cselib_preserve_only_values
14435         argument removal.
14436         (vt_initialize): Likewise.  Adjust for VTI (bb)->mos changing into
14437         a vector.  Run just one pass over the bbs instead of separate counting
14438         and computation phase.
14439         (vt_finalize): Free VTI (bb)->mos vector instead of array.
14441         PR debug/43329
14442         * tree-inline.c (remap_decls): Put old_var rather than origin_var
14443         into *nonlocalized_list vector.
14444         * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
14445         even if origin is non-NULL.
14446         (gen_variable_die): Likewise.
14447         (process_scope_var): Don't change origin.
14448         (gen_decl_die): Likewise.
14449         * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
14450         before adding new edges instead of after it, fix moving over
14451         debug stmts.
14453 2010-03-11  David S. Miller  <davem@davemloft.net>
14455         * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
14456         of four.
14457         * configure: Rebuild.
14459 2010-03-11  Martin Jambor  <mjambor@suse.cz>
14461         PR tree-optimization/43257
14462         * tree.c (assign_assembler_name_if_neeeded): New function.
14463         (free_lang_data_in_cgraph): Assembler name assignment moved to the
14464         above new function.
14465         * tree.h (assign_assembler_name_if_neeeded): Declare.
14466         * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
14467         the function if needed.
14469 2010-03-11  Chris Demetriou  <cgd@google.com>
14471         * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
14472         include/stdint-gcc.h, and include/stdint.h world-readable.
14474 2010-03-11  Richard Guenther  <rguenther@suse.de>
14476         PR tree-optimization/43255
14477         * tree-vrp.c (process_assert_insertions_for): Do not insert
14478         asserts for trivial conditions.
14480 2010-03-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14482         PR tree-optimization/43280
14483         * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
14484         generation.  Move calculation of size out of the if branch.
14485         (find_bswap): Modify compare number generation.
14487 2010-03-11  Richard Guenther  <rguenther@suse.de>
14489         PR lto/43200
14490         * lto-streamer-in.c (maybe_fixup_decls): Simplify.
14491         (input_gimple_stmt): Fixup handled component types during
14492         operand read.  Also fix up decls in ADDR_EXPRs.
14494 2010-03-10  Eric Botcazou  <ebotcazou@adacore.com>
14496         * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
14497         * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
14499 2010-03-10  Jan Hubicka  <jh@suse.cz>
14501         PR c/43288
14502         * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
14503         * varasm.c (get_variable_section): Don't do that here...
14504         (make_decl_rtl): ... and here.
14505         (do_assemble_alias): Produce decl RTL.
14506         (assemble_alias): Likewise.
14508 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
14510         PR debug/43290
14511         * reg-notes.def (REG_CFA_SET_VDRAP): New note.
14512         * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
14513         of fde->vdrap_reg.
14514         (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
14515         (based_loc_descr): Only express drap or vdrap regno based expressions
14516         using DW_OP_fbreg when not optimizing.
14517         * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
14518         make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
14519         REG_CFA_SET_VDRAP note.
14521 2010-03-10  Alexander Monakov  <amonakov@ispras.ru>
14523         PR tree-optimization/43236
14524         * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
14525         error in calculation of base address in reverse iteration case.
14526         (generate_builtin): Take number of latch executions if the statement
14527         is in the latch.
14529 2010-03-10  Andrey Belevantsev  <abel@ispras.ru>
14531         PR middle-end/42859
14532         * tree-eh.c: Include pointer-set.h.
14533         (lower_eh_dispatch): Filter out duplicate case labels and
14534         remove the unneeded edge when the label is unused.  Return
14535         true when some edges are removed.
14536         (execute_lower_eh_dispatch): When any lowering resulted in
14537         removing an edge, also delete unreachable blocks.
14539 2010-03-10  Jakub Jelinek  <jakub@redhat.com>
14541         PR bootstrap/43287
14542         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14543         UNSPEC_MACHOPIC_OFFSET.
14545 2010-03-09  Andreas Schwab  <schwab@linux-m68k.org>
14547         PR target/43294
14548         * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
14549         (m68k_delegitimize_address): New function.
14551 2010-03-09  Jakub Jelinek  <jakub@redhat.com>
14553         PR debug/43299
14554         * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
14556         PR debug/43299
14557         * var-tracking.c (adjust_sets): New function.
14558         (count_with_sets, add_with_sets): Use it.
14559         (get_adjusted_src): New inline function.
14560         (add_stores): Use it.
14562         PR debug/43304
14563         * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
14564         call cselib_dummy_expand_value_rtx_cb instead of
14565         cselib_expand_value_rtx_cb.
14567         PR debug/43293
14568         * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
14569         * config/i386/i386.c: Include debug.h and dwarf2out.h.
14570         (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
14571         and .cfi_endproc around the pic thunks.
14572         (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
14573         all queued unwind info register saves are saved before the call.
14574         For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
14575         considered as sp-=4 for unwind info and the pop as sp+=4 which
14576         also clobbers dest, but doesn't actually restore it.
14578         PR debug/43290
14579         * config/i386/i386.c (ix86_get_drap_rtx): Don't set
14580         RTX_FRAME_RELATED_P.
14582 2010-03-09  Jie Zhang  <jie@codesourcery.com>
14584         * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
14585         whitespaces in output template.
14587 2010-03-09  Jie Zhang  <jie@codesourcery.com>
14589         * ira-lives.c (check_and_make_def_use_conflict): Don't fall
14590         out array boundary.
14592 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
14594         * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
14595         builtins.exp in a separate job.
14597 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14599         * graphite-sese-to-poly.c (add_param_constraints): Use
14600         lower_bound_in_type and upper_bound_in_type.
14602 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14604         * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
14605         instead of unsigned_type_node.
14607 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14608             Reza Yazdani  <reza.yazdani@amd.com>
14610         PR middle-end/43065
14611         * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
14612         on pointer type parameters.
14614 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
14616         PR middle-end/42644
14617         PR middle-end/42130
14618         * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
14619         handle conversions from pointer to integers.
14620         (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
14621         induction variable, to be able to work with code generated by CLooG.
14622         * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
14623         (build_poly_scop): Bail out if we cannot codegen a loop.
14625 2010-03-08  Tobias Grosser  <grosser@fim.uni-passau.de>
14627         * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
14628         code generation with gloog_error.
14630 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14632         * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
14633         Call fold_convert on all the returned values.
14634         (expand_scalar_variables_expr): Pass to
14635         expand_scalar_variables_ssa_name the type of the resulting expression.
14637 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14639         * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
14640         ppl_min_for_le_pointset.
14641         Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
14642         * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
14644 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14646         * graphite-dependences.c (map_into_dep_poly): Removed.
14647         (dependence_polyhedron_1): Use combine_context_id_scat.
14649 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14651         * graphite-poly.h (struct poly_scattering): Add layout documentation.
14652         (struct poly_bb): Same.
14653         (combine_context_id_scat): New.
14655 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14657         PR middle-end/42326
14658         * sese.c (name_defined_in_loop_p): Return false for default
14659         definitions.
14661 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14663         * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
14664         and clean up the logic.
14666 2010-03-08  Sebastian Pop  <sebastian.pop@amd.com>
14668         * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
14669         early return.
14671 2010-03-08  Jakub Jelinek  <jakub@redhat.com>
14673         * var-tracking.c (remove_cselib_value_chains): Define only for
14674         ENABLE_CHECKING.
14675         (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
14676         delete_slot_part, emit_notes_for_differences_1): Don't call
14677         remove_cselib_value_chains here.
14678         (set_slot_part, emit_notes_for_differences_2): Don't call
14679         add_cselib_value_chains here.
14680         (preserved_values): New vector.
14681         (preserve_value): New function.
14682         (add_uses, add_stores, vt_add_function_parameters): Use it
14683         instead of cselib_preserve_value.
14684         (changed_values_stack): New vector.
14685         (check_changed_vars_0): New function.
14686         (check_changed_vars_1, check_changed_vars_2): Use it.
14687         (emit_notes_for_changes): Call set_dv_changed (*, false) on all
14688         changed_values_stack VALUEs.
14689         (vt_emit_notes): For all preserved_values call
14690         add_cselib_value_chains.  If ENABLE_CHECKING call
14691         remove_cselib_value_chains before verifying value_chains is empty.
14692         Initialize and free changed_values_stack.
14693         (vt_initialize): Initialize preserved_values.
14694         (vt_finalize): Free preserved_values.
14696 2010-03-08  Richard Guenther  <rguenther@suse.de>
14698         PR tree-optimization/43269
14699         * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
14700         region detection.
14702 2010-03-08  Martin Jambor  <mjambor@suse.cz>
14704         * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
14705         (ipa_is_param_called): Removed.
14706         * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
14707         (ipa_print_node_params): Do not print the called flag.
14708         (ipa_write_node_info): Do not stream the called flag.
14709         (ipa_read_node_info): Likewise.
14711 2010-03-07  Jakub Jelinek  <jakub@redhat.com>
14713         PR debug/43176
14714         * Makefile.in (var-tracking.o): Depend on pointer-set.h.
14715         * cselib.c (struct expand_value_data): Add dummy field.
14716         (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
14717         dummy to false.
14718         (cselib_dummy_expand_value_rtx_cb): New function.
14719         (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
14720         any rtl.
14721         * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
14722         * var-tracking.c: Include pointer-set.h.
14723         (variable): Change n_var_parts to char from int.  Add
14724         cur_loc_changed and in_changed_variables fields.
14725         (variable_canonicalize): Remove.
14726         (shared_var_p): New inline function.
14727         (unshare_variable): Maintain cur_loc_changed and
14728         in_changed_variables fields.  If var was in changed_variables,
14729         replace it there with new_var.  Just copy cur_loc instead of
14730         resetting it to something else.
14731         (variable_union): Don't recompute cur_loc.  Use shared_var_p.
14732         (dataflow_set_union): Don't call variable_canonicalize.
14733         (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
14734         of their DEBUG_EXPR_TREE_DECLs.
14735         (canonicalize_loc_order_check): Verify that cur_loc is NULL
14736         and in_changed_variables and cur_loc_changed is false.
14737         (variable_merge_over_cur): Clear cur_loc, in_changed_variables
14738         and cur_loc_changed.  Don't update cur_loc here.
14739         (variable_merge_over_src): Don't call variable_canonicalize.
14740         (dataflow_set_preserve_mem_locs): Use shared_var_p.  When
14741         removing loc that is equal to cur_loc, clear cur_loc,
14742         set cur_loc_changed and ensure variable_was_changed is called.
14743         (dataflow_set_remove_mem_locs): Use shared_var_p.  Only
14744         compare pointers in cur_loc check, if it is equal to loc,
14745         clear cur_loc and set cur_loc_changed.  Don't recompute cur_loc here.
14746         (variable_different_p): Remove compare_current_location argument,
14747         don't compare cur_loc.
14748         (dataflow_set_different_1): Adjust variable_different_p caller.
14749         (variable_was_changed): If dv had some var in changed_variables
14750         already, reset in_changed_variables flag for it and propagate
14751         cur_loc_changed over to the new variable.  On empty var
14752         always set cur_loc_changed.  Set in_changed_variables on whatever
14753         var is added to changed_variables.
14754         (set_slot_part): Clear cur_loc_changed and in_changed_variables.
14755         Use shared_var_p.  When removing loc that is equal to cur_loc,
14756         clear cur_loc and set cur_loc_changed.  If cur_loc is NULL at the
14757         end, don't set it to something else, just call variable_was_changed.
14758         (delete_slot_part): Use shared_var_p.  When cur_loc equals to
14759         loc being removed, clear cur_loc and set cur_loc_changed.
14760         Set cur_loc_changed if all locations have been removed.
14761         (struct expand_loc_callback_data): New type.
14762         (vt_expand_loc_callback): Add dummy mode in which no rtxes are
14763         allocated.  Always create SUBREGs if simplify_subreg failed.
14764         Prefer to use cur_loc, when that fails and still in
14765         changed_variables (and seen first time) recompute it.  Set
14766         cur_loc_changed of variables which had to change cur_loc and
14767         compute elcd->cur_loc_changed if any of the subexpressions used
14768         had to change cur_loc.
14769         (vt_expand_loc): Adjust to pass arguments in
14770         expand_loc_callback_data structure.
14771         (vt_expand_loc_dummy): New function.
14772         (emitted_notes): New variable.
14773         (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
14774         that weren't used for any other decl in current
14775         emit_notes_for_changes call call vt_expand_loc_dummy to update
14776         cur_loc.  For -fno-var-tracking-assignments, set cur_loc to
14777         first loc_chain location if NULL before.  Always use just
14778         cur_loc instead of first loc_chain location.  When cur_loc_changed
14779         is false, when not --enable-checking=rtl just don't emit any note.
14780         When rtl checking, compute the note and assert it is the same
14781         as previous note.  Clear cur_loc_changed and in_changed_variables
14782         at the end before removing from changed_variables.
14783         (check_changed_vars_3): New function.
14784         (emit_notes_for_changes): Traverse changed_vars to call
14785         check_changed_vars_3 on each changed var.
14786         (emit_notes_for_differences_1): Clear cur_loc_changed and
14787         in_changed_variables.  Recompute cur_loc of new_var.
14788         (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
14789         (vt_emit_notes): Initialize and destroy emitted_notes.
14791 2010-03-07  Bernd Schmidt  <bernd.schmidt@analog.com>
14793         PR rtl-optimization/42220
14794         * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
14795         Use verify_reg_tracked to determine if we should use OP_OUT rather
14796         than OP_INOUT.
14797         (build_def_use): If we see an in-out operand for a register that we
14798         know nothing about, treat is an output if possible, fail the block if
14799         not.
14801 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
14803         PR debug/42897
14804         * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
14805         permanently.
14807 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
14809         PR debug/42897
14810         * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
14811         uses of relevant DEFs that are dead outside the loop too.
14813 2010-03-06  Alexandre Oliva  <aoliva@redhat.com>
14815         * var-tracking.c (dataflow_set_merge): Swap src and src2.
14816         Reverted:
14817         2010-01-13  Jakub Jelinek  <jakub@redhat.com>
14818         PR debug/41371
14819         * var-tracking.c (values_to_unmark): New variable.
14820         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
14821         values_to_unmark vector.  Moved body to...
14822         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
14823         instead queue it into values_to_unmark vector.
14824         (vt_find_locations): Free values_to_unmark vector.
14826 2010-03-05  Eric Botcazou  <ebotcazou@adacore.com>
14828         * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
14829         (site.exp): Export them when plugins are enabled.
14831 2010-03-05  Sebastian Pop  <sebastian.pop@amd.com>
14833         PR middle-end/42326
14834         * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
14835         that contain scevs.
14836         (chrec_fold_multiply): Same.
14838 2010-03-04  Andrew Pinski  <andrew_pinski@caviumnetworks.com>
14840         PR c/43248
14841         * c-decl.c (build_compound_literal): Return early if init is
14842         an error_mark_node.
14844 2010-03-04  Martin Jambor  <mjambor@suse.cz>
14846         PR tree-optimization/43164
14847         PR tree-optimization/43191
14848         * tree-sra.c (type_consists_of_records_p): Reject records with
14849         zero-size bit-fields at the end.
14851 2010-03-04  Mike Stump  <mikestump@comcast.net>
14853         * Makefile.in (TAGS): Remove *.y.
14855 2010-03-04  Richard Guenther  <rguenther@suse.de>
14857         PR tree-optimization/40761
14858         * tree-ssa-pre.c (compute_antic): Walk reverse postorder
14859         in reverse order.
14860         (my_rev_post_order_compute): New function.
14861         (init_pre): Call it.
14863 2010-03-04  Changpeng Fang  <changpeng.fang@amd.com>
14865         PR middle-end/43209
14866         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
14867         decrease the cost of an IV candidate when the cost is infinite.
14869 2010-03-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14871         * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
14872         Use '3DNow!' for the extension of that name, ensure normal space
14873         after the string.
14874         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
14876 2010-03-03  Jeff Law  <law@redhat.com>
14878         * PR middle-end/32693
14879         * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
14880         than gen_rtx_SUBREG.
14881         (extract_bit_field_1): Likewise.
14883 2010-03-03  Janis Johnson  <janis187@us.ibm.com>
14885         * doc/sourcebuild.texi (Test directives): Document that arguments
14886         include-opts and exclude-opts are now optional for dg-skip-if,
14887         dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
14889 2010-03-03  Jason Merrill  <jason@redhat.com>
14891         PR c++/12909
14892         * cgraph.h (varpool_node): Add extra_name field.
14893         * varpool.c (varpool_extra_name_alias): New.
14894         (varpool_assemble_decl): Emit extra name aliases.
14895         (varpool_mark_needed_node): Look past an extra name alias.
14896         * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
14897         * lto-streamer-in.c (lto_input_tree): Read it.
14898         * lto-streamer-out.c (output_unreferenced_globals): Write it.
14900 2010-03-03  Eric Botcazou  <ebotcazou@adacore.com>
14902         * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
14903         (sparc*-*-solaris2*): ...this.
14905 2010-03-03  Jakub Jelinek  <jakub@redhat.com>
14907         PR debug/43229
14908         * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
14909         WIDEN_MULT_EXPR and WIDEN_SUM_EXPR.  Return NULL without
14910         ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
14911         FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
14913         PR debug/43237
14914         * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
14915         fallthrough to default handling, just with want_address 0 instead of 2.
14916         For single element lists, add_AT_loc directly, otherwise create an
14917         artificial variable DIE and stick location list to it.
14919         PR debug/43177
14920         * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
14921         (VAL_EXPR_HAS_REVERSE): Define.
14922         (reverse_op): New function.
14923         (add_stores): For reversible operations add an extra MO_VAL_USE.
14925 2010-03-02  Jason Merrill  <jason@redhat.com>
14927         * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
14929 2010-03-02  Eric Botcazou  <ebotcazou@adacore.com>
14931         * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
14932         (sparc64-*-linux*): Likewise.
14933         (sparc64-*-solaris2*): Include assembler files before linker ones.
14934         (sparc-*-solaris2*): Simplify and reorder to match previous case.
14935         * config/sparc/gas.h: Delete.
14936         * config/sparc/sol2-64.h: Add copyright notice.
14937         * config/sparc/sol2-gas-bi.h: Likewise.
14938         * config/sparc/sol2-gld.h: Likewise.
14939         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
14940         * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
14941         * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
14942         * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
14943         (sparc_elf_asm_named_section): Rename into...
14944         (sparc_solaris_elf_asm_named_section): ...this.  Always define.
14946 2010-03-02  Uros Bizjak  <ubizjak@gmail.com>
14948         * config/alpha/alpha.c (override_options): Fix -mtune error message.
14950 2010-03-02  Jeff Law  <law@redhat.com>
14952         PR middle-end/42431
14953         * reload1.c (rtx_p, substitute_stack): Declare.
14954         (substitute): Record addresses of changed rtxs.
14955         (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
14956         Restore the original rtx when complete.
14957         (reload): Free subsitute_stack when complete.
14959 2010-03-02  Janis Johnson  <janis187@us.ibm.com>
14961         * doc/gccint.texi (menu): Add Testsuites as a chapter.
14962         * doc/sourcebuild.texi (Testsuites): Move up a level to be a
14963         new chapter.
14964         (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
14965         LTO Testing, gcov Testing, profopt Testing, compat Testing,
14966         Torture Tests): Change from subsection to section.
14968 2010-03-02  Jakub Jelinek  <jakub@redhat.com>
14969             Steven Bosscher  <steven@gcc.gnu.org>
14971         * var-tracking.c (vt_initialize): Scan insns in ebb chunks
14972         instead of bb.
14974 2010-03-02  Reza Yazdani  <reza.yazdani@amd.com>
14976         PR middle-end/42640
14977         * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
14978         the assignment from the new induction variable to the assignment
14979         of the value from the original loop PHI function.
14981 2010-03-01  Janis Johnson  <janis187@us.ibm.com>
14982             Daniel Jacobowitz  <dan@codesourcery.com>
14984         * doc/sourcebuild.texi (Test directives): Clarify options to
14985         dg-skip-if.
14987 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14989         * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
14990         Disable cfi directives unless GCC and gas agree on using read-only
14991         .eh_frame sections for 64-bit.
14992         * configure: Regenerate.
14994 2010-03-01  Richard Guenther  <rguenther@suse.de>
14996         PR tree-optimization/43220
14997         * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
14998         BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
15000 2010-03-01  Richard Guenther  <rguenther@suse.de>
15001             Martin Jambor  <mjambor@suse.cz>
15003         PR middle-end/41250
15004         * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
15005         gimplified parameters.
15007 2010-03-01  Christian Bruel  <christian.bruel@st.com>
15009         * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
15011 2010-03-01  H.J. Lu  <hongjiu.lu@intel.com>
15013         * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
15015 2010-03-01  Richard Guenther  <rguenther@suse.de>
15017         PR middle-end/43213
15018         * expr.c (expand_assignment): Use the alias-oracle to tell
15019         if the rhs aliases the result decl.
15021 2010-03-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15023         PR pch/14940
15024         * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
15025         to sol_gt_pch_get_address.
15026         (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
15027         64-bit, SPARC and x86.
15028         (sol_gt_pch_get_address): New function.
15030 2010-03-01  Marco Poletti  <poletti.marco@gmail.com>
15032         * toplev.h (inform_n, error_n): Declare.
15033         * diagnostic.c (inform_n, error_n): New function.
15035 2010-03-01  Jakub Jelinek  <jakub@redhat.com>
15037         * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
15038         has no rtl yet when processing local_decls, queue it and recheck
15039         if deferred stack allocation hasn't assigned it rtl.
15041 2010-02-28  Kaz Kojima  <kkojima@gcc.gnu.org>
15043         * config/sh/sh.c (unspec_bbr_uid): New.
15044         (gen_block_redirect): Use it instead of INSN_UID.
15045         (gen_far_branch): Likewise.
15047 2010-02-28  H.J. Lu  <hongjiu.lu@intel.com>
15049         * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
15050         it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
15052 2010-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15054         * doc/invoke.texi (Warning Options, RX Options): Fix typos.
15055         (Warning Options): -Wno-conversion-null is valid for
15056         Objective-C++ as well.
15057         * doc/tm.texi (Named Address Spaces): Likewise.
15058         * doc/plugins.texi (Plugins): Replace TABs with spaces.
15059         * doc/tree-ssa.texi (Tree SSA): Likewise.
15061 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15063         PR bootstrap/43202
15064         * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
15065         by default.  Don't set the default arch for
15066         i[34567]86-*-darwin*|x86_64-*-darwin*.
15068 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15070         PR bootstrap/43202
15071         * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
15072         default.  Set the default 32bit/64bit archs with $with_arch
15073         instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
15075 2010-02-27  Richard Guenther  <rguenther@suse.de>
15077         PR tree-optimization/43186
15078         * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
15079         * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
15080         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
15081         unroller iterations.
15083 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
15085         * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
15086         required and i[34567]86-*-* targets don't support 64bit ISA.
15088 2010-02-26  Eric Botcazou  <ebotcazou@adacore.com>
15090         PR ada/43096
15091         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
15092         the same alias set.
15094 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
15096         * config.gcc: Set the default arch at least to Prescott for
15097         i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
15098         if SSE math is enabled.
15100 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15102         * diagnostic.c (diagnostic_initialize): Update.
15103         (diagnostic_report_diagnostic): Test inhibit_notes_p for
15104         informative notes.
15105         * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
15106         (diagnostic_inhibit_notes): New.
15107         * toplev.c (process_options): inhibit notes with -fcompare-debug.
15109 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15111         PR c/20631
15112         * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
15113         * doc/standards.texi: Likewise.
15114         * doc/extend.texi: Likewise.
15115         * doc/trouble.texi: Likewise.
15116         * doc/cppopts.texi: Likewise.
15117         * doc/install.texi: Likewise.
15118         * c.opt (std=c90,std=gnu90): New options.
15119         * c-opts.c (c_common_handle_option): Handle them.
15121 2010-02-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15123         PR c/24577
15124         * c-decl.c (undeclared_variable): Use an informative note.
15126 2010-02-26  Richard Guenther  <rguenther@suse.de>
15128         PR tree-optimization/43186
15129         * gimple.h (gimple_fold): Remove.
15130         * gimple.c (gimple_fold): Remove.  Inline into single user ...
15131         * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
15132         Try harder for conditions.
15134 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
15136         PR debug/43190
15137         * function.c (used_types_insert): Don't skip through named pointer
15138         types.  Don't use TYPE_MAIN_VARIANT if the original type has a name
15139         and it is different from the main variant's type.
15141 2010-02-26  Nick Clifton  <nickc@redhat.com>
15143         * config/rx/rx.md (sminsi3): Remove bogus alternative.
15145 2010-02-26  H.J. Lu  <hongjiu.lu@intel.com>
15147         * config.gcc: Support --with-fpmath=sse for x86.
15149         * config/i386/ssemath.h: New.
15151         * doc/install.texi (--with-fpmath=sse): Documented.
15153 2010-02-26  Richard Guenther  <rguenther@suse.de>
15155         PR tree-optimization/43188
15156         * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
15157         vector types of over-aligned element type.
15159 2010-02-26  Uros Bizjak  <ubizjak@gmail.com>
15161         PR target/43175
15162         * config/i386/i386.c (expand_vec_perm_blend): Use correct
15163         operands in V8HImode subregs.  Fix operand order in VEC_MERGE rtx.
15165 2010-02-26  Jan Kratochvil  <jan.kratochvil@redhat.com>
15167         * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
15169 2010-02-26  Jakub Jelinek  <jakub@redhat.com>
15171         * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
15172         * var-tracking.c: Include diagnostic.h.
15173         (debug_dv): New function.
15174         (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
15176         PR debug/43160
15177         * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
15178         (add_value_chain, add_value_chains, remove_value_chain,
15179         remove_value_chains): Handle DEBUG_EXPRs.
15180         (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
15182         PR debug/43161
15183         * regcprop.c (struct queued_debug_insn_change): New type.
15184         (struct value_data_entry): Add debug_insn_changes field.
15185         (struct value_data): Add n_debug_insn_changes field.
15186         (debug_insn_changes_pool): New variable.
15187         (free_debug_insn_changes, apply_debug_insn_changes,
15188         cprop_find_used_regs_1, cprop_find_used_regs): New functions.
15189         (kill_value_one_regno): Call free_debug_insn_changes if needed.
15190         (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
15191         fields.
15192         (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
15193         changes for them.
15194         (copyprop_hardreg_forward_1): Don't call apply_change_group for
15195         DEBUG_INSNs.  For a real insn, if there are queued DEBUG_INSN
15196         changes, call cprop_find_used_regs via note_stores.
15197         (copyprop_hardreg_forward): When copying vd from predecessor
15198         which has any queued DEBUG_INSN changes, make sure the pointers are
15199         cleared.  At the end call df_analyze and then if there are any
15200         DEBUG_INSN changes queued at the end of some basic block for still
15201         live registers, apply them.
15202         (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
15204 2010-02-25  Uros Bizjak  <ubizjak@gmail.com>
15206         * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
15207         (arm*-*-*): Ditto.
15209 2010-02-25  H.J. Lu  <hongjiu.lu@intel.com>
15211         * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
15212         targets.  Set the default with_cpu/with_arch from arch/cpu.
15213         Allow x86-64 and native for with_cpu/with_arch.
15215 2010-02-25  Nicolas Benoit  <nbenoit@tuxfamily.org>
15217         * ebitmap.c: Change calls to verify_popcount with calls to
15218         sbitmap_verify_popcount.
15219         (ebitmap_clear_bit): Fixed map->cacheindex test and
15220         map>cache update when bit clearing results in an empty
15221         element.
15223 2010-02-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
15225         PR target/43154
15226         * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
15227         (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
15228         and support both V2DF and V2DI modes.
15229         (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
15230         support both V2DF and V2DI modes.
15231         (general): Delete trailing whitespace from a few patterns.
15233         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15234         V2DF/V2DI interleave high/low builtins.
15236         * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
15237         new VSX builtins.
15239         * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
15240         interleave high/low functions.
15242 2010-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
15244         * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
15245         #pragma extern_prefix.
15247 2010-02-25  Jakub Jelinek  <jakub@redhat.com>
15249         PR debug/43166
15250         * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
15251         BLKmode, assert op0 is a MEM and just adjust its mode.
15253         PR debug/43165
15254         * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
15255         if bitpos isn't multiple of mode's bitsize.
15257 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15259         * c.opt (-ftemplate-depth=): New.
15260         (-ftemplate-depth-): Deprecate.
15261         * optc-gen.awk: Handle -ftemplate-depth=.
15262         * opth-gen.awk: Likewise.
15263         * c-opts.c (c_common_handle_option): Likewise.
15264         * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
15266 2010-02-24  Jason Merrill  <jason@redhat.com>
15268         * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
15270 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15272         * cfg.c (alloc_aux_for_block): Remove inline.
15273         (alloc_aux_for_edge): Likewise.
15275 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15277         * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
15279 2010-02-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15281         * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
15282         * config/i386/sol2-gas.h: New file.
15283         * config.gcc (i[34567]86-*-solaris2*): Use it.
15285 2010-02-24  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15287         PR c/43128
15288         * c-typeck.c (ep_convert_and_check): New.
15289         (build_conditional_expr): Use it.
15290         (build_binary_op): Likewise.
15292 2010-02-24  Jakub Jelinek  <jakub@redhat.com>
15294         * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
15296         PR debug/43150
15297         * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
15298         bounds even for -O+.
15299         * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
15300         expr needs to have DECL_NAME set.
15302 2010-02-24  Nick Clifton  <nickc@redhat.com>
15304         * config/mep/mep.c: Include gimple.h.
15305         (mep_function_uses_sp): Delete unused function.
15306         (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
15307         parameters.  Use unsigned integers to count args.  Return a
15308         NULL_RTX instead of an error_mark_node.  Toidy up formatting.
15310 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
15312         PR target/43107
15313         * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
15314         greater or equal to nelt instead of 2 * nelt.
15315         (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
15316         with nelt - 1.
15318 2010-02-23  Jason Merrill  <jason@redhat.com>
15320         PR debug/42800
15321         * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
15322         in cfun->local_decls even if they have register types.
15324         PR c++/42837
15325         * stor-layout.c (place_field): Don't warn about unnecessary
15326         DECL_PACKED if the type is packed.
15328 2010-02-23  Jakub Jelinek  <jakub@redhat.com>
15330         PR target/43139
15331         * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
15332         GOTOFF relocs, even when the base reg isn't pic pointer.
15334 2010-02-23  Michael Matz  <matz@suse.de>
15336         PR debug/43077
15337         * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
15338         (expand_gimple_basic_block): Generate and use debug temps if there
15339         are debug uses left after the last real use of TERed ssa names.
15340         Unlink debug immediate uses when they are expanded.
15342 2010-02-23  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15344         PR 43123
15345         * config/i386/i386.c (override_options): Reorganise to provide
15346         better error messages.
15348 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15350         PR middle-end/43083
15351         * graphite-scop-detection.c (create_single_exit_edge): Move
15352         the call to find_single_exit_edge to....
15353         (create_sese_edges): ...here.  Don't handle multiple edges
15354         exiting the function.
15355         (build_graphite_scops): Don't handle multiple edges
15356         exiting the function.
15358 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15360         PR middle-end/43097
15361         * sese.c (get_rename): Assert that old_name is an SSA_NAME.
15362         (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
15364 2010-02-22  Sebastian Pop  <sebastian.pop@amd.com>
15366         PR middle-end/43026
15367         * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
15369 2010-02-22  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15371         PR c++/43126
15372         * c-typeck.c (convert_arguments): Print declaration location.
15373         * c-common.c (validate_nargs): Rename as
15374         builtin_function_validate_nargs.
15375         (check_builtin_function_arguments): Update.
15377 2010-02-22  Richard Guenther  <rguenther@suse.de>
15379         PR lto/43045
15380         * tree-inline.c (declare_return_variable): Use the type of
15381         the call stmt lhs if available.
15383 2010-02-22  Duncan Sands  <baldrick@free.fr>
15385         * passes.c (register_pass): Always consider all pass lists when
15386         ref_pass_instance_number is zero.
15388 2010-02-22  Richard Guenther  <rguenther@suse.de>
15390         PR tree-optimization/42749
15391         * tree-tailcall.c (adjust_return_value_with_ops): Drop update
15392         parameter.  Do arithmetic in the original type.
15393         (update_accumulator_with_ops): Likewise.
15394         (adjust_accumulator_values): Adjust.
15396 2010-02-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15398         * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
15399         (QI to BLKmode splitter): New splitter.
15401 2010-02-22  H.J. Lu  <hongjiu.lu@intel.com>
15403         * config/i386/i386.c (initial_ix86_tune_features): Turn on
15404         X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
15406 2010-02-22  Richard Guenther  <rguenther@suse.de>
15408         * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
15410 2010-02-22  Hans-Peter Nilsson  <hp@bitrange.com>
15412         Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
15413         * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
15414         ($(T)crti.o, $(T)crtn.o): Remove rules.
15416 2010-02-21  Tobias Burnus  <burnus@net-b.de>
15418         PR fortran/35259
15419         * doc/invoke.texi (-fassociative-math): Document that this
15420         option is automatically enabled for Fortran.
15422 2010-02-20  David S. Miller  <davem@davemloft.net>
15424         * configure.ac: Test if linker and assembler properly support
15425         GOTDATA_OP relocations.
15426         * configure: Rebuild.
15427         * config.in: Likewise.
15428         * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
15429         (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
15430         (movsi_high_pic): Likewise.
15431         (movdi_lo_sum_pic): Likewise.
15432         (movdi_high_pic): Likewise.
15433         (movsi_pic_gotdata_op): New pattern.
15434         (movdi_pic_gotdata_op): Likewise.
15435         * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
15436         emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
15438 2010-02-20  Uros Bizjak  <ubizjak@gmail.com>
15440         PR target/43067
15441         * config/i386/sse.md (xop_mulv2div2di3_low): Change type
15442         attribute to ssemul.
15443         (xop_mulv2div2di3_high): Ditto.
15445 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15447         PR c++/35669
15448         * c.opt (Wconversion-null): New option.
15449         * doc/invoke.texi (Wconversion-null): Document.
15451 2010-02-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15453         * common.opt (Wlarger-than-): Add Undocumented.
15455 2010-02-19  Mike Stump  <mikestump@comcast.net>
15457         * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
15459 2010-02-19  Jason Merrill  <jason@redhat.com>
15461         PR target/40332
15462         * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
15463         * configure: Likewise.
15465 2010-02-20  Alan Modra  <amodra@gmail.com>
15467         PR middle-end/42344
15468         * cgraph.h (cgraph_make_decl_local): Declare.
15469         * cgraph.c (cgraph_make_decl_local): New function.
15470         (cgraph_make_node_local): Use it.
15471         * cgraphunit.c (cgraph_function_versioning): Likewise.
15472         * ipa.c (function_and_variable_visibility): Likewise.
15474 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15476         PR bootstrap/43121
15477         * except.c (sjlj_emit_function_enter): Don't call
15478         add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
15479         directly.
15480         * rtl.h (add_reg_br_prob_note): Remove prototype.
15482 2010-02-19  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15484         PR 41779
15485         * c-common.c (conversion_warning): Remove widening conversions
15486         before checking the conversion of integers to reals.
15488 2010-02-19  Mike Stump  <mikestump@comcast.net>
15490         PR middle-end/43125
15491         * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
15493         PR objc/43061
15494         * cgraphunit.c (process_function_and_variable_attributes): Check
15495         DECL_PRESERVE_P instead of looking up attribute "used".
15496         * ipa-pure-const.c (check_decl): Likewise.
15497         * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
15498         * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
15499         * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
15500         instead of attribute "used".
15501         * config/sol2-c.c (solaris_pragma_init): Likewise.
15502         (solaris_pragma_fini): Likewise.
15504 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15506         * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
15507         Use XCNEW instead of xcalloc.
15508         (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
15509         XNEW instead of xmalloc.
15510         (get_fields): Use XNEWVEC instead of xmalloc.
15512         PR debug/43084
15513         * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
15514         populate vars array.
15515         (create_new_general_access): For debug stmts just reset value.
15516         (get_stmt_accesses): For accesses within debug stmts just record them
15517         using add_access_to_acc_sites instead of preventing the peeling or
15518         counting them as accesses.
15520         PR middle-end/42233
15521         * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
15523 2010-02-19  Richard Guenther  <rguenther@suse.de>
15525         PR tree-optimization/42916
15526         * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
15527         instructions.
15529 2010-02-19  Andreas Schwab  <schwab@linux-m68k.org>
15531         * configure.ac: Replace all uses of changequote in macro arguments
15532         with proper quoting.
15534 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15536         PR middle-end/42233
15537         * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
15539 2010-02-19  Richard Guenther  <rguenther@suse.de>
15541         PR tree-optimization/42944
15542         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
15543         test for aliasing with errno.
15545 2010-02-19  Jakub Jelinek  <jakub@redhat.com>
15547         PR middle-end/42233
15548         * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
15549         do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
15550         * dojump.c: Include output.h.
15551         (inv): New inline function.
15552         (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
15553         do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
15554         do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
15555         do_jump_by_parts_equality, do_compare_and_jump): Add PROB
15556         argument, pass it down to other calls.
15557         (do_compare_rtx_and_jump): Likewise.  If PROB is not -1,
15558         add REG_BR_PROB note to the conditional jump.
15559         * cfgexpand.c (add_reg_br_prob_note): Removed.
15560         (expand_gimple_cond): Don't call it, add the probability
15561         as last argument to jumpif_1/jumpifnot_1.
15562         * Makefile.in (dojump.o): Depend on output.h.
15563         * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
15564         callers.
15565         * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
15566         * stmt.c (do_jump_if_equal): Likewise.
15567         * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
15568         * loop-unswitch.c (compare_and_jump_seq): Likewise.
15569         * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
15570         Likewise.
15571         * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
15572         * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
15573         jumpifnot_1 callers.
15574         (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
15575         callers.
15576         (store_expr): Adjust jumpifnot caller.
15577         (store_constructor): Adjust jumpif caller.
15579         PR middle-end/42233
15580         * gimplify.c (gimple_boolify): For __builtin_expect call
15581         gimple_boolify also on its first argument.
15583 2010-02-18  Uros Bizjak  <ubizjak@gmail.com>
15585         * configure.ac (gnu-unique-object): Wrap regexps using [] in
15586         changequote block.
15587         (__stack_chk_fail): Ditto.  Remove quadrigraphs.
15588         * configure: Regenerated.
15590 2010-02-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15592         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
15593         lang_hooks.types_compatible_p instead of comptypes.
15595 2010-02-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
15597         * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
15598         (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
15599         if __prefer_thumb__ is defined.
15601 2010-02-18  Martin Jambor  <mjambor@suse.cz>
15603         PR tree-optimization/43066
15604         * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
15605         array with zero-sized element type.
15607 2010-02-18  Jakub Jelinek  <jakub@redhat.com>
15609         * dwarf2out.c (add_var_loc_to_decl): Change last argument to
15610         rtx, allocate struct var_loc_node here and return it to the
15611         caller, and only if it is actually needed.
15612         (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
15613         move it earlier and return immediately if it returns NULL.
15615 2010-02-17  Mikael Pettersson  <mikpe@it.uu.se>
15617         * config/sparc/gas.h: New file.  Restore
15618         TARGET_ASM_NAMED_SECTION to its ELF default.
15619         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
15620         check !HAVE_GNU_AS.
15621         * config/sparc/sparc.c (sparc_elf_asm_named_section):
15622         Likewise.  Add ATTRIBUTE_UNUSED to prototype.
15623         * config.gcc (sparc*-*-linux*): Include sparc/gas.h
15624         after sparc/sysv4.h.
15626 2010-02-17  Dave Korn  <dave.korn.cygwin@gmail.com>
15628         * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
15630 2010-02-17  Steven Bosscher  <steven@gcc.gnu.org>
15632         * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
15633         patterns from predicated pattern.
15635 2010-02-17  Uros Bizjak  <ubizjak@gmail.com>
15637         PR target/43103
15638         * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
15639         for insn mnemonic suffix.
15641 2010-02-17  Richard Guenther  <rguenther@suse.de>
15643         * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
15644         to loop PHI nodes.
15646 2010-02-17  Jakub Jelinek  <jakub@redhat.com>
15648         PR debug/42918
15649         * caller-save.c (save_call_clobbered_regs): If BB ends with
15650         a DEBUG_INSN, move any notes in between last real insn and the last
15651         DEBUG_INSN after the last DEBUG_INSN.
15653 2010-02-16  Joern Rennecke  <joern.rennecke@embecosm.com>
15655         * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
15656         Fix return type.  Fix argument type.  Explain meaning of return value.
15658 2010-02-16  Richard Guenther  <rguenther@suse.de>
15660         PR tree-optimization/41043
15661         * tree-vrp.c  (vrp_var_may_overflow): Only ask SCEV for real loops.
15662         (vrp_visit_assignment_or_call): Do not ask SCEV for regular
15663         statements ...
15664         (vrp_visit_phi_node): ... but only for loop PHI nodes.
15666 2010-02-16  Ira Rosen  <irar@il.ibm.com>
15668         PR tree-optimization/43074
15669         * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
15670         * tree-vect-loop.c (vect_analyze_loop_operations): Add
15671         vectorizable cycles in hybrid SLP check.
15672         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
15674 2010-02-16  Richard Guenther  <rguenther@suse.de>
15676         * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
15677         (true_dependence): If memrefs_conflict_p computes must-alias
15678         trust it.  Move TBAA check after offset-based disambiguation.
15679         (canon_true_dependence): Likewise.
15681 2010-02-16  Alexandre Oliva  <aoliva@redhat.com>
15683         * params.def (PARAM_MAX_VARTRACK_SIZE): New.
15684         * doc/invoke.texi: Document it.
15685         * var-tracking.c: Include toplev.h and params.h.
15686         (vt_find_locations): Return bool indicating success.  Compute
15687         hash sizes unconditionally.  Check new parameter, report.
15688         (variable_tracking_main_1): Check vt_find_locations results and
15689         retry.  Renamed from...
15690         (variable_tracking_main): ... this.  New wrapper to preserve
15691         flag_var_tracking_assignments.
15692         * Makefile.in (var-tracking.o): Adjust dependencies.
15694 2010-02-16  Jack Howarth  <howarth@bromo.med.uc.edu>
15695             Jakub Jelinek  <jakub@redhat.com>
15697         PR target/42854
15698         * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
15699         if weak_import attribute is present.
15700         * config/darwin.c (machopic_select_section): Likewise.
15702 2010-02-15  Joern Rennecke  <joern.rennecke@embecosm.com>
15704         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
15705         (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
15706         (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
15707         (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
15709         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
15710         types.
15712         * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
15713         Fix argument types.
15715         * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
15716         Rewrite text to refer to the names.
15718 2010-02-15  Sebastian Pop  <sebastian.pop@amd.com>
15720         * config/i386/i386-builtin-types.def
15721         (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
15722         (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
15723         (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
15724         (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
15725         * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
15726         IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
15727         IX86_BUILTIN_VPERMIL2PS256.
15728         (MULTI_ARG_4_DF2_DI_I): Defined.
15729         (MULTI_ARG_4_DF2_DI_I1): Defined.
15730         (MULTI_ARG_4_SF2_SI_I): Defined.
15731         (MULTI_ARG_4_SF2_SI_I1): Defined.
15732         (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
15733         __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
15734         __builtin_ia32_vpermil2ps256.
15735         (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
15736         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
15737         MULTI_ARG_4_SF2_SI_I1.  Handle builtins with 4 arguments.
15738         (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
15739         MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
15740         MULTI_ARG_4_SF2_SI_I1.  Handle CODE_FOR_xop_vpermil2v2df3,
15741         CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
15742         CODE_FOR_xop_vpermil2v8sf3.
15743         * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
15744         * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
15745         * config/i386/xopintrin.h (_mm_permute2_pd): New.
15746         (_mm256_permute2_pd): New.
15747         (_mm_permute2_ps): New.
15748         (_mm256_permute2_ps): New.
15750 2010-02-15  Nick Clifton  <nickc@redhat.com>
15752         * config/h8300/h8300.c (h8300_push_pop): Use bool type for
15753         boolean parameters.  Use emit_jump_insn when emitting a pop
15754         instruction containing a return insn.
15755         (push): Use 'true' rather than '1' as second parameter to F.
15756         (h8300_expand_prologue): Likewise.
15757         Use 'true' and 'false' for boolean parameters to h8300_push_pop.
15758         (h8300_expand_epilogue): Likewise.
15760 2010-02-15  Richard Guenther  <rguenther@suse.de>
15762         PR middle-end/43068
15763         * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
15764         if that is zero.
15766 2010-02-15  Nick Clifton  <nickc@redhat.com>
15768         * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
15769         delta.
15771 2010-02-14  Marco Poletti  <poletti.marco@gmail.com>
15773         * intl.c (fake_ngettext): New function.
15774         * intl.h (fake_ngettext): Declare.
15775         (ngettext): Define macro.
15776         * collect2.c (notice_translated): New function.
15777         (main): Use notice_translated and ngettext.
15778         * collect2.h (notice_translated): Declare.
15780 2010-02-14  Steven Bosscher  <steven@gcc.gnu.org>
15782         * reorg.c (delete_computation): Comment fixes.
15783         * caller-save.c (setup_save_areas): Idem.
15784         * sel-sched-dump.c (dump_lv_set): Idem.
15785         * rtl.def: Idem.
15787 2010-02-14  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15789         * config/s390/s390.c (s390_sched_init): New function.
15790         (TARGET_SCHED_INIT): Target hook defined.
15792 2010-02-12  Dave Korn  <dave.korn.cygwin@gmail.com>
15793             Jack Howarth  <howarth@bromo.med.uc.edu>
15794             Iain Sandoe  <iain.sandoe@sandoe-acoustics.co.uk>
15796         PR target/42982
15797         Partial revert of unintended change in fix for PR41605.
15798         * config/darwin.h: Fix typo.
15799         * config/darwin9.h: Same.
15801 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
15803         * c-pch.c (pch_init): Clear v.
15805 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
15807         PR middle-end/42930
15808         * graphite-scop-detection.c (graphite_can_represent_scev): Call
15809         graphite_can_represent_init for MULT_EXPR.
15811 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
15813         PR middle-end/42914
15814         PR middle-end/42530
15815         * graphite-sese-to-poly.c (remove_phi): New.
15816         (translate_scalar_reduction_to_array): Call remove_phi.
15818 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
15820         PR middle-end/42771
15821         * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
15822         * graphite-clast-to-gimple.h (gloog): Update declaration.
15823         * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
15824         * graphite-poly.h (struct poly_bb): Add missing comments.
15825         (struct scop): Add poly_scop_p field.
15826         (POLY_SCOP_P): New.
15827         * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
15828         * graphite.c (graphite_transform_loops): Build the polyhedral
15829         representation for each scop before code generation.
15830         * sese.c (rename_variables_in_operand): Removed.
15831         (rename_variables_in_expr): Return the renamed expression.
15832         (rename_sese_parameters): New.
15833         * sese.h (rename_sese_parameters): Declared.
15835 2010-02-11  Richard Guenther  <rguenther@suse.de>
15837         PR tree-optimization/42998
15838         * tree-ssa-pre.c (create_expression_by_pieces): Treat
15839         POINTER_PLUS_EXPR properly.
15841 2010-02-11  Sebastian Pop  <sebastian.pop@amd.com>
15842             Changpeng Fang  <changpeng.fang@amd.com>
15844         PR middle-end/40886
15845         * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
15846         the cost of an IV candidate when the IV is used in a test against zero.
15848         * gcc.dg/tree-ssa/ivopts-3.c: New.
15850 2010-02-11  Richard Guenther  <rguenther@suse.de>
15852         PR lto/41664
15853         * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
15854         pointer-vs-decl case by swapping refs.  Handle some cases
15855         of pointer-vs-decl disambiguations more conservatively.
15856         * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
15857         to false after expanding.
15859 2010-02-11  Richard Guenther  <rguenther@suse.de>
15861         PR driver/43021
15862         * gcc.c (process_command): Handle LTO file@offset case more
15863         appropriately.
15865 2010-02-11  Jakub Jelinek  <jakub@redhat.com>
15867         * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
15868         modifications outside of the DEBUG_INSN.  Accept CLOBBERs inside
15869         of DEBUG_INSNs.
15870         (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
15872         * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
15873         if MEM's mode size isn't DWARF2_ADDR_SIZE.
15874         (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
15875         Optimize eq/ne comparisons when both arguments are known to be
15876         zero-extended.
15877         (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
15878         Don't mask operands unnecessarily if they are known to be already
15879         zero-extended.
15881 2010-02-10  Vladimir Makarov  <vmakarov@redhat.com>
15883         * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
15884         instead of loop.
15886 2010-02-10  Richard Guenther  <rguenther@suse.de>
15888         PR tree-optimization/43017
15889         * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
15890         for wrapping signed arithmetic.
15892 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
15894         PR debug/43010
15895         * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
15896         if no debug info should be emitted for it.
15898 2010-02-10  Kaz Kojima  <kkojima@gcc.gnu.org>
15900         * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
15901         note when flag_exceptions is set.
15903 2010-02-10  Duncan Sands  <baldrick@free.fr>
15905         * Makefile.in (PLUGIN_HEADERS): Add debug.h.
15907 2010-02-10  Richard Guenther  <rguenther@suse.de>
15909         PR c/43007
15910         * tree.c (get_unwidened): Handle constants.
15911         * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
15913 2010-02-10  Martin Jambor  <mjambor@suse.cz>
15915         PR lto/42985
15916         * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
15917         check for variable argument counts independently.
15919 2010-02-10  Christian Bruel  <christian.bruel@st.com>
15921         PR target/42841
15922         * config/sh/sh.c (find_barrier): Increase length for non delayed
15923         conditional branches.
15925 2010-02-10  Christian Bruel  <christian.bruel@st.com>
15927         * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
15929 2010-02-10  Jakub Jelinek  <jakub@redhat.com>
15931         * builtins.c (set_builtin_user_assembler_name): Also handle
15932         ffs if int is smaller than word.
15934 2010-02-09  Vladimir Makarov  <vmakarov@redhat.com>
15936         PR middle-end/42973
15937         * ira-conflicts.c (get_dup): Remove.
15938         (process_reg_shuffles): Add new parameter.  Use it as an
15939         additional guard for copy generation.
15940         (add_insn_allocno_copies): Rewrite.
15942 2010-02-09  Alexander Monakov  <amonakov@ispras.ru>
15944         * common.opt (fsched2-use-traces): Preserved for backward
15945         compatibility.
15946         * doc/invoke.texi: Remove the documentation about option
15947         -fsched2-use-traces.
15948         * sched-rgn.c (rest_of_handle_sched2): Remove usage of
15949         flag_sched2_use_traces.
15950         * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
15951         the backward compatibility flag section.
15953 2010-02-09  Richard Guenther  <rguenther@suse.de>
15955         PR tree-optimization/43008
15956         * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
15957         make HEAP variables initialized from global memory if they
15958         are not known builtin functions.
15959         (find_func_aliases): Adjust.
15961 2010-02-09  Richard Guenther  <rguenther@suse.de>
15963         PR tree-optimization/43000
15964         * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
15965         arithmetic manually.
15967 2010-02-08  Jakub Jelinek  <jakub@redhat.com>
15969         PR tree-optimization/42931
15970         * tree-loop-linear.c (try_interchange_loops): Don't call
15971         double_int_mul if estimated_loop_iterations failed.
15973 2010-02-08  Martin Jambor  <mjambor@suse.cz>
15975         PR middle-end/42898
15976         * tree-sra.c (build_accesses_from_assign): Do not mark in
15977         should_scalarize_away_bitmap if stmt has volatile ops.
15978         (sra_modify_assign): Do not process assigns piecemeal if if stmt
15979         has volatile ops.
15981 2010-02-08  Joern Rennecke  <joern.rennecke@embecosm.com>
15983         * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
15985 2010-02-07  Adam Nemet  <adambnmet@gmail.com>
15987         * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
15988         before the pattern.
15990 2010-02-07  Andrew Pinski  <pinskia@gmail.com>
15992         PR middle-end/42946
15993         * df-core.c (df_finish_pass): Change type of saved_flags to int.
15995 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
15997         PR middle-end/42988
15998         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
15999         to unknown_dependence.
16000         (graphite_legal_transform_dr): Handle the unknown_dependence.
16001         (graphite_carried_dependence_level_k): Same.
16003 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
16005         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
16007 2010-02-07  Richard Guenther  <rguenther@suse.de>
16009         PR middle-end/42991
16010         * expr.c (get_inner_reference): Always initialize *pbitsize.
16012 2010-02-07  Richard Guenther  <rguenther@suse.de>
16014         PR middle-end/42956
16015         * gimplify.c (gimple_fold_indirect_ref): Avoid generating
16016         new ARRAY_REFs on variable size element or minimal index arrays.
16017         Complete.
16018         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
16019         gimple_fold_indirect_ref.
16021 2010-02-06  Richard Earnshaw  <rearnsha@arm.com>
16023         PR target/42957
16024         * arm.c (arm_override_options): Just return if the user has specified
16025         an invalid fpu name.
16027 2010-02-03  Jason Merrill  <jason@redhat.com>
16029         PR c++/42870
16030         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
16031         i386_pe_maybe_record_exported_symbol.
16033 2010-02-05  Steve Ellcey  <sje@cup.hp.com>
16035         PR target/42924
16036         * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16037         (pa_delegitimize_address): New function.
16039 2010-02-05  Ozkan Sezer  <sezeroz@gmail.com>
16041         * config/i386/msformat-c.c (ms_printf_length_specs): Set the
16042         scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
16044 2010-02-05  Richard Guenther  <rguenther@suse.de>
16046         PR lto/42762
16047         * lto-streamer-in.c (get_resolution): Deal with references
16048         to undefined functions.
16050 2010-02-05  Richard Guenther  <rguenther@suse.de>
16052         * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
16053         (fold_const_aggregate_ref): Likewise.
16054         (ccp_fold_stmt): Substitute loads.
16055         (maybe_fold_reference): Verify types before substituting.
16056         Unshare properly.
16057         (fold_gimple_assign): Unshare properly.
16058         (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
16060 2010-02-05  Nathan Froyd  <froydnj@codesourcery.com>
16062         * config/rs6000/rs6000.c (rs6000_override_options): Invert check
16063         for rs6000_gen_cell_microcode.
16065 2010-02-04  Richard Guenther  <rguenther@suse.de>
16067         PR rtl-optimization/42952
16068         * dse.c (const_or_frame_p): Remove MEM handling.
16070 2010-02-04  Nick Clifton  <nickc@redhat.com>
16072         * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16073         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
16074         (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
16075         (mn10300_asm_output_mi_thunk): New function.
16076         (mn10300_can_output_mu_thunk): New function.
16077         * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
16078         (FUNCTION_ARG_REGNO_P): Fix comment.  Accept d0 and d1.
16079         (FUNCTION_ARG): Delete incorrect comment.
16081 2010-02-03  Jason Merrill  <jason@redhat.com>
16083         PR c++/40138
16084         * fold-const.c (operand_equal_p): Handle erroneous types.
16086 2010-02-03  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
16088         * config/h8300/h8300.md (can_delay): Fix attibute condition.
16090 2010-02-03  Vladimir Makarov  <vmakarov@redhat.com>
16092         PR rtl-optimization/42941
16093         * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
16094         of xmalloc.
16096 2010-02-03  Jason Merrill  <jason@redhat.com>
16098         PR c++/35652
16099         * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
16101 2010-02-03  Alexandre Oliva  <aoliva@redhat.com>
16103         PR debug/42896
16104         * cselib.h (struct cselib_val_struct): Add uid.  Rename value to hash.
16105         (cselib_reset_table): Renamed from...
16106         (cselib_reset_table_with_next_value): ... this.
16107         (cselib_get_next_uid): Renamed from...
16108         (cselib_get_next_unknown_value): ... this.
16109         * cselib.c (next_uid): Renamed from...
16110         (next_unknown_value): ... this.
16111         (cselib_clear_table): Adjust.
16112         (cselib_reset_table): Adjust.  Renamed from...
16113         (cselib_reset_table_with_next_value): ... this.
16114         (cselib_get_next_uid): Adjust.  Renamed from...
16115         (cselib_get_next_unknown_value): ... this.
16116         (get_value_hash): Use hash.
16117         (cselib_hash_rtx): Likewise.
16118         (new_cselib_val): Adjust.  Set and dump uid.
16119         (cselib_lookup_mem): Pass next_uid as hash.
16120         (cselib_subst_to_values): Likewise.
16121         (cselib_log_lookup): Dump uid.
16122         (cselib_lookup): Pass next_uid as hash.  Adjust.
16123         (cselib_process_insn): Adjust.
16124         (cselib_init): Initialize next_uid.
16125         (cselib_finish): Adjust.
16126         (dump_cselib_table): Likewise.
16127         * dse.c (canon_address): Dump value uid.
16128         * print-rtl.c (print_rtx): Print value uid.
16129         * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
16130         (dvuid): New type.
16131         (dv_uid): New function, sort of renamed from...
16132         (dv_htab_hash): ... this, reimplemented in terms of it and...
16133         (dv_uid2hash): ... this.  New.
16134         (variable_htab_eq): Drop excess assertions.
16135         (tie_break_pointers): Removed.
16136         (canon_value_cmp): Compare uids.
16137         (variable_post_merge_New_vals): Print uids.
16138         (vt_add_function_parameters): Adjust.
16139         (vt_initialize): Reset table.  Adjust.
16141 2010-02-03  Richard Guenther  <rguenther@suse.de>
16143         PR tree-optimization/42944
16144         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
16145         (call_may_clobber_ref_p_1): Likewise.  Properly handle
16146         malloc and calloc clobbering errno.
16148 2010-02-03  Steven Bosscher  <steven@gcc.gnu.org>
16150         * doc/invoke.texi: Fix name of sched1 dump.
16152         * opts.c (decode_options): Set flag_tree_switch_conversion
16153         only conditionally on optimize >= 2.
16155         * gcse.c: Assorted comment fixes in pass description.
16157 2010-02-03  Anthony Green  <green@moxielogic.com>
16159         * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
16160         nop padding in order to maintain alignment of storage location of
16161         target function address.
16162         (moxie_trampoline_init): Store target function address at newly
16163         aligned location.
16164         * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
16165         to 32.
16166         (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
16168 2010-02-03  Richard Guenther  <rguenther@suse.de>
16170         PR middle-end/42927
16171         * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
16173 2010-02-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16175         * config.gcc: Reenable check for obsolete targets.
16176         Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
16177         mips-sgi-irix6.[0-4]*.
16179 2010-02-02  Nick Clifton  <nickc@redhat.com>
16181         * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
16182         constant size of 4 as being the same as 0.
16183         * doc/invoke.texi (RX Options): Document that -mmax-constant-size
16184         can take values in the range 0..4.
16186 2010-02-02  Jack Howarth  <howarth@bromo.med.uc.edu>
16188         PR java/41991
16189         * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
16190         as _darwin10_Unwind_FindEnclosingFunction().
16191         * libgcc-libsystem.ver: New.
16193 2010-02-01  Vladimir Makarov  <vmakarov@redhat.com>
16195         PR target/41399
16196         * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
16197         implicitly set registers.
16199 2010-02-01  Richard Earnshaw  <rearnsha@arm.com>
16201         * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
16202         (arm_override_options): Allow automatic selection of the thread
16203         pointer register if thumb2.
16204         (legitimize_pic_address): Improve code sequences for Thumb2.
16205         (arm_call_tls_get_addr): Likewise.
16206         (legitimize_tls_address): Likewise.
16207         * arm.md (pic_load_addr_arm): Delete.  Replace with ...
16208         (pic_load_addr_32bit): ... this.  New named pattern.
16209         * thumb2.md (pic_load_addr_thumb2): Delete.
16210         (pic_load_dot_plus_four): Delete.
16211         (tls_load_dot_plus_four): New named pattern.
16213 2010-02-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16215         PR libgomp/29986
16216         * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
16217         Document fix for TLS bug.
16219 2010-01-31  Richard Guenther  <rguenther@suse.de>
16221         * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
16222         conservatively correct.
16224 2010-01-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16226         PR target/42850
16227         Revert:
16228         2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16230         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16232 2010-01-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16234         * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
16236 2010-01-31  Kai Tietz  <kai.tietz@onevision.com>
16238         * config.gcc: Adjust order of makefile fragments for mingw targets.
16240 2010-01-31  Richard Guenther  <rguenther@suse.de>
16242         PR middle-end/42898
16243         * gimplify.c (gimplify_init_constructor): For volatile LHS
16244         initialize a temporary.
16246 2010-01-31  Matthias Klose  <doko@ubuntu.com>
16248         * configure.ac: Fix __stack_chk_fail check for cross builds configured
16249         --with-headers
16250         * configure: Regenerate.
16252 2010-01-29  Eric Botcazou  <ebotcazou@adacore.com>
16254         * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
16255         the same alias set and their sizes different constantness.
16256         (aliasing_component_refs_p): Revert 2009-10-24 change.
16258 2010-01-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16260         * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
16261         unused.
16263 2010-01-29  Richard Guenther  <rguenther@suse.de>
16265         * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
16266         Assert we successfully updated the call.
16268 2010-01-29  Jakub Jelinek  <jakub@redhat.com>
16270         PR rtl-optimization/42889
16271         * df.h (df_set_bb_dirty_nonlr): New prototype.
16272         * df-core.c (df_set_bb_dirty_nonlr): New function.
16273         * df-scan.c (df_insn_rescan): Call it instead of
16274         df_set_bb_dirty for DEBUG_INSNs.
16276 2010-01-29  Richard Guenther  <rguenther@suse.de>
16278         PR middle-end/37448
16279         * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
16280         quadratic behavior in most cases.
16282 2010-01-28  Uros Bizjak  <ubizjak@gmail.com>
16284         PR target/42891
16285         * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
16286         in the call to gen_x86_movsicc_0_m1.
16288 2010-01-28  Richard Guenther  <rguenther@suse.de>
16290         PR tree-optimization/42871
16291         * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
16293 2010-01-28  Richard Guenther  <rguenther@suse.de>
16295         * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
16296         into call arguments.
16298 2010-01-28  Richard Guenther  <rguenther@suse.de>
16300         PR middle-end/42883
16301         * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
16302         the forwarder if the destination is an EH landing pad.
16304 2010-01-28  Razya Ladelsky  <razya@il.ibm.com>
16306         * tree-parloops.c (transform_to_exit_first_loop): Update the basic
16307         block list passed to gimple_duplicate_sese_tail.
16308         (parallelize_loops): Avoid parallelization when the function
16309         has_nonlocal_label.
16310         Avoid parallelization when the preheader is IRREDUCIBLE.
16311         Try to optimize when estimated_loop_iterations_int is unresolved.
16312         Add the loop's location to the dump file.
16313         * tree-cfg.c (add_phi_args_after_redirect): Remove.
16314         (gimple_duplicate_sese_tail): Remove the check for the latch.
16315         Redirect nexits to the exit block.
16316         Remove handling of the incoming edges to the latch.
16317         Redirect the backedge from the copied latch to the exit bb.
16319 2010-01-28  Michael Matz  <matz@suse.de>
16321         PR target/42881
16322         * config/i386/i386.c (ix86_expand_vector_init_duplicate):
16323         Wrap force_reg into a sequence, emit it before user.
16325 2010-01-28  Stephen Thomas  <stephen.thomas@arm.com>
16327         * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
16328         (arm_rev): New.
16329         (arm_legacy_rev): Likewise.
16330         (thumb_legacy_rev): Likewise.
16332 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
16334         * dwarf2out.c (mem_loc_descriptor): Remove special casing of
16335         CONSTANT_POOL_ADDRESS_P SYMBOL_REFs.  If for MEM recursive call
16336         on MEM's address failed, try avoid_constant_pool_reference and
16337         recurse if it returned something different.
16338         (loc_descriptor): If for MEM mem_loc_descriptor failed on the
16339         address, try avoid_constant_pool_reference and recurse if it
16340         returned something different.
16341         (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
16342         address and avoid_constant_pool_reference returned something
16343         different, don't set have_address.
16345 2010-01-27  Alexandre Oliva  <aoliva@redhat.com>
16347         PR debug/42861
16348         * var-tracking.c (val_store): Add modified argument, obey it.
16349         Adjust callers.
16350         (count_uses): Move down logging of main.
16351         (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
16352         don't need resolution.
16353         (emit_notes_in_bb): Likewise.
16355 2010-01-27  Richard Guenther  <rguenther@suse.de>
16357         PR middle-end/42878
16358         * tree-inline.c (remap_decl): Delay remapping of SSA name
16359         default definitions until we need them.
16361 2010-01-27  Jakub Jelinek  <jakub@redhat.com>
16363         * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16364         (rs6000_delegitimize_address): New function.
16366         * config/s390/s390.c (s390_delegitimize_address): Call
16367         delegitimize_mem_from_attrs.
16369         PR middle-end/42874
16370         * tree-inline.c (cannot_copy_type_1): Removed.
16371         (copy_forbidden): Don't forbid copying of functions containing
16372         records/unions with variable length fields.
16374 2010-01-27  Christian Bruel  <christian.bruel@st.com>
16376         Revert:
16377         PR target/42841
16378         * config/sh/sh.c (find_barrier): Increase length for non delayed
16379         conditional branches.
16381 2010-01-27  Matthias Klose  <doko@ubuntu.com>
16383         * configure.ac (gnu-unique-object): Fix ldd version check.
16384         * configure: Regenerate.
16386 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16388         * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
16389         HAVE_GNU_AS value.
16390         * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
16391         Test for HAVE_GNU_AS value.
16393 2010-01-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16395         * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
16396         * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
16397         INT64_TYPE): Define.
16398         (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
16399         (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16400         INT_LEAST64_TYPE): Define.
16401         (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
16402         UINT_LEAST64_TYPE): Define.
16403         (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
16404         INT_FAST64_TYPE): Define.
16405         (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16406         UINT_FAST64_TYPE): Define.
16407         (INTMAX_TYPE, UINTMAX_TYPE): Define.
16408         (INTPTR_TYPE, UINTPTR_TYPE): Define.
16409         (SIG_ATOMIC_TYPE): Define.
16411 2010-01-26  Richard Guenther  <rguenther@suse.de>
16413         * df-scan.c (df_scan_set_bb_info): Remove assert.
16414         (df_insn_rescan_debug_internal): Merge asserts.
16415         (df_install_ref): Likewise.
16416         (df_mark_reg): Use bitmap_set_range.
16417         (df_hard_reg_used_p): Remove assert.
16418         (df_hard_reg_used_count): Likewise.
16420 2010-01-26  Richard Guenther  <rguenther@suse.de>
16422         PR rtl-optimization/42685
16423         * web.c (web_main): Ignore DEBUG_INSNs.
16425 2010-01-26  Joern Rennecke  <amylaar@spamcop.net>
16427         * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
16429         (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
16430         Fix types of fndecl and arglist parameters.
16432 2010-01-26  Richard Guenther  <rguenther@suse.de>
16434         PR middle-end/42806
16435         * tree-eh.c (unsplit_eh): Skip debug insns.
16437 2010-01-26  Richard Guenther  <rguenther@suse.de>
16439         PR tree-optimization/42250
16440         * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
16442 2010-01-26  Jakub Jelinek  <jakub@redhat.com>
16444         PR fortran/42866
16445         * omp-low.c (expand_omp_sections): Only use single_pred if
16446         l2_bb is single_pred_p.
16448 2010-01-25  Christian Bruel  <christian.bruel@st.com>
16450         PR target/42841
16451         * config/sh/sh.c (find_barrier): Increase length for non delayed
16452         conditional branches.
16453         (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
16455 2010-01-24  David S. Miller  <davem@davemloft.net>
16457         * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
16458         define if not using GAS.
16459         * config/sparc/sparc.c (sparc_elf_asm_named_section):
16460         Likewise.  Delete SECTION_MERGE code, which is only applicable
16461         when using GAS.
16463 2010-01-24  Mark Mitchell  <mark@codesourcery.com>
16465         PR c++/42748
16466         * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
16467         mangling of va_list in system headers.
16469 2010-01-23  Toon Moene  <toon@moene.org>
16471         * tree-predcom.c (combine_chains): Return NULL, not false.
16473 2010-01-23  Joern Rennecke  <amylaar@spamcop.net>
16475         * tree-loop-distribution.c (distribute_loop): Fix declaration and
16476         initialization of variable res to agree with return type.
16478 2010-01-22  Steve Ellcey  <sje@cup.hp.com>
16480         * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
16481         * tree-sra.c: Add include of expr.h.
16483 2010-01-22  Jakub Jelinek  <jakub@redhat.com>
16485         * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
16486         insert the debug stmt on the single non-EH edge from the stmt.
16488 2010-01-22  Richard Henderson  <rth@redhat.com>
16490         PR tree-opt/42833
16491         * tree-sra.c (sra_modify_assign): Delay re-gimplification of
16492         the RHS until after generate_subtree_copies has insertted its
16493         code before the current statement.
16495 2010-01-22  Joern Rennecke  <amylaar@spamcop.net>
16497         * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
16499         * gcc-plugin.h (plugin_init): Use "C" likage for c++.
16501 2010-01-21  Martin Jambor  <mjambor@suse.cz>
16503         PR tree-optimization/42585
16504         * tree-sra.c (struct access): New field grp_total_scalarization.
16505         (dump_access): Dump the new field.
16506         (should_scalarize_away_bitmap): New variable.
16507         (cannot_scalarize_away_bitmap): Likewise.
16508         (sra_initialize): Allocate new bitmaps.
16509         (sra_deinitialize): Free new bitmaps.
16510         (create_access_1): New function.
16511         (create_access): Parts moved to create_access_1.
16512         (type_consists_of_records_p): New function.
16513         (completely_scalarize_record): Likewise.
16514         (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
16515         (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
16516         (sort_and_splice_var_accesses): Hint groups with a total_scalarization
16517         access.
16518         (analyze_all_variable_accesses): Completely scalarize small eligible
16519         records.
16521 2010-01-21  Martin Jambor  <mjambor@suse.cz>
16523         * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
16525 2010-01-21  Andrew Haley  <aph@redhat.com>
16527         * gcc.c (process_command): Move lang_specific_driver before
16528         setting cc_libexec_prefix.
16530 2010-01-21  Richard Guenther  <rguenther@suse.de>
16532         PR middle-end/19988
16533         * fold-const.c (negate_expr_p): Pretend only negative
16534         real constants are easily negatable.
16536 2010-01-20  Janis Johnson  <janis187@us.ibm.com>
16537             Jason Merrill  <jason@redhat.com>
16539         * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
16540         (TYPE_TRANSPARENT_AGGR): this, for union and record.
16541         * calls.c (initialize argument_information): Handle it.
16542         * c-common.c (handle_transparent_union_attribute): Use new name.
16543         * c-decl.c (finish_struct): Ditto.
16544         * c-typeck.c (type_lists_compatible_p): Ditto.
16545         (convert_for_assignment): Use new name and also handle record.
16546         * function.c (aggregate_value_p): Handle it.
16547         (pass_by_reference): Ditto.
16548         (assign_parm_data_types): Ditto.
16549         * print-tree.c (print_node): Ditto.
16550         * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
16551         * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
16552         * tree.c (first_field): New fn.
16554 2010-01-21  Dave Korn  <dave.korn.cygwin@gmail.com>
16556         PR target/42818
16557         * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
16558         even when linking statically, for now.
16560 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
16562         PR debug/42715
16563         * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
16564         without a cselib val.
16565         (count_uses): Accept MO_VAL_SET with no val on stores.
16566         (add_stores): Likewise.
16568 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16570         * var-tracking.c (check_value_val): Add a compile time assertion.
16571         (dv_is_decl_p): Simplify.
16572         (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
16573         gcc_assert if ENABLE_CHECKING.
16575 2010-01-20  Alexandre Oliva  <aoliva@redhat.com>
16577         PR debug/42782
16578         * var-tracking.c: Include tree-flow.h.
16579         (mem_dies_at_call): New.
16580         (dataflow_set_preserve_mem_locs): Use it.
16581         (dataflow_set_remove_mem_locs): Likewise.
16582         (dump_var): Renamed from dump_variable.  Adjust all callers.
16583         (dump_var_slot): Renamed from dump_variable_slot.  Likewise.
16584         * Makefile.in (var-tracking.o): Adjust deps.
16586 2010-01-20  Joern Rennecke  <amylaar@spamcop.net>
16588         * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
16590 2010-01-20  Richard Guenther  <rguenther@suse.de>
16592         PR tree-optimization/42717
16593         * tree-ssa-dce.c (get_live_post_dom): Remove.
16594         (forward_edge_to_pdom): Take an arbitrary edge to copy
16595         degenerate PHI args from.
16596         (remove_dead_stmt): Use the first post-dominator even if it
16597         does not contain live statements as redirection destination.
16599 2010-01-20  Richard Guenther  <rguenther@suse.de>
16601         * tree-inline.c (estimate_num_insns): Handle EH builtins.
16603 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16605         * sel-sched.c (create_speculation_check): Remove set but not used
16606         variable twin.
16607         (try_transformation_cache): Remove set but not used variable ds.
16608         (calculate_privileged_insns): Remove set but not used variables
16609         cur_insn and min_spec_insn.
16610         (find_best_expr): Remove set but not used variable avail_n.
16611         * tree-predcom.c (base_names_in_chain_on): Remove set but not used
16612         variable e.
16613         * cgraphunit.c (assemble_thunk): Remove set but not used variable
16614         false_label.
16615         * haifa-sched.c (remove_notes): Remove set but not used variable prev.
16616         * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
16617         new_scop_exit_edge.
16619 2010-01-20  Felyza Wishbringer  <fwishbringer@gmail.com>
16621         PR bootstrap/42786
16622         * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
16623         cpu types.  Add support for *-sse3 cpu types.
16624         (x86_64-*-*): Ditto.
16626 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16628         PR middle-end/42803
16629         * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
16630         argument, call initializer_constant_valid_p_1 instead of
16631         initializer_constant_valid_p, pass CACHE to it, return NULL
16632         immediately if first call returns NULL.
16633         (initializer_constant_valid_p_1): New function.
16634         (initializer_constant_valid_p): Use it.
16636 2010-01-20  Thomas Quinot  <quinot@adacore.com>
16638         * tree.def (PLACEHOLDER_EXPR): Fix comment.
16640 2010-01-20  Jakub Jelinek  <jakub@redhat.com>
16642         * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
16643         of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
16644         (loc_list_from_tree): Don't handle unsigned division.  Handle
16645         signed modulo using DW_OP_{over,over,div,mul,minus}.
16646         * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
16647         modulo instead of signed.
16649 2010-01-20  DJ Delorie  <dj@redhat.com>
16651         * config/h8300/h8300.c (F): Add "in_epilogue" flag.
16652         (Fpa): Pass it
16653         (h8300_emit_stack_adjustment): Propogate it.
16654         (push): Pass it.
16655         (h8300_expand_prologue): Likewise.
16656         (h8300_expand_epilogue): Likewise.
16658 2010-01-19  Michael Matz  <matz@suse.de>
16660         PR tree-optimization/41783
16661         * tree-data-ref.c (toplevel): Include flags.h.
16662         (dump_data_dependence_relation):  Also dump the inputs if the
16663         result will be unknown.
16664         (split_constant_offset_1): Look through some conversions.
16665         * tree-predcom.c (determine_roots_comp): Restart a new chain if
16666         the offset from last element is too large.
16667         (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
16668         (reassociate_to_the_same_stmt): Handle vector registers.
16669         * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
16670         (e.g. conversions).
16671         * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
16672         wide_prolog_niters argument, emit widening instructions.
16673         (vect_do_peeling_for_alignment): Adjust caller, use widened
16674         variant of the iteration cound.
16675         * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
16677 2010-01-19  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16679         PR target/38697
16680         * config/arm/neon-testgen.m (emit_automatics): New parameter
16681         features. Adjust for Fixed_return_reg feature.
16682         (test_intrinsic): Call emit_automatics with new feature.
16683         * config/arm/neon.ml: Update copyright years.
16684         (features): New Fixed_return_reg feature.
16685         (ops): Update feature for Vget_low.
16687 2010-01-19  Jakub Jelinek  <jakub@redhat.com>
16689         PR tree-optimization/42719
16690         * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
16691         stmt uses.
16693         PR debug/42728
16694         * fwprop.c (all_uses_available_at): Return false if def_set dest
16695         is a REG that is used in def_insn.
16697 2010-01-19  Joern Rennecke  <amylaar@spamcop.net>
16699         * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
16701         (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
16702         Add argument names.
16704         (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
16706         * target.h (struct gcc_target) <secondary_reload>: Change type
16707         of last argument to secondary_reload_info *.
16709 2010-01-18  Uros Bizjak  <ubizjak@gmail.com>
16711         PR target/42774
16712         * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
16713         memory references with unaligned offsets.  Remove CQImode handling.
16714         (unaligned_memory_operand): Return 1 for memory references with
16715         unaligned offsets.  Remove CQImode handling.
16717 2010-01-18  Richard Guenther  <rguenther@suse.de>
16719         PR middle-end/39954
16720         * cfgexpand.c (expand_call_stmt): TER pointer arguments in
16721         builtin calls.
16723 2010-01-18  Richard Guenther  <rguenther@suse.de>
16725         PR tree-optimization/42781
16726         * tree-ssa-structalias.c (find_what_var_points_to): Skip
16727         restrict processing only if the original variable was artificial.
16729 2010-01-18  Joern Rennecke  <amylaar@spamcop.net>
16731         * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
16732         find number of popped argument bytes.
16734         (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
16735         Fix the text that describes the return value for invalid insns.
16737         (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type.  Fix argument list.
16739         (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
16740         Clarify what 'cost of the -dependence' is.  Fix quoting.
16742         * toplev.c (default_get_pch_validity): Rename argument to "sz".
16743         * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
16745 2010-01-17  Jakub Jelinek  <jakub@redhat.com>
16747         * dwarf2out.c (mem_loc_descriptor): Don't ICE on
16748         {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
16750 2010-01-17  Richard Guenther  <rguenther@suse.de>
16752         PR middle-end/42248
16753         * function.c (split_complex_args): Take a VEC to modify.
16754         (assign_parms_augmented_arg_list): Build a VEC instead of
16755         a chain of PARM_DECLs.
16756         (assign_parms_unsplit_complex): Take a VEC of arguments.
16757         Do not fixup unmodified parms.
16758         (assign_parms): Deal with the VEC.
16759         (gimplify_parameters): Likewise.
16761 2010-01-17  Richard Guenther  <rguenther@suse.de>
16763         * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
16764         node existence check.
16765         * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
16766         * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
16767         * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
16768         * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
16769         (gimple_execute_on_growing_pred): Likewise.
16771 2010-01-17  Richard Guenther  <rguenther@suse.de>
16773         PR tree-optimization/42773
16774         * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
16775         (compute_antic_aux): Likewise.
16776         (compute_partial_antic_aux): Likewise.
16778 2010-01-17  Jie Zhang  <jie.zhang@analog.com>
16780         PR debug/42767
16781         * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
16782         and US_TRUNCATE.
16784 2010-01-17  Joern Rennecke  <amylaar@spamcop.net>
16786         * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
16787         appearance.
16789         (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
16790         Fix markup for strict argument.
16792         (TARGET_SCHED_REORDER2): Fix argument types.
16794         (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
16795         (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
16797         (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
16798         (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
16800         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
16801         Add argument name.
16803         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
16804         (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
16805         (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
16806         (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
16807         (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
16809         (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
16811         (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
16813         (TARGET_ASM_RELOC_RW_MASK): Add return type.
16814         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
16816         (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
16818         (TARGET_ASM_FILE_START): Put @findex before paragraph start.
16819         Use prototype.
16821         (TARGET_ASM_NAMED_SECTION): Fix argument list.
16823         (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
16824         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
16826         (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
16828         (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
16830         (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
16831         referring to it.  Fix language.
16833         (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
16835         (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
16837         (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
16839         (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
16841         (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
16842         '@var{stream}.  Remove stray 'and'.
16844         (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
16846         (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
16848         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
16850         (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
16851         misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
16853         (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
16854         Fix description of return value.
16855         Rename argument "sz" to "len."
16857         (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
16858         Clarify meaning of 'true' return value.
16860         (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
16862         (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
16863         rep_mode versus mode_rep.
16865         (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
16867         (TARGET_BUILTIN_DECL): Fix name.
16869         (TARGET_COMMUTATIVE_P): Fix type of first argument.
16871         (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
16873         (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
16875         (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
16877         (TARGET_RELAXED_ORDERING): Use @deftypevr.
16879         (TARGET_GET_DRAP_RTX): Note that this is a hook.
16880         Clarify language.
16882         (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
16883         Rename argument tm_fn to md_fn.
16885         (TARGET_OPTION_PRINT): Fix argument list.
16887 2010-01-16  Harsha Jagasia  <harsha.jagasia@amd.com>
16889         PR target/42664
16890         * config/i386/i386.c (ix86_fixup_binary_operands):
16891         Revert FMA4 fixup of operands.
16893 2010-01-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16895         PR gcc/42525
16896         * Makefile.in (write_entries_to_file, install-plugin):
16897         Use \012 instead of \n with tr.
16899 2010-01-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
16901         * configure.ac (HAVE_AS_REF): New C macro.
16902         * configure: Regenerate.
16903         * config.in: Likewise.
16904         * collect2.c (main): Only postpone SCAN_DWEH to the second pass
16905         if HAVE_AS_REF.
16906         * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
16907         if HAVE_AS_REF.
16909 2010-01-16  Joern Rennecke  <amylaar@spamcop.net>
16911         * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
16913         (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
16915         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
16917         (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
16919         (TARGET_IN_SMALL_DATA_P): Fix argument type.
16921         (TARGET_BINDS_LOCAL_P): Fix argument type.
16923         (TARGET_ASM_FILE_END): Use prototype.
16925         (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
16927         (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
16929         (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
16931         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
16933         (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
16934         (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
16936         (TARGET_PCH_VALID_P): Put 'const char *' in braces.
16937         (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
16939         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
16940         (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
16941         (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
16942         (TARGET_ADDR_SPACE_CONVERT): Likewise.
16944         (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
16946         (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
16948         (TARGET_INIT_BUILTINS): Use prototype.
16950         (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
16951         Put 'const char *' in braces.  Fix parameter types.
16952         (TARGET_INVALID_CONVERSION): Fix parameter types.
16953         (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
16954         (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
16956         (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
16957         Fix argument type.
16959         (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
16961         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
16963 2010-01-15  Joern Rennecke  <amylaar@spamcop.net>
16965         * doc/tm.texi (TARGET_HELP): Fix return type.
16967         (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
16968         in braces.  Fix argument types.
16970         (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
16972         (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
16974         (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
16976         (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
16977         (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
16979         (TARGET_MANGLE_TYPE): Fix argument types.
16981         (TARGET_IRA_COVER_CLASSES): Use prototype.
16983         (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type.  Use prototype.
16985         (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
16987         (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
16989         (TARGET_MUST_PASS_IN_STACK): Fix argument type.
16991         (TARGET_CALLEE_COPIES): Fix argument types.
16993         (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
16995         (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
16997         (TARGET_FUNCTION_VALUE): Fix argument types.
16999         (TARGET_RETURN_IN_MSB): Fix argument type.
17001         (TARGET_RETURN_IN_MEMORY): Fix argument types.
17003         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
17005         (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
17007         (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
17008         agree with return type.
17010         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
17012 2010-01-15  Jing Yu  <jingyu@google.com>
17014         PR rtl-optimization/42691
17015         * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
17016         a pseudo to a constant and are merged, and adjust comments.
17018 2010-01-15  Eric Botcazou  <ebotcazou@adacore.com>
17020         * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
17022 2010-01-15  Richard Guenther  <rguenther@suse.de>
17024         PR middle-end/42739
17025         * tree-cfgcleanup.c (remove_forwarder_block): Move destination
17026         labels of computed or non-local gotos to the destination.
17027         * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
17028         landing pad label is the first label.
17030 2010-01-15  Richard Guenther  <rguenther@suse.de>
17032         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
17034 2010-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
17036         PR target/42747
17037         * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
17038         to allow generation of the xssqrtdp instruction on power7.
17039         (sqrtdf2_fpr): Ditto.
17041 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17043         PR middle-end/42674
17044         * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
17045         functions with noreturn attribute.
17047         PR c++/42608
17048         * varasm.c (declare_weak): Add weak attribute to decl if it
17049         doesn't have one already.
17050         (assemble_external): Only add decls to weak_decls if they also
17051         have weak attribute.
17053 2010-01-14  Alexandre Oliva  <aoliva@redhat.com>
17055         * var-tracking.c (var_reg_delete): Don't delete the association
17056         between REGs and values or one-part variables if the register
17057         isn't clobbered.
17059 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17061         PR debug/42657
17062         * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
17063         because its first operand is a non-localized variable.
17065 2010-01-14  Martin Jambor  <mjambor@suse.cz>
17067         PR tree-optimization/42706
17068         * tree-sra.c (encountered_recursive_call): New variable.
17069         (encountered_unchangable_recursive_call): Likewise.
17070         (sra_initialize): Initialize both new variables.
17071         (callsite_has_enough_arguments_p): New function.
17072         (scan_function): Call decl and flags check only for IPA-SRA, check
17073         whether there is a recursive call and whether it has enough arguments.
17074         (all_callers_have_enough_arguments_p): New function.
17075         (convert_callers): Look for recursive calls only when
17076         encountered_recursive_call is set.
17077         (ipa_early_sra): Bail out either if
17078         !all_callers_have_enough_arguments_p or
17079         encountered_unchangable_recursive_call.
17081 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17083         * sel-sched.c: Add 2010 to copyright years.
17084         * sel-sched-ir.c: Likewise.
17085         * sel-sched-ir.h: Likewise.
17087 2010-01-14  Martin Jambor  <mjambor@suse.cz>
17089         PR tree-optimization/42714
17090         * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
17091         constructors specially.
17093 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17095         * config/i386/drivers-i386.c (detect_caches_intel):
17096         Add l2sizekb parameter and fill in.
17097         (host_detect_local_cpu): Add l2sizekb, fill in.
17098         Add Atom small cache heuristic.
17100 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17102         * config/i386/drivers-i386.c (detect_caches_cpuid4):
17103         Add level3 parameter and fill in.
17104         (detect_caches_intel): Handle level3 cache.
17106 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17108         * config/i386/drivers-i386.c (host_detect_local_cpu):
17109         Fix core duo detection.
17111 2010-01-14  Andi Kleen  <ak@linux.intel.com>
17113         * config/i386/drivers-i386.c (host_detect_local_cpu):
17114         Fix Atom detection.
17116 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17118         * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
17119         (rs6000_variable_issue_1): this.  Use...
17120         (rs6000_variable_issue): here.  Reimplement.  Print debug info.
17122 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17124         * sel-sched-ir.c (sel_restore_other_notes): Rename to
17125         sel_restore_notes.  Update all callers.  Call reemit_notes
17126         for all insns.
17128 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17130         PR rtl-optimization/42246
17131         * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
17132         loops.
17134 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17136         * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
17137         all successors is the same as number of successors in current region.
17139 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17141         * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
17142         to rename is not separable.  Otherwise check that its LHS is not NULL.
17144 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17146         * sel-sched.c (choose_best_reg_1):  Loop over all regs for mode.
17148 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17150         * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
17151         available registers when failed to discover LHS register class.
17152         Fix indentation.  Update comment.
17154 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17155             Alexander Monakov  <amonakov@ispras.ru>
17157         PR rtl-optimization/42389
17158         * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
17159         to can_issue_more.
17160         (advance_state_on_fence): Likewise.
17161         (sel_target_adjust_priority): Print debug output only when
17162         sched_verbose >= 4, not 2.
17163         (get_expr_cost): Do not issue all unique insns on the next cycle.
17164         (fill_insns): Initialize can_issue_more from the value saved
17165         with the fence.
17166         * sel-sched-ir.c (flist_add): New parameter issue_more.
17167         Init FENCE_ISSUE_MORE with it.
17168         (merge_fences): Likewise.
17169         (init_fences): Update call to flist_add.
17170         (add_to_fences, add_clean_fence_to_fences)
17171         (add_dirty_fence_to_fences): Likewise.
17172         (move_fence_to_fences): Update call to merge_fences.
17173         (invoke_reorder_hooks): Do not reset can_issue_more on insns from
17174         sched groups.
17175         * sel-sched-ir.h (struct _fence): New field issue_more.
17176         (FENCE_ISSUE_MORE): New accessor macro.
17178 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17180         PR rtl-optimization/42388
17181         * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
17182         that have no predecessors nor successors.  Do not call move_bb_info
17183         for empty blocks outside of current region.
17185 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17187         PR rtl-optimization/42294
17188         * sel-sched-ir.h (struct _sel_insn_data): Update comment.
17189         * sel-sched.c (move_exprs_to_boundary): Transitively add all
17190         originators' originators.
17192 2010-01-14  Alexander Monakov  <amonakov@ispras.ru>
17194         PR rtl-optimization/39453
17195         PR rtl-optimization/42246
17196         * sel-sched-ir.c (considered_for_pipelining_p): Do not test
17197         for pipelining_p.
17198         (sel_add_loop_preheaders): Add preheader to last_added_blocks.
17200 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17201             Alexander Monakov  <amonakov@ispras.ru>
17203         PR middle-end/42245
17204         * sel-sched-ir.c (sel_recompute_toporder): New.  Use it...
17205         (maybe_tidy_empty_bb): ... here.  Make static.  Add new
17206         argument.  Update all callers.
17207         (tidy_control_flow): ... and here.  Recompute topological order
17208         of basic blocks in region if necessary.
17209         (sel_redirect_edge_and_branch): Change return type.  Return true
17210         if topological order might have been invalidated.
17211         (purge_empty_blocks): Export and move from...
17212         * sel-sched.c (purge_empty_blocks): ... here.
17213         * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
17214         (maybe_tidy_empty_bb): Delete prototype.
17215         (purge_empty_blocks): Declare.
17217 2010-01-14  Andrey Belevantsev  <abel@ispras.ru>
17219         PR rtl-optimization/42249
17220         * sel-sched.c (try_replace_dest_reg): When chosen register
17221         and original register is the same, do not bail out early, but
17222         still check all original insns for validity of replacing destination
17223         register.  Set EXPR_TARGET_AVAILABLE to 1 before leaving function
17224         in this case.
17226 2010-01-14  Jakub Jelinek  <jakub@redhat.com>
17228         PR c/42721
17229         Port from no-undefined-overflow branch:
17230         2009-03-09  Richard Guenther  <rguenther@suse.de>
17232         * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
17234 2010-01-14  Richard Guenther  <rguenther@suse.de>
17236         PR lto/42665
17237         * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
17239 2010-01-14  Ira Rosen  <irar@il.ibm.com>
17241         PR tree-optimization/42709
17242         * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
17243         as scalar type in creation of constant vector operand.
17245 2010-01-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17247         PR testsuite/42414
17248         * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
17249         (check-parallel-%): Match `testsuite' directory component only
17250         at the end.
17252 2010-01-14  Shujing Zhao  <pearly.zhao@oracle.com>
17254         PR translation/39521
17255         * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
17256         strings with _().
17258 2010-01-13  Richard Guenther  <rguenther@suse.de>
17260         PR tree-optimization/42730
17261         * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
17262         offset zero.
17264 2010-01-13  Steve Ellcey  <sje@cup.hp.com>
17266         PR target/pr42542
17267         * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
17268         for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
17269         them signed.
17271 2010-01-13  Bernd Schmidt  <bernd.schmidt@analog.com>
17273         * config/bfin/libgcc-bfin.ver: Regenerate based on current
17274         libgcc-std.ver.  Add entries for ___smulsi3_highpart and
17275         ___umulsi3_highpart.
17277         * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
17278         rather than schedule_insns if the pass is enabled.
17280 2010-01-13  Martin Jambor  <mjambor@suse.cz>
17282         PR tree-optimization/42704
17283         * tree-sra.c (sra_modify_assign): Do not delete assignments to
17284         SSA_NAMEs.
17286 2010-01-13  Martin Jambor  <mjambor@suse.cz>
17288         PR tree-optimization/42703
17289         * tree-sra.c (analyze_access_subtree): Check that we can build a
17290         reference to the original data within the aggregate.
17292 2010-01-13  Richard Guenther  <rguenther@suse.de>
17294         PR tree-optimization/42705
17295         * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
17297 2010-01-13  Richard Guenther  <rguenther@suse.de>
17299         PR middle-end/42716
17300         * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
17302 2010-01-13  Jakub Jelinek  <jakub@redhat.com>
17304         PR debug/41371
17305         * var-tracking.c (values_to_unmark): New variable.
17306         (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
17307         values_to_unmark vector.  Moved body to...
17308         (find_loc_in_1pdv_1): ... this.  Don't clear VALUE_RECURSED_INTO,
17309         instead queue it into values_to_unmark vector.
17310         (vt_find_locations): Free values_to_unmark vector.
17312 2010-01-13  Wolfgang Gellerich  <gellerich@de.ibm.com>
17314         * config/s390/s390.c (override_options): Set
17315         default of max-pending-list-length to 256
17317 2010-01-13  Richard Guenther  <rguenther@suse.de>
17319         PR lto/42678
17320         * tree-pass.h (PROP_gimple_lcx): New.
17321         * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
17322         * passes.c (init_optimization_passes): Move pass_lower_complex_O0
17323         before the final cleanup_eh.
17324         (dump_properties): Dump PROP_gimple_lcx.
17325         * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
17326         (tree_lower_complex_O0): Remove.
17327         (gate_no_optimization): Run if PROP_gimple_lcx is not set.
17328         (pass_lower_complex_O0): Provide PROP_gimple_lcx.  Run
17329         tree_lower_complex, schedule TODO_update_ssa.
17330         * lto-streamer-out.c (output_function): Stream the functions
17331         properties.
17332         * lto-streamer-in.c (input_function): Likewise.
17333         (lto_read_body): Do not override them here.
17335 2010-01-12  Joseph Myers  <joseph@codesourcery.com>
17337         PR c/42708
17338         * c-typeck.c (build_c_cast): Fold value cast to union type before
17339         wrapping it in a CONSTRUCTOR.
17341 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
17343         PR rtl-optimization/42699
17344         * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
17345         involved.
17347 2010-01-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17349         * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
17350         SUBTARGET_WARN_UNUSED_SPEC): Move ...
17351         config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
17352         SUBTARGET_WARN_UNUSED_SPEC): ... here
17353         * config/mips/iris5.h (LIBGCC_SPEC): Define.
17355 2010-01-12  Julian Brown  <julian@codesourcery.com>
17357         * config/arm/neon-schedgen.ml (Utils): Don't try to
17358         open missing module.
17359         (find_with_result): New.
17361 2010-01-12  Jakub Jelinek  <jakub@redhat.com>
17363         PR debug/42662
17364         * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
17365         sharing when canonicalizing ({lt,ge}u (plus a b) b).
17367         PR tree-optimization/42645
17368         * tree-inline.c (processing_debug_stmt): Move earlier.  Make static.
17369         (remap_ssa_name): If processing_debug_stmt and name wasn't found in
17370         decl_map, set processing_debug_stmt to -1 and return name without
17371         any remapping.
17373 2010-01-11  Dave Korn  <dave.korn.cygwin@gmail.com>
17375         * doc/install.texi (Specific#x-x-cygwin): Document minimum required
17376         binutils version, and reword target configuration description.
17378 2010-01-11  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
17380         * config/avr/avr.h (LINKER_NAME): Remove.
17382 2010-01-11  Janis Johnson  <janis187@us.ibm.com>
17384         PR target/42416
17385         * config/rs6000/rs6000.c (rs6000_override_options): On targets
17386         that support VSX, warn for -mno-altivec if vsx is not disabled,
17387         and disable vsx.
17389 2010-01-11  Joseph Myers  <joseph@codesourcery.com>
17390             Shujing Zhao  <pearly.zhao@oracle.com>
17392         PR translation/42469
17393         * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
17394         fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
17395         character between option name and help text.
17396         * c.opt (imultilib): Likewise.
17398 2010-01-10  Rafael Avila de Espindola  <espindola@google.com>
17400         * lto-streamer-out.c (output_unreferenced_globals): Output static
17401         variables.
17403 2010-01-10  Steven Bosscher  <steven@gcc.gnu.org>
17405         PR rtl-optimization/42621
17406         * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
17407         optimizing for size.
17408         (duplicate_computed_gotos): Remove now-redundant check.
17410 2010-01-10  Steve Ellcey  <sje@cup.hp.com>
17412         PR target/37454
17413         * configure.ac: Save and restore LDFLAGS and LIBS
17414         * configure: Regenerate.
17416 2010-01-10  Richard Guenther  <rguenther@suse.de>
17418         PR middle-end/42667
17419         * builtins.c (fold_builtin_strlen): Add type argument and
17420         convert the resulting length to it.
17421         (fold_builtin_1): Adjust.
17423 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
17425         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
17426         sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
17427         1 insn.
17428         (num_insns_constant_wide): Adjust for that change.
17430 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17432         PR debug/42631
17433         * web.c (union_defs): Add used argument, to combine uses of
17434         uninitialized regs.
17435         (entry_register): Adjust type and tests of used argument.
17436         (web_main): Widen used for new use.  Pass it to union_defs.
17437         * df.h (union_defs): Adjust prototype.
17439 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17441         PR debug/42630
17442         * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
17443         uses in new incoming argument.  Free body.
17444         (reset_debug_uses_in_loop): New.
17445         (analyze_insn_to_expand_var): Call the latter if the former found
17446         anything.  Fix whitespace.  Reject invalid dest overlaps before
17447         going through all insns in the loop.
17449 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17451         PR debug/42629
17452         * haifa-sched.c (dying_use_p): Debug insns don't count.
17454 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17456         PR middle-end/42363
17457         * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
17458         * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
17459         (verify_gimple_call): Reject LHS in noreturn calls.
17461 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17463         PR debug/42604
17464         PR debug/42395
17465         * tree-vect-loop-manip.c (adjust_info): New type.
17466         (adjust_vec): New pointer to vector.
17467         (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
17468         (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
17469         (slpeel_update_phis_for_duplicate_loop): Use them.
17470         (slpeel_update_phi_nodes_for_guard1): Likewise.
17471         (slpeel_update_phi_nodes_for_guard2): Likewise.
17472         (slpeel_tree_peel_loop_to_edge): Likewise.
17473         (vect_update_ivs_after_vectorizer): Likewise.
17475 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17477         * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
17478         (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
17480 2010-01-09  Alexandre Oliva  <aoliva@redhat.com>
17482         * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
17483         bogus uninitialized warning.
17485 2010-01-09  Richard Guenther  <rguenther@suse.de>
17487         PR middle-end/42512
17488         * tree-scalar-evolution.c (interpret_loop_phi): Make sure
17489         the evolution is compatible with the initial condition.
17491 2010-01-09  Jakub Jelinek  <jakub@redhat.com>
17493         * gcc.c (process_command): Update copyright notice dates.
17494         * gcov.c (print_version): Likewise.
17495         * gcov-dump.c (print_version): Likewise.
17496         * mips-tfile.c (main): Likewise.
17497         * mips-tdump.c (main): Likewise.
17499 2010-01-08  Andy Hutchinson  <hutchinsonandy@gcc.gnu.org>
17501         PR target/41885
17502         * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
17503         (rotlhi3): Delete.
17504         (rotlhi3_8): Delete.
17505         (rotlsi3): Delete.
17506         (rotlsi3_8): Delete.
17507         (rotlsi3_16): Delete.
17508         (rotlsi3_24): Delete.
17509         (rotl<mode>3): New.
17510         (*rotw<mode>3): New.
17511         (*rotb<mode>3): New.
17512         * config/avr/avr.c (avr_rotate_bytes): New function.
17513         * config/avr/avr-proto.h (avr_rotate_bytes): New function.
17515 2010-01-08  Steve Ellcey  <sje@cup.hp.com>
17517         PR target/37454
17518         * configure.ac: Modify -rdynamic check.
17519         * configure: Regenerate.
17521 2010-01-08  DJ Delorie  <dj@redhat.com>
17523         * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
17524         register popping order.
17526 2010-01-08  Richard Guenther  <rguenther@suse.de>
17528         PR lto/42528
17529         * c.opt (fsigned-char): Also let LTO handle this option.
17530         (funsigned-char): Likewise.
17532 2010-01-07  Richard Guenther  <rguenther@suse.de>
17534         * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
17535         (gimple_op): Likewise.
17536         (gimple_op_ptr): Likewise.
17537         (gimple_assign_set_lhs): Remove gcc_assert.
17538         (gimple_assign_set_rhs1): Likewise.
17539         (gimple_assign_set_rhs2): Likewise.
17540         (gimple_call_set_lhs): Likewise.
17541         (gimple_call_set_fn): Likewise.
17542         (gimple_call_set_fndecl): Likewise.
17543         (gimple_call_fndecl): Likewise.
17544         (gimple_call_return_type): Likewise.
17545         (gimple_call_set_chain): Likewise.
17546         (gimple_call_num_args): Likewise.
17547         (gimple_call_set_arg): Likewise.
17548         (gimple_cond_set_code): Likewise.
17549         (gimple_cond_set_lhs): Likewise.
17550         (gimple_cond_set_rhs): Likewise.
17551         (gimple_cond_set_true_label): Likewise.
17552         (gimple_cond_set_false_label): Likewise.
17553         (gimple_label_set_label): Likewise.
17554         (gimple_goto_set_dest): Likewise.
17555         (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
17556         (gimple_debug_bind_get_value): Likewise.
17557         (gimple_debug_bind_get_value_ptr): Likewise.
17558         (gimple_debug_bind_set_var): Likewise.
17559         (gimple_debug_bind_set_value): Likewise.
17560         (gimple_debug_bind_reset_value): Likewise.
17561         (gimple_debug_bind_has_value_p): Likewise.
17562         (gimple_return_retval_ptr): Remove gcc_assert.
17563         (gimple_return_retval): Likewise.
17564         (gimple_return_set_retval): Likewise.
17565         * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
17566         (safe_referenced_var_iterator): Remove.
17567         (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
17568         * tree-flow-inline.h (gimple_nonlocal_all): Remove.
17569         (fill_referenced_var_vec): Remove.
17570         (first_readonly_imm_use): Remove redundant gcc_assert.
17571         (phi_arg_index_from_use): Combine gcc_asserts.
17572         (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
17573         (first_imm_use_stmt): Remove redundant gcc_assert.
17574         * tree-cfg.c (verify_gimple_call): Verify function and chain
17575         operands.  Verify arguments.
17576         (verify_types_in_gimple_stmt): Verify condition code and labels.
17578 2010-01-07  Richard Guenther  <rguenther@suse.de>
17580         PR tree-optimization/42641
17581         * sese.c (rename_map_elt_info): Use the SSA name version, do
17582         not hash pointers.
17584 2010-01-07  Jakub Jelinek  <jakub@redhat.com>
17586         PR tree-optimization/42625
17587         * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
17588         TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
17590 2010-01-07  Duncan Sands  <baldrick@free.fr>
17592         * Makefile.in (PLUGIN_HEADERS): Add version.h.
17594 2010-01-07  Uros Bizjak  <ubizjak@gmail.com>
17596         PR target/42511
17597         * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
17598         note itself is not function_invariant_p.
17600 2009-01-07  Steven Bosscher  <steven@gcc.gnu.org>
17602         * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
17603         Do not add the DF_NOTE problem.
17604         * store-motion.c (execute_rtl_store_motion): Likewise.
17606 2010-01-07  Martin Jambor  <mjambor@suse.cz>
17608         PR tree-optimization/42157
17609         * tree-sra.c (compare_access_positions): Stabilize sort if both
17610         accesses have integer types, return zero immediately if they are the
17611         same.
17613 2010-01-06  Richard Henderson  <rth@redhat.com>
17615         PR middle-end/41883
17616         * haifa-sched.c (add_to_note_list): Merge into ...
17617         (concat_note_lists): ... here, and ...
17618         (unlink_other_notes, rm_other_notes): Merge into...
17619         (remove_notes): ... here.  Create REG_SAVE_NOTEs for
17620         NOTE_INSN_EPILOGUE_BEG.
17622 2010-01-06  Richard Guenther  <rguenther@suse.de>
17624         * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
17625         not inline regular functions into always-inline functions.
17627 2010-01-06  Nick Clifton  <nickc@redhat.com>
17629         * config/rx/rx.h (enum rx_cpu_type): Add RX200.
17630         (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
17631         used together.
17632         (OVERRIDE_OPTIONS): Delete.
17633         (OPTIMIZATION_OPTIONS): Define.
17634         (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
17635         * config/rx/rx.c (rx_handle_option): Issue an error message if
17636         -mcpu=rx200 and -fpu are used together.
17637         (rx_set_optimization_options): New function.  Issue an error
17638         message if an optimization attribute attempts to reset the FPU/
17639         math optimization pairing.
17640         * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
17641         * config/rx/rx.opt: Set the default to 32-bit doubles.
17642         * config/rx/t-rx: Add multilibs for -nofpu option.
17643         * doc/invoke.texi: Update documentation of RX options.
17645 2010-01-06  Richard Guenther  <rguenther@suse.de>
17647         * tree-ssa-pre.c (name_to_id): New global.
17648         (alloc_expression_id): Simplify SSA name handling.
17649         (lookup_expression_id): Likewise.
17650         (init_pre): Zero name_to_id.
17651         (fini_pre): Free it.
17653 2010-01-06  Uros Bizjak  <ubizjak@gmail.com>
17655         * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
17657 2010-01-05  H.J. Lu  <hongjiu.lu@intel.com>
17659         PR target/42542
17660         * config/i386/sse.md (smaxv2di3): New.
17661         (umaxv2di3): Likewise.
17662         (sminv2di3): Likewise.
17663         (uminv2di3): Likewise.
17665 2010-01-05  Eric Botcazou  <ebotcazou@adacore.com>
17667         PR target/42564
17668         * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
17669         * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
17670         (legitimize_tls_address): Likewise.
17671         (sparc_tls_referenced_p): Likewise.
17672         * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
17673         and adjust calls to legitimize_pic_address.
17674         (legitimate_constant_p) Use sparc_tls_referenced_p.
17675         (legitimate_pic_operand_p): Likewise.
17676         (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
17677         (sparc_tls_symbol_ref_1): Delete.
17678         (sparc_tls_referenced_p): Make static, recognize specific patterns.
17679         (legitimize_tls_address): Make static, handle CONST patterns.
17680         (legitimize_pic_address): Make static, remove unused parameter and
17681         adjust recursive calls.
17682         (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
17683         and adjust call to legitimize_pic_address.
17684         (sparc_output_mi_thunk): Likewise.
17686 2010-01-05  Paolo Bonzini  <bonzini@gnu.rg>
17687             H.J. Lu  <hongjiu.lu@intel.com>
17689         PR target/42542
17690         * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
17691         for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
17692         operands to make them signed.
17694         Revert:
17695         2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
17697         PR target/42542
17698         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
17699         GTU to GT for V4SI and V2DI.
17701         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
17702         (umin<mode>3): Removed.
17703         (uminv8hi3): New.
17704         (uminv4si3): Likewise.
17706 2010-01-05  Martin Jambor  <mjambor@suse.cz>
17708         PR tree-optimization/42462
17709         * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
17710         current_function_decl to helper functions and macros.
17712 2010-01-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17714         PR bootstrap/41771
17715         * flags.h: Don't include real.h.
17716         (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
17717         HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
17718         * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
17719         HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
17720         * dominance.c: Update copyright.
17721         * gimple.c (walk_gimple_op): Remove inline.
17722         * tree-ssa-reassoc.c: Include real.h.
17723         * Makefile.in (FLAGS_H): Remove $(REAL_H).
17724         (tree-ssa-reassoc.o): Depend on $(REAL_H).
17726 2010-01-05  Nick Clifton  <nickc@redhat.com>
17728         * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
17729         register to push into the stack frame when the accumulator has to
17730         be saved during interrupts.
17732 2010-01-05  Eric Fisher  <joefoxreal@gmail.com>
17734         * doc/invoke.texi: Remove the documentation about option
17735         -Wunreachable-code.
17736         * common.opt (Wunreachable-code):  Preserved for backward
17737         compatibility.
17738         * tree-cfg.c: Remove the implementation of -Wunreachable-code.
17739         * opts.c (common_handle_option): Add OPT_Wunreachable_code to
17740         the backward compatibility flag section.
17742 2010-01-05  Richard Guenther  <rguenther@suse.de>
17744         * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
17746 2010-01-05  Jakub Jelinek  <jakub@redhat.com>
17748         PR other/42611
17749         * cfgexpand.c (expand_one_var): Diagnose too large variables.
17751         PR tree-optimization/42508
17752         * tree-sra.c (convert_callers): Check for recursive call
17753         by comparing cgraph nodes instead of decls.
17754         (modify_function): Call ipa_modify_formal_parameters also
17755         on all same_body aliases.
17757         * cgraphunit.c (cgraph_materialize_all_clones): Compare
17758         cgraph nodes when checking for same_body aliases.
17760 2010-01-05  Richard Guenther  <rguenther@suse.de>
17762         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
17763         allocation and lookup.
17764         (get_or_alloc_expr_for_constant): Likewise.
17765         (phi_translate): Sink allocation.
17767 2010-01-04  Richard Guenther  <rguenther@suse.de>
17769         * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
17770         a new entry only if needed.
17771         * tree-ssa-dom.c (lookup_avail_expr): Likewise.
17772         * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
17773         hashtable lookup.
17774         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
17775         the result array.
17776         (phi_translate): Handle CONSTANTs early.
17778 2010-01-04  Martin Jambor  <mjambor@suse.cz>
17780         PR tree-optimization/42398
17781         * tree-sra.c (struct access): Removed flag grp_different_types.
17782         (dump_access): Do not dump the removed flag.
17783         (sort_and_splice_var_accesses): Do not set the removed flag.
17784         (sra_modify_expr): Check for type compatibility directly.
17786 2010-01-04  Martin Jambor  <mjambor@suse.cz>
17788         PR tree-optimization/42366
17789         * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
17790         edges with variable number of parameters.
17791         * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
17792         flag instead of asserting it.
17793         (ipa_read_node_info): Read uses_analysis_done flag.
17795 2010-01-04  Richard Guenther  <rguenther@suse.de>
17797         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
17798         iterative_hash_* as intended.
17799         (vn_reference_compute_hash): Likewise.  Simplify hashing
17800         SSA names.
17801         (vn_reference_lookup_2): Likewise.
17802         (vn_nary_op_compute_hash): Likewise.
17803         (vn_phi_compute_hash): Likewise.
17804         (expressions_equal_p): Remove strange code.
17805         * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
17806         (pre_expr_hash): Likewise.  Simplify hashing SSA names.
17807         (bitmap_insert_into_set_1): Take value-id as parameter.
17808         (add_to_value): Pass it.
17809         (bitmap_insert_into_set): Likewise.
17810         (bitmap_value_insert_into_set): Likewise.  Remove redundant check.
17812 2010-01-04  Jakub Jelinek  <jakub@redhat.com>
17814         PR driver/42442
17815         * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
17816         (do_self_spec): For switches with SWITCH_IGNORE set set also
17817         SWITCH_IGNORE_PERMANENTLY.
17818         (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
17819         of SWITCH_IGNORE.
17821 2010-01-04  Rafael Avila de Espindola  <espindola@google.com>
17823         * lto-streamer-out.c (output_unreferenced_globals): Output the full
17824         tree of an unreferenced global var.
17826 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
17828         PR target/42542
17829         * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
17830         GTU to GT for V4SI and V2DI.
17832         * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
17833         (umin<mode>3): Removed.
17834         (uminv8hi3): New.
17835         (uminv4si3): Likewise.
17837 2010-01-04  H.J. Lu  <hongjiu.lu@intel.com>
17839         PR lto/42581
17840         * collect2.c (main): Turn on trace in collect2 if -v is passed
17841         to gcc with LTO.
17843 2010-01-03  Jerry Quinn  <jlquinn@optonline.net>
17845         * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR.  Update
17846         description of expression operand.
17848 2010-01-03  Andrew Jenner  <andrew@codesourcery.com>
17850         * configure.ac: Add install-html to target_list for Make-hooks.
17851         * configure: Regenerate.
17852         * fortran/Make-lang.in (F95_HTMLFILES): New.
17853         (fortran.html): Use it.
17854         (fortran.install-html): New.
17855         * Makefile.in (install-html): Add lang.install-html.
17856         * java/Make-lang.in (JAVA_HTMLFILES): New.
17857         (java.html): Use it.
17858         (java.install-html): New.
17859         * objc/Make-lang.in (objc.install-html): New.
17860         * objcp/Make-lang.in (obj-c++.install-html): New.
17861         * cp/Make-lang.in (c++.install-html): New.
17862         * ada/gcc-interface/Make-lang.in (ada.install-html): New.
17863         * lto/Make-lang.in (lto.install-html): New.
17865 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
17867         PR lto/42520
17868         * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
17870 2009-01-03  Steven Bosscher  <steven@gcc.gnu.org>
17872         PR rtl-optimization/41862
17873         * store-motion.c (store_killed_in_insn, compute_store_table,
17874         remove_reachable_equiv_notes, replace_store_insn,
17875         build_store_vectors): Ignore all DEBUG_INSNs.
17877 2010-01-03  H.J. Lu  <hongjiu.lu@intel.com>
17879         PR lto/41564
17880         * common.opt: Add dumpdir.
17882         * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
17883         isn't specified.
17884         (option_map): Add --dumpdir.
17886         * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
17888         * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
17890         * opts.c (decode_options): Try dump_dir_name first if
17891         dump_base_name isn't an absolute path.
17892         (common_handle_option): Handle OPT_dumpdir.
17894         * toplev.c (dump_dir_name): New.
17895         (print_switch_values): Also ignore -dumpdir.
17897         * toplev.h (dump_dir_name): New.
17899 2010-01-03  Richard Guenther  <rguenther@suse.de>
17901         PR tree-optimization/42589
17902         * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
17903         double-word expansion of bswap32.
17905 2010-01-03  Steven Bosscher  <steven@gcc.gnu.org>
17907         * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
17908         with BLOCK_FOR_INSN.
17909         * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
17910         * ifcvt.c (noce_get_alt_condition, noce_try_abs,
17911         noce_process_if_block): Likewise.
17912         * gcse.c (compute_local_properties, insert_expr_in_table,
17913         insert_set_in_table, canon_list_insert, find_avail_set,
17914         pre_insert_copy_insn): Likewise.
17916         * basic-block.h (BLOCK_NUM): Move from here...
17917         * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
17919 2010-01-03  Richard Guenther  <rguenther@suse.de>
17921         PR tree-optimization/42438
17922         * tree-ssa-pre.c (struct bb_bitmap_sets): Add
17923         contains_may_not_return_call flag.
17924         (BB_MAY_NOTRETURN): New.
17925         (valid_in_sets): Trapping nary operations are not valid
17926         in blocks that may not return.
17927         (insert_into_preds_of_block): Remove check for trapping expressions.
17928         (compute_avail): Compute also BB_MAY_NOTRETURN.
17930 2010-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
17932         * doc/invoke.texi: Add 2010 to copyright years.
17934 2010-01-03  Eric Botcazou  <ebotcazou@adacore.com>
17936         * config/sparc/sparc.c: Fix formatting nits.
17938 2010-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
17939             Alexander Monakov  <amonakov@ispras.ru>
17941         * doc/invoke.texi (Optimize Options): Reword introduction a bit.
17943 2010-01-02  Richard Guenther  <rguenther@suse.de>
17945         PR middle-end/42577
17946         * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
17947         (simplify_switch_using_ranges): Mark to be removed edges
17948         as non-executable.
17950 2010-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
17952         * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
17954         * collect2.c (scan_libraries): Add missing argument in call to
17955         scan_prog_file.
17957 2010-01-02  Uros Bizjak  <ubizjak@gmail.com>
17959         PR target/42448
17960         * config/alpha/predicates.md (aligned_memory_operand): Return false
17961         for CQImode.
17962         (unaligned_memory_operand): Return true for CQImode.
17963         * config/alpha/alpha.c (get_aligned_mem): Assert that location
17964         doesn not cross aligned SImode word boundary.
17966 2010-01-02  Anatoly Sokolov  <aesok@post.ru>
17968         * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
17969         Remove.
17970         * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
17971         avr_change_section, avr_reg_class_from_letter) : Remove declaration.
17973 2010-01-02  Richard Guenther  <rguenther@suse.de>
17975         PR lto/41597
17976         * toplev.c (compile_file): Emit LTO marker properly.  Change
17977         it to __gnu_lto_v1.
17978         * collect2.c (scan_prog_file): Adjust for changed LTO marker.
17980 2010-01-01  Richard Guenther  <rguenther@suse.de>
17982         PR debug/42455
17983         * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
17985 2010-01-01  Richard Guenther  <rguenther@suse.de>
17987         PR c/42570
17988         * c-decl.c (grokdeclarator): For zero-size arrays force
17989         structural equality checks as layout_type does.
17991 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
17993         * builtins.c: Update copyright to 2010.
17995 2010-01-01  H.J. Lu  <hongjiu.lu@intel.com>
17997         PR lto/42531
17998         * lto-streamer-out.c (produce_asm): Revert the last change.
17999         (copy_function): Likewise.
18001         * lto-streamer.c (lto_get_section_name): Skip any leading
18002         asterisk in name.
18004 2010-01-01  Richard Guenther  <rguenther@suse.de>
18006         PR middle-end/42559
18007         * builtins.c (get_object_alignment): Do not use DECL_ALIGN
18008         for LABEL_DECLs.
18011 Copyright (C) 2010 Free Software Foundation, Inc.
18013 Copying and distribution of this file, with or without modification,
18014 are permitted in any medium without royalty provided the copyright
18015 notice and this notice are preserved.