1 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
3 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
4 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
5 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
6 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
7 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
8 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
9 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
10 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
11 (sync_new_nand_optab): Redefine as macros.
12 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
14 (direct_optab_index): New enum.
15 (direct_optab_d): New structure.
16 (direct_optab): New typedef.
17 (direct_optab_table): Declare.
18 (direct_optab_handler, set_direct_optab_handler): New functions.
19 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
20 (sync_lock_release_optab): New macros.
21 * optabs.c (direct_optab_table): New variable.
22 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
23 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
24 cmpstr_optab and cmpstrn_optab.
25 (emit_conditional_move): Likewise for movcc_optab.
26 (can_conditionally_move_p): Likewise for movcc_gen_code.
27 (init_insn_codes): Clear direct_optab_table.
28 (init_optabs): Don't initialize the new "direct optabs" here.
29 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
31 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
32 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
33 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
34 (expand_sync_operation): Likewise other sync_*_optabs.
35 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
36 to sync_compare_and_swap_optab.
37 (expand_sync_lock_test_and_set): Use direct_optab_handler for
38 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
40 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
41 cmpstr_optab and cmpstrn_optab.
42 (expand_builtin_lock_release): Likewise sync_lock_release.
43 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
44 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
45 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
46 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
47 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
48 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
49 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
50 (sync_lock_test_and_set, sync_lock_release): Delete.
51 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
52 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
53 * genopinit.c (optabs): Use set_direct_optab_handler for the new
55 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
56 the "optab" local variable. Use direct_optab_handler for optab and
57 sync_compare_and_swap_optab.
58 * reload1.c (reload_in_optab, reload_out_optab): Delete.
59 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
60 reload_in_optab and reload_out_optab.
61 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
62 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
63 * config/pa/pa.c (pa_secondary_reload): Likewise.
64 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
65 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
66 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
67 (VMSupportsCS8_builtin): Likewise.
69 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
71 * optabs.h (optab_handlers): Change type of insn_code to int.
72 (optab_handler, set_optab_handler, convert_optab_handler)
73 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
75 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
76 (init_insn_codes): Zero both the above arrays.
77 (init_optabs): Never call init_insn_codes first time around.
79 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
81 * optabs.h (optab_handler, convert_optab_handler): Turn into
82 inline functions that return an insn code.
83 (set_optab_handler, set_convert_optab_handler): New functions.
84 * builtins.c: Replace optab_handler(X)->insn_code with
85 optab_handler or set_optab_handler thoughout. Likewise
86 convert_optab_handler(X)->insn_code with convert_optab_handler
87 and set_convert_optab_handler.
88 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
89 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
90 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
91 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
92 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
93 config/spu/spu.c: Likewise.
95 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
98 * config.gcc (sh*-*-*): Use regular expressions instead of
99 the 'i' modifier for sed substitutions.
101 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
103 * gimple.c (gimple_body): Comments added.
105 2010-07-04 Richard Guenther <rguenther@suse.de>
108 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
111 2010-07-04 Richard Guenther <rguenther@suse.de>
113 PR tree-optimization/44479
114 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
115 extra SSA name copy statements which preserves points-to
117 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
118 Copy points-to information for all pointers. Properly handle
120 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
122 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
125 2010-07-04 Richard Guenther <rguenther@suse.de>
128 * tree-inline.c (initialize_inlined_parameters): Do not
129 re-use pointer-map slot over remap_type call.
131 2010-07-04 Richard Guenther <rguenther@suse.de>
133 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
135 2010-07-04 Richard Guenther <rguenther@suse.de>
137 PR tree-optimization/44656
138 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
139 again after value-replacing in the defintions lhs.
141 2010-07-04 Ira Rosen <irar@il.ibm.com>
142 Revital Eres <eres@il.ibm.com>
144 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
145 Document new arguments.
146 * doc/tm.texi: Regenerate.
147 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
148 Handle unaligned store.
149 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
150 * target.def (builtin_vectorization_cost): Add new arguments.
151 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
152 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
153 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
154 (vect_vfa_segment_size): Fix indentation.
155 * tree-vectorizer.h (struct _vect_peel_info): New.
156 (struct _vect_peel_extended_info): New.
157 (struct _loop_vec_info): Add new field for peeling hash table and a
158 macro for its access.
159 (VECT_MAX_COST): Define.
160 (vect_get_load_cost): Declare.
161 (vect_get_store_cost, vect_get_known_peeling_cost,
162 vect_get_single_scalar_iteraion_cost): Likewise.
163 (vect_supportable_dr_alignment): Add new argument.
164 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
166 (destroy_loop_vec_info): Free peeling hash table.
167 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
168 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
169 vect_analyze_slp. Fix indentation.
170 (vect_get_single_scalar_iteraion_cost): New function.
171 (vect_get_known_peeling_cost): Likewise.
172 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
173 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
174 statement. Move outside cost calculation inside unknown peeling case.
175 Call vect_get_known_peeling_cost for known amount of peeling.
176 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
177 reference to the print message of forced alignment.
178 (vect_verify_datarefs_alignment): Update call to
179 vect_supportable_dr_alignment.
180 (vect_get_data_access_cost): New function.
181 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
182 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
183 vect_peeling_hash_choose_best_peeling): Likewise.
184 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
185 to store all the accesses in the loop and find best possible access to
186 align using peeling for known alignment case. For unknown alignment
187 check if stores are preferred or if peeling is worthy.
188 (vect_find_same_alignment_drs): Analyze pairs of loads too.
189 (vect_supportable_dr_alignment): Add new argument and check aligned
190 accesses according to it.
191 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
192 (cost_for_stmt): Call vect_get_stmt_cost.
193 (vect_model_simple_cost): Likewise.
194 (vect_model_store_cost): Call vect_get_stmt_cost. Call
195 vect_get_store_cost to calculate the cost of the statement.
196 (vect_get_store_cost): New function.
197 (vect_model_load_cost): Call vect_get_stmt_cost. Call
198 vect_get_load_cost to calculate the cost of the statement.
199 (vect_get_load_cost): New function.
200 (vectorizable_store): Update call to vect_supportable_dr_alignment.
201 (vectorizable_load): Likewise.
202 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new
204 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
205 arguments. Handle unaligned store.
206 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
207 (rs6000_builtin_support_vector_misalignment): Return true for word and
208 double word alignments for VSX.
209 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
210 vect_supportable_dr_alignment and builtin_vectorization_cost.
212 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
215 * config/pa/predicates.md (prefetch_cc_operand): Remove.
216 (prefetch_nocc_operand): Likewise.
217 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
218 (prefetch_20): New insn.
219 (prefetch_cc): Remove.
220 (prefetch_nocc): Likewise.
222 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
224 * expr.c (vector_mode_valid_p): Move to c-common.c.
225 * expr.h (vector_mode_valid_p): Do not declare here.
226 * system.h: Poison GCC_EXPR_H in front-ends.
227 * Makefile.in: Update dependencies.
229 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
232 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
234 2010-07-03 Jan Hubicka <jh@suse.cz>
236 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
237 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
238 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
239 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
242 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
244 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
245 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
246 TV_IPA_LTO_DECL_OUT): New.
247 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
249 2010-07-03 Jan Hubicka <jh@suse.cz>
251 * ipa-inline.c (update_edge_key): Break out from ...
252 update_callers_keys): ... here;
253 (update_callee_keys): Update only the edges from caller to callee.
254 (update_all_calle_keys): Do what update_calle_keys did.
255 (decide_inlining_of_small_functions): Avoid recomputing of all
256 callees when badness increase.
258 2010-07-03 Jie Zhang <jie@codesourcery.com>
260 * config/arm/arm.c (arm_attr_length_move_neon): New.
261 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
262 * config/arm/neon.md (define_mode_attr V_slen): Remove.
263 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
264 to compute length attribute.
266 2010-07-03 Jie Zhang <jie@codesourcery.com>
268 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
269 as predicate for operand 1 and remove its constraint.
270 * config/arm/predicates.md (vfp_register_operand): New.
271 * config/arm/arm.md (*push_multi): Remove the constraint of
273 (*push_fp_multi): Likewise.
275 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
277 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
279 2010-07-03 Jan Hubicka <jh@suse.cz>
281 * config/i386/i386.c (override_options): Revert accidental commit.
283 2010-07-02 Le-Chun Wu <lcwu@google.com>
286 * doc/invoke.texi: Update documentation of -Wshadow.
288 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
289 Julian Brown <julian@codesourcery.com>
290 Sandra Loosemore <sandra@codesourcery.com>
292 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
293 comparisons. Adjust to take both operands.
294 (arm_select_cc_mode): Handle DImode comparisons.
295 (arm_gen_compare_reg): Generate a scratch register for DImode
296 comparisons which require one. Use xor for Thumb equality checks.
297 (arm_const_double_by_immediates): New.
298 (arm_print_operand): Allow 'Q' and 'R' for constants.
299 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
300 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
301 arm_canonicalize_comparison.
302 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
303 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
305 (arm_const_double_by_immediates): Declare.
306 * config/arm/constraints.md (Di): New constraint.
307 * config/arm/predicates.md (arm_immediate_di_operand)
308 (arm_di_operand, cmpdi_operand): New.
309 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
310 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
311 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
312 (cstoredi4): Handle non-Cirrus also.
314 2010-07-02 Julian Brown <julian@codesourcery.com>
315 Sandra Loosemore <sandra@codesourcery.com>
318 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
319 (smax<mode>3): Disable for NEON float modes when
320 flag_unsafe_math_optimizations is false.
321 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
323 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
324 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
325 for NEON float modes when flag_unsafe_math_optimizations is false.
326 (quad_halves_<code>v4sf): Only enable if flag_unsafe_math_optimizations
328 * doc/invoke.texi (ARM Options): Add note about floating point
329 vectorization requiring -funsafe-math-optimizations.
331 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
332 Julian Brown <julian@codesourcery.com>
334 * config/arm/neon.md (UNSPEC_VABA): Delete.
335 (UNSPEC_VABAL): Delete.
336 (UNSPEC_VABS): Delete.
337 (UNSPEC_VMUL_N): Delete.
340 (mul<mode>3add<mode>_neon): Make the pattern named.
341 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
342 (neon_vadd<mode>): Replace with define_expand, and move the remaining
344 (neon_vadd<mode>_unspec): ...to this.
345 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
346 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
347 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
348 (neon_vaba<mode>): Rewrite in terms of vabd.
349 (neon_vabal<mode>): Rewrite in terms of vabdl.
350 (neon_vabs<mode>): Rewrite without unspec.
351 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
352 (*arm_subdi3): Likewise.
353 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
354 No_op attribute to disable assembly output checks.
355 * config/arm/arm_neon.h: Regenerated.
356 * doc/arm-neon-intrinsics.texi: Regenerated.
358 2010-07-02 Jan Hubicka <jh@suse.cz>
360 * ipa-split.c (split_function): For aggregate values, set the return
361 slot optimization bit. When passing DECL_BY_REFERENCE, produce
362 *<retval> = fncall.part ()
363 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
365 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
367 * config/arm/neon.md (UNSPEC_VAND): Delete.
368 (UNSPEC_VBIC): Delete.
369 (UNSPEC_VCLZ): Delete.
370 (UNSPEC_VCNT): Delete.
371 (UNSPEC_VEOR): Delete.
372 (UNSPEC_VORN): Delete.
373 (UNSPEC_VORR): Delete.
374 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
376 (anddi3_neon): Likewise.
377 (orndi3_neon): Likewise.
378 (bicdi3_neon): Likewise.
379 (xordi3_neon): Likewise.
380 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
381 rid of unspec and handle unused operand.
382 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
383 * config/arm/predicates.md (imm_for_neon_logic_operand):
385 (imm_for_neon_inv_logic_operand): Likewise.
386 * config/arm/arm.md (define_split for logical_binary_operator):
387 Disable for NEON registers.
388 (anddi3): Add new define_expand, and rename the insn. Disable
389 this insn for NEON, where anddi3_neon now applies.
390 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
391 (iordi3): As for anddi3.
393 * config/arm/neon.ml (Vand): Split DImode variants and mark them
394 as No_op to disable testing for exact instruction match.
399 * config/arm/arm_neon.h: Regenerated.
400 * doc/arm-neon-intrinsics.texi: Regenerated.
402 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
404 * expr.h (emit_stack_probe): Declare.
405 * explow.c (emit_stack_probe): Make global.
406 (anti_adjust_stack_and_probe): Fix comments.
407 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
408 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
409 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
410 * config/sparc/sparc.c: Include except.h.
411 (sparc_emit_probe_stack_range): New function.
412 (output_probe_stack_range): Likewise.
413 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
414 built-in stack checking is enabled.
415 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
416 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
417 (probe_stack_range): New insn.
419 2010-07-02 Richard Guenther <rguenther@suse.de>
422 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
423 for argument alignment.
425 2010-07-02 Jan Hubicka <jh@suse.cz>
427 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
428 walk backwards from entry_bb to check only those basic block of header
429 that might lead to execution of split part.
430 (consider_split) ... here.
431 (find_return_bb): Allow assignment in return BB.
433 (split_function): Fix name of cloned function; take care of updating
434 return value in return_bb containing move.
436 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
439 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
442 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
444 * implicit-zee.c (combine_reaching_defs): Fix long lines.
445 (is_set_with_extension_DI): Delete.
446 (struct zero_extend_info): New structure.
447 (add_removable_zero_extend): New function.
448 (find_removable_zero_extends): Use note_stores to find SETs.
449 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
451 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
453 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
454 is_miss_rate_acceptable. Pull total_positions computation
455 out of the loops. Early return if miss_positions exceeds
456 the acceptable threshold.
457 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
458 is_miss_rate_acceptable after renaming of compute_miss_rate.
460 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
463 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
464 of 1000) for miss rate if the address diference is greater than or
465 equal to the cache line size (the two reference will never hit the
468 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
471 * config/arm/arm-modes.def (CC_NOTB): New mode.
472 * config/arm/arm.c (get_arm_condition_code): Handle it.
473 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
474 * config/arm/arm.md (subsi3_compare0_c): New pattern.
475 (compare_scc): Now a define_and_split. Add a number of extra
479 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
481 (arm_rtx_costs_1): Likewise.
482 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
483 * config/arm/arm.md (is_arch6): New attribute.
484 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
485 extendqisi2): Tighten the code somewhat, avoiding invalid
486 RTL to occur in the expander patterns.
487 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
488 (thumb1_zero_extendhisi2_v6): Delete.
489 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
490 (thumb1_extendhisi2_v6): Delete.
491 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
492 (thumb1_extendqisi2_v6): Delete.
493 (zero_extendhisi2 for register input splitter): New.
494 (zero_extendqisi2 for register input splitter): New.
495 (thumb1_extendhisi2 for register input splitter): New.
496 (extendhisi2 for register input splitter): New.
497 (extendqisi2 for register input splitter): New.
498 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
499 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
500 and add support for a register alternative requiring a split.
501 (thumb1_zero_extendqisi2): Likewise.
502 (arm_zero_extendqisi2): Likewise.
503 (arm_extendhisi2): Likewise.
504 (arm_extendqisi2): Likewise.
506 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
508 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
509 instead of an unspec.
510 (neon_expand_vector_init): Likewise.
511 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
512 (UNSPEC_VDUP_LANE): Delete.
513 (UNSPEC VDUP_N): Delete.
514 (UNSPEC_VGET_HIGH): Delete.
515 (UNSPEC_VGET_LANE): Delete.
516 (UNSPEC_VGET_LOW): Delete.
517 (UNSPEC_VMVN): Delete.
518 (UNSPEC_VSET_LANE): Delete.
519 (V_double_vector_mode): New.
520 (vec_set<mode>_internal): Make code emitted match that for the
521 corresponding intrinsics.
522 (vec_setv2di_internal): Likewise.
523 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
524 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
525 (neon_vset_lane<mode>): Combine double and quad patterns and
526 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
527 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
528 (neon_vdup_n<mode>): Rewrite RTL without unspec.
529 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
530 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
531 with neon_vdup_lanev2di, adjusting the pattern from the latter
532 to be predicable for consistency.
533 (neon_vdup_lane<mode>_internal): New.
534 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
535 to avoid using an unspec.
536 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
537 (neon_vdup_lanev2di): Turn into a define_expand.
538 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
539 (neon_vget_high<mode>): Replace with....
540 (neon_vget_highv16qi): New pattern using canonical RTL.
541 (neon_vget_highv8hi): Likewise.
542 (neon_vget_highv4si): Likewise.
543 (neon_vget_highv4sf): Likewise.
544 (neon_vget_highv2di): Likewise.
545 (neon_vget_low<mode>): Replace with....
546 (neon_vget_lowv16qi): New pattern using canonical RTL.
547 (neon_vget_lowv8hi): Likewise.
548 (neon_vget_lowv4si): Likewise.
549 (neon_vget_lowv4sf): Likewise.
550 (neon_vget_lowv2di): Likewise.
552 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
553 test for this emitting vmov.
554 (Vset_lane): Likewise.
558 * doc/arm-neon-intrinsics.texi: Regenerated.
560 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
562 * config/arm/neon.md (vec_extractv2di): Correct error in register
563 numbering to reconcile with neon_vget_lanev2di.
565 2010-07-02 Richard Guenther <rguenther@suse.de>
567 * tree-ssa-structalias.c (pt_solution_set_var): New function.
568 * tree-ssa-alias.h (pt_solution_set_var): Declare.
569 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
570 points-to information.
572 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
574 * config/s390/s390.c (override_options): Adopt prefetching
575 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
577 2010-07-02 Jan Hubicka <jh@suse.cz>
579 * df-problems.c (df_kill_notes): Do not collect dead notes.
580 (df_set_note): Just call add_reg_note.
581 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
582 df_create_unused_note): Do not deal with lists of old notes.
583 (df_note_bb_compute): Likewise.
585 2010-07-02 Richard Guenther <rguenther@suse.de>
587 * tree-ssa-structalias.c (find_func_aliases): Handle
588 pointer alignment via BIT_AND_EXPR.
589 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
591 2010-07-02 Richard Guenther <rguenther@suse.de>
593 * tree-data-ref.c (initialize_data_dependence_relation): Handle
594 mismatching number of dimensions properly.
596 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
599 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
600 (lo_sum (high ...) ...) patterns generated by earlier passes.
602 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
604 * doc/install.texi (Prerequisites): Document Perl requirement on
606 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
608 2010-07-02 Richard Guenther <rguenther@suse.de>
611 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
613 2010-07-02 Jan Hubicka <jh@suse.cz>
616 * predict.c (predict_paths_for_bb): Handle case when control dependence
617 BB has only abnormal edges.
619 2010-07-02 Richard Guenther <rguenther@suse.de>
621 PR tree-optimization/44748
622 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
623 the embedded conversion in MEM_REFs.
625 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
627 * reload.c: Include toplev.h.
629 * Makefile.in: Adjust dependencies.
631 2010-07-01 Jakub Jelinek <jakub@redhat.com>
634 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
635 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
637 2010-07-01 Richard Guenther <rguenther@suse.de>
639 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
642 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
645 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
647 * config/ia64/ia64.c (ia64_register_move_cost): Fix argument types.
649 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
652 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
653 Make sure operand 0 dies.
655 2010-07-01 Richard Guenther <rguenther@suse.de>
659 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
660 * doc/generic.texi (References to storage): Document MEM_REF.
661 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
662 (print_call_name): Likewise.
663 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
664 (build_simple_mem_ref_loc): New function.
665 (mem_ref_offset): Likewise.
666 * tree.h (build_simple_mem_ref_loc): Declare.
667 (build_simple_mem_ref): Define.
668 (mem_ref_offset): Declare.
669 * fold-const.c: Include tree-flow.h.
670 (operand_equal_p): Handle MEM_REF.
671 (build_fold_addr_expr_with_type_loc): Likewise.
672 (fold_comparison): Likewise.
673 (fold_unary_loc): Fold
674 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
675 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
676 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
677 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
678 (ptr_deref_may_alias_ref_p_1): Likewise.
679 (ao_ref_base_alias_set): Properly differentiate base object for
681 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
682 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
683 (indirect_refs_may_alias_p): Likewise.
684 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
686 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
687 (call_may_clobber_ref_p_1): Likewise.
688 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
689 * expr.c (expand_assignment): Handle MEM_REF.
690 (store_expr): Handle MEM_REFs from STRING_CSTs.
691 (store_field): If expanding a MEM_REF of a non-addressable
692 decl use bitfield operations.
693 (get_inner_reference): Handle MEM_REF.
694 (expand_expr_addr_expr_1): Likewise.
695 (expand_expr_real_1): Likewise.
696 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
697 * alias.c (ao_ref_from_mem): Handle MEM_REF.
698 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
699 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
700 (dr_analyze_indices): Likewise.
701 (dr_analyze_alias): Likewise.
702 (object_address_invariant_in_loop_p): Likewise.
703 * gimplify.c (mark_addressable): Handle MEM_REF.
704 (gimplify_cond_expr): Build MEM_REFs.
705 (gimplify_modify_expr_to_memcpy): Likewise.
706 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
707 (gimple_fold_indirect_ref): Adjust.
708 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
709 * tree.def (MEM_REF): New tree code.
710 * tree-dfa.c: Include toplev.h.
711 (get_ref_base_and_extent): Handle MEM_REF.
712 (get_addr_base_and_unit_offset): New function.
713 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
714 * gimple-fold.c (may_propagate_address_into_dereference): Handle
716 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
717 accesses if the array has just one dimension. Remove always true
718 parameter. Do not require type compatibility here.
719 (maybe_fold_offset_to_component_ref): Remove.
720 (maybe_fold_stmt_indirect): Remove.
721 (maybe_fold_reference): Remove INDIRECT_REF handling.
722 Fold back to non-MEM_REF.
723 (maybe_fold_offset_to_address): Simplify. Deal with type
725 (maybe_fold_reference): Likewise.
726 (maybe_fold_stmt_addition): Likewise. Also handle
727 &ARRAY + I in addition to &ARRAY[0] + I.
728 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
729 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
730 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
731 * tree-ssa.c (useless_type_conversion_p): Make most pointer
733 (warn_uninitialized_var): Handle MEM_REF.
734 (maybe_rewrite_mem_ref_base): New function.
735 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
737 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
738 INDIRECT_REF handling.
739 (copy_tree_body_r): Handle MEM_REF.
740 * gimple.c (is_gimple_addressable): Adjust.
741 (is_gimple_address): Likewise.
742 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
743 invariant base are invariant.
744 (is_gimple_min_lval): Adjust.
745 (is_gimple_mem_ref_addr): New function.
746 (get_base_address): Handle MEM_REF.
747 (count_ptr_derefs): Likewise.
748 (get_base_loadstore): Likewise.
749 * gimple.h (is_gimple_mem_ref_addr): Declare.
750 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
751 * tree-cfg.c (verify_address): New function, split out from ...
752 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
753 the address operand of MEM_REFs. Verify MEM_REFs. Reject
755 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
756 INDIRECT_REF. Allow conversions.
757 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
758 a register does not change its size.
759 (verify_types_in_gimple_reference): Verify MEM_REF.
760 (verify_gimple_assign_single): Disallow INDIRECT_REF.
762 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
764 (mark_address_taken): Handle MEM_REF.
765 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
766 (get_asm_expr_operands): Pass opf_not_non_addressable.
767 (get_expr_operands): Handle opf_[not_]non_addressable.
768 Handle MEM_REF. Remove INDIRECT_REF handling.
769 * tree-vrp.c: (check_array_ref): Handle MEM_REF.
770 (search_for_addr_array): Likewise.
771 (check_array_bounds): Likewise.
772 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
773 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
774 (ref_always_accessed_p): Likewise.
775 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
776 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
778 * cgraphbuild.c (mark_load): Properly check for NULL result
779 from get_base_address.
780 (mark_store): Likewise.
781 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
782 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
783 handling for MEM_REF.
784 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
785 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
786 * builtins.c (stabilize_va_list_loc): Use the function ABI
787 valist type if we couldn't canonicalize the argument type.
788 Always dereference with the canonical va-list type.
789 (maybe_emit_free_warning): Handle MEM_REF.
790 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
792 * builtins.c (fold_builtin_memory_op): Use ref-all types
793 for all memcpy foldings.
794 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
795 (build_outer_var_ref): Likewise.
796 (scan_omp_1_op): Likewise.
797 (lower_rec_input_clauses): Likewise.
798 (lower_lastprivate_clauses): Likewise.
799 (lower_reduction_clauses): Likewise.
800 (lower_copyprivate_clauses): Likewise.
801 (expand_omp_atomic_pipeline): Likewise.
802 (expand_omp_atomic_mutex): Likewise.
803 (create_task_copyfn): Likewise.
804 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
805 Remove old union trick. Initialize constant offsets.
806 (ao_ref_init_from_vn_reference): Likewise. Do not handle
807 INDIRECT_REF. Init base_alias_set properly.
808 (vn_reference_lookup_3): Replace INDIRECT_REF handling with
810 (vn_reference_fold_indirect): Adjust for MEM_REFs.
811 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
813 (may_insert): Remove.
814 (visit_reference_op_load): Do not test may_insert.
815 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
816 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
817 a field to store the constant offset this op applies.
818 (run_scc_vn): Adjust prototype.
819 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
820 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
821 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
822 bother about volatile qualifiers on pointers.
823 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
824 * tree-ssa-loop-ivopts.c
825 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust
827 (strip_offset_1): Likewise.
828 (find_interesting_uses_address): Replace INDIRECT_REF handling with
830 (get_computation_cost_at): Likewise.
831 * ipa-pure-const.c (check_op): Handle MEM_REF.
832 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
833 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
835 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
836 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
837 (eliminate_local_variables_1): Likewise.
838 (create_call_for_reduction_1): Likewise.
839 (create_loads_for_reductions): Likewise.
840 (create_loads_and_stores_for_name): Likewise.
841 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
842 (ssa_accessed_in_tree): Handle MEM_REF.
843 (ssa_accessed_in_assign_rhs): Likewise.
844 (update_type_size): Likewise.
845 (analyze_accesses_for_call_stmt): Likewise.
846 (analyze_accesses_for_assign_stmt): Likewise.
847 (transform_access_sites): Likewise.
848 (transform_allocation_sites): Likewise.
849 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
850 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
851 not handle INDIRECT_REF.
852 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
853 (cond_store_replacement): Likewise.
854 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
855 MEM_REF, no not handle INDIRECT_REFs.
856 (insert_into_preds_of_block): Properly initialize avail.
857 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
858 for ARRAY_REFs. Properly handle reference lookups that
859 require a bit re-interpretation.
860 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
862 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
863 (build_ref_for_offset_1): Remove.
864 (build_ref_for_offset): Build MEM_REFs.
865 (gate_intra_sra): Disable for now.
866 (sra_ipa_modify_expr): Handle MEM_REF.
867 (ipa_early_sra_gate): Disable for now.
868 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
870 (disqualify_base_of_expr): Likewise.
871 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
873 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
874 Use mem_ref_offset. Remove bogus folding.
875 (build_access_from_expr_1): Properly handle MEM_REF for
877 (make_fancy_name_1): Add support for MEM_REF.
878 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
879 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
880 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
881 (compute_complex_ancestor_jump_func): Likewise.
882 (ipa_analyze_virtual_call_uses): Likewise.
883 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
884 INDIRECT_REF folding with more generalized MEM_REF folding.
885 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
886 (forward_propagate_addr_into_variable_array_index): Also handle
887 &ARRAY + I in addition to &ARRAY[0] + I.
888 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
889 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
890 creates assignments with overlap.
891 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
892 (get_frame_field): Likewise.
893 (get_nonlocal_debug_decl): Likewise.
894 (convert_nonlocal_reference_op): Likewise.
895 (struct nesting_info): Add mem_refs pointer-set.
896 (create_nesting_tree): Allocate it.
897 (convert_local_reference_op): Insert to be folded mem-refs.
898 (fold_mem_refs): New function.
899 (finalize_nesting_tree_1): Perform defered folding of mem-refs
900 (free_nesting_tree): Free the pointer-set.
901 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
902 (vectorizable_load): Likewise.
903 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
904 (propagate_with_phi): Likewise.
905 * tree-object-size.c (addr_object_size): Handle MEM_REFs
906 instead of INDIRECT_REFs.
907 (compute_object_offset): Handle MEM_REF.
908 (plus_stmt_object_size): Handle MEM_REF.
909 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
911 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
912 (symbol_marked_for_renaming): Likewise.
913 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
914 (fold-const.o): Add $(TREE_FLOW_H).
915 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
916 (find_func_clobbers): Likewise.
917 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
918 (decompose_access): Likewise.
919 (replace_field_acc): Likewise.
920 (replace_field_access_stmt): Likewise.
921 (insert_new_var_in_stmt): Likewise.
922 (get_stmt_accesses): Likewise.
923 (reorg_structs_drive): Disable.
924 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
925 (ix86_canonical_va_list_type): Likewise.
927 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
930 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
931 * target.def (struct gcc_target): Replace enum reg_class with
932 reg_class_t in hook argument / return types.
933 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
934 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
935 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
936 * targhooks.h (default_branch_target_register_class): Likewise.
937 (default_ira_cover_classes, default_secondary_reload): Likewise.
938 (default_memory_move_cost, default_register_move_cost): Likewise.
939 * targhooks.c (default_branch_target_register_class): Likewise.
940 (default_ira_cover_classes, default_secondary_reload): Likewise.
941 (default_memory_move_cost, default_register_move_cost): Likewise.
942 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
943 * bt-load.c (branch_target_load_optimize): Likewise.
944 * ira.c (setup_cover_and_important_classes): Likewise.
945 * ira-costs.c (copy_cost): Likewise.
946 * reload1.c (emit_input_reload_insns): Likewise.
947 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
948 * config/frv/frv.c (frv_secondary_reload): Likewise.
949 * config/s390/s390.c (s390_secondary_reload): Likewise.
950 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
951 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
952 (ix86_register_move_cost): Likewise.
953 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
954 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
955 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
956 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
957 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
958 (rs6000_ira_cover_classes): Likewise.
959 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
960 * config/picochip/picochip-protos.h (picochip_secondary_reload):
962 * config/pa/pa.c (pa_secondary_reload): Likewise.
963 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
964 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
965 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
966 * doc/tm.texi: Regenerate.
968 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
971 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
973 (build_alias_set_optimal_p): Likewise.
974 (build_base_obj_set_for_drs): Likewise.
976 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
978 * target.def: Remove comment about licensing problems of function
981 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
982 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
983 * doc/tm.texi: Regenerate.
985 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
986 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
988 * target.def (enum_va_list_p): Use DEFHOOK.
989 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
990 Rename ptype to ptree.
991 * doc/tm.texi: Regenerate.
993 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
994 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
995 * doc/tm.texi: Regenerate.
997 * target.def (memory_move_cost): Use DEFHOOK.
998 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
999 Rename regclass AKA class to rclass.
1000 * doc/tm.texi: Regenerate.
1002 * target.def (pragma_parse): Use DEFHOOK.
1003 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
1004 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
1005 * doc/tm.texi: Regenerate.
1007 * target.def (pass_by_reference): Use DEFHOOK.
1008 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
1009 * doc/tm.texi: Regenerate.
1011 * target.def (resolve_overloaded_builtin): Rename params to arglist.
1013 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
1014 * doc/tm.texi: Regenerate.
1016 * target.def (return_pops_args): Use DEFHOOK.
1017 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
1018 Rename stack-size to size.
1019 * doc/tm.texi: Regenerate.
1021 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
1022 last-sched_cycle to last_clock, cur_cycle to clock.
1023 * doc/tm.texi.in: Use @hook.
1024 * doc/tm.texi: Regenerate.
1026 * target.def (print_operand, print_operand_address): Update comment.
1027 (print_operand_punct_valid_p): Likewise.
1029 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1031 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
1033 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
1034 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations
1037 * regrename.c: Do not include toplev.h. Include rtl-error.h.
1038 * rtl-error.c: Likewise.
1039 * reload.c: Likewise.
1040 * recog.c: Likewise.
1041 * sel-sched.c: Likewise.
1042 * function.c: Likewise.
1043 * reg-stack.c: Likewise.
1044 * cfgrtl.c: Likewise.
1045 * reload1.c: Likewise.
1046 * final.c: Include rtl-error.
1047 * Makefile.in: Adjust dependencies.
1049 2010-06-30 Jan Hubicka <jh@suse.cz>
1051 PR middle-end/PR44706
1052 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
1053 to return the value.
1055 2010-06-30 Michael Matz <matz@suse.de>
1058 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
1059 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
1060 a gimple reg, attach the original VDEF to the last store in the
1063 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
1066 * config/darwin.c (darwin_override_options): Use renamed
1067 targetm.asm_out.emit_unwind_label.
1069 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
1071 PR tree-optimization/39799
1072 * tree-inline.c (remap_ssa_name): Initialize variable only if
1073 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1075 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
1077 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
1079 2010-06-30 Richard Guenther <rguenther@suse.de>
1082 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
1083 against oscillation with reverse peephole2.
1085 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
1088 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1091 2010-06-30 Nick Clifton <nickc@redhat.com>
1093 * config/rx/rx-modes.def: New file.
1094 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
1095 (CC_REGNUM): Define.
1096 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
1098 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
1099 (SELECT_CC_MODE): Define.
1100 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
1101 (reg:CC CC_REG) instead of (cc0).
1102 (attr "cc"): Delete.
1103 (cbranchsi4): Do not split compare and branch here. Instead move
1105 (cbranchsi4_<code>): ... here. New patterns.
1106 (cmpsi): Call rx-compare_redundant to find out if it is necessary
1107 to emit the compare instruction.
1108 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
1110 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
1111 FIRST_PSEUDO_REGNUM.
1112 (rx_expand_prologue, rx_expand_epilogue): Likewise.
1113 (rx_notice_update_cc): Delete.
1114 (rx_cc_modes_compatible): New function.
1115 (flags_needed_for_conditional): New function.
1116 (flags_from_mode): New function.
1117 (rx_compare_redundant): New function - scans backwards through
1118 insn list to find out if condition flags are already set
1120 (TARGET_CC_MODES_COMPATIBLE): Define.
1121 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
1123 * config/rx/rx.h (BRANCH_COST): Define.
1124 (REGISTER_MOVE_COST): Define.
1125 * config/rx/predicates (rx_source_operand): Allow all constant
1127 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
1128 (tstsi4): New pattern.
1129 * config/rx/rx.c (rx_memory_move_cost): Define.
1130 (TARGET_MEMORY_MOVE_COST): Define.
1132 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
1134 * tree.h (block_may_fallthru): Declare here.
1135 * tree-flow.h (block_may_fallthru): Do not declare here.
1136 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
1138 * Makefile.in (c-typeck.o): Update dependencies.
1140 2010-06-30 Jakub Jelinek <jakub@redhat.com>
1143 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
1144 * cselib.c (cfa_base_preserved_regno): New static variable.
1145 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
1146 of REGNO (cfa_base_preserved_val->locs->loc).
1147 (cselib_preserve_cfa_base_value): Add regno argument, set
1148 cfa_base_preserved_regno to it.
1149 (cselib_invalidate_regno): Allow removal of registers other than
1150 cfa_base_preserved_regno from cfa_base_preserved_val.
1151 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
1152 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
1153 of MEM addresses, if not on LHS.
1154 (reverse_op): Don't add reverse ops for cfa_base_rtx.
1155 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
1157 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
1159 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
1161 (peep2_buf_position): New static function.
1162 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
1163 peephole2_optimize): Use it.
1164 (peep2_attempt, peep2_update_life): New static functions, broken out
1165 of peephole2_optimize.
1166 (peep2_fill_buffer): New static function.
1167 (peephole2_optimize): Change the main loop to try to fill the buffer
1168 with the maximum number of insns before matching them against
1169 peepholes. Use a forward scan. Remove special case for targets with
1170 conditional execution.
1171 * genrecog.c (change_state): Delete dead code.
1172 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
1173 Rewrite so as not to expect the second insn to have had a peephole
1176 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1178 * genhooks.c (emit_findices): Cast field precision to int.
1179 (emit_documentation): Likewise.
1181 2010-06-29 Jakub Jelinek <jakub@redhat.com>
1183 PR tree-optimization/43801
1184 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
1185 if old_decl was DECL_ONE_ONLY.
1188 * dwarf2out.c (add_accessibility_attribute): New function.
1189 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
1190 instead of adding DW_AT_accessibility manually.
1191 (gen_enumeration_type_die, gen_struct_or_union_type_die,
1192 gen_typedef_die): Use it.
1194 2010-06-29 Douglas B Rupp <rupp@gnat.com>
1196 * vmsdbgout.c (full_name): Just output the file name if not native.
1198 2010-06-29 Douglas B Rupp <rupp@gnat.com>
1200 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
1201 (funcnam_table): New static table.
1202 (funcnum_table): New static table.
1203 (write_rtnbeg): Write value saved in funcnum_table.
1204 (write_rtnend): Write value saved in funcnum_table.
1205 (vmsdbgout_begin_function): Save current function info in
1206 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
1207 (vmsdbgout_finish): Iterate over funcnum_table.
1209 2010-06-29 Douglas B Rupp <rupp@gnat.com>
1211 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
1212 (vmsdbgout_type_decl): Declare
1213 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
1214 (FUNC_EPILOGUE_LABEL): New macro
1215 (vmsdbgout_begin_epilogue): New function.
1216 (vmsdbgout_type_decl): New function.
1218 2010-06-29 Douglas B Rupp <rupp@gnat.com>
1220 * vmsdbg.h: Update copyright.
1222 2010-06-29 Douglas B Rupp <rupp@gnat.com>
1224 * vmsdbg.h (DST_K_TBG): New DST constant.
1225 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
1226 (write_modbeg): Cast module_language to avoid warning.
1227 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
1229 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1232 * target.def, doc/tm.texi.in, genhooks.c: New files.
1233 * target.h: Instead of defining individual hook members,
1234 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
1236 * target-def.h: Instead of defining individual hook initializers,
1237 include target-hooks-def.h.
1238 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
1239 targetm.live_on_entry -> targetm.extra_live_on_entry
1240 targetm.sched.md_finish ->targetm.sched.finish
1241 targetm.sched.md_init -> targetm.sched.init
1242 targetm.sched.md_init_global -> targetm.sched.init_global
1243 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
1244 targetm.asm_out.except_table_label ->
1245 targetm.asm_out.emit_except_table_label
1246 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
1247 targetm.target_help -> targetm.help
1248 targetm.vectorize.builtin_support_vector_misalignment ->
1249 targetm.vectorize.support_vector_misalignment
1250 targetm.file_start_app_off -> targetm.asm_file_start_app_off
1251 targetm.file_start_file_directive ->
1252 targetm.asm_file_start_file_directive
1253 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
1254 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
1255 * gcc/config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
1256 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
1257 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
1258 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
1259 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
1260 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
1261 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
1262 * Makefile.in (TARGET_H): Depend on target.def.
1263 (TARGET_DEF_H): Depend on target-hooks-def.h.
1264 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
1265 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
1266 * doc/tm.texi: Regenerate.
1268 * Makefile.in (s-tm-texi): Remove stray tab / rule.
1270 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
1271 (targetm.sched.init): Likewise.
1273 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1276 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
1277 (function_arg_advance_32): Const-ify TYPE parameter.
1278 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
1279 (ix86_function_arg_advance): Change type of NAMED to bool.
1280 (function_arg_32): Const-ify CUM and TYPE parameters.
1281 (function_arg_64): Likewise. Change type of NAMED to bool.
1282 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
1284 (ix86_function_arg): Change type of NAMED to bool.
1285 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
1286 last argument as a bool.
1288 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
1290 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
1291 (OVERRIDE_OPTIONS): Add note of obsolescence.
1292 Replace references with references to TARGET_OPTION_OVERRIDE.
1293 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
1295 * targhooks.c (default_target_option_override): New function.
1296 * targhooks.h (default_target_option_override): Declare.
1297 * target.h (struct gcc_target): Add override member to
1298 target_option member.
1299 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
1300 targetm.target_option.override call.
1301 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
1302 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
1304 2010-06-29 Jan Hubicka <jh@suse.cz>
1306 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
1308 2010-06-29 Jan Hubicka <jh@suse.cz>
1310 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
1312 (rebuild_frequencies): New function.
1313 * predict.h (rebuild_frequencies): Declare.
1314 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
1315 entry block and edge reaching new_entry.
1316 (tree_function_versioning): When doing partial cloning, rebuild frequencies
1318 * passes.c (execute_function_todo): Use rebild_frequencies.
1320 2010-06-29 Richard Guenther <rguenther@suse.de>
1322 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
1323 * tree-flow.h (enum noalias_state): Remove.
1324 (struct var_ann_d): Remove noalias_state member.
1326 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
1329 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
1330 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
1331 (maddhidi4): Likewise.
1333 Revert parts of the change for PR25130.
1334 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
1337 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1339 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
1340 targetm.calls.function_incoming_arg, and
1341 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
1342 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
1343 * target.h (struct gcc_target): Add function_arg_advance,
1344 function_arg, and function_incoming_arg fields.
1345 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
1346 (TARGET_FUNCTION_INCOMING_ARG): Define.
1347 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
1348 and TARGET_FUNCTION_INCOMING_ARG.
1349 * targhooks.h (default_function_arg_advance): Declare.
1350 (default_function_arg, default_function_incoming_arg): Declare.
1351 * targhooks.c (default_function_arg_advance): New function.
1352 (default_function_arg, default_function_incoming_arg): New function.
1353 * config/i386/i386.c (function_arg_advance): Rename to...
1354 (ix86_function_arg_advance): ...this. Make static.
1355 (function_arg): Rename to...
1356 (ix86_function_arg): ...this. Make static.
1357 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1358 (TARGET_FUNCTION_ARG): Define.
1359 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
1360 (FUNCTION_ARG): Delete.
1361 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
1362 (function_arg): Delete prototype.
1364 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
1366 * reginfo.c (init_reg_sets_1): Adjust comments.
1367 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
1368 * calls.c (prepare_call_address): Likewise.
1369 (emit_call_1): Use targetm.calls.return_pops_args.
1370 (expand_call): Likewise.
1371 * function.c (assign_parms): Likewise.
1372 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
1373 * target.h (struct gcc_target) [struct calls]: Add
1374 return_pops_args field.
1375 * targhooks.h (default_return_pops_args): Declare.
1376 * targhooks.c (default_return_pops_args): Define.
1377 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
1378 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
1379 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
1380 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
1382 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
1383 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
1384 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
1385 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
1386 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
1387 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
1388 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
1389 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
1390 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
1391 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
1392 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
1393 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
1394 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
1395 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
1396 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
1397 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
1398 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
1399 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
1400 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
1401 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
1402 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
1403 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
1404 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
1405 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
1406 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
1407 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
1408 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
1409 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
1410 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
1411 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
1412 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
1413 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
1414 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
1415 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
1416 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
1417 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
1418 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
1419 * config/i386/i386.c (ix86_return_pops_args): Make static.
1421 (TARGET_RETURN_POPS_ARGS): Define.
1422 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
1423 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
1424 (TARGET_RETURN_POPS_ARGS): Define.
1425 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
1426 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
1427 (TARGET_RETURN_POPS_ARGS): Define.
1429 2010-06-29 Richard Guenther <rguenther@suse.de>
1432 * tree-inline.c (initialize_inlined_parameters): Make sure
1433 to remap the inlined parameter variable substitutions types.
1435 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
1437 PR rtl-optimization/44659
1438 * combine.c (make_compound_operation) <SUBREG>: Do not return the
1439 result of force_to_mode if it partially re-expanded the compound.
1441 2010-06-28 Jan Hubicka <jh@suse.cz>
1444 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
1447 2010-06-28 Anatoly Sokolov <aesok@post.ru>
1449 * double-int.h (force_fit_type_double): Remove declaration.
1450 * double-int.c (force_fit_type_double): Move to tree.c.
1451 * tree.h (force_fit_type_double): Declare.
1452 * tree.h (force_fit_type_double): Moved from double-int.c. Use
1453 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
1454 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
1455 * convert.c (convert_to_pointer): Adjust call to
1456 force_fit_type_double.
1457 * tree-vrp.c (extract_range_from_assert,
1458 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
1459 * fold-const.c: Update comment.
1460 (int_const_binop, fold_convert_const_int_from_int,
1461 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
1462 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
1463 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
1464 round_up_loc): Adjust call to force_fit_type_double.
1466 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1468 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
1470 2010-06-28 Martin Jambor <mjambor@suse.cz>
1472 * tree-sra.c (convert_callers): New parameter, change fndecls of
1474 (modify_function): Pass the old decl to convert_callers.
1476 2010-06-28 Martin Jambor <mjambor@suse.cz>
1478 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
1479 ipa_check_create_node_params and ipa_initialize_node_params with
1480 checking asserts they are not necessary.
1482 2010-06-28 Jan Hubicka <jh@suse.cz>
1484 PR tree-optimization/44687
1485 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
1487 2010-06-28 Martin Jambor <mjambor@suse.cz>
1490 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
1491 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
1492 instead of BINFO_BASE_BINFO.
1494 2010-06-28 Michael Matz <matz@suse.de>
1497 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
1498 proper VDEF chain for intermediate stores in the sequence.
1500 2010-06-28 Jan Hubicka <jh@suse.cz>
1502 PR tree-optimization/44357
1503 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to uninlinable
1506 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1508 * config.gcc (powerpc*-*-*): Handle titan.
1509 * config/rs6000/rs6000.c (titan_cost): New costs.
1510 (rs6000_override_options): Add "titan" to processor_target_table.
1511 Add Titan to branch alignment logic.
1512 Correctly set rs6000_cost for titan.
1513 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
1514 * config/rs6000/titan.md: New file.
1515 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
1517 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
1519 * tree-browser.c (TB_history_stack): Convert to a VEC.
1520 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
1521 (TB_history_prev): Likewise.
1523 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
1525 * vec.h (vec_heap_free): Add parentheses around free.
1527 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
1529 * system.h: Poison GCC_EXCEPT_H for front-end files.
1531 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
1533 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
1534 Define to NULL by default.
1535 * except.h: Define GCC_EXCEPT_H.
1536 (doing_eh): Remove prototype.
1537 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
1538 (lang_protect_cleanup_actions): Remove.
1539 * except.c (lang_protect_cleanup_actions): Remove.
1541 (gen_eh_region): Don't check doing_eh here.
1542 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
1543 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
1544 instead of lang_protect_cleanup_actions.
1545 * omp-low.c (maybe_catch_exception): Likewise.
1546 * Makefile.in: Update dependencies.
1548 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
1550 * cgraph.h (struct varpool_node): new used_from_object_file flag.
1551 (struct cgraph_local_info): new used_from_object_file flag.
1552 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
1553 (cgraph_clone_node): initialize used_from_object_file.
1554 (cgraph_create_virtual_clone): initialize used_from_object_file.
1555 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
1556 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
1557 when compiling with -fwhole-program.
1558 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
1560 * ipa.c (function_and_variable_visibility): Set externally_visible
1561 flag of varpool_node if used_from_object_file flag is set.
1562 (cgraph_externally_visible_p): check used_from_object_file flag.
1563 * doc/invoke.texi (-fwhole-program option): Change description of
1564 externally_visible attribute accordingly.
1565 * doc/extend.texi (externally_visible): Ditto.
1567 2010-06-27 Jan Hubicka <jh@suse.cz>
1569 * params.def (max-inline-insns-auto): Default to 40.
1570 * doc/invoke.texi (max-inline-insns-auto): Document the change.
1572 2010-06-27 Jan Hubicka <jh@suse.cz>
1576 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
1578 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
1579 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
1581 2010-06-27 Anatoly Sokolov <aesok@post.ru>
1583 * target.h (struct gcc_target): Add register_move_cost field.
1584 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
1585 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
1586 * targhooks.c (default_register_move_cost): New function.
1587 * targhooks.h (default_register_move_cost): Declare function.
1588 * defaults.h (REGISTER_MOVE_COST): Delete.
1589 * ira-int.h (ira_register_move_cost): Update comment.
1590 * ira.c: (ira_register_move_cost): Update comment.
1591 * reload.h (register_move_cost): Declare.
1592 * reginfo.c (register_move_cost): New function.
1593 (move_cost): Update comment.
1594 (init_move_cost, memory_move_secondary_cost): Replace
1595 REGISTER_MOVE_COST with register_move_cost.
1596 * postreload.c (reload_cse_simplify_set): (Ditto.).
1597 * reload.c (find_valid_class, find_reloads): (Ditto.).
1598 * reload1.c (choose_reload_regs): (Ditto.).
1599 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
1600 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
1601 * doc/md.texi (can_create_pseudo_p): Update documentation.
1603 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
1604 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
1605 * config/i386/i386.h (ix86_memory_move_cost): Make static.
1606 (TARGET_MEMORY_MOVE_COST): Define.
1608 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
1609 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
1610 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
1611 (TARGET_MEMORY_MOVE_COST): Define.
1613 2010-06-27 Richard Guenther <rguenther@suse.de>
1615 PR tree-optimization/44683
1616 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
1617 false edge from the inverted condition.
1619 2010-06-27 Richard Guenther <rguenther@suse.de>
1622 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
1623 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
1624 for register LHS. Or non-store assignments.
1626 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
1628 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
1629 (sparc_emit_set_const64): Likewise. Remove disabled code.
1630 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
1631 (sparc_emit_set_const64): Likewise.
1633 2010-06-26 Catherine Moore <clm@codesourcery.com>
1635 * config/mips/mips.md (alu_type): New attribute.
1636 (type): Infer type from alu_type.
1637 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
1638 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
1639 *subsi3_extended, negsi2, negdi2, *low<mode>,
1640 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
1641 xor<mode>3, *nor<mode>3,
1642 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
1643 *zero_extendhi_truncqi): Set alu_type instead of type.
1645 2010-06-26 Douglas B Rupp <rupp@gnat.com>
1647 * config/alpha/alpha.c (alpha_need_linkage): Adjust
1648 splay_tree_new_ggc call.
1649 (alpha_use_linkage): Likewise.
1651 2010-06-26 Joseph Myers <joseph@codesourcery.com>
1653 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
1654 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
1655 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
1656 (static_specs): Remove switches_need_spaces.
1657 (process_command, do_self_spec): Hardcode handling "-o" instead of
1658 checking switches_need_spaces.
1659 * system.h (SWITCHES_NEED_SPACES): Poison.
1661 2010-06-26 Richard Guenther <rguenther@suse.de>
1663 PR tree-optimization/44393
1664 * tree-loop-distribution.c (generate_loops_for_partition): Fix
1665 stmt removal and VOP renaming.
1666 (generate_memset_zero): Remove redundant stmt updating.
1667 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
1668 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
1670 2010-06-26 Jan Hubicka <jh@suse.cz>
1672 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
1673 edges comming from header are equivalent.
1674 (visit_bb): Handle PHIs correctly.
1675 * tree-inline.c (copy_phis_for_bb): Be able to copy
1676 PHI from entry edge.
1677 (copy_cfg_body): Produce edge from entry BB before copying
1680 2010-06-26 Richard Guenther <rguenther@suse.de>
1683 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
1684 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
1686 2010-06-26 Joseph Myers <joseph@codesourcery.com>
1688 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
1689 add_infile, alloc_switch): New.
1690 (process_command): Remove variable lang_n_infiles. Process
1691 options in a single pass. Use new functions for allocating
1692 infiles and switches arrays. Properly skip operands of
1693 -Xpreprocessor and -Xassembler.
1695 2010-06-26 Jan Hubicka <jh@suse.cz>
1698 * cgraphunit.c (cgraph_function_versioning): Remove wrong
1699 cgraph_make_decl_local call; fix typo copying RTL data.
1701 2010-06-25 DJ Delorie <dj@redhat.com>
1703 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
1704 (m32c_output_aligned_common): Likewise.
1705 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
1706 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
1707 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
1708 (m32c_register_pragmas): Register it.
1709 * config/m32c/m32c.c (m32c_get_pragma_address): New.
1710 (m32c_insert_attributes): Set #pragma address decls volatile.
1711 (pragma_entry_eq): New.
1712 (pragma_entry_hash): New.
1713 (m32c_note_pragma_address): New.
1714 (m32c_get_pragma_address): New.
1715 (m32c_output_aligned_common): New.
1716 * doc/extend.texi: Document the new pragma.
1718 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
1720 * config/m32c/predicates.md (m32c_any_operand): Check the code
1721 instead of memory_operand so as to allow matching volatile MEMs.
1722 (m32c_nonimmediate_operand): Likewise.
1723 (mra_operand): Allow volatiles.
1725 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
1728 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
1729 address if the offset is unknown.
1731 2010-06-25 Douglas B Rupp <rupp@gnat.com>
1733 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
1734 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
1735 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
1736 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
1737 to ia64_start_function. Invoke it.
1738 * config/ia64/ia64.c (ia64_start_function): Call new function
1739 dwarf2out_vms_debug_main_pointer.
1741 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
1743 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
1744 statements computing the true predicate.
1746 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
1748 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
1749 to boolean_true_node.
1750 (reset_bb_predicate): New.
1751 (predicate_bbs): Call reset_bb_predicate.
1753 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
1755 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
1756 (tree_if_conversion): Returns true when something has been changed.
1757 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
1760 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
1762 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
1763 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
1764 * tree-if-conv.c: Include dbgcnt.h.
1765 (tree_if_conversion): Use if_conversion_tree to count the number of
1766 if-convertible loops.
1768 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
1770 * common.opt (fprefetch-loop-arrays): Re-define
1771 -fprefetch-loop-arrays as a tri-state option with the initial
1773 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
1774 pass only when flag_prefetch_loop_arrays > 0.
1775 * toplev.c (process_options): Note that, with tri-states,
1776 flag_prefetch_loop_arrays>0 means prefetching is enabled.
1777 * config/i386/i386.c (override_options): Enable prefetching at -O3
1778 for a set of CPUs that sw prefetching is helpful.
1779 (software_prefetching_beneficial_p): New. Return TRUE if software
1780 prefetching is beneficial for the given CPU.
1782 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
1784 PR rtl-optimization/44326
1785 * implicit-zee.c (find_removable_zero_extends): Replace
1786 INSN_P with NONDEBUG_INSN_P.
1788 2010-06-25 Martin Jambor <mjambor@suse.cz>
1790 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
1791 (struct ipa_node_params): Removed the modification_analysis_done flag.
1792 (ipa_is_param_modified): Removed.
1793 (ipa_analyze_node): Declare.
1794 (ipa_compute_jump_functions): Remove declaration.
1795 (ipa_count_arguments): Likewise.
1796 (ipa_detect_param_modifications): Likewise.
1797 (ipa_analyze_params_uses): Likewise.
1798 * ipa-prop.c (struct param_analysis_info): New type.
1799 (visit_store_addr_for_mod_analysis): Removed.
1800 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
1801 moved down in the file.
1802 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
1803 (ipa_count_arguments): Made static.
1804 (mark_modified): New function.
1805 (is_parm_modified_before_call): New function.
1806 (compute_pass_through_member_ptrs): New parameter parms_info, call
1807 is_parm_modified_before_call instead of ipa_is_param_modified.
1808 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
1809 it to compute_pass_through_member_ptrs.
1810 (ipa_compute_jump_functions): New parameter parms_info, pass it to
1811 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
1812 on the callee if it is analyzed. Made static.
1813 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
1814 is_parm_modified_before_call instead of ipa_is_param_modified.
1815 (ipa_analyze_call_uses): New parameter parms_info, pass it to
1816 ipa_analyze_indirect_call_uses.
1817 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
1818 ipa_analyze_call_uses.
1819 (ipa_analyze_params_uses): New parameter parms_info, pass it to
1820 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
1821 (ipa_analyze_node): New function.
1822 (ipa_print_node_params): Do not dump the modified flag.
1823 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
1824 it. Do not stream the modified parameter flag.
1825 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
1826 it. Do not stream the modified parameter flag.
1827 * ipa-cp.c (ipcp_analyze_node): Removed.
1828 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
1829 with only a call to ipa_analyze_node.
1830 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
1831 node with only a call to ipa_analyze_node.
1833 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
1835 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
1837 2010-06-25 Jan Hubicka <jh@suse.cz>
1839 * tree-pass.h (pass_split_functions): Declare.
1840 * opts.c (decode_options): Enable function splitting at -O2
1841 * timevar.def (TV_IPA_FNSPLIT): New macro.
1842 * ipa-split.c: New file.
1843 * common.opt (-fpartial-inlining): New flag.
1844 * Makefile.in (ipa-split.o): New object file.
1845 * passes.c (init_optimization_passes): Add ipa-split.
1846 * params.def (partial-inlining-entry-probability): New parameters.
1847 * doc/invoke.texi (-fpartial-inlining): New.
1849 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
1852 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
1853 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
1854 (gimplify_expr): Likewise.
1856 2010-06-25 Martin Jambor <mjambor@suse.cz>
1858 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
1859 statements instead of bailing out on them.
1860 (ipa_analyze_indirect_call_uses): Do not require that loads from the
1861 parameter are in the same BB as the condition. Update comments.
1863 2010-06-25 Jakub Jelinek <jakub@redhat.com>
1866 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
1867 true or always false, return NULL_TREE.
1868 (tree_unswitch_single_loop): Optimize conditions even when reaching
1869 max-unswitch-level parameter. If num > 0, optimize first all conditions
1870 using entry checks, then do still reachable block discovery and consider
1871 only conditions in still reachable basic blocks in the loop.
1873 PR tree-optimization/44539
1874 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
1875 the call doesn't have LHS, but has VDEF.
1877 2010-06-25 Joseph Myers <joseph@codesourcery.com>
1879 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
1880 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
1881 * gcc.c (enum add_del, struct modify_target, modify_target):
1883 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
1884 * system.h (MODIFY_TARGET_NAME): Poison.
1886 2010-06-25 Alan Modra <amodra@gmail.com>
1888 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
1889 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
1890 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
1891 CMODEL_LARGE as default.
1892 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
1893 (offsettable_ok_by_alignment): Delete.
1894 (rs6000_emit_move): Remove mcmodel=medium optimization.
1896 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
1898 With large parts from Jim Wilson:
1900 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
1901 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
1902 * optabs.c (optab_for_tree_code): Likewise.
1903 (expand_widen_pattern_expr): Likewise.
1904 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
1905 out of execute_optimize_widening_mul.
1906 (convert_plusminus_to_widen): New function.
1907 (execute_optimize_widening_mul): Use the two new functions.
1908 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
1909 Remove code to generate widening multiply-accumulate. Add support
1910 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
1911 * gimple-pretty-print.c (dump_ternary_rhs): New function.
1912 (dump_gimple_assign): Call it when appropriate.
1913 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
1914 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
1915 (expand_gimple_stmt_1): Likewise.
1916 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
1917 WIDEN_MULT_MINUS_EXPR.
1918 * tree-ssa-operands.c (get_expr_operands): Likewise.
1919 * tree-inline.c (estimate_operator_cost): Likewise.
1920 * gimple.c (extract_ops_from_tree_1): Renamed from
1921 extract_ops_from_tree. Add new arg for a third operand; fill it.
1922 (gimple_build_assign_stat): Support operations with three operands.
1923 (gimple_build_assign_with_ops_stat): Likewise.
1924 (gimple_assign_set_rhs_from_tree): Likewise.
1925 (gimple_assign_set_rhs_with_ops_1): Renamed from
1926 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
1927 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
1928 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
1929 WIDEN_MULT_MINUS_EXPR.
1930 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
1931 (extract_ops_from_tree_1): Adjust declaration.
1932 (gimple_assign_set_rhs_with_ops_1): Likewise.
1933 (gimple_build_assign_with_ops): Pass NULL for last operand.
1934 (gimple_build_assign_with_ops3): New macro.
1935 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
1936 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
1938 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
1939 (verify_gimple_assign): Call it.
1940 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
1941 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
1942 functions for dealing with three-operand statements.
1943 * tree.c (commutative_ternary_tree_code): New function.
1944 * tree.h (commutative_ternary_tree_code): Declare it.
1945 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
1947 (gimple_assign_nonzero_warnv_p): Likewise.
1948 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
1949 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
1950 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
1951 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
1952 (struct hashtable_expr): New member ternary in the union.
1953 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
1954 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
1955 (iterative_hash_hashable_expr): Likewise.
1956 (print_expr_hash_elt): Handle EXPR_TERNARY.
1957 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
1958 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
1959 statements. Handle GIMPLE_TERNARY_RHS.
1961 2010-06-25 Jan Hubicka <jh@suse.cz>
1963 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
1965 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
1968 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
1969 parameters are not good.
1970 (c_parser_parameter_declaration): Error unknown type name if the type
1971 name can't start declaration specifiers.
1973 2010-06-25 Joseph Myers <joseph@codesourcery.com>
1975 * gcc.c (translate_options): Don't mention +e in comment.
1976 (process_command): Don't handle +e specially.
1978 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
1980 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
1982 * ira-build.c (merge_hard_reg_conflicts): New function.
1983 (create_cap_allocno, copy_info_to_removed_store_destinations,
1984 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
1985 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
1986 (remove_unnecessary_allocnos, remove_low_level_allocnos)
1987 copy_nifo_to_removed_store_destination): Use them.
1988 * ira-lives.c (make_hard_regno_born): New function, split out of
1990 (make_allocno_born): Likewise.
1991 (make_hard_regno_dead): New function, split out of make_regno_dead.
1992 (make_allocno_dead): Likewise.
1993 (inc_register_pressure): New function, split out of set_allocno_live.
1994 (dec_register_pressure): New function, split out of clear_allocno_live.
1995 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
1996 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
1997 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
1998 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
1999 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
2000 mark_pseudo_regno_live.
2001 (process_bb_node_lives): Use mark_pseudo_regno_live,
2002 make_hard_regno_born and make_allocno_dead.
2003 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
2004 set_allocno_live, clear_allocno_live): Delete functions.
2006 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
2007 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
2009 (ira_flattening): Use ira_parent_allocno.
2010 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
2011 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
2013 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
2016 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
2017 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
2018 minmax_set_iter_cond, minmax_set_iter_next,
2019 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
2020 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
2021 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
2022 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
2025 * ira-int.h (struct live_range, live_range_t): Renamed from struct
2026 ira_allocno_live_range and allocno_live_range_t; all uses changed.
2027 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
2030 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
2032 * thumb2.md (thumb2_tlobits_cbranch): Delete.
2033 (peephole2 to convert zero_extract/compare of single bit to
2034 lshift/compare): New.
2036 2010-06-24 Anatoly Sokolov <aesok@post.ru>
2038 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
2039 recursive call and call to 'int_const_binop'.
2040 (build_range_check, fold_cond_expr_with_comparison, unextend,
2041 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
2042 multiple_of_p): Adjust call to const_binop.
2044 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
2046 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
2047 determine size of XFmode operand.
2048 (XFmode extended DFmode push splitter): Ditto.
2049 (XFmode extended SFmode push splitter): Ditto.
2051 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
2054 * config/i386/i386.md (extract_code): New.
2055 (<u>divmodqi4): Likewise.
2056 (divmodhiqi3): Likewise.
2057 (udivmodhiqi3): Likewise.
2058 (<u>divqi3): Remvoved.
2060 2010-06-24 Jakub Jelinek <jakub@redhat.com>
2063 * recog.h (struct recog_data): Add is_asm field.
2064 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
2065 present in constraints of inline-asm operand and memory operand
2066 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
2067 (extract_insn): Initialize recog_data.is_asm.
2068 * doc/md.texi (Constraints): Document operand side-effect rules.
2070 2010-06-24 Andi Kleen <ak@linux.intel.com>
2072 * c-parser.c (c_parser_conditional_expression): Call
2073 warn_for_omitted_condop.
2074 * doc/invoke.texi: Document omitted condop warning.
2076 2010-06-24 Nick Clifton<nickc@redhat.com>
2078 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
2079 insn in the sequence is a jump insn before setting its label.
2081 2010-06-24 Alan Modra <amodra@gmail.com>
2083 * collect2.c (main): Match exactly --version and --help.
2085 2010-06-24 DJ Delorie <dj@redhat.com>
2087 * config/m32c/m32c-pragma.c: Don't include rtl.h.
2089 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
2091 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
2092 using X87MODEF mode iterator.
2093 (pushsf splitter): Macroize splitter using P mode iterator.
2094 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
2097 (*movxf_internal): Rename from *movxf_integer.
2098 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
2099 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
2100 (*movdf_internal): Rename from *movdf_integer.
2101 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
2102 (*movsf_internal): Rename from *movdf_1.
2104 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
2106 * coretypes.h: (gimple_seq_node_d, gimple_seq_node)
2107 (const_gimple_seq_node): Removed typedefs.
2109 * gimple.h: (gimple_seq_node_d, gimple_seq_node)
2110 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
2112 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
2114 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
2115 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
2116 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
2117 and CODE_FOR_vec_extract_lo_v4df.
2119 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
2120 Changed to define_insn_and_split.
2121 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
2122 (vec_extract_lo_v16hi): Likewise.
2123 (vec_extract_lo_v32qi): Likewise.
2124 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
2125 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
2127 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
2130 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
2131 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
2132 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
2133 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
2134 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
2137 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
2140 * df-core.c (struct df): Rename to df_d.
2141 * df.h (struct df): Likewise.
2142 * dse.h (struct df): Remove forward declaration.
2143 * recog.h (struct insn_data): Rename to:
2144 (struct_insn_data_d). Adjusted all users.
2146 2010-06-23 Arnaud Charlet <charlet@adacore.com
2149 * doc/install.texi: Update requirements to build GNAT.
2151 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
2153 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
2155 (m68k_sched_attr_opx_type): Remove unreachable return.
2156 (m68k_sched_attr_opy_type): Likewise.
2157 (m68k_sched_attr_size): Likewise.
2158 (sched_get_opxy_mem_type): Likewise.
2159 (m68k_sched_attr_op_mem): Likewise.
2161 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
2163 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
2164 new statement and adjust VDEF only if necessary. Remove superfluous
2165 call to maybe_clean_or_replace_eh_stmt.
2166 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
2168 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
2169 * tree-inline.c (copy_bb): ...and not there.
2171 2010-06-22 Cary Coutant <ccoutant@google.com>
2173 * dwarf2out.c (is_nested_in_subprogram): New function.
2174 (should_move_die_to_comdat): Use it.
2175 (copy_ancestor_tree): Don't mark DIEs here.
2176 (copy_decls_walk): Start walk from root of newly-added tree;
2177 mark DIEs here instead.
2179 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
2181 * config/i386/i386.md (unit): Also check sseishft1.
2183 2010-06-22 Jan Hubicka <jh@suse.cz>
2185 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
2188 2010-06-22 Jan Hubicka <jh@suse.cz>
2190 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
2191 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
2192 Return true if something changed.
2193 * df.h (df_confluence_function_n): Return bool.
2194 * df-core.c (df_worklist_propagate_forward,
2195 df_worklist_propagate_backward): Track changes and ages.
2196 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
2198 * dse.c (dse_confluence_n): Return always true.
2200 2010-06-22 Jan Hubicka <jh@suse.cz>
2202 * bitmap.c (bitmap_clear_bit): Micro optimize.
2204 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
2206 * config/i386/i386.md (SWI1248x): New mode iterator.
2211 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
2212 SWI1248x mode iterator.
2213 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
2214 using SWI124 mode iterator.
2215 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
2217 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
2218 *pushdi2_prologue_rex64 using P mode iterator.
2219 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
2220 using SWI48 mode iterator.
2221 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
2222 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
2223 using SWI1248x mode iterator.
2224 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
2225 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
2226 SWI48 mode iterator.
2227 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
2229 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
2230 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
2231 SWI12 mode iterator.
2232 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
2233 SWI12 mode iterator.
2234 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
2235 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
2236 SWI24 mode iterator.
2237 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
2238 SWI48 mode iterator.
2239 (mov<mode>_insn_1): New expander.
2240 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
2241 using SWI48x mode iterator.
2243 (*movoi_internal_avx): Rename from *movoi_internal.
2244 (*movti_internal_rex64): Rename from *movti_rex64.
2245 (*movti_internal_sse): Rename from *movti_sse.
2246 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
2247 (*movdi_internal): Rename from *movdi_2.
2248 (*movsi_internal): Rename from *movsi_1.
2249 (*movhi_internal): Rename from *movhi_1.
2250 (*movqi_internal): Rename from *movqi_1.
2252 (insv): Update the call to gen_movsi_insv_1 for rename.
2253 * config/i386/i386.c (promote_duplicated_reg): Ditto.
2255 2010-06-22 Jan Hubicka <jh@suse.cz>
2257 * passes.c (execute_function_todo): Move call of statistics_fini_pass
2259 (execute_todo) ... this one.
2261 2010-06-22 Alan Modra <amodra@gmail.com>
2264 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
2265 * caller-save.c (insert_restore, insert_save): Use non-validate
2266 form of adjust_address.
2268 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2271 * config/pa/pa.c (override_options): Disable
2272 -freorder-blocks-and-partition.
2274 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
2277 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
2279 * config/i386/i386.md (type): Add sseishft1
2281 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
2282 (ppro_insn_load): Likewise.
2283 (ppro_insn_store): Likewise.
2284 (ppro_insn_both): Likewise.
2286 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
2287 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
2289 (*vec_extractv2di_1_avx): Likewise.
2290 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
2291 type. Remove atom_unit.
2292 (*vec_extractv2di_1_sse2): Likewise.
2294 2010-06-21 DJ Delorie <dj@redhat.com>
2296 * diagnostic.h (diagnostic_classification_change_t): New.
2297 (diagnostic_context): Add history and push/pop list.
2298 (diagnostic_push_diagnostics): Declare.
2299 (diagnostic_pop_diagnostics): Declare.
2300 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
2301 from pragmas in a history chain instead of the global table.
2302 (diagnostic_push_diagnostics): New.
2303 (diagnostic_pop_diagnostics): New.
2304 (diagnostic_report_diagnostic): Scan history chain to find state
2305 of diagnostics as of the diagnostic location.
2306 * opts.c (set_option): Pass UNKNOWN_LOCATION to
2307 diagnostic_classify_diagnostic.
2308 (enable_warning_as_error): Likewise.
2309 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
2310 use in the history chain.
2311 * doc/extend.texi: Document pragma GCC diagnostic changes.
2313 2010-06-21 Jakub Jelinek <jakub@redhat.com>
2315 * dwarf2out.c (add_linkage_name): New function. Don't add
2316 anything to DW_TAG_member DIEs.
2317 (add_name_and_src_coords_attributes): Use it.
2318 (gen_variable_die): Call it for C++ static data members if
2319 specification is DW_TAG_member.
2321 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
2322 C++ char16_t and char32_t.
2324 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
2325 * genattrtab.c: Include vecprim.h.
2326 (cached_attrs, cached_attr_count, attrs_seen_once,
2327 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
2328 attrs_cached_after): New variables.
2329 (find_attrs_to_cache): New function.
2330 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
2331 (write_test_expr): Add attrs_cached argument, return it too,
2332 attempt to cache non-const attributes used more than once in
2333 a single case handling.
2334 (write_attr_get): Use find_attrs_to_cache, for caching candidates
2335 emit cached_* variables. Adjust write_attr_set callers.
2336 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
2337 to find attributes that should be cached in this block. Adjust
2338 write_test_expr callers.
2339 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
2341 (make_automaton_attrs): Adjust write_test_expr caller.
2343 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
2344 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
2345 (make_automaton_attrs): If find_tune_attr returns non-NULL,
2346 write separate internal_dfa_insn_code_* and insn_default_latency_*
2347 functions for each attribute's value and emit init_sched_attrs
2348 function and function pointers.
2349 * genattr.c (const_attrs, reservations): New variables.
2350 (gen_attr): Add const attributes to const_attrs vector.
2351 (check_tune_attr, find_tune_attr): New functions.
2352 (main): Add reservations to reservations vector. If find_tune_attr
2353 returns true, add prototype for init_sched_attrs and make
2354 internal_dfa_insn_code and insn_default_latency function pointers,
2355 otherwise define init_sched_attrs as dummy macro.
2356 * cfgexpand.c: Include insn-attr.h.
2357 (gimple_expand_cfg): Call init_sched_attrs.
2359 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
2362 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
2363 va_arg from a set of register save slots into a temporary,
2364 if the container is bigger than type size, do the copying
2365 using smaller mode or using memcpy.
2368 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
2370 (sel_print_to_dot): Remove macro.
2371 (sel_print): Likewise. New prototype.
2372 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
2373 (sel_print): New function.
2375 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2377 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
2378 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
2380 2010-06-21 Nick Clifton <nickc@redhat.com>
2382 * config/rx/rx.h (PTRDIFF_TYPE): Define.
2383 (SMALL_REGISTER_CLASS): Define (to zero).
2384 (PRINT_OPERAND): Delete.
2385 (PRINT_OPERAND_ADDRESS): Delete.
2386 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
2387 (rx_print_operand_address): Delete prototype.
2388 * config/rx/rx.c (rx_print_operand): Make static.
2389 Allow %H and %L to handle CONST_DOUBLEs.
2390 (rx_print_operand_address): Make static.
2391 (rx_gen_move_template): Rename local variable 'template' to
2393 (rx_function_arg): Do not pass unknown sized objects in registers.
2394 (TARGET_PRINT_OPERAND): Define.
2395 (TARGET_PRINT_OPERAND_ADDRESS): Define.
2397 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2399 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
2401 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
2403 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
2404 stack-alignment for simple leaf-functions.
2406 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
2408 * doc/install.texi: Document bootstrap-lto.
2410 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
2413 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
2414 (input_function): Drop them here, if VTA is disabled.
2416 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
2419 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
2421 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
2422 ix86_swapped_fp_comparsion_operator instead of
2423 ix86_fp_comparison_operator.
2425 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
2426 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
2427 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
2428 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
2429 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
2430 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
2432 2010-06-20 Joseph Myers <joseph@codesourcery.com>
2435 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
2436 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
2437 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
2438 (decode_cmdline_option): Update for this return value. Set
2439 orig_option_with_args_text field. Set arg field for unknown
2440 options. Make static.
2441 (decode_cmdline_options_to_array): New.
2442 (prune_options): Update handling of find_opt return value.
2443 * opts.c (read_cmdline_option): Take decoded option. Return void.
2444 (read_cmdline_options): Take decoded options.
2445 (decode_options): Add parameters for decoded options. Use
2446 decode_cmdline_options_to_array. Use decoded options for -O
2447 scan. Use integral_argument for -O parameters. Update call to
2448 read_cmdline_options.
2449 (enable_warning_as_error): Update handling of find_opt return value.
2450 * opts.h: Update comment on unknown options.
2451 (struct cl_decoded_option): Update comments on opt_index and arg.
2452 Add orig_option_with_args_text.
2453 (decode_cmdline_option): Remove.
2454 (decode_cmdline_options_to_array): Declare.
2455 (decode_options): Update prototype.
2456 * toplev.c (save_argv): Remove.
2457 (save_decoded_options, save_decoded_options_count): New.
2458 (read_integral_parameter): Remove.
2459 (print_switch_values): Use decoded options.
2460 (toplev_main): Don't set save_argv. Update call to decode_options.
2461 * toplev.h (read_integral_parameter): Remove.
2462 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
2464 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
2467 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
2469 * constraints.md (Pw, Px): New constraints.
2470 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
2472 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
2474 * config/i386/sse.md (fma4modesuffixf4): Removed.
2475 (ssemodesuffixf2s): Likewise.
2476 (ssemodesuffixf4): Likewise.
2477 (ssemodesuffixf2c): Likewise.
2478 (ssescalarmodesuffix2s): Likewise.
2479 (avxmodesuffixf2c): Likewise.
2480 (ssemodesuffix): New.
2481 (ssescalarmodesuffix): Likewise.
2482 Update patterns with ssemodesuffix and ssescalarmodesuffix.
2484 2010-06-19 Philip Herron <herron.philip@googlemail.com>
2486 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
2488 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
2490 * stor-layout.c (debug_rli): Remove unused local variables.
2492 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
2494 PR rtl-optimization/40900
2495 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
2496 original expression for later reuse.
2497 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
2498 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
2500 2010-06-18 Anatoly Sokolov <aesok@post.ru>
2502 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
2503 double_int_fits_in_uhwi_p): Implement as static inline.
2504 (double_int_xor): New inline function.
2505 (double_int_lrotate, double_int_rrotate, double_int_max,
2506 double_int_umax, double_int_smax, double_int_min, double_int_umin,
2507 double_int_smin): Declare.
2508 (lrotate_double, rrotate_double): Remove declaration.
2509 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
2510 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
2511 (double_int_lrotate, double_int_rrotate, double_int_max,
2512 double_int_umax, double_int_smax, double_int_min, double_int_umin,
2513 double_int_smin): New function.
2514 * fold-const.c (int_const_binop): Clean up, use double_int_*
2516 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
2517 double_int_* and immed_double_int_const functions.
2519 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2521 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
2522 * function.c (types_used_by_cur_var_decl): Likewise.
2523 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
2525 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
2527 * tree.h (record_layout_info): Change type of pending_statics field
2529 * stor-layout.c (start_record_layout): Store NULL into
2531 (debug_rli): Call debug_vec_tree instead of debug_tree.
2532 (place_field): Likewise.
2533 (finish_record_layout): Likewise.
2535 2010-06-18 Alan Modra <amodra@gmail.com>
2537 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
2539 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2542 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
2543 for SET source operand from SET destination operand.
2545 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
2547 PR rtl-optimization/39871
2548 * reload1.c (init_eliminable_invariants): For flag_pic, disable
2549 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
2550 (function_invariant_p): Rule out a plus of frame or arg pointer with
2552 * ira.c (find_reg_equiv_invariant_const): Likewise.
2554 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
2556 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
2557 print_operand_address and puts to output the operand for CONST.
2559 2010-06-17 Jakub Jelinek <jakub@redhat.com>
2562 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
2565 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
2567 * v850-protos.h (print_operand): Delete.
2568 (print_operand_address): Delete.
2569 * v850.h (PRINT_OPERAND): Delete.
2570 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2571 (PRINT_OPERAND_ADDRESS): Delete.
2572 * v850.c (print_operand_address): Rename to...
2573 (v850_print_operand_address): ...this. Make static. Call
2575 (print_operand): Rename to...
2576 (v850_print_operand): ...this. Make static. Call
2577 v850_print_operand_address.
2578 (v850_print_operand_punct_valid_p): New function.
2579 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2580 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2582 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
2584 * config/sh/sh-protos.h (print_operand): Delete.
2585 (print_operand_address): Delete.
2586 * config/sh/sh.h (PRINT_OPERAND): Delete.
2587 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2588 (PRINT_OPERAND_ADDRESS): Delete.
2589 * config/sh/sh.c (sh_print_operand_address): Make static.
2590 (sh_print_operand): Make static. Call sh_print_operand_address
2591 and sh_print_operand.
2592 (sh_print_operand_punct_valid_p): New function.
2593 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2594 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2596 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
2598 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
2599 (mcore_print_operand_address): Delete.
2600 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
2601 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2602 (PRINT_OPERAND_ADDRESS): Delete.
2603 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
2604 (mcore_print_operand): Make static.
2605 (mcore_print_operand_punct_valid_p): New function.
2606 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
2607 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2609 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
2611 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
2612 (print_operand_address): Delete.
2613 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
2614 (PRINT_OPERAND_ADDRESS): Delete.
2615 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
2617 (m68hc11_print_operand): Make static.
2618 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2620 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
2622 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
2623 (m32r_print_operand_address): Delete.
2624 * config/m32r/m32r.h (m32r_punct_chars): Delete.
2625 (PRINT_OPERAND): Delete.
2626 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2627 (PRINT_OPERAND_ADDRESS): Delete.
2628 * config/m32r/m32r.c (m32r_punct_chars): Make static.
2629 (m32r_print_operand_address): Make static.
2630 (m32r_print_operand): Make static.
2631 (m32r_print_operand_punct_valid_p): New function.
2632 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2633 (TARGET_PRINT_OPERAND_ADDRESS): Define.
2635 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
2637 * config/iq2000/iq2000-protos.h (print_operand): Delete.
2638 (print_operand_address): Delete.
2639 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
2640 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2641 (PRINT_OPERAND_ADDRESS): Delete.
2642 (iq2000_print_operand_punct): Delete.
2643 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
2644 (iq2000_print_operand_address): Make static.
2645 (iq2000_print_operand): Make static.
2646 (iq2000_print_operand_punct_valid_p): New function.
2647 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2648 (TARGET_PRINT_OPERAND_ADDRESS): Define.
2650 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
2652 * config/frv/frv-protos.h (frv_print_operand): Delete.
2653 (frv_print_operand_address): Delete.
2654 * config/frv/frv.h (PRINT_OPERAND): Delete.
2655 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2656 (PRINT_OPERAND_ADDRESS): Delete.
2657 * config/frv/frv.c (frv_print_operand_address): Make static.
2658 (frv_print_operand): Make static.
2659 (frv_print_operand_punct_valid_p): New function.
2660 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2661 (TARGET_PRINT_OPERAND_ADDRESS): Define.
2663 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
2665 * tree.h (vec_member): Declare.
2666 * tree.c (vec_member): Define.
2668 2010-06-17 Richard Guenther <rguenther@suse.de>
2670 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
2671 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
2673 2010-06-17 Richard Guenther <rguenther@suse.de>
2675 * tree-inline.c (declare_return_variable): Remove bogus code.
2677 2010-06-17 Richard Guenther <rguenther@suse.de>
2679 * gimplify.c (gimplify_bind_expr): Always promote complex
2680 and vector variables to registers if possible.
2682 2010-06-17 Richard Guenther <rguenther@suse.de>
2684 * expr.c (get_inner_reference): Use double_int for bit_offset
2687 2010-06-16 DJ Delorie <dj@redhat.com>
2689 * common.opt (-fstrict-volatile-bitfields): new.
2690 * doc/invoke.texi: Document it.
2691 * fold-const.c (optimize_bit_field_compare): For volatile
2692 bitfields, use the field's type to determine the mode, not the
2694 * expr.c (expand_assignment): Likewise.
2695 (get_inner_reference): Likewise.
2696 (expand_expr_real_1): Likewise.
2697 * expmed.c (store_fixed_bit_field): Likewise.
2698 (extract_bit_field_1): Likewise.
2699 (extract_fixed_bit_field): Likewise.
2701 2010-06-16 Richard Guenther <rguenther@suse.de>
2703 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
2705 2010-06-16 Douglas B Rupp <rupp@gnat.com>
2707 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
2708 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
2709 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
2710 * debug.c: Likewise.
2711 * sdbout.c: Likewise.
2712 * vmsdbgout.c: Likewise.
2713 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
2714 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
2715 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
2716 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
2717 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
2718 * dwarf2out.c (dw_fde_struct): New fields
2719 dw_fde_vms_{end,begin}_prologue.
2720 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
2721 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
2722 (dwarf2out_vms_end_prologue): New function.
2723 (dwarf2out_vms_begin_epilogue): New function.
2724 (dw_val_struct): New value dw_val_class_vms_delta.
2725 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
2726 begin_epilogue for VMS.
2727 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
2728 new static functions.
2729 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
2730 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
2732 (print_die): New case dw_val_class_vms_delta.
2733 (attr_checksum): Likewise.
2734 (same_dw_val_p: Likewise.
2735 (size_of_die): Likewise.
2736 (value_format): Likewise.
2737 (output_die): Likewise.
2738 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
2739 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
2740 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
2741 dwarf2out_cfi_begin_epilogue
2742 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
2744 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
2746 * config/cris/cris-protos.h (cris_print_operand): Delete.
2747 (cris_print_operand_address): Delete.
2748 * config/cris/cris.h (PRINT_OPERAND): Delete.
2749 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2750 (PRINT_OPERAND_ADDRESS): Delete.
2751 * config/cris/cris.c (cris_print_operand_address): Make static.
2752 (cris_print_operand): Make static.
2753 (cris_print_operand_punct_valid_p): New function.
2754 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2755 (TARGET_PRINT_OPERAND_ADDRESS): Define.
2757 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
2759 * config/arm/arm-protos.h (arm_print_operand): Delete.
2760 (arm_print_operand_address): Delete.
2761 * config/arm/arm.h (PRINT_OPERAND): Delete.
2762 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
2763 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
2764 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
2765 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
2766 (arm_print_operand): Make static.
2767 (arm_print_operand_punct_valid_p): New function.
2768 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
2769 (TARGET_PRINT_OPERAND_ADDRESS): Define.
2771 2010-06-16 Nick Clifton <nickc@redhat.com>
2773 * config/rx/constraints.md (NEGint4): New constraint.
2774 * config/rx/rx.md (attr cc): Add set_zsc.
2775 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
2778 (call_internal): Clobber the cc0 register.
2779 (call_value_internal): Likewise.
2780 (cstoresi4): Likewise.
2781 (movsieq): Likewise.
2782 (movsine): Likewise.
2783 (addsi3): Add alternative to handle small negative constants.
2785 (addsi3): Do not set the O bit in the cc0 register.
2789 (andsi3): Reorder alternatives to prefer shorter forms.
2792 (negsi2): Note that the cc0 flags are set.
2793 (rotlsi3): Note that only the Z and S bits are set in cc0.
2794 (lshrsi3): Likewise.
2795 (ashlsi3): Likewise.
2796 (subsf3): Use %Q for the MEM operand.
2797 (fix_truncsfsi2): Likewise.
2798 (floatsisf2): Likewise.
2799 (bitset): Remove early clobber from destination.
2800 (bitset_in_memory): Likewise.
2801 (lrintsf2): Clobber the cc0 register.
2802 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
2803 (rx_print_operand): Handle %N.
2805 2010-06-16 Jan Hubicka <jh@suse.cz>
2807 * df-core.c (df_compact_blocks): Free problem_temps vector.
2809 2010-06-16 Martin Jambor <mjambor@suse.cz>
2811 PR tree-optimization/43905
2812 * tree-sra.c: Include tree-inline.h.
2813 (create_abstract_origin): Removed.
2814 (modify_function): Version the call graph node instead of creating
2815 abstract origins and dealing with same_body aliases.
2816 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
2817 function is versionable.
2818 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
2820 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
2822 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
2823 (CHOOSE_DYNAMIC_LINKER): Update.
2825 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
2827 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
2828 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
2829 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
2830 *prefetch_3dnow_rex.
2832 2010-06-15 Anatoly Sokolov <aesok@post.ru>
2834 * target.h (struct asm_out):Add declare_constant_name field.
2835 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
2836 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
2837 * output.h (default_asm_declare_constant_name): Declare.
2838 (assemble_label): Update prototype.
2839 * varasm.c (assemble_constant_contents): Use
2840 targetm.asm_out.declare_constant_name target hook.
2841 (assemble_label): Add 'file' argument.
2842 (default_asm_declare_constant_name): New function.
2843 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
2844 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
2845 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
2847 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
2848 * config/darwin.c (darwin_asm_declare_constant_name): New function.
2849 (machopic_output_indirection): Update assemble_label argument list.
2850 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
2851 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
2853 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
2856 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
2857 size_one_node for pointer types. Do not call gmp_cst_to_tree.
2859 2010-06-15 Richard Guenther <rguenther@suse.de>
2861 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
2863 2010-06-15 Paul Brook <paul@codesourcery.com>
2865 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
2868 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
2870 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
2871 don't get a vector type for output.
2873 2010-06-15 Jakub Jelinek <jakub@redhat.com>
2876 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
2877 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
2878 (LANG_HOOKS_DECLS): Add it.
2879 * gimplify.c (omp_notice_variable): Call
2880 lang_hooks.decls.omp_report_decl.
2882 2010-06-15 Martin Jambor <mjambor@suse.cz>
2885 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
2886 on the newly dead SSA name.
2888 2010-06-15 Alan Modra <amodra@gmail.com>
2890 * doc/invoke.texi: Add mcmodel to powerpc options.
2891 * configure.ac: Add HAVE_LD_LARGE_TOC test.
2892 * configure: Regenerate.
2893 * config.in: Regenerate.
2894 * config/rs6000/linux64.opt (mcmodel): New.
2895 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
2896 (TARGET_CMODEL, SET_CMODEL): Define.
2897 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
2898 select CMODEL_MEDIUM default.
2899 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
2900 (TARGET_CMODEL): Define default.
2901 * config/rs6000/rs6000.c (cmodel): New variable.
2902 (rs6000_explicit_options): Add cmodel field.
2903 (rs6000_handle_option): Handle -mcmodel.
2904 (create_TOC_reference): Add largetoc_reg param. Generate high,
2905 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
2906 (rs6000_delegitimize_address): Recognise new toc reference rtl
2907 and minimal-toc rtl.
2908 (rs6000_legitimize_reload_address): Handle new toc references.
2909 (print_operand_address): Handle legitimate_constant_pool_address_p
2910 match before lo_sum.
2911 (rs6000_eliminate_indexed_memrefs): Tidy.
2912 (rs6000_emit_move): Tweak threshold for inlining constants.
2913 Keep rs6000_emit_allocate_stack large stack frame offsets
2914 loaded into r0 inline.
2915 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
2916 (tocrel_base, tocrel_offset): New variables.
2917 (toc_relative_expr_p): Set them here.
2918 (print_operand_address): Skip over any offset on constant pool address.
2919 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
2920 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
2921 (offsettable_ok_by_alignment): New function.
2922 (rs6000_emit_move): Address suitably aligned local symbol_refs
2923 relative to the toc pointer for -mcmodel=medium.
2924 (legitimate_constant_pool_address_p): Make param const_rtx. Add
2925 strict param. Allow lo_sum version of addressing. Verify reg
2926 used for -mminimal-toc and -mcmodel != small. Update all callers.
2927 * config/rs6000/constraints.md: Update for above change.
2928 * config/rs6000/predicates.md: Likewise.
2929 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
2931 (tls_gd): Split for -mcmodel=medium/large.
2932 (tls_gd_high, tls_gd_low): New.
2933 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
2934 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
2935 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
2936 (largetoc_high, largetoc_low): New.
2937 (cmptf_internal2): Add clobber.
2938 * config/rs6000/rs6000-protos.h: Update.
2940 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
2942 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
2943 true if no prefetch is going to be generated for a given group.
2944 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
2945 estimate the prefetch_count.
2946 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
2947 prefetch count by considering the unroll_factor and prefetch_mod
2948 for is_loop_prefetching_profitable.
2950 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
2952 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
2953 anything if the argument is not a MEM.
2955 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
2960 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
2962 (canonicalize_loop_ivs): Likewise.
2964 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
2967 * haifa-sched.c (setup_insn_reg_pressure_info,
2968 update_register_pressure): Reject debug insns.
2969 (ready_sort): Don't setup reg pressure for debug insns.
2970 (schedule_insn): Don't update reg pressure for debug insns.
2972 2010-06-14 Richard Guenther <rguenther@suse.de>
2974 * lto-streamer.c (cached_bp): Remove.
2975 (bitpack_delete): Likewise.
2976 (bitpack_create): Likewise.
2977 (bp_get_next_word): Likewise.
2978 (bp_pack_value, bp_unpack_value): Move ...
2979 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
2981 (struct bitpack_d): Likewise.
2982 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
2983 New inline functions.
2984 * lto-streamer-out.c (lto_output_bitpack): Remove.
2985 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
2986 (pack_value_fields): Adjust.
2987 (lto_write_tree): Likewise.
2988 (output_gimple_stmt): Likewise.
2989 (output_function): Likewise.
2990 * lto-streamer-in.c (input_gimple_stmt): Adjust.
2991 (input_function): Likewise.
2992 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
2993 (lto_input_bitpack): Remove.
2994 (lto_materialize_tree): Adjust.
2995 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
2996 * lto-cgraph.c (lto_output_edge): Adjust.
2997 (lto_output_node): Likewise.
2998 (lto_output_varpool_node): Likewise.
2999 (lto_output_ref): Likewise.
3000 (input_node): Likewise.
3001 (input_varpool_node): Likewise.
3002 (input_ref): Likewise.
3003 (input_edge): Likewise.
3004 (output_node_opt_summary): Likewise.
3005 (input_node_opt_summary): Likewise.
3006 * ipa-pure-const.c (pure_const_write_summary): Likewise.
3007 (pure_const_read_summary): Likewise.
3008 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
3009 (ipa_read_indirect_edge_info): Likewise.
3010 (ipa_write_node_info): Likewise.
3011 (ipa_read_node_info): Likewise.
3013 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
3016 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
3017 (vec_extract_lo_v16hi): Likewise.
3018 (vec_extract_lo_v32qi): Likewise.
3020 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3023 * tree.h (build_call_expr): Don't define as vararg macro, instead
3025 * builtins.c (build_call_nofold): Remove.
3026 (expand_builtin_int_roundingfn, expand_builtin_pow,
3027 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
3028 expand_builtin_memset_args, expand_builtin_strcmp,
3029 expand_builtin_strncmp, expand_builtin_memory_chk): Use
3030 build_call_nofold_loc instead of build_call_nofold.
3031 (build_call_expr): New function.
3033 PR tree-optimization/44508
3034 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
3035 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
3036 don't eliminate trivially dead stmts.
3037 * tree-vrp.c (vrp_finalize): Pass false as last argument
3038 to substitute_and_fold.
3039 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
3040 to substitute_and_fold.
3041 * tree-ssa-ccp.c (ccp_finalize): Likewise.
3044 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
3046 2010-06-14 Ira Rosen <irar@il.ibm.com>
3048 PR tree-optimization/44507
3049 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
3050 to build initial vector for BIT_AND_EXPR.
3051 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
3053 2010-06-14 Jakub Jelinek <jakub@redhat.com>
3055 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
3056 adjust z10prop set_attr.
3058 2010-06-13 Jan Hubicka <jh@suse.cz>
3060 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
3061 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
3062 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
3063 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
3064 datastructure checks into checking asserts.
3065 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
3066 * tree-ssa-sccvn.c (VN_INFO): Likewise.
3067 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
3068 df_ref_create_structure): Likewise.
3069 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
3070 pool_free): Use gcc_checking_assert.
3071 * alias.c (get_alias_set): Likewise.
3072 * var-tracking.c (variable_htab_free, shared_hash_copy,
3073 canonicalize_values_mark, variable_merge_over_cur): Likewise.
3074 * lto-streamer.c (bp_unpack_value): Likewise.
3076 2010-06-13 Richard Guenther <rguenther@suse.de>
3078 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
3079 Do not stream but initialize TYPE_CANONICAL to NULL.
3080 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
3081 * gimple.c (gimple_types_compatible_p): Disregard
3082 TYPE_STRUCTURAL_EQUALITY_P.
3083 (gimple_register_type): Use TYPE_CANONICAL as cache.
3084 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
3085 before registering common types.
3086 * config/i386/i386.c (ix86_function_arg_boundary): Do not
3087 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
3088 * tree.h (TYPE_CANONICAL): Clarify documentation.
3090 2010-06-13 Anatoly Sokolov <aesok@post.ru>
3092 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3093 LIBCALL_VALUE): Remove macros.
3094 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
3095 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3096 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3097 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
3098 (ia64_function_value): Make static. Handle receiving the function
3099 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
3101 2010-06-12 Jan Hubicka <jh@suse.cz>
3103 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
3106 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
3108 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
3110 2010-06-12 Jan Hubicka <jh@suse.cz>
3112 * df-core.c (df_clear_bb_info): New function.
3113 (df_set_blocks): bb_info is always allocated.
3114 (df_get_bb_info): Use block_info_elt_size.
3115 (df_set_bb_info): Likewise.
3116 (df_compact_blocks): Update for new block_info.
3117 (grow_bb_info): New function.
3118 * df-problems.c (df_grow_bb_info): Move to df-core.c
3119 (df_rd_set_bb_info): Remove.
3120 (df_rd_free_bb_info): Do not free block pool.
3121 (df_rd_alloc): Do not create pool, use check for
3122 obstack presence instead of NULL pointer for new blocks.
3123 (df_rd_free): DO not free alloc pool; clear block_info.
3124 (problem_RD): Add size of block info structure.
3125 (df_lr_set_bb_info): Remove.
3126 (df_lr_free_bb_info): Do not free block pool.
3127 (df_lr_alloc): Do not create pool, use check for
3128 obstack presence instead of NULL pointer for new blocks.
3129 (df_lr_free): DO not free alloc pool; clear block_info.
3130 (problem_LR): Add size of block info structure.
3131 (df_live_set_bb_info): Remove.
3132 (df_live_free_bb_info): Do not free block pool.
3133 (df_live_alloc): Do not create pool, use check for
3134 obstack presence instead of NULL pointer for new blocks.
3135 (df_live_free): DO not free alloc pool; clear block_info.
3136 (problem_LIVE): Add size of block info structure.
3137 (problem_CHAIN): Add size of block info structure.
3138 (df_byte_lr_set_bb_info): Remove.
3139 (df_byte_lr_free_bb_info): Do not free block pool.
3140 (df_byte_lr_alloc): Do not create pool, use check for
3141 obstack presence instead of NULL pointer for new blocks.
3142 (df_byte_lr_free): DO not free alloc pool; clear block_info.
3143 (problem_BYTE_LR): Add size of block info structure.
3144 (problem_NOTE): Add size of block info structure.
3145 (df_byte_MD_set_bb_info): Remove.
3146 (df_byte_MD_free_bb_info): Do not free block pool.
3147 (df_byte_MD_alloc): Do not create pool, use check for
3148 obstack presence instead of NULL pointer for new blocks.
3149 (df_byte_MD_free): DO not free alloc pool; clear block_info.
3150 (problem_BD): Add size of block info structure.
3151 * df-scan.c (df_scan_free_internal): Free block pool.
3152 (df_scan_set_bb_info): Remove.
3153 (df_scan_free_bb_info): Check for artificial_defs instead
3154 of bb_info being non-NULL.
3155 (df_scan_alloc): DO not create df_scan_block pool.
3156 (problem_SCAN): Set size of block info.
3157 (df_bb_refs_record): Do not allocate bb_info.
3158 * df.h (df_problem): Add block_info_elt_size.
3159 (struct dataflow): Change block_info to void *.
3160 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
3161 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
3164 2010-06-12 Jan Hubicka <jh@suse.cz>
3166 PR tree-optimize/44485
3167 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
3168 containing use of return value of noreturn function.
3170 2010-06-12 Anatoly Sokolov <aesok@post.ru>
3172 * targhooks.c (default_function_value): Don't use
3173 FUNCTION_OUTGOING_VALUE.
3174 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
3175 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
3177 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
3179 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
3180 Add crtfastmath.o to extra_parts.
3181 * config/mips/crtfastmath.c: New.
3182 * config/mips/linux.h (ENDFILE_SPEC): New.
3184 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
3186 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
3187 old_type in parameter.
3188 (gcc_type_for_value): Update call to gcc_type_for_interval.
3189 (compute_type_for_level_1): Renamed compute_type_for_level.
3190 Update call to gcc_type_for_interval.
3192 2010-06-11 Joseph Myers <joseph@codesourcery.com>
3194 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
3195 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
3197 2010-06-11 Joseph Myers <joseph@codesourcery.com>
3199 * opts-common.c: Include options.h.
3200 (integral_argument): Move from opts.c.
3201 (decode_cmdline_option): New. Based on read_cmdline_option.
3202 * opts.c (integral_argument): Move to opts-common.c.
3203 (read_cmdline_option): Move most contents to
3204 decode_cmdline_option. Use %qs in diagnostics.
3205 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
3206 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
3207 decode_cmdline_option): New.
3209 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
3212 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
3213 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
3214 (partiysi2_cmp): Ditto.
3215 (*partiyhi2_cmp): Ditto.
3216 (*parityqi2_cmp): Remove.
3218 2010-06-11 Jan Hubicka <jh@suse.cz>
3220 * bitmap.h (bmp_iter_next_bit): New.
3221 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
3223 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
3224 Eric Botcazou <ebotcazou@adacore.com>
3226 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
3229 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
3231 * config/i386/i386.md (unspec): New define_c_enum.
3234 2010-06-10 Jakub Jelinek <jakub@redhat.com>
3236 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
3238 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
3241 * tree-if-conv.c (bb_predicate_s): New struct.
3242 (bb_predicate_p): New.
3243 (bb_has_predicate): New.
3244 (bb_predicate): New.
3245 (set_bb_predicate): New.
3246 (bb_predicate_gimplified_stmts): New.
3247 (set_bb_predicate_gimplified_stmts): New.
3248 (add_bb_predicate_gimplified_stmts): New.
3249 (init_bb_predicate): New.
3250 (free_bb_predicate): New.
3251 (is_predicated): Use bb_predicate.
3252 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
3253 (predicate_bbs): Same. Gimplify the condition of the basic blocks
3254 before processing their successors.
3255 (clean_predicate_lists): Removed.
3256 (find_phi_replacement_condition): Use bb_predicate.
3257 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
3259 (insert_gimplified_predicates): New.
3260 (combine_blocks): Call insert_gimplified_predicates.
3261 (tree_if_conversion): Call free_bb_predicate instead of
3262 clean_predicate_lists.
3264 2010-10-11 Paul Brook <paul@codesourcery.com>
3266 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
3267 * config/arm/arm.c (all_architectures): Change v7e-m default to
3269 * config/arm/arm-cores.def: Add cortex-m4.
3270 * config/arm/arm-tune.md: Regenerate.
3272 2010-06-11 Jan Hubicka <jh@suse.cz>
3274 * ipa-pure-const.c (special_builtlin_state): New function.
3275 (check_call): Use it instead of special casign BUILT_IN_RETURN.
3276 (propagate_pure_const): Use it.
3278 2010-06-11 Jan Hubicka <jh@suse.cz>
3280 * df-problems.c (df_live_scratch): Convert to bitmap_head.
3281 (df_live_alloc): Initialize df_live_scratch when initializing
3283 (df_live_transfer_function): Update uses of df_live_scratch.
3284 (df_live_free): Free problem_data; clear df_live_scratch before
3285 releasing the obstack.
3286 (df_md_free): Free problem data.
3288 2010-06-11 Jan Hubicka <jh@suse.cz>
3290 * doc/invoke.texi (Wsuggest-attribute): Document.
3291 (Wmissing-noreturn): Remove.
3292 * ipa-pure-const.c (warn_function_noreturn): New function.
3293 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
3294 warn_missing_noreturn.
3295 * common.opt (Wsuggest-attribute=noreturn): New.
3296 * tree-flow.h (warn_function_noreturn): Declare.
3297 * tree-cfg.c (execute_warn_function_noreturn): Use
3298 warn_function_noreturn.
3299 (gate_warn_function_noreturn): New.
3300 (pass_warn_function_noreturn): Update.
3302 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
3304 * c-typeck.c (handle_warn_cast_qual): Add loc
3305 parameter. Improve warning message.
3306 (build_c_cast): Pass location to handle_warn_cast_qual.
3308 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
3310 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
3311 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
3313 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
3315 2010-06-10 Dodji Seketeli <dodji@redhat.com>
3317 Fix bootstap on mips
3318 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
3321 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
3323 * system.h (helper_const_non_const_cast): New inline for
3325 (CONST_CAST2): For gcc version <= 4.0 use
3326 new helper to do const/non-const casting.
3328 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3330 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
3331 * Makefile.in (OBJS-common): Include insn-enums.o.
3332 (insn-enums.o): New rule.
3333 (simple_generated_c): Add insn-enums.c.
3334 (build/genenums.o): New rule.
3335 (genprogmd): Add "enums".
3336 * genconstants.c (print_enum_type): Declare a C string array
3338 * genenums.c: New file.
3339 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
3340 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
3341 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
3343 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3345 * doc/md.texi (define_enum_attr): Document.
3346 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
3347 * read-md.h (lookup_enum_type): Declare.
3348 * read-md.c (lookup_enum_type): New function.
3349 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
3350 * genattrtab.c (attr_desc): Add an enum_name field.
3351 (evaluate_eq_attr): Take the associated attribute as argument.
3352 Get the enum prefix from the enum_name field, if defined.
3353 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
3354 (simplify_test_exp): Pass attr to evaluate_eq_attr.
3355 (add_attr_value): New function, split out from...
3356 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
3357 (write_test_expr): Pass attr to evaluate_eq_attr.
3358 (write_attr_get): Use the enum_name as the enum tag, if defined.
3359 (write_attr_valueq): Use the enum_name as a prefix, if defined.
3360 (find_attr): Initialize enum_name.
3361 (main): Handle DEFINE_ENUM_ATTR.
3362 * gensupport.c (process_rtx): Likewise.
3363 * config/mips/mips.h (mips_tune_attr): Delete.
3364 * config/mips/mips.md (cpu): Use define_attr_enum.
3366 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3368 * doc/md.texi (define_c_enum, define_enum): Document.
3369 * read-md.h (md_constant): Add a parent_enum field.
3370 (enum_value, enum_type): New structures.
3371 (upcase_string, traverse_enum_types): Declare.
3372 * read-md.c (enum_types): New variable.
3373 (upcase_string, add_constant): New functions.
3374 (handle_constants): Don't create the hash table here.
3376 (traverse_md_constants): Don't check for a null md_constants.
3377 (decimal_string, handle_enum, traverse_enum_types): New functions.
3378 (read_md_files): Initialize md_constants and md_enums.
3379 * genconstants.c (print_md_constant): Ignore info argument.
3380 Only print constants that belong to no enum.
3381 (print_enum_type): New function.
3382 (main): Don't pass stdout to print_md_constant. Call print_enum_type
3383 for each defined enum type.
3384 * config/mips/mips.md (processor): New define_enum.
3385 (unspec): New define_c_enum.
3386 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
3387 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
3388 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
3389 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
3390 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
3391 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
3392 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
3393 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
3394 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
3395 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
3396 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
3397 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
3398 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
3399 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
3400 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
3401 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
3402 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
3403 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
3404 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
3405 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
3406 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
3407 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
3408 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
3409 (UNSPEC_RDDSP): Move to mips-dsp.md.
3410 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
3411 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
3412 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
3413 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
3414 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
3415 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
3416 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
3417 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
3418 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
3419 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
3420 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
3421 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
3422 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
3423 Moved to mips-dspr2.md.
3424 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
3425 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
3426 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
3427 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
3428 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
3429 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
3430 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
3431 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
3432 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
3433 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
3434 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
3435 UNSPEC_LOONGSON_PSADBH)
3436 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
3437 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
3438 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
3439 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3440 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3441 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3442 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
3443 (cpu): Update comment.
3444 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
3445 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
3446 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
3447 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
3448 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
3449 UNSPEC_LOONGSON_PCMPEQ)
3450 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
3451 UNSPEC_LOONGSON_PINSR_0)
3452 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
3453 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
3454 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
3455 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
3456 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
3457 UNSPEC_LOONGSON_PSADBH)
3458 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
3459 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
3460 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
3461 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
3462 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
3463 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
3464 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
3465 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
3466 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
3467 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
3468 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
3469 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
3470 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
3471 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
3472 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
3473 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
3474 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
3475 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
3476 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
3477 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
3478 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
3479 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
3480 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
3481 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
3482 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
3483 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
3484 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
3485 (UNSPEC_RDDSP): Moved from mips.md.
3486 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
3487 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
3488 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
3489 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
3490 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
3491 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
3492 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
3493 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
3494 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
3495 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
3496 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
3497 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
3498 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
3499 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
3500 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
3501 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
3502 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
3503 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
3504 (UNSPEC_SCC): Moved from mips.md.
3505 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
3506 "processor_type" to "processor".
3507 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
3508 * config/mips/mips.h (processor_type): Delete.
3509 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
3510 "processor_type" to "processor".
3512 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3514 * configure.ac (tm_include_list): Add insn-constants.h.
3515 * configure: Regenerate.
3516 * Makefile.in (GTM_H): Move insn-constants.h here from...
3518 * mkconfig.sh: Remove special handling for insn-constants.h.
3520 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3522 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
3523 (BUILD_MD): ...this new variable.
3524 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
3525 that include the old contents of simple_generated_h and
3527 (simple_generated_h, simple_generated_c): Include them. Add
3529 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
3530 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
3531 Remove these dependencies from the main rule and include
3532 insn-conditions.md in the command line only if it appears
3533 in the dependency list.
3534 (insn-constants.h, s-constants): Delete.
3535 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
3537 (build/genmddeps.o): Likewise.
3538 (genprogrtl): New variable that contains everything from genprogmd
3539 except mddeps and constants.
3540 (genprogmd): Redefine in terms of genprogrtl. Make these programs
3541 depend on $(BUILD_MD)
3542 (genprog): New variable. Make these programs depend on
3544 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
3545 (main): Use read_md_files instead of init_rtx_reader_args.
3546 * genconstants.c: As for genmddeps.c.
3547 * read-md.h (read_skip_construct): Declare.
3548 * read-md.c (read_skip_construct): New function.
3549 (handle_file): Allow a null handle_directive, skipping the
3551 (parse_include): Update the comment accordingly.
3553 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3555 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
3556 * genmddeps.c: Include read-md.h.
3557 (main): Call init_rtx_reader_args instead of init_md_reader_args.
3558 * genattr.c (main): Likewise.
3559 * genattrtab.c (main): Likewise.
3560 * genautomata.c (main): Likewise.
3561 * gencodes.c (main): Likewise.
3562 * genconditions.c (main): Likewise.
3563 * genconfig.c (main): Likewise.
3564 * genconstants.c (main): Likewise.
3565 * genemit.c (main): Likewise.
3566 * genextract.c (main): Likewise.
3567 * genflags.c (main): Likewise.
3568 * genopinit.c (main): Likewise.
3569 * genoutput.c (main): Likewise.
3570 * genpeep.c (main): Likewise.
3571 * genrecog.c (main): Likewise.
3572 * genpreds.c (main): Likewise.
3573 * gensupport.h (in_fname): Move to read-md.h.
3574 (init_md_reader_args_cb): Rename to...
3575 (init_rtx_reader_args_cb): ...this and return a bool.
3576 (init_md_reader_args): Rename to...
3577 (init_rtx_reader_args): ...this and return a bool.
3578 (include_callback): Move to read-md.h.
3579 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
3580 (file_name_list, first_dir_md_include): Move to read-md.c
3581 (first_bracket_include): Delete unused variable.
3582 (last_dir_md_include): Move to read-md.c.
3583 (process_include): Delete, moving code to read-md.c:handle_include.
3584 (process_rtx): Don't handle INCLUDE.
3585 (save_string): Delete.
3586 (rtx_handle_directive): New function.
3587 (init_md_reader_args_cb): Rename to...
3588 (init_rtx_reader_args_cb): ...this and return a boolean success value.
3590 (init_md_reader_args): Rename to...
3591 (init_rtx_reader_args): ...this and return a boolean success value.
3592 * rtl.def (INCLUDE): Delete.
3593 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
3595 * read-rtl.c (read_conditions): Don't gobble ')' here.
3596 (read_mapping): Likewise.
3597 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
3598 Handle top-level non-rtx constructs here rather than in read_rtx_1.
3599 Store the whole queue in *X. Remove call to init_md_reader.
3600 (read_rtx_1): Rename to...
3601 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
3602 Don't handle top-level non-rtx constructs here. Don't handle (nil)
3604 (read_nested_rtx): New function. Handle (nil) here rather than
3606 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
3608 * read-md.h (directive_handler_t): New type.
3609 (in_fname, include_callback): Moved from read-md.h.
3610 (read_constants, init_md_reader): Delete.
3611 (read_md_files): Declare.
3612 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
3613 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
3615 (read_constants): Rename to...
3616 (handle_constants): ...this. Don't gobble ')' here.
3617 (handle_include, handle_file, handle_toplevel_file)
3618 (parse_include): New functions, mostly taken from gensupport.c.
3619 (init_md_reader): Subsume into...
3620 (read_md_files): ...this new function.
3622 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3624 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
3625 (unread_char): Decrement read_md_lineno after putting back '\n'.
3626 * read-md.c (fatal_with_file_and_line): Push back any characters
3627 that we decide not to add to the context.
3628 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
3629 fatal_expected_char in cases where '/' ends a line (for example).
3630 (read_name): Don't increment read_md_lineno here.
3631 (read_escape): Likewise.
3632 (read_quoted_string): Likewise.
3633 (read_braced_string): Likewise.
3635 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3637 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
3638 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
3639 * genconstants.c: Include read-md.h.
3640 * read-rtl.c (md_constants): Move to read-md.c.
3641 (md_name): Move to read-md.h.
3642 (initialize_iterators): Use leading_string_hash instead of def_hash
3643 and leading_string_eq_p instead of def_name_eq_p.
3644 (read_name): Move to read-md.c.
3645 (def_hash, def_name_eq_p): Delete.
3646 (read_constants, traverse_md_constants): Move to read-md.c.
3647 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
3648 * read-md.h: Include hashtab.h.
3649 (md_name): Moved from read-rtl.c.
3650 (md_constant): Moved from read-md.h.
3651 (leading_string_hash, leading_string_eq_p, read_name)
3652 (read_constants, traverse_md_constants): Declare.
3653 * read-md.c (md_constants): Moved from read-rtl.c.
3654 (leading_string_hash, leading_string_eq_p): New functions.
3655 (read_name, read_constants, traverse_md_constants): Moved from
3658 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3660 * read-rtl.c (md_name): New structure.
3661 (read_name): Take an md_name instead of a buffer pointer.
3662 Use the "string" field instead of strcpy when expanding constants.
3663 (read_constants): Remove the tmp_char argument. Update the calls
3664 to read_name, using two local name buffers instead of the tmp_char
3665 argument. Merge the constant-creation code.
3666 (read_conditions): Remove the tmp_char argument. Update the calls
3667 to read_name, using a local name buffer instead of the tmp_char
3669 (read_mapping): Replace tmp_char variable with a local name buffer.
3670 Update the calls to read_name.
3671 (read_rtx_1): Likewise. Update the calls to read_constants and
3674 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3676 * Makefile.in (build/read-md.o): Depend on errors.h.
3677 * read-md.h (error_with_line): Declare.
3678 * read-md.c: Include errors.h.
3679 (message_with_line_1): New function, extracted from...
3680 (message_with_line): ...here.
3681 (error_with_line): New function.
3682 * genattrtab.c: If a call to message_with_line is followed by
3683 "have_error = 1;", replace both statements with a call to
3685 * genoutput.c: Likewise.
3686 * genpreds.c: Likewise.
3687 * genrecog.c: If a call to message_with_line is followed by
3688 "error_count++;", replace both statements with a call to
3690 (errorcount): Delete.
3691 (main): Don't check it.
3692 * gensupport.c: If a call to message_with_line is followed by
3693 "errors = 1;", replace both statements with a call to error_with_line.
3695 (process_define_cond_exec): Check have_error instead of errors.
3696 (init_md_reader_args_cb): Likewise. Don't set errors.
3698 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3700 * read-md.h (read_md_file): Declare.
3701 (read_char, unread_char): New functions.
3702 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
3703 (read_quoted_string, read_string): Remove FILE * argument.
3704 * read-md.c (read_md_file): New variable.
3705 (read_md_filename, read_md_lineno): Update comments and remove
3706 unnecessary initialization.
3707 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
3708 (read_escape, read_quoted_string, read_braced_string, read_string):
3709 Remove FILE * argument. Update calls accordingly, using read_char
3710 and unread_char instead of getc and ungetc.
3711 * rtl.h (read_rtx): Remove FILE * argument.
3712 * read-rtl.c (iterator_group): Remove FILE * argument from
3714 (iterator_traverse_data): Remove "infile" field.
3715 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
3716 (add_mapping, read_name, read_constants, read_conditions)
3717 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
3718 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
3719 Remove file arguments from all calls, using read_char and unread_char
3720 instead of getc and ungetc.
3721 * gensupport.c (process_include): Preserve read_md_file around
3722 the include. Set read_md_file to the handle of the included file.
3723 Update call to read_rtx.
3724 (init_md_reader_args_cb): Set read_md_file to the handle of the file
3725 and remove local FILE *. Update calls to read_rtx.
3727 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3729 * read-md.h (read_rtx_lineno): Rename to...
3730 (read_md_lineno): ...this.
3731 (read_rtx_filename): Rename to...
3732 (read_md_filename): ...this.
3733 (copy_rtx_ptr_loc): Rename to...
3734 (copy_md_ptr_loc): ...this.
3735 (print_rtx_ptr_loc): Rename to...
3736 (print_md_ptr_loc): ...this.
3737 * read-md.c: Likewise. Update references after renaming.
3738 (string_obstack): Replace RTL with MD in comment.
3739 (set_rtx_ptr_loc): Rename to...
3740 (set_md_ptr_loc): ...this.
3741 (get_rtx_ptr_loc): Rename to...
3742 (get_md_ptr_loc): ...this.
3743 * genconditions.c: Update references after renaming.
3744 * genemit.c: Likewise.
3745 * genoutput.c: Likewise.
3746 * genpreds.c: Likewise.
3747 * gensupport.c: Likewise.
3748 * read-rtl.c: Likewise.
3750 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
3752 * Makefile.in (READ_MD_H): New variable.
3753 (BUILD_RTL): Add build/read-md.o.
3754 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
3755 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
3756 (build/genattrtab.o, build/genconditions.o build/genemit.o)
3757 (build/genextract.o, build/genflags.o, build/genoutput.o)
3758 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
3759 (build/read-md.o): New rule.
3760 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
3761 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
3762 * coretypes.h: ...here.
3763 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
3764 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
3765 * genattr.c: Include read-md.h.
3766 * genattrtab.c: Likewise.
3767 * genconditions.c: Likewise.
3768 * genemit.c: Likewise.
3769 * genextract.c: Likewise.
3770 * genflags.c: Likewise.
3771 * genoutput.c: Likewise.
3772 * genpreds.c: Likewise.
3773 * genrecog.c: Likewise.
3774 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
3775 (join_c_conditions, print_c_condition, read_rtx_filename)
3776 (read_rtx_lineno): Move to read-md.h.
3777 * read-rtl.c: Include read-md.h.
3778 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
3779 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
3780 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
3781 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
3782 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
3783 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
3784 (read_braced_string, read_string): Move to read-md.c.
3785 (read_rtx): Move some initialization to init_md_reader and call
3786 init_md_reader here.
3787 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
3789 * gensupport.c: Include read-md.h.
3790 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
3791 * read-md.h, read-md.c: New files.
3793 2010-06-10 Anatoly Sokolov <aesok@post.ru>
3795 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
3796 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
3797 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
3798 * config/moxie/moxie.c (moxie_function_value): Make static.
3799 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
3800 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
3802 2010-06-10 Martin Jambor <mjambor@suse.cz>
3804 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
3805 * dbgcnt.def (tree_sra): New counter.
3806 * tree-sra.c: Include dbgcnt.h.
3807 (gate_intra_sra): Check tree_sra debug counter.
3809 2010-06-10 Martin Jambor <mjambor@suse.cz>
3811 PR tree-optimization/44258
3812 * tree-sra.c (build_access_subtree): Return false iff there is a
3814 (build_access_trees): Likewise.
3815 (analyze_all_variable_accesses): Disqualify candidates if
3816 build_access_trees returns true for them.
3818 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
3821 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
3822 tail-recurse into canonical node. Fast-forward over
3823 non-canonical VALUEs.
3825 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
3828 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
3829 (*addsi_1_zext) <TYPE_LEA>: Likewise.
3830 (add lea splitter): Likewise.
3831 (add_zext lea splitter): Likewise.
3833 2010-06-10 Joseph Myers <joseph@codesourcery.com>
3835 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
3837 2010-06-10 Jan Hubicka <jh@suse.cz>
3839 * df-problems.c (df_live_problem_data): Add live_bitmaps.
3840 (df_live_alloc): Initialize problem data and live_osbtacks.
3841 (df_live_finalize): Remove obstack, problem data; do not
3843 (df_live_top_dump, df_live_bottom_dump): Do not dump old
3844 data when not allocated.
3845 (df_live_verify_solution_start): Do not allocate problem data.
3846 (df_live_verify_solution_end): Check if out is allocated.
3847 (struct df_md_problem_data): New structure.
3848 (df_md_alloc): Allocate problem data.
3849 (df_md_free): Free problem data; do not clear bitmaps.
3851 2010-06-10 Jan Beulich <jbeulich@novell.com>
3854 * configure.ac: Replace $() with ${} when intending to expand
3855 variables rather than invoking commands.
3856 * configure: Re-generate.
3858 2010-06-10 Jan Hubicka <jh@suse.cz>
3860 PR rtl-optimization/44460
3861 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
3862 TYPE_NEEDS_CONSTRUCTING sanity check.
3864 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
3866 * doc/include/fdl.texi: Move to GFDL version 1.3.
3868 * doc/cpp.texi: Move to GFDL version 1.3.
3869 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
3870 * doc/gccint.texi: Move to GFDL version 1.3.
3871 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
3872 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
3873 * doc/invoke.texi: Move to GFDL version 1.3.
3875 2010-06-09 Jan Hubicka <jh@suse.cz>
3877 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
3879 (propagate) ... here; swap the order.
3881 2010-06-09 Jan Hubicka <jh@suse.cz>
3883 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
3884 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
3885 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
3886 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
3888 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
3890 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
3891 Do not the gather memory reference in the outer loop if the step
3894 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
3896 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
3897 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
3898 8 to 4. Minor change of the related comments.
3900 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
3902 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
3903 the scev analysis when the variable is not used outside the loop
3904 in a close phi node: call compute_overall_effect_of_inner_loop.
3906 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
3908 * graphite-sese-to-poly.c (single_pred_cond): Renamed
3909 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
3910 (build_sese_conditions_before): Renamed call to single_pred_cond.
3911 (build_sese_conditions_after): Same.
3913 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
3915 * graphite-poly.h: Fix comments and indentation.
3916 * graphite-sese-to-poly.c: Same.
3917 (build_sese_conditions_before): Compute stmt and gbb only when needed.
3918 * tree-chrec.c: Fix comments and indentation.
3919 (tree-ssa-loop-niter.c): Same.
3921 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
3923 PR rtl-optimization/42461
3924 * dce.c (deletable_insn_p): Return true for const or pure calls again.
3925 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
3927 2010-06-09 Jan Hubicka <jh@suse.cz>
3929 * bitmap.c (bitmap_and): Walk array forward.
3930 (bitmap_and_compl_into): Likewise.
3931 (bitmap_xor): Likewise.
3932 (bitmap_xor_into): Likewise.
3933 (bitmap_equal_p): Likewise.
3934 (bitmap_intersect_p): Likewise.
3935 (bitmap_intersect_compl_p): Likewise.
3936 (bitmap_ior_and_into): Likewise.
3937 (bitmap_elt_copy): Likewise.
3938 (bitmap_and_compl): Likewise.
3939 (bitmap_elt_ior): Likewise.
3941 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
3943 * opts-common.c (prune_options): Ensure replacement argv array
3944 is correctly terminated by a NULL entry.
3946 2010-06-09 Jan Hubicka <jh@suse.cz>
3948 * cgraph.h (varpool_first_static_initializer,
3949 varpool_next_static_initializer): Make checking only when
3951 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
3952 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
3953 gcc_assert to gcc_checking_assert.
3954 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
3955 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
3956 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
3957 op_iter_init_phiuse, op_iter_init_phidef,
3958 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
3959 gcc_checking_assert.
3960 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
3961 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
3962 partition_is_global, live_on_entry, live_on_exit,
3963 live_merge_and_clear): Likewise.
3964 * system.h (gcc_checking_assert): New macro.
3965 * gimple.h (set_bb_seq): Use gcc_checking_assert.
3967 2010-06-09 Jason Merrill <jason@redhat.com>
3969 * Makefile.in (TAGS): Collect tags info from c-family.
3971 2010-06-09 Jan Hubicka <jh@suse.cz>
3973 * gimple.h (gcc_gimple_checking_assert): New macro.
3974 (gimple_set_def_ops, gimple_set_use_ops,
3975 gimple_set_vuse, gimple_set_vdef,
3976 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
3977 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
3978 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
3979 gimple_asm_output_op, gimple_asm_output_op_ptr,
3980 gimple_asm_set_output_op, gimple_asm_clobber_op,
3981 gimple_asm_set_clobber_op, gimple_asm_label_op,
3982 gimple_asm_set_label_op, gimple_try_set_kind,
3983 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
3984 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
3985 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
3986 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
3987 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
3988 gimple_omp_for_set_initial, gimple_omp_for_final,
3989 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
3990 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
3991 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
3992 conditional with ENABLE_GIMPLE_CHECKING.
3993 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
3995 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
3997 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
3998 (get_computation_cost_at): Use it.
3999 (determine_use_iv_cost_condition): Likewise.
4000 (determine_iv_cost): Likewise.
4002 2010-06-09 Richard Guenther <rguenther@suse.de>
4004 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
4007 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
4009 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
4011 2010-06-09 Martin Jambor <mjambor@suse.cz>
4013 PR tree-optimization/44423
4014 * tree-sra.c (dump_access): Dump also grp_assignment_read.
4015 (analyze_access_subtree): Pass negative allow_replacements to children
4016 if the current type is scalar.
4018 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
4021 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
4022 * doc/plugins.texi (Plugin license check): Update information
4023 on type of plugin_is_GPL_compatible.
4024 * Makefile.in (PLUGINCC): Define as $(COMPILER).
4025 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
4027 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
4029 * config/arm/arm.c (thumb2_reorg): New function.
4030 (arm_reorg): Call it.
4031 * config/arm/thumb2.md (define_peephole2 for flag clobbering
4032 arithmetic operations): Delete.
4034 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
4037 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
4040 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
4043 * gcc-plugin.h: Encapsulate all declarations in extern "C".
4045 2010-06-08 Jan Hubicka <jh@suse.cz>
4047 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
4048 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
4050 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
4052 PR tree-optimization/39874
4054 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
4056 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
4057 same_bool_result_p): New.
4058 (and_var_with_comparison, and_var_with_comparison_1,
4059 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
4060 (or_var_with_comparison, or_var_with_comparison_1,
4061 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
4062 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
4063 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
4064 of combine_comparisons.
4065 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
4067 2010-06-08 Anatoly Sokolov <aesok@post.ru>
4069 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
4070 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
4071 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
4072 pdp11_function_value_regno_p): New functions.
4073 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4074 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4076 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
4078 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
4079 Thumb-2 in the MINUS case.
4081 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
4083 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
4085 * doc/gty.texi (GTY Options): Document typed GC allocation and
4086 variable_size GTY option.
4088 * ggc-internal.h: New.
4090 * ggc.h: Update copyright year.
4091 (digit_string): Move to stringpool.c.
4092 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
4093 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
4094 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
4095 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
4096 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
4097 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
4098 (ggc_force_collect, ggc_get_size, ggc_statistics)
4099 (ggc_print_common_statistics): Move to ggc-internal.h.
4100 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
4101 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
4102 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
4103 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
4104 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
4105 (ggc_alloc_zone_pass_stat): Remove.
4106 (ggc_internal_alloc_stat, ggc_internal_alloc)
4107 (ggc_internal_cleared_alloc_stat): New.
4108 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
4109 (ggc_internal_vec_alloc_stat)
4110 (ggc_internal_cleared_vec_alloc_stat)
4111 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
4112 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
4113 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
4114 (ggc_cleared_alloc_ptr_array_two_args): New.
4115 (htab_create_ggc, splay_tree_new_ggc): Redefine.
4116 (ggc_splay_alloc): Change the type of the first argument to
4118 (ggc_alloc_string): Make macro.
4119 (ggc_alloc_string_stat): New.
4120 (ggc_strdup): Redefine.
4121 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
4122 (ggc_alloc_rtvec_sized): New.
4123 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
4124 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
4125 (ggc_internal_cleared_alloc_zone_stat)
4126 (ggc_internal_zone_alloc_stat)
4127 (ggc_internal_zone_cleared_alloc_stat)
4128 (ggc_internal_zone_vec_alloc_stat)
4129 (ggc_alloc_zone_rtx_def_stat)
4130 (ggc_alloc_zone_tree_node_stat)
4131 (ggc_alloc_zone_cleared_tree_node_stat)
4132 (ggc_alloc_cleared_gimple_statement_d_stat): New.
4134 * ggc-common.c: Include ggc-internal.h.
4135 (ggc_internal_cleared_alloc_stat): Rename from
4136 ggc_alloc_cleared_stat.
4137 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
4138 (ggc_calloc): Remove.
4139 (ggc_cleared_alloc_htab_ignore_args): New.
4140 (ggc_cleared_alloc_ptr_array_two_args): New.
4141 (ggc_splay_alloc): Add obj_type parameter.
4142 (init_ggc_heuristics): Formatting fixes.
4144 * ggc-none.c: Update copyright year.
4145 (ggc_alloc_stat): Rename to ggc_alloc_stat.
4146 (ggc_alloc_cleared_stat): Rename to
4147 ggc_internal_cleared_alloc_stat.
4148 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
4150 * ggc-page.c: Update copyright year. Include ggc-internal.h.
4151 Remove references to ggc_alloc in comments.
4152 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
4153 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
4154 (new_ggc_zone, destroy_ggc_zone): Remove.
4155 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
4157 * ggc-zone.c: Include ggc-internal.h. Remove references to
4158 ggc_alloc in comments.
4159 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
4160 (ggc_internal_alloc_zone_pass_stat): New.
4161 (ggc_internal_cleared_alloc_zone_stat): New.
4162 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
4163 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
4164 (new_ggc_zone, destroy_ggc_zone): Remove.
4166 * stringpool.c: Update copyright year. Include ggc-internal.h
4167 (digit_vector): Make static.
4168 (digit_string): Moved from ggc.h.
4169 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
4170 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
4172 * Makefile.in (GGC_INTERNAL_H): New.
4173 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
4174 $(GGC_INTERNAL_H) to dependencies.
4176 * gentype.c: Update copyright year.
4177 (walk_type): Accept variable_size GTY option.
4178 (USED_BY_TYPED_GC_P): New macro.
4179 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
4180 whitespace at the end of strings.
4181 (get_type_specifier, variable_size_p): New functions.
4182 (alloc_quantity, alloc_zone): New enums.
4183 (write_typed_alloc_def): New function.
4184 (write_typed_struct_alloc_def): Likewise.
4185 (write_typed_typed_typedef_alloc_def): Likewise.
4186 (write_typed_alloc_defns): Likewise.
4187 (output_typename, write_splay_tree_allocator_def): Likewise.
4188 (write_splay_tree_allocators): Likewise.
4189 (main): Call write_typed_alloc_defns and
4190 write_splay_tree_allocators.
4192 * lto-streamer.h (lto_file_decl_data_ptr): New.
4194 * passes.c (order): Define using cgraph_node_ptr.
4196 * strinpool.c (struct string_pool_data): Declare nested_ptr using
4199 * gimple.h (union gimple_statement_d): Likewise.
4201 * rtl.h (struct rtx_def): Likewise.
4202 (struct rtvec_def): Likewise.
4204 * tree.h (union tree_node): Likewise.
4206 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
4208 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
4210 * tree-scalar-evolution.c (scev_initialize): Likewise.
4212 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
4214 * dwarf2asm.c (dw2_force_const_mem): Likewise.
4216 * omp-low.c (lower_omp_critical): Likewise.
4218 * bitmap.h (struct bitmap_head_def): Update comment to not
4219 reference ggc_alloc.
4221 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
4223 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
4225 * ipa-prop.c (duplicate_ggc_array): Rename to
4226 duplicate_ipa_jump_func_array. Use typed GC allocation.
4227 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
4229 * gimple.c (gimple_alloc_stat): Use
4230 ggc_alloc_cleared_gimple_statement_d_stat.
4232 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
4234 * tree.c (make_node_stat): Use
4235 ggc_alloc_zone_cleared_tree_node_stat.
4236 (make_tree_vec_stat): Likewise.
4237 (build_vl_exp_stat): Likewise.
4238 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
4239 (make_tree_binfo_stat): Likewise.
4240 (tree_cons_stat): Likewise.
4242 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
4243 (shallow_copy_rtx_stat): Likewise.
4244 (make_node_stat): Likewise.
4246 * lto-symtab.c: Fix comment.
4248 * tree-cfg.c (create_bb): Update comment to not reference
4250 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
4252 * varpool.c (varpool_node): Use typed GC allocation.
4253 (varpool_extra_name_alias): Likewise.
4255 * varasm.c (emutls_decl): Likewise.
4256 (get_unnamed_section): Likewise.
4257 (get_noswitch_section): Likewise.
4258 (get_section): Likewise.
4259 (get_block_for_section): Likewise.
4260 (build_constant_desc): Likewise.
4261 (create_constant_pool): Likewise.
4262 (force_const_mem): Likewise.
4264 * tree.c (build_vl_exp_stat): Likewise.
4265 (build_real): Likewise.
4266 (build_string): Likewise.
4267 (decl_debug_expr_insert): Likewise.
4268 (decl_value_expr_insert): Likewise.
4269 (type_hash_add): Likewise.
4270 (build_omp_clause): Likewise.
4272 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
4274 * tree-ssa.c (init_tree_ssa): Likewise.
4276 * tree-ssa-structalias.c (heapvar_insert): Likewise.
4278 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
4280 * tree-ssa-loop-niter.c (record_estimate): Likewise.
4282 * tree-ssa-alias.c (get_ptr_info): Likewise.
4284 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
4286 * tree-phinodes.c (allocate_phi_node): Likewise.
4288 * tree-iterator.c (tsi_link_before): Likewise.
4289 (tsi_link_after): Likewise.
4291 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
4293 * tree-dfa.c (create_var_ann): Likewise.
4295 * tree-cfg.c (create_bb): Likewise.
4297 * toplev.c (alloc_for_identifier_to_locale): Likewise.
4298 (general_init): Likewise.
4300 * stringpool.c (stringpool_ggc_alloc): Likewise.
4301 (gt_pch_save_stringpool): Likewise.
4303 * sese.c (if_region_set_false_region): Likewise.
4305 * passes.c (do_per_function_toporder): Likewise.
4307 * optabs.c (set_optab_libfunc): Likewise.
4308 (set_conv_libfunc): Likewise.
4310 * lto-symtab.c (lto_symtab_register_decl): Likewise.
4312 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
4313 (input_eh_region): Likewise.
4314 (input_eh_lp): Likewise.
4315 (make_new_block): Likewise.
4316 (unpack_ts_real_cst_value_fields): Likewise.
4318 * lto-section-in.c (lto_new_in_decl_state): Likewise.
4320 * lto-cgraph.c (input_node_opt_summary): Likewise.
4322 * loop-init.c (loop_optimizer_init): Likewise.
4324 * lambda.h (lambda_vector_new): Likewise.
4326 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
4328 * ira.c (update_equiv_regs): Likewise.
4330 * ipa.c (cgraph_node_set_new): Likewise.
4331 (cgraph_node_set_add): Likewise.
4332 (varpool_node_set_new): Likewise.
4333 (varpool_node_set_add): Likewise.
4335 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
4336 (duplicate_ipa_jump_func_array): Likewise.
4337 (ipa_read_node_info): Likewise.
4339 * ipa-cp.c (ipcp_create_replace_map): Likewise.
4341 * integrate.c (get_hard_reg_initial_val): Likewise.
4343 * gimple.c (gimple_alloc_stat): Likewise.
4344 (gimple_build_omp_for): Likewise.
4345 (gimple_seq_alloc): Likewise.
4346 (gimple_copy): Likewise.
4348 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
4349 (gsi_insert_after_without_update): Likewise.
4351 * function.c (add_frame_space): Likewise.
4352 (insert_temp_slot_address): Likewise.
4353 (assign_stack_temp_for_type): Likewise.
4354 (allocate_struct_function): Likewise.
4355 (types_used_by_var_decl_insert): Likewise.
4357 * except.c (init_eh_for_function): Likewise.
4358 (gen_eh_region): Likewise.
4359 (gen_eh_region_catch): Likewise.
4360 (gen_eh_landing_pad): Likewise.
4361 (add_call_site): Likewise.
4363 * emit-rtl.c (get_mem_attrs): Likewise.
4364 (get_reg_attrs): Likewise.
4365 (start_sequence): Likewise.
4366 (init_emit): Likewise.
4368 * dwarf2out.c (new_cfi): Likewise.
4369 (queue_reg_save): Likewise.
4370 (dwarf2out_frame_init): Likewise.
4371 (new_loc_descr): Likewise.
4372 (find_AT_string): Likewise.
4373 (new_die): Likewise.
4374 (add_var_loc_to_decl): Likewise.
4375 (clone_die): Likewise.
4376 (clone_as_declaration): Likewise.
4377 (break_out_comdat_types): Likewise.
4378 (new_loc_list): Likewise.
4379 (loc_descriptor): Likewise.
4380 (add_loc_descr_to_each): Likewise.
4381 (add_const_value_attribute): Likewise.
4382 (tree_add_const_value_attribute): Likewise.
4383 (add_comp_dir_attribute): Likewise.
4384 (add_name_and_src_coords_attributes): Likewise.
4385 (lookup_filename): Likewise.
4386 (store_vcall_insn): Likewise.
4387 (dwarf2out_init): Likewise.
4389 * dbxout.c (dbxout_init): Likewise.
4391 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
4393 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
4395 * config/score/score7.c (score7_output_external): Likewise.
4397 * config/score/score3.c (score3_output_external): Likewise.
4399 * config/s390/s390.c (s390_init_machine_status): Likewise.
4401 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
4402 (rs6000_init_machine_status): Likewise.
4403 (output_toc): Likewise.
4405 * config/pa/pa.c (pa_init_machine_status): Likewise.
4406 (get_deferred_plabel): Likewise.
4408 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
4410 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
4412 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
4414 * config/mep/mep.c (mep_init_machine_status): Likewise.
4415 (mep_note_pragma_flag): Likewise.
4417 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
4419 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
4421 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
4423 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
4424 (i386_pe_maybe_record_exported_symbol): Likewise.
4426 * config/i386/i386.c (get_dllimport_decl): Likewise.
4427 (ix86_init_machine_status): Likewise.
4428 (assign_386_stack_local): Likewise.
4430 * config/frv/frv.c (frv_init_machine_status): Likewise.
4432 * config/darwin.c (machopic_indirection_name): Likewise.
4434 * config/cris/cris.c (cris_init_machine_status): Likewise.
4436 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
4438 * config/avr/avr.c (avr_init_machine_status): Likewise.
4440 * config/arm/arm.c (arm_init_machine_status): Likewise.
4442 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
4443 (alpha_need_linkage): Likewise.
4444 (alpha_use_linkage): Likewise.
4446 * cgraph.c (cgraph_allocate_node): Likewise.
4447 (cgraph_create_edge_1): Likewise.
4448 (cgraph_create_indirect_edge): Likewise.
4449 (cgraph_add_asm_node): Likewise.
4451 * cfgrtl.c (init_rtl_bb_info): Likewise.
4453 * cfgloop.c (alloc_loop): Likewise.
4454 (rescan_loop_exit): Likewise.
4456 * cfg.c (init_flow): Likewise.
4457 (alloc_block): Likewise.
4458 (unchecked_make_edge): Likewise.
4460 * c-parser.c (c_parse_init): Likewise.
4461 (c_parse_file): Likewise.
4463 * c-decl.c (bind): Likewise.
4464 (record_inline_static): Likewise.
4465 (push_scope): Likewise.
4466 (make_label): Likewise.
4467 (lookup_label_for_goto): Likewise.
4468 (finish_struct): Likewise.
4469 (finish_enum): Likewise.
4470 (c_push_function_context): Likewise.
4472 * bitmap.c (bitmap_element_allocate): Likewise.
4473 (bitmap_gc_alloc_stat): Likewise.
4475 * alias.c (record_alias_subset): Likewise.
4476 (init_alias_analysis): Likewise.
4478 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
4480 * fold-const.c (fold_comparison): Remove redundant parenthesis.
4481 * tree-inline.c (expand_call_inline): Pass translated return value of
4482 cgraph_inline_failed_string to diagnostic function.
4484 2010-06-08 Andrew Pinski <pinskia@gmail.com>
4485 Shujing Zhao <pearly.zhao@oracle.com>
4488 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
4489 implicit bad conversions is initialization.
4490 (error_init): Use gmsgid instead of msgid for argument name and change
4492 (pedwarn_init): Use gmsgid instead of msgid for argument name and
4493 change the call for pedwarn.
4494 (warning_init): Use gmsgid instead of msgid for argument name and
4495 change the call for warning.
4497 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
4499 * config/mips/mips-protos.h (mips_print_operand): Delete.
4500 (mips_print_operand_address): Delete.
4501 * config/mips/mips.h (mips_print_operand_punct): Delete.
4502 (PRINT_OPERAND): Delete.
4503 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
4504 (PRINT_OPERAND_ADDRESS): Delete.
4505 * config/mips/mips.c (mips_print_operand_punct): Make static.
4506 (mips_print_operand_address): Make static.
4507 (mips_print_operand): Make static. Call
4508 mips_print_operand_punct_valid_p.
4509 (mips_print_operand_punct_valid_p): New function.
4510 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4511 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4513 2010-06-07 Jan Hubicka <jh@suse.cz>
4516 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
4519 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
4521 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
4524 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4526 * doc/sourcebuild.texi (Effective-Target Keywords, Other
4527 attributes): Document gas.
4529 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
4531 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
4532 <TYPE_LEA>: Split instruction.
4533 <default>: Remove alternative 2 handling.
4534 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
4535 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
4536 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
4538 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
4539 (ashift_zext lea splitter): Use DImode for multiplication.
4541 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
4542 to generate addition.
4544 2010-06-07 Joseph Myers <joseph@codesourcery.com>
4546 * common.opt (fira-verbose): Use Var.
4547 (fpcc-struct-return): Use Init instead of VarExists.
4548 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
4550 * flags.h (flag_signed_char, flag_short_enums,
4551 flag_pcc_struct_return, flag_ira_verbose,
4552 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
4553 * toplev.c (flag_detailed_statistics, flag_signed_char,
4554 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
4555 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
4556 * toplev.h (flag_crossjumping, flag_if_conversion,
4557 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
4558 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
4559 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
4560 flag_cprop_registers, time_report, flag_ira_loop_pressure,
4561 flag_ira_coalesce, flag_ira_move_spills,
4562 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
4564 2010-06-07 Jan Hubicka <jh@suse.cz>
4566 * df-core.c (df_analyze_problem): Do verification after allocation.
4568 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
4569 (df_lr_alloc): Initialize problem data; move bitmaps to
4571 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
4572 (df_lr_verify_solution_start): Do not initialize problem data;
4573 allocate bitmaps in lr_bitmaps.
4574 (df_lr_verify_solution_end): Do not free problem data.
4576 2010-06-07 Jan Hubicka <jh@suse.cz>
4578 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
4579 if caller is noreturn.
4580 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
4581 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
4582 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
4583 * ipa-pure-const.c (check_decl): Add IPA parameter.
4584 (state_from_flags): New function.
4585 (better_state, worse_state): New functions.
4586 (check_call): When in IPA mode, do not care about callees.
4587 (check_load, check_store): Update.
4588 (check_ipa_load, check_ipa_store): New.
4589 (check_stmt): When in IPA mode, use IPA checkers.
4590 (analyze_function): Use state_from_flags.
4591 (propagate): Check indirect edges and references.
4593 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
4595 PR rtl-optimization/44404
4596 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
4597 of count_occurrences to see if it's safe to modify mem_insn.
4599 2010-06-07 Richard Guenther <rguenther@suse.de>
4601 * gimplify.c (gimplify_cleanup_point_expr): For empty body
4602 and EH-only cleanup drop the cleanup instead of inserting it
4605 2010-06-07 Ira Rosen <irar@il.ibm.com>
4607 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
4609 * targhooks.c (default_builtin_vectorization_cost): New function.
4610 * targhooks.h (default_builtin_vectorization_cost): Declare.
4611 * target.h (enum vect_cost_for_stmt): Define.
4612 (builtin_vectorization_cost): Change argument and comment.
4613 * tree-vectorizer.h: Remove cost model macros.
4614 * tree-vect-loop.c: Include target.h.
4615 (vect_get_cost): New function.
4616 (vect_estimate_min_profitable_iters): Replace cost model macros with
4617 calls to vect_get_cost.
4618 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
4619 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
4620 default implementation.
4621 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
4622 calls to target hook builtin_vectorization_cost.
4623 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
4625 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
4626 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
4627 implementation to return costs.
4628 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
4629 * config/spu/spu.h: Remove vectorizer cost model macros.
4630 * config/i386/i386.h: Likewise.
4631 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
4632 a call to target hook builtin_vectorization_cost.
4634 2010-06-06 Sriraman Tallam <tmsriram@google.com>
4637 * config/i386/i386.c (override_options): Turn zee pass on for level 2
4638 and above and defer till target is known.
4639 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
4642 2010-05-25 Jan Hubicka <jh@suse.cz>
4644 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
4645 (df_compact_blocks): Likewise.
4646 * df.h (struct df): Turn hardware_regs_used,
4647 regular_block_artificial_uses, eh_block_artificial_uses,
4648 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
4650 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
4651 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
4652 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
4653 df_scan_blocks, df_insn_delete, df_insn_rescan,
4654 df_insn_rescan_debug_internal, df_insn_rescan_all,
4655 df_process_deferred_rescans, df_process_deferred_rescans,
4656 df_notes_rescan, df_get_call_refs, df_get_call_refs,
4657 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
4658 df_record_entry_block_defs, df_record_exit_block_uses,
4659 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
4660 df_scan_verify): Update.
4662 2010-05-25 Dodji Seketeli <dodji@redhat.com>
4665 * c-common.c (is_typedef_decl): Move this definition ...
4666 * tree.c (is_typedef_decl): ... here.
4667 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
4668 * c-common.h (is_typedef_decl): Move this declaration ...
4669 * tree.h (is_typedef_decl): ... here.
4670 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
4671 * dwarf2out.c (is_naming_typedef_decl): New function.
4672 (gen_tagged_type_die): Split out of ...
4673 (gen_type_die_with_usage): ... this function. When an anonymous
4674 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
4675 is emitted for the typedef.
4676 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
4677 anonymous tagged types.
4679 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
4682 * c-decl.c (grokdeclarator): Delete warning.
4684 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
4686 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
4687 newly built CALL_EXPR.
4688 * tree-profile.c (tree_profiling): Don't profile functions produced
4691 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
4695 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
4696 endianness-independent.
4698 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
4700 * c-common.c: Move to c-family/.
4701 * c-common.def: Likewise.
4702 * c-common.h: Likewise.
4703 * c-cppbuiltin.c: Likewise.
4704 * c-dump.c: Likewise.
4705 * c-format.c: Likewise.
4706 * c-format.h : Likewise.
4707 * c-gimplify.c: Likewise.
4708 * c-lex.c: Likewise.
4709 * c-omp.c: Likewise.
4711 * c-opts.c: Likewise.
4712 * c-pch.c: Likewise.
4713 * c-ppoutput.c: Likewise.
4714 * c-pragma.c: Likewise.
4715 * c-pragma.h: Likewise.
4716 * c-pretty-print.c: Likewise.
4717 * c-pretty-print.h: Likewise.
4718 * c-semantics.c: Likewise.
4719 * stub-objc.c: Likewise.
4721 * gengtype.c (get_file_langdir): Special-case files in c-family/.
4722 (get_output_file_with_visibility): Fix name for c-common.h.
4723 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
4725 * c-tree.h: Update include path for moved files.
4726 * c-lang.c: Likewise.
4727 * c-lang.h: Likewise.
4728 * c-parser.c: Likewise.
4729 * c-convert.c: Likewise.
4730 * c-decl.c: Likewise.
4731 * c-objc-common.c: Likewise.
4732 * configure.ac: Make sure c-family/ exists in the build directory.
4733 * configure: Regenerate.
4734 * Makefile.in: Update paths for moved files. Regroup files per
4735 location and update dependencies. Move generated_files down after
4738 * config/spu/spu-c.c: Update paths for moved files.
4739 * config/mep/mep-pragma.c: Likewise.
4740 * config/darwin-c.c: Likewise.
4741 * config/i386/msformat-c.c: Likewise.
4742 * config/i386/i386-c.c: Likewise.
4743 * config/avr/avr-c.c: Likewise.
4744 * config/sol2-c.c: Likewise.
4745 * config/ia64/ia64-c.c: Likewise.
4746 * config/rs6000/rs6000-c.c: Likewise.
4747 * config/arm/arm.c: Likewise.
4748 * config/arm/arm-c.c: Likewise.
4749 * config/h8300/h8300.c: Likewise.
4750 * config/v850/v850-c.c: Likewise.
4752 * config/t-darwin: Fix dependencies for moved files.
4753 * config/t-sol2: Fix dependencies for moved files.
4754 * config/mep/t-mep: Fix dependencies for moved files.
4755 * config/ia64/t-ia64: Fix dependencies for moved files.
4756 * config/rs6000/t-rs6000: Fix dependencies for moved files.
4757 * config/v850/t-v850: Fix dependencies for moved files.
4758 * config/v850/t-v850e: Fix dependencies for moved files.
4760 * config/m32c/m32c-pragma.c
4762 * po/exgettext: Look in c-family/ also.
4764 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
4766 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
4767 (mark_control_dependent_edges_necessary): Call it instead of marking
4768 the last statement manually.
4769 (propagate_necessity): Likewise.
4771 2010-06-05 Jan Hubicka <jh@suse.cz>
4773 * basic-block.h (compute_dominance_frontiers): Updated.
4774 (compute_idf): Likewise.
4776 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
4777 for dominance frontiers.
4778 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
4779 (insert_updated_phi_nodes_for): Likewise.
4780 (update_ssa): Likewise.
4781 * cfganal.c (compute_dominance_frontiers_1): Likewise.
4782 (compute_dominance_frontiers): Likewise.
4783 (compute_idf): Likewise.
4784 * df-problems.c (df_md_local_compute): Likewise.
4786 2010-06-05 Anatoly Sokolov <aesok@post.ru>
4788 * target.h (struct gcc_target): Add memory_move_cost field.
4789 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
4790 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
4791 * targhooks.c (default_memory_move_cost): New function.
4792 * targhooks.h (default_memory_move_cost): Declare function.
4793 * reload.h (memory_move_cost): Declare.
4794 (memory_move_secondary_cost): Change type of 'in' argument to bool.
4795 * reginfo.c (memory_move_cost): New function.
4796 (memory_move_secondary_cost): Change type of 'in' argument to bool.
4797 * ira.h (ira_memory_move_cost): Update comment.
4798 * ira.c: (ira_memory_move_cost): Update comment.
4799 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
4800 with memory_move_cost.
4801 * postreload.c (reload_cse_simplify_set): (Ditto.).
4802 * reload1.c (choose_reload_regs): (Ditto.).
4803 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
4804 (MEMORY_MOVE_COST): Revise documentation.
4806 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
4807 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
4808 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
4809 type of 'in' argument to bool.
4810 (TARGET_MEMORY_MOVE_COST): Define.
4812 2010-06-05 Jan Hubicka <jh@suse.cz>
4814 * ipa-pure-const.c (propagate): Fix typo in handling of functions
4815 that cannot return. Be more careful when merging the results with
4816 previously known ones.
4818 2010-06-05 Matthias Klose <doko@ubuntu.com>
4820 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
4821 function to add the -iplugindir option.
4822 (find_plugindir_spec_function): Add new declaration and function.
4823 (static_spec_func): Use it for "find-plugindir".
4825 2010-06-05 Jakub Jelinek <jakub@redhat.com>
4828 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
4829 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
4830 statement expression.
4832 2010-06-05 Jan Hubicka <jh@suse.cz>
4834 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
4835 (df_rd_problem_data): Convert sparse_invalidated_by_call,
4836 dense_invalidated_by_call to bitmap head.
4837 (df_rd_alloc, df_rd_bb_local_compute_process_def,
4838 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
4839 df_rd_start_dump, df_lr_verify_transfer_functions,
4840 df_live_verify_transfer_functions, df_chain_create_bb,
4841 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
4842 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
4843 df_simulate_one_insn_forwards, df_md_alloc,
4844 df_md_bb_local_compute_process_def,
4845 df_md_bb_local_compute_process_def, df_md_local_compute,
4846 df_md_transfer_function df_md_free): Update.
4848 2010-06-05 Joseph Myers <joseph@codesourcery.com>
4851 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
4852 target type for ADDR_EXPR; require no changes to qualifiers except
4854 * c-tree.h (c_build_type_variant): Remove.
4856 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
4858 * genautomata.c (get_excl_set): Do work per element, not per char.
4859 (check_presence_pattern_sets): Similar.
4860 (check_absence_pattern_sets): Similar.
4862 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
4864 * genautomata.c (curr_state_pass_num): Delete.
4865 (min_issue_delay_pass_states): Delete.
4866 (min_issue_delay): Delete.
4867 (initiate_min_issue_delay_pass_states): Delete.
4868 (output_min_issue_delay_table): Compute min_issue_delay_vect
4869 using a breadth-first search variant.
4870 (output_tables): Don't call initiate_min_issue_delay_pass_states.
4872 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
4875 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
4876 (df_byte_lr_bb_local_compute): Likewise.
4878 2010-06-03 Jason Merrill <jason@redhat.com>
4880 Implement noexcept operator (5.3.7)
4881 * c-common.c (c_common_reswords): Add noexcept.
4882 * c-common.h (enum rid): Add RID_NOEXCEPT.
4884 2010-06-04 Joseph Myers <joseph@codesourcery.com>
4886 * config/darwin-driver.c (darwin_default_min_version): Use
4887 GCC-specific formats in diagnostics.
4888 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
4890 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
4891 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
4892 eval_spec_function, handle_braces, process_brace_body, main,
4893 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
4894 getenv_spec_function, compare_version_strings,
4895 version_compare_spec_function): Use GCC-specific formats in
4898 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
4900 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
4901 that operand 0 and operand 1 are equal.
4902 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
4903 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
4904 and operand 1 are equal.
4905 <default>: Ditto. Remove ??? comment.
4906 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
4907 and operand 1 are equal.
4908 <default>: Ditto. Remove ??? comment.
4909 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
4911 (*add<mode>_4) <default>: Ditto.
4912 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
4914 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
4916 * config/i386/i386-protos.h (ix86_print_operand): Declare.
4917 * config/i386/i386.c (ix86_print_operand): Make non-static.
4918 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
4919 * output.h (output_operand): Declare.
4920 * final.c (output_operand): Make non-static.
4922 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
4924 PR rtl-optimization/44013
4925 * sched-deps.c (add_dependence_list_and_free): Don't free lists
4926 when processing debug insns.
4929 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
4930 recursing. Check that recursion is bounded. Rename inner var
4931 to avoid hiding incoming argument.
4933 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
4935 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
4940 (*addqi_ext_1_rex64): Ditto.
4941 (*addqi_ext_1): Ditto.
4943 (*addqi_4): Check for incdec_operand in QImode.
4945 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
4946 using SWI mode iterator.
4947 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
4948 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
4950 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
4951 using SWI mode iterator.
4953 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
4956 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
4957 * c-format.c (gcc_diag_flag_specs): Add hash.
4958 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
4959 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
4960 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
4961 pp_c_cv_qualifiers. Handle qualifiers spelling here.
4962 (pp_c_type_qualifier_list): Call the function above.
4963 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
4964 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
4965 (WARN_FOR_QUALIFIERS): New macro.
4966 (convert_for_assignment): Use it.
4968 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
4970 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
4972 2010-06-04 Jan Hubicka <jh@suse.cz>
4974 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
4975 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
4976 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
4977 DF_BYTE_LR_OUT): Update for embedded bitmaps.
4978 * fwprop.c (single_def_use_enter_block): Likewise.
4979 * ddg.c (create_ddg_dep_from_intra_loop_link,
4980 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
4981 * loop-iv.c (latch_dominating_def): Likewise.
4982 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
4983 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
4984 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
4985 df_rd_transfer_function, df_rd_top_dump,
4986 df_rd_bottom_dump): Update.
4987 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
4988 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
4989 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
4990 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
4991 df_lr_verify_solution_start, df_lr_verify_solution_end,
4992 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
4993 df_live_free_bb_info, df_live_alloc, df_live_reset,
4994 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
4995 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
4996 df_live_verify_solution_start, df_live_verify_solution_end,
4997 df_live_verify_transfer_functions, df_chain_create_bb,
4998 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
4999 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5000 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
5001 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
5002 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
5003 df_byte_lr_transfer_function, df_byte_lr_top_dump,
5004 df_byte_lr_bottom_dump, df_create_unused_note,
5005 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
5006 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
5007 df_md_transfer_function, df_md_init, df_md_confluence_0,
5009 df_md_top_dump, df_md_bottom_dump): Update.
5010 (struct df_lr_problem_data): Embedd bitmap headers.
5012 2010-06-04 Jan Hubicka <jh@suse.cz>
5014 * dce.c (dce_process_block): Do not re-scan already marked
5017 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
5019 PR rtl-optimization/39871
5020 PR rtl-optimization/40615
5021 PR rtl-optimization/42500
5022 PR rtl-optimization/42502
5023 * ira.c (init_reg_equiv_memory_loc: New function.
5024 (ira): Call it twice.
5025 * reload.h (calculate_elim_costs_all_insns): Declare.
5026 * ira-costs.c: Include "reload.h".
5027 (regno_equiv_gains): New static variable.
5028 (init_costs): Allocate it.
5029 (finish_costs): Free it.
5030 (ira_costs): Call calculate_elim_costs_all_insns.
5031 (find_costs_and_classes): Take estimated elimination costs
5033 (ira_adjust_equiv_reg_cost): New function.
5034 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
5035 * reload1.c (init_eliminable_invariants, free_reg_equiv,
5036 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
5037 (elim_bb): New static variable.
5038 (reload): Move code out of here into init_eliminable_invariants and
5039 free_reg_equiv. Call them.
5040 (calculate_elim_costs_all_insns): New function.
5041 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
5042 all callers changed. If FOR_COSTS is true, don't call alter_reg,
5043 but call note_reg_elim_costly if we turned a valid memory address
5044 into an invalid one.
5045 * Makefile.in (ira-costs.o): Depend on reload.h.
5047 2010-06-04 Julian Brown <julian@codesourcery.com>
5049 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
5052 2010-06-04 Richard Guenther <rguenther@suse.de>
5055 * cgraph.h (struct varpool_node): Add lto_file_data field.
5056 * lto-cgraph.c (input_varpool_node): Initialize it.
5058 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
5060 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
5061 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
5062 predicate in "type" attribute calculation.
5063 (*addsi_1_zext): Ditto.
5064 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
5065 (*addsi_2_zext): Ditto.
5066 (*add<mode>_3): Ditto.
5067 (*addsi_3_zext): Ditto.
5068 (*add<mode>_5): Ditto.
5070 2010-06-03 Jan Hubicka <jh@suse.cz>
5072 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
5074 * cfganal.c (compute_dominance_frontiers_1): Likewise.
5076 2010-06-03 Jan Hubicka <jh@suse.cz>
5078 * df-problems.c (df_create_unused_note, df_note_bb_compute):
5079 micro-optimize the checks when to add new note.
5081 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
5083 * final.c (output_asm_insn): Call
5084 targetm.asm_out.print_operand_punct_valid_p. Update comments.
5085 (output_operand): Call targetm.asm_out.print_operand. Update comments.
5086 (output_address): Call targetm.asm_out.print_operand_address.
5088 * target.h (struct gcc_target): Add print_operand,
5089 print_operand_address, and print_operand_punct_valid_p fields.
5090 * targhooks.h (default_print_operand): Declare.
5091 (default_print_operand_address): Declare.
5092 (default_print_operand_punct_valid_p): Declare.
5093 * targhooks.c (default_print_operand): Define.
5094 (default_print_operand_address): Define.
5095 (default_print_operand_punct_valid_p): Define.
5096 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
5097 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
5098 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
5099 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
5100 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
5101 * vmsdbgout.c (addr_const_to_string): Update comment.
5102 * config/i386/i386.c (print_operand): Rename to...
5103 (ix86_print_operand): ...this. Make static.
5104 (print_operand_address): Rename to...
5105 (ix86_print_operand_address): ...this. Make static. Call
5106 ix86_print_operand instead of PRINT_OPERAND.
5107 (ix86_print_operand_punct_valid_p): New function.
5108 (TARGET_PRINT_OPERAND): Define.
5109 (TARGET_PRINT_OPERAND_ADDRESS): Define.
5110 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
5111 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
5112 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
5113 (PRINT_OPERAND): Delete.
5114 (PRINT_OPERAND_ADDRESS): Delete.
5115 * config/i386/i386-protos.h (print_operand): Delete prototype.
5116 (print_operand_address): Delete prototype.
5118 2010-06-03 Richard Guenther <rguenther@suse.de>
5120 PR tree-optimization/44403
5121 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
5122 Preserve pointer qualifiers.
5123 (vect_create_data_ref_ptr): Likewise.
5125 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
5128 * defaults.h (MAX_FIXED_MODE_SIZE): New.
5130 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
5132 2010-06-03 Jakub Jelinek <jakub@redhat.com>
5135 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
5136 return false if merging the bbs would lead to goto_locus
5137 location being lost from the IL.
5139 2010-06-03 Jan Hubicka <jh@suse.cz>
5140 Jakub Jelinek <jakub@redhat.com>
5142 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
5143 set->regs[i] is NULL or has just one entry.
5145 2010-06-03 Jan Hubicka <jh@suse.cz>
5147 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
5148 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
5150 2010-06-03 Paul Brook <paul@codesourcery.com>
5152 * config/arm/arm.c (FL_TUNE): Define.
5153 (arm_default_cpu, arm_cpu_select): Remove.
5154 (all_cores): Populate core field.
5155 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
5156 (arm_find_cpu): New function.
5157 (arm_handle_option): Lookup cpu/architecture names.
5158 (arm_override_options): Cleanup mcpu/march/mtune handling.
5159 (arm_file_start): Ditto.
5161 2010-06-03 Alan Modra <amodra@gmail.com>
5164 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
5165 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
5166 rtx to gen_load_toc_v4_PIC_1b. Tidy.
5167 (rs6000_emit_load_toc_table): Likewise.
5169 2010-06-02 Jan Hubicka <jh@suse.cz>
5171 * passes.c (init_optimization_passes): Put ipa reference
5172 after ipa pure-const.
5174 2010-06-02 Jan Hubicka <jh@suse.cz>
5176 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
5177 calls_read_all and calls_write_all.
5178 (get_reference_optimization_summary): Fix formatting.
5179 (is_proper_for_analysis): Check that decl is not readonly.
5180 (propagate_bits): Check CONST/PURE/noreturn flags.
5181 (ipa_init): Move all_module_statics to optimization_summary_obstack.
5182 (analyze_function): Ignore indirect edges.
5183 (copy_global_bitmap): For all module statics, do nothing.
5184 (generate_summary): Do not print calls_read_all/calls_write_all.
5185 (read_write_all_from_decl): Take node as argument; check
5186 cgraph_node_cannot_return.
5187 (propagate): Reorganize read_all/write_all computation;
5188 check indirect edges; check ecf flags; use all_module_statics
5189 in the results; do not free all_module_statics.
5190 (stream_out_bitmap): Handle all_module_statics.
5191 (ipa_reference_write_optimization_summary): Likewise; use
5192 varpool/cgraph encoders to get boundaries.
5193 (ipa_reference_read_optimization_summary): Read in all_module_statics;
5194 use it when possible.
5196 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
5199 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
5200 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
5202 * doc/extend.texi (powerpc builtins): Document vec_recip,
5203 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
5205 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
5206 (rs6000_emit_swrsqrt): Ditto.
5207 (rs6000_emit_swdivsf): Delete.
5208 (rs6000_emit_swdivdf): Ditto.
5209 (rs6000_emit_swrsqrtsf): Ditto.
5211 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
5212 describe the reciprocal estimate support for each type.
5213 (recip_options): Map -mrecip=<opt> into option bits.
5214 (gen_2arg_fn_t): New typedef for binary rtx gen function.
5215 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
5216 reciprocal estimate instructions.
5217 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
5218 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
5219 Set up rs6000_recip_bits based on the -mrecip* options. Print the
5220 cost information if -mdebug=cost or -mdebug=reg.
5221 (rs6000_override_options): Set -mrecip-precision for power6, and
5222 power7 machines. If -mvsx or -mdfp, enable various options that
5223 came in previous instruction set ISAs, unless the option was
5224 explicitly disabled by the command line option. Parse
5225 -mrecip=<opt> options.
5226 (rs6000_builtin_vectorized_function): Add support for vectorizing
5227 the reciprocal estimate builtins and expansions.
5228 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
5229 (bdesc_2arg): Add reciprocal estimate builtins.
5230 (bdesc_1arg): Add reciprocal square root estimate builtins.
5231 (rs6000_expand_builtin): Rewrite to use a switch statement,
5232 instead of multiple if/then/elses. Add reciprocal estimate builtins.
5233 (rs6000_init_builtins): Create declarations for reciprocal
5235 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
5236 sized, prefer traditional floating point registers, if integer
5237 vector types, prefer altivec registers. Don't actually look at
5238 the memory address any more.
5239 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
5241 (rs6000_load_constant_and_splat): New helper function to load up
5242 the constant for reciprocal estimate instructions.
5243 (rs6000_emit_madd): New helper function for generating
5244 multiply/add type instructions, based on the current switches.
5245 (rs6000_emit_msub): Ditto.
5246 (rs6000_emit_mnsub): Ditto.
5247 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
5248 replace a divide with a reciprocal estimate and fixup, adding
5249 support for machines with high precision and vectors.
5250 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
5251 low precision machines.
5252 (rs6000_emit_swdiv): New common function to be called to replace a
5253 division with reciprocal estimate and fixup.
5254 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
5255 for double and vector types. Add support for high precision machines.
5257 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
5258 the reciprocal estimate instructions can be generated.
5259 (TARGET_FRE): Ditto.
5260 (TARGET_FRSQRTES): Ditto.
5261 (TARGET_FRSQRTE): Ditto.
5262 (RS6000_RECIP_*): New macros for reciprocal estimate support.
5264 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
5265 square root estimate on vectors.
5266 (re<mode>2): New insn for reciprocal division estimate on vectors.
5268 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
5270 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
5271 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
5272 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
5273 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
5274 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
5275 (RS6000_BUILTIN_RSQRT): Ditto.
5276 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
5277 floating point builtin.
5279 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
5280 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
5281 __RECIP_PRECISION__ based on the command line switches.
5282 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
5284 * config/rs6000/rs6000.opt (-mrecip): Document add support for
5285 replacing division instructions with reciprocal estimate and fixup.
5286 (-mrecip=<opt>): New option.
5287 (-mrecip-precision): Ditto.
5289 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
5290 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
5291 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
5294 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
5295 (UNSPEC_VREFP): Ditto.
5296 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
5297 conterparts with regard to support of -mno-fused-madd and -ffast-math.
5298 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
5299 reciprocal estimate instructions to be generated.
5300 (altivec_vrefp): Ditto.
5302 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
5304 (rreg): New mode attribute for reciprocal estimate support.
5305 (recip<mode>3): New insn for division using reciprocal estimate
5307 (divide define_split): New define_split to convert floating point
5308 division to use reciprocal estimate if the user used the
5309 appropriate options and the split is run when we can add new
5310 pseudo registers for the fixup.
5311 (rsqrt<mode>2): New insn for reciprocal square root support.
5312 (recipsf3): Move into recip<mode>3.
5314 (fres): Use TARGET_FRES.
5315 (rsqrtsf2): Move into rsqrt<mode>2.
5316 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
5317 (copysignsf3): Add support for VSX.
5318 (fred): Use TARGET_FRE.
5320 (rsqrtdf_internal1): New function for frsqrte instruciton.
5322 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
5325 2010-06-03 Richard Guenther <rguenther@suse.de>
5328 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
5329 (set_user_assembler_libfunc): Likewise.
5331 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
5333 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
5335 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
5337 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
5338 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
5339 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
5340 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
5341 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
5342 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
5343 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
5344 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
5345 * defaults.h: Updated for above mentioned changes.
5347 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
5349 * c-common.c: Remove header include of tm_p.h.
5350 * Makefile.in (c-common.o): Remove TM_P_H dependency.
5352 2010-06-02 Jakub Jelinek <jakub@redhat.com>
5354 * tree.h (struct tree_decl_map): New type.
5355 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
5356 (tree_decl_map_hash): New prototype.
5357 (debug_expr_for_decl, value_expr_for_decl): Change into
5358 tree_decl_map hashtab from tree_map.
5359 (init_ttree): Adjust initialization.
5360 (tree_decl_map_hash): New function.
5361 (decl_debug_expr_lookup, decl_debug_expr_insert,
5362 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
5364 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5366 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
5368 * configure: Regenerate.
5369 * config.in: Regenerate.
5371 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
5372 (X86_64_EMULATION): Define.
5373 (TARGET_LD_EMULATION): Use them.
5375 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
5376 (SPARC64_EMULATION): Define.
5377 (LINK_ARCH_SPEC): Use them.
5379 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
5381 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
5382 smallest_mode_for_size for computing the precision types of new
5383 graphite IVs. Do not call lang_hooks.types.type_for_size.
5385 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
5387 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
5389 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
5391 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
5394 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
5395 return false instead.
5397 2010-06-02 Jan Hubicka <jh@suse.cz>
5400 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
5401 create new cgraph node to check callee.
5403 2010-06-02 Richard Guenther <rguenther@suse.de>
5405 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
5407 2010-06-02 Richard Guenther <rguenther@suse.de>
5409 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
5410 (lto_wrapper_cleanup): ... this. Do not exit.
5411 (fatal): Adjust. Exit here.
5412 (fatal_perror): Likewise.
5413 (fatal_signal): New function.
5414 (main): Set up signal handlers to cleanup temporary files.
5415 * Makefile.in (lto-wrapper.o): Adjust dependencies.
5417 2010-06-02 Richard Guenther <rguenther@suse.de>
5419 PR tree-optimization/44377
5420 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
5422 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5424 * config/s390/2097.md (z10_fhex): Remove insn reservation.
5425 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
5426 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
5427 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
5429 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
5431 2010-06-02 Jan Hubicka <jh@suse.cz>
5433 * bitmap.c (bitmap_descriptor): Add search_iter.
5434 (bitmap_find_bit): Increment it.
5435 (print_statistics): Print it.
5437 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
5439 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
5440 instead of gimple_build_call_vec. Delete unnecessary local variable.
5442 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
5444 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
5445 change from yesterday.
5447 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
5449 * c-ada-spec.c: Clean up redundant includes.
5451 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
5453 * gimplify.c: Do not include except.h and optabs.h.
5454 (gimplify_body): Do not initialize RTL profiling.
5455 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
5456 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
5457 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
5458 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
5461 * tree-pretty-print.h: Include pretty-print.h.
5462 * gimple-pretty-print.h: Include pretty-print.h.
5464 * tree-pretty-print.c: Do not include diagnostic.h.
5465 * tree-vrp.c: Likewise.
5466 * tree-tailcall.c: Likewise
5467 * tree-scalar-evolution.c: Likewise
5468 * tree-ssa-dse.c: Likewise
5469 * tree-chrec.c: Likewise
5470 * tree-ssa-sccvn.c: Likewise
5471 * tree-ssa-copyrename.c: Likewise
5472 * tree-nomudflap.c: Likewise
5473 * tree-call-cdce.c: Likewise
5474 * tree-stdarg.c: Likewise
5475 * tree-ssa-math-opts.c: Likewise
5476 * tree-nrv.c: Likewise
5477 * tree-ssa-sink.c: Likewise
5478 * tree-browser.c: Likewise
5479 * tree-ssa-loop-ivcanon.c: Likewise
5480 * tree-ssa-loop.c: Likewise
5481 * tree-parloops.c: Likewise
5482 * tree-ssa-address.c: Likewise
5483 * tree-ssa-ifcombine.c: Likewise
5484 * tree-if-conv.c: Likewise
5485 * tree-data-ref.c: Likewise
5486 * tree-affine.c: Likewise
5487 * tree-ssa-phiopt.c: Likewise
5488 * tree-ssa-coalesce.c: Likewise
5489 * tree-ssa-pre.c: Likewise
5490 * tree-ssa-live.c: Likewise
5491 * tree-predcom.c: Likewise
5492 * tree-ssa-forwprop.c: Likewise
5493 * tree-ssa-dce.c: Likewise
5494 * tree-ssa-ter.c: Likewise
5495 * tree-ssa-loop-prefetch.c: Likewise
5496 * tree-optimize.c: Likewise
5497 * tree-ssa-phiprop.c: Likewise
5498 * tree-object-size.c: Likewise
5499 * tree-outof-ssa.c: Likewise
5500 * tree-ssa-structalias.c: Likewise
5501 * tree-switch-conversion.c: Likewise
5502 * tree-ssa-reassoc.c: Likewise
5503 * tree-ssa-operands.c: Likewise
5504 * tree-vectorizer.c: Likewise
5505 * tree-vect-data-refs.c: Likewise
5506 * tree-vect-generic.c: Likewise
5507 * tree-vect-stmts.c: Likewise
5508 * tree-vect-patterns.c: Likewise
5509 * tree-vect-slp.c: Likewise
5510 * tree-vect-loop.c: Likewise
5511 * tree-ssa-loop-ivopts.c: Likewise
5512 * tree-ssa-loop-im.c: Likewise
5513 * tree-ssa-loop-niter.c: Likewise
5514 * tree-ssa-loop-unswitch.c: Likewise
5515 * tree-ssa-loop-manip.c: Likewise
5516 * tree-ssa-loop-ch.c: Likewise
5517 * tree-dump.c: Likewise
5518 * tree-complex.c: Likewise
5520 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
5521 * tree-ssa-uninit.c: Likewise
5522 * tree-ssa-threadupdate.c: Likewise
5523 * tree-ssa-uncprop.c: Likewise
5524 * tree-ssa-ccp.c: Likewise
5525 * tree-ssa-dom.c: Likewise
5526 * tree-ssa-propagate.c: Likewise
5527 * tree-ssa-alias.c: Likewise
5528 * tree-dfa.c: Likewise
5529 * tree-cfgcleanup.c: Likewise
5530 * tree-sra.c: Likewise
5531 * tree-ssa-copy.c: Likewise
5532 * tree-ssa.c: Likewise
5533 * tree-profile.c: Likewise
5534 * tree-cfg.c: Likewise
5535 * tree-ssa-threadedge.c: Likewise
5536 * tree-vect-loop-manip.c: Likewise
5538 * tree-inline.c: Do not include diagnostic.h and expr.h.
5540 (copy_decl_for_dup_finish): Do not use NULL_RTX.
5542 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
5543 * tree-loop-distribution.c: Likewise.
5545 2010-06-01 Jan Hubicka <jh@suse.cz>
5547 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
5549 2010-06-01 Jan Hubicka <jh@suse.cz>
5551 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
5552 remove return value.
5553 (split_bbs_on_noreturn_calls) .... here.
5554 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
5555 * tree-flow.h (fixup_noreturn_call): New.
5557 2010-06-01 Jan Hubicka <jh@suse.cz>
5559 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
5561 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
5563 * tree.h (build_nt_call_list): Delete.
5564 * tree.c (build_nt_call_list): Delete.
5566 2010-06-01 Jan Hubicka <jh@suse.cz>
5568 * fwprop.c: Make emit-rtl.h include last.
5569 * rtlanal.c: Include emit-rtl.h.
5570 * genautomata.c: Output emit-rtl include into insn-automata.c
5571 * df-scan.c: Include emit-rtl.h.
5572 * haifa-sched.c: Indlude emit-rtl.h.
5573 * mode-switching.c: Indlude emit-rtl.h.
5574 * graph.c: Indlude emit-rtl.h.
5575 * sel-sched.c: Include emit-rtl.h.
5576 * sel-sched-ir.c: Include emit-rtl.h.
5577 * ira-build.c: Include emit-rtl.h.
5578 * emit-rtl.c: (first_insn, last_insn): Remove defines.
5579 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
5581 (set_new_first_and_last_insn, get_last_insn_anywhere,
5582 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
5583 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
5584 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
5585 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
5586 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
5587 Use accessor functions.
5588 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
5589 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
5590 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
5591 mem_expr_equal_p): Move here from rtl.h.
5592 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
5593 Move here from emit-rtl.c; make inline.
5594 * cfglayout.h: Include emit-rtl.h.
5595 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
5596 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
5597 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
5598 mem_expr_equal_p, get_insns, set_first-insn,
5599 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
5600 * reg-stack.c: Include emit-rtl.h.
5603 2010-06-01 Jan Hubicka <jh@suse.cz>
5605 * cgraph.h (tree_function_versioning): Update prototype.
5606 (cgraph_function_versioning): Update prototype.
5607 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
5609 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
5610 (cgraph_materialize_clone, save_inline_function_body): Update use of
5611 tree_function_versioning.
5612 * tree-inline.c (copy_bb): Look for previous copied block to link
5613 after; fix debug output.
5614 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
5615 (copy_body): Likewise.
5616 (expand_call_inline): Update use of copy_body.
5617 (tree_function_versioning): Update use of copy body; accept
5618 blocks_to_copy and new_entry.
5620 2010-06-01 Jan Hubicka <jh@suse.cz>
5622 * gegenrtl.c: Remove unnecesary prototypes.
5624 (gendef): Produce static inline.
5626 (main): Do not decode parameters; generate header only.
5627 * Makefile.in (genrtl.c): Remove.
5629 2010-06-01 Jan Hubicka <jh@suse.cz>
5631 * tree-switch-conversion.c (build_one_array): Make it readonly.
5633 2010-06-01 Richard Guenther <rguenther@suse.de>
5635 * optabs.c (init_optabs): Guard all accesses to reinit.
5636 * ipa-pure-const.c (propagate): Fix another typo.
5637 * opts.c (common_handle_option): Split assignment to bool.
5638 * c-opts.c (c_common_handle_option): Likewise.
5640 2010-06-01 Arnaud Charlet <charlet@adacore.com>
5641 Matthew Gingell <gingell@adacore.com>
5643 * doc/invoke.texi: Mention -fdump-ada-spec.
5644 * tree-dump.c (dump_files): Add ada-spec.
5645 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
5646 * tree-pass.h (tree_dump_index): Add TDI_ada.
5647 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
5648 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
5649 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
5650 * c-decl.c: Include c-ada-spec.h.
5651 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
5653 (c_write_global_declarations): Add handling of -fdump-ada-spec.
5654 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
5655 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
5656 * c-ada-spec.h, c-ada-spec.c: New files.
5658 2010-06-01 Richard Guenther <rguenther@suse.de>
5661 * ipa-pure-const.c (get_function_state): Hand back varying state
5662 if we do not have one.
5663 (has_function_state): New function.
5664 (duplicate_node_data): Adjust.
5665 (remove_node_data): Likewise.
5666 (pure_const_write_summary): Likewise.
5667 (propagate): Likewise. Fix typo.
5669 2010-06-01 Jan Hubicka <jh@suse.cz>
5671 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
5672 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
5673 (execute_all_ipa_transforms): Do not play with the states.
5675 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
5677 * config/arm/t-linux-androideabi: New.
5678 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
5680 2010-06-01 Jan Hubicka <jh@suse.cz>
5682 * tree-inline.c (estimate_num_insns): For stdarg functions look
5683 into call statement to count cost of argument passing.
5685 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
5687 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
5688 argument for fprintf.
5689 (ix86_output_addr_diff_elt): Likewise.
5690 (x86_function_profiler): Likewise.
5691 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
5692 (LPREFIX): Likewise.
5693 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5695 2010-05-31 Jakub Jelinek <jakub@redhat.com>
5698 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
5699 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
5700 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
5701 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
5702 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
5703 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
5704 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
5705 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
5708 2010-05-31 Jan Hubicka <jh@suse.cz>
5710 * tree.h (tree_range_check_failed): Declare noreturn.
5712 2010-05-31 Jan Hubicka <jh@suse.cz>
5714 * gimple.c (gimple_call_builtin_p): New function.
5715 * gimple.h (gimple_call_builtin_p): Declare.
5716 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
5718 (execute_warn_function_return): BUILT_IN_RETURN is return.
5719 (split_critical_edges): Return edges are not critical.
5720 (is_ctrl_altering_stmt): Builtin_in_return is altering.
5721 (gimple_verify_flow_info): Handle built_in_return.
5722 (execute_warn_function_return): Handle built_in_return.
5723 * ipa-pure-const.c (check_call): Ignore builtin_return.
5725 2010-05-31 Jakub Jelinek <jakub@redhat.com>
5728 * expr.c (expand_assignment): Don't store anything for out-of-bounds
5729 array accesses with non-MEM.
5731 PR tree-optimization/44182
5732 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
5733 newly needs to end a bb is followed by debug stmts, instead return
5734 true from the function at the end.
5735 (maybe_move_debug_stmts_to_successors): New function.
5736 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
5738 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
5741 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
5743 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
5745 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
5746 for nested functions in non-optimized compilation.
5748 2010-05-31 Richard Guenther <rguenther@suse.de>
5750 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
5752 2010-05-30 Jan Hubicka <jh@suse.cz>
5754 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
5756 2010-05-30 Richard Guenther <rguenther@suse.de>
5759 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
5760 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
5763 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
5765 * config/darwin.c (output_objc_section_asm_op): Add comment.
5766 (name_needs_quotes): Add '_' to list of valid comment chars.
5767 (machopic_output_function_base_name): Remove unneeded quotes.
5768 (darwin_encode_section_info): Adjust asm whitespace.
5769 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
5770 (ASM_OUTPUT_LOCAL): Ditto.
5771 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
5772 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
5773 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
5775 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
5777 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
5778 RS6000_OUTPUT_BASENAME unconditionally.
5779 (rs6000_output_function_epilogue): Likewise.
5781 2010-05-30 Jan Hubicka <jh@suse.cz>
5783 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
5786 2010-05-30 Richard Guenther <rguenther@suse.de>
5788 * tree-cfg.c (verify_gimple_assign_single): Implement
5789 verification for COND_EXPR rhs.
5791 2010-05-30 Jan Hubicka <jh@suse.cz>
5793 * cgraph.h (cgraph_dump_file): Declare.
5794 * cgraphunit.c (cgraph_dump_file): Export.
5795 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
5797 2010-05-30 Jan Hubicka <jh@suse.cz>
5799 * dwarf2out.c (reference_to_unused,
5800 premark_types_used_by_global_vars_helper): Avoid creation of new
5803 2010-05-30 Jan Hubicka <jh@suse.cz>
5805 * cgraph.h (cgraph_node_cannot_return,
5806 cgraph_edge_cannot_lead_to_return): New functions.
5807 * cgraph.c (cgraph_node_cannot_return,
5808 cgraph_edge_cannot_lead_to_return): Use them.
5809 * ipa-pure-const.c (pure_const_names): New static var.
5810 (check_call): Handle calls not leading to return.
5811 (pure_const_read_summary): Dump info read.
5812 (propagate): Dump info about propagation process; ignore side effects
5813 of functions not leading to exit; fix handling of pure functions.
5815 2010-05-30 Jan Hubicka <jh@suse.cz>
5817 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
5818 for tail call epilogues.
5820 2010-05-30 Jan Hubicka <jh@suse.cz>
5822 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
5823 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
5826 2010-05-29 Jan Hubicka <jh@suse.cz>
5828 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
5829 node; remove references in node we no longer keep in cgrpah but need
5832 2010-05-29 Jan Hubicka <jh@suse.cz>
5834 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
5836 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5839 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
5841 2010-05-29 Jan Hubicka <jh@suse.cz>
5843 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
5844 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
5845 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
5846 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
5847 debug_names_replaced_by, debug_update_ssa): Likewise.
5848 * sbitmap.c (debug_sbitmap): Likewise.
5849 * genrecog.c (debug_decision, debug_decision_list): Likewise.
5850 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
5851 debug_tree_chain): Likewise.
5852 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
5853 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
5854 * optabs.c (debug_optab_libfuncs): Likewise.
5855 (verify_loop_closed_ssa): Likewise.
5856 * value-prof.c (verify_histograms): Likewise.
5857 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
5858 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
5859 * cfghooks.c (verify_flow_info): Likewise.
5860 * fold-const.c (debug_fold_checksum): Likewise.
5861 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
5862 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
5864 * omega.c (debug_omega_problem): Likewise.
5865 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
5866 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
5867 * dominance.c (verify_dominators, debug_dominance_info,
5868 debug_dominance_tree): Likewise.
5869 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
5870 * df_regno_debug, df_ref_debug,
5871 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
5872 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
5873 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
5874 * sel-sched.c (debug_state): Likewise.
5875 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
5877 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
5878 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
5879 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
5880 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
5882 * c-pretty-print.c (debug_c_tree): Likewise.
5883 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
5884 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
5885 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
5886 * ebitmap.c (debug_ebitmap): Likewise.
5887 * function.c (debug_find_var_in_block_tree): Likewise.
5888 * print-rtl.c (debug_rtx): Likewise.
5889 (debug_rtx_count): Likewise.
5890 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
5891 * stor-layout.c (debug_rli): Likewise.
5892 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
5893 * tree-data-ref.c (debug_data_references,
5894 debug_data_dependence_relations, debug_data_reference,
5895 debug_data_dependence_relation, debug_rdg_vertex,
5896 debug_rdg_component, debug_rdg): Likewise.
5897 * tree-affine.c (debug_aff): Likewise.
5898 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
5900 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
5901 * emit-rtl.c (verify_rtl_sharing): Likewise.
5902 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
5903 debug_value_expressions): Likewise.
5904 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
5905 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
5906 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
5907 * cfglayout.c (verify_insn_chain): Likewise.
5908 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
5909 debug_clast_stmt, debug_generated_program): Likewise.
5910 * ggc-page.c (debug_print_page_list): Likewise.
5911 * tree-ssa-ter.c (debug_ter): Likewise.
5912 * graphite-dependences.c (debug_pddr): Likewise.
5913 * sched-deps.c (debug_ds): Likewise.
5914 * tree-ssa.c (verify_ssa): Likewise.
5915 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
5916 debug_scattering_functions, debug_iteration_domains, debug_pdr,
5917 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
5918 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
5919 * tree-inline.c (debug_find_tree): Likewise.
5920 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
5921 debug_ppl_powerset_matrix): Likewise.
5922 * var-tracking.c (debug_dv): Likewise.
5923 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
5924 * cfgloop.c (verify_loop_structure): Likewise.
5925 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
5926 * c-common.c (verify_sequence_points): Likewise.
5927 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
5928 debug_candidates, debug_rgn_dependencies): Likewise.
5929 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
5930 * debug_constraint_graph, debug_solution_for_var,
5931 debug_sa_points_to_info): Likewise.
5932 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
5934 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
5935 debug_loops, debug_loop, debug_loop_num): Likewise.
5936 * passes.c (debug_pass): Likewise.
5937 (dump_properties): Likewise; add cfglayout property.
5938 (debug_properties): Likewise.
5939 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
5940 * varpool.c (debug_varpool): Likewise.
5941 * regcprop.c (debug_value_data): Likewise.
5942 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
5943 debug_immediate_uses_for): Likewise.
5945 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
5948 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
5949 Filter out insn-flags.h.
5951 2010-05-29 Jan Hubicka <jh@suse.cz>
5953 * cgraph.h (struct varpool_node_set_def,
5954 struct cgraph_node_set_def): Remove unused AUX pointer.
5955 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
5958 2010-05-29 Jan Hubicka <jh@suse.cz>
5961 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
5963 2010-05-29 Richard Guenther <rguenther@suse.de>
5965 * lto-streamer.c (cached_bp): New global variable.
5966 (bitpack_create): Return the cached bitpack, if available.
5967 (bitpack_delete): Clear and cache the bitpack, if appropriate.
5968 (bp_pack_value): Remove redundant asserts.
5970 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
5973 * tree-if-conv.c (is_true_predicate): New.
5974 (is_predicated): Use is_true_predicate.
5975 (add_to_predicate_list): Same. Do not use unshare_expr.
5976 (add_to_dst_predicate_list): Same.
5978 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
5980 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
5982 (predicate_bbs): Same.
5983 (clean_predicate_lists): Same.
5984 (find_phi_replacement_condition): Do not AND the predicate from
5987 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
5990 * Makefile.in (build/gencondmd.o): Add a missing `\'.
5992 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5995 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
5996 (negdf2): Adjust expander pattern and use negdf2_slow.
5999 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
6001 * basic-block.h (struct control_flow_graph): Move last_label_uid field
6003 * df.h (struct df_base_ref): Move regno field up.
6004 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
6005 * expr.h (struct separate_ops): Move location field up.
6006 * optabs.h (struct optab_d): Move libcall_basename field down.
6007 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
6008 * config/i386/i386.h (struct machine_function): Convert call_abi field
6009 into a bitfield. Move cfa field to the end of the structure.
6011 2010-05-29 Jan Hubicka <jh@suse.cz>
6013 * varpool.c (varpool_get_node): Fix lookup.
6015 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6017 * config/spu/spu-protos.h: Do not include rtl.h. Protect
6018 RTL specific prototypes with #ifdef RTX_CODE.
6019 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
6020 * config/spu/t-spu-elf: Fix dependencies.
6022 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
6024 2010-05-29 Mike Stump <mikestump@comcast.net>
6027 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
6028 TM_H when building to avoid dependency loops.
6030 2010-05-29 Jan Hubicka <jh@suse.cz>
6032 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
6033 refs and body; not the whole node for masters of materialized clones.
6035 2010-05-29 Mike Stump <mikestump@comcast.net>
6037 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
6039 2010-05-29 Jan Hubicka <jh@suse.cz>
6041 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
6042 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
6043 use of clone_function_name.
6044 * cgraph.h (cgraph_create_virtual_clone,
6045 cgraph_function_versioning): update prototypes.
6046 (clone_function_name): Declare.
6047 * ipa-cp.c (ipcp_insert_stage): Update call of
6048 cgraph_create_virtual_clone.
6049 * omp-low.c (create_omp_child_function_name): Use
6050 cgraph_create_virtual_clone.
6051 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
6052 (cgraph_function_versioning): Take SUFFIX argument; produce new name
6053 and make decl local.
6055 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6057 * vec.h: Include statistics.h
6058 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
6061 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6063 * c-lex.c: Do not include c-tree.h.
6064 * c-pretty-print.c: Likewise.
6065 * c-opts.c: Likewise.
6066 * c-gimplify.c: Likewise.
6067 * c-common.c: Likewise.
6068 * c-dump.c: Likewise. Include c-common.h.
6070 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6072 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
6073 before including diagnostic-core.h.
6074 (c_cpp_error): New prototype moved from c-tree.h.
6075 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
6076 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
6077 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
6078 (c_cpp_error): Prototype moved to c-common.h.
6079 * Makefile.in: Update dependency for C_COMMON_H.
6081 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
6083 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
6084 * c-common.c (c_register_addr_space): Remove here.
6085 * c-decl.c (c_register_addr_space): Re-add here.
6087 2010-05-28 Mike Stump <mikestump@comcast.net>
6089 * config/darwin-c.c: Remove c-tree.h include.
6091 2010-05-28 Joseph Myers <joseph@codesourcery.com>
6093 * gcc.c: Include diagnostic.h.
6094 (error_count): Remove. All users changed to use errorcount.
6095 (programname): Remove. All users changed to use progname.
6096 (fancy_abort, internal_error, fatal_error, error, warning, inform,
6098 (execute): Don't include "Internal error" and bug reporting
6099 information in argument of internal_error call.
6100 (process_command): Don't increment error_count after calling
6102 (input_filename): Rename to gcc_input_filename. All users
6104 (main): Call diagnostic_initialize. Register delete_temp_files
6105 with atexit. Use seen_error to test for errors.
6106 * gcc.h: Include diagnostic-core.h.
6107 (fatal_error, error, warning): Remove.
6108 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
6109 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
6110 (gcc.o): Update dependencies.
6112 2010-05-28 Jeff Law <law@redhat.com>
6114 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
6116 * ira.h (ira_bad_reload_regno): Declare
6117 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
6119 * ira-color.c (update_curr_costs): Free updated hard reg costs.
6120 (ira_reassign_conflict_allocnos): Remove bogus asserts.
6121 (allocno_reload_assign): Likewise.
6123 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
6125 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
6128 2010-05-28 Richard Guenther <rguenther@suse.de>
6131 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
6132 Stream fixed-point constants mode.
6133 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
6135 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
6136 Stream fixed-point constants mode.
6137 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
6140 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
6142 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
6143 only place it was called from.
6144 (number_of_latch_executions): Do not return chrec_dont_know when the
6145 may_be_zero is a runtime condition: instead, return a COND_EXPR
6146 including the may_be_zero condition.
6147 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
6149 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
6152 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
6154 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
6155 generate COND_EXPRs for degenerate_phi_result.
6157 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
6160 * tree-if-conv.c (if_convertible_loop_p): Check the
6161 if-convertibility of phi nodes in non predicated BBs.
6163 2010-05-28 Joseph Myers <joseph@codesourcery.com>
6165 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
6167 2010-05-28 Joseph Myers <joseph@codesourcery.com>
6170 * gcc.c (inform, warning, inform): New functions.
6171 (fatal_ice): Rename to internal_error; change cmsgid parameter to
6172 gmsgid. All callers changed.
6173 (notice): Rename to fnotice; add parameter fp. All callers changed.
6174 (fatal_error): Rename to fatal_signal. All users changed.
6175 (fatal): Rename to fatal_error; change cmsgid parameter to
6176 gmsgid. All callers changed.
6177 (process_command): Use warning instead of error for warnings.
6178 (end_going_arg): Don't use _() around argument of error.
6179 (do_spec_1): Use inform for message from %n specs. Use warning
6180 instead of error for warnings.
6181 (main): Use inform for comparison messages. Use warning for
6182 message about unused linker input.
6183 (error): Increment error_count. Print "error: ".
6184 * gcc.h (fatal): Change to fatal_error.
6186 * config/darwin-driver.c (darwin_default_min_version): Use warning
6187 instead of fprintf for warnings.
6188 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
6190 2010-05-28 Julian Brown <julian@codesourcery.com>
6192 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
6193 (*thumb2_addsi3_compare0_scratch): New.
6194 * config/arm/constraints.md (Pv): New.
6195 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
6197 (*addsi3_compare0_scratch): Likewise.
6199 2010-05-28 Jan Hubicka <jh@suse.cz>
6201 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
6203 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
6204 only on local statics.
6206 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
6208 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
6210 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
6213 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
6214 (OPTION_GLIBC): Define.
6216 2010-05-28 Jakub Jelinek <jakub@redhat.com>
6219 * dwarf2out.c (double_int_type_size_in_bits): New function.
6220 (round_up_to_align): Change first argument and return value to
6222 (field_byte_offset): Work internally on double_ints.
6225 * builtins.c (expand_movstr): Use a temporary pseudo instead
6226 of target even when target is not NULL and not const0_rtx, but
6227 fails movstr predicate.
6228 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
6230 2010-05-28 Joseph Myers <joseph@codesourcery.com>
6232 * final.c (rest_of_clean_state): Use %m in errors instead of
6234 * gengtype.c (read_input_list, close_output_files): Use xstrerror
6235 instead of strerror.
6236 * toplev.c (process_options): Use %m in errors instead of strerror
6238 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
6241 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
6243 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
6244 (ix86_canonical_va_list_type): Make static. Add declaration.
6245 (ix86_enum_va_list): Make static. Reindent.
6246 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
6247 (ix86_canonical_va_list_type): Ditto.
6248 (ix86_enum_va_list): Ditto.
6250 2010-05-28 Richard Guenther <rguenther@suse.de>
6252 * lto-wrapper.c (run_gcc): With -save-temps generate a
6253 user-visible ltrans filename. Fixup ltrans unit numbering.
6255 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
6257 * c-common.c (c_common_nodes_and_builtins): Replace use
6258 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
6259 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
6260 to ix86_enum_va_list.
6261 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
6262 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
6263 (TARGET_ENUM_VA_LIST_P): Add hook description.
6264 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
6265 * target.h (gcc_target): Add enum_va_list hook.
6268 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
6269 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
6270 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
6272 2010-05-28 Alan Modra <amodra@gmail.com>
6275 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
6276 emit_library_call machinery to set up __tls_get_addr calls.
6278 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6280 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
6282 2010-05-28 Dodji Seketeli <dodji@redhat.com>
6284 Revert fix for PR c++/44188
6285 * c-common.c (is_typedef_decl): Revert the moving of this
6287 * tree.c (is_typedef_decl): ... here.
6288 (typdef_variant_p): Revert the moving of this definition
6289 here from gcc/cp/tree.c.
6290 * c-common.h (is_typedef_decl): Revert the moving of this
6292 * tree.h (is_typedef_decl): ... here.
6293 (typedef_variant_p): Revert the moving of this declaration here
6294 from gcc/cp/cp-tree.h
6295 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
6296 (gen_tagged_type_die): Revert the splitting out of ...
6297 (gen_type_die_with_usage): ... this function. Revert the anonymous
6298 tagged type handling.
6299 (gen_typedef_die): Revert emitting DW_TAG_typedef for
6300 typedefs naming anonymous tagged types.
6302 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
6304 * config/rs6000/rs6000-modes.def (PSImode): Delete.
6306 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
6308 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
6309 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
6311 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
6313 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
6314 XER_REGS to CA_REGS throughout.
6315 * config/rs6000/rs6000.h: Same.
6316 (ADDITIONAL_REGISTER_NAMES): Add "xer".
6317 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
6318 that mode_iterator "P" is the size for arithmetic carries as well.
6319 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
6321 2010-05-28 Jakub Jelinek <jakub@redhat.com>
6324 * combine.c (struct rtx_subst_pair): Define unconditionally.
6325 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
6326 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
6327 Call make_compound_operation on pair->to.
6328 (propagate_for_debug): Don't call make_compound_operation here.
6329 Always use simplify_replace_fn_rtx.
6331 2010-05-27 Sterling Augustine <sterling@tensilica.com>
6333 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
6334 * config/xtensa/xtensa.c (override_options): Check
6335 TARGET_FORCE_NO_PIC and set flag_pic.
6336 * config/xtensa/xtensa.opt: Document -mforce-no-pic
6338 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
6341 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
6342 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
6344 2010-05-27 Joseph Myers <joseph@codesourcery.com>
6346 * diagnostic-core.h: New. Contents moved from diagnostic.h and
6348 * diagnostic.c: Don't include toplev.h.
6349 (progname): Define. Moved from toplev.c.
6350 (seen_error): New function.
6351 * diagnostic.h: Include diagnostic-core.h.
6352 (diagnostic_t, emit_diagnostic): Don't declare here.
6353 * toplev.c (progname): Move to toplev.c.
6354 (emit_debug_global_declarations, compile_file, finalize,
6355 do_compile, toplev_main): Use seen_error.
6356 * toplev.h: Include diagnostic-core.h.
6357 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
6358 internal_error, warning, warning_at, error, error_n, error_at,
6359 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
6360 verbatim, fnotice, progname): Move to diagnostic-core.h.
6361 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
6362 (expand_builtin_expect): Use seen_error.
6363 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
6364 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
6365 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
6366 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
6367 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
6368 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
6369 errorcount for errors.
6370 * c-opts.c (c_common_finish): Use seen_error.
6371 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
6372 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
6373 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
6374 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
6375 (get_coverage_counts): Use seen_error.
6376 * dwarf2out.c (dwarf2out_finish): Use seen_error.
6377 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
6378 gimplify_body): Use seen_error.
6379 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
6380 * ipa-pure-const.c (gate_pure_const): Use seen_error.
6381 * ipa-reference.c (gate_reference): Use seen_error.
6382 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
6383 * lambda-code.c: Include diagnostic-core.h instead of
6385 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
6386 * lto-compress.c: Include diagnostic-core.h instead of
6388 * lto-section-in.c: Include diagnostic-core.h instead of
6390 * lto-streamer-out.c: Include diagnostic-core.h instead of
6392 * lto-streamer.c: Include diagnostic-core.h instead of
6394 (gate_lto_out): Use seen_error.
6395 * matrix-reorg.c: Include diagnostic-core.h instead of
6397 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
6398 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
6399 (gate_expand_omp, lower_omp_1): Use seen_error.
6400 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
6401 (rest_of_decl_compilation, rest_of_type_compilation,
6402 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
6403 * tree-cfg.c (label_to_block_fn): Use seen_error.
6404 * tree-inline.c (optimize_inline_calls): Use seen_error.
6405 * tree-mudflap.c (mudflap_finish_file): Use
6407 * tree-optimize.c (gate_all_optimizations,
6408 gate_all_early_local_passes, gate_all_early_optimizations): Use
6410 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
6411 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
6412 (varpool_remove_unreferenced_decls,
6413 varpool_assemble_pending_decls): Use seen_error.
6414 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
6415 (TOPLEV_H, DIAGNOSTIC_H): Update.
6416 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
6417 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
6418 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
6419 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
6420 coverage.o, lambda-code.o): Update dependencies.
6422 2010-05-25 Dodji Seketeli <dodji@redhat.com>
6425 * c-common.c (is_typedef_decl): Move this definition ...
6426 * tree.c (is_typedef_decl): ... here.
6427 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
6428 * c-common.h (is_typedef_decl): Move this declaration ...
6429 * tree.h (is_typedef_decl): ... here.
6430 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
6431 * dwarf2out.c (is_naming_typedef_decl): New function.
6432 (gen_tagged_type_die): Split out of ...
6433 (gen_type_die_with_usage): ... this function. When an anonymous
6434 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
6435 is emitted for the typedef.
6436 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
6437 anonymous tagged types.
6439 2010-05-27 Jason Merrill <jason@redhat.com>
6441 * print-tree.c (debug_vec_tree): New fn.
6442 (print_vec_tree): New fn.
6443 * tree.h: Declare them.
6444 * gdbinit.in (pvt): New command.
6446 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
6448 * gdbinit.in (pdd): New command.
6450 2010-05-27 Jan Hubicka <jh@suse.cz>
6452 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
6453 (update_caller_keys): Return early if there are no callers;
6454 only update fibheap when decresing the key.
6455 (update_callee_keys): Avoid recursion.
6456 (decide_inlining_of_small_functions): When badness does not match;
6457 re-insert into fibheap.
6459 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
6461 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
6462 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
6463 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
6464 (ALL_HOST_OBJS): Now a union of the above two.
6465 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
6466 all files in ALL_HOST_FRONTEND_OBJS.
6467 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
6469 * c-common.c: Pretend to be a backend file by undefining
6470 IN_GCC_FRONTEND (still need rtl.h here).
6472 2010-05-27 Jan Hubicka <jh@suse.cz>
6474 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
6475 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
6477 2010-05-27 Jan Hubicka <jh@suse.cz>
6479 * sched-ebb.c: Rename struct deps to struct deps_desc.
6481 * sel-sched-ir.c: Likewise.
6482 * sched-deps.c: Likewise.
6483 * sched-int.h: Likewise.
6484 * sched-rgn.c: Likewise.
6486 2010-05-27 Jon Beniston <jon@beniston.com>
6489 * config/lm32/lm32.h: Remove definition of
6490 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
6492 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
6495 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
6497 2010-05-27 Richard Guenther <rguenther@suse.de>
6499 PR tree-optimization/44284
6500 * tree-vect-stmts.c (vectorizable_assignment): Handle
6501 sign-changing conversions as simple copy.
6503 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6505 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
6507 (__gthread_active_p): Check for pthread_create if compiling against
6510 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6512 Support compilation for Android platform. Reimplement -mandroid.
6514 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
6515 (*android*): Set ANDROID_DEFAULT.
6516 (arm*-*-linux*): Include linux-android.h.
6517 (arm*-*-eabi*): Don't include previous -mandroid implementation.
6518 * config/arm/eabi.h: Remove, move Android-specific parts ...
6519 * config/linux-android.h: ... here. New file.
6520 * config/arm/eabi.opt: Rename to ...
6521 * config/linux-android.opt: ... this.
6522 (mandroid): Allow -mno-android option. Initialize based on
6524 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
6525 Move logic to corresponding LINUX_TARGET_* macros.
6526 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
6527 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
6528 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
6529 Android definitions.
6530 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
6531 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
6534 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
6536 Add support for Bionic C library
6538 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
6540 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
6541 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
6543 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
6544 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
6545 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
6546 to support multiple C libraries. Handle Bionic.
6547 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
6548 (BIONIC_DYNAMIC_LINKER64): Define.
6549 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
6551 (TARGET_HAS_SINCOS): Enable for Bionic.
6553 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
6554 the last option specified on command line take effect.
6555 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
6557 (mglibc, muclibc): Update.
6559 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
6560 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
6563 * doc/invoke.texi (-mglibc, -muclibc): Update.
6564 (-mbionic): Document.
6566 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6568 * c-common.h (c_register_addr_space): Add prototype.
6569 (ADDR_SPACE_KEYWORD): Remove.
6570 * c-common.c (c_register_addr_space): New function.
6571 (c_addr_space_name): Reimplement.
6572 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
6574 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
6575 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
6577 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
6578 Remove TARGET_ADDR_SPACE_KEYWORDS.
6580 2010-05-27 Joseph Myers <joseph@codesourcery.com>
6582 * input.c: New file.
6583 * input.h (main_input_filename): Move declaration to toplev.h.
6584 * toplev.c (input_location, line_table): Move to input.c
6585 * toplev.h (main_input_filename): Move declaration from input.h.
6586 * tree.c (expand_location): Move to input.c.
6587 * Makefile.in (OBJS-common): Add input.o.
6588 (input.o): Add dependencies.
6590 2010-05-27 Richard Guenther <rguenther@suse.de>
6592 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
6593 for non-existant files.
6594 (fork_execute): Mark args_name file as deleted.
6596 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
6599 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
6600 (narrow_signed_type): Likewise.
6602 2010-05-26 Jan Hubicka <jh@suse.cz>
6604 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
6605 edge only when checking is enabled; check using former_clone_of;
6606 check inline clones too.
6607 (cgraph_materialize_clone): Record former_clone_of pointer.
6608 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
6609 combining redirections; dump args_to_skip bitmap
6610 (cgraph_materialize_all_clones): Do no redirection here.
6611 * ipa-inline.c (inline_transform): Do redirection here.
6612 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
6615 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
6617 * config/avr/avr-c.c: Do not include regs.h.
6618 Include cpplib.h for cpp_define and tree.h for c-common.h.
6619 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
6620 * config/avr/t-avr: Fix dependencies for avr-c.o.
6622 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
6624 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
6625 string instead of SYMBOL_REF rtx.
6626 * rtl.h (set_stack_check_libfunc): Move prototype from here...
6627 * libfuncs.h: ...to here. Adjust for explow.c change.
6629 2010-05-26 Joseph Myers <joseph@codesourcery.com>
6631 * pretty-print.c: Don't include ggc.h.
6632 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
6633 (identifier_to_locale): Use them for allocation.
6634 * pretty-print.h (identifier_to_locale_alloc,
6635 identifier_to_locale_free): Declare.
6636 * toplev.c (alloc_for_identifier_to_locale): New.
6637 (general_init): Set identifier_to_locale_alloc and
6638 identifier_to_locale_free.
6639 * Makefile.in (pretty-print.o): Update dependencies.
6641 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
6643 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
6644 pointer types if they have different alignment or mode.
6646 2010-05-26 Anatoly Sokolov <aesok@post.ru>
6648 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
6649 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
6650 * config/sparc/sparc-protos.h (function_value): Remove declaration.
6651 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
6652 sparc_function_value_regno_p): New functions.
6653 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6654 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6655 (function_value): Rename to...
6656 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
6657 argument to 'outgoing'.
6658 (function_arg_record_value, function_arg_union_value,
6659 function_arg_vector_value): Update comment.
6661 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
6663 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
6664 (fde_needed_for_eh_p): New predicate.
6665 (output_call_frame_info): Use it throughout to decide whether FDEs
6666 are needed for EH purpose.
6667 (dwarf2out_begin_prologue): Reorder assignments.
6669 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
6671 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
6672 special case loop->header.
6673 (is_predicated): New.
6674 (if_convertible_loop_p): Call it.
6676 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
6678 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
6679 iterator in parameter. Do not generate code during the analysis.
6680 (tree_if_convert_cond_stmt): Removed.
6681 (tree_if_convert_stmt): Removed.
6682 (predicate_bbs): New.
6683 (if_convertible_loop_p): Call predicate_bbs.
6684 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
6685 now contains all the analysis part.
6687 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
6689 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
6690 statements in the analysis part.
6691 (tree_if_convert_stmt): Update comment.
6692 (remove_conditions_and_labels): New.
6693 (combine_blocks): Call remove_conditions_and_labels.
6694 (tree_if_conversion): Update comment.
6696 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
6698 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
6699 than 2 predecessors or more than 2 successors.
6701 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
6703 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
6704 of loops in which the data dependence analysis fails.
6706 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
6708 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
6709 CDI_POST_DOMINATORS.
6710 (tree_if_conversion): Same.
6712 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
6714 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
6716 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
6718 * tree-if-conv.c: Update copyright years. Fix comments.
6721 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
6723 * builtin-types.def (BT_INT128): New primitive type.
6724 (BT_UINT128): Likewise.
6725 * c-common.c (c_common_r): Add __int128 keyword.
6726 (c_common_type_for_size): Handle __int128.
6727 (c_common_type_for_mode): Likewise.
6728 (c_common_signed_or_unsigned_type): Likewise.
6729 (c_common_nodes_and_builtins): Add builtin type
6730 if target supports 128-bit integer scalar.
6731 * c-common.h (enum rid): Add RID_INT128.
6732 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
6733 if target supports 128-bit integer scalar.
6734 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
6735 (finish_declspecs): Likewise.
6736 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
6737 (c_token_starts_declspecs): Likewise.
6738 (c_parser_declspecs): Likewise.
6739 (c_parser_attributes): Likewise.
6740 (c_parser_objc_selector): Likewise.
6741 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
6742 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
6743 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
6744 * tree.c (make_or_reuse_type): Likewise.
6745 (make_unsigned_type): Likewise.
6746 (build_common_tree_nodes_2): Likewise.
6747 * tree.h (enum integer_type_kind): Add itk_int128 and
6748 itk_unsigned_int128.
6749 (int128_integer_type_node): New define.
6750 (int128_unsigned_type_node): New define.
6751 * doc/extend.texi: Add documentation about __int128 type.
6753 2010-05-26 Richard Guenther <rguenther@suse.de>
6755 * tree-ssa-sccvn.c (copy_nary): Adjust.
6756 (copy_phis): Rename to ...
6757 (copy_phi): ... this. Adjust.
6758 (copy_references): Rename to ...
6759 (copy_reference): ... this. Adjust.
6760 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
6761 result into the valid table.
6763 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
6765 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
6766 insn-config.h, insn-codes.h, recog.h, and optabs.h.
6768 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6770 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
6772 2010-05-26 Richard Guenther <rguenther@suse.de>
6774 * opts.c (common_handle_option): Handle OPT_Ofast.
6776 2010-05-26 Joseph Myers <joseph@codesourcery.com>
6778 * diagnostic.c: Don't include opts.h.
6779 (permissive_error_option): Define.
6780 (diagnostic_initialize): Take n_opts parameter. Allocate memory
6781 for classify_diagnostic. Don't use memset for
6782 classify_diagnostic. Initialize new and recently added fields.
6783 (diagnostic_classify_diagnostic): Use context->n_opts instead of
6785 (diagnostic_report_diagnostic): Pass context parameter to
6786 diagnostic_report_warnings_p. Use option_enabled and option_name
6788 (emit_diagnostic): Use permissive_error_option.
6789 (permerror): Likewise.
6790 * diagnostic.h: Don't include options.h.
6791 (struct diagnostic_context): Add n_opts, opt_permissive,
6792 inhibit_warnings, warn_system_headers, option_enabled and
6793 option_name fields. Change classify_diagnostic to a pointer.
6794 * opts-diagnostic.h: New file.
6795 * opts.c: Include opts-diagnostic.h.
6796 (common_handle_option): Set global_dc fields for -Wfatal-errors,
6797 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
6798 (option_name): New function.
6799 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
6800 (c_common_handle_option): Set global_dc->permissive for
6802 * c-common.c (c_cpp_error): Save and restore
6803 global_dc->warn_system_headers, not variable warn_system_headers.
6804 * toplev.c: Include opts-diagnostic.h.
6805 (general_init): Update call to diagnostic_initialize. Set
6806 global_dc->show_column, global_dc->option_enabled and
6807 global_dc->option_name.
6808 (process_options): Don't set global_dc fields here.
6809 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
6810 (diagnostic.o, opts.o, toplev.o): Update dependencies.
6812 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
6814 * config/picochip/picochip.md (movsi): Split a movsi from a
6817 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6819 * ggc-zone.c: Update copyright year.
6820 (poison_region): Mark memory for Valgrind as undefined before
6821 memset () call and inaccessible afterwards.
6822 (ggc_pch_total_size): Change type of i to int.
6824 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6826 * ggc-common.c (ggc_free_overhead): Allow empty slot.
6828 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
6830 * ggc-common.c: Update copyright year.
6831 (ggc_rlimit_bound): Remove prototype. Compile only if
6832 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
6833 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
6834 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
6835 (ggc_min_heapsize_heuristic): Likewise.
6837 2010-05-26 Richard Guenther <rguenther@suse.de>
6839 PR rtl-optimization/44164
6840 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
6841 no-common access-path disambiguation.
6842 (indirect_ref_may_alias_decl_p): Adjust.
6843 (indirect_refs_may_alias_p): Likewise.
6844 (refs_may_alias_p_1): Likewise.
6846 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
6848 * c-typeck.c: Do not include expr.h.
6850 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
6852 * rtl.h (decl_default_tls_model): Move prototype from here...
6853 * output.h: ...to here.
6854 * c-decl.c: Do not include rtl.h.
6855 * c-pragma.c: Likewise.
6856 * c-parser.c: Likewise.
6857 * c-gimplify.c: Likewise. And also not hard-reg-set.
6858 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
6859 FIXME note for it. Add a FIXME note for expr.h.
6860 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
6861 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
6864 2010-05-26 Jakub Jelinek <jakub@redhat.com>
6867 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
6868 or total_size is larger than red zone size for non-V4 ABI, emit a
6869 stack_tie resp. frame_tie insn before stack pointer restore.
6870 * config/rs6000/rs6000.md (frame_tie): New insn.
6872 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
6874 * function.h (struct function): Add can_throw_non_call_exceptions bit.
6875 * lto-streamer-in.c (input_function): Stream it in.
6876 * lto-streamer-out.c (output_function): Stream it out.
6877 * function.c (allocate_struct_function): Set it.
6878 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
6879 for flag_non_call_exceptions.
6880 * cfgbuild.c (control_flow_insn_p): Likewise.
6881 (make_edges): Likewise.
6882 * cfgexpand.c (expand_stack_alignment): Likewise.
6883 * combine.c (distribute_notes): Likewise.
6884 * cse.c (cse_extended_basic_block): Likewise.
6885 * except.c (insn_could_throw_p): Likewise.
6886 * gcse.c (simple_mem): Likewise.
6887 * ipa-pure-const.c (check_call): Likewise.
6888 (check_stmt ): Likewise.
6889 * lower-subreg.c (lower-subreg.c): Likewise.
6890 * optabs.c (emit_libcall_block): Likewise.
6891 (prepare_cmp_insn): Likewise.
6892 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
6893 * postreload.c (rest_of_handle_postreload): Likewise.
6894 * reload1.c (reload_as_needed): Likewise.
6895 (emit_input_reload_insns): Likewise.
6896 (emit_output_reload_insns): Likewise.
6897 (fixup_abnormal_edges): Likewise.
6898 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
6899 * store-motion.c (find_moveable_store): Likewise.
6900 * tree-eh.c (stmt_could_throw_p): Likewise.
6901 (tree_could_throw_p): Likewise.
6902 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
6903 * config/arm/arm.c (arm_expand_prologue): Likewise.
6904 (thumb1_expand_prologue): Likewise.
6905 * config/rx/rx.md (cbranchsf4): Likewise.
6907 * config/s390/s390.c (s390_emit_prologue): Likewise.
6908 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
6909 (inline_forbidden_into_p): New predicate.
6910 (expand_call_inline): Use it to forbid inlining.
6911 (tree_can_inline_p): Likewise.
6913 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
6915 * config/i386/i386-c.c: Do not include rtl.h.
6916 * config/i386/t-i386: Update dependencies.
6918 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
6920 * attribs.c: Do not include rtl.h.
6921 * Makefile.in: Update dependencies.
6923 2010-05-25 Anatoly Sokolov <aesok@post.ru>
6925 * double-int.h (double_int_and): New.
6926 * combine.c (try_combine): Clean up, use double_int_* and
6927 immed_double_int_const functions.
6929 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6931 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
6932 stderr to /dev/null instead of grep -q.
6933 * configure: Regenerate.
6935 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
6937 * Makefile.in (EXCEPT_H): Fix typo.
6939 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
6941 * ira-build.c (update_conflict_hard_reg_costs): New.
6942 (ira_build): Call update_conflict_hard_reg_costs.
6944 2010-05-25 Jakub Jelinek <jakub@redhat.com>
6947 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
6949 (intersect_loc_chains): Walk the s2var's loc_chain together
6950 with s1node chain as long as the locations are equal, don't
6951 call find_loc_in_1pdv in that case.
6954 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
6955 (copy_bind_expr): ... instead of here.
6956 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
6957 if the block hasn't been remapped.
6958 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
6959 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
6961 2010-05-25 Richard Guenther <rguenther@suse.de>
6964 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
6965 out-of-bounds array accesses.
6967 2010-05-25 Richard Guenther <rguenther@suse.de>
6969 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
6970 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
6971 (run_gcc): Re-organize to make cleanup easier.
6973 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6975 * config/s390/s390.c (optimization_options): Fix and move the
6976 flag_prefetch_loop_arrays override ...
6977 (override_options): ... here.
6979 2010-05-25 Joseph Myers <joseph@codesourcery.com>
6981 * diagnostic.c: Don't include plugin.h.
6982 (diagnostic_report_diagnostic): Don't handle plugins specially
6983 here. Pass context to internal_error callback.
6984 * diagnostic.h (struct diagnostic_context): Add context parameter
6985 to internal_error callback.
6986 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
6987 * plugin.h (struct diagnostic_context): Declare.
6988 (warn_if_plugins, plugins_internal_error_function): Declare.
6989 * toplev.c (general_init): Set global_dc->internal_error.
6990 * Makefile.in (diagnostic.o): Update dependencies.
6992 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
6994 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
6995 * config/rs6000/t-darwin64: New.
6996 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
6999 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
7002 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
7003 match the original (and intended) behaviour before r159557. This
7004 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
7007 2010-05-25 Richard Guenther <rguenther@suse.de>
7009 * doc/invoke.texi: Document -Ofast.
7010 * target.h (struct gcc_target): Add handle_ofast.
7011 * target-def.h (TARGET_HANDLE_OFAST): Add.
7012 (TARGET_INITIALIZER): Adjust.
7013 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
7014 * common.opt (Ofast): Add.
7016 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
7018 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
7019 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
7021 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
7024 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
7025 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
7026 false_rtx. Use false_rtx to compute the correct *ptest for reversed
7027 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
7029 2010-05-25 Jakub Jelinek <jakub@redhat.com>
7031 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
7032 DW_OP_minus with negated offset instead of DW_OP_plus.
7033 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
7035 2010-05-25 Wei Guozhi <carrot@google.com>
7037 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
7038 tst instruction and a new alternative.
7039 * config/arm/constraints.md (Pu): New constraint.
7041 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
7043 * function.c (assign_stack_local_1): Initialize variable
7044 to avoid warning when bootstrapping at -O3.
7046 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
7048 * configure.ac (all_lang_makefiles): Remove everything related to it.
7049 * configure: Regenerate.
7050 * Makefile.in: Fix reference to ada Make-lang.in.
7051 Remove support for LANG_MAKEFILES.
7053 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
7054 Sandra Loosemore <sandra@codesourcery.com>
7056 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
7057 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
7058 description. Add arm_neon_fp16_ok.
7059 (Add Options): Add arm_neon and arm_neon_fp16.
7061 2010-05-24 Joseph Myers <joseph@codesourcery.com>
7063 * diagnostic.c: Don't include flags.h.
7064 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
7065 context parameters. Check flags in the context passed as a parameter.
7066 (diagnostic_build_prefix): Add context parameter. Check
7067 show_column flag in context.
7068 (diagnostic_action_after_output): Check fatal_errors flag in context.
7069 (diagnostic_report_current_module): Check show_column flag in context.
7070 (default_diagnostic_starter): Update call to
7071 diagnostic_build_prefix.
7072 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
7073 (emit_diagnostic): Pass context to permissive_error_kind.
7074 (permerror): Pass context to permissive_error_kind.
7075 * diagnostic.h (struct diagnostic_context): Add show_column,
7076 pedantic_errors, permissive and fatal_errors fields.
7077 (diagnostic_build_prefix): Update prototype.
7079 * toplev.c (process_options): Set flags in global_dc from
7080 flag_show_column, flag_pedantic_errors, flag_permissive,
7082 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
7083 to diagnostic_build_prefix.
7084 * Makefile.in (diagnostic.o): Update dependencies.
7086 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
7088 * config/i386/ia32intrin.h (__crc32q): Define only if
7089 __SSE4_2__ is defined.
7091 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
7095 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
7096 DECL_VISIBILITY_SPECIFIED.
7097 (emutls_decl): Set DECL_PRESERVE_P and copy
7098 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
7099 (emutls_finalize_control_var): New callback.
7100 (emutls_finish): Finalize emutls control variables.
7101 * toplev.c (compile_file): Move the call to emutls_finish ()
7102 before varpool_assemble_pending_decls ().
7104 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
7106 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
7107 added to the preprocessor condition.
7109 2010-05-24 Paul Brook <paul@codesourcery.com>
7111 * gengtype-lex.l: Add HARD_REG_SET.
7112 * expr.c (expand_expr_real_1): Record writes to hard registers.
7113 * function.c (rtl_data): Add asm_clobbers.
7114 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
7115 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
7116 Use crtl->asm_clobbers.
7118 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7120 * doc/makefile.texi (Makefile): Mention stages 'profile'
7121 and 'feedback' for profiledbootstrap.
7123 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
7126 * config/i386/i386.c (def_builtin): Properly check
7127 OPTION_MASK_ISA_64BIT.
7129 2010-05-23 Joseph Myers <joseph@codesourcery.com>
7131 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
7132 typedefs with different but compatible types. Allow duplicate
7133 typedefs with the same type except for pedantic non-C1X, but give
7134 warning for variably modified types.
7135 * c-typeck.c (tagged_types_tu_compatible_p,
7136 function_types_compatible_p, type_lists_compatible_p,
7137 comptypes_internal): Add parameter different_types_p; set
7138 *different_types_p for different but compatible types. All
7140 (comptypes_check_different_types): New.
7141 * c-tree.h (comptypes_check_different_types): Declare.
7143 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
7145 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
7146 * jump.c: Include basic-block.h.
7147 * profile.c: Likewise.
7148 * tree-profile.c: Likewise.
7149 * coverage.c: Likewise.
7150 * basic-block.h (optimize_function_for_size_p): Move to function.h.
7151 (optimize_function_for_speed_p): Likewise.
7152 * function.h (optimize_function_for_size_p,
7153 optimize_function_for_speed_p): Moved here from basic-block.h.
7154 * Makefile.in: Update dependencies.
7156 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7158 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
7159 before calling make; allow override through $MAKE.
7160 * doc/invoke.texi (Optimize Options): Document override.
7162 2010-05-23 Anatoly Sokolov <aesok@post.ru>
7164 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
7165 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7166 (rs6000_mode_dependent_address_ptr): Make static.
7167 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7168 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
7171 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
7174 * config/i386/i386.c: Make sure that the correct regparm is passed.
7176 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
7178 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
7179 * sbitmap.c: ...to here to internalize sbitmap element access.
7180 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
7181 Explain why basic-block.h is included.
7182 * function.h: Include tm.h for CUMULATIVE_ARGS.
7183 * Makefile.in: Update dependencies.
7185 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
7187 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
7189 * sbitmap.h (struct sbitmap_def): Do not typedef here.
7190 * sbitmap.c: Include sbitmap.h.
7191 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
7192 hard-reg-set.h. Split everything related to regsets out from here...
7193 * regset.h: ...to here. New file.
7194 * df.h: Include regset.h and sbitmap.h.
7195 * tree-flow.h: Likewise.
7196 * cfgloop.h: Likewise.
7197 * except.h: Do not include sbitmap.h. Include hashtab.h.
7198 * cgraph.h: Include vec.h and function.h.
7199 * reload.h (struct insn_chain): Change types of live_throughout
7200 and dead_or_set from regset_head to bitmap_head.
7201 (compute_use_by_pseudos): Be defined also if regset.h is not included.
7202 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
7203 spilled_regs from regset_head to bitmap_head to avoid dependency
7205 * sel-sched-ir.h: Include regset.h.
7206 * reload.c: Include df.h before reload.h.
7207 * caller-save.c: Likewise.
7208 * reload1.c: Likewise.
7210 (mark_elimination): Update type of r to bitmap, consistent with
7212 * dominance.c: Include bitmap.h.
7213 * modulo-sched.c: Include df.h.
7214 * cfganal.c: Include bitmap.h and sbitmap.h.
7215 * cfgbuild.c: Include sbitmap.h.
7216 * lcm.c: Include sbitmap.h.
7217 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
7218 * domwalk.c: Include sbitmap.h, exclude ggc.h.
7219 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
7220 * cselib.c: Include bitmap.h.
7221 * tree-optimize.c: Include regset.h.
7222 * stmt.c: Include bitmap.h.
7223 * Makefile.in: Update dependencies.
7225 2010-05-22 Jan Hubicka <jh@suse.cz>
7227 * cgraph.h (struct varpool_node): Add same_comdat_group.
7228 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
7230 (output_varpool): Update call of lto_output_varpool_node.
7231 (input_varpool): Read same_comdat_group pointer.
7232 (input_varpool_1): Fixup same_comdat_group pointer.
7233 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
7234 group is needed, all are.
7235 * varpool.c (varpool_remove_node): Remove node from same comdat group
7237 (varpool_analyze_pending_decls): Walk same comdat groups.
7239 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
7241 * rtl.h (union rtunion_def): Remove rt_bit member.
7242 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
7243 * print-rtl (print_rtx): Do not print the member.
7244 * gengtype.c (adjust_field_rtx_def): Do not handle it.
7245 * gengenrtl.c (type_from_format): Likewise.
7246 (accessor_from_format): Likewise.
7248 2010-05-22 Joseph Myers <joseph@codesourcery.com>
7250 * dbgcnt.c: Include toplev.h instead of errors.h.
7251 * ira-emit.c: Don't include errors.h.
7252 * ira.c: Include toplev.h instead of errors.h.
7253 * lto-compress.c: Include toplev.h instead of errors.h.
7254 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
7255 ira.o, dbgcnt.o): Update dependencies.
7257 2010-05-22 Richard Guenther <rguenther@suse.de>
7259 * gimple.c (gimple_types_compatible_p): Check type qualifications
7260 before merging pointer to complete and pointer to incomplete type.
7261 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
7262 we use our own resolution algorithm. The gold linker plugin
7263 doesn't do the job we want it to do here.
7265 2010-05-22 Anatoly Sokolov <aesok@post.ru>
7267 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7268 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7269 (sparc_mode_dependent_address_p): New function.
7271 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
7273 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
7275 * timevar.c: Do not include any core headers.
7276 (timevar_print): De-i18n-ize.
7277 (print_time): Likewise.
7278 * timevar.h (timevar_push, timevar_pop): Make inline functions.
7280 2010-05-21 Joseph Myers <joseph@codesourcery.com>
7282 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
7284 (diagnostic_initialize): Initialize x_data not last_function.
7285 (diagnostic_report_current_function): Move to tree-diagnostic.c.
7286 (default_diagnostic_starter): Call
7287 diagnostic_report_current_module not
7288 diagnostic_report_current_function.
7289 (diagnostic_report_diagnostic): Initialize x_data not
7291 (verbatim): Likewise.
7292 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
7294 (struct diagnostic_context): Change last_function to x_data.
7295 (diagnostic_auxiliary_data): Replace with
7296 diagnostic_context_auxiliary_data and
7297 diagnostic_info_auxiliary_data.
7298 (diagnostic_last_function_changed, diagnostic_set_last_function,
7299 diagnostic_report_current_function): Move to tree-diagnostic.h.
7300 (print_declaration, dump_generic_node, print_generic_stmt,
7301 print_generic_stmt_indented, print_generic_expr,
7302 print_generic_decl, debug_c_tree, dump_omp_clauses,
7303 print_call_name, debug_generic_expr, debug_generic_stmt,
7304 debug_tree_chain, default_tree_printer): Move to
7305 tree-pretty-print.h.
7306 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
7307 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
7308 gimple-pretty-print.h.
7309 * pretty-print.c: Don't include tree.h
7310 (pp_base_format): Don't handle %K here.
7311 (pp_base_tree_identifier): Move to tree-pretty-print.c.
7312 * pretty-print.h (text_info): Change abstract_origin to x_data.
7313 (pp_tree_identifier, pp_unsupported_tree,
7314 pp_base_tree_identifier): Move to tree-pretty-print.h.
7315 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
7316 tree-pretty-print.h: New files.
7317 * tree-pretty-print.c: Include tree-pretty-print.h.
7318 (percent_K_format): New. Moved from pretty-print.c.
7319 (pp_base_tree_identifier): Move from pretty-print.c.
7320 * c-objc-common.c: Include tree-pretty-print.h.
7321 (c_tree_printer): Handle %K here.
7322 * langhooks.c: Include tree-diagnostic.h.
7323 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
7324 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
7325 (default_tree_printer): Handle %K using percent_K_format.
7326 (general_init): Use default_tree_diagnostic_starter.
7327 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
7328 (free_lang_data): Use default_tree_diagnostic_starter.
7329 * c-pretty-print.c: Include tree-pretty-print.h.
7330 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7331 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7332 * dwarf2out.c: Include tree-pretty-print.h.
7333 * except.c: Include tree-pretty-print.h.
7334 * gimple-pretty-print.c: Include tree-pretty-print.h and
7335 gimple-pretty-print.h.
7336 * gimplify.c: Include tree-pretty-print.h.
7337 * graphite-poly.c: Include tree-pretty-print.h and
7338 gimple-pretty-print.h.
7339 * ipa-cp.c: Include tree-pretty-print.h.
7340 * ipa-inline.c: Include gimple-pretty-print.h.
7341 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7342 * ipa-pure-const.c: Include gimple-pretty-print.h.
7343 * ipa-struct-reorg.c: Include tree-pretty-print.h and
7344 gimple-pretty-print.h.
7345 * ipa-type-escape.c: Include tree-pretty-print.h.
7346 * print-rtl.c: Include tree-pretty-print.h.
7347 * print-tree.c: Include gimple-pretty-print.h.
7348 * sese.c: Include tree-pretty-print.h.
7349 * tree-affine.c: Include tree-pretty-print.h.
7350 * tree-browser.c: Include tree-pretty-print.h.
7351 * tree-call-cdce.c: Include gimple-pretty-print.h.
7352 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
7353 * tree-chrec.c: Include tree-pretty-print.h.
7354 * tree-data-ref.c: Include tree-pretty-print.h and
7355 gimple-pretty-print.h.
7356 * tree-dfa.c: Include tree-pretty-print.h.
7357 * tree-if-conv.c: Include tree-pretty-print.h and
7358 gimple-pretty-print.h.
7359 * tree-inline.c: Include tree-pretty-print.h.
7360 * tree-into-ssa.c: Include tree-pretty-print.h and
7361 gimple-pretty-print.h.
7362 * tree-nrv.c: Include tree-pretty-print.h.
7363 * tree-object-size.c: Include tree-pretty-print.h and
7364 gimple-pretty-print.h.
7365 * tree-outof-ssa.c: Include tree-pretty-print.h and
7366 gimple-pretty-print.h.
7367 * tree-parloops.c: Include tree-pretty-print.h and
7368 gimple-pretty-print.h.
7369 * tree-predcom.c: Include tree-pretty-print.h and
7370 gimple-pretty-print.h.
7371 * tree-scalar-evolution.c: Include tree-pretty-print.h and
7372 gimple-pretty-print.h.
7373 * tree-sra.c: Include tree-pretty-print.h.
7374 * tree-ssa-address.c: Include tree-pretty-print.h.
7375 * tree-ssa-alias.c: Include tree-pretty-print.h.
7376 * tree-ssa-ccp.c: Include tree-pretty-print.h and
7377 gimple-pretty-print.h.
7378 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
7379 * tree-ssa-copy.c: Include tree-pretty-print.h and
7380 gimple-pretty-print.h.
7381 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
7382 * tree-ssa-dce.c: Include tree-pretty-print.h and
7383 gimple-pretty-print.h.
7384 * tree-ssa-dom.c: Include tree-pretty-print.h and
7385 gimple-pretty-print.h.
7386 * tree-ssa-dse.c: Include gimple-pretty-print.h.
7387 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
7388 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
7389 * tree-ssa-live.c: Include tree-pretty-print.h and
7390 gimple-pretty-print.h.
7391 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
7392 gimple-pretty-print.h.
7393 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
7394 gimple-pretty-print.h.
7395 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
7396 gimple-pretty-print.h.
7397 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
7398 gimple-pretty-print.h.
7399 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
7400 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
7401 * tree-ssa-operands.c: Include tree-pretty-print.h and
7402 gimple-pretty-print.h.
7403 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
7404 gimple-pretty-print.h.
7405 * tree-ssa-pre.c: Include tree-pretty-print.h and
7406 gimple-pretty-print.h.
7407 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
7408 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
7409 gimple-pretty-print.h.
7410 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
7411 gimple-pretty-print.h.
7412 * tree-ssa-sink.c: Include gimple-pretty-print.h.
7413 * tree-ssa-ter.c: Include tree-pretty-print.h and
7414 gimple-pretty-print.h.
7415 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
7416 * tree-ssa.c: Include tree-pretty-print.h and
7417 gimple-pretty-print.h.
7418 * tree-stdarg.c: Include gimple-pretty-print.h.
7419 * tree-switch-conversion.c: Include gimple-pretty-print.h.
7420 * tree-tailcall.c: Include tree-pretty-print.h and
7421 gimple-pretty-print.h.
7422 * tree-vect-data-refs.c: Include tree-pretty-print.h and
7423 gimple-pretty-print.h.
7424 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
7425 gimple-pretty-print.h.
7426 * tree-vect-loop.c: Include tree-pretty-print.h and
7427 gimple-pretty-print.h.
7428 * tree-vect-patterns.c: Include gimple-pretty-print.h.
7429 * tree-vect-slp.c: Include tree-pretty-print.h and
7430 gimple-pretty-print.h.
7431 * tree-vect-stmts.c: Include tree-pretty-print.h and
7432 gimple-pretty-print.h.
7433 * tree-vectorizer.c: Include tree-pretty-print.h.
7434 * tree-vrp.c: Include tree-pretty-print.h and
7435 gimple-pretty-print.h.
7436 * value-prof.c: Include tree-pretty-print.h and
7437 gimple-pretty-print.h.
7438 * var-tracking.c: Include tree-pretty-print.h.
7439 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
7440 (tree-diagnostic.o): New dependencies.
7441 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
7442 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
7443 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
7444 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
7445 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
7446 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
7447 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
7448 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
7449 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
7450 tree-ssa-address.o, tree-ssa-loop-niter.o,
7451 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
7452 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
7453 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
7454 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
7455 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
7456 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
7457 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
7458 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
7459 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
7460 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
7461 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
7462 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
7463 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
7464 tree-switch-conversion.o, var-tracking.o, value-prof.o,
7465 cfgexpand.o, pretty-print.o): Update dependencies.
7467 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
7469 * tree-ssa-structalias.c: Remove tm_p.h from include.
7471 2010-05-21 Jeff Law <law@redhat.com>
7473 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
7475 2010-05-21 Jason Merrill <jason@redhat.com>
7477 * tree-eh.c (cleanup_is_dead_in): New.
7478 (lower_try_finally): Don't generate a dead cleanup region.
7479 (lower_cleanup): Likewise.
7481 2010-05-21 Jakub Jelinek <jakub@redhat.com>
7484 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
7485 unchain each use from the cyclic next_regno_use chain first.
7487 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
7489 * real: Do not include gmp.h, mpfr.h, and mpc.h.
7490 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
7491 (real_value_negate, real_value_abs): New prototypes.
7492 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
7493 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
7494 new include file for interface between MPFR and REAL_VALUE_TYPE.
7495 * real.c: Include realmpfr.h.
7496 (real_arithmetic2): Remove legacy function.
7497 (real_value_negate): New.
7498 (real_value_abs): New.
7499 (mfpr_from_real, real_from_mpfr): Move from here...
7500 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
7501 * builtins.c: Include realmpfr.h.
7502 * fold-const.c: Include realmpfr.h.
7503 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
7504 (fold_negate_const): Likewise.
7505 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
7506 * toplev.c: Include realmpfr.h.
7507 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
7508 and real_value_negate.
7509 * fixed-value.c (check_real_for_fixed_mode): Likewise.
7510 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
7511 (vfp3_const_double_index): Likewise.
7512 (arm_print_operand): Likewise.
7513 * Makefile.in: Update dependencies.
7515 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7517 * config/s390/s390.c (override_options): Increase the default
7518 of max-completely-peel-times.
7520 2010-05-21 Julian Brown <julian@codesourcery.com>
7521 Mark Mitchell <mark@codesourcery.com>
7523 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
7524 sibling calls for Thumb-1.
7525 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
7526 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
7528 (*call_insn, *call_value_insn): Don't use for Thumb-2.
7529 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
7531 (return): New expander.
7532 (*arm_return): New name for ARM return insn.
7533 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
7535 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
7537 * config.gcc (sparc64-*-rtems*): New target.
7539 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
7541 * tree.c (build_function_decl_skip_args): Fix grammar.
7542 (build_function_type_list_1): Fix typos, adjust formatting.
7544 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
7546 * tree.h: Include real.h and fixed-value.h as basic datatypes.
7547 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
7548 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
7549 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
7550 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
7551 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
7552 tree-pretty-print.c, tree-loop-distribution.c,
7553 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
7554 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
7555 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
7556 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
7557 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
7558 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
7559 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
7560 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
7561 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
7562 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
7563 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
7564 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
7565 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
7566 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
7567 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
7568 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
7569 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
7570 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
7571 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
7572 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
7573 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
7574 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
7575 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
7576 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
7577 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
7578 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
7579 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
7580 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
7581 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
7582 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
7583 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
7584 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
7585 config/score/score7.c, config/score/score.c, config/arm/arm.c,
7586 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
7587 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
7588 config/bfin/bfin.c: Clean up redundant includes.
7589 * Makefile.in: Update accordingly.
7591 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
7594 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
7595 statement has no arguments.
7597 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
7600 * varasm.c (emutls_decl): Merge attributes to new decl.
7602 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
7605 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
7606 around the uniquized constructor if its type requires a conversion.
7608 2010-05-21 Jakub Jelinek <jakub@redhat.com>
7611 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
7612 at -O0 goto_locus of any of the incoming edges differs from
7613 goto_locus of outgoing edge, or gimple_location of any of the
7616 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
7618 * ira.c (ira_non_ordered_class_hard_regs): Define.
7619 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
7620 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
7621 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
7622 cost of unaligned hard regs when allocating multi-reg pseudos.
7624 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
7626 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
7627 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
7628 for TARGET_NO_FLOAT.
7629 * config/mips/mips.c (mips_file_start): Expand conditional expression
7630 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
7631 (mips_override_options): Move -mno-float override -msoft-float and
7633 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
7634 Condition(TARGET_SUPPORTS_NO_FLOAT).
7635 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
7636 __mips_no_float here.
7637 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
7638 (TARGET_SUPPORTS_NO_FLOAT): Define.
7639 * config/mips/sdemtk.opt: Delete.
7641 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
7643 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
7645 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
7648 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
7649 * configure: Regenerate.
7650 * config.in: Regenerate.
7651 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
7652 instead of sahf only for 64bit targets.
7654 2010-05-20 Jakub Jelinek <jakub@redhat.com>
7657 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
7658 setup_ref_regs for DEBUG_INSNs.
7660 2010-05-20 Jan Hubicka <jh@suse.cz>
7663 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
7665 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
7668 * df-scan.c (df_ref_compare): Stabilize sort.
7670 2010-05-20 Jakub Jelinek <jakub@redhat.com>
7672 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
7673 argument. Don't use DW_OP_piece if offset is non-zero,
7674 put offset into second DW_OP_bit_piece argument.
7675 (dw_sra_loc_expr): Adjust callers. For memory expressions
7678 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
7681 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
7682 settings for 16-bit-constant "addo" alternative.
7684 2010-05-19 James E. Wilson <wilson@codesourcery.com>
7686 * config/mips/mips-dsp.md (add<DSPV:mode>3,
7687 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
7690 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
7691 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
7694 2010-05-19 Joseph Myers <joseph@codesourcery.com>
7696 * diagnostic.c (FLOAT, FFS): Don't undefine.
7697 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
7698 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
7701 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
7703 * combine.c (propagate_for_debug): Call make_compound_operation
7704 on the source value.
7705 (try_combine): When implementing a split chosen by find_split_point,
7706 either copy i2src or set it to null. Assert that i2src is not null
7707 before substituting into CALL_INSN_FUNCTION_USAGE.
7709 2010-05-19 Anatoly Sokolov <aesok@post.ru>
7711 * double-int.h (double_int_ior): New function.
7712 * tree.h (build_int_cst_wide_type): Remove.
7713 * tree.c (build_int_cst_wide_type): Remove.
7714 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
7715 of build_int_cst_wide_type.
7716 * stor-layout.c (set_sizetype): (Ditto.).
7717 * dojump.c (do_jump): Use build_int_cstu instead of
7718 build_int_cst_wide_type.
7720 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
7722 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
7723 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
7724 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
7725 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
7726 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
7727 propagate the 'data' argument to copy_tree_r.
7728 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
7729 Propagate 'data' argument to walk_tree.
7730 (copy_if_shared): New function.
7731 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
7732 (unmark_visited): New function.
7733 (unshare_body): Call copy_if_shared instead of doing it manually.
7734 (unvisit_body): Call unmark_visited instead of doing it manually.
7736 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
7738 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
7739 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
7740 * hooks.c: Likewise.
7741 * target-def.h (TARGET_FOLD_BUILTIN): Define to
7742 hook_tree_tree_int_treep_bool_null.
7743 * target.h (struct gcc_target): Update signature of fold_builtin
7745 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
7746 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
7747 instead of the call expression.
7748 (fold_builtin_call_array): Pass n and argarray directly.
7749 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
7751 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
7752 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
7753 `i' and use it in place of `arity'.
7754 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
7755 Dereference `args' directly.
7756 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
7758 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7760 * doc/sourcebuild.texi (Effective-Target Keywords): Document
7762 (Directives): Document optional dg-require-effective-target
7765 2010-05-19 Richard Guenther <rguenther@suse.de>
7768 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
7770 2010-05-19 Richard Guenther <rguenther@suse.de>
7772 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
7773 * common.opt (fwhopr=): New.
7774 * opts.c (common_handle_option): Handle OPT_fwhopr.
7775 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
7776 * collect2.c (main): Match -fwhopr*.
7777 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
7778 Execute ltrans stage in parallel when jobs is bigger than 1.
7780 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7782 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
7783 pentiumpro on Solaris 8/x86 with Sun as.
7784 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
7786 (gcc_cv_as_ix86_quad): Check for .quad directive.
7787 * configure: Regenerate.
7788 * config.in: Regenerate.
7789 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
7791 2010-05-19 Martin Jambor <mjambor@suse.cz>
7793 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
7794 also for indirect edges. Actual printing moved...
7795 (ipa_print_node_jump_functions_for_edge): ...here.
7796 (ipa_compute_jump_functions): Renamed to
7797 ipa_compute_jump_functions_for_edge and made static.
7798 (ipa_compute_jump_functions): New function.
7799 (make_edge_direct_to_target): Check if the number of arguments on
7800 the newly direct edge is the same as the number of parametrs of
7802 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
7803 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
7804 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
7805 analysis functions unconditionally, call the new
7806 ipa_analyze_params_uses on the node instead of every edge.
7808 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
7810 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
7812 (dump_mem_ref): Adopt debug code to handle a tree as step. This
7813 also checks for a constant int vs. non-constant but
7814 loop-invariant steps.
7815 (find_or_create_group): Change the sort algorithm to only consider
7816 steps that are constant ints.
7817 (idx_analyze_ref): Adopt code to handle a tree instead of a
7818 HOST_WIDE_INT for step.
7819 (gather_memory_references_ref): Handle tree instead of int and be
7820 prepared to see a NULL_TREE.
7821 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
7822 prefetches if the step cannot be calculated at compile time.
7823 (issue_prefetch_ref): Issue prefetches for non-constant but
7824 loop-invariant steps.
7826 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
7829 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
7831 * tree.h (build_call_list): Remove.
7832 * tree.c (build_call_list): Remove.
7834 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
7836 * tree.h (build_call_list): Remove.
7837 * tree.c (build_call_list): Remove.
7839 2010-05-18 Jan Hubicka <jh@suse.cz>
7841 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
7843 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
7845 PR rtl-optimization/43332
7846 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
7848 2010-05-18 Anatoly Sokolov <aesok@post.ru>
7850 * tree.h (build_int_cstu): Implement as static inline.
7851 * tree.c (build_int_cstu): Remove function.
7852 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
7855 2010-05-18 Richard Guenther <rguenther@suse.de>
7858 * lto-wrapper.c (verbose): New variable. Initialize from -v.
7859 (debug): Initialize from -save-temps.
7860 (collect_execute): Print command-line when verbose.
7861 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
7862 for ltrans invocation. Produce -dumpbase flag again.
7863 (process_args): Remove.
7865 * collect2.c (maybe_run_lto_and_relink): Only pass object
7866 files to lto-wrapper.
7867 * gcc.c (LINK_COMMAND_SPEC): Likewise.
7869 2010-05-18 Jan Hubicka <jh@suse.cz>
7871 * opts.c (decode_options): Do not disable whopr at ipa_cp.
7872 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
7874 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
7877 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
7879 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
7882 2010-05-18 Jakub Jelinek <jakub@redhat.com>
7885 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
7888 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
7890 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
7891 lto-macho as lto_binary_reader.
7893 * darwin.c (darwin_asm_named_section): Do not add assembler comment
7894 after .section directive; just print it before the directive instead.
7896 2010-05-17 Jan Hubicka <jh@suse.cz>
7898 * cgraph.c (cgraph_create_virtual_clone): Only check
7899 versionable_function_p when not in wpa and checking is enabled.
7900 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
7901 there are no more functions to materialize.
7903 2010-05-17 Jan Hubicka <jh@suse.cz>
7905 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
7906 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
7908 (output_cgraph): Call output_cgraph_opt_summary.
7909 (input_cgrpah): Call input_cgraph_opt_summary.
7910 (output_cgraph_opt_summary_p, output_node_opt_summary,
7911 input_node_opt_summary, input_cgraph_opt_section): New functions.
7912 * lto-section-in.c (lto_section_name): Add cgraphopt.
7913 * tree-inline.c (tree_function_versioning): Handle parm_num.
7914 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
7915 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
7917 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
7919 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
7920 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
7921 the insn to prefetch ratio heuristic to loops with known trip count.
7923 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
7925 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
7926 (schedule_prefetches): Do not generate a prefetch if the unroll factor
7927 is far from what is required by the prefetch.
7929 2010-05-17 Jan Hubicka <jh@suse.cz>
7931 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
7932 (ipcp_estimate_growth): Likewise.
7933 (ipcp_const_param_count): Likewise.
7934 (ipcp_insert_stage): Likewise.
7935 * ipa-prop.c (visit_load_for_mod_analysis): New function.
7936 (visit_store_addr_for_mod_analysis): Set used flag.
7937 (ipa_detect_param_modifications): Set used flag for SSE params;
7938 update use of walk_stmt_load_store_addr_ops.
7939 (ipa_print_node_params): Print used flag.
7940 (ipa_write_node_info): Stream used flag.
7941 (ipa_read_node_info): Likewise.
7942 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
7943 (ipa_is_param_used): New function.
7944 (lto_ipa_fixup_call_notes): Remove unused declaration.
7946 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7949 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
7950 * configure: Regenerate.
7951 * config.in: Regenerate.
7952 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
7953 !HAVE_AS_IX86_REP_LOCK_PREFIX.
7954 Don't emit whitespace.
7955 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
7956 (*rep_movsi): Likewise.
7957 (*rep_movsi_rex64): Likewise.
7958 (*rep_movqi): Likewise.
7959 (*rep_movqi_rex64): Likewise.
7960 (*rep_stosdi_rex64): Likewise.
7961 (*rep_stossi): Likewise.
7962 (*rep_stossi_rex64): Likewise.
7963 (*rep_stosqi): Likewise.
7964 (*rep_stosqi_rex64): Likewise.
7965 (*cmpstrnqi_nz_1): Use {%;} after repz.
7966 (*cmpstrnqi_nz_rex_1): Likewise.
7967 (*cmpstrnqi_1): Likewise.
7968 (*cmpstrnqi_rex_1): Likewise.
7969 (*strlenqi_1): Use {%;} after repnz.
7970 (*strlenqi_rex_1): Likewise.
7971 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
7972 (*sync_compare_and_swap<mode>): Likewise.
7973 (sync_double_compare_and_swap<mode>): Likewise.
7974 (*sync_double_compare_and_swapdi_pic): Likewise.
7975 (sync_old_add<mode>): Likewise.
7976 (sync_add<mode>): Likewise.
7977 (sync_sub<mode>): Likewise.
7978 (sync_<code><mode>): Likewise.
7980 2010-05-17 Martin Jambor <mjambor@suse.cz>
7982 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
7983 otr_token and polymorphic.
7984 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
7985 (cgraph_clone_edge): Copy the above fields.
7986 * tree.c (get_binfo_at_offset): New function.
7987 * tree.h (get_binfo_at_offset): Declare.
7988 * ipa-prop.h (enum jump_func_type): Added known_type jump function
7989 type, reordered items, updated comments.
7990 (union jump_func_value): Added base_type field, reordered fields.
7991 (enum ipa_lattice_type): Moved down in the file.
7992 (struct ipa_param_descriptor): New field polymorphic.
7993 (ipa_is_param_polymorphic): New function.
7994 * ipa-prop.c: Include gimple.h and gimple-fold.h.
7995 (ipa_print_node_jump_functions): Print known type jump functions.
7996 (compute_complex_pass_through): Renamed to...
7997 (compute_complex_assign_jump_func): this.
7998 (compute_complex_ancestor_jump_func): New function.
7999 (compute_known_type_jump_func): Likewise.
8000 (compute_scalar_jump_functions): Create known type and complex ancestor
8002 (ipa_note_param_call): New parameter polymorphic, set the corresponding
8003 flag in the call note accordingly.
8004 (ipa_analyze_call_uses): Renamed to...
8005 (ipa_analyze_indirect_call_uses): this. New parameter target, define
8006 variable var only in the block where it is used.
8007 (ipa_analyze_virtual_call_uses): New function.
8008 (ipa_analyze_call_uses): Likewise.
8009 (combine_known_type_and_ancestor_jfs): Likewise.
8010 (update_jump_functions_after_inlining): Implemented handling of a
8011 number of new jump function types combination.
8012 (print_edge_addition_message): Removed.
8013 (make_edge_direct_to_target): New function.
8014 (try_make_edge_direct_simple_call): Likewise.
8015 (try_make_edge_direct_virtual_call): Likewise.
8016 (update_call_notes_after_inlining): Renamed to...
8017 (update_indirect_edges_after_inlining): this. Moved edge creation for
8018 indirect calls to try_make_edge_direct_simple_call, also calls
8019 try_make_edge_direct_virtual_call for virtual calls.
8020 (ipa_print_node_params): Changed the header message.
8021 (ipa_write_jump_function): Stream also known type jump functions.
8022 (ipa_read_jump_function): Likewise.
8023 (ipa_write_indirect_edge_info): Stream new fields in
8024 cgraph_indirect_call_info.
8025 (ipa_read_indirect_edge_info): Likewise.
8026 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
8029 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8031 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
8033 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
8035 * tree.h (CALL_EXPR_ARGS): Delete.
8036 (call_expr_arglist): Delete.
8037 * tree.c (call_expr_arglist): Delete.
8038 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
8039 targetm.fold_builtin.
8040 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
8041 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
8042 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
8043 arglist parameter. Use CALL_EXPR_ARG.
8044 (picochip_expand_builtin_3op): Likewise.
8045 (picochip_expand_builtin_2opvoid): Likewise.
8046 (picochip_expand_array_get): Likewise.
8047 (picochip_expand_array_put): Likewise.
8048 (picochip_expand_array_testport): Likewise.
8049 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
8050 rather than arglist.
8051 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
8053 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
8054 than TREE_VALUE and TREE_CHAIN.
8055 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8056 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
8059 2010-05-17 Jakub Jelinek <jakub@redhat.com>
8062 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
8063 to have no fallthru edge.
8066 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
8067 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
8068 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
8069 add BARRIER after previous bb if needed.
8071 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
8073 * tree.c (build_function_type_list_1): Remove bogus assert condition.
8075 2010-05-17 Alan Modra <amodra@gmail.com>
8077 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
8078 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
8079 with copy_reg rtx param.
8080 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
8081 Correct cases where code for ABI_V4 did not initialise the reg
8082 used to access frame. Also leave frame_reg_rtx as sp for large
8083 frames that save no regs.
8085 2010-05-17 Martin Jambor <mjambor@suse.cz>
8088 * tree-sra.c (create_access_replacement): New parameter rename, mark
8089 the replaement for renaming only when it is true.
8090 (get_access_replacement): Pass true in the rename parameter of
8091 create_access_replacement.
8092 (get_unrenamed_access_replacement): New function.
8093 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
8094 replacement declaration from it.
8096 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
8098 * function.c (try_fit_stack_local, add_frame_space): New static
8100 (assign_stack_local_1): Use them. Look for opportunities to use
8101 space previously wasted on alignment.
8102 * function.h (struct frame_space): New.
8103 (struct rtl_data): Add FRAME_SPACE_LIST member.
8104 * reload1.c (something_was_spilled): New static variable.
8105 (alter_reg): Set it.
8106 (reload): Test it in addition to testing if the frame size changed.
8108 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
8110 * config/s390/s390.c: Define sane prefetch settings and activate
8111 flag_prefetch_loop_arrays on -O3.
8112 * config/s390/s390.h: Declare that read can use write prefetch.
8114 2010-05-17 Jakub Jelinek <jakub@redhat.com>
8116 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
8119 2010-05-16 Jan Hubicka <jh@suse.cz>
8121 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
8122 function body; do not check stdarg field of struct function.
8124 2010-05-16 Jan Hubicka <jh@suse.cz>
8126 * cgraph.c (dump_cgraph_node): Dump versionable flag.
8127 * cgraph.h (cgraph_local_info): Add versionable flag.
8128 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
8129 (ipcp_versionable_function_p): Use it.
8130 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
8133 2010-05-16 Jan Hubicka <jh@suse.cz>
8135 * cgraph.c (cgraph_clone_node): Take decl argument and insert
8136 clone into hash when it is different from orig.
8137 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
8138 * cgraph.h (cgraph_clone_node): Update prototype.
8139 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
8140 (lto_cgraph_encoder_delete): Delete body map.
8141 (lto_cgraph_encoder_size): Move to header.
8142 (lto_cgraph_encoder_encode_body_p,
8143 lto_set_cgraph_encoder_encode_body): New.
8144 (lto_output_node): Do not take written_decls argument; output clone_of
8146 (add_node_to): Add include_body_argument; call
8147 lto_set_cgraph_encoder_encode_body on master of the clone.
8148 (add_references): Update use of add_node_to.
8149 (compute_ltrans_boundary): Likewise.
8150 (output_cgraph): Do not create written_decls bitmap.
8151 (input_node): Take nodes argument; stream in clone_of correctly.
8152 (input_cgraph_1): Update use of input_node.
8153 * lto-streamer-out.c (lto_output): Use encoder info to decide
8154 what bodies to output.
8155 * ipa-inline.c (cgraph_clone_inlined_nodes,
8156 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
8157 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
8158 (lto_cgraph_encoder_size): Define here.
8159 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
8162 2010-05-16 Richard Guenther <rguenther@suse.de>
8164 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
8166 * ipa-type-escape.c (gate_type_escape_vars): Run when
8167 -fipa-struct-reorg runs.
8168 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
8169 * common.opt (fipa-type-escape): Remove.
8171 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8173 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
8174 (decode_options): Likewise.
8175 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
8177 2010-05-16 Jan Hubicka <jh@suse.cz>
8179 * ipa.c (function_and_variable_visibility): Also bring local all
8182 2010-05-16 Richard Guenther <rguenther@suse.de>
8184 * alias.c (nonoverlapping_memrefs_p): Remove use of
8185 IPA type-escape information.
8187 2010-05-16 Joseph Myers <joseph@codesourcery.com>
8189 * c-common.c (c_common_reswords): Add _Static_assert for C.
8190 * c-parser.c (c_token_starts_declaration,
8191 c_parser_next_token_starts_declaration,
8192 c_parser_static_assert_declaration_no_semi,
8193 c_parser_static_assert_declaration): New.
8194 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
8195 Handle static assertions if static_assert_ok.
8196 (c_parser_external_declaration, c_parser_declaration_or_fndef,
8197 c_parser_compound_statement_nostart, c_parser_label,
8198 c_parser_for_statement, c_parser_objc_methodprotolist,
8199 c_parser_omp_for_loop): All callers of
8200 c_parser_declaration_or_fndef changed.
8201 (c_parser_struct_declaration): Handle static assertions.
8202 (c_parser_compound_statement_nostart): Use
8203 c_parser_next_token_starts_declaration and
8204 c_token_starts_declaration to detect start of declarations.
8205 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
8208 2010-05-16 Anatoly Sokolov <aesok@post.ru>
8210 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
8211 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
8212 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8213 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8214 (mmix_function_outgoing_value): Rename to...
8215 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
8216 (mmix_function_value_regno_p): Make static.
8217 (mmix_libcall_value): New function.
8218 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
8219 mmix_function_value_regno_p): Remove declaration.
8221 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
8223 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
8224 BUILT_IN_ALLOCA if stack checking is enabled.
8226 2010-05-16 Richard Guenther <rguenther@suse.de>
8228 * var-tracking.c (vars_copy_1): Inline ...
8229 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
8230 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
8231 (variable_merge_over_cur): Adjust. Merge asserts.
8232 (variable_merge_over_src): Likewise.
8233 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
8234 (variable_post_merge_new_vals): Merge asserts.
8235 (variable_post_merge_perm_vals): Likewise.
8236 (find_mem_expr_in_1pdv): Likewise.
8237 (dataflow_set_different_value): Remove.
8238 (onepart_variable_different_p): Merge asserts.
8239 (variable_different_p): Likewise.
8240 (dataflow_set_different_1): Inline ...
8241 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
8242 (emit_notes_for_differences_1): Merge asserts.
8244 2010-05-16 Richard Guenther <rguenther@suse.de>
8246 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
8247 * optabs.c (libfunc_decl_hash): Likewise.
8248 * varasm.c (emutls_decl): Likewise.
8250 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
8252 * c-decl.c: Don't include gimple.h.
8253 (merge_decls): Do not copy gimple_body.
8255 2010-05-15 Jason Merrill <jason@redhat.com>
8257 * c.opt: Add -fnothrow-opt.
8259 2010-05-15 Jan Hubicka <jh@suse.cz>
8261 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
8263 * passes.c (ipa_write_summaries): Write all analyzed nodes.
8265 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
8267 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
8268 * Makefile.in: Add it.
8269 Fix all other Makefile dependencies for changes below.
8270 * tree.h: Include it instead of defining VEC primitives here.
8271 * gimple.h: Likewise.
8273 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
8274 * except.h: Include vecir.h, break dependence on tree.h.
8276 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
8278 * tree-iterator.c: ...to here.
8279 * tree-iterator.h: Fix file introduction comment. Add extern markers.
8281 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
8283 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
8284 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
8285 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
8286 tree-mudflap.h, and target.h.
8287 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
8288 predict.h, tree-inline.h, gimple.h, and langhooks.h.
8289 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
8290 Add FIXME for why gimple.h is still included (should be unnecessary
8291 since GCC 4.5 gimplification unit-at-a-time).
8292 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
8293 * c-pragma.c: Add FIXME for why function.h needs to be included just
8294 for cfun, at front-end level.
8295 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
8296 Do not include ggc.h, but include vecprim.h for VEC(char).
8297 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
8298 Explain why target.h is included.
8299 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
8300 Explain why gimple.h is included.
8301 * c-ppoutput.c: Do not include tm.h.
8302 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
8303 * c-parses.c: Explain why rtl.h is included, and that this (and only
8304 this) is also why tm.h must be included.
8305 Do not include except.h.
8306 * c-lang.c: Do not include ggc.h.
8308 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
8310 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
8312 2010-05-15 Joseph Myers <joseph@codesourcery.com>
8314 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
8315 unions by default if those structs and unions have no tags. Do
8316 not condition anonymous struct and unions handling on flag_iso.
8317 Allow anonymous structs and unions for C1X.
8318 (finish_struct): Do not diagnose lack of named fields when
8319 anonymous structs and unions present for C1X. Accept flexible
8320 array members in structure with anonymous structs or unions but no
8321 directly named fields.
8322 * doc/extend.texi (Unnamed Fields): Update.
8324 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
8326 * gimple.h (compare_field_offset): Rename into...
8327 (gimple_compare_field_offset): ...this.
8328 * gimple.c (compare_field_offset): Rename into...
8329 (gimple_compare_field_offset): ...this. Compare the full access if
8330 the offset is self-referential.
8331 (gimple_types_compatible_p): Adjust for above renaming.
8332 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
8333 DECL_NONADDRESSABLE_P flag of fields before merging them.
8335 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
8337 * tree.h (ctor_to_list): Delete.
8338 * tree.c (ctor_to_list): Delete.
8340 2010-05-15 Jan Hubicka <jh@suse.cz>
8342 * ipa-reference.c: Include toplev.h
8343 (is_proper_for_analysis): Only add to all_module_statics
8345 (write_node_summary_p, stream_out_bitmap,
8346 ipa_reference_write_optimization_summary,
8347 ipa_reference_read_optimization_summary): New.
8348 (struct ipa_opt_pass_d pass_ipa_reference): Add
8349 optimization summary streaming.
8350 * lto-cgraph.c (referenced_from_this_partition_p,
8351 reachable_from_this_partition_p): New functions.
8352 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
8353 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
8354 * opts.c (decode_options): Enable ipa_reference.
8355 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
8356 * lto-streamer.h (referenced_from_this_partition_p,
8357 reachable_from_this_partition_p): Declare.
8359 2010-05-15 Richard Guenther <rguenther@suse.de>
8361 PR tree-optimization/44038
8362 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
8363 taking the address of a V_C_E of a constant.
8365 2010-05-14 Jan Hubicka <jh@suse.cz>
8367 * tree.h (memory_identifier_string): Remove.
8368 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
8369 (ipa_reference_global_vars_info_d): Remove statics_not_read and
8370 statics_not_written.
8371 (ipa_reference_optimization_summary_d): New structure.
8372 (ipa_reference_optimization_summary_t): New type and vector.
8373 (ipa_reference_vars_info_d): Embedd structures instead of using
8375 (reference_vars_to_consider): Remove out of GGC space.
8376 (module_statics_escape): Remove.
8377 (global_info_obstack): Rename to ...
8378 (optimization_summary_obstack): ... this one.
8379 (initialization_status_t): Remove.
8380 (memory_identifier_string): Remove.
8381 (get_reference_vars_info): Fix indenting.
8382 (set_reference_vars_info): Likewise.
8383 (get_reference_optimization_summary): New.
8384 (set_reference_optimization_summary): New.
8385 (get_global_reference_vars_info): Remove.
8386 (ipa_reference_get_read_global): Remove.
8387 (ipa_reference_get_written_global): Remove.
8388 (ipa_reference_get_not_read_global): Update.
8389 (ipa_reference_get_not_written_global): Update.
8390 (is_proper_for_analysis): Outlaw addressable.
8391 (propagate_bits): Update for new datastructures.
8392 (analyze_variable): Remove.
8393 (init_function_info): Update for new datastructures.
8394 (clean_function_local_data): Remove.
8395 (clean_function): Remove.
8396 (copy_global_bitmap): Use optimizations_summary_obstack.
8397 (duplicate_node_data): Duplicate optimization summary only.
8398 (remove_node_data): Remove optimization summary only.
8399 (generate_summary): Do not analyze variables; do not compute
8400 module_statics_escape; do not prune solutions by it.
8401 (read_write_all_from_decl): Fix typos in comments.
8402 (propagate): Doscover readonly and nonaddressable first;
8403 update for new datastructures; share global bitmaps.
8404 * ipa-reference.h (ipa_reference_get_read_global,
8405 ipa_reference_get_written_global): Remove.
8406 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
8407 * Makefile.in: Remove ipa-refereference from GT files.
8409 2010-05-14 Jakub Jelinek <jakub@redhat.com>
8412 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
8413 for all SYMBOL_REF_DECLs.
8415 2010-05-14 Jan Hubicka <jh@suse.cz>
8417 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
8418 (varpool_all_refs_explicit_p): New inline function.
8419 * ipa-reference.c: Update comment.
8420 (module_statics_written): Remove.
8421 (get_static_decl): Remove.
8422 (ipa_init): Do not initialize module_statics_written.
8423 (analyze_function): Likewise.
8424 (generate_summary): Likewise; do not compute module_statics_readonly
8425 and do not update variable flags.
8426 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
8427 * ipa.c: Inlucde flags.h
8428 (cgraph_local_node_p): New.
8429 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
8430 promote functions to local.
8431 (ipa_discover_readonly_nonaddressable_vars): New function.
8432 (function_and_variable_visibility): Use cgraph_local_node_p.
8433 * varpool.c (varpool_finalize_decl): Set force_output for
8434 DECL_PRESERVE_P vars.
8436 2010-05-14 Jan Hubicka <jh@suse.cz>
8438 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
8440 2010-05-14 Richard Guenther <rguenther@suse.de>
8442 PR tree-optimization/44119
8443 * tree-ssa-pre.c (eliminate): Properly mark replacement of
8444 a PHI node necessary.
8446 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
8448 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
8450 2010-05-14 Jason Merrill <jason@redhat.com>
8453 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
8454 (gimple_call_set_nothrow): New.
8455 * gimple.c (gimple_build_call_from_tree): Call it.
8456 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
8459 * gimplify.c (gimplify_seq_add_stmt): No longer static.
8460 * gimple.h: Declare it.
8461 * gimple.c (gimple_build_eh_filter): No ops.
8463 2010-05-14 Jan Hubicka <jh@suse.cz>
8465 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
8466 nodes already in queue.
8467 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
8470 2010-05-14 Jakub Jelinek <jakub@redhat.com>
8473 * cfgexpand.c (expand_debug_expr): If non-memory op0
8474 has BLKmode, return NULL.
8476 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
8478 * config.gcc: Add support for --with-cpu option for bdver1.
8479 * config/i386/i386.h (TARGET_BDVER1): New macro.
8480 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
8481 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
8482 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
8483 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
8484 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
8485 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
8486 (processor_type): Add PROCESSOR_BDVER1.
8487 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
8488 processor_type in config/i386/i386.h.
8489 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
8490 movaps <reg, reg> instead of movapd <reg, reg> when replacing
8491 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
8492 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
8493 to emit packed xor instead of packed double/packed integer
8494 xor for SSE and AVX when moving a zero value.
8495 * config/i386/sse.md: Add check for
8496 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
8497 movapd/movdqa for SSE and AVX.
8498 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
8499 single logical operations i.e and, or and xor instead of packed double
8500 logical operations for SSE and AVX.
8501 * config/i386/i386-c.c (ix86_target_macros_internal):
8502 Add PROCESSOR_BDVER1.
8503 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
8504 (has_fma4, has_xop): New.
8505 * config/i386/i386.c (bdver1_cost): New variable.
8506 (m_BDVER1): New macro.
8507 (m_AMD_MULTIPLE): Add m_BDVER1.
8508 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
8509 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
8510 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
8511 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
8512 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
8513 x86_tune_sse_partial_reg_dependency,
8514 x86_tune_sse_unaligned_load_optimal,
8515 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
8516 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
8517 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
8518 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
8519 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
8520 Enable/disable for bdver1.
8521 (processor_target_table): Add bdver1_cost.
8522 (cpu_names): Add bdver1.
8523 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
8524 processor_alias_table.
8525 (ix86_expand_vector_move_misalign): Change.
8526 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
8527 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
8528 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
8529 of movupd/movdqu for SSE and AVX.
8530 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
8531 (ix86_tune_adjust_cost): Add code for bdver1.
8532 (standard_sse_constant_opcode): Add check for
8533 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
8534 of packed double xor for SSE and AVX.
8536 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
8538 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
8541 2010-05-14 Tristan Gingold <gingold@adacore.com>
8543 * toplev.c (default_debug_hooks): Remove this variable.
8544 (process_options): Remove assignments to default_debug_hooks.
8546 2010-05-14 Martin Jambor <mjambor@suse.cz>
8548 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
8549 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
8550 * langhooks.h (struct lang_hooks_for_decls): Removed field
8552 * tree.c (free_lang_data): Remove assignment to
8553 lang_hooks.fold_obj_type_ref.
8554 * tree.def (OBJ_TYPE_REF): Update comment.
8556 2010-05-14 Richard Guenther <rguenther@suse.de>
8558 PR tree-optimization/44124
8559 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
8561 2010-05-14 Alan Modra <amodra@gmail.com>
8564 * config/rs6000/rs6000.c (struct machine_function): Reorder
8565 fields for better packing. Add lr_save_state.
8566 (rs6000_ra_ever_killed): Return lr_save_state if set.
8567 (rs6000_emit_eh_reg_restore): Set lr_save_state.
8569 2010-05-13 Jan Hubicka <jh@suse.cz>
8571 * varpool.c (decide_is_variable_needed): Drop code checking
8572 TREE_SYMBOL_REFERENCED.
8574 2010-05-13 Jan Hubicka <jh@suse.cz>
8576 * final.c (output_addr_const): Do not call mark_decl_referenced.
8577 * cgraphunit.c (process_function_and_variable_attributes): Use
8578 mark_needed_node dirrectly.
8579 (assemble_thunk): Do not call mark_decl_referenced.
8581 2010-05-13 Anatoly Sokolov <aesok@post.ru>
8583 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
8585 2010-05-13 Jeff Law <law@redhat.com>
8587 * ira-conflicts.c (print_allocno_conflicts): New function broken out
8589 (print_conflicts): Call print_allocno_conflicts.
8591 2010-05-13 Jakub Jelinek <jakub@redhat.com>
8594 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
8597 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
8599 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
8600 t-mingw-w64 or t-mingw-w32 for multilib configuration.
8601 * config/i386/t-mingw-w32: New.
8602 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
8604 2010-05-13 Martin Jambor <mjambor@suse.cz>
8606 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
8608 * gimple-fold.c (get_base_binfo_for_type): New function.
8609 (gimple_get_relevant_ref_binfo): Likewise.
8610 (gimple_fold_obj_type_ref_known_binfo): Likewise.
8611 (gimple_fold_obj_type_ref): Likewise.
8612 (fold_gimple_call): Simplify condition for folding virtual calls
8613 and call gimple_fold_obj_type_ref.
8614 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
8615 (gimple_fold_obj_type_ref_known_binfo): Likewise.
8617 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
8619 * config/rs6000/rs6000-protos.h
8620 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
8621 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
8622 (rs6000_debug_mode_dependent_address)
8623 (rs6000_mode_dependent_address_ptr): Likewise.
8625 2010-05-13 Jakub Jelinek <jakub@redhat.com>
8628 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
8630 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
8631 * tree-sra.c (create_access_replacement): Call unshare_expr before
8632 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
8633 * dwarf2out.c: Include tree-flow.h.
8634 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
8635 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
8636 Handle DW_OP_bit_piece.
8637 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
8638 construct_piece_list, adjust_piece_list): New functions.
8639 (add_var_loc_to_decl): Handle SRA optimized variables.
8640 Adjust for var_loc_note to loc field renaming.
8641 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
8642 in VAR_LOCATION note.
8643 (new_loc_descr_op_bit_piece): New function.
8644 (dw_sra_loc_expr): New function.
8645 (dw_loc_list): Use it. Don't handle the last range after the
8646 loop, handle it inside of the loop. Adjust for var_loc_note
8647 to loc field renaming.
8648 (add_location_or_const_value_attribute): Only special case
8649 single entry loc lists if loc is NOTE_P. Adjust for
8650 var_loc_note to loc field renaming.
8651 (dwarf2out_var_location): Don't set newloc->var_loc_note
8652 and newloc->next here.
8654 2010-05-12 Jan Hubicka <jh@suse.cz>
8656 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
8658 * cgraph.h (cgraph_only_called_directly_p,
8659 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
8660 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
8661 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
8663 * ipa.c (cgraph_remove_unreachable_nodes): Use
8664 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
8666 * tree-inline.c (copy_bb): Check address_taken flag.
8667 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
8668 externally_visible flag.
8670 2010-05-12 Jason Merrill <jason@redhat.com>
8674 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
8675 * sdbout.c (plain_type_1): Likewise.
8676 * dwarf2out.c (is_base_type): Likewise.
8677 (gen_type_die_with_usage): Likewise. Generate
8678 DW_TAG_unspecified_type for any LANG_TYPE.
8680 2010-05-12 Jan Hubicka <jh@suse.cz>
8682 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
8684 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
8685 (cgraph_clone_edge): Update.
8686 (cgraph_node_remove_callees): Remove indirect calls too.
8687 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
8688 (cgraph_create_indirect_edge): Update prototype.
8689 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
8690 is_proper_for_analysis.
8691 (add_new_function, visited_nodes, function_insertion_hook_holder,
8692 get_local_reference_vars_info, mark_address_taken, mark_address,
8693 mark_load, mark_store, check_asm_memory_clobber, check_call,
8694 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
8695 (ipa_init): Do not initialize visited_nodes;
8696 function_insertion_hook_holder.
8697 (analyze_variable): Rewrite.
8698 (analyze_function): Rewrite.
8699 (copy_local_bitmap): Remove.
8700 (duplicate_node_dat): Do not duplicate local info.
8701 (generate_summary): Simplify to only walk cgraph.
8702 (write_node_summary_p, ipa_reference_write_summary,
8703 ipa_reference_read_summary): Remove.
8704 (propagate): Do not remove function insertion;
8706 (pass_ipa_reference): NULLify summary handling fields.
8707 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
8708 (input_edge): Input ecf_flags.
8709 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
8710 (update_indirect_edges_after_inlining): Ignore edges with unknown
8713 2010-05-12 Sriraman Tallam <tmsriram@google.com>
8715 * implicit-zee.c: New file.
8716 * tree-pass.h (pass_implicit_zee): Declare.
8717 * passes.c (init_optimization_passes): Add zee pass.
8718 * common.opt (fzee): New flag.
8719 * timevar.def (TV_ZEE): Define.
8720 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
8722 * Makefile.in (implicit-zee.o): Add new build file.
8724 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
8725 Nathan Froyd <froydnj@codesourcery.com>
8727 * c-common.c (sync_resolve_params): Remove write-only variable.
8729 2010-05-12 Anatoly Sokolov <aesok@post.ru>
8731 * target.h (struct gcc_target): Add mode_dependent_address_p field.
8732 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
8733 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
8734 * targhooks.c (default_mode_dependent_address_p): New function.
8735 * targhooks.h (default_mode_dependent_address_p): Declare function.
8736 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
8737 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
8738 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
8739 target hook. Change return type to bool.
8740 * recog.h (mode_dependent_address_p): Change return type to bool.
8742 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
8743 Nathan Froyd <froydnj@codesourcery.com>
8745 * tree-mudflap.c (build_function_type_0, build_function_type_1,
8746 build_function_type_2, build_function_type_3): Remove.
8747 (mudflap_init): Use build_function_type_list.
8749 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
8750 Nathan Froyd <froydnj@codesourcery.com>
8752 * coverage.c (build_fn_info_value): Call build_constructor instead of
8753 build_constructor_from_list.
8754 (build_ctr_info_value): Likewise.
8755 (build_gcov_info): Likewise.
8757 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
8759 * tree.c (build_constructor): Compute TREE_CONSTANT for the
8760 resultant constructor.
8761 (build_constructor_single): Don't set TREE_CONSTANT.
8762 (build_constructor_from_list): Don't compute TREE_CONSTANT.
8764 2010-05-12 Jan Hubicka <jh@suse.cz>
8766 * cgraph.h (struct varpool_node): Add aux.
8767 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
8768 * varpool.c (varpool_remove_node): Do not remove initializer.
8769 (varpool_reset_queue): Export.
8770 (varpool_finalize_decl): Volatile vars are forced to be output.
8771 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
8773 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
8774 process_references, varpool_can_remove_if_no_refs): New functions.
8775 (cgraph_remove_unreachable_nodes): Handle variables too.
8777 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
8780 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
8782 2010-05-12 Jakub Jelinek <jakub@redhat.com>
8785 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
8786 change value of ORT_TASK.
8787 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
8788 (omp_notice_threadprivate_variable): New function.
8789 (omp_notice_variable): Call it for threadprivate variables.
8790 If enclosing ctx is a task, print enclosing task rather than
8791 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
8792 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
8793 if task has untied clause.
8796 * dwarf2out.c (base_type_die): Don't add name attribute here.
8797 (modified_type_die): Instead of sizetype use
8798 its underlying original type. If a DW_TAG_base_type doesn't
8799 have name added, add __unknown__.
8800 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
8801 always call force_type_die instead.
8803 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
8805 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
8806 for __stack_chk_guard.
8808 2010-05-11 Jakub Jelinek <jakub@redhat.com>
8810 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
8811 don't call start_source_file debug hook here...
8812 (finish_options): ... but here, after outputting predefined and
8813 command line defines and undefs.
8816 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
8818 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
8819 optimizing away empty bb with no successors, move over its
8820 footer chain to fallthru predecessor.
8821 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
8822 (rtl_split_edge): For asm goto call patch_jump_insn even if
8823 splitting fallthru edge.
8826 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
8827 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
8828 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
8829 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
8833 * c-parser.c (c_parser_expression): Mark LHS of a comma
8834 expression as read if it is a decl, handled component or
8835 COMPOUND_EXPR with that on the RHS.
8836 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
8837 if it is a decl or handled component.
8839 2010-05-11 Jan Hubicka <jh@suse.cz>
8841 * lto-symtab.c (lto_symtab_free): New function.
8842 * lto-streamer.h (lto_symtab_free): Declare.
8844 2010-05-11 Jan Hubicka <jh@suse.cz>
8846 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
8847 that if function is needed it is reachable.
8848 (lto_output_node): See if it the function is reachable or referenced.
8849 (output_cgraph): Update call of lto_output_node.
8850 * lto-streamer.h (reachable_from_other_partition_p): Declare.
8852 2010-05-11 Jan Hubicka <jh@suse.cz>
8854 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
8857 2010-05-11 Jan Hubicka <jh@suse.cz>
8859 PR tree-optimize/44063
8860 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
8862 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
8864 (estimate_function_body_sizes): Compute sizes even when disregarding.
8866 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
8868 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
8870 2010-05-11 Jan Hubicka <jh@suse.cz>
8872 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
8873 into every boundary.
8875 2010-05-11 Jan Hubicka <jh@suse.cz>
8877 * matrix-reorg.c (matrix_reorg): Rebuild edges.
8879 2010-05-11 Jan Hubicka <jh@suse.cz>
8881 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
8882 lto_streamer_cache_delete): Put nodes into heap.
8883 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
8886 2010-05-11 Jan Hubicka <jh@suse.cz>
8888 * cgraphbuild.c (cgraph_rebuild_references): New.
8889 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
8891 * cgraph.h (cgraph_rebuild_references): Declare.
8892 * tree-inline.c (tree_function_versioning): Use it.
8893 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
8895 2010-05-11 Jan Hubicka <jh@suse.cz>
8897 * cgraph.c: Include ipa-utils.h
8898 (cgraph_create_virtual_clone): Update references.
8899 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
8901 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
8903 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
8904 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
8907 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
8909 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
8911 2010-05-11 Jakub Jelinek <jakub@redhat.com>
8913 * gcc.c (execute): For -### don't quote arguments that
8914 contain just alphanumerics and _/-. characters.
8915 * doc/invoke.texi: Document that change for -###.
8918 * df-problems.c (struct dead_debug): Add to_rescan field.
8919 (dead_debug_init): Clear to_rescan field.
8920 (dead_debug_finish): Rescan all debug insns in to_rescan
8921 bitmap and free the bitmap.
8922 (dead_debug_insert_before): Instead of rescanning debug insns
8923 immediately queue their rescanning until dead_debug_finish.
8924 (df_note_bb_compute): After dead_debug_add do continue instead
8927 2010-05-10 Jakub Jelinek <jakub@redhat.com>
8930 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
8931 clear also INSN_REG_USE_LIST.
8933 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8935 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
8937 2010-05-10 Jan Hubicka <jh@suse.cz>
8939 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
8942 2010-05-10 Jan Hubicka <jh@suse.cz>
8944 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
8946 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
8947 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
8948 (lto_streamer_cache_create): Init alloc pool.
8949 (lto_streamer_cache_delete): Free alloc pool.
8950 * lto-streamer.h: Include alloc pool.
8951 (lto_streamer_cache_d): Use alloc pool.
8952 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
8954 2010-05-10 Jan Hubicka <jh@suse.cz>
8956 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
8957 * cgraphbuild.c: Include except.h
8958 (record_type_list, record_eh_tables): New function.
8959 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
8961 2010-05-10 Jan Hubicka <jh@suse.cz>
8963 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
8964 __frame_dummy_init_array_entry, force_to_data): Attribute as used
8967 2010-05-10 Michael Matz <matz@suse.de>
8969 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
8970 (can_reassociate_p): Use FLOAT_TYPE_P.
8971 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
8972 (vect_force_simple_reduction): ... this.
8973 * tree-parloops.c (gather_scalar_reductions): Use
8974 vect_force_simple_reduction.
8975 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
8976 vect_is_simple_reduction, add modify argument, if true rewrite
8977 "a-b" into "a+(-b)".
8978 (vect_is_simple_reduction, vect_force_simple_reduction): New
8980 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
8982 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
8983 Vladimir Makarov <vmakarov@redhat.com>
8985 PR rtl-optimization/44012
8986 * ira-build.c (remove_unnecessary_allocnos): Nullify
8987 regno_allocno_map of the removed allocno.
8989 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8991 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
8993 * configure: Regenerate.
8995 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8997 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
8999 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
9000 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
9002 * configure: Regenerate.
9004 2010-05-10 Richard Guenther <rguenther@suse.de>
9006 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
9007 marked if the entry identifier is marked.
9009 2010-05-10 Richard Guenther <rguenther@suse.de>
9011 * c-common.c (struct c_common_attributes): Add fnspec attribute.
9012 (handle_fnspec_attribute): New function.
9013 * gimple.h (gimple_call_return_flags): Declare.
9014 (gimple_call_arg_flags): Likewise.
9015 * gimple.c (gimple_call_arg_flags): New function.
9016 (gimple_call_return_flags): Likewise.
9017 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
9019 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
9021 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
9022 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
9024 (make_heapvar_for): ... this new function.
9025 (handle_rhs_call): Handle fnspec attribute argument specifiers.
9026 (handle_lhs_call): Likewise.
9027 (find_func_aliases): Adjust.
9029 2010-05-10 Richard Guenther <rguenther@suse.de>
9031 PR tree-optimization/44050
9032 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
9034 2010-05-10 Wei Guozhi <carrot@google.com>
9037 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
9039 2010-05-09 Joseph Myers <joseph@codesourcery.com>
9042 * c-typeck.c (lookup_field): Take a type directly. Update
9044 (build_component_ref): Update call to lookup_field.
9045 (set_init_label): Use lookup_field to find initialized field.
9046 Handle returned list of fields like a sequence of designators.
9048 2010-05-09 Richard Guenther <rguenther@suse.de>
9051 * fold-const.c (tree_single_nonzero_warnv_p): Properly
9052 handle &FUNCTION_DECL.
9054 2010-05-09 Joseph Myers <joseph@codesourcery.com>
9057 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
9058 structures and unions recursively.
9059 (detect_field_duplicates): Move duplicate detection with a hash to
9060 detect_field_duplicates_hash. Always use a hash if anonymous
9061 structures or unions are present.
9062 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
9065 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
9068 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
9069 detect Atom, Core 2 and Core i7.
9071 2010-05-09 Richard Guenther <rguenther@suse.de>
9073 * gcc.c (store_arg): Handle temporary file deletion for
9076 2010-05-09 Richard Guenther <rguenther@suse.de>
9079 * ipa-inline.c (estimate_function_body_sizes): Return after
9080 disregarding inline limits.
9082 2010-05-09 Richard Guenther <rguenther@suse.de>
9084 * gcc.c (store_arg): Revert last change.
9086 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
9089 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
9090 (optimize_ops_list): Call it.
9092 2010-05-08 Richard Guenther <rguenther@suse.de>
9094 PR tree-optimization/44030
9095 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
9096 NECESSARY flag if we propagate from a inserted expression.
9098 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
9100 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
9101 domain types as equal if they are both PLACEHOLDER_EXPRs.
9103 2010-05-08 Richard Guenther <rguenther@suse.de>
9105 * lto-wrapper.c (run_gcc): Remove linker output from
9106 command line for LTRANS invocation.
9108 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
9110 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
9111 lto-macho as lto_binary_reader.
9112 * target.h (struct gcc_target): New hooks lto_start and lto_end.
9113 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
9114 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
9115 in lto_start and lto_end calls.
9116 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
9118 (scan_prog_file): Update is_elf_or_coff call.
9119 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
9121 * collect2.c (main): Fix enum comparison.
9123 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
9125 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
9126 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
9127 and TARGET_ASM_LTO_END.
9128 * darwin.c: Include obstack.h and lto-streamer.h.
9129 (lto_section_names_offset, lto_section_names_obstack,
9130 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
9132 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
9133 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
9134 to a temporary file.
9135 (darwin_asm_lto_end): New function. Restore asm_out_file.
9136 (darwin_asm_named_section): For LTO sections, replace the name with
9137 the offset of the section name in a string table, and build this
9139 (darwin_file_start): Initialize global vars for LTO support.
9140 (darwin_file_end): If output to asm_out_file was redirected, append it
9141 to the proper asm_out_file here. Add the section names section.
9143 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
9145 * c-pragma.c (pending_weak_d, pending_weak): New.
9146 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
9147 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
9148 handle_pragma_weak): Update the uses of pending_weaks.
9150 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9152 PR documentation/44016
9153 * doc/standards.texi (Standards): Link to unversioned
9154 cxx0x_status.html page.
9156 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
9159 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
9160 in addition to TREE_USED, to avoid "set but unused" warnings.
9162 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
9164 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
9165 (is_loop_prefetching_profitable): Do not insert prefetches
9166 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
9167 times the prefetch ahead distance.
9169 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
9171 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
9172 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
9173 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
9176 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
9178 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
9179 a diagnostic info when the insn-to-mem ratio is too small.
9181 2010-05-07 Richard Guenther <rguenther@suse.de>
9183 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
9185 (store_arg): Queue temp_filename for deletion instead of
9188 2010-05-07 Richard Guenther <rguenther@suse.de>
9190 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
9191 (run_gcc): Handle LTRANS phase invocation.
9192 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
9194 2010-05-07 Jakub Jelinek <jakub@redhat.com>
9196 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
9197 this is also meaningful on PARM_DECLs and RESULT_DECLs.
9199 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9201 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
9203 2010-05-07 Richard Guenther <rguenther@suse.de>
9205 PR tree-optimization/44020
9206 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
9207 code when PRE is not yet initialized.
9209 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9211 * config/mips/dbxmdebug.h: Remove.
9212 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
9214 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
9216 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
9217 with null pointer and also warn about ordered comparison of zero with
9220 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9222 * graphite-blocking.c
9223 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
9224 * graphite-clast-to-gimple.c
9225 (clast_to_gcc_expression): Same.
9226 (precision_for_value): Same.
9227 (precision_for_interval): Same.
9228 (gcc_type_for_interval): Same.
9229 (graphite_create_new_guard): Same.
9230 (compute_bounds_for_level): Same.
9231 (graphite_create_new_loop_guard): Same.
9232 * graphite-interchange.c
9233 (build_linearized_memory_access): Same.
9234 (pdr_stride_in_loop): Same.
9235 (memory_strides_in_loop_1): Same.
9236 (memory_strides_in_loop): Same.
9237 (extend_scattering): Same.
9238 (psct_scattering_dim_for_loop_depth): Same.
9239 (pbb_number_of_iterations): Same.
9241 (debug_iteration_domains): Same.
9243 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
9244 (ppl_set_inhomogeneous_gmp): Same.
9245 (ppl_strip_loop): Same.
9246 (ppl_lexico_compare_linear_expressions): Same.
9247 (ppl_read_polyhedron_matrix): Same.
9248 (ppl_max_for_le_pointset): Same.
9250 (ppl_read_polyhedron_matrix): Same.
9251 (tree_int_to_gmp): Same.
9252 (gmp_cst_to_tree): Same.
9253 (ppl_set_inhomogeneous): Same.
9254 (ppl_set_inhomogeneous_tree): Same.
9255 (ppl_set_coef): Same.
9256 (ppl_set_coef_tree): Same.
9257 * graphite-sese-to-poly.c
9258 (build_pbb_scattering_polyhedrons): Same.
9259 (build_scop_scattering): Same.
9260 (scan_tree_for_params_right_scev): Same.
9261 (scan_tree_for_params): Same.
9262 (find_params_in_bb): Same.
9263 (find_scop_parameters): Same.
9264 (add_upper_bounds_from_estimated_nit): Same.
9265 (build_loop_iteration_domains): Same.
9266 (add_condition_to_domain): Same.
9267 (pdr_add_memory_accesses): Same.
9269 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
9271 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
9272 CLooG's value_* macros to their respective mpz_* counterparts.
9273 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
9274 (graphite_create_new_loop_guard): Same.
9275 * graphite-interchange.c (build_linearized_memory_access): Same.
9276 (pdr_stride_in_loop): Same.
9277 (memory_strides_in_loop_1): Same.
9278 (1st_interchange_profitable_p): Same.
9279 * graphite-poly.c (extend_scattering): Same.
9280 (psct_scattering_dim_for_loop_depth): Same.
9281 (pbb_number_of_iterations): Same.
9282 (pbb_number_of_iterations_at_time): Same.
9283 * graphite-poly.h (new_1st_loop): Same.
9284 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
9285 (oppose_constraint): Same.
9286 (insert_constraint_into_matrix): Same.
9287 (ppl_set_inhomogeneous_gmp): Same.
9288 (ppl_set_coef_gmp): Same.
9289 (ppl_strip_loop): Same.
9290 (ppl_lexico_compare_linear_expressions): Same.
9291 (ppl_max_for_le_pointset): Same.
9292 (ppl_min_for_le_pointset): Same.
9293 (ppl_build_realtion): Same.
9294 * graphite-ppl.h (gmp_cst_to_tree): Same.
9295 (ppl_set_inhomogeneous): Same.
9296 (ppl_set_inhomogeneous_tree): Same.
9297 (ppl_set_coef): Same.
9298 (ppl_set_coef_tree): Same.
9299 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
9300 (build_scop_scattering): Same.
9301 (add_value_to_dim): Same.
9302 (scan_tree_for_params_right_scev): Same.
9303 (scan_tree_for_params_int): Same.
9304 (scan_tree_for_params): Same.
9305 (find_params_in_bb): Same.
9306 (find_scop_parameters): Same.
9307 (add_upper_bounds_from_estimated_nit): Same.
9308 (build_loop_iteration_domains): Same.
9309 (create_linear_expr_from_tree): Same.
9310 (add_condition_to_domain): Same.
9311 (pdr_add_memory_accesses): Same.
9313 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
9314 Jason Merrill <jason@redhat.com>
9316 * c-common.c (c_common_reswords): Add nullptr.
9317 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
9318 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
9319 (gen_type_die_with_usage): Likewise.
9320 * dbxout.c (dbxout_type): Likewise.
9321 * sdbout.c (plain_type_1): Likewise.
9323 2010-05-06 Jason Merrill <jason@redhat.com>
9325 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
9326 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
9328 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
9330 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
9331 stripping WITH_SIZE_EXPR.
9332 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
9335 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9337 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
9338 list of obsolete configurations.
9339 Disabled check for obsolete configurations.
9340 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
9341 Removed support for previous versions.
9342 * config/mips/iris.h: Removed.
9343 * config/mips/iris5.h: Removed.
9344 * config/mips/iris6.h: Merged old iris.h contents.
9345 (TARGET_IRIX): Removed.
9346 (DRIVER_SELF_SPECS): Removed mabi=32.
9347 (IDENT_ASM_OP): Removed undef.
9348 (STARTFILE_SPEC): Removed mabi=32.
9349 (ENDFILE_SPEC): Likewise.
9350 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
9351 (MACHINE_TYPE): Update for IRIX 6.5.
9352 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
9353 TARGET_IRIX by TARGET_IRIX6.
9354 (mips_file_start): Likewise.
9355 (mips_output_external): Remove IRIX 5/6 O32 support.
9356 (mips_output_function_prologue): Likewise.
9357 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
9359 (TARGET_CPU_CPP_BUILTINS): Likewise.
9360 (TARGET_IRIX): Removed.
9361 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
9362 (MULTILIB_DIRNAMES): Removed 32.
9363 (MULTILIB_OSDIRNAMES): Removed ../lib.
9364 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
9365 (Specific, mips-sgi-irix5): Document removal.
9366 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
9367 Remove references to older IRIX 6 releases and the O32 ABI.
9369 2010-05-06 Jakub Jelinek <jakub@redhat.com>
9372 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
9373 instead of DF_REF_REAL_REG.
9375 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
9378 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
9379 handling to still return true for x64 targets.
9381 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
9383 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
9385 2010-05-06 Jan Hubicka <jh@suse.cz>
9387 PR tree-optimization/43791
9388 * ipa-inline.c (update_caller_keys): Remove bogus
9389 disregard_inline_limits check.
9391 2010-05-06 Michael Matz <matz@suse.de>
9393 PR tree-optimization/43984
9394 * tree-ssa-pre.c (inserted_phi_names): Remove.
9395 (inserted_exprs): Change to bitmap.
9396 (create_expression_by_pieces): Set bits, don't append to vector.
9397 (insert_into_preds_of_block): Don't handle inserted_phi_names.
9398 (eliminate): Don't look at inserted_phi_names, remove deleted
9399 insns from inserted_exprs.
9400 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
9401 (init_pre, fini_pre): Allocate and free bitmaps.
9402 (execute_pre): Insert insns on edges before elimination.
9404 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
9406 * tree.c (initializer_zerop): Handle STRING_CST.
9408 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
9411 * doc/invoke.texi (Wimplicit): Document as C only.
9412 * opts.c (common_handle_option): Add argument kind.
9413 (handle_option): Rename as read_cmdline_option. Factor out code to...
9414 (handle_option): ... here. New.
9415 (handle_options): Rename as read_cmdline_options.
9416 (decode_options): Update call.
9417 (set_option): Use option index instead of option pointer. Classify
9418 diagnostics correctly.
9419 (enable_warning_as_error): Call handle_option.
9420 * opts.h (set_option): Update declaration.
9421 (handle_option): Declare.
9422 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
9423 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
9424 * c-opts.c (set_Wimplicit): Delete.
9425 (c_family_lang_mask): New static constant.
9426 (c_common_handle_option): Add argument kind. Use handle_option
9427 instead of set_Wimplicit.
9428 (c_common_post_options): warn_implicit and warn_implicit_int
9429 are disabled by default.
9430 * c-common.c (warn_implicit): Do not define here.
9431 * c-common.h (warn_implicit): Do not declare here.
9432 (c_common_handle_option): Update declaration.
9433 * lto-opts.c (lto_reissue_options): Update call to set_option.
9435 2010-05-06 Richard Guenther <rguenther@suse.de>
9437 PR tree-optimization/43571
9438 * domwalk.c (walk_dominator_tree): Walk the dominator
9439 sons in more optimal order.
9441 2010-05-06 Richard Guenther <rguenther@suse.de>
9443 PR tree-optimization/43934
9444 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
9445 (stmt_cost): Likewise.
9446 (extract_true_false_args_from_phi): New helper.
9447 (determine_max_movement): For PHI nodes verify we can hoist them
9448 and compute their cost.
9449 (determine_invariantness_stmt): Handle PHI nodes.
9450 (move_computations_stmt): Likewise. Hoist PHI nodes in
9451 if-converted form using COND_EXPRs.
9452 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
9453 (tree_ssa_lim): Likewise.
9454 * tree-flow.h (tree_ssa_lim): Adjust prototype.
9455 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
9457 2010-05-06 Richard Guenther <rguenther@suse.de>
9459 PR tree-optimization/43987
9460 * tree-ssa-structalias.c (could_have_pointers): For possibly
9461 address-taken variables force pointers to be recorded.
9462 (create_variable_info_for_1): Likewise.
9463 (push_fields_onto_fieldstack): Pass in wheter all fields
9465 (find_func_aliases): Query types instead of vars whether
9466 they contain pointers where appropriate.
9468 2010-05-06 Jan Hubicka <jh@suse.cz>
9470 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
9471 (record_reference, mark_address, mark_load, mark_store): Record
9473 (record_references_in_initializer): Update call of record_references.
9474 (rebuild_cgraph_edges): Remove all references before rebuiding.
9475 * cgraph.c (cgraph_create_node): Clear ref list.
9476 (cgraph_remove_node): Remove references.
9477 (dump_cgraph_node): Dump references.
9478 (cgraph_clone_node): Clone references.
9479 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
9480 (struct cgraph_node, varpool_node): Add ref_lst.
9481 * ipa-ref.c: New file.
9482 * ipa-ref.h: New file.
9483 * ipa-ref-inline.h: New file.
9484 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
9485 (referenced_from_other_partition_p): New function.
9486 (lto_output_varpool_node): Take set arugment; call
9487 referenced_from_other_partition.
9488 (lto_output_ref): New.
9489 (add_references): New.
9491 (output_cgraph): Compute boundary based on references; output refs.
9492 (output_varpool): Accept cgraph_node_set argument.
9495 (input_cgraph): Call input_refs.
9496 * lto-section-in.c (lto_section_name): Add refs.
9497 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
9498 (ipa-ref.o): New file.
9499 * varpool.c (varpool_node): Clear ipa ref list.
9500 (varpool_remove_node): Remove references.
9501 (dump_varpool_node): Dump references.
9502 (varpool_assemble_decl): Only compile finalized ones.
9503 (varpool_extra_name_alias): Initialize ref list.
9504 * lto-streamer.c (lto-get_section_name): Add .refs section.
9505 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
9506 (referenced_from_other_partition_p): Declared.
9508 2010-05-06 Ira Rosen <irar@il.ibm.com>
9510 PR tree-optimization/43901
9511 * tree-vect-stmts.c (vectorizable_call): Assert that vector
9512 type is not NULL if it's transformation phase, and return
9513 FALSE if it's analysis.
9514 (vectorizable_conversion, vectorizable_operation,
9515 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
9517 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
9519 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
9521 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
9523 * config/mips/mips-protos.h
9524 (mips_small_register_classes_for_mode_p): Delete prototype.
9526 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
9528 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
9529 * config/arm/arm.c (multiple_operation_profitable_p,
9530 compute_offset_order): New static functions.
9531 (load_multiple_sequence, store_multiple_sequence): Use them.
9532 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
9533 memory offsets, not register numbers.
9534 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
9536 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
9538 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
9539 (get_pending_sizes, put_pending_size, put_pending_sizes):
9540 Update the uses of pending_sizes.
9541 * c-decl.c (store_parm_decls): Likewise.
9542 * c-tree.h (struct c_arg_info): Likewise.
9543 * tree.h: Update the prototype for get_pending_sizes and
9546 2010-05-05 Jason Merrill <jason@redhat.com>
9549 * c-common.c (handle_aligned_attribute): Respect
9550 ATTR_FLAG_TYPE_IN_PLACE.
9553 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
9554 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9555 (TARGET_INITIALIZER): Use it.
9556 * c-common.c (attribute_takes_identifier_p): Call it.
9557 * c-common.h: Update prototype.
9558 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
9559 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9561 2010-05-05 Jakub Jelinek <jakub@redhat.com>
9564 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
9565 DW_ID_down_case for Fortran compilation units.
9567 2010-05-05 Jan Hubicka <jh@suse.cz>
9569 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
9572 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
9574 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
9575 a variable-sized RESULT_DECL.
9577 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
9579 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
9581 2010-05-05 Jason Merrill <jason@redhat.com>
9584 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
9586 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
9588 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
9589 Jakub Jelinek <jakub@redhat.com>
9592 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
9593 (dead_debug_init, dead_debug_finish): New functions.
9594 (dead_debug_add, dead_debug_insert_before): Likewise.
9595 (df_note_bb_compute): Initialize a dead_debug object, add dead
9596 debug uses to it, insert debug bind insns before death insns,
9597 reset debug insns that refer to pending uses at the end.
9598 * rtl.h (make_debug_expr_from_rtl): New prototype.
9599 * varasm.c (make_debug_expr_from_rtl): New function.
9601 2010-05-05 Jan Hubicka <jh@suse.cz>
9603 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
9604 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
9605 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
9606 lto_varpool_encoder_deref, lto_varpool_encoder_size,
9607 lto_varpool_encoder_encode_initializer_p,
9608 lto_set_varpool_encoder_encode_initializer): New functions.
9609 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
9610 call output_varpool.
9611 (input_varpool_node): Do not always set analyzed.
9612 (input_cgraph_1): Return vector of cgraph nodes.
9613 (input_varpool_1): Return vector of varpools.
9614 (input_cgraph): Free the vectors.
9615 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9616 output only initializers needed.
9617 (lto_output): Only call output_cgraph.
9618 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
9619 * lto-section-out.c (lto_new_out_decl_state): Initialize
9620 state->varpool_node_encoder.
9621 * lto-streamer.h (lto_varpool_encoder_d): New.
9622 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
9623 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
9624 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
9625 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
9626 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
9628 (output_varpool, input_varpool): Remove declarations.
9630 2010-05-05 Jan Hubicka <jh@suse.cz>
9632 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
9633 with body can prevail.
9635 2010-05-05 Jan Hubicka <jh@suse.cz>
9637 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
9640 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
9642 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
9644 * gengtype.h (erro_at_line): Constify pos argument.
9646 * gengtype.c: Include hashtab.h.
9647 (enum gc_used): Document GC_MAYBE_POINTED_TO.
9648 (error_at_line): Constify pos argument.
9649 (do_typedef): Initialize p->opt field.
9650 (get_file_gtfilename): Fix comment typo.
9651 (struct walk_type_data): Constify line field.
9652 (get_output_file_for_structure): New function.
9653 (write_local_func_for_structure): Constify orig_s argument.
9654 Use get_output_file_for_structure.
9655 (write_func_for_structure): Use get_output_file_for_structure.
9656 (INDENT): New define.
9657 (dump_pair, dump_type, dump_type_list, dump_typekind)
9658 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
9659 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
9661 (seen_types): New variable.
9662 (main): New variable do_dump. Process "-d" command line option.
9663 Call dump_everything if dump requested.
9665 2010-05-05 Jakub Jelinek <jakub@redhat.com>
9667 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
9668 in a temporary instead of invoking the macro multiple times.
9669 (track_expr_p): Likewise.
9671 2010-05-04 Neil Vachharajani <nvachhar@google.com>
9673 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
9675 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
9676 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
9677 conditions for printing notes.
9678 * common.opt (-Wcoverage-mismatch): Allow negative, default to
9679 true, update documentation.
9680 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
9682 2010-05-04 Jakub Jelinek <jakub@redhat.com>
9685 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
9688 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
9691 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
9692 (*sse_prologue_save_insn1): Likewise.
9693 (SSE prologue save splitter): Likewise.
9695 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
9697 * tree.c (free_lang_data_in_one_sizepos): New inline function.
9698 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
9699 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
9700 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
9701 all decls. Call it on DECL_FIELD_OFFSET of fields.
9702 (find_decls_types_r): Follow DECL_VALUE_EXPR.
9703 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
9705 2010-05-04 Martin Jambor <mjambor@suse.cz>
9707 * tree-sra.c (build_access_from_expr_1): The first parameter type
9708 changed to simple tree.
9709 (build_access_from_expr): Likewise, gsi parameter was eliminated.
9710 (scan_assign_result): Renamed to assignment_mod_result, enum elements
9712 (build_accesses_from_assign): Removed all parameters except for a
9713 simple gimple statement. Now returns a simple bool.
9714 (scan_function): All non-analysis parts moved to separate functions
9715 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
9716 parameters and updated both callers.
9717 (sra_modify_expr): Removed parameter data.
9718 (sra_modify_function_body): New function.
9719 (perform_intra_sra): Call sra_modify_function_body to modify the
9721 (replace_removed_params_ssa_names): Parameter data changed into
9723 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
9724 changed the parameter dont_convert to convert with the opposite
9726 (sra_ipa_modify_assign): Parameter data changed into adjustments
9727 vector, return value changed to bool.
9728 (ipa_sra_modify_function_body): New function.
9729 (sra_ipa_reset_debug_stmts): Updated a comment.
9730 (modify_function): Use ipa_sra_modify_function_body to modify function
9733 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
9736 * alias.c (true_dependence): Handle the same VALUE in x and mem.
9737 (canon_true_dependence): Likewise.
9738 (write_dependence_p): Likewise.
9740 2010-05-04 Jan Hubicka <jh@suse.cz>
9742 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
9743 * cgraphbuild.c: Include ipa-utils.h
9744 (record_reference_ctx): New struct.
9745 (record_reference): Simplify to work on initializers; not statements.
9746 (mark_address, mark_load, mark_store): New.
9747 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
9749 (record_references_in_initializer): Update use of record_reference.
9750 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
9753 2010-05-04 Jan Hubicka <jh@suse.cz>
9755 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
9756 node will be removed anyway.
9757 (lto_varpool_replace_node): Allow also unanalyzed nodes;
9758 relink aliases of node into prevailing node.
9759 * varpool.c (varpool_remove_node): Remove aliases properly;
9760 when removing node, remove all its aliases too; remove DECL_INITIAL
9761 of removed node; ggc_free the varpool node.
9763 2010-05-04 Richard Guenther <rguenther@suse.de>
9765 PR tree-optimization/43879
9766 * tree-ssa-structalias.c (alias_get_name): Use
9767 DECL_ASSEMBLER_NAME if available.
9768 (create_function_info_for): Return the varinfo node.
9769 (ipa_pta_execute): Associate same-body aliases and extra names
9770 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
9772 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
9774 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
9776 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
9779 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
9780 only if HONOR_REG_ALLOC_ORDER is not defined.
9782 2010-05-04 Richard Guenther <rguenther@suse.de>
9784 PR tree-optimization/43949
9785 * tree-vrp.c (extract_range_from_binary_expr): Only handle
9788 2010-04-26 Jason Merrill <jason@redhat.com>
9790 * c.opt (-fstrict-enums): New.
9791 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
9793 2010-05-03 David Ung <davidu@mips.com>
9794 James E. Wilson <wilson@codesourcery.com>
9796 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
9797 emit the trap instruction before the divide for TUNE_74K.
9799 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
9801 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
9802 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
9803 based on the above, for new target hook.
9805 * hooks.c (hook_bool_mode_true): New generic hook.
9806 * hooks.h (hook_bool_mode_true): Add prototype.
9808 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
9810 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
9811 target hook, set to hook_bool_mode_false.
9812 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
9813 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
9814 with targetm.small_register_classes_for_mode_p.
9815 (find_reusable_reload): Likewise.
9816 (combine_reloads): Likewise.
9817 * reload1.c (reload_as_needed): Likewise.
9818 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
9819 * ifcvt.c (noce_process_if_block, check_cond_move_block,
9820 dead_or_predicable): Likewise.
9821 * regmove.c (optimize_reg_copy_1): Likewise.
9822 * calls.c (prepare_call_address): Likewise.
9823 (precompute_register_parameters): Likewise.
9825 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
9827 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
9828 implementation of the hook that considers all register classes
9829 small except for SH64.
9830 (sh_override_options): Use the new hook.
9831 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
9834 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
9836 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
9837 implementation of the hook that considers all register classes
9839 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
9842 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
9844 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
9845 implementation of the hook that considers all register classes
9847 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
9850 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
9852 * config/m32c/m32c.h: Likewise.
9853 * config/pdp11/pdp11.h: Likewise.
9854 * config/avr/avr.h: Likewise.
9855 * config/xtensa/xtensa.h: Likewise.
9856 * config/m68hc11/m68hc11.h: Likewise.
9857 * config/mn10300/mn10300.h: Likewise.
9858 * config/mcore/mcore.h: Likewise.
9859 * config/h8300/h8300.h: Likewise.
9860 * config/bfin/bfin.h: Likewise.
9862 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
9863 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
9865 2010-05-03 Anatoly Sokolov <aesok@post.ru>
9867 * double-int.h (tree_to_double_int): Remove macro.
9868 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
9869 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
9870 (tree_to_double_int): New function.
9871 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
9873 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
9875 2010-05-03 Richard Guenther <rguenther@suse.de>
9877 PR tree-optimization/43971
9878 * tree-ssa-structalias.c (get_constraint_for_1): Fix
9879 constraints in the !flag_delete_null_pointer_checks case.
9881 2010-05-03 Jakub Jelinek <jakub@redhat.com>
9884 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
9885 result mode matches original rtl mode.
9887 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
9890 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
9892 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
9894 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
9895 when processing flag options.
9897 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
9899 * gcov-iov.c (main): Change format string placeholder
9900 from %#08x to 0x%08x.
9901 * genchecksum.c (dosum): Change format string placeholder
9902 from %#02x to 0x%02x.
9904 2010-05-02 Richard Guenther <rguenther@suse.de>
9906 PR tree-optimization/43879
9907 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
9909 2010-05-02 Bruno Haible <bruno@clisp.org>
9911 * doc/extend.texi (Function Attributes): Fix a typo.
9913 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
9916 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
9917 placeholder from 0x%x to %#x.
9918 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
9919 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
9920 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
9921 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
9922 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
9923 * config/i386/i386.c (ix86_target_string): Ditto.
9924 * config/i386/i386.c (output_pic_addr_const): Ditto.
9925 (print_operand): Ditto.
9927 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
9929 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
9930 placeholder from 0x%x to %#x.
9931 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
9932 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
9933 (ASM_OUTPUT_DEBUG_DATA): Ditto.
9934 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
9935 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
9936 * optc-gen.awk: Ditto.
9937 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
9938 (HOST_WIDE_INT_PRINT_HEX): Ditto.
9939 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
9940 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
9942 2010-05-01 Anatoly Sokolov <aesok@post.ru>
9944 * target.h (struct calls): Add function_value_regno_p field.
9945 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
9946 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
9947 * targhooks.c (default_function_value_regno_p): New function.
9948 * targhooks.h (default_function_value_regno_p): Declare function.
9949 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
9950 * builtins.c. (apply_result_size): (Ditto.).
9951 * combine.c. (likely_spilled_retval_p): (Ditto.).
9952 * mode-switching.c. Include 'target.h'.
9953 (create_pre_exit): Use function_value_regno_p hook.
9954 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
9955 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
9956 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
9958 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
9959 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
9960 (ix86_function_value_regno_p): Declare as static, change argument
9961 type to const unsigned int.
9962 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
9964 2010-05-01 Richard Guenther <rguenther@suse.de>
9966 PR tree-optimization/43949
9967 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
9969 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
9971 2010-05-01 Anatoly Sokolov <aesok@post.ru>
9973 * rtl.h (CONST_DOUBLE_P): Define.
9974 (rtx_to_double_int): Declare.
9975 * emit-rtl.c (rtx_to_double_int): New function.
9976 * dwarf2out.c (insert_double): New function.
9977 (loc_descriptor, add_const_value_attribute): Clean up, use
9978 rtx_to_double_int and insert_double functions.
9980 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
9982 * doc/extend.texi (Inline): Add missing return keyword to examples.
9983 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
9986 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
9988 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
9989 the variable part of the offset as well. Use highest_pow2_factor for
9990 all alignment checks.
9992 2010-04-30 Richard Guenther <rguenther@suse.de>
9994 PR tree-optimization/43879
9995 * tree-ssa-structalias.c (type_could_have_pointers): Functions
9998 2010-04-30 Jan Hubicka <jh@suse.cz>
10000 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
10002 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
10004 2010-04-30 Jan Hubicka <jh@suse.cz>
10006 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
10008 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
10009 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
10010 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
10011 cgraph_node_set_needs_ltrans_p): Remove.
10013 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
10015 * sdbout.c: Include vec.h, do not include varray.h.
10016 (deferred_global_decls, sdbout_global_decl,
10017 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
10018 * toplev.c: Do not include varray.h.
10019 (dump_memory_report): Do not dump VARRAY statistics.
10020 * gengtype.c (open_base_file): Ignore varray.h.
10021 * Makefile.in: Update for abovementioned changes.
10022 Remove all traces of varray.c and varray.h.
10023 * varray.c: Remove file.
10024 * varray.h: Remove file.
10026 2010-04-30 Jan Hubicka <jh@suse.cz>
10028 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
10031 2010-04-30 Jan Hubicka <jh@suse.cz>
10033 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
10036 2010-04-30 Richard Guenther <rguenther@suse.de>
10038 * tree-ssa-structalias.c (get_constraint_for_1): Generate
10039 constraints for CONSTRUCTOR.
10041 2010-04-30 Richard Guenther <rguenther@suse.de>
10044 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
10045 first after all lowering passes.
10047 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
10049 * toplev.c: Include varray.h for statistics dumping.
10050 * tree.h: Do not declare varray_head_tag.
10051 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
10052 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
10053 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
10054 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
10055 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
10056 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
10057 c-common.c, c-common.h, reg-stack.c, basic-block.h,
10058 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
10060 * Makefile.in: Update for abovementioned changes.
10062 2010-04-30 Jakub Jelinek <jakub@redhat.com>
10065 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
10067 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
10069 * config/picochip/picochip.c (picochip_legitimize_address): Define.
10070 Use this function to do machine-specific conversion.
10071 (picochip_legitimize_reload_address): Likewise.
10072 (picochip_legitimate_address_p): Check valid base register only if
10074 (picochip_check_conditional_copy): Check for modw only if opnd is
10076 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
10077 to call the function in c.
10078 * config/picochip/picochip-protos.h
10079 (picochip_legitimize_reload_address): Define.
10080 * config/picochip/picochip.md (supported_compare1): Define.
10082 2010-04-30 Jan Hubicka <jh@suse.cz>
10084 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
10085 (cgraph_global_info): Remove inlined.
10086 (LTO_cgraph_tag_names): Remove.
10087 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
10088 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
10089 simplify cgraph tags and document.
10090 (lto_output_node): Use only LTO_cgraph_unavail_node and
10091 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
10092 for_functions_valid, global info, process and output flags.
10093 (input_overwrite_node): Initialize estimated stack size and
10094 estimated growth. Do not read flags we no longer store.
10095 (input_node): Likewise do not read info no longer stored.
10096 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
10099 2010-04-30 Richard Guenther <rguenther@suse.de>
10101 PR tree-optimization/43879
10102 * tree-ssa-structalias.c (get_constraint_for_1): Properly
10103 handle non-zero initializers.
10105 2010-04-30 Richard Guenther <rguenther@suse.de>
10107 * builtins.c (fold_builtin_1): Delete free (0).
10109 2010-04-29 Jan Hubicka <jh@suse.cz>
10111 * gengtype.c (open_base_files): Add lto-streamer.h
10112 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
10113 (pass_ipa_cp): GGC collect.
10114 * toplev. (compile_file): Do not output symbols.
10115 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
10116 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
10117 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
10118 * lto-section-in.c: Include ggc.h
10119 (lto_new_in_decl_state): Alloc in GGC.
10120 (lto_delete_in_decl_state): Likewise.
10121 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
10124 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
10127 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
10128 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
10129 (HONOR_REG_ALLOC_ORDER): Describe new macro.
10130 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
10131 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
10132 account only if HONOR_REG_ALLOC_ORDER is not defined.
10133 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
10134 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
10136 2010-04-29 Jon Grant <04@jguk.org>
10138 * collect2.c (vflag): Change type from int to bool.
10140 (helpflag): New global bool.
10141 (main): Set vflag and debug with boolean, not integer truth values.
10142 Accept new "--help" option and output usage text if found.
10143 * collect2.h (vflag): Update prototype.
10146 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
10149 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
10151 2010-04-29 Richard Guenther <rguenther@suse.de>
10154 * plugin.h (invoke_plugin_callbacks): Annotate arguments
10155 with ATTRIBUTE_UNUSED.
10157 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
10160 * config/i386/i386.c (get_some_local_dynamic_name): Replace
10161 INSN_P with NONDEBUG_INSN_P.
10162 (distance_non_agu_define): Likewise.
10163 (distance_agu_use): Likewise.
10165 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
10167 From Dominique d'Humieres <dominiq@lps.ens.fr>
10169 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
10172 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
10174 * plugin.h (invoke_plugin_callbacks): New inline function.
10175 * plugin.c (flag_plugin_added): New global flag.
10176 (add_new_plugin): Initialize above flag.
10177 (invoke_plugin_callbacks): Rename to ...
10178 (invoke_plugin_callbacks_full): ... this.
10180 2010-04-28 Jan Hubicka <jh@suse.cz>
10182 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
10183 (lto_varpool_replace_node): New.
10184 (lto_symtab_resolve_symbols): Resolve varpool nodes.
10185 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
10186 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
10187 * cgraph.h (varpool_node_ptr): New type.
10188 (varpool_node_ptr): New vector.
10189 (varpool_node_set_def): New structure.
10190 (varpool_node_set): New type.
10191 (varpool_node_set): New vector.
10192 (varpool_node_set_element_def): New structure.
10193 (varpool_node_set_element, const_varpool_node_set_element): New types.
10194 (varpool_node_set_iterator): New type.
10195 (varpool_node): Add prev pointers, add used_from_other_partition,
10196 in_other_partition.
10197 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
10198 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
10199 varpool_get_node, varpool_remove_node): Declare.
10200 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
10201 varpool_node_set_size): New inlines.
10202 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
10203 * tree-pass.h (varpool_node_set_def): Forward declare.
10204 (ipa_opt_pass_d): Summary writting takes vnode sets too.
10205 (ipa_write_optimization_summaries): Update prototype.
10206 * ipa-cp.c (ipcp_write_summary): Update.
10207 * ipa-reference.c (ipa_reference_write_summary): Update.
10208 * lto-cgraph.c (lto_output_varpool_node): New static function.
10209 (output_varpool): New function.
10210 (input_varpool_node): New static function.
10211 (input_varpool_1): New function.
10212 (input_cgraph): Input varpool.
10213 * ipa-pure-const.c (pure_const_write_summary): Update.
10214 * lto-streamer-out.c (lto_output): Update, output varpool too.
10215 (write_global_stream): Kill WPA hack.
10216 (produce_asm_for_decls): Update.
10217 (output_alias_pair_p): Handle variables.
10218 (output_unreferenced_globals): Output only needed partition of varpool.
10219 * ipa-inline.c (inline_write_summary): Update.
10220 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
10222 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
10223 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
10224 varpool_node_set_new, varpool_node_set_add,
10225 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
10226 debug_varpool_node_set): New functions.
10227 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
10228 (execute_one_pass): Process new decls too.
10229 (ipa_write_summaries_2): Pass around vsets.
10230 (ipa_write_summaries_1): Likewise.
10231 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
10233 (ipa_write_optimization_summaries_1): Pass around vsets.
10234 (ipa_write_optimization_summaries): Likewise.
10235 * varpool.c (varpool_get_node): New.
10236 (varpool_node): Update doubly linked lists.
10237 (varpool_remove_node): New.
10238 (dump_varpool_node): More dumping.
10239 (varpool_enqueue_needed_node): Update doubly linked lists.
10240 (decide_is_variable_needed): Kill ltrans hack.
10241 (varpool_finalize_decl): Kill lto hack.
10242 (varpool_assemble_decl): Skip decls in other partitions.
10243 (varpool_assemble_pending_decls): Update doubly linkes lists.
10244 (varpool_empty_needed_queue): Likewise.
10245 (varpool_extra_name_alias): Likewise.
10246 * lto-streamer.c (lto_get_section_name): Add vars section.
10247 * lto-streamer.h (lto_section_type): Update.
10248 (output_varpool, input_varpool): Declare.
10250 2010-04-28 Mike Stump <mikestump@comcast.net>
10252 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
10254 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
10256 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
10257 record or union type with RECORD_OR_UNION_TYPE_P predicate.
10258 (lto_input_ts_type_tree_pointers): Likewise.
10259 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
10260 (lto_output_ts_type_tree_pointers): Likewise.
10262 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
10264 Uniquization of constants at the Tree level
10265 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
10266 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
10268 (tree_output_constant_def): Declare.
10269 * gimplify.c (gimplify_init_constructor): When using block copy, first
10270 uniquize the constant constructor on the RHS.
10271 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
10272 DECL_IN_CONSTANT_POOL flag.
10273 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
10274 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
10276 (assemble_variable): Deal with symbols belonging to the tree constant
10278 (get_constant_section): Add ALIGN parameter and simplify.
10279 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
10280 (assemble_constant_contents): Use the expression of the VAR_DECL.
10281 (output_constant_def_contents): Use the alignment of the VAR_DECL.
10282 (tree_output_constant_def): New global function.
10283 (mark_constant): Use the expression of the VAR_DECL.
10284 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
10286 (output_object_block): Likewise and assemble the expression.
10288 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
10290 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
10291 hash_tree, eq_tree): New tree hash table.
10292 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
10293 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
10294 lto_orig_address_remove): Reimplement.
10296 2010-04-28 Xinliang David Li <davidxl@google.com>
10299 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
10300 (compute_uninit_opnds_pos): New function.
10301 (is_non_loop_exit_postdominating): New function.
10302 (compute_control_dep_chain): New function.
10303 (find_pdom): New function.
10304 (convert_control_dep_chain_into_preds): New function.
10305 (find_predicates): New function.
10306 (find_control_equiv_block): New function.
10307 (collect_phi_def_edges): New function.
10308 (find_def_preds): New function.
10309 (find_dom): New function.
10310 (dump_predicates): New function.
10311 (get_cmp_code): New function.
10312 (is_value_included_in): New function.
10313 (find_matching_predicate_in_rest_chains): New function.
10314 (use_pred_not_overlap_with_undef_path_pred): New function.
10315 (is_use_properly_guarded): New function.
10316 (normalize_cond_1): New function.
10317 (is_and_or_or): New function.
10318 (normalize_cond): New function.
10319 (is_gcond_subset_of): New function.
10320 (is_subset_of_any): New function.
10321 (is_or_set_subset_of): New function.
10322 (is_and_set_subset_of): New function.
10323 (is_norm_cond_subset_of): New function.
10324 (is_pred_expr_subset_of): New function.
10325 (is_pred_chain_subset_of): New function.
10326 (is_included_in): New function.
10327 (is_superset_of): New function.
10328 (find_uninit_use): New function.
10329 (warn_uninitialized_phi): New function.
10330 (compute_possibly_undefined_names): New function.
10331 (ssa_undefined_value_p): New function.
10332 (execute_late_warn_uninitialized): New function.
10333 * tree-ssa.c (ssa_undefined_value_p): Removed.
10334 (warn_uninit): Changed to extern.
10335 (warn_uninitialized_phi): Removed.
10336 (warn_uninitialized_vars): Changed to extern.
10337 (execute_late_warn_uninitialized): Removed
10338 * tree-flow.h: Add new prototypes.
10339 * timevar.def: Add new time variable.
10340 * Makefile.in: Add new build file.
10342 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
10344 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
10347 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10350 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
10352 2010-04-28 Martin Jambor <mjambor@suse.cz>
10354 * cgraph.h (struct cgraph_node): New field indirect_calls.
10355 (struct cgraph_indirect_call_info): New type.
10356 (struct cgraph_edge): Removed field indirect_call. New fields
10357 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
10358 (cgraph_create_indirect_edge): Declare.
10359 (cgraph_make_edge_direct): Likewise.
10360 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
10361 * ipa-prop.h (struct ipa_param_call_note): Removed.
10362 (struct ipa_node_params): Removed field param_calls.
10363 (ipa_create_all_structures_for_iinln): Declare.
10364 * cgraph.c: Described indirect edges and uids in initial comment.
10365 (cgraph_add_edge_to_call_site_hash): New function.
10366 (cgraph_edge): Search also among the indirect edges, use
10367 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
10368 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
10369 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
10371 (initialize_inline_failed): Assign a reason to indirect edges.
10372 (cgraph_create_edge_1): New function.
10373 (cgraph_create_edge): Moved some functionality to
10374 cgraph_create_edge_1.
10375 (cgraph_create_indirect_edge): New function.
10376 (cgraph_edge_remove_callee): Add an assert checking for
10378 (cgraph_edge_remove_caller): Special-case indirect edges.
10379 (cgraph_remove_edge): Likewise.
10380 (cgraph_set_edge_callee): New function.
10381 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
10382 (cgraph_make_edge_direct): New function.
10383 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
10384 the declaration of the call statement matches.
10385 (cgraph_node_remove_callees): Special-case indirect edges.
10386 (cgraph_clone_edge): Likewise.
10387 (cgraph_clone_node): Clone also the indirect edges.
10388 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
10389 indirect_call, dump count of indirect_calls edges.
10390 * ipa-prop.c (iinlining_processed_edges): New variable.
10391 (ipa_note_param_call): Create indirect edges instead of
10392 creating notes. New parameter node.
10393 (ipa_analyze_call_uses): New parameter node, pass it on to
10394 ipa_note_param_call.
10395 (ipa_analyze_stmt_uses): Likewise.
10396 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
10397 (print_edge_addition_message): Work on edges rather than on notes.
10398 (update_call_notes_after_inlining): Likewise, renamed to
10399 update_indirect_edges_after_inlining.
10400 (ipa_create_all_structures_for_iinln): New function.
10401 (ipa_free_node_params_substructures): Do not free notes.
10402 (ipa_edge_duplication_hook): Propagate bits within
10403 iinlining_processed_edges bitmap.
10404 (ipa_node_duplication_hook): Do not duplicate notes.
10405 (free_all_ipa_structures_after_ipa_cp): Renamed to
10406 ipa_free_all_structures_after_ipa_cp.
10407 (free_all_ipa_structures_after_iinln): Renamed to
10408 ipa_free_all_structures_after_iinln.
10409 (ipa_write_param_call_note): Removed.
10410 (ipa_read_param_call_note): Removed.
10411 (ipa_write_indirect_edge_info): New function.
10412 (ipa_read_indirect_edge_info): Likewise.
10413 (ipa_write_node_info): Do not stream notes, do stream information
10415 (ipa_read_node_info): Likewise.
10416 (lto_ipa_fixup_call_notes): Removed.
10417 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
10418 * ipa-inline.c (pass_ipa_inline): Likewise.
10419 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
10420 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
10421 * tree-inline.c (copy_bb): Removed an unnecessary double check for
10423 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
10425 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
10426 (output_cgraph): Stream also indirect edges.
10427 (lto_output_edge): Added capability to stream indirect edges.
10428 (input_edge): Likewise.
10429 (input_cgraph_1): Likewise.
10430 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
10433 2010-04-28 Richard Guenther <rguenther@suse.de>
10435 PR tree-optimization/43879
10436 PR tree-optimization/43909
10437 * tree-ssa-structalias.c (struct variable_info): Add
10438 only_restrict_pointers flag.
10439 (new_var_info): Initialize it. Increment stats.total_vars here.
10440 (create_function_info_for): Do not increment stats.total_vars here.
10441 (get_function_part_constraint): Fix build with C++.
10442 (insert_into_field_list): Remove.
10443 (push_fields_onto_fieldstack): Properly merge fields.
10444 (create_variable_info_for): Split and simplify.
10445 (create_variable_info_for_1): New piece.
10446 (intra_create_variable_infos): Properly make restrict constraints
10449 2010-04-28 Richard Guenther <rguenther@suse.de>
10452 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
10454 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
10455 Jan Hubicka <hubicka@ucw.cz>
10457 * doc/invoke.texi (-Wsuggest-attribute=const,
10458 -Wsuggest-attribute=pure): Document.
10459 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
10460 (function_always_visible_to_compiler_p,
10461 suggest_attribute, warn_function_pure, warn_function_const):
10463 (check_call): Improve debug info.
10464 (analyze_function): Do not check availability.
10465 (add_new_function): Check availability.
10466 (propagate): Output warnings.
10467 (skip_function_for_local_pure_const): New function.
10468 (local_pure_const): Use it; output warnings.
10469 * common.opt (Wsuggest-attribute=const,
10470 Wsuggest-attribute=pure): New.
10472 2010-04-27 Jakub Jelinek <jakub@redhat.com>
10474 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
10475 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
10476 or DW_CFA_def_cfa_offset{,_sf}.
10478 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
10480 * tree.h: Fix truncated long macros.
10482 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
10484 * collect2.c (TARGET_64BIT): Redefine to target's default.
10485 * tlink.c: Likewise.
10486 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
10487 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
10488 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
10489 for underscoring __USER_LABEL_PREFIX__.
10490 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
10491 (SUB_LINK_ENTRY32): New.
10492 (SUB_LINK_ENTRY64): New.
10493 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
10494 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
10495 (SUB_LINK_ENTRY64): New.
10496 (SUB_LINK_ENTRY): New.
10497 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
10498 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
10499 x64 target is choosen.
10500 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
10501 * configure: Regenerated.
10502 * configure.ac (leading-mingw64-underscores): Option added.
10504 2010-04-27 Jan Hubicka <jh@suse.cz>
10506 * doc/invoke.texi (-fipa-profile): Document.
10507 * opts.c (decode_options): Enable ipa-profile at -O1.
10508 * timevar.def (TV_IPA_PROFILE): Define.
10509 * common.opt (fipa-profile): Add.
10510 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
10512 (cgraph_propagate_frequency): Handle only local ones.
10513 * tree-pass.h (pass_ipa_profile): Declare.
10514 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
10515 (pass_ipa_profile): Use TV_IPA_PROFILE.
10516 * ipa.c (ipa_profile): New function.
10517 (gate_ipa_profile): Likewise.
10518 (pass_ipa_profile): New global variable.
10519 * passes.c (pass_ipa_profile): New.
10521 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
10523 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
10525 2010-04-27 Martin Jambor <mjambor@suse.cz>
10527 PR middle-end/43812
10528 * ipa.c (dissolve_same_comdat_group_list): New function.
10529 (function_and_variable_visibility): Call
10530 dissolve_same_comdat_group_list when comdat group contains external or
10532 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
10533 lists are circular and that they contain only DECL_ONE_ONLY nodes.
10535 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
10537 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
10538 (const_hash_1) <VECTOR_CST>: New case.
10539 (compare_constant) <VECTOR_CST>: Likewise.
10540 <ADDR_EXPR>: Deal with LABEL_REFs.
10541 (copy_constant) <VECTOR_CST>: New case.
10543 2010-04-27 Jan Hubicka <jh@suse.cz>
10545 * cgraph.c (cgraph_propagate_frequency): New function.
10546 * cgraph.h (cgraph_propagate_frequency): Declare.
10547 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
10548 cgraph_propagate_frequency.
10550 2010-04-27 Jakub Jelinek <jakub@redhat.com>
10552 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
10554 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
10557 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
10558 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
10559 here to determine which regs to push and how much stack to reserve.
10561 2010-04-27 Jie Zhang <jie@codesourcery.com>
10563 * doc/gimple.texi (gimple_statement_with_ops): Remove
10564 addresses_taken field.
10565 (gimple_statement_with_memory_ops): Likewise.
10567 2010-04-27 Jan Hubicka <jh@suse.cz>
10569 * tree-inline.c (eni_inlining_weights): Remove.
10570 (estimate_num_insns): Special case more builtins.
10572 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
10575 * c-typeck.c (build_binary_op): Move forward check for comparison
10576 pointer with null pointer constant and adjust the diagnostic message.
10578 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
10581 * configure.ac (gcc_cv_as_section_has_align): Set if installed
10582 binutils supports extended .section directive needed by LTO, or
10583 warn if older binutils found.
10584 (LTO_BINARY_READER): New AC_SUBST'd variable.
10585 (LTO_USE_LIBELF): Likewise.
10586 * gcc/config.gcc (lto_binary_reader): New target-specific configure
10588 * gcc/Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
10589 (LTO_USE_LIBELF): Likewise.
10590 * configure: Regenerate.
10592 * collect2.c (is_elf): Rename from this ...
10593 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
10594 object files in addition to ELF-formatted ones.
10595 (scan_prog_file): Caller updated. Also allow for LTO info marker
10596 symbol to be prefixed or not by an extra underscore.
10598 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
10599 * config/i386/winnt.c: Also #include lto-streamer.h
10600 (i386_pe_asm_named_section): Specify 1-byte section alignment for
10601 LTO named sections.
10602 (i386_pe_asm_output_aligned_decl_common): Add comment.
10603 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
10605 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
10608 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
10609 Add missing earlyclobber for second alternative.
10611 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
10613 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
10614 bits for artificial defs at the top of the block.
10615 * fwprop.c (single_def_use_enter_block): Don't call it.
10617 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
10620 * gcc/configure.ac: Use "$gcc_cv_nm -g" on darwin
10621 instead of "$gcc_cv_objdump -T".
10622 Use "-undefined dynamic_lookup" on darwin.
10623 * gcc/configure: Regenerate.
10625 2010-04-26 Jakub Jelinek <jakub@redhat.com>
10628 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
10630 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
10632 * c-parser.c (struct c_token): Move location field up.
10633 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
10634 (struct c_declspecs): Convert typespec_word, storage_class, and
10635 default_int_p into bitfields.
10636 (struct c_declarator): Move loc field up.
10638 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
10640 * cfgloop.h (struct loop): Move can_be_parallel field up.
10641 * ipa-prop.h (struct ip_node_params): Move bitfields up.
10642 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
10644 (struct iv_cand): Convert pos field into a bitfield.
10645 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
10647 (struct _stmt_vec_info): Shuffle fields for better packing.
10649 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
10651 * varasm.c (IN_NAMED_SECTION): Remove guard.
10652 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
10653 (IN_NAMED_SECTION_P): ...this.
10654 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
10655 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
10657 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
10659 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
10660 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
10661 of shadowing it. Fix comments.
10663 2010-04-26 Jan Hubicka <jh@suse.cz>
10665 * cgraph.c (cgraph_create_node): Set node frequency to normal.
10666 (cgraph_clone_node): Copy function frequency.
10667 * cgraph.h (node_frequency): New enum
10668 (struct cgraph_node): Add.
10669 * final.c (rest_of_clean_state): Update.
10670 * lto-cgraph.c (lto_output_node): Output node frequency.
10671 (input_overwrite_node): Input node frequency.
10672 * tre-ssa-loop-ivopts (computation_cost): Update.
10673 * lto-streamer-out.c (output_function): Do not output function
10675 * predict.c (maybe_hot_frequency_p): Update and handle functions
10677 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
10679 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
10680 (compute_function_frequency): Set noreturn functions to be executed
10682 (choose_function_section): Update.
10683 * lto-streamer-in.c (input_function): Do not input function frequency.
10684 * function.c (allocate_struct_function): Do not initialize function
10686 * function.h (function_frequency): Remove.
10687 (struct function): Remove function frequency.
10688 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
10689 (try_update): Update.
10690 * tree-inline.c (initialize_cfun): Do not update function frequency.
10691 * passes.c (pass_init_dump_file): Update.
10692 * i386.c (ix86_compute_frame_layout): Update.
10693 (ix86_pad_returns): Update.
10695 2010-04-26 Jie Zhang <jie@codesourcery.com>
10697 PR tree-optimization/43833
10698 * tree-vrp.c (range_int_cst_p): New.
10699 (range_int_cst_singleton_p): New.
10700 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
10701 when both operands are constants. Use range_int_cst_p in
10704 2010-04-26 Jan Hubicka <jh@suse.cz>
10706 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
10708 2010-04-26 Richard Guenther <rguenther@suse.de>
10711 * gimple.c (gimple_decl_printable_name): Deal gracefully
10712 with a NULL DECL_NAME.
10714 2010-04-26 Richard Guenther <rguenther@suse.de>
10717 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
10718 if emitting debug information and it is either a function
10719 or a namespace decl.
10721 2010-04-26 Ira Rosen <irar@il.ibm.com>
10723 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
10724 determine if the statement is vectorizable, and a macro to access it.
10725 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
10726 Skip statements that can't be vectorized. If the analysis fails,
10727 mark the statement as unvectorizable if vectorizing basic block.
10728 (vect_compute_data_refs_alignment): Likewise.
10729 (vect_verify_datarefs_alignment): Skip statements marked as
10730 unvectorizable. Add print.
10731 (vect_analyze_group_access): Skip statements that can't be
10732 vectorized. If the analysis fails, mark the statement as
10733 unvectorizable if vectorizing basic block.
10734 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
10735 * tree-vect-stmts.c (vectorizable_store): Fix the number of
10736 generated stmts for SLP.
10737 (new_stmt_vec_info): Initialize the new field.
10738 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
10739 statements marked as unvectorizable.
10741 2010-04-25 Joseph Myers <joseph@codesourcery.com>
10743 * c-common.c (flag_isoc1x): New.
10744 (flag_isoc99): Update comment.
10745 * c-common.h (flag_isoc1x): New.
10746 (flag_isoc99): Update comment.
10747 * c-cppbuiltin.c (builtin_define_float_constants): Also define
10748 __<type>_DECIMAL_DIG__.
10749 * c-opts.c (set_std_c1x): New.
10750 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
10751 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
10752 * c.opt (-std=c1x, -std=gnu1x): New options.
10753 * doc/cpp.texi: Mention -std=c1x.
10754 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
10755 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
10756 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
10757 * doc/standards.texi: Mention C1X.
10758 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
10759 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
10760 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
10763 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
10765 * config/i386/gmon-sol2.c (_mcleanup): Change format string
10766 placeholder from 0x%x to %#x.
10767 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
10768 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
10769 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
10770 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
10771 * config/i386/i386.c (ix86_target_string): Ditto.
10772 (output_pic_addr_const): Ditto.
10773 (print_operand): Ditto.
10775 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
10777 * combine.c (find_split_point): Add third argument. Use it
10778 to find nested multiply-accumulate instructions. Adjust calls.
10779 (try_combine): Adjust call to find_split_point.
10781 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
10783 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
10785 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
10787 PR tree-optimization/41442
10788 * fold-const.c (merge_truthop_with_opposite_arm): New function.
10789 (fold_binary_loc): Call it.
10791 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
10793 * toplev.c (general_init): Set default for fdiagnostics-show-option.
10794 * opts.c (common_handle_option): Allow disabling it.
10795 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
10797 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
10799 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
10800 between modes if both types are integral.
10802 2010-04-23 Richard Guenther <rguenther@suse.de>
10804 PR tree-optimization/43572
10805 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
10807 2010-04-23 Richard Guenther <rguenther@suse.de>
10810 * tree-inline.c (tree_can_inline_p): Also check compatibility
10813 2010-04-23 Martin Jambor <mjambor@suse.cz>
10815 PR tree-optimization/43846
10816 * tree-sra.c (struct access): New flag grp_assignment_read.
10817 (build_accesses_from_assign): Set grp_assignment_read.
10818 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
10819 (enum mark_read_status): New type.
10820 (analyze_access_subtree): Propagate grp_assignment_read, create
10821 accesses also if both direct_read and root->grp_assignment_read.
10823 2010-04-23 Martin Jambor <mjambor@suse.cz>
10825 PR middle-end/43835
10826 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
10827 function does not have type attributes.
10829 2010-04-23 Richard Guenther <rguenther@suse.de>
10832 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
10835 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10837 * sese.h (create_if_region_on_edge): Remove.
10839 * sese.c (create_if_region_on_edge): Make static.
10841 * tree-inline.c: Do not include ggc.h.
10843 * expr.c: Do not include ggc.h.
10845 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
10848 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
10851 * config/sh/sh.c (find_barrier): Don't emit a constant pool
10852 in the middle of insns for casesi_worker_2.
10854 2010-04-22 David Edelsohn <edelsohn@gnu.org>
10856 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
10858 2010-04-22 Ira Rosen <irar@il.ibm.com>
10860 PR tree-optimization/43842
10861 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
10862 loop unrolling in update of exit phis. Fix comment.
10863 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
10864 least two reduction statements in the loop before starting SLP
10867 2010-04-22 Nick Clifton <nickc@redhat.com>
10869 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
10871 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
10873 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
10874 to simplify a + ~a.
10876 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10878 * tree-parloops.c (loop_parallel_p): New argument
10879 parloop_obstack. Pass it down.
10880 (parallelize_loops): New variable parloop_obstack. Initialize it,
10881 pass it down, free it.
10883 * tree-loop-linear.c (linear_transform_loops): Pass down
10886 * tree-data-ref.h (lambda_compute_access_matrices): New argument
10887 of type struct obstack *.
10889 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
10890 scratch_obstack. Initialize it, pass down, free it.
10892 * lambda.h (lambda_loop_new): Remove.
10893 (lambda_matrix_new, lambda_matrix_inverse)
10894 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
10895 argument of type struct obstack *.
10897 * lambda-trans.c (lambda_trans_matrix_new): New argument
10898 lambda_obstack. Pass it down, use obstack allocation for ret.
10899 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
10902 * lambda-mat.c (lambda_matrix_get_column)
10903 (lambda_matrix_project_to_null): Remove.
10904 (lambda_matrix_new): New argument lambda_obstack. Use obstack
10905 allocation for mat.
10906 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
10909 * lambda-code.c (lambda_loop_new): New function.
10910 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
10911 (lambda_compute_auxillary_space, lambda_compute_target_space)
10912 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
10913 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
10914 (build_access_matrix): New argument lambda_obstack. Use obstack
10916 (lambda_compute_step_signs, lambda_compute_access_matrices): New
10917 argument lambda_obstack. Pass it down.
10919 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
10921 * optabs.h (expand_widening_mult): Declare.
10923 2010-04-22 Richard Guenther <rguenther@suse.de>
10925 PR tree-optimization/43845
10926 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
10927 lookup the CALL_EXPR function and arguments.
10929 2010-04-22 Nick Clifton <nickc@redhat.com>
10931 * config/stormy16/stormy16.c
10932 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
10933 * config/stormy16/stormy16.h: Tidy up formatting.
10934 (DONT_USE_BUILTIN_SETJMP): Remove definition.
10935 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
10936 (ineqbranchsi): Delete pattern.
10937 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
10938 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
10939 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
10940 stormy16-lib2-ucmpsi2.c.
10942 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
10944 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
10945 df_simulate_find_noclobber_defs as appropriate. Keep track of an
10946 extra set merge_set_noclobber, and use it to relax the final test
10948 * df.h (df_simulate_find_noclobber_defs): Declare.
10949 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
10951 (df_simulate_find_noclobber_defs): New function.
10953 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
10955 * config/i386/i386.md: Use {} around multi-line preparation statements.
10957 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
10959 * c-tree.h (push_init_level, pop_init_level, set_init_index)
10960 (process_init_element): New argument of type struct obstack *.
10962 * c-typeck.c (push_init_level, pop_init_level, set_designator)
10963 (set_init_index, set_init_label, set_nonincremental_init)
10964 (set_nonincremental_init_from_string, find_init_member)
10965 (output_init_element, output_pending_init_elements)
10966 (process_init_element): New argument braced_init_obstack. Pass it
10968 (push_range_stack, add_pending_init): New argument
10969 braced_init_obstack. Use obstack allocation.
10971 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
10972 braced_init_obstack. Pass it down.
10973 (c_parser_braced_init): New variables ret, braced_init_obstack.
10974 Initialize obstack, pass it down and finally free it.
10976 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
10978 PR middle-end/29274
10979 * tree-pass.h (pass_optimize_widening_mul): Declare.
10980 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
10981 gate_optimize_widening_mul): New static functions.
10982 (pass_optimize_widening_mul): New.
10983 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
10984 <case MULT_EXPR>: Remove support for widening multiplies.
10985 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
10986 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
10987 simplify_gen_unary rather than directly building extensions.
10988 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
10990 * expmed.c (expand_widening_mult): New function.
10991 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
10993 2010-04-21 Jan Hubicka <jh@suse.cz>
10995 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
10996 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
10997 * lto-wpa-fixup.c: Remove.
10998 * Makefile.in (lto-wpa-fixup.o): Remove.
10999 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
11000 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
11001 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
11003 2010-04-21 Jan Hubicka <jh@suse.cz>
11005 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
11006 add write_optimization_summary, read_optimization_summary.
11007 (ipa_write_summaries_of_cgraph_node_set): Remove.
11008 (ipa_write_optimization_summaries): Declare.
11009 (ipa_read_optimization_summaries): Declare.
11010 * ipa-cp.c (pass_ipa_cp): Update.
11011 * ipa-reference.c (pass_ipa_reference): Update.
11012 * ipa-pure-const.c (pass_ipa_pure_const): Update.
11013 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
11015 * ipa-inline.c (pass_ipa_inline): Update.
11016 * ipa.c (pass_ipa_whole_program): Update.
11017 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
11018 * passes.c (ipa_write_summaries_1): Do not test wpa.
11019 (ipa_write_optimization_summaries_1): New.
11020 (ipa_write_optimization_summaries): New.
11021 (ipa_read_summaries): Do not test ltrans.
11022 (ipa_read_optimization_summaries_1): New.
11023 (ipa_read_optimization_summaries): New.
11025 2010-04-21 Jan Hubicka <jh@suse.cz>
11027 * lto-cgraph.c (lto_output_node): Do not output comdat groups
11028 for boundary nodes.
11029 (output_cgraph): Do not arrange comdat groups for boundary nodes.
11031 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11034 * dwarf2out.c (add_name_and_src_coords_attributes): Add
11035 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
11037 2010-04-21 Jan Hubicka <jh@suse.cz>
11039 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
11041 2010-04-21 Jan Hubicka <jh@suse.cz>
11043 * varpool.c (decide_is_variable_needed): Variable is always needed
11046 2010-04-21 Jan Hubicka <jh@suse.cz>
11048 * opts.c (decode_options): Enable pure-const pass for whopr.
11050 2010-04-21 Jan Hubicka <jh@suse.cz>
11052 * cgraph.c (dump_cgraph_node): Dump also assembler name.
11053 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
11055 (cgraph_decide_inlining): Do not expect callee to be removed in all
11058 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
11060 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
11062 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
11064 * config/i386/i386.md (x86_shrd): Add athlon_decode and
11065 amdfam10_decode attributes.
11067 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11069 PR middle-end/43570
11070 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
11071 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
11072 (lower_copyprivate_clauses): Use private var in outer
11073 context instead of original var. Make sure the types
11074 are correct for VLAs.
11076 2010-04-21 Richard Guenther <rguenther@suse.de>
11078 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
11079 to non-pointer objects.
11081 2010-04-21 Jakub Jelinek <jakub@redhat.com>
11083 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
11084 last chain entry if it starts with the still current label.
11085 (add_location_or_const_value_attribute): Check that
11086 loc_list->first->next is NULL instead of comparing ->first with ->last.
11087 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
11088 to add_var_loc_to_decl.
11090 * dwarf2out.c (output_call_frame_info): For dw_cie_version
11091 >= 4 add also address size and segment size fields into CIE header.
11093 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
11094 long as address size is the same as sizeof (void *) and
11096 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
11097 address size or segment size is unexpected, return DW_EH_PE_omit.
11098 (classify_object_over_fdes): If get_cie_encoding returned
11099 DW_EH_PE_omit, return -1.
11100 (init_object): If classify_object_over_fdes returned -1,
11101 pretend there were no FDEs at all.
11103 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
11105 * config/i386/i386.md (bswap<mode>2): Macroize expander from
11106 bswap{si,di}2 using SWI48 mode iterator.
11107 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
11108 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
11109 set modrm attribute of bswap insn to 0 and remove length attribute.
11110 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
11111 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
11112 set mode attribute to <MODE> and remove length attribute.
11114 2010-04-20 James E. Wilson <wilson@codesourcery.com>
11116 PR rtl-optimization/43520
11117 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
11118 zero available registers.
11120 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11122 * builtins.c (fold_builtin_cproj): Fold more cases.
11124 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11126 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
11127 (fold_builtin_1): Fold builtin cproj.
11128 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
11129 Use ATTR_CONST_NOTHROW_LIST.
11131 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
11133 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
11134 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
11135 ffsi2_no_cmove for !TARGET_CMOVE.
11136 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
11137 (ffssi2): Remove expander.
11138 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
11140 (ctz<mode>2): Ditto from ctz{si,di}2.
11141 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
11143 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
11146 2010-04-20 Jakub Jelinek <jakub@redhat.com>
11148 * dwarf2out.c (AT_linkage_name): Define.
11149 (clone_as_declaration): Handle DW_AT_linkage_name.
11150 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
11151 of DW_AT_MIPS_linkage_name.
11152 (move_linkage_attr): Likewise.
11153 (dwarf2out_finish): Likewise.
11155 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
11157 PR middle-end/41952
11158 * fold-const.c (fold_comparison): New folding rule.
11160 2010-04-20 Anatoly Sokolov <aesok@post.ru>
11162 * double-int.h (double_int_setbit): Declare.
11163 * double-int.c (double_int_setbit): New function.
11164 * rtl.h (immed_double_int_const): Declare.
11165 * emit-rtl.c (immed_double_int_const): New function.
11166 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
11167 and immed_double_int_const functions.
11168 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
11169 expand_copysign_bit): (Ditto.).
11170 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
11171 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
11172 * dojump.c (prefer_and_bit_test): (Ditto.).
11173 * expr.c (convert_modes, reduce_to_bit_field_precision,
11174 const_vector_from_tree): (Ditto.).
11175 * expmed.c (mask_rtx, lshift_value): (Ditto.).
11177 2010-04-20 Jan Hubicka <jh@suse.cz>
11179 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
11180 (dump_cgraph_node): Dump new flags.
11181 * cgraph.h (struct cgraph_node): Add flags
11182 reachable_from_other_partition and in_other_partition.
11183 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
11184 other partition can not be removed.
11185 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
11186 the other partition must be output; silence sanity checking on
11187 leaking functions bodies from other paritition.
11188 * lto-cgraph.c (reachable_from_other_partition_p): New function.
11189 (lto_output_node): Output new flags; do not sanity check that inline
11190 clones are output; drop lto_forced_extern_inline_p code; do not mock
11191 visibility flags at partition boundaries.
11192 (add_node_to): New function.
11193 (output_cgraph): Use it to sort functions so masters appear before
11195 (input_overwrite_node): Input new flags.
11196 * passes.c (ipa_write_summaries): Do not call
11197 lto_new_extern_inline_states.
11198 * lto-section-out.c (forced_extern_inline,
11199 lto_new_extern_inline_states lto_delete_extern_inline_states,
11200 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
11201 * lto-streamer.h (lto_new_extern_inline_states,
11202 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
11203 lto_forced_extern_inline_p): Kill.
11205 2010-04-20 Richard Guenther <rguenther@suse.de>
11207 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
11208 from vars that can have pointers.
11209 (process_constraint): Dump useless constraints.
11211 2010-04-20 Richard Guenther <rguenther@suse.de>
11213 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
11214 (dump_sa_points_to_info): Remove asserts.
11215 (init_base_vars): nothing_id isn't an escape point nor does it
11218 2010-04-20 Jakub Jelinek <jakub@redhat.com>
11220 * tree.h (TYPE_REF_IS_RVALUE): Define.
11221 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
11222 should_move_die_to_comdat, prune_unused_types_walk): Handle
11223 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
11224 (modified_type_die, gen_reference_type_die): Emit
11225 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
11226 if TYPE_REF_IS_RVALUE and -gdwarf-4.
11228 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11231 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
11232 calls for -fpic -m31 if they have been sibcall optimized.
11234 2010-04-19 James E. Wilson <wilson@codesourcery.com>
11236 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
11237 ar.lc fixed and call-used.
11239 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
11241 2010-04-19 Jan Hubicka <jh@suse.cz>
11243 * opts.c (decode_options): Disable whpr incompatible passes.
11244 * lto/lto.c (lto_1_to_1_map): Skip clones.
11245 (read_cgraph_and_symbols): Do not mark everything as needed.
11246 (do_whole_program_analysis): Do map only after optimizing;
11247 set proper cgraph_state; use passmanager.
11249 2010-04-19 DJ Delorie <dj@redhat.com>
11251 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
11252 POINTER_PLUS_EXPR and fix them.
11254 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
11256 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
11257 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
11258 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
11259 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
11260 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
11261 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
11262 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
11263 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
11264 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
11265 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
11266 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
11268 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
11270 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
11271 (check_cond_move_block): Likewise.
11272 (cond_move_process_if_block): Likewise.
11273 (noce_find_if_block): Improve formatting.
11274 (find_if_header): Pass 0 to memset and tweak conditions.
11275 (cond_exec_find_if_block): Fix long lines and tweak conditions.
11277 2010-04-19 Jakub Jelinek <jakub@redhat.com>
11279 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
11282 PR middle-end/43337
11283 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
11284 with non-local decl doesn't need chain.
11286 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
11288 * ira-color.c (allocno_reload_assign): Avoid accumulating
11289 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
11291 2010-04-19 Martin Jambor <mjambor@suse.cz>
11293 * gimple.h (create_tmp_reg): Declare.
11294 * gimplify.c (create_tmp_reg): New function.
11295 (gimplify_return_expr): Use create_tmp_reg.
11296 (gimplify_omp_atomic): Likewise.
11297 (gimple_regimplify_operands): Likewise.
11298 * tree-dfa.c (make_rename_temp): Likewise.
11299 * tree-predcom.c (predcom_tmp_var): Likewise.
11300 (reassociate_to_the_same_stmt): Likewise.
11301 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
11302 (get_replaced_param_substitute): Likewise.
11303 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
11304 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
11305 * tree-ssa-pre.c (get_representative_for): Likewise.
11306 (create_expression_by_pieces): Likewise.
11307 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
11308 (create_tailcall_accumulator): Likewise.
11310 2010-04-19 Martin Jambor <mjambor@suse.cz>
11312 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
11314 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
11316 2010-04-19 Richard Guenther <rguenther@suse.de>
11318 PR tree-optimization/43796
11319 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
11320 from SCEV in the lattice.
11321 (vrp_visit_phi_node): Dump change.
11323 2010-04-19 Richard Guenther <rguenther@suse.de>
11325 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
11326 * configure: Re-generated.
11328 2010-04-19 Richard Guenther <rguenther@suse.de>
11330 PR tree-optimization/43783
11331 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
11332 constant ARRAY_REF operands two and three if possible.
11334 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
11337 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
11339 2010-04-19 Jie Zhang <jie@codesourcery.com>
11342 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
11344 2010-04-19 Ira Rosen <irar@il.ibm.com>
11346 PR tree-optimization/37027
11347 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
11348 and macro to access it.
11349 (vectorizable_reduction): Add argument.
11350 (vect_get_slp_defs): Likewise.
11351 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
11352 statements for possible use in SLP.
11353 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
11354 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
11355 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
11357 (vectorizable_reduction): Likewise.
11358 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
11360 (vectorizable_type_demotion, vectorizable_type_promotion,
11361 vectorizable_store): Likewise.
11362 (vect_analyze_stmt): Update call to vectorizable_reduction.
11363 (vect_transform_stmt): Likewise.
11364 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
11365 (vect_build_slp_tree): Fix indentation. Check that there are no loads
11366 from different interleaving chains in same node.
11367 (vect_slp_rearrange_stmts): New function.
11368 (vect_supported_load_permutation_p): Allow load permutations for
11369 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
11370 inside SLP nodes if necessary.
11371 (vect_analyze_slp_instance): Handle reductions.
11372 (vect_analyze_slp): Try to build SLP instances originating from groups
11374 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
11375 (vect_get_constant_vectors): Create initial vectors for reductions
11376 according to reduction code. Add new argument.
11377 (vect_get_slp_defs): Add new argument, pass it to
11378 vect_get_constant_vectors.
11379 (vect_schedule_slp_instance): Remove SLP tree root statements.
11381 2010-04-19 Jakub Jelinek <jakub@redhat.com>
11383 * tree.h (ENUM_IS_SCOPED): Define.
11384 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
11385 for ENUM_IS_SCOPED enums.
11387 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
11389 * fold-const.c (fold_comparison): Use ssizetype.
11390 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
11391 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
11392 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
11393 * tree-object-size.c (compute_object_sizes): Use size_type_node.
11395 * tree.h (initialize_sizetypes): Remove parameter.
11396 (build_common_tree_nodes): Remove second parameter.
11397 * stor-layout.c (initialize_sizetypes): Remove parameter.
11398 Always create an unsigned type.
11399 (set_sizetype): Assert that the passed type is unsigned and simplify.
11400 * tree.c (build_common_tree_nodes): Remove second parameter.
11401 Adjust call to initialize_sizetypes.
11402 * c-decl.c (c_init_decl_processing): Remove second argument in call to
11403 build_common_tree_nodes.
11405 2010-04-18 Matthias Klose <doko@ubuntu.com>
11407 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
11409 2010-04-18 Ira Rosen <irar@il.ibm.com>
11411 PR tree-optimization/43771
11412 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
11413 load permutation doesn't have gaps.
11415 2010-04-18 Jan Hubicka <jh@suse.cz>
11417 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
11418 (sse_prologue_save_insn expander): Use new pattern.
11419 (sse_prologue_save_insn1): New pattern and splitter.
11420 (sse_prologue_save_insn): Update to deal also with 64bit aligned
11422 * i386.c (setup_incoming_varargs_64): Do not compute jump
11424 (ix86_gimplify_va_arg): Update alignment needed.
11425 (ix86_local_alignment): Do not align all local arrays to 128bit.
11427 2010-04-17 Jan Hubicka <jh@suse.cz>
11429 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
11431 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
11433 * arm.md (negdi2): Remove redundant code to force values into a
11436 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
11438 * arm/bpabi.S: Add EABI alignment attributes to objects.
11439 * arm/bpabi-v6m.S: Likewise.
11440 * arm/crti.asm: Likewise.
11441 * arm/crtn.asm: Likewise.
11442 * arm/lib1funcs.asm: Likewise.
11443 * arm/libunwind.S: Likewise.
11445 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
11447 * arm-protos.h (tune_params): New structure.
11448 * arm.c (current_tune): New variable.
11449 (arm_constant_limit): Delete.
11450 (struct processors): Add pointer to the tune parameters.
11451 (arm_slowmul_tune): New tuning option.
11452 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
11453 (all_cores): Adjust to pick up the tuning model.
11454 (arm_constant_limit): New function.
11455 (arm_override_options): Select the appropriate tuning model. Delete
11456 initialization of arm_const_limit.
11457 (arm_split_constant): Use the new constant-limit model.
11458 (arm_rtx_costs): Pick up the current tuning model.
11459 * arm.md (is_strongarm, is_xscale): Delete.
11460 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
11461 for Xscale variant architectures.
11462 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
11464 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11466 * config/arm/arm.c (arm_gen_constant): Remove unused variable
11468 (arm_rtx_costs_1): Remove unused variable extra_cost.
11469 (arm_unwind_emit_set): Use variable offset.
11470 (thumb1_output_casesi): Remove unused variable flags.
11472 2010-04-16 Jeff Law <law@redhat.com>
11474 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
11475 needing assignment rather than doing a two-phase assignment. Remove
11476 unused variable 'm'.
11478 2010-04-16 Jakub Jelinek <jakub@redhat.com>
11481 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
11483 2010-04-16 Doug Kwan <dougkwan@google.com>
11485 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
11486 (next_operand_entry_id): New static variable.
11487 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
11488 (add_to_ops_vec): Assigned unique ID to operand entry.
11489 (struct oecount_s): New field ID.
11490 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
11491 (undistribute_ops_list): Assign unique IDs to oecounts.
11492 (init_reassoc): reset next_operand_entry_id.
11494 2010-04-16 Doug Kwan <dougkwan@google.com>
11496 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
11497 missing left parenthesis.
11499 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
11501 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
11502 *btdi_rex64 using SWI48 mode iterator.
11503 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
11504 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
11505 *jcc_btdi_mask_rex64.
11507 2010-04-16 Anatoly Sokolov <aesok@post.ru>
11509 * double-int.h (tree_to_double_int): Convert to macro.
11510 * double-int.c (tree_to_double_int): Remove.
11512 2010-04-16 Jakub Jelinek <jakub@redhat.com>
11515 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
11516 with want_address 2 and in case a single element list might be
11517 possible, call it again with want_address 0.
11519 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
11521 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
11522 case 'W' print operands for HI mode.
11523 * config/h8300/h8300.h (Y0, Y2) : New constraints.
11524 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
11525 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
11526 * config/h8300/predicate.md (bit_register_indirect_operand): New.
11528 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
11530 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
11531 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
11532 #xx:3 and #xx:4 mode.
11534 * config/h8300/h8300.md (inverted load with HImode dest): Add
11535 support for H8300SX.
11537 * config/h8300/predicate.md (bit_operand): Allow immediate values that
11538 satisfy 'U' constraint.
11540 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11542 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
11543 * configure: Regenerate.
11544 * config.in: Regenerate.
11545 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
11548 2010-04-16 Richard Guenther <rguenther@suse.de>
11550 * tree.h (struct tree_decl_minimal): Move pt_uid ...
11551 (struct tree_decl_common): ... here.
11552 (DECL_PT_UID): Adjust.
11553 (SET_DECL_PT_UID): Likewise.
11554 (DECL_PT_UID_SET_P): Likewise.
11556 2010-04-16 Richard Guenther <rguenther@suse.de>
11558 PR tree-optimization/43572
11559 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
11560 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
11561 * tree-flow.h (is_call_clobbered): Remove.
11562 * tree-flow-inline.h (is_call_clobbered): Likewise.
11563 * tree-dfa.c (dump_variable): Do not dump call clobber state.
11564 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
11565 (execute_return_slot_opt): Adjust.
11566 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
11567 check for call clobbered vars here.
11568 (find_tail_calls): Move tailcall verification to the
11571 2010-04-16 Diego Novillo <dnovillo@google.com>
11573 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
11575 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
11578 * config/arm/arm.md (cbranchqi4): New pattern.
11579 * config/arm/predicates.md (const0_operand,
11580 cbranchqi4_comparison_operator): New predicates.
11582 2010-04-16 Richard Guenther <rguenther@suse.de>
11584 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
11585 (dump_gimple_stmt): Likewise.
11587 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
11589 * recog.h (struct recog_data): New field is_operator.
11590 (struct insn_operand_data): New field is_operator.
11591 * recog.c (extract_insn): Set recog_data.is_operator.
11592 * genoutput.c (output_operand_data): Emit code to set the
11594 * reload.c (find_reloads): Use it rather than testing for an
11595 empty constraint string.
11598 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
11599 If the previous insn is a cbranchsi4_insn with the same arguments,
11600 omit the compare instruction.
11602 * config/arm/arm.md (addsi3_cbranch): If destination is a high
11603 register, inputs must be low registers and we need a low register
11604 scratch. Handle alternative 2 like alternative 3.
11606 2010-04-16 Jakub Jelinek <jakub@redhat.com>
11608 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
11609 don't call get_addr on both. If one expression is a VALUE and
11610 the other a REG, check VALUE's locs if the REG isn't among them.
11612 2010-04-16 Christian Bruel <christian.bruel@st.com>
11614 * config/sh/sh.h (sh_frame_pointer_required): New function.
11615 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
11616 (flag_omit_frame_pointer) Set.
11617 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
11618 (rounded_frame_size): Adjust size with outgoing_args_size.
11619 (sh_set_return_address): Must return from stack pointer.
11620 * gcc/config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
11621 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
11622 (ACCUMULATE_OUTGOING_ARGS): Define.
11623 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
11624 * gcc/config/sh/sh.opt (maccumulate-outgoing-args): New option.
11626 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
11629 * config/sh/sh.c (sh_legitimize_reload_address): Use
11630 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
11631 Remove a unneeded check for offset_base.
11633 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
11635 * configure: Regenerated.
11637 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11639 * config/s390/s390.c (s390_call_save_register_used): Switch back
11640 to HARD_REGNO_NREGS.
11642 2010-04-15 Richard Guenther <rguenther@suse.de>
11644 * alias.c (alias_set_subset_of): Handle alias-set zero
11647 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
11648 Julian Brown <julian@codesourcery.com>
11650 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
11651 alternatives according to use of high and low regs.
11652 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
11653 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
11654 optimizing for size on Thumb-2.
11656 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
11658 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
11660 2010-04-15 Richard Guenther <rguenther@suse.de>
11662 * tree-ssa-structalias.c (struct variable_info): Add
11664 (new_var_info): Initialize it.
11665 (dump_constraints): Support printing last added constraints.
11666 (debug_constraints): Adjust.
11667 (dump_constraint_graph): Likewise.
11668 (make_heapvar_for): Check for NULL cfun.
11669 (get_function_part_constraint): New function.
11670 (get_fi_for_callee): Likewise.
11671 (find_func_aliases): Properly implement IPA PTA constraints.
11672 (process_ipa_clobber): New function.
11673 (find_func_clobbers): Likewise.
11674 (insert_into_field_list_sorted): Remove.
11675 (create_function_info_for): Properly allocate vars for IPA mode.
11676 Do not use insert_into_field_list_sorted.
11677 (create_variable_info_for): Properly generate constraints for
11678 global vars in IPA mode.
11679 (dump_solution_for_var): Always dump the solution.
11680 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
11681 (find_what_var_points_to): Adjust.
11682 (pt_solution_set): Change.
11683 (pt_solution_ior_into): New function.
11684 (pt_solution_empty_p): Export.
11685 (pt_solution_includes_global): Adjust.
11686 (pt_solution_includes_1): Likewise.
11687 (pt_solutions_intersect_1): Likewise.
11688 (dump_sa_points_to_info): Check some invariants.
11689 (solve_constraints): Move constraint dumping ...
11690 (compute_points_to_sets): ... here.
11691 (ipa_pta_execute): ... and here.
11692 (compute_may_aliases): Do not re-compute points-to info
11693 locally if IPA info is available.
11694 (ipa_escaped_pt): New global var.
11695 (ipa_pta_execute): Properly implement IPA PTA.
11696 * tree-into-ssa.c (dump_decl_set): Support dumping
11697 decls not in referenced-vars.
11698 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
11699 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
11700 (dump_points_to_solution): Likewise.
11701 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
11702 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
11703 (remap_gimple_stmt): Reset call clobber/use information if necessary.
11704 (copy_decl_to_var): Copy DECL_PT_UID.
11705 (copy_result_decl_to_var): Likewise.
11706 * tree.c (make_node_stat): Initialize DECL_PT_UID.
11707 (copy_node_stat): Copy it.
11708 * tree.h (DECL_PT_UID): New macro.
11709 (SET_DECL_PT_UID): Likewise.
11710 (DECL_PT_UID_SET_P): Likewise.
11711 (struct tree_decl_minimal): Add pt_uid member.
11712 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
11713 (pt_solution_empty_p): Declare.
11714 (pt_solution_set): Adjust.
11715 (ipa_escaped_pt): Declare.
11716 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
11717 * gimple-pretty-print.c (pp_points_to_solution): New function.
11718 (dump_gimple_call): Dump call clobber/use information.
11719 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
11720 * tree-pass.h (TDF_ALIAS): New dump option.
11721 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
11722 * doc/invoke.texi (-fipa-pta): Update documentation.
11724 2010-04-15 Richard Guenther <rguenther@suse.de>
11726 * Makefile.in (OBJS-common): Add gimple-fold.o.
11727 (gimple-fold.o): New rule.
11728 * tree.h (maybe_fold_offset_to_reference,
11729 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
11731 * gimple.h: ... here.
11732 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
11733 may_propagate_address_into_dereference): Move prototypes ...
11734 * gimple.h: ... here.
11735 * tree-ssa-ccp.c (get_symbol_constant_value,
11736 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
11737 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
11738 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
11739 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
11740 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
11741 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
11742 gimplify_and_update_call_from_tree): Move ...
11743 * gimple-fold.c: ... here. New file.
11744 (ccp_fold_builtin): Rename to ...
11745 (gimple_fold_builtin): ... this.
11746 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
11748 2010-04-15 Richard Guenther <rguenther@suse.de>
11750 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
11751 fit_double_type, force_fit_type_double, add_double_with_sign,
11752 neg_double, mul_double_with_sign, lshift_double, rshift_double,
11753 lrotate_double, rrotate_double, div_and_round_double): Move ...
11754 * double-int.c: ... here.
11755 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
11756 add_double, neg_double, mul_double_with_sign, mul_double,
11757 lshift_double, rshift_double, lrotate_double, rrotate_double,
11758 div_and_round_double): Move prototypes ...
11759 * double-int.h: ... here.
11761 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
11764 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
11765 matching constraints to ensure inputs match the output.
11767 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
11770 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
11771 in an input-only operand.
11773 2010-04-15 Anatoly Sokolov <aesok@post.ru>
11775 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
11776 (double_int_not, double_int_lshift, double_int_rshift): Declare.
11777 (double_int_negative_p): Convert to static inline function.
11778 * double-int.c (double_int_lshift, double_int_lshift): New functions.
11779 (double_int_negative_p): Remove.
11780 * tree.h (lshift_double, rshift_double):
11781 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
11782 * fold-const.c (fold_convert_const_int_from_real,
11783 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
11784 (lshift_double): Change type of arith argument to bool.
11785 (rshift_double): Change type of arith argument to bool. Correct
11787 * expmed.c (mask_rtx, lshift_value): (Ditto.).
11789 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
11792 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
11793 at the start and end of the then/else blocks, and omit them from the
11795 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
11796 argument; all callers changed. Pass zero to old_insns_match_p instead.
11797 (flow_find_head_matching_sequence): New function.
11798 (old_insns_match_p): Check REG_EH_REGION notes for calls.
11799 * basic-block.h (flow_find_cross_jump,
11800 flow_find_head_matching_sequence): Declare functions.
11802 2010-04-14 Jason Merrill <jason@redhat.com>
11805 * c-common.c (attribute_takes_identifier_p): New fn.
11806 * c-common.h: Declare it.
11808 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
11810 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
11811 splitter condition.
11812 (*udivmod<mode>4): Ditto.
11814 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
11816 * config/i386/i386.md (maxmin_int): Rename code attribute from
11817 maxminiprefix and update all users.
11818 (maxmin_float): Ditto from maxminfprefix.
11819 (logic): Ditto from logicprefix.
11820 (absneg_mnemonic): Ditto from absnegprefix.
11821 * config/i386/mmx.md: Update all users of maxminiprefix,
11822 maxminfprefix and logicprefix for rename.
11823 * config/i386/sse.md: Ditto.
11824 * config/i386/sync.md (sync_<code><mode>): Update for
11825 logicprefix rename.
11827 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
11830 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
11831 warnings converted to errors.
11833 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
11835 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
11836 used insn_type variable.
11837 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
11838 to avoid set-but-not-used warning.
11840 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
11842 * df-core.c (df_ref_debug): Change format string placeholder
11844 * dwarf2asm.c (dw2_asm_output_data_raw,
11845 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
11846 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
11847 * dwarf2out.c (output_cfi, output_cfi_directive,
11848 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
11849 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
11851 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
11852 * print-rtl.c (print_rtx): Ditto.
11854 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
11856 PR middle-end/42694
11857 * builtins.c (expand_builtin_pow_root): New function to expand pow
11858 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
11859 series of sqrt and cbrt calls under -ffast-math.
11860 (expand_builtin_pow): Call it.
11862 2010-04-14 Michael Matz <matz@suse.de>
11864 PR tree-optimization/42963
11865 * tree-cfg.c (touched_switch_bbs): New static variable.
11866 (group_case_labels_stmt): New function broken out from ...
11867 (group_case_labels): ... here, use the above.
11868 (start_recording_case_labels): Allocate touched_switch_bbs.
11869 (end_recording_case_labels): Deallocate it, call
11870 group_case_labels_stmt.
11871 (gimple_redirect_edge_and_branch): Remember index of affected BB.
11873 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
11875 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
11876 from insn template.
11878 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
11880 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
11882 2010-04-13 Jan Hubicka <jh@suse.cz>
11884 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
11885 of optimized out static functions.
11886 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
11887 cost computation. Also sanity check for overflows.
11888 (update_caller_keys): Update cgraph_edge_badness call; properly
11889 update fibheap and sanity check that it is up to date.
11890 (add_new_edges_to_heap): Update cgraph_edge_badness.
11891 (cgraph_decide_inlining_of_small_function): Likewise;
11892 add sanity checking that badness in heap is up to date;
11893 improve dumping of reason; Update badness of calls to the
11894 offline copy of function currently inlined; dump badness
11895 of functions not inlined because of unit growth limits.
11897 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
11899 PR middle-end/32628
11900 * c-common.c (pointer_int_sum): Disregard overflow that occured only
11901 because of sign-extension change when converting to sizetype here...
11902 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
11904 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
11905 the folding to constants. Remove redundant final conversion.
11906 (fold_binary) <associate>: Do not associate if the re-association of
11907 constants alone overflows.
11908 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
11909 to the end of the list.
11910 (multiple_of_p) <COND_EXPR>: New case.
11912 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
11914 * opt-functions.awk (opt_sanitized_name): New.
11916 * optc-gen.awk: Use it
11917 * opth-gen.awk: Use it.
11919 2010-04-13 Martin Jambor <mjambor@suse.cz>
11921 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
11922 (sra_modify_assign): Delete stmts loading dead data even if racc has no
11923 children. Call replace_uses_with_default_def_ssa_name to handle
11926 2010-04-13 Michael Matz <matz@suse.de>
11928 PR middle-end/43730
11929 * builtins.c (expand_builtin_interclass_mathfn): Also create
11930 a register if the predicate doesn't match.
11932 2010-04-13 Diego Novillo <dnovillo@google.com>
11934 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
11935 * c-pch.c: Include timevar.h.
11936 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
11937 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
11938 * ggc-common.c: Include timevar.h.
11939 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
11940 * timevar.def (TV_PCH_SAVE): Define.
11941 (TV_PCH_CPP_SAVE): Define.
11942 (TV_PCH_PTR_REALLOC): Define.
11943 (TV_PCH_PTR_SORT): Define.
11944 (TV_PCH_RESTORE): Define.
11945 (TV_PCH_CPP_RESTORE): Define.
11947 2010-04-13 Michael Matz <matz@suse.de>
11949 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
11951 (can_reassociate_p): New function.
11952 (break_up_subtract_bb, reassociate_bb): Use it.
11954 2010-04-13 Richard Guenther <rguenther@suse.de>
11957 * builtins.c (c_readstr): Fix assert.
11959 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
11961 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
11962 when generating cltd insn.
11964 (*ashl<mode>3_1): Remove special handling for register operand 2.
11965 (*ashlsi3_1_zext): Ditto.
11966 (*ashlhi3_1): Ditto.
11967 (*ashlhi3_1_lea): Ditto.
11968 (*ashlqi3_1): Ditto.
11969 (*ashlqi3_1_lea): Ditto.
11970 (*<shiftrt_insn><mode>3_1): Ditto.
11971 (*<shiftrt_insn>si3_1_zext): Ditto.
11972 (*<shiftrt_insn>qi3_1_slp): Ditto.
11973 (*<rotate_insn><mode>3_1): Ditto.
11974 (*<rotate_insn>si3_1_zext): Ditto.
11975 (*<rotate_insn>qi3_1_slp): Ditto.
11977 2010-04-13 Richard Guenther <rguenther@suse.de>
11979 * tree-ssa-structalias.c (callused_id): Remove.
11980 (call_stmt_vars): New.
11981 (get_call_vi): Likewise.
11982 (lookup_call_use_vi): Likewise.
11983 (lookup_call_clobber_vi): Likewise.
11984 (get_call_use_vi): Likewise.
11985 (get_call_clobber_vi): Likewise.
11986 (make_transitive_closure_constraints): Likewise.
11987 (handle_const_call): Adjust to do per-call call-used handling.
11988 (handle_pure_call): Likewise.
11989 (find_what_var_points_to): Remove general callused handling.
11990 (init_base_vars): Likewise.
11991 (init_alias_vars): Initialize call_stmt_vars.
11992 (compute_points_to_sets): Process call-used and call-clobbered
11993 vars for call statements.
11994 (delete_points_to_sets): Free call_stmt_vars.
11996 2010-04-13 Richard Guenther <rguenther@suse.de>
11998 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
11999 Only add RW dependence for dependence distance zero.
12000 Adjust maximal vectorization factor according to dependences.
12001 Move alignment handling ...
12002 (vect_find_same_alignment_drs): ... here. New function.
12003 (vect_analyze_data_ref_dependences): Adjust.
12004 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
12005 (vect_analyze_data_refs): Adjust minimal vectorization factor
12006 according to data references.
12007 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
12008 dependences before determining the vectorization factor.
12009 Analyze alignment after determining the vectorization factor.
12010 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
12011 dependences before alignment.
12012 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
12014 (vect_analyze_data_refs): Likewise.
12015 (MAX_VECTORIZATION_FACTOR): New define.
12017 2010-04-13 Duncan Sands <baldrick@free.fr>
12019 * except.h (lang_eh_type_covers): Remove.
12020 * except.c (lang_eh_type_covers): Likewise.
12022 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12023 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12025 * gcc/config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
12026 * gcc/config/s390/s390.c: Replace UNTIS_PER_WORD with
12027 UNITS_PER_LONG where it is ABI relevant.
12028 (s390_return_addr_rtx): Likewise.
12029 (s390_back_chain_rtx): Likewise.
12030 (s390_frame_area): Likewise.
12031 (s390_frame_info): Likewise.
12032 (s390_initial_elimination_offset): Likewise.
12033 (save_gprs): Likewise.
12034 (s390_emit_prologue): Likewise.
12035 (s390_emit_epilogue): Likewise.
12036 (s390_function_arg_advance): Likewise.
12037 (s390_function_arg): Likewise.
12038 (s390_va_start): Likewise.
12039 (s390_gimplify_va_arg): Likewise.
12040 (s390_function_profiler): Likewise.
12041 (s390_optimize_prologue): Likewise.
12042 (s390_rtx_costs): Likewise.
12043 (s390_secondary_reload): Likewise.
12044 (s390_promote_function_mode): Likewise.
12045 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
12046 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
12047 registers available.
12048 (s390_unwind_word_mode): New function.
12049 (s390_function_value): Split 64 bit values into register pair if
12050 used as return value.
12051 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
12052 function call parameters. Handle parallels.
12053 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
12054 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
12055 (DWARF_CIE_DATA_ALIGNMENT): New macro.
12056 (s390_expand_setmem): Remove unused variable src_addr.
12057 * gcc/longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
12058 deal with 64 bit registers.
12059 * gcc/config/s390/s390.h: Define __zarch__ predefined macro.
12060 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
12061 (UNITS_PER_LONG): New macro.
12062 * libjava/include/s390-signal.h: Define extended ucontext
12063 structure containing the upper halfs of the 64 bit registers.
12065 2010-04-13 Simon Baldwin <simonb@google.com>
12067 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
12069 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
12071 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
12072 rvalue on the RHS if the LHS is of a non-renamable type.
12073 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
12075 2010-04-13 Matthias Klose <doko@ubuntu.com>
12077 * gcc.c (cc1_options): Handle -iplugindir before processing
12078 the cc1 spec. Only add -iplugindir once.
12079 (cpp_unique_options): Add -iplugindir option if -fplugin* options
12081 * common.opt (iplugindir): Remove `Separate' property, initialize.
12082 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
12084 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
12085 (distclean): Remove plugin dir.
12086 * doc/invoke.texi: Document -iplugindir.
12088 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
12090 * doc/plugins.texi (Loading Plugins): Document short
12091 -fplugin=foo option.
12092 (Plugin API): Mention default_plugin_dir_name function.
12094 * gcc.c (find_file_spec_function): Add new declaration.
12095 (static_spec_func): Use it for "find-file".
12096 (find_file_spec_function): Add new function.
12097 (cc1_options): Add -iplugindir option if -fplugin* options found.
12099 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
12101 * plugin.c (add_new_plugin): Updated comment, and handle short
12103 (default_plugin_dir_name): Added new function.
12105 * common.opt (iplugindir): New option to set the plugin directory.
12107 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
12109 * config/i386/i386.md (any_rotate): New code iterator.
12110 (rotate_insn): New code attribute.
12112 (SWIM124): New mode iterator.
12113 (<rotate_insn>ti3): New expander.
12114 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
12115 any_rotate code iterator.
12116 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
12117 using any_rotate code iterator and SWIM124 mode iterator.
12118 (ix86_rotlti3): New insn_and_split pattern.
12119 (ix86_rotrti3): Ditto.
12120 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
12121 ix86_rotl{di,ti}3 patterns.
12122 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
12123 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
12124 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
12125 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
12126 code iterator and SWI mode iterator.
12127 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
12128 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
12130 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
12131 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
12132 (bswap rotatert splitter): Add splitter.
12133 (bswap splitter): Macroize splitter using any_rotate code iterator.
12134 Add insn predicate to split only for TARGET_USE_XCHGB or when
12135 optimizing function for size.
12137 2010-04-12 Steve Ellcey <sje@cup.hp.com>
12139 * config/pa/pa.c (emit_move_sequence): Remove use of
12140 deleted variable flag_argument_noalias.
12142 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12144 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
12146 Add to unsupported targets list.
12147 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
12148 sparc*-sun-solaris2.[567]* from target lists.
12149 * configure: Regenerate.
12150 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
12152 Remove Solaris 7 patch references.
12153 (Specific, sparc-sun-solaris2.7): Removed.
12154 (sparc-sun-solaris2*): Update Solaris 7 example.
12155 (sparc64-*-solaris2*): Likewise.
12157 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12159 * config.build (alpha*-dec-osf4*): Remove.
12160 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
12161 of obsolete configurations.
12162 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
12164 * config/alpha/t-osf4: Renamed to ...
12165 * config/alpha/t-osf5: ... this.
12166 * config/alpha/osf.h: Renamed to ...
12167 * config/alpha/osf5.h: ... this.
12168 Merged old osf5.h contents.
12170 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
12171 (EXTRA_SPECS): Removed.
12172 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
12173 reflect removal of Tru64 UNIX V4.0/V5.0 support.
12176 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12178 * doc/contrib.texi (Contributors, Rainer Orth): Update.
12180 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
12183 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
12184 __thiscall convention.
12186 2010-04-12 Steve Ellcey <sje@cup.hp.com>
12188 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
12190 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
12192 2010-04-12 Steve Ellcey <sje@cup.hp.com>
12194 * function.c (assign_parms_initialize_all): Add unused attribute
12197 2010-04-12 Richard Guenther <rguenther@suse.de>
12199 * gsstruct.def (GSS_CALL): New.
12200 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
12201 * gimple.h: Include tree-ssa-alias.h.
12202 (struct gimple_statement_call): New.
12203 (union gimple_statement_struct_d): Add gimple_call member.
12204 (gimple_call_reset_alias_info): Declare.
12205 (gimple_call_use_set): New function.
12206 (gimple_call_clobber_set): Likewise.
12207 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
12208 * gimple.c (gimple_call_reset_alias_info): New function.
12209 (gimple_build_call_1): Call it.
12210 * lto-streamer-in.c (input_gimple_stmt): Likewise.
12211 * tree-inline.c (remap_gimple_stmt): Likewise.
12212 (expand_call_inline): Remove callused handling.
12213 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
12214 * tree-dfa.c (dump_variable): Likewise.
12215 * tree-parloops.c (parallelize_loops): Likewise.
12216 * tree-ssa.c (init_tree_ssa): Likewise.
12217 (delete_tree_ssa): Likewise.
12218 * tree-flow-inline.h (is_call_used): Remove.
12219 * tree-flow.h (struct gimple_df): Remove callused member.
12220 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
12221 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
12222 (ref_maybe_used_by_call_p_1): Simplify.
12223 (call_may_clobber_ref_p_1): Likewise.
12224 * tree-ssa-structalias.c (compute_points_to_sets): Set
12225 the call stmt used and clobbered sets.
12226 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
12227 (find_tail_calls): Verify the tail call.
12229 2010-04-12 Richard Guenther <rguenther@suse.de>
12231 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
12232 single-iteration always-inline inlining.
12233 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
12234 (cgraph_decide_inlining): Do not handle always-inline specially.
12235 (try_inline): Remove always-inline cycle detection special case.
12236 Do not recurse on always-inlines.
12237 (cgraph_early_inlining): Do not iterate if not optimizing.
12238 (cgraph_gate_early_inlining): remove.
12239 (pass_early_inline): Run unconditionally.
12240 (gate_cgraph_decide_inlining): New function.
12241 (pass_ipa_inline): Use it. Do not run the IPA inliner if
12242 not inlining or optimizing.
12243 (cgraph_decide_inlining_of_small_functions): Also consider
12244 always-inline functions.
12245 (cgraph_default_inline_p): Return true for nodes which should
12246 disregard inline limits.
12247 (estimate_function_body_sizes): Assume zero size and time for
12248 nodes which are marked as disregarding inline limits.
12249 (cgraph_decide_recursive_inlining): Do not perform recursive
12250 inlining on always-inline nodes.
12252 2010-04-12 Jakub Jelinek <jakub@redhat.com>
12255 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
12256 for exprs satisfying handled_component_p.
12258 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
12260 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
12261 non-constant aggregate elements.
12263 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
12264 is a real initialization.
12266 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
12269 * c-decl.c (start_function): Move forward check for nested function.
12271 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
12273 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
12274 * config/sh/sh.c: Include reload.h.
12275 (sh_legitimize_reload_address): New.
12276 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
12277 sh_legitimize_reload_address.
12279 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
12281 * config/sh/sh.md (*movqi_pop): New insn pattern.
12282 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
12284 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
12286 * config/i386/i386.md (any_shiftrt): New code iterator.
12287 (shiftrt_insn): New code attribute.
12289 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
12290 using any_shiftrt code iterator.
12291 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
12292 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
12293 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
12294 pattern from corresponding peephole2 patterns.
12295 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
12296 using any_shiftrt code iterator.
12297 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
12298 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
12299 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
12300 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
12301 *{ashr,lshr}<mode>3_cmp_zext.
12302 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
12304 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
12306 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
12308 (*lshr<mode>3_cconly): Ditto.
12310 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
12312 * config/i386/i386.md (lshr<mode>3): Macroize expander from
12313 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
12314 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
12315 pattern from *lshr{di,ti}3_1 and corresponding splitters using
12317 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
12318 from corresponding peephole2 patterns.
12319 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
12320 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
12321 and *lshrdi3_1_rex64 using SWI mode iterator.
12322 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
12323 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
12324 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
12325 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
12326 and *lshrdi3_cmp_rex64 using SWI mode iterator.
12327 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
12328 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
12329 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
12330 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
12333 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
12335 * config/i386/i386.md (ashr<mode>3): Macroize expander from
12336 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
12337 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
12338 pattern from *ashr{di,ti}3_1 and corresponding splitters using
12340 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
12341 from corresponding peephole2 patterns.
12342 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
12343 (ashrsi3_cvt): Rename from ashrsi3_31.
12344 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
12345 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
12346 and x86_64_shift_adj_3 using SWI48 mode iterator.
12347 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
12348 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
12349 and *ashrdi3_1_rex64 using SWI mode iterator.
12350 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
12351 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
12352 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
12353 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
12354 and *ashrdi3_cmp_rex64 using SWI mode iterator.
12355 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
12356 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
12357 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
12358 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
12360 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
12361 * config/i386/i386.c (ix86_split_ashr): Update for renamed
12362 x86_shift<mode>_adj_3 expanders.
12364 2010-04-10 Wei Guozhi <carrot@google.com>
12367 * config/arm/arm.c (arm_pic_static_addr): New function.
12368 (legitimize_pic_address): Call arm_pic_static_addr when it detects
12370 (arm_output_addr_const_extra): Output expression for new pattern.
12371 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
12373 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
12375 * ira-costs.c (record_reg_classes): Ignore alternatives that are
12378 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
12379 * web.c: Include "insn-config.h" and "recog.h".
12380 (union_match_dups): New function.
12381 (web_main): Call it.
12382 (union_defs): Don't try to recognize match_dups.
12384 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
12385 if doing so would replace the entire pattern.
12387 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
12391 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
12392 and splitter pattern. Change splitter operand 1 predicate to
12395 2010-04-09 Martin Jambor <mjambor@suse.cz>
12397 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
12398 lattices are addresses of CONST_DECLs with the same initial value.
12399 (ipcp_print_all_lattices): Print values of CONST_DECLs.
12400 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
12402 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
12403 Bernd Schmidt <bernds@codesourcery.com>
12405 * loop-invariant.c (replace_uses): New static function.
12406 (move_invariant_reg): Use it to ensure we can replace the uses.
12408 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
12410 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
12412 (picochip_override_options): Enable section anchors only above -O1.
12413 (picochip_reorg): Fixed a couple of build warnings.
12415 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12417 * configure.ac (plugin -rdynamic test): Log result.
12418 * configure: Regenerate.
12419 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
12420 (RDYNAMIC_SPEC): Define.
12421 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
12423 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12425 * configure.ac: Determine Sun ld version numbers.
12426 (comdat_group): Restrict GNU ld version checks to gld.
12427 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
12428 (enable_comdat): Support --enable-comdat.
12429 * configure: Regenerate.
12430 * doc/install.texi (Configuration): Document --enable-comdat.
12432 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12434 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
12435 * config/sol2-gld.h: ... here.
12436 * config.gcc (sparc*-*-solaris2*): Reflect this.
12437 (i[34567]86-*-solaris2*): Use it.
12439 2010-04-09 Steve Ellcey <sje@cup.hp.com>
12441 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
12443 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
12445 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
12448 * diagnostic.c (diagnostic_initialize): Initialize
12449 some_warnings_are_errors.
12450 (diagnostic_finish): New.
12451 (diagnostic_action_after_output): Call it before exiting.
12452 (diagnostic_report_diagnostic): Do not print message here. Set
12453 some_warnings_are_errors.
12454 * diagnostic.h (diagnostic_context): Delete
12455 issue_warnings_are_errors_message. Add some_warnings_are_errors.
12456 (diagnostic_finish): Declare.
12457 * toplev.c (toplev_main): Call it before exit.
12459 2010-04-09 Jason Merrill <jason@redhat.com>
12462 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
12463 for incomplete type.
12466 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
12467 based on a warning flag.
12469 2010-04-09 Richard Guenther <rguenther@suse.de>
12471 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
12473 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
12476 * varasm.c (default_assemble_visibility): Wrap vars that are
12477 set, but unused, by targets without GAS.
12478 * config/rs6000/rs6000.c (paired_emit_vector_compare):
12479 Remove set, but unused, vars.
12480 (rs6000_legitimize_tls_address): Likewise.
12481 (altivec_expand_dst_builtin): Likewise.
12482 * config/darwin.c (machopic_classify_symbol): Likewise.
12483 (machopic_indirection_name): Likewise.
12485 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
12487 * config/i386/i386.md (DWI): New mode iterator.
12488 (S): New mode attribute.
12489 (shift_operand): Ditto.
12490 (shift_immediate_operand): Ditto.
12491 (ashl_input_operand): Ditto.
12492 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
12493 using SDWIM mode iterator.
12494 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
12495 pattern from *ashl{di,ti}3_1 and corresponding splitters using
12497 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
12498 from corresponding peephole2 patterns.
12499 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
12500 and x86_64_shift_adj_1 using SWI48 mode iterator.
12501 (x86_shift<mode>_adj_2): Ditto.
12502 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
12503 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
12504 using SWI48 mode iterator.
12505 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
12506 *ashldi3_cmp_rex64 using SWI mode iterator.
12507 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
12508 *ashldi3_cconly_rex64 using SWI mode iterator.
12509 * config/i386/i386.c (ix86_split_ashl): Update for renamed
12510 x86_shift<mode>_adj_{1,2}.
12511 (ix86_split_ashr): Ditto.
12512 (ix86_split_lshr): Ditto.
12514 2010-04-09 Richard Guenther <rguenther@suse.de>
12516 * target.h (builtin_conversion): Pass in input and output types.
12517 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
12518 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
12519 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
12520 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
12522 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
12524 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
12526 2010-04-09 Richard Guenther <rguenther@suse.de>
12529 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
12531 2010-04-09 Richard Guenther <rguenther@suse.de>
12533 * tree-vectorizer.h (struct _stmt_vec_info): Document
12534 that vectype is the type of the LHS.
12535 (supportable_widening_operation, supportable_narrowing_operation):
12536 Get both input and output vector types as arguments.
12537 (vect_is_simple_use_1): Declare.
12538 (get_same_sized_vectype): Likewise.
12539 * tree-vect-loop.c (vect_determine_vectorization_factor):
12540 Set STMT_VINFO_VECTYPE to the vector type of the def.
12541 (vectorizable_reduction): Adjust.
12542 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
12543 Adjust. Specify the output vector type.
12544 (vect_pattern_recog_1): Adjust.
12545 * tree-vect-stmts.c (get_same_sized_vectype): New function.
12546 (vectorizable_call): Adjust.
12547 (vectorizable_conversion): Likewise.
12548 (vectorizable_operation): Likewise.
12549 (vectorizable_type_demotion): Likewise.
12550 (vectorizable_type_promotion): Likewise.
12551 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
12553 (vect_is_simple_use_1): New function.
12554 (supportable_widening_operation): Get both input and output
12556 (supportable_narrowing_operation): Likewise.
12557 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
12559 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
12561 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
12562 __thiscall and _thiscall as predefined macros.
12563 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
12564 thiscall attribute handling.
12565 (ix86_comp_type_attributes): Likewise.
12566 (ix86_function_regparm): Likewise.
12567 (ix86_return_pops_args): Likewise.
12568 (init_cumulative_args): Likewise.
12569 (find_drap_reg): Likewise.
12570 (ix86_static_chain): Likewise.
12571 (x86_this_parameter): Likewise.
12572 (x86_output_mi_thunk): Likewise.
12573 (ix86_attribute_table): Add description for thiscall attribute.
12574 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
12575 * doc/extend.texi: Add documentation for thiscall.
12577 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
12580 * c.opt (Wint-to-pointer-cast): Available in C++.
12581 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
12583 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
12585 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
12586 * calls.c (expand_call): Pass the function type to aggregate_value_p.
12587 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
12588 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
12589 function type instead. Reorder and simplify checks.
12591 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
12593 2010-04-08 Jing Yu <jingyu@google.com>
12594 Zdenek Dvorak <ook@ucw.cz>
12596 PR tree-optimization/42720
12597 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
12598 loop unswitch conditions here from ...
12599 (tree_unswitch_single_loop): ... here.
12601 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
12603 * tree-if-conv.c: Fix comments and simplify logic.
12605 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
12607 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
12608 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
12609 (main_tree_if_conversion): Update call to tree_if_conversion.
12611 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
12614 * doc/invoke.texi (-b,-V): Delete.
12615 * doc/tm.texi: Do not mention -b.
12616 * gcc.c (display_help): Delete -b and -V.
12617 (process_command): Delete -b and -V.
12618 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
12620 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
12621 Wolfgang Gellerich <gellerich@de.ibm.com>
12623 Implement target hook for loop unrolling
12624 * target.h (loop_unroll_adjust): Add a new target hook function.
12625 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
12626 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
12627 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
12628 (s390_loop_unroll_adjust): Implement the new target hook for s390.
12629 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
12631 (decide_unroll_stupid): Likewise.
12633 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12636 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
12638 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12640 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
12641 (Specific, *-*-solaris2*): Likewise.
12642 Don't prefer Sun as over GNU as.
12644 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
12646 * config/s390/s390.c (override_options): Adjust the z10 defaults
12647 for max-unroll-times, max-completely-peeled-insns
12648 and max-completely-peel-times.
12650 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12652 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
12653 instructions for z10.
12654 (s390_expand_setmem): Likewise.
12655 (s390_expand_cmpmem): Likewise.
12657 2010-04-08 Richard Guenther <rguenther@suse.de>
12659 PR tree-optimization/43679
12660 * tree-ssa-pre.c (eliminate): Only propagate copies.
12662 2010-04-08 Jakub Jelinek <jakub@redhat.com>
12665 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
12666 set but not used variable warning.
12668 2010-04-08 Wei Guozhi <carrot@google.com>
12671 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
12672 (arm_size_rtx_costs): Call the new function when optimized for size.
12674 2010-04-08 Jakub Jelinek <jakub@redhat.com>
12677 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
12678 op0 is not a MEM, just return NULL instead of assertion
12680 (discover_nonconstant_array_refs): Don't walk debug stmts.
12682 2010-04-08 Doug Kwan <dougkwan@google.com>
12684 * configure.ac: Recognize gold and do not use its version number
12685 to test ld features.
12686 * configure: Regenerate.
12688 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
12690 PR middle-end/40815
12691 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
12692 (negate_value): Move code to push elements to broken_up_substracts ...
12693 (eliminate_plus_minus_pair): ... here. Push operands that have no
12694 negative pair to plus_negates.
12695 (repropagate_negates, init_reassoc, fini_reassoc): Update.
12697 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12699 * doc/install.texi (Configuration): Move description of
12700 --enable-lto, --with-libelf*, --enable-gold from Java section to
12703 * doc/generic.texi (Working with declarations)
12704 (Function Properties, C and C++ Trees): Fix typos.
12705 * doc/sourcebuild.texi (Top Level): Likewise.
12707 2010-04-07 Jakub Jelinek <jakub@redhat.com>
12710 * tree.h (DECL_READ_P): Define.
12711 (struct tree_decl_common): Add decl_read_flag.
12712 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
12713 a set but not used warning.
12714 (merge_decls): Merge DECL_READ_P flag.
12715 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
12716 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
12717 * c-common.c (handle_used_attribute, handle_unused_attribute):
12719 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
12721 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
12723 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
12724 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
12725 c_parser_binary_expression, c_parser_cast_expression,
12726 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
12727 Call default_function_array_read_conversion instead of
12728 default_function_array_conversion where needed.
12729 (c_parser_unary_expression, c_parser_conditional_expression,
12730 c_parser_postfix_expression_after_primary, c_parser_initelt):
12731 Likewise. Call mark_exp_read where needed.
12732 (c_parser_statement_after_labels, c_parser_asm_operands,
12733 c_parser_typeof_specifier, c_parser_sizeof_expression,
12734 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
12736 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
12738 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
12739 (warn_unused_but_set_parameter): Default to warn_unused
12741 * doc/invoke.texi: Document -Wunused-but-set-variable and
12742 -Wunused-but-set-parameter.
12744 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
12745 used count variable.
12746 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
12747 when operandN variables aren't used in the body of the expander
12749 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
12750 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
12751 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
12752 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
12753 FOR_EACH_IMM_USE_ON_STMT): Likewise.
12754 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
12755 * tree.c (PROCESS_ARG): Likewise.
12757 2010-04-07 Simon Baldwin <simonb@google.com>
12759 * diagnostic.h (diagnostic_override_option_index): New macro to
12760 set a diagnostic's option_index.
12761 * c-tree.h (c_cpp_error): Add warning reason argument.
12762 * opts.c (_warning_as_error_callback): New.
12763 (register_warning_as_error_callback): Store callback for
12764 warnings enabled via enable_warning_as_error.
12765 (enable_warning_as_error): Call callback, minor code tidy.
12766 * opts.h (register_warning_as_error_callback): Declare.
12767 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
12768 response to -Werror=.
12769 (c_common_init_options): Register warning_as_error_callback in opts.c.
12770 * common.opt: Add -Wno-cpp option.
12771 * c-common.c (struct reason_option_codes_t): Map cpp warning
12772 reason codes to gcc option indexes.
12773 * (c_option_controlling_cpp_error): New function, lookup the gcc
12774 option index for a cpp warning reason code.
12775 * (c_cpp_error): Add warning reason argument, call
12776 c_option_controlling_cpp_error for diagnostic_override_option_index.
12777 * doc/invoke.texi: Document -Wno-cpp.
12779 2010-04-07 Richard Guenther <rguenther@suse.de>
12781 * ipa-reference.c (mark_load): Use get_base_address.
12782 (mark_store): Likewise.
12784 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
12785 inserting GIMPLE_NOPs into the IL.
12786 * tree-ssa-structalias.c (get_constraint_for_component_ref):
12787 Explicitly strip handled components and indirect references.
12789 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
12790 folding address expressions.
12791 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
12792 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
12793 operand_equal_p to compare decls.
12794 (ptr_deref_may_alias_decl_p): Likewise.
12795 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
12796 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
12797 Handle reversed comparison ops.
12798 * tree-sra.c (asm_visit_addr): Use get_base_address.
12799 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
12800 * ipa-reference.c (mark_address): Use get_base_address.
12802 2010-04-07 Richard Guenther <rguenther@suse.de>
12804 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
12805 Propagate constants everywhere.
12807 2010-04-07 Jakub Jelinek <jakub@redhat.com>
12810 * tree.c (MAX_INT_CACHED_PREC): Define.
12811 (nonstandard_integer_type_cache): New array.
12812 (build_nonstandard_integer_type): Cache results for precision
12813 <= MAX_INT_CACHED_PREC.
12815 2010-04-07 Richard Guenther <rguenther@suse.de>
12817 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
12818 -fargument-noalias-global, -fargument-noalias-anything): Remove.
12819 * common.opt: Likewise.
12820 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
12821 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
12822 (nonoverlapping_memrefs_p): Likewise.
12823 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
12824 * opts.c (common_handle_option): Handle OPT_fargument_alias,
12825 OPT_fargument_noalias, OPT_fargument_noalias_anything and
12826 OPT_fargument_noalias_global for backward compatibility.
12828 2010-04-07 Richard Guenther <rguenther@suse.de>
12830 PR tree-optimization/43270
12831 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
12832 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
12833 * tree-ssa-pre.c (phi_translate_1): Adjust.
12834 (fully_constant_expression): Split out vn_reference handling to ...
12835 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
12836 Fold reads from constant strings.
12837 (vn_reference_lookup): Handle fully constant references.
12838 (vn_reference_lookup_pieces): Likewise.
12839 * Makefile.in (expmed.o-warn): Add -Wno-error.
12841 2010-04-07 Martin Jambor <mjambor@suse.cz>
12843 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
12845 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
12848 * gcc.c: Add -static-libstdc++ to list of recognized options.
12850 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12852 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
12854 2010-04-07 Richard Guenther <rguenther@suse.de>
12856 PR middle-end/42617
12857 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
12858 bases build simple mem attributes to retain points-to information.
12860 2010-04-07 Richard Guenther <rguenther@suse.de>
12862 PR middle-end/42617
12863 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
12864 preserve points-to related information.
12866 2010-04-07 Richard Guenther <rguenther@suse.de>
12868 PR middle-end/42617
12869 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
12870 discard plain indirect references.
12871 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
12872 * tree.c (tree_nop_conversion): Likewise.
12874 2010-04-07 Dodji Seketeli <dodji@redhat.com>
12877 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
12879 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
12881 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
12882 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
12884 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
12886 * tree-if-conv.c: Fix indentation and comments.
12888 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
12890 * tree-if-conv.c: Sort static functions in topological order.
12892 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
12894 * tree-if-conv.c: Fix indentation and comments.
12896 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
12898 PR middle-end/43519
12899 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
12900 lang_hooks.types.type_for_size instead of
12901 build_nonstandard_integer_type.
12902 When converting an unsigned type to signed, double its precision.
12903 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
12904 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
12905 (graphite_create_new_loop_guard): When ub + 1 wraps around,
12908 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
12910 PR middle-end/43519
12911 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
12912 POINTER_PLUS_EXPR for pointer types.
12914 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
12916 PR middle-end/43519
12917 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
12918 * graphite-clast-to-gimple.c: Include langhooks.h.
12919 (max_signed_precision_type): New.
12920 (max_precision_type): Takes two types as arguments.
12921 (precision_for_value): New.
12922 (precision_for_interval): New.
12923 (gcc_type_for_interval): New.
12924 (gcc_type_for_value): New.
12925 (gcc_type_for_clast_term): New.
12926 (gcc_type_for_clast_red): New.
12927 (gcc_type_for_clast_bin): New.
12928 (gcc_type_for_clast_expr): Split up into several functions.
12929 (gcc_type_for_clast_eq): Rewritten.
12930 (compute_bounds_for_level): New.
12931 (compute_type_for_level_1): New.
12932 (compute_type_for_level): New.
12933 (gcc_type_for_cloog_iv): Removed.
12934 (gcc_type_for_iv_of_clast_loop): Rewritten.
12935 (graphite_create_new_loop): Compute the lower and upper bound types
12936 with gcc_type_for_clast_expr.
12937 (graphite_create_new_loop_guard): Same.
12938 (find_cloog_iv_in_expr): Removed.
12939 (compute_cloog_iv_types_1): Removed.
12940 (compute_cloog_iv_types): Removed.
12941 (gloog): Do not call compute_cloog_iv_types.
12942 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
12943 GBB_CLOOG_IV_TYPES.
12944 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
12945 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
12946 (GBB_CLOOG_IV_TYPES): Removed.
12948 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
12950 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
12951 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
12952 (detect_commutative_reduction): Same.
12954 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
12956 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
12957 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
12959 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
12960 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
12961 (rewrite_commutative_reductions_out_of_ssa): Same.
12962 * passes.c (execute_function_todo): Call verify_ssa for every pass
12963 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
12964 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
12965 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
12966 with an extra argument.
12967 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
12968 verify_ssa only when the extra argument is true.
12969 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
12970 with an extra argument.
12971 (tree_transform_and_unroll_loop): Same.
12973 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
12975 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
12976 for all the passes of the LNO having LOOP_CLOSED_SSA.
12977 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
12978 * tree-loop-distribution.c (pass_loop_distribution): Same.
12979 * tree-pass.h (TODO_verify_loops): Removed.
12980 * tree-ssa-loop.c (pass_tree_loop_init): Same.
12982 (pass_tree_unswitch): Same.
12983 (pass_predcom): Same.
12984 (pass_vectorize): Same.
12985 (pass_linear_transform): Same.
12986 (pass_graphite_transforms): Same.
12987 (pass_iv_canon): Same.
12988 (pass_complete_unroll): Same.
12989 (pass_complete_unrolli): Same.
12990 (pass_parallelize_loops): Same.
12991 (pass_loop_prefetch): Same.
12992 (pass_iv_optimize): Same.
12994 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
12996 PR middle-end/32824
12997 * passes.c (init_optimization_passes): Move pass_lim before
12998 pass_copy_prop and pass_dce_loop.
13000 2010-04-06 Jakub Jelinek <jakub@redhat.com>
13003 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
13004 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
13005 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
13006 MULTI_* defines for 4 argument vpermil2p* builtins.
13008 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
13010 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
13011 * config/i386/i386.c (x86_maybe_negate_const_int): New.
13012 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
13013 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
13014 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
13015 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
13016 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
13017 Use x86_maybe_negate_const_int to output insn mnemonic.
13018 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
13019 check from instruction predicate. Update comments.
13020 * config/i386/sync.md (sync_add<mode>): Use
13021 x86_maybe_negate_const_int to output insn mnemonic.
13023 2010-04-06 Jan Hubicka <jh@suse.cz>
13025 PR tree-optimization/42906
13026 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
13027 IGNORE_SELF argument. Set visited_control_parents for fully
13029 (find_obviously_necessary_stmts): Update call of
13030 mark_control_dependent_edges_necessary.
13031 (propagate_necessity): Likewise. Handle PHI edges more curefully.
13033 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
13035 * config/i386/i386.md: Remove comment about 'e' and 'E'
13038 2010-04-06 Richard Guenther <rguenther@suse.de>
13040 PR tree-optimization/43627
13041 * tree-vrp.c (extract_range_from_unary_expr): Widenings
13042 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
13045 2010-04-06 Jakub Jelinek <jakub@redhat.com>
13047 * BASE-VER: Change to 4.6.0.
13050 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
13053 2010-04-06 Richard Guenther <rguenther@suse.de>
13055 PR middle-end/43661
13056 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
13058 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13060 * doc/invoke.texi (Optimize Options): Document that LTO
13061 won't remove object access purely due to incompatible
13064 2010-04-04 Matthias Klose <doko@ubuntu.com>
13066 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
13067 Initialize variable.
13069 2010-04-03 Richard Guenther <rguenther@suse.de>
13071 PR middle-end/42509
13072 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
13073 require a non-NULL MEM_OFFSET.
13075 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
13077 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
13078 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
13079 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
13080 config/alpha/predicates.md, config/arm/arm.md,
13081 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
13082 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
13083 config/darwin9.h, config/darwin.c, config/darwin.h,
13084 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
13085 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
13086 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
13087 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
13088 config/mips/mips.md, config/mn10300/mn10300.c,
13089 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
13090 config/rs6000/aix.h, config/rs6000/dfp.md,
13091 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
13092 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
13093 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
13094 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
13095 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
13096 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
13097 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
13098 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
13099 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
13100 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
13101 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
13102 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
13103 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
13104 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
13105 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
13106 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
13107 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
13108 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
13109 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
13110 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
13111 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
13112 opt-functions.awk, opth-gen.awk, params.def, passes.c,
13113 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
13114 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
13115 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
13116 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
13117 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
13118 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13119 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
13120 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
13121 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
13122 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
13123 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
13124 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
13125 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
13126 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
13128 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13131 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
13132 * aclocal.m4: Regenerate.
13134 2010-04-02 Richard Guenther <rguenther@suse.de>
13136 PR tree-optimization/43629
13137 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
13138 if we have seen a constant value.
13140 2010-04-02 Joseph Myers <joseph@codesourcery.com>
13142 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
13144 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
13147 * arm.c (legitimize_tls_address): Adjust call to
13148 gen_tls_load_dot_plus_four.
13149 (arm_note_pic_base): New function.
13150 (arm_cannot_copy_insn_p): Use it.
13151 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
13154 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13159 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13161 * Makefile.in ($(out_object_file)): Depend on
13162 gt-$(basename $(notdir $(out_file))).h.
13164 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
13166 * config.gcc (lm32-*-rtems*): Add t-lm32.
13168 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
13170 * config.gcc: Add lm32-*-rtems*.
13171 * config/lm32/rtems.h: New file.
13173 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
13176 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
13178 2010-04-01 Jakub Jelinek <jakub@redhat.com>
13180 * dwarf2out.c (output_compilation_unit_header): For
13181 -gdwarf-4 use version 4 instead of version 3.
13182 (output_line_info): For version 4 and above emit additional
13183 maximum ops per insn header field.
13184 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
13186 * dwarf2out.c (is_c_family, is_java): Remove.
13187 (lower_bound_default): New function.
13188 (add_bound_info, gen_descr_array_type_die): Use it.
13190 2010-04-01 Dodji Seketeli <dodji@redhat.com>
13193 * dwarf2out.c (gen_variable_die): Allow debug info for variable
13194 re-declaration when it happens in a function.
13196 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
13198 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
13199 (cgraph_remove_function_insertion_hook): Same.
13200 (cgraph_call_function_insertion_hooks): Same.
13202 2010-04-01 Richard Guenther <rguenther@suse.de>
13204 PR middle-end/43614
13205 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
13206 and TREE_THIS_VOLATILE.
13207 (copy_ref_info): Likewise.
13208 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
13209 * tree.c (build6_stat): Ignore side-effects of all but arg5
13210 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
13213 2010-04-01 Richard Guenther <rguenther@suse.de>
13215 PR tree-optimization/43607
13216 * ipa-type-escape.c (check_call): Do not access non-existing
13219 2010-04-01 Richard Guenther <rguenther@suse.de>
13221 PR middle-end/43602
13223 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
13224 Jack Howarth <howarth@bromo.med.uc.edu>
13226 * tree-profile.c (tree_init_ic_make_global_vars): Make static
13229 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13231 * doc/install.texi (Prerequisites): Document libelf usability on
13232 IRIX 5/6 and Solaris 2.
13233 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
13234 Update GNU as, GNU ld requirements.
13235 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
13236 Document Sun Studio compiler download.
13237 Update and simplify as, ld recommendations.
13238 (Specific, *-*-solaris2.7): Note obsoletion, removal.
13240 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13242 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
13243 with_tune_32 to pentium4.
13245 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
13247 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
13249 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13251 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
13252 obsoletion, removal.
13254 Document GNU as requirement.
13255 Update configure requirements.
13256 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
13257 Recomment IRIX 6.5.18+.
13258 Document IDF/IDL requirement.
13259 Document GNU as requirement.
13260 Document GNU ld bootstrap failure.
13261 Remove freeware.sgi.com reference.
13263 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13265 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
13266 UNIX V4.0, V5.0 obsoletion, removal.
13267 Remove --with-gc=simple reference.
13268 Update VM requirements during bootstrap.
13269 Remove -oldas bootstrap description.
13270 Update binutils reference.
13271 Remove comparison failure note.
13273 2010-03-31 Richard Guenther <rguenther@suse.de>
13274 Zdenek Dvorak <ook@ucw.cz>
13275 Sebastian Pop <sebastian.pop@amd.com>
13277 PR middle-end/43464
13278 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
13279 with multiple arguments.
13280 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
13282 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
13284 * graphite-dependences.c (print_pddr): Call print_pdr with an
13286 * graphite-poly.c (debug_pdr): Add an extra argument for the
13289 (print_pbb_domain): Same.
13291 (print_scop_context): Same.
13292 (print_scop): Same.
13293 (print_cloog): Same.
13294 (debug_pbb_domain): Same.
13296 (print_pdrs): Same.
13297 (debug_pdrs): Same.
13298 (debug_scop_context): Same.
13299 (debug_scop): Same.
13300 (debug_cloog): Same.
13301 (print_scop_params): Same.
13302 (debug_scop_params): Same.
13303 (print_iteration_domain): Same.
13304 (print_iteration_domains): Same.
13305 (debug_iteration_domain): Same.
13306 (debug_iteration_domains): Same.
13307 (print_scattering_function): Same.
13308 (print_scattering_functions): Same.
13309 (debug_scattering_function): Same.
13310 (debug_scattering_functions): Same.
13311 * graphite-poly.h (debug_pdr): Update declaration.
13313 (print_pbb_domain): Same.
13315 (print_scop_context): Same.
13316 (print_scop): Same.
13317 (print_cloog): Same.
13318 (debug_pbb_domain): Same.
13320 (print_pdrs): Same.
13321 (debug_pdrs): Same.
13322 (debug_scop_context): Same.
13323 (debug_scop): Same.
13324 (debug_cloog): Same.
13325 (print_scop_params): Same.
13326 (debug_scop_params): Same.
13327 (print_iteration_domain): Same.
13328 (print_iteration_domains): Same.
13329 (debug_iteration_domain): Same.
13330 (debug_iteration_domains): Same.
13331 (print_scattering_function): Same.
13332 (print_scattering_functions): Same.
13333 (debug_scattering_function): Same.
13334 (debug_scattering_functions): Same.
13336 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
13338 * graphite-poly.c (print_scattering_function_1): New.
13339 (print_scattering_function): Call it.
13340 (print_scop_params): Remove spaces at the end of lines.
13341 (print_cloog): New.
13342 (debug_cloog): New.
13343 * graphite-poly.h (print_cloog): Declared.
13344 (debug_cloog): Declared.
13346 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
13348 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
13350 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
13351 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
13352 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
13353 to switch between adding the IV bump in loop->latch or in loop->header.
13355 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
13357 * graphite-poly.c (print_scattering_function): Pretty print following
13358 the scoplib format.
13360 (print_pbb_domain): Same.
13361 (dump_gbb_cases): Same.
13362 (dump_gbb_conditions): Same.
13363 (print_pdrs): Same.
13365 (print_scop_params): Same.
13366 (print_scop_context): Same.
13367 (print_scop): Same.
13368 (print_pbb_body): New.
13369 (lst_indent_to): New.
13370 (print_lst): Start new lines with a #.
13371 * graphite-poly.h (pbb_bb): New.
13372 (pbb_index): Use pbb_bb.
13373 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
13375 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
13377 2010-03-31 Jakub Jelinek <jakub@redhat.com>
13379 * dwarf2out.c (size_of_die): For -gdwarf-4 use
13380 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
13381 and 0 instead of 1 for dw_val_class_flag.
13382 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
13383 dw_val_class_range_list, dw_val_class_loc_list,
13384 dw_val_class_lineptr and dw_val_class_macptr, use
13385 DW_FORM_flag_present for dw_val_class_flag and
13386 DW_FORM_exprloc for dw_val_class_loc.
13387 (output_die): For -gdwarf-4 print dw_val_class_loc
13388 size as uleb128 instead of 1 or 2 bytes and don't print
13389 anything for dw_val_class_flag.
13391 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
13392 instead of cselib_lookup following by tweaking locs->setting_insn.
13395 * cselib.c (cselib_process_insn): Clear cselib_current_insn
13396 even before returning from label, setjmp call or volatile asm
13399 2010-03-31 Richard Guenther <rguenther@suse.de>
13401 PR middle-end/43600
13402 * cgraphunit.c (cgraph_output_in_order): Do not allocate
13403 temporary data on stack.
13405 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13407 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
13408 (PUSHSECTION_ASM_OP): Remove.
13409 (POPSECTION_ASM_OP): Remove.
13410 (PUSHSECTION_FORMAT): Remove.
13411 * config/sol2.h (PUSHSECTION_FORMAT): Define.
13412 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
13413 * config/sol2.c (solaris_output_init_fini): Use it.
13415 2010-03-31 Jie Zhang <jie@codesourcery.com>
13418 * opt-functions.awk (var_type_struct): Use signed char type
13419 for simple variables.
13421 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13423 * config/sol2.c: Include output.h.
13424 (solaris_assemble_visibility): New function.
13425 * config/t-sol2 (sol2.o): Add output.h dependency.
13426 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
13427 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
13430 2010-03-31 Jakub Jelinek <jakub@redhat.com>
13433 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
13434 V2SImode or XFmode on PRE_DEC.
13437 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
13440 2010-03-31 Jie Zhang <jie@codesourcery.com>
13443 * reload.h (caller_save_initialized_p): Declare.
13444 * toplev.c (backend_init_target): Don't call
13445 init_caller_save but set caller_save_initialized_p to false.
13446 * caller-save.c (caller_save_initialized_p): Define.
13447 (init_caller_save): Check caller_save_initialized_p.
13448 * ira.c (ira): Call init_caller_save if flag_caller_saves.
13450 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13453 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
13454 and soft-fp/t-softfp to tmake_file.
13455 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
13456 (LIBGCC2_TF_CEXT): Define.
13459 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
13462 * cselib.c (n_useless_values): Document handling of debug locs.
13463 (n_useless_debug_values, n_debug_values): New variables.
13464 (new_elt_loc_list): Don't add to debug values, keep count.
13465 (promote_debug_loc): New.
13466 (cselib_reset_table): Zero new variables.
13467 (entry_and_rtx_equal_p): Promote debug locs.
13468 (discard_useless_locs): Increment n_useless_debug_values for
13470 (remove_useless_values): Adjust n_useless_values and n_debug_values
13471 with n_useless_debug_values.
13472 (add_mem_for_addr): Promote debug locs.
13473 (cselib_lookup_mem): Likewise.
13474 (cselib_lookup_addr): Renamed to...
13475 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
13476 (cselib_log_lookup): ... this. Turn into...
13477 (cselib_lookup_addr): ... new wrapper.
13478 (cselib_lookup_from_insn): New.
13479 (cselib_invalidate_regno): Increment n_useless_debug_values for
13481 (cselib_invalidate_mem): Likewise.
13482 (cselib_process_insn): Take n_deleted and n_debug_values into
13483 account to guard remove_useless_value call.
13484 (cselib_finish): Zero n_useless_debug_values.
13485 * cselib.h (cselib_lookup_from_insn): Declare.
13486 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
13487 (sched_analyze_2): Likewise.
13489 2010-03-30 Jakub Jelinek <jakub@redhat.com>
13491 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
13493 (adjust_mems): Replace narrowing SUBREG of expression containing
13494 just PLUS, MINUS, MULT and ASHIFT of registers and constants
13495 with operations in the narrower mode.
13498 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
13499 regs_invalidated_by_call instead all call_used_reg_set registers.
13501 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
13503 PR middle-end/43430
13504 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
13505 pointer comparisons with types_compatible_p.
13506 * tree-vect-stmts.c (vectorizable_call): Same.
13507 (vectorizable_condition): Same.
13509 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13511 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
13512 stack check if the mask would be zero.
13514 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
13515 Jack Howarth <howarth@bromo.med.uc.edu>
13517 * tree-profile.c (tree_init_ic_make_global_vars): Make static
13520 2010-03-30 Joseph Myers <joseph@codesourcery.com>
13523 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
13525 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
13526 Include ___unordxf2 and ___unordtf2.
13527 * config/i386/libgcc-glibc.ver: Do not define inheritance from
13530 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
13532 * config/lm32/t-lm32: New file.
13533 * config.gcc: Use the above file when targetting lm32.
13535 2010-03-28 Duncan Sands <baldrick@free.fr>
13537 * Makefile.in (PLUGIN_HEADERS): Add except.h.
13539 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
13541 PR middle-end/43431
13542 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
13543 Improve vectorization cost model diagnostic.
13545 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
13547 PR middle-end/43436
13548 * tree-vect-data-refs.c (vect_analyze_data_refs): When
13549 compute_data_dependences_for_loop returns false, early exit
13550 and output an extra diagnostic for the failed data reference
13553 2010-03-29 Richard Guenther <rguenther@suse.de>
13555 PR tree-optimization/43560
13556 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
13557 (can_sm_ref_p): Treat stores to readonly locations as trapping.
13559 2010-03-29 Jie Zhang <jie@codesourcery.com>
13562 * toplev.c (process_options): Set optimization_default_node
13563 and optimization_current_node.
13564 * opts.c (decode_options): Don't set optimization_default_node
13565 and optimization_current_node.
13567 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
13569 * config/rtems.h: Abandon -qrtems_debug.
13571 2010-03-28 Jan Hubicka <jh@suse.cz>
13573 PR tree-optimization/43505
13574 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
13575 map should not be copied.
13577 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13579 PR middle-end/41674
13580 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
13581 cdtors, set DECL_PRESERVE_P.
13582 * ipa.c (cgraph_externally_visible_p): Return true if declaration
13583 should be preseved.
13585 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
13587 PR tree-optimization/43528
13588 * stor-layout.c (place_field): Check that constant fits into
13589 unsigned HWI when skipping calculation of MS bitfield layout.
13591 2010-03-27 Jan Hubicka <jh@suse.cz>
13593 PR middle-end/43391
13594 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
13595 notice_global_symbol work.
13597 2010-03-27 Jakub Jelinek <jakub@redhat.com>
13599 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
13600 instead of dwarf2out_decl.
13601 (struct var_loc_node): Remove section_label field.
13602 (dwarf2out_function_decl): New function.
13603 (dwarf2out_var_location): Don't set section_label field.
13604 (dwarf2out_begin_function): Don't empty decl_loc_table here.
13606 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
13608 PR tree-optimization/43544
13609 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
13610 First argument for builtin vectorized function hook is now a
13611 tree to be able to distinguish between machine specific and
13613 * targhooks.c (default_builtin_vectorized_function): Ditto.
13614 * targhooks.h (default_builtin_vectorized_function): Ditto.
13615 * target.h (struct gcc_target): Ditto.
13616 * tree-vect-stmts.c (vectorizable_function): Ditto.
13617 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
13618 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
13621 2010-03-26 Joseph Myers <joseph@codesourcery.com>
13624 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
13625 nested binding iff it is a FUNCTION_DECL.
13626 (store_parm_decls_newstyle): Pass nested=true to bind for
13627 FUNCTION_DECLs amongst parameters.
13629 2010-03-26 Jakub Jelinek <jakub@redhat.com>
13631 * var-tracking.c (vt_expand_loc_callback): Don't run
13632 cselib_expand_value_rtx_cb in dummy mode if
13633 cselib_dummy_expand_value_rtx_cb returned false.
13635 * var-tracking.c (emit_note_insn_var_location): For one part
13636 notes with offset 0, don't add EXPR_LIST around the location.
13637 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
13638 add_location_or_const_value_attribute): Adjust for that change.
13641 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
13642 into first operand and location into second.
13643 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
13644 dw_cfi_oprnd_loc for DW_CFA_expression.
13645 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
13646 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
13647 assume first argument is regnum and second argument is location.
13649 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
13652 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
13653 of scratch register to DImode. Split to DImode comparison operator.
13654 Use SImode subreg of scratch register in the multiplication.
13655 (*cmp_sadd_sidi): Ditto.
13656 (*cmp_ssub_si): Ditto.
13657 (*cmp_ssub_sidi): Ditto.
13659 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
13662 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
13663 Remove invalid assert and wrong comment.
13665 2010-03-26 Jakub Jelinek <jakub@redhat.com>
13668 * flags.h (final_insns_dump_p): New extern.
13669 * final.c (final_insns_dump_p): New variable.
13670 (rest_of_clean_state): Set it before -fdump-final-insns=
13671 dumping, clear afterwards.
13672 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
13673 MEM_ALIAS_SET on MEMs.
13675 2010-03-26 David S. Miller <davem@davemloft.net>
13677 * configure.ac: Fix sparc GOTDATA_OP bug check.
13678 * configure: Rebuild.
13680 2010-03-26 Alan Modra <amodra@gmail.com>
13682 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
13684 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13686 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
13687 TLS_SECTION_ASM_FLAG.
13689 2010-03-25 Jakub Jelinek <jakub@redhat.com>
13692 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
13693 Clear first_function_block_is_cold.
13696 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
13697 argument if the argument is truth_value_p.
13699 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13701 * config/rs6000/constraints.md: Update copyright year for my changes.
13704 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
13705 used in reg+reg addressing, swap registers.
13707 2010-03-24 Jakub Jelinek <jakub@redhat.com>
13710 * target.h (struct gcc_target): Add code_end hook.
13711 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
13712 if not yet defined.
13713 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
13714 * toplev.c (compile_file): Call targetm.asm_out.code_end
13715 hook before unwind info/debug info output.
13716 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
13717 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
13718 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
13719 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
13720 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
13721 * config/i386/i386.c (ix86_file_end): Renamed to...
13722 (ix86_code_end): ... this. Make static. Don't call
13723 file_end_indicate_exec_stack. Emit unwind info using
13724 final_start_function/final_end_function.
13725 (darwin_x86_file_end): Remove.
13726 (TARGET_ASM_CODE_END): Define.
13727 * config/i386/i386.h (TARGET_ASM_FILE_END,
13728 NEED_INDICATE_EXEC_STACK): Don't define.
13729 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
13730 (TARGET_ASM_FILE_END): Define to darwin_file_end.
13731 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
13732 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
13735 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
13736 at the beginning and final_end_function at the end.
13737 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
13739 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13741 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
13742 and Sun as TLS syntax.
13743 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
13744 * configure: Regenerate.
13745 * config.in: Regenerate.
13746 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
13747 (default_elf_asm_named_section): Use it.
13748 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
13749 (i386_output_dwarf_dtprel): Likewise.
13750 (output_addr_const_extra): Likewise.
13751 (output_pic_addr_const): Lowercase @GOTTPOFF.
13752 (output_addr_const_extra): Likewise.
13753 (output_pic_addr_const): Lowercase @GOTNTPOFF.
13754 (output_addr_const_extra): Likewise.
13755 (output_pic_addr_const): Lowercase @INDNTPOFF.
13756 (output_addr_const_extra): Likewise.
13757 (output_pic_addr_const): Lowercase @NTPOFF.
13758 (output_addr_const_extra): Likewise.
13759 (output_pic_addr_const): Lowercase @TPOFF.
13760 (output_addr_const_extra): Likewise.
13761 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
13762 (*tls_global_dynamic_64): Likewise.
13763 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
13764 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
13766 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
13767 (ASM_OUTPUT_TLS_COMMON): Use it.
13768 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
13771 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
13772 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
13773 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
13774 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
13775 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
13776 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
13778 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13780 * config/i386/i386.c (override_options): Don't accept
13781 -mtls-dialect=sun any longer.
13782 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
13783 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
13784 (*tls_local_dynamic_base_32_sun): Likewise.
13785 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
13787 2010-03-24 Jakub Jelinek <jakub@redhat.com>
13790 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
13791 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
13794 * ira.c (adjust_cleared_regs): New function.
13795 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
13799 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
13801 * expr.c (expand_expr_real): Restore previous
13802 curr_insn_source_location and curr_insn_block after
13803 expand_expr_real_1 call.
13804 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
13805 instead of expand_expr_real_1.
13807 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
13809 PR rtl-optimization/43413
13810 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
13813 2010-03-22 James E. Wilson <wilson@codesourcery.com>
13816 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
13817 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
13819 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
13821 * config/i386/i386.c (ix86_target_string): Add -mfma.
13822 Fix a typo in comment.
13824 2010-03-22 Mike Stump <mikestump@comcast.net>
13827 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
13828 Don't overly align based upon packed packed fields.
13830 2010-03-22 Jason Merrill <jason@redhat.com>
13832 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
13833 Use () rather than [], and move before the element type.
13835 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13837 * doc/configfiles.texi (Configuration Files): Removed
13838 fixinc/Makefile*, intl/Makefile.*.
13839 * doc/makefile.texi: Fixed markup. Abstract from version
13840 control system used.
13841 (Makefile): Removed obsolete gcc/java/parse.y example.
13842 * doc/sourcebuild.texi: Likewise.
13843 (Top Level): Added config, gnattools, libdecnumber, libgcc,
13844 libgomp, libssp. Removed fastjar.
13845 (Miscellaneous Docs): Clarify location.
13846 Added COPYING3, COPYING3.LIB.
13847 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
13849 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13852 * config/i386/i386.c (x86_function_profiler)
13853 [!NO_PROFILE_COUNTERS]: Fix typo.
13854 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
13857 2010-03-22 Janis Johnson <janis187@us.ibm.com>
13858 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13860 * doc/sourcebuild.texi (Test Directives): Split into six
13861 subsections, with most of the current text in new subsections
13862 Directives, Selectors, and Final Actions.
13863 (Directives): Split list of test directives into multiple
13865 (Selectors): Describe use and syntax of selectors.
13866 (Effective-Target Keywords): Describe all existing keywords.
13867 (Add Options): Describe features for dg-add-options.
13868 (Require Support): Describe variants of dg-require-support.
13869 (Final Actions): Describe commands to use in dg-final.
13871 2010-03-22 Michael Matz <matz@suse.de>
13873 PR middle-end/43475
13874 * recog.c (validate_replace_rtx_group): Replace also in
13875 REG_EQUAL and REG_EQUIV notes.
13877 2010-03-22 Richard Guenther <rguenther@suse.de>
13879 PR tree-optimization/43390
13880 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
13881 sure vector extracts are type correct.
13883 2010-03-22 Richard Guenther <rguenther@suse.de>
13885 PR middle-end/40106
13886 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
13887 x * sqrt (x) even when optimizing for size if the target
13888 has native support for sqrt.
13890 2010-03-22 Jakub Jelinek <jakub@redhat.com>
13892 * varasm.c (make_decl_rtl_for_debug): Also clear
13893 flag_mudflap for the duration of make_decl_rtl call.
13896 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
13897 locs from preserved VALUEs.
13899 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13901 PR middle-end/42718
13902 * pa.md (movmemsi): Set align to one if zero.
13903 (movmemdi): Likewise.
13905 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
13908 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
13909 with their corresponding prologue pushes.
13911 2010-03-20 Andrew Pinski <pinskia@gmail.com>
13914 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
13915 at the begining or end.
13916 (spu_expand_epilogue): Likewise.
13918 2010-03-20 Richard Guenther <rguenther@suse.de>
13920 PR rtl-optimization/43438
13921 * combine.c (make_extraction): Properly zero-/sign-extend an
13922 extraction of the low part of a CONST_INT. Also handle
13925 2010-03-19 Mike Stump <mikestump@comcast.net>
13927 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
13928 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
13929 (override_options): Use SUBTARGET32_DEFAULT_CPU.
13931 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
13934 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
13937 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
13939 PR rtl-optimization/42258
13940 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
13941 use that may match DEF.
13944 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
13945 the cost of loading the constant rather than assuming
13947 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
13948 outer code is AND, do the same tests as the andsi3 expander and
13949 return COSTS_N_INSNS (1) if and is cheap.
13951 * optabs.c (avoid_expensive_constant): Fix formatting.
13953 2010-03-19 Michael Matz <matz@suse.de>
13956 * attribs.c (decl_attributes): When rebuilding a function pointer
13957 type use the same qualifiers as the original pointer type.
13959 2010-03-19 Martin Jambor <mjambor@suse.cz>
13961 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
13962 and is_gimple_ip_invariant_address.
13964 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13967 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13969 * config/arm/arm.c (arm_override_options): Turn off
13970 flag_dwarf2_cfi_asm for AAPCS variants.
13972 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13975 * config/arm/arm.c (emit_multi_reg_push): Update comments.
13976 Use PRE_MODIFY instead of PRE_DEC.
13977 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
13978 (vfp_emit_fstmd): Likewise.
13980 2010-03-19 Michael Matz <matz@suse.de>
13983 * builtins.c (expand_builtin_interclass_mathfn,
13984 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
13987 2010-03-19 Richard Guenther <rguenther@suse.de>
13989 PR tree-optimization/43415
13990 * tree-ssa-pre.c (phi_translate): Split out worker to ...
13991 (phi_translate_1): ... this.
13992 (phi_translate): Move all caching here. Cache all NARY
13993 and REFERENCE translations.
13995 2010-03-19 David S. Miller <davem@davemloft.net>
13997 With help from Eric Botcazou.
13998 * config/sparc/sparc.c: Include dwarf2out.h.
13999 (emit_pic_helper): Delete.
14000 (pic_helper_symbol_name): Delete.
14001 (pic_helper_emitted_p): Delete.
14002 (pic_helper_needed): New.
14003 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
14004 (get_pc_thunk_name): New.
14005 (load_pic_register): Remove 'delay_pic_helper' arg. Use
14006 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
14007 Set pic_helper_needed to true. Don't call emit_pic_helper.
14008 (sparc_expand_prologue): Update load_pic_register call.
14009 (sparc_output_mi_thunk): Likewise.
14010 (sparc_file_end): Emit a hidden comdat symbol for the PIC
14011 thunk if possible. Output CFI information as needed.
14013 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
14014 Jack Howarth <howarth@bromo.med.uc.edu>
14017 * config/i386/i386.h: Fix ABI on darwin x86-32.
14019 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
14021 * tree.h: Declare make_decl_rtl_for_debug.
14022 * varasm.c (make_decl_rtl_for_debug): New.
14023 * dwarf2out.c (rtl_for_decl_location): Call it.
14024 * cfgexpand.c (expand_debug_expr): Call it.
14026 2010-03-18 Jakub Jelinek <jakub@redhat.com>
14029 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
14033 * var-tracking.c (vt_init_cfa_base): Do nothing if
14034 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
14036 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
14039 * var-tracking.c (canonicalize_vars_star): New.
14040 (dataflow_post_merge_adjust): Use it.
14042 2010-03-18 Jakub Jelinek <jakub@redhat.com>
14045 * var-tracking.c (non_suitable_const): New function.
14046 (add_uses): For DEBUG_INSNs with constants, don't record any
14047 value, instead just the constant value itself.
14048 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
14049 is not VAR_LOC_UNKNOWN_P, set var to the constant.
14050 (emit_notes_in_bb): Likewise.
14051 (emit_note_insn_var_location): For onepart variables if
14052 cur_loc is a VOIDmode constant, use DECL_MODE.
14054 2010-03-18 Martin Jambor <mjambor@suse.cz>
14056 PR middle-end/42450
14057 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
14058 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
14059 all non-clones. Moved call redirection...
14060 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
14061 (cgraph_materialize_all_clones): Dispose of all
14062 combined_args_to_skip bitmaps.
14063 (verify_cgraph_node): Do not check for edges pointing to wrong
14064 nodes in inline clones.
14065 * tree-inline.c (copy_bb): Call
14066 cgraph_redirect_edge_call_stmt_to_callee.
14067 * ipa.c (cgraph_remove_unreachable_nodes): Call
14068 cgraph_node_remove_callees even when there are used clones.
14070 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
14072 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
14074 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
14077 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
14080 2010-03-18 Michael Matz <matz@suse.de>
14082 PR middle-end/43419
14083 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
14084 into sqrt(x) if we need to preserve signed zeros.
14086 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
14087 Eric Botcazou <ebotcazou@adacore.com>
14089 PR rtl-optimization/43360
14090 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
14091 note if we don't know its invariant status.
14093 2010-03-18 Michael Matz <matz@suse.de>
14095 PR tree-optimization/43402
14096 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
14097 PHI chains of ssa names registered for update.
14099 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
14102 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
14103 non-offsettable and pre_modify update addressing.
14104 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
14105 and "2" alternatives "#".
14106 (*movdd_softfloat32): Make all alternatives "#";
14107 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
14108 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
14109 (*movdf_softfloat32): Make all alternatives "#";
14110 (movdi): Use the new DIFD mode iterator to create a common splitter
14111 for movdi, movdf and movdd patterns.
14113 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
14115 * common.opt (dumpdir): Remove redundant tab.
14117 2010-03-17 Martin Jambor <mjambor@suse.cz>
14119 PR tree-optimization/43347
14120 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
14121 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
14123 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
14125 PR rtl-optimization/42216
14126 * regrename.c (create_new_chain): New function, broken out from...
14127 (scan_rtx_reg): ... here. Call it. Handle the case where we are
14128 appending a use to an empty chain.
14129 (build_def_use): Remove previous changes that convert OP_INOUT to
14130 OP_OUT operands; instead detect the case where an OP_INOUT operand
14131 uses a previously untracked register and create an empty chain for it.
14133 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14135 * doc/extend.texi (Function Attributes): Rewrite unfinished
14136 sentence in ms_abi documentation.
14138 2010-03-17 Alan Modra <amodra@gmail.com>
14140 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
14141 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
14142 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
14143 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
14145 2010-03-16 Richard Henderson <rth@redhat.com>
14147 PR middle-end/43365
14148 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
14149 (lower_try_finally): Save and restore eh_seq around the expansion
14150 of the try-finally.
14152 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
14154 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
14155 statements before splitting block.
14157 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14159 * doc/sourcebuild.texi (Testsuites): Fix markup.
14160 Use pathnames relative to gcc/testsuite.
14161 (Test Directives): Move description of how timeout is determined.
14162 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
14163 (C Tests): Correct gcc.misc-tests directory.
14164 Framework tests now live in gcc.test-framework.
14166 2010-03-16 Richard Guenther <rguenther@suse.de>
14168 PR middle-end/43379
14169 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
14170 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
14172 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
14173 Alexandre Oliva <aoliva@redhat.com>
14175 PR tree-optimization/42917
14176 * lambda-code.c (remove_iv): Skip debug statements.
14177 (lambda_loopnest_to_gcc_loopnest): Likewise.
14178 (not_interesting_stmt): Debug statements are not interesting.
14180 2010-03-16 Jakub Jelinek <jakub@redhat.com>
14184 * cselib.c (cselib_preserve_constants,
14185 cfa_base_preserved_val): New static variables.
14186 (preserve_only_constants): New function.
14187 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
14188 clear its REG_VALUES. If cselib_preserve_constants, don't
14189 empty the whole hash table, but preserve there VALUEs with constants,
14190 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
14191 (cselib_preserve_cfa_base_value): New function.
14192 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
14193 (cselib_init): Change argument to int bitfield. Set
14194 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
14196 (cselib_finish): Clear cselib_preserve_constants and
14197 cfa_base_preserved_val.
14198 * cselib.h (enum cselib_record_what): New enum.
14199 (cselib_init): Change argument to int.
14200 (cselib_preserve_cfa_base_value): New prototype.
14201 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
14202 * dse.c (dse_step1): Likewise.
14203 * cfgcleanup.c (thread_jump): Likewise.
14204 * sched-deps.c (sched_analyze): Likewise.
14205 * gcse.c (local_cprop_pass): Likewise.
14206 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
14207 If FN is non-NULL, call the callback always and whenever it returns
14208 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
14209 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
14210 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
14211 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
14212 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
14213 * var-tracking.c: Include recog.h.
14214 (bb_stack_adjust_offset): Remove.
14215 (vt_stack_adjustments): Don't call it, instead just gather the
14216 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
14217 (adjust_stack_reference): Remove.
14218 (compute_cfa_pointer): New function.
14219 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
14220 (struct adjust_mem_data): New type.
14221 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
14223 (get_address_mode): New function.
14224 (replace_expr_with_values): Use it.
14225 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
14226 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
14227 (adjust_sets): Remove.
14228 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
14229 Use get_address_mode.
14230 (get_adjusted_src): Remove.
14231 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
14232 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
14233 (add_with_sets): Don't call adjust_sets.
14234 (fp_setter, vt_init_cfa_base): New functions.
14235 (vt_initialize): Change return type to bool. Move most of pool etc.
14236 initialization to the beginning of the function from end. Pass
14237 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
14238 If !frame_pointer_needed, call vt_stack_adjustment before mos
14239 vector is filled, call vt_init_cfa_base if argp/framep has been
14240 eliminated to sp. If frame_pointer_needed and argp/framep has
14241 been eliminated to hard frame pointer, set
14242 hard_frame_pointer_adjustment and call vt_init_cfa_base after
14243 encountering fp setter in the prologue. For MO_ADJUST, call
14244 log_op_type before pusing the op into mos vector, not afterwards.
14245 Call adjust_insn before cselib_process_insn/add_with_sets,
14246 call cancel_changes (0) afterwards.
14247 (variable_tracking_main_1): Adjust for vt_initialize calling
14248 vt_stack_adjustments and returning whether it succeeded or not.
14250 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
14252 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
14255 2010-03-15 Jakub Jelinek <jakub@redhat.com>
14257 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
14259 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
14260 drap_reg has not been set.
14262 2010-03-15 Michael Matz <matz@suse.de>
14264 PR middle-end/43300
14265 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
14266 use it to expand block copies.
14267 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
14268 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
14269 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
14271 2010-03-15 Richard Guenther <rguenther@suse.de>
14273 PR tree-optimization/43367
14274 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
14277 2010-03-15 Richard Guenther <rguenther@suse.de>
14279 PR tree-optimization/43317
14280 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
14282 2010-03-15 Martin Jambor <mjambor@suse.cz>
14284 PR tree-optimization/43141
14285 * tree-sra.c (create_abstract_origin): New function.
14286 (modify_function): Call create_abstract_origin.
14288 2010-03-15 Chris Demetriou <cgd@google.com>
14290 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
14293 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14295 PR middle-end/43354
14296 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
14297 call insert_out_of_ssa_copy for default definitions.
14299 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14301 * graphite-clast-to-gimple.c (my_long_long): Defined.
14302 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
14303 * graphite-sese-to-poly.c (my_long_long): Defined.
14304 (scop_ivs_can_be_represented): Use it.
14306 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14308 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
14309 graphite-max-bbs-per-function, and loop-block-tile-size.
14310 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
14312 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
14314 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14316 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
14317 forward declaration.
14318 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
14319 (add_upper_bounds_from_estimated_nit): New.
14320 (build_loop_iteration_domains): Use it.
14322 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14324 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
14326 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14328 PR middle-end/43306
14329 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
14330 should be an INTEGER_CST. Also handle CASE_CONVERT.
14332 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14334 * graphite.c (graphite_initialize): To bound the number of bbs per
14335 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
14336 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
14337 * doc/invoke.texi: Document it.
14339 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14341 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
14342 * graphite-sese-to-poly.h (build_poly_scop): Same.
14344 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
14346 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
14347 the number of parameters in the scop. Use as an upper bound
14348 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
14349 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
14350 * doc/invoke.texi: Document it.
14352 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
14354 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
14355 * doc/c-tree.texi: Remove.
14356 * doc/generic.texi: Merge c-tree.texi here.
14357 * doc/gccint.texi (Trees): Remove menu entry.
14358 (c-tree.texi): Remove @include.
14359 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
14360 * doc/languages.texi (Reading RTL): Ditto.
14362 2010-03-12 Steve Ellcey <sje@cup.hp.com>
14365 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
14367 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14369 PR middle-end/42431
14370 * gcc/config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
14371 code added to work around reload clobbering CONST insns.
14373 2010-03-12 Jakub Jelinek <jakub@redhat.com>
14375 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
14376 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
14377 (cselib_preserve_only_values): Remove retain argument, don't
14378 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
14379 * cselib.h (cselib_preserve_only_values): Remove retain argument.
14380 * var-tracking.c (micro_operation): Move insn field before union.
14381 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
14382 (struct variable_tracking_info_def): Remove n_mos field, change
14383 mos into a vector of micro_operations.
14384 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
14385 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
14386 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
14387 changing into a vector.
14388 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
14389 come before all other uops generated by add_stores.
14390 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
14392 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
14393 a vector. Run just one pass over the bbs instead of separate counting
14394 and computation phase.
14395 (vt_finalize): Free VTI (bb)->mos vector instead of array.
14398 * tree-inline.c (remap_decls): Put old_var rather than origin_var
14399 into *nonlocalized_list vector.
14400 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
14401 even if origin is non-NULL.
14402 (gen_variable_die): Likewise.
14403 (process_scope_var): Don't change origin.
14404 (gen_decl_die): Likewise.
14405 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
14406 before adding new edges instead of after it, fix moving over
14409 2010-03-11 David S. Miller <davem@davemloft.net>
14411 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
14413 * configure: Rebuild.
14415 2010-03-11 Martin Jambor <mjambor@suse.cz>
14417 PR tree-optimization/43257
14418 * tree.c (assign_assembler_name_if_neeeded): New function.
14419 (free_lang_data_in_cgraph): Assembler name assignment moved to the
14420 above new function.
14421 * tree.h (assign_assembler_name_if_neeeded): Declare.
14422 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
14423 the function if needed.
14425 2010-03-11 Chris Demetriou <cgd@google.com>
14427 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
14428 include/stdint-gcc.h, and include/stdint.h world-readable.
14430 2010-03-11 Richard Guenther <rguenther@suse.de>
14432 PR tree-optimization/43255
14433 * tree-vrp.c (process_assert_insertions_for): Do not insert
14434 asserts for trivial conditions.
14436 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14438 PR tree-optimization/43280
14439 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
14440 generation. Move calculation of size out of the if branch.
14441 (find_bswap): Modify compare number generation.
14443 2010-03-11 Richard Guenther <rguenther@suse.de>
14446 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
14447 (input_gimple_stmt): Fixup handled component types during
14448 operand read. Also fix up decls in ADDR_EXPRs.
14450 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
14452 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
14453 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
14455 2010-03-10 Jan Hubicka <jh@suse.cz>
14458 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
14459 * varasm.c (get_variable_section): Don't do that here...
14460 (make_decl_rtl): ... and here.
14461 (do_assemble_alias): Produce decl RTL.
14462 (assemble_alias): Likewise.
14464 2010-03-10 Jakub Jelinek <jakub@redhat.com>
14467 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
14468 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
14470 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
14471 (based_loc_descr): Only express drap or vdrap regno based expressions
14472 using DW_OP_fbreg when not optimizing.
14473 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
14474 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
14475 REG_CFA_SET_VDRAP note.
14477 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
14479 PR tree-optimization/43236
14480 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
14481 error in calculation of base address in reverse iteration case.
14482 (generate_builtin): Take number of latch executions if the statement
14485 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
14487 PR middle-end/42859
14488 * tree-eh.c: Include pointer-set.h.
14489 (lower_eh_dispatch): Filter out duplicate case labels and
14490 remove the unneeded edge when the label is unused. Return
14491 true when some edges are removed.
14492 (execute_lower_eh_dispatch): When any lowering resulted in
14493 removing an edge, also delete unreachable blocks.
14495 2010-03-10 Jakub Jelinek <jakub@redhat.com>
14498 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
14499 UNSPEC_MACHOPIC_OFFSET.
14501 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
14504 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
14505 (m68k_delegitimize_address): New function.
14507 2010-03-09 Jakub Jelinek <jakub@redhat.com>
14510 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
14513 * var-tracking.c (adjust_sets): New function.
14514 (count_with_sets, add_with_sets): Use it.
14515 (get_adjusted_src): New inline function.
14516 (add_stores): Use it.
14519 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
14520 call cselib_dummy_expand_value_rtx_cb instead of
14521 cselib_expand_value_rtx_cb.
14524 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
14525 * config/i386/i386.c: Include debug.h and dwarf2out.h.
14526 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
14527 and .cfi_endproc around the pic thunks.
14528 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
14529 all queued unwind info register saves are saved before the call.
14530 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
14531 considered as sp-=4 for unwind info and the pop as sp+=4 which
14532 also clobbers dest, but doesn't actually restore it.
14535 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
14536 RTX_FRAME_RELATED_P.
14538 2010-03-09 Jie Zhang <jie@codesourcery.com>
14540 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
14541 whitespaces in output template.
14543 2010-03-09 Jie Zhang <jie@codesourcery.com>
14545 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
14546 out array boundary.
14548 2010-03-08 Jakub Jelinek <jakub@redhat.com>
14550 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
14551 builtins.exp in a separate job.
14553 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
14555 * graphite-sese-to-poly.c (add_param_constraints): Use
14556 lower_bound_in_type and upper_bound_in_type.
14558 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
14560 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
14561 instead of unsigned_type_node.
14563 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
14564 Reza Yazdani <reza.yazdani@amd.com>
14566 PR middle-end/43065
14567 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
14568 on pointer type parameters.
14570 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
14572 PR middle-end/42644
14573 PR middle-end/42130
14574 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
14575 handle conversions from pointer to integers.
14576 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
14577 induction variable, to be able to work with code generated by CLooG.
14578 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
14579 (build_poly_scop): Bail out if we cannot codegen a loop.
14581 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
14583 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
14584 code generation with gloog_error.
14586 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
14588 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
14589 Call fold_convert on all the returned values.
14590 (expand_scalar_variables_expr): Pass to
14591 expand_scalar_variables_ssa_name the type of the resulting expression.
14593 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
14595 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
14596 ppl_min_for_le_pointset.
14597 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
14598 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
14600 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
14602 * graphite-dependences.c (map_into_dep_poly): Removed.
14603 (dependence_polyhedron_1): Use combine_context_id_scat.
14605 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
14607 * graphite-poly.h (struct poly_scattering): Add layout documentation.
14608 (struct poly_bb): Same.
14609 (combine_context_id_scat): New.
14611 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
14613 PR middle-end/42326
14614 * sese.c (name_defined_in_loop_p): Return false for default
14617 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
14619 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
14620 and clean up the logic.
14622 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
14624 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
14627 2010-03-08 Jakub Jelinek <jakub@redhat.com>
14629 * var-tracking.c (remove_cselib_value_chains): Define only for
14631 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
14632 delete_slot_part, emit_notes_for_differences_1): Don't call
14633 remove_cselib_value_chains here.
14634 (set_slot_part, emit_notes_for_differences_2): Don't call
14635 add_cselib_value_chains here.
14636 (preserved_values): New vector.
14637 (preserve_value): New function.
14638 (add_uses, add_stores, vt_add_function_parameters): Use it
14639 instead of cselib_preserve_value.
14640 (changed_values_stack): New vector.
14641 (check_changed_vars_0): New function.
14642 (check_changed_vars_1, check_changed_vars_2): Use it.
14643 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
14644 changed_values_stack VALUEs.
14645 (vt_emit_notes): For all preserved_values call
14646 add_cselib_value_chains. If ENABLE_CHECKING call
14647 remove_cselib_value_chains before verifying value_chains is empty.
14648 Initialize and free changed_values_stack.
14649 (vt_initialize): Initialize preserved_values.
14650 (vt_finalize): Free preserved_values.
14652 2010-03-08 Richard Guenther <rguenther@suse.de>
14654 PR tree-optimization/43269
14655 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
14658 2010-03-08 Martin Jambor <mjambor@suse.cz>
14660 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
14661 (ipa_is_param_called): Removed.
14662 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
14663 (ipa_print_node_params): Do not print the called flag.
14664 (ipa_write_node_info): Do not stream the called flag.
14665 (ipa_read_node_info): Likewise.
14667 2010-03-07 Jakub Jelinek <jakub@redhat.com>
14670 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
14671 * cselib.c (struct expand_value_data): Add dummy field.
14672 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
14674 (cselib_dummy_expand_value_rtx_cb): New function.
14675 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
14677 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
14678 * var-tracking.c: Include pointer-set.h.
14679 (variable): Change n_var_parts to char from int. Add
14680 cur_loc_changed and in_changed_variables fields.
14681 (variable_canonicalize): Remove.
14682 (shared_var_p): New inline function.
14683 (unshare_variable): Maintain cur_loc_changed and
14684 in_changed_variables fields. If var was in changed_variables,
14685 replace it there with new_var. Just copy cur_loc instead of
14686 resetting it to something else.
14687 (variable_union): Don't recompute cur_loc. Use shared_var_p.
14688 (dataflow_set_union): Don't call variable_canonicalize.
14689 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
14690 of their DEBUG_EXPR_TREE_DECLs.
14691 (canonicalize_loc_order_check): Verify that cur_loc is NULL
14692 and in_changed_variables and cur_loc_changed is false.
14693 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
14694 and cur_loc_changed. Don't update cur_loc here.
14695 (variable_merge_over_src): Don't call variable_canonicalize.
14696 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
14697 removing loc that is equal to cur_loc, clear cur_loc,
14698 set cur_loc_changed and ensure variable_was_changed is called.
14699 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
14700 compare pointers in cur_loc check, if it is equal to loc,
14701 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
14702 (variable_different_p): Remove compare_current_location argument,
14703 don't compare cur_loc.
14704 (dataflow_set_different_1): Adjust variable_different_p caller.
14705 (variable_was_changed): If dv had some var in changed_variables
14706 already, reset in_changed_variables flag for it and propagate
14707 cur_loc_changed over to the new variable. On empty var
14708 always set cur_loc_changed. Set in_changed_variables on whatever
14709 var is added to changed_variables.
14710 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
14711 Use shared_var_p. When removing loc that is equal to cur_loc,
14712 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
14713 end, don't set it to something else, just call variable_was_changed.
14714 (delete_slot_part): Use shared_var_p. When cur_loc equals to
14715 loc being removed, clear cur_loc and set cur_loc_changed.
14716 Set cur_loc_changed if all locations have been removed.
14717 (struct expand_loc_callback_data): New type.
14718 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
14719 allocated. Always create SUBREGs if simplify_subreg failed.
14720 Prefer to use cur_loc, when that fails and still in
14721 changed_variables (and seen first time) recompute it. Set
14722 cur_loc_changed of variables which had to change cur_loc and
14723 compute elcd->cur_loc_changed if any of the subexpressions used
14724 had to change cur_loc.
14725 (vt_expand_loc): Adjust to pass arguments in
14726 expand_loc_callback_data structure.
14727 (vt_expand_loc_dummy): New function.
14728 (emitted_notes): New variable.
14729 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
14730 that weren't used for any other decl in current
14731 emit_notes_for_changes call call vt_expand_loc_dummy to update
14732 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
14733 first loc_chain location if NULL before. Always use just
14734 cur_loc instead of first loc_chain location. When cur_loc_changed
14735 is false, when not --enable-checking=rtl just don't emit any note.
14736 When rtl checking, compute the note and assert it is the same
14737 as previous note. Clear cur_loc_changed and in_changed_variables
14738 at the end before removing from changed_variables.
14739 (check_changed_vars_3): New function.
14740 (emit_notes_for_changes): Traverse changed_vars to call
14741 check_changed_vars_3 on each changed var.
14742 (emit_notes_for_differences_1): Clear cur_loc_changed and
14743 in_changed_variables. Recompute cur_loc of new_var.
14744 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
14745 (vt_emit_notes): Initialize and destroy emitted_notes.
14747 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
14749 PR rtl-optimization/42220
14750 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
14751 Use verify_reg_tracked to determine if we should use OP_OUT rather
14753 (build_def_use): If we see an in-out operand for a register that we
14754 know nothing about, treat is an output if possible, fail the block if
14757 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
14760 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
14763 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
14766 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
14767 uses of relevant DEFs that are dead outside the loop too.
14769 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
14771 * var-tracking.c (dataflow_set_merge): Swap src and src2.
14773 2010-01-13 Jakub Jelinek <jakub@redhat.com>
14775 * var-tracking.c (values_to_unmark): New variable.
14776 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
14777 values_to_unmark vector. Moved body to...
14778 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
14779 instead queue it into values_to_unmark vector.
14780 (vt_find_locations): Free values_to_unmark vector.
14782 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
14784 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
14785 (site.exp): Export them when plugins are enabled.
14787 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
14789 PR middle-end/42326
14790 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
14791 that contain scevs.
14792 (chrec_fold_multiply): Same.
14794 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
14797 * c-decl.c (build_compound_literal): Return early if init is
14798 an error_mark_node.
14800 2010-03-04 Martin Jambor <mjambor@suse.cz>
14802 PR tree-optimization/43164
14803 PR tree-optimization/43191
14804 * tree-sra.c (type_consists_of_records_p): Reject records with
14805 zero-size bit-fields at the end.
14807 2010-03-04 Mike Stump <mikestump@comcast.net>
14809 * Makefile.in (TAGS): Remove *.y.
14811 2010-03-04 Richard Guenther <rguenther@suse.de>
14813 PR tree-optimization/40761
14814 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
14816 (my_rev_post_order_compute): New function.
14817 (init_pre): Call it.
14819 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
14821 PR middle-end/43209
14822 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
14823 decrease the cost of an IV candidate when the cost is infinite.
14825 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14827 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
14828 Use '3DNow!' for the extension of that name, ensure normal space
14830 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
14832 2010-03-03 Jeff Law <law@redhat.com>
14834 * PR middle-end/32693
14835 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
14836 than gen_rtx_SUBREG.
14837 (extract_bit_field_1): Likewise.
14839 2010-03-03 Janis Johnson <janis187@us.ibm.com>
14841 * doc/sourcebuild.texi (Test directives): Document that arguments
14842 include-opts and exclude-opts are now optional for dg-skip-if,
14843 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
14845 2010-03-03 Jason Merrill <jason@redhat.com>
14848 * cgraph.h (varpool_node): Add extra_name field.
14849 * varpool.c (varpool_extra_name_alias): New.
14850 (varpool_assemble_decl): Emit extra name aliases.
14851 (varpool_mark_needed_node): Look past an extra name alias.
14852 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
14853 * lto-streamer-in.c (lto_input_tree): Read it.
14854 * lto-streamer-out.c (output_unreferenced_globals): Write it.
14856 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
14858 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
14859 (sparc*-*-solaris2*): ...this.
14861 2010-03-03 Jakub Jelinek <jakub@redhat.com>
14864 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
14865 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
14866 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
14867 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
14870 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
14871 fallthrough to default handling, just with want_address 0 instead of 2.
14872 For single element lists, add_AT_loc directly, otherwise create an
14873 artificial variable DIE and stick location list to it.
14876 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
14877 (VAL_EXPR_HAS_REVERSE): Define.
14878 (reverse_op): New function.
14879 (add_stores): For reversible operations add an extra MO_VAL_USE.
14881 2010-03-02 Jason Merrill <jason@redhat.com>
14883 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
14885 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
14887 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
14888 (sparc64-*-linux*): Likewise.
14889 (sparc64-*-solaris2*): Include assembler files before linker ones.
14890 (sparc-*-solaris2*): Simplify and reorder to match previous case.
14891 * config/sparc/gas.h: Delete.
14892 * config/sparc/sol2-64.h: Add copyright notice.
14893 * config/sparc/sol2-gas-bi.h: Likewise.
14894 * config/sparc/sol2-gld.h: Likewise.
14895 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
14896 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
14897 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
14898 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
14899 (sparc_elf_asm_named_section): Rename into...
14900 (sparc_solaris_elf_asm_named_section): ...this. Always define.
14902 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
14904 * config/alpha/alpha.c (override_options): Fix -mtune error message.
14906 2010-03-02 Jeff Law <law@redhat.com>
14908 PR middle-end/42431
14909 * reload1.c (rtx_p, substitute_stack): Declare.
14910 (substitute): Record addresses of changed rtxs.
14911 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
14912 Restore the original rtx when complete.
14913 (reload): Free subsitute_stack when complete.
14915 2010-03-02 Janis Johnson <janis187@us.ibm.com>
14917 * doc/gccint.texi (menu): Add Testsuites as a chapter.
14918 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
14920 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
14921 LTO Testing, gcov Testing, profopt Testing, compat Testing,
14922 Torture Tests): Change from subsection to section.
14924 2010-03-02 Jakub Jelinek <jakub@redhat.com>
14925 Steven Bosscher <steven@gcc.gnu.org>
14927 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
14930 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
14932 PR middle-end/42640
14933 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
14934 the assignment from the new induction variable to the assignment
14935 of the value from the original loop PHI function.
14937 2010-03-01 Janis Johnson <janis187@us.ibm.com>
14938 Daniel Jacobowitz <dan@codesourcery.com>
14940 * doc/sourcebuild.texi (Test directives): Clarify options to
14943 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14945 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
14946 Disable cfi directives unless GCC and gas agree on using read-only
14947 .eh_frame sections for 64-bit.
14948 * configure: Regenerate.
14950 2010-03-01 Richard Guenther <rguenther@suse.de>
14952 PR tree-optimization/43220
14953 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
14954 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
14956 2010-03-01 Richard Guenther <rguenther@suse.de>
14957 Martin Jambor <mjambor@suse.cz>
14959 PR middle-end/41250
14960 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
14961 gimplified parameters.
14963 2010-03-01 Christian Bruel <christian.bruel@st.com>
14965 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
14967 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
14969 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
14971 2010-03-01 Richard Guenther <rguenther@suse.de>
14973 PR middle-end/43213
14974 * expr.c (expand_assignment): Use the alias-oracle to tell
14975 if the rhs aliases the result decl.
14977 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14980 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
14981 to sol_gt_pch_get_address.
14982 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
14983 64-bit, SPARC and x86.
14984 (sol_gt_pch_get_address): New function.
14986 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
14988 * toplev.h (inform_n, error_n): Declare.
14989 * diagnostic.c (inform_n, error_n): New function.
14991 2010-03-01 Jakub Jelinek <jakub@redhat.com>
14993 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
14994 has no rtl yet when processing local_decls, queue it and recheck
14995 if deferred stack allocation hasn't assigned it rtl.
14997 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
14999 * config/sh/sh.c (unspec_bbr_uid): New.
15000 (gen_block_redirect): Use it instead of INSN_UID.
15001 (gen_far_branch): Likewise.
15003 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
15005 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
15006 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
15008 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15010 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
15011 (Warning Options): -Wno-conversion-null is valid for
15012 Objective-C++ as well.
15013 * doc/tm.texi (Named Address Spaces): Likewise.
15014 * doc/plugins.texi (Plugins): Replace TABs with spaces.
15015 * doc/tree-ssa.texi (Tree SSA): Likewise.
15017 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15020 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
15021 by default. Don't set the default arch for
15022 i[34567]86-*-darwin*|x86_64-*-darwin*.
15024 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15027 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
15028 default. Set the default 32bit/64bit archs with $with_arch
15029 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
15031 2010-02-27 Richard Guenther <rguenther@suse.de>
15033 PR tree-optimization/43186
15034 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
15035 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
15036 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
15037 unroller iterations.
15039 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
15041 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
15042 required and i[34567]86-*-* targets don't support 64bit ISA.
15044 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
15047 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
15048 the same alias set.
15050 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
15052 * config.gcc: Set the default arch at least to Prescott for
15053 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
15054 if SSE math is enabled.
15056 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15058 * diagnostic.c (diagnostic_initialize): Update.
15059 (diagnostic_report_diagnostic): Test inhibit_notes_p for
15061 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
15062 (diagnostic_inhibit_notes): New.
15063 * toplev.c (process_options): inhibit notes with -fcompare-debug.
15065 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15068 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
15069 * doc/standards.texi: Likewise.
15070 * doc/extend.texi: Likewise.
15071 * doc/trouble.texi: Likewise.
15072 * doc/cppopts.texi: Likewise.
15073 * doc/install.texi: Likewise.
15074 * c.opt (std=c90,std=gnu90): New options.
15075 * c-opts.c (c_common_handle_option): Handle them.
15077 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
15080 * c-decl.c (undeclared_variable): Use an informative note.
15082 2010-02-26 Richard Guenther <rguenther@suse.de>
15084 PR tree-optimization/43186
15085 * gimple.h (gimple_fold): Remove.
15086 * gimple.c (gimple_fold): Remove. Inline into single user ...
15087 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
15088 Try harder for conditions.
15090 2010-02-26 Jakub Jelinek <jakub@redhat.com>
15093 * function.c (used_types_insert): Don't skip through named pointer
15094 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
15095 and it is different from the main variant's type.
15097 2010-02-26 Nick Clifton <nickc@redhat.com>
15099 * config/rx/rx.md (sminsi3): Remove bogus alternative.
15101 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
15103 * config.gcc: Support --with-fpmath=sse for x86.
15105 * config/i386/ssemath.h: New.
15107 * doc/install.texi (--with-fpmath=sse): Documented.
15109 2010-02-26 Richard Guenther <rguenther@suse.de>
15111 PR tree-optimization/43188
15112 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
15113 vector types of over-aligned element type.
15115 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
15118 * config/i386/i386.c (expand_vec_perm_blend): Use correct
15119 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
15121 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
15123 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
15125 2010-02-26 Jakub Jelinek <jakub@redhat.com>
15127 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
15128 * var-tracking.c: Include diagnostic.h.
15129 (debug_dv): New function.
15130 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
15133 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
15134 (add_value_chain, add_value_chains, remove_value_chain,
15135 remove_value_chains): Handle DEBUG_EXPRs.
15136 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
15139 * regcprop.c (struct queued_debug_insn_change): New type.
15140 (struct value_data_entry): Add debug_insn_changes field.
15141 (struct value_data): Add n_debug_insn_changes field.
15142 (debug_insn_changes_pool): New variable.
15143 (free_debug_insn_changes, apply_debug_insn_changes,
15144 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
15145 (kill_value_one_regno): Call free_debug_insn_changes if needed.
15146 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
15148 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
15150 (copyprop_hardreg_forward_1): Don't call apply_change_group for
15151 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
15152 changes, call cprop_find_used_regs via note_stores.
15153 (copyprop_hardreg_forward): When copying vd from predecessor
15154 which has any queued DEBUG_INSN changes, make sure the pointers are
15155 cleared. At the end call df_analyze and then if there are any
15156 DEBUG_INSN changes queued at the end of some basic block for still
15157 live registers, apply them.
15158 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
15160 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
15162 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
15165 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
15167 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
15168 targets. Set the default with_cpu/with_arch from arch/cpu.
15169 Allow x86-64 and native for with_cpu/with_arch.
15171 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
15173 * ebitmap.c: Change calls to verify_popcount with calls to
15174 sbitmap_verify_popcount.
15175 (ebitmap_clear_bit): Fixed map->cacheindex test and
15176 map>cache update when bit clearing results in an empty
15179 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
15182 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
15183 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
15184 and support both V2DF and V2DI modes.
15185 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
15186 support both V2DF and V2DI modes.
15187 (general): Delete trailing whitespace from a few patterns.
15189 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
15190 V2DF/V2DI interleave high/low builtins.
15192 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
15195 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
15196 interleave high/low functions.
15198 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
15200 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
15201 #pragma extern_prefix.
15203 2010-02-25 Jakub Jelinek <jakub@redhat.com>
15206 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
15207 BLKmode, assert op0 is a MEM and just adjust its mode.
15210 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
15211 if bitpos isn't multiple of mode's bitsize.
15213 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
15215 * c.opt (-ftemplate-depth=): New.
15216 (-ftemplate-depth-): Deprecate.
15217 * optc-gen.awk: Handle -ftemplate-depth=.
15218 * opth-gen.awk: Likewise.
15219 * c-opts.c (c_common_handle_option): Likewise.
15220 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
15222 2010-02-24 Jason Merrill <jason@redhat.com>
15224 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
15226 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15228 * cfg.c (alloc_aux_for_block): Remove inline.
15229 (alloc_aux_for_edge): Likewise.
15231 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15233 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
15235 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15237 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
15238 * config/i386/sol2-gas.h: New file.
15239 * config.gcc (i[34567]86-*-solaris2*): Use it.
15241 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
15244 * c-typeck.c (ep_convert_and_check): New.
15245 (build_conditional_expr): Use it.
15246 (build_binary_op): Likewise.
15248 2010-02-24 Jakub Jelinek <jakub@redhat.com>
15250 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
15253 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
15254 bounds even for -O+.
15255 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
15256 expr needs to have DECL_NAME set.
15258 2010-02-24 Nick Clifton <nickc@redhat.com>
15260 * config/mep/mep.c: Include gimple.h.
15261 (mep_function_uses_sp): Delete unused function.
15262 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
15263 parameters. Use unsigned integers to count args. Return a
15264 NULL_RTX instead of an error_mark_node. Toidy up formatting.
15266 2010-02-23 Jakub Jelinek <jakub@redhat.com>
15269 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
15270 greater or equal to nelt instead of 2 * nelt.
15271 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
15274 2010-02-23 Jason Merrill <jason@redhat.com>
15277 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
15278 in cfun->local_decls even if they have register types.
15281 * stor-layout.c (place_field): Don't warn about unnecessary
15282 DECL_PACKED if the type is packed.
15284 2010-02-23 Jakub Jelinek <jakub@redhat.com>
15287 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
15288 GOTOFF relocs, even when the base reg isn't pic pointer.
15290 2010-02-23 Michael Matz <matz@suse.de>
15293 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
15294 (expand_gimple_basic_block): Generate and use debug temps if there
15295 are debug uses left after the last real use of TERed ssa names.
15296 Unlink debug immediate uses when they are expanded.
15298 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
15301 * config/i386/i386.c (override_options): Reorganise to provide
15302 better error messages.
15304 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
15306 PR middle-end/43083
15307 * graphite-scop-detection.c (create_single_exit_edge): Move
15308 the call to find_single_exit_edge to....
15309 (create_sese_edges): ...here. Don't handle multiple edges
15310 exiting the function.
15311 (build_graphite_scops): Don't handle multiple edges
15312 exiting the function.
15314 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
15316 PR middle-end/43097
15317 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
15318 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
15320 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
15322 PR middle-end/43026
15323 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
15325 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
15328 * c-typeck.c (convert_arguments): Print declaration location.
15329 * c-common.c (validate_nargs): Rename as
15330 builtin_function_validate_nargs.
15331 (check_builtin_function_arguments): Update.
15333 2010-02-22 Richard Guenther <rguenther@suse.de>
15336 * tree-inline.c (declare_return_variable): Use the type of
15337 the call stmt lhs if available.
15339 2010-02-22 Duncan Sands <baldrick@free.fr>
15341 * passes.c (register_pass): Always consider all pass lists when
15342 ref_pass_instance_number is zero.
15344 2010-02-22 Richard Guenther <rguenther@suse.de>
15346 PR tree-optimization/42749
15347 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
15348 parameter. Do arithmetic in the original type.
15349 (update_accumulator_with_ops): Likewise.
15350 (adjust_accumulator_values): Adjust.
15352 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15354 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
15355 (QI to BLKmode splitter): New splitter.
15357 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
15359 * config/i386/i386.c (initial_ix86_tune_features): Turn on
15360 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
15362 2010-02-22 Richard Guenther <rguenther@suse.de>
15364 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
15366 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
15368 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
15369 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
15370 ($(T)crti.o, $(T)crtn.o): Remove rules.
15372 2010-02-21 Tobias Burnus <burnus@net-b.de>
15375 * doc/invoke.texi (-fassociative-math): Document that this
15376 option is automatically enabled for Fortran.
15378 2010-02-20 David S. Miller <davem@davemloft.net>
15380 * configure.ac: Test if linker and assembler properly support
15381 GOTDATA_OP relocations.
15382 * configure: Rebuild.
15383 * config.in: Likewise.
15384 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
15385 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
15386 (movsi_high_pic): Likewise.
15387 (movdi_lo_sum_pic): Likewise.
15388 (movdi_high_pic): Likewise.
15389 (movsi_pic_gotdata_op): New pattern.
15390 (movdi_pic_gotdata_op): Likewise.
15391 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
15392 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
15394 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
15397 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
15398 attribute to ssemul.
15399 (xop_mulv2div2di3_high): Ditto.
15401 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
15404 * c.opt (Wconversion-null): New option.
15405 * doc/invoke.texi (Wconversion-null): Document.
15407 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
15409 * common.opt (Wlarger-than-): Add Undocumented.
15411 2010-02-19 Mike Stump <mikestump@comcast.net>
15413 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
15415 2010-02-19 Jason Merrill <jason@redhat.com>
15418 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
15419 * configure: Likewise.
15421 2010-02-20 Alan Modra <amodra@gmail.com>
15423 PR middle-end/42344
15424 * cgraph.h (cgraph_make_decl_local): Declare.
15425 * cgraph.c (cgraph_make_decl_local): New function.
15426 (cgraph_make_node_local): Use it.
15427 * cgraphunit.c (cgraph_function_versioning): Likewise.
15428 * ipa.c (function_and_variable_visibility): Likewise.
15430 2010-02-19 Jakub Jelinek <jakub@redhat.com>
15433 * except.c (sjlj_emit_function_enter): Don't call
15434 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
15436 * rtl.h (add_reg_br_prob_note): Remove prototype.
15438 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
15441 * c-common.c (conversion_warning): Remove widening conversions
15442 before checking the conversion of integers to reals.
15444 2010-02-19 Mike Stump <mikestump@comcast.net>
15446 PR middle-end/43125
15447 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
15450 * cgraphunit.c (process_function_and_variable_attributes): Check
15451 DECL_PRESERVE_P instead of looking up attribute "used".
15452 * ipa-pure-const.c (check_decl): Likewise.
15453 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
15454 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
15455 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
15456 instead of attribute "used".
15457 * config/sol2-c.c (solaris_pragma_init): Likewise.
15458 (solaris_pragma_fini): Likewise.
15460 2010-02-19 Jakub Jelinek <jakub@redhat.com>
15462 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
15463 Use XCNEW instead of xcalloc.
15464 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
15465 XNEW instead of xmalloc.
15466 (get_fields): Use XNEWVEC instead of xmalloc.
15469 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
15470 populate vars array.
15471 (create_new_general_access): For debug stmts just reset value.
15472 (get_stmt_accesses): For accesses within debug stmts just record them
15473 using add_access_to_acc_sites instead of preventing the peeling or
15474 counting them as accesses.
15476 PR middle-end/42233
15477 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
15479 2010-02-19 Richard Guenther <rguenther@suse.de>
15481 PR tree-optimization/42916
15482 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
15485 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
15487 * configure.ac: Replace all uses of changequote in macro arguments
15488 with proper quoting.
15490 2010-02-19 Jakub Jelinek <jakub@redhat.com>
15492 PR middle-end/42233
15493 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
15495 2010-02-19 Richard Guenther <rguenther@suse.de>
15497 PR tree-optimization/42944
15498 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
15499 test for aliasing with errno.
15501 2010-02-19 Jakub Jelinek <jakub@redhat.com>
15503 PR middle-end/42233
15504 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
15505 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
15506 * dojump.c: Include output.h.
15507 (inv): New inline function.
15508 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
15509 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
15510 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
15511 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
15512 argument, pass it down to other calls.
15513 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
15514 add REG_BR_PROB note to the conditional jump.
15515 * cfgexpand.c (add_reg_br_prob_note): Removed.
15516 (expand_gimple_cond): Don't call it, add the probability
15517 as last argument to jumpif_1/jumpifnot_1.
15518 * Makefile.in (dojump.o): Depend on output.h.
15519 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
15521 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
15522 * stmt.c (do_jump_if_equal): Likewise.
15523 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
15524 * loop-unswitch.c (compare_and_jump_seq): Likewise.
15525 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
15527 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
15528 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
15529 jumpifnot_1 callers.
15530 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
15532 (store_expr): Adjust jumpifnot caller.
15533 (store_constructor): Adjust jumpif caller.
15535 PR middle-end/42233
15536 * gimplify.c (gimple_boolify): For __builtin_expect call
15537 gimple_boolify also on its first argument.
15539 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
15541 * configure.ac (gnu-unique-object): Wrap regexps using [] in
15543 (__stack_chk_fail): Ditto. Remove quadrigraphs.
15544 * configure: Regenerated.
15546 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15548 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
15549 lang_hooks.types_compatible_p instead of comptypes.
15551 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
15553 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
15554 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
15555 if __prefer_thumb__ is defined.
15557 2010-02-18 Martin Jambor <mjambor@suse.cz>
15559 PR tree-optimization/43066
15560 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
15561 array with zero-sized element type.
15563 2010-02-18 Jakub Jelinek <jakub@redhat.com>
15565 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
15566 rtx, allocate struct var_loc_node here and return it to the
15567 caller, and only if it is actually needed.
15568 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
15569 move it earlier and return immediately if it returns NULL.
15571 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
15573 * config/sparc/gas.h: New file. Restore
15574 TARGET_ASM_NAMED_SECTION to its ELF default.
15575 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
15576 check !HAVE_GNU_AS.
15577 * config/sparc/sparc.c (sparc_elf_asm_named_section):
15578 Likewise. Add ATTRIBUTE_UNUSED to prototype.
15579 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
15580 after sparc/sysv4.h.
15582 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
15584 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
15586 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
15588 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
15589 patterns from predicated pattern.
15591 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
15594 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
15595 for insn mnemonic suffix.
15597 2010-02-17 Richard Guenther <rguenther@suse.de>
15599 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
15602 2010-02-17 Jakub Jelinek <jakub@redhat.com>
15605 * caller-save.c (save_call_clobbered_regs): If BB ends with
15606 a DEBUG_INSN, move any notes in between last real insn and the last
15607 DEBUG_INSN after the last DEBUG_INSN.
15609 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
15611 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
15612 Fix return type. Fix argument type. Explain meaning of return value.
15614 2010-02-16 Richard Guenther <rguenther@suse.de>
15616 PR tree-optimization/41043
15617 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
15618 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
15620 (vrp_visit_phi_node): ... but only for loop PHI nodes.
15622 2010-02-16 Ira Rosen <irar@il.ibm.com>
15624 PR tree-optimization/43074
15625 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
15626 * tree-vect-loop.c (vect_analyze_loop_operations): Add
15627 vectorizable cycles in hybrid SLP check.
15628 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
15630 2010-02-16 Richard Guenther <rguenther@suse.de>
15632 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
15633 (true_dependence): If memrefs_conflict_p computes must-alias
15634 trust it. Move TBAA check after offset-based disambiguation.
15635 (canon_true_dependence): Likewise.
15637 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
15639 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
15640 * doc/invoke.texi: Document it.
15641 * var-tracking.c: Include toplev.h and params.h.
15642 (vt_find_locations): Return bool indicating success. Compute
15643 hash sizes unconditionally. Check new parameter, report.
15644 (variable_tracking_main_1): Check vt_find_locations results and
15645 retry. Renamed from...
15646 (variable_tracking_main): ... this. New wrapper to preserve
15647 flag_var_tracking_assignments.
15648 * Makefile.in (var-tracking.o): Adjust dependencies.
15650 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
15651 Jakub Jelinek <jakub@redhat.com>
15654 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
15655 if weak_import attribute is present.
15656 * config/darwin.c (machopic_select_section): Likewise.
15658 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
15660 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
15661 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
15662 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
15663 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
15665 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
15668 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
15669 Fix argument types.
15671 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
15672 Rewrite text to refer to the names.
15674 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
15676 * config/i386/i386-builtin-types.def
15677 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
15678 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
15679 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
15680 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
15681 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
15682 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
15683 IX86_BUILTIN_VPERMIL2PS256.
15684 (MULTI_ARG_4_DF2_DI_I): Defined.
15685 (MULTI_ARG_4_DF2_DI_I1): Defined.
15686 (MULTI_ARG_4_SF2_SI_I): Defined.
15687 (MULTI_ARG_4_SF2_SI_I1): Defined.
15688 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
15689 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
15690 __builtin_ia32_vpermil2ps256.
15691 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
15692 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
15693 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
15694 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
15695 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
15696 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
15697 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
15698 CODE_FOR_xop_vpermil2v8sf3.
15699 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
15700 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
15701 * config/i386/xopintrin.h (_mm_permute2_pd): New.
15702 (_mm256_permute2_pd): New.
15703 (_mm_permute2_ps): New.
15704 (_mm256_permute2_ps): New.
15706 2010-02-15 Nick Clifton <nickc@redhat.com>
15708 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
15709 boolean parameters. Use emit_jump_insn when emitting a pop
15710 instruction containing a return insn.
15711 (push): Use 'true' rather than '1' as second parameter to F.
15712 (h8300_expand_prologue): Likewise.
15713 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
15714 (h8300_expand_epilogue): Likewise.
15716 2010-02-15 Richard Guenther <rguenther@suse.de>
15718 PR middle-end/43068
15719 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
15722 2010-02-15 Nick Clifton <nickc@redhat.com>
15724 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
15727 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
15729 * intl.c (fake_ngettext): New function.
15730 * intl.h (fake_ngettext): Declare.
15731 (ngettext): Define macro.
15732 * collect2.c (notice_translated): New function.
15733 (main): Use notice_translated and ngettext.
15734 * collect2.h (notice_translated): Declare.
15736 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
15738 * reorg.c (delete_computation): Comment fixes.
15739 * caller-save.c (setup_save_areas): Idem.
15740 * sel-sched-dump.c (dump_lv_set): Idem.
15743 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15745 * config/s390/s390.c (s390_sched_init): New function.
15746 (TARGET_SCHED_INIT): Target hook defined.
15748 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
15749 Jack Howarth <howarth@bromo.med.uc.edu>
15750 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15753 Partial revert of unintended change in fix for PR41605.
15754 * config/darwin.h: Fix typo.
15755 * config/darwin9.h: Same.
15757 2010-02-11 Jakub Jelinek <jakub@redhat.com>
15759 * c-pch.c (pch_init): Clear v.
15761 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
15763 PR middle-end/42930
15764 * graphite-scop-detection.c (graphite_can_represent_scev): Call
15765 graphite_can_represent_init for MULT_EXPR.
15767 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
15769 PR middle-end/42914
15770 PR middle-end/42530
15771 * graphite-sese-to-poly.c (remove_phi): New.
15772 (translate_scalar_reduction_to_array): Call remove_phi.
15774 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
15776 PR middle-end/42771
15777 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
15778 * graphite-clast-to-gimple.h (gloog): Update declaration.
15779 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
15780 * graphite-poly.h (struct poly_bb): Add missing comments.
15781 (struct scop): Add poly_scop_p field.
15782 (POLY_SCOP_P): New.
15783 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
15784 * graphite.c (graphite_transform_loops): Build the polyhedral
15785 representation for each scop before code generation.
15786 * sese.c (rename_variables_in_operand): Removed.
15787 (rename_variables_in_expr): Return the renamed expression.
15788 (rename_sese_parameters): New.
15789 * sese.h (rename_sese_parameters): Declared.
15791 2010-02-11 Richard Guenther <rguenther@suse.de>
15793 PR tree-optimization/42998
15794 * tree-ssa-pre.c (create_expression_by_pieces): Treat
15795 POINTER_PLUS_EXPR properly.
15797 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
15798 Changpeng Fang <changpeng.fang@amd.com>
15800 PR middle-end/40886
15801 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
15802 the cost of an IV candidate when the IV is used in a test against zero.
15804 * gcc.dg/tree-ssa/ivopts-3.c: New.
15806 2010-02-11 Richard Guenther <rguenther@suse.de>
15809 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
15810 pointer-vs-decl case by swapping refs. Handle some cases
15811 of pointer-vs-decl disambiguations more conservatively.
15812 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
15813 to false after expanding.
15815 2010-02-11 Richard Guenther <rguenther@suse.de>
15818 * gcc.c (process_command): Handle LTO file@offset case more
15821 2010-02-11 Jakub Jelinek <jakub@redhat.com>
15823 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
15824 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
15826 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
15828 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
15829 if MEM's mode size isn't DWARF2_ADDR_SIZE.
15830 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
15831 Optimize eq/ne comparisons when both arguments are known to be
15833 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
15834 Don't mask operands unnecessarily if they are known to be already
15837 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
15839 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
15842 2010-02-10 Richard Guenther <rguenther@suse.de>
15844 PR tree-optimization/43017
15845 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
15846 for wrapping signed arithmetic.
15848 2010-02-10 Jakub Jelinek <jakub@redhat.com>
15851 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
15852 if no debug info should be emitted for it.
15854 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
15856 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
15857 note when flag_exceptions is set.
15859 2010-02-10 Duncan Sands <baldrick@free.fr>
15861 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
15863 2010-02-10 Richard Guenther <rguenther@suse.de>
15866 * tree.c (get_unwidened): Handle constants.
15867 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
15869 2010-02-10 Martin Jambor <mjambor@suse.cz>
15872 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
15873 check for variable argument counts independently.
15875 2010-02-10 Christian Bruel <christian.bruel@st.com>
15878 * config/sh/sh.c (find_barrier): Increase length for non delayed
15879 conditional branches.
15881 2010-02-10 Christian Bruel <christian.bruel@st.com>
15883 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
15885 2010-02-10 Jakub Jelinek <jakub@redhat.com>
15887 * builtins.c (set_builtin_user_assembler_name): Also handle
15888 ffs if int is smaller than word.
15890 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
15892 PR middle-end/42973
15893 * ira-conflicts.c (get_dup): Remove.
15894 (process_reg_shuffles): Add new parameter. Use it as an
15895 additional guard for copy generation.
15896 (add_insn_allocno_copies): Rewrite.
15898 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
15900 * common.opt (fsched2-use-traces): Preserved for backward
15902 * doc/invoke.texi: Remove the documentation about option
15903 -fsched2-use-traces.
15904 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
15905 flag_sched2_use_traces.
15906 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
15907 the backward compatibility flag section.
15909 2010-02-09 Richard Guenther <rguenther@suse.de>
15911 PR tree-optimization/43008
15912 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
15913 make HEAP variables initialized from global memory if they
15914 are not known builtin functions.
15915 (find_func_aliases): Adjust.
15917 2010-02-09 Richard Guenther <rguenther@suse.de>
15919 PR tree-optimization/43000
15920 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
15921 arithmetic manually.
15923 2010-02-08 Jakub Jelinek <jakub@redhat.com>
15925 PR tree-optimization/42931
15926 * tree-loop-linear.c (try_interchange_loops): Don't call
15927 double_int_mul if estimated_loop_iterations failed.
15929 2010-02-08 Martin Jambor <mjambor@suse.cz>
15931 PR middle-end/42898
15932 * tree-sra.c (build_accesses_from_assign): Do not mark in
15933 should_scalarize_away_bitmap if stmt has volatile ops.
15934 (sra_modify_assign): Do not process assigns piecemeal if if stmt
15937 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
15939 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
15941 2010-02-07 Adam Nemet <adambnmet@gmail.com>
15943 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
15944 before the pattern.
15946 2010-02-07 Andrew Pinski <pinskia@gmail.com>
15948 PR middle-end/42946
15949 * df-core.c (df_finish_pass): Change type of saved_flags to int.
15951 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
15953 PR middle-end/42988
15954 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
15955 to unknown_dependence.
15956 (graphite_legal_transform_dr): Handle the unknown_dependence.
15957 (graphite_carried_dependence_level_k): Same.
15959 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
15961 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
15963 2010-02-07 Richard Guenther <rguenther@suse.de>
15965 PR middle-end/42991
15966 * expr.c (get_inner_reference): Always initialize *pbitsize.
15968 2010-02-07 Richard Guenther <rguenther@suse.de>
15970 PR middle-end/42956
15971 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
15972 new ARRAY_REFs on variable size element or minimal index arrays.
15974 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
15975 gimple_fold_indirect_ref.
15977 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
15980 * arm.c (arm_override_options): Just return if the user has specified
15981 an invalid fpu name.
15983 2010-02-03 Jason Merrill <jason@redhat.com>
15986 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
15987 i386_pe_maybe_record_exported_symbol.
15989 2010-02-05 Steve Ellcey <sje@cup.hp.com>
15992 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
15993 (pa_delegitimize_address): New function.
15995 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
15997 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
15998 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
16000 2010-02-05 Richard Guenther <rguenther@suse.de>
16003 * lto-streamer-in.c (get_resolution): Deal with references
16004 to undefined functions.
16006 2010-02-05 Richard Guenther <rguenther@suse.de>
16008 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
16009 (fold_const_aggregate_ref): Likewise.
16010 (ccp_fold_stmt): Substitute loads.
16011 (maybe_fold_reference): Verify types before substituting.
16013 (fold_gimple_assign): Unshare properly.
16014 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
16016 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
16018 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
16019 for rs6000_gen_cell_microcode.
16021 2010-02-04 Richard Guenther <rguenther@suse.de>
16023 PR rtl-optimization/42952
16024 * dse.c (const_or_frame_p): Remove MEM handling.
16026 2010-02-04 Nick Clifton <nickc@redhat.com>
16028 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
16029 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
16030 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
16031 (mn10300_asm_output_mi_thunk): New function.
16032 (mn10300_can_output_mu_thunk): New function.
16033 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
16034 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
16035 (FUNCTION_ARG): Delete incorrect comment.
16037 2010-02-03 Jason Merrill <jason@redhat.com>
16040 * fold-const.c (operand_equal_p): Handle erroneous types.
16042 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
16044 * config/h8300/h8300.md (can_delay): Fix attibute condition.
16046 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
16048 PR rtl-optimization/42941
16049 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
16052 2010-02-03 Jason Merrill <jason@redhat.com>
16055 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
16057 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
16060 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
16061 (cselib_reset_table): Renamed from...
16062 (cselib_reset_table_with_next_value): ... this.
16063 (cselib_get_next_uid): Renamed from...
16064 (cselib_get_next_unknown_value): ... this.
16065 * cselib.c (next_uid): Renamed from...
16066 (next_unknown_value): ... this.
16067 (cselib_clear_table): Adjust.
16068 (cselib_reset_table): Adjust. Renamed from...
16069 (cselib_reset_table_with_next_value): ... this.
16070 (cselib_get_next_uid): Adjust. Renamed from...
16071 (cselib_get_next_unknown_value): ... this.
16072 (get_value_hash): Use hash.
16073 (cselib_hash_rtx): Likewise.
16074 (new_cselib_val): Adjust. Set and dump uid.
16075 (cselib_lookup_mem): Pass next_uid as hash.
16076 (cselib_subst_to_values): Likewise.
16077 (cselib_log_lookup): Dump uid.
16078 (cselib_lookup): Pass next_uid as hash. Adjust.
16079 (cselib_process_insn): Adjust.
16080 (cselib_init): Initialize next_uid.
16081 (cselib_finish): Adjust.
16082 (dump_cselib_table): Likewise.
16083 * dse.c (canon_address): Dump value uid.
16084 * print-rtl.c (print_rtx): Print value uid.
16085 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
16087 (dv_uid): New function, sort of renamed from...
16088 (dv_htab_hash): ... this, reimplemented in terms of it and...
16089 (dv_uid2hash): ... this. New.
16090 (variable_htab_eq): Drop excess assertions.
16091 (tie_break_pointers): Removed.
16092 (canon_value_cmp): Compare uids.
16093 (variable_post_merge_New_vals): Print uids.
16094 (vt_add_function_parameters): Adjust.
16095 (vt_initialize): Reset table. Adjust.
16097 2010-02-03 Richard Guenther <rguenther@suse.de>
16099 PR tree-optimization/42944
16100 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
16101 (call_may_clobber_ref_p_1): Likewise. Properly handle
16102 malloc and calloc clobbering errno.
16104 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
16106 * doc/invoke.texi: Fix name of sched1 dump.
16108 * opts.c (decode_options): Set flag_tree_switch_conversion
16109 only conditionally on optimize >= 2.
16111 * gcse.c: Assorted comment fixes in pass description.
16113 2010-02-03 Anthony Green <green@moxielogic.com>
16115 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
16116 nop padding in order to maintain alignment of storage location of
16117 target function address.
16118 (moxie_trampoline_init): Store target function address at newly
16120 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
16122 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
16124 2010-02-03 Richard Guenther <rguenther@suse.de>
16126 PR middle-end/42927
16127 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
16129 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16131 * config.gcc: Reenable check for obsolete targets.
16132 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
16133 mips-sgi-irix6.[0-4]*.
16135 2010-02-02 Nick Clifton <nickc@redhat.com>
16137 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
16138 constant size of 4 as being the same as 0.
16139 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
16140 can take values in the range 0..4.
16142 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
16145 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
16146 as _darwin10_Unwind_FindEnclosingFunction().
16147 * libgcc-libsystem.ver: New.
16149 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
16152 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
16153 implicitly set registers.
16155 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
16157 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
16158 (arm_override_options): Allow automatic selection of the thread
16159 pointer register if thumb2.
16160 (legitimize_pic_address): Improve code sequences for Thumb2.
16161 (arm_call_tls_get_addr): Likewise.
16162 (legitimize_tls_address): Likewise.
16163 * arm.md (pic_load_addr_arm): Delete. Replace with ...
16164 (pic_load_addr_32bit): ... this. New named pattern.
16165 * thumb2.md (pic_load_addr_thumb2): Delete.
16166 (pic_load_dot_plus_four): Delete.
16167 (tls_load_dot_plus_four): New named pattern.
16169 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16172 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
16173 Document fix for TLS bug.
16175 2010-01-31 Richard Guenther <rguenther@suse.de>
16177 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
16178 conservatively correct.
16180 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16184 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16186 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
16188 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16190 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
16192 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
16194 * config.gcc: Adjust order of makefile fragments for mingw targets.
16196 2010-01-31 Richard Guenther <rguenther@suse.de>
16198 PR middle-end/42898
16199 * gimplify.c (gimplify_init_constructor): For volatile LHS
16200 initialize a temporary.
16202 2010-01-31 Matthias Klose <doko@ubuntu.com>
16204 * configure.ac: Fix __stack_chk_fail check for cross builds configured
16206 * configure: Regenerate.
16208 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
16210 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
16211 the same alias set and their sizes different constantness.
16212 (aliasing_component_refs_p): Revert 2009-10-24 change.
16214 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16216 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
16219 2010-01-29 Richard Guenther <rguenther@suse.de>
16221 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
16222 Assert we successfully updated the call.
16224 2010-01-29 Jakub Jelinek <jakub@redhat.com>
16226 PR rtl-optimization/42889
16227 * df.h (df_set_bb_dirty_nonlr): New prototype.
16228 * df-core.c (df_set_bb_dirty_nonlr): New function.
16229 * df-scan.c (df_insn_rescan): Call it instead of
16230 df_set_bb_dirty for DEBUG_INSNs.
16232 2010-01-29 Richard Guenther <rguenther@suse.de>
16234 PR middle-end/37448
16235 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
16236 quadratic behavior in most cases.
16238 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
16241 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
16242 in the call to gen_x86_movsicc_0_m1.
16244 2010-01-28 Richard Guenther <rguenther@suse.de>
16246 PR tree-optimization/42871
16247 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
16249 2010-01-28 Richard Guenther <rguenther@suse.de>
16251 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
16252 into call arguments.
16254 2010-01-28 Richard Guenther <rguenther@suse.de>
16256 PR middle-end/42883
16257 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
16258 the forwarder if the destination is an EH landing pad.
16260 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
16262 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
16263 block list passed to gimple_duplicate_sese_tail.
16264 (parallelize_loops): Avoid parallelization when the function
16265 has_nonlocal_label.
16266 Avoid parallelization when the preheader is IRREDUCIBLE.
16267 Try to optimize when estimated_loop_iterations_int is unresolved.
16268 Add the loop's location to the dump file.
16269 * tree-cfg.c (add_phi_args_after_redirect): Remove.
16270 (gimple_duplicate_sese_tail): Remove the check for the latch.
16271 Redirect nexits to the exit block.
16272 Remove handling of the incoming edges to the latch.
16273 Redirect the backedge from the copied latch to the exit bb.
16275 2010-01-28 Michael Matz <matz@suse.de>
16278 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
16279 Wrap force_reg into a sequence, emit it before user.
16281 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
16283 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
16285 (arm_legacy_rev): Likewise.
16286 (thumb_legacy_rev): Likewise.
16288 2010-01-27 Jakub Jelinek <jakub@redhat.com>
16290 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
16291 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
16292 on MEM's address failed, try avoid_constant_pool_reference and
16293 recurse if it returned something different.
16294 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
16295 address, try avoid_constant_pool_reference and recurse if it
16296 returned something different.
16297 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
16298 address and avoid_constant_pool_reference returned something
16299 different, don't set have_address.
16301 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
16304 * var-tracking.c (val_store): Add modified argument, obey it.
16306 (count_uses): Move down logging of main.
16307 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
16308 don't need resolution.
16309 (emit_notes_in_bb): Likewise.
16311 2010-01-27 Richard Guenther <rguenther@suse.de>
16313 PR middle-end/42878
16314 * tree-inline.c (remap_decl): Delay remapping of SSA name
16315 default definitions until we need them.
16317 2010-01-27 Jakub Jelinek <jakub@redhat.com>
16319 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
16320 (rs6000_delegitimize_address): New function.
16322 * config/s390/s390.c (s390_delegitimize_address): Call
16323 delegitimize_mem_from_attrs.
16325 PR middle-end/42874
16326 * tree-inline.c (cannot_copy_type_1): Removed.
16327 (copy_forbidden): Don't forbid copying of functions containing
16328 records/unions with variable length fields.
16330 2010-01-27 Christian Bruel <christian.bruel@st.com>
16334 * config/sh/sh.c (find_barrier): Increase length for non delayed
16335 conditional branches.
16337 2010-01-27 Matthias Klose <doko@ubuntu.com>
16339 * configure.ac (gnu-unique-object): Fix ldd version check.
16340 * configure: Regenerate.
16342 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16344 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
16346 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
16347 Test for HAVE_GNU_AS value.
16349 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16351 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
16352 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
16353 INT64_TYPE): Define.
16354 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
16355 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
16356 INT_LEAST64_TYPE): Define.
16357 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
16358 UINT_LEAST64_TYPE): Define.
16359 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
16360 INT_FAST64_TYPE): Define.
16361 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
16362 UINT_FAST64_TYPE): Define.
16363 (INTMAX_TYPE, UINTMAX_TYPE): Define.
16364 (INTPTR_TYPE, UINTPTR_TYPE): Define.
16365 (SIG_ATOMIC_TYPE): Define.
16367 2010-01-26 Richard Guenther <rguenther@suse.de>
16369 * df-scan.c (df_scan_set_bb_info): Remove assert.
16370 (df_insn_rescan_debug_internal): Merge asserts.
16371 (df_install_ref): Likewise.
16372 (df_mark_reg): Use bitmap_set_range.
16373 (df_hard_reg_used_p): Remove assert.
16374 (df_hard_reg_used_count): Likewise.
16376 2010-01-26 Richard Guenther <rguenther@suse.de>
16378 PR rtl-optimization/42685
16379 * web.c (web_main): Ignore DEBUG_INSNs.
16381 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
16383 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
16385 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
16386 Fix types of fndecl and arglist parameters.
16388 2010-01-26 Richard Guenther <rguenther@suse.de>
16390 PR middle-end/42806
16391 * tree-eh.c (unsplit_eh): Skip debug insns.
16393 2010-01-26 Richard Guenther <rguenther@suse.de>
16395 PR tree-optimization/42250
16396 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
16398 2010-01-26 Jakub Jelinek <jakub@redhat.com>
16401 * omp-low.c (expand_omp_sections): Only use single_pred if
16402 l2_bb is single_pred_p.
16404 2010-01-25 Christian Bruel <christian.bruel@st.com>
16407 * config/sh/sh.c (find_barrier): Increase length for non delayed
16408 conditional branches.
16409 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
16411 2010-01-24 David S. Miller <davem@davemloft.net>
16413 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
16414 define if not using GAS.
16415 * config/sparc/sparc.c (sparc_elf_asm_named_section):
16416 Likewise. Delete SECTION_MERGE code, which is only applicable
16419 2010-01-24 Mark Mitchell <mark@codesourcery.com>
16422 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
16423 mangling of va_list in system headers.
16425 2010-01-23 Toon Moene <toon@moene.org>
16427 * tree-predcom.c (combine_chains): Return NULL, not false.
16429 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
16431 * tree-loop-distribution.c (distribute_loop): Fix declaration and
16432 initialization of variable res to agree with return type.
16434 2010-01-22 Steve Ellcey <sje@cup.hp.com>
16436 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
16437 * tree-sra.c: Add include of expr.h.
16439 2010-01-22 Jakub Jelinek <jakub@redhat.com>
16441 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
16442 insert the debug stmt on the single non-EH edge from the stmt.
16444 2010-01-22 Richard Henderson <rth@redhat.com>
16447 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
16448 the RHS until after generate_subtree_copies has insertted its
16449 code before the current statement.
16451 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
16453 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
16455 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
16457 2010-01-21 Martin Jambor <mjambor@suse.cz>
16459 PR tree-optimization/42585
16460 * tree-sra.c (struct access): New field grp_total_scalarization.
16461 (dump_access): Dump the new field.
16462 (should_scalarize_away_bitmap): New variable.
16463 (cannot_scalarize_away_bitmap): Likewise.
16464 (sra_initialize): Allocate new bitmaps.
16465 (sra_deinitialize): Free new bitmaps.
16466 (create_access_1): New function.
16467 (create_access): Parts moved to create_access_1.
16468 (type_consists_of_records_p): New function.
16469 (completely_scalarize_record): Likewise.
16470 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
16471 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
16472 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
16474 (analyze_all_variable_accesses): Completely scalarize small eligible
16477 2010-01-21 Martin Jambor <mjambor@suse.cz>
16479 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
16481 2010-01-21 Andrew Haley <aph@redhat.com>
16483 * gcc.c (process_command): Move lang_specific_driver before
16484 setting cc_libexec_prefix.
16486 2010-01-21 Richard Guenther <rguenther@suse.de>
16488 PR middle-end/19988
16489 * fold-const.c (negate_expr_p): Pretend only negative
16490 real constants are easily negatable.
16492 2010-01-20 Janis Johnson <janis187@us.ibm.com>
16493 Jason Merrill <jason@redhat.com>
16495 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
16496 (TYPE_TRANSPARENT_AGGR): this, for union and record.
16497 * calls.c (initialize argument_information): Handle it.
16498 * c-common.c (handle_transparent_union_attribute): Use new name.
16499 * c-decl.c (finish_struct): Ditto.
16500 * c-typeck.c (type_lists_compatible_p): Ditto.
16501 (convert_for_assignment): Use new name and also handle record.
16502 * function.c (aggregate_value_p): Handle it.
16503 (pass_by_reference): Ditto.
16504 (assign_parm_data_types): Ditto.
16505 * print-tree.c (print_node): Ditto.
16506 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
16507 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
16508 * tree.c (first_field): New fn.
16510 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
16513 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
16514 even when linking statically, for now.
16516 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
16519 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
16520 without a cselib val.
16521 (count_uses): Accept MO_VAL_SET with no val on stores.
16522 (add_stores): Likewise.
16524 2010-01-20 Jakub Jelinek <jakub@redhat.com>
16526 * var-tracking.c (check_value_val): Add a compile time assertion.
16527 (dv_is_decl_p): Simplify.
16528 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
16529 gcc_assert if ENABLE_CHECKING.
16531 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
16534 * var-tracking.c: Include tree-flow.h.
16535 (mem_dies_at_call): New.
16536 (dataflow_set_preserve_mem_locs): Use it.
16537 (dataflow_set_remove_mem_locs): Likewise.
16538 (dump_var): Renamed from dump_variable. Adjust all callers.
16539 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
16540 * Makefile.in (var-tracking.o): Adjust deps.
16542 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
16544 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
16546 2010-01-20 Richard Guenther <rguenther@suse.de>
16548 PR tree-optimization/42717
16549 * tree-ssa-dce.c (get_live_post_dom): Remove.
16550 (forward_edge_to_pdom): Take an arbitrary edge to copy
16551 degenerate PHI args from.
16552 (remove_dead_stmt): Use the first post-dominator even if it
16553 does not contain live statements as redirection destination.
16555 2010-01-20 Richard Guenther <rguenther@suse.de>
16557 * tree-inline.c (estimate_num_insns): Handle EH builtins.
16559 2010-01-20 Jakub Jelinek <jakub@redhat.com>
16561 * sel-sched.c (create_speculation_check): Remove set but not used
16563 (try_transformation_cache): Remove set but not used variable ds.
16564 (calculate_privileged_insns): Remove set but not used variables
16565 cur_insn and min_spec_insn.
16566 (find_best_expr): Remove set but not used variable avail_n.
16567 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
16569 * cgraphunit.c (assemble_thunk): Remove set but not used variable
16571 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
16572 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
16573 new_scop_exit_edge.
16575 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
16578 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
16579 cpu types. Add support for *-sse3 cpu types.
16580 (x86_64-*-*): Ditto.
16582 2010-01-20 Jakub Jelinek <jakub@redhat.com>
16584 PR middle-end/42803
16585 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
16586 argument, call initializer_constant_valid_p_1 instead of
16587 initializer_constant_valid_p, pass CACHE to it, return NULL
16588 immediately if first call returns NULL.
16589 (initializer_constant_valid_p_1): New function.
16590 (initializer_constant_valid_p): Use it.
16592 2010-01-20 Thomas Quinot <quinot@adacore.com>
16594 * tree.def (PLACEHOLDER_EXPR): Fix comment.
16596 2010-01-20 Jakub Jelinek <jakub@redhat.com>
16598 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
16599 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
16600 (loc_list_from_tree): Don't handle unsigned division. Handle
16601 signed modulo using DW_OP_{over,over,div,mul,minus}.
16602 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
16603 modulo instead of signed.
16605 2010-01-20 DJ Delorie <dj@redhat.com>
16607 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
16609 (h8300_emit_stack_adjustment): Propogate it.
16611 (h8300_expand_prologue): Likewise.
16612 (h8300_expand_epilogue): Likewise.
16614 2010-01-19 Michael Matz <matz@suse.de>
16616 PR tree-optimization/41783
16617 * tree-data-ref.c (toplevel): Include flags.h.
16618 (dump_data_dependence_relation): Also dump the inputs if the
16619 result will be unknown.
16620 (split_constant_offset_1): Look through some conversions.
16621 * tree-predcom.c (determine_roots_comp): Restart a new chain if
16622 the offset from last element is too large.
16623 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
16624 (reassociate_to_the_same_stmt): Handle vector registers.
16625 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
16626 (e.g. conversions).
16627 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
16628 wide_prolog_niters argument, emit widening instructions.
16629 (vect_do_peeling_for_alignment): Adjust caller, use widened
16630 variant of the iteration cound.
16631 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
16633 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16636 * config/arm/neon-testgen.m (emit_automatics): New parameter
16637 features. Adjust for Fixed_return_reg feature.
16638 (test_intrinsic): Call emit_automatics with new feature.
16639 * config/arm/neon.ml: Update copyright years.
16640 (features): New Fixed_return_reg feature.
16641 (ops): Update feature for Vget_low.
16643 2010-01-19 Jakub Jelinek <jakub@redhat.com>
16645 PR tree-optimization/42719
16646 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
16650 * fwprop.c (all_uses_available_at): Return false if def_set dest
16651 is a REG that is used in def_insn.
16653 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
16655 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
16657 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
16658 Add argument names.
16660 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
16662 * target.h (struct gcc_target) <secondary_reload>: Change type
16663 of last argument to secondary_reload_info *.
16665 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
16668 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
16669 memory references with unaligned offsets. Remove CQImode handling.
16670 (unaligned_memory_operand): Return 1 for memory references with
16671 unaligned offsets. Remove CQImode handling.
16673 2010-01-18 Richard Guenther <rguenther@suse.de>
16675 PR middle-end/39954
16676 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
16679 2010-01-18 Richard Guenther <rguenther@suse.de>
16681 PR tree-optimization/42781
16682 * tree-ssa-structalias.c (find_what_var_points_to): Skip
16683 restrict processing only if the original variable was artificial.
16685 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
16687 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
16688 find number of popped argument bytes.
16690 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
16691 Fix the text that describes the return value for invalid insns.
16693 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
16695 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
16696 Clarify what 'cost of the -dependence' is. Fix quoting.
16698 * toplev.c (default_get_pch_validity): Rename argument to "sz".
16699 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
16701 2010-01-17 Jakub Jelinek <jakub@redhat.com>
16703 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
16704 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
16706 2010-01-17 Richard Guenther <rguenther@suse.de>
16708 PR middle-end/42248
16709 * function.c (split_complex_args): Take a VEC to modify.
16710 (assign_parms_augmented_arg_list): Build a VEC instead of
16711 a chain of PARM_DECLs.
16712 (assign_parms_unsplit_complex): Take a VEC of arguments.
16713 Do not fixup unmodified parms.
16714 (assign_parms): Deal with the VEC.
16715 (gimplify_parameters): Likewise.
16717 2010-01-17 Richard Guenther <rguenther@suse.de>
16719 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
16720 node existence check.
16721 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
16722 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
16723 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
16724 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
16725 (gimple_execute_on_growing_pred): Likewise.
16727 2010-01-17 Richard Guenther <rguenther@suse.de>
16729 PR tree-optimization/42773
16730 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
16731 (compute_antic_aux): Likewise.
16732 (compute_partial_antic_aux): Likewise.
16734 2010-01-17 Jie Zhang <jie.zhang@analog.com>
16737 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
16740 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
16742 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
16745 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
16746 Fix markup for strict argument.
16748 (TARGET_SCHED_REORDER2): Fix argument types.
16750 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
16751 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
16753 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
16754 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
16756 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
16759 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
16760 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
16761 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
16762 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
16763 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
16765 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
16767 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
16769 (TARGET_ASM_RELOC_RW_MASK): Add return type.
16770 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
16772 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
16774 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
16777 (TARGET_ASM_NAMED_SECTION): Fix argument list.
16779 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
16780 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
16782 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
16784 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
16786 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
16787 referring to it. Fix language.
16789 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
16791 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
16793 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
16795 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
16797 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
16798 '@var{stream}. Remove stray 'and'.
16800 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
16802 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
16804 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
16806 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
16807 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
16809 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
16810 Fix description of return value.
16811 Rename argument "sz" to "len."
16813 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
16814 Clarify meaning of 'true' return value.
16816 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
16818 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
16819 rep_mode versus mode_rep.
16821 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
16823 (TARGET_BUILTIN_DECL): Fix name.
16825 (TARGET_COMMUTATIVE_P): Fix type of first argument.
16827 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
16829 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
16831 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
16833 (TARGET_RELAXED_ORDERING): Use @deftypevr.
16835 (TARGET_GET_DRAP_RTX): Note that this is a hook.
16838 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
16839 Rename argument tm_fn to md_fn.
16841 (TARGET_OPTION_PRINT): Fix argument list.
16843 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
16846 * config/i386/i386.c (ix86_fixup_binary_operands):
16847 Revert FMA4 fixup of operands.
16849 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16852 * Makefile.in (write_entries_to_file, install-plugin):
16853 Use \012 instead of \n with tr.
16855 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
16857 * configure.ac (HAVE_AS_REF): New C macro.
16858 * configure: Regenerate.
16859 * config.in: Likewise.
16860 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
16862 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
16865 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
16867 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
16869 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
16871 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
16873 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
16875 (TARGET_IN_SMALL_DATA_P): Fix argument type.
16877 (TARGET_BINDS_LOCAL_P): Fix argument type.
16879 (TARGET_ASM_FILE_END): Use prototype.
16881 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
16883 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
16885 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
16887 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
16889 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
16890 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
16892 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
16893 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
16895 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
16896 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
16897 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
16898 (TARGET_ADDR_SPACE_CONVERT): Likewise.
16900 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
16902 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
16904 (TARGET_INIT_BUILTINS): Use prototype.
16906 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
16907 Put 'const char *' in braces. Fix parameter types.
16908 (TARGET_INVALID_CONVERSION): Fix parameter types.
16909 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
16910 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
16912 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
16915 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
16917 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
16919 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
16921 * doc/tm.texi (TARGET_HELP): Fix return type.
16923 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
16924 in braces. Fix argument types.
16926 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
16928 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
16930 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
16932 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
16933 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
16935 (TARGET_MANGLE_TYPE): Fix argument types.
16937 (TARGET_IRA_COVER_CLASSES): Use prototype.
16939 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
16941 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
16943 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
16945 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
16947 (TARGET_CALLEE_COPIES): Fix argument types.
16949 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
16951 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
16953 (TARGET_FUNCTION_VALUE): Fix argument types.
16955 (TARGET_RETURN_IN_MSB): Fix argument type.
16957 (TARGET_RETURN_IN_MEMORY): Fix argument types.
16959 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
16961 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
16963 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
16964 agree with return type.
16966 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
16968 2010-01-15 Jing Yu <jingyu@google.com>
16970 PR rtl-optimization/42691
16971 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
16972 a pseudo to a constant and are merged, and adjust comments.
16974 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
16976 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
16978 2010-01-15 Richard Guenther <rguenther@suse.de>
16980 PR middle-end/42739
16981 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
16982 labels of computed or non-local gotos to the destination.
16983 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
16984 landing pad label is the first label.
16986 2010-01-15 Richard Guenther <rguenther@suse.de>
16988 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
16990 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
16993 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
16994 to allow generation of the xssqrtdp instruction on power7.
16995 (sqrtdf2_fpr): Ditto.
16997 2010-01-14 Jakub Jelinek <jakub@redhat.com>
16999 PR middle-end/42674
17000 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
17001 functions with noreturn attribute.
17004 * varasm.c (declare_weak): Add weak attribute to decl if it
17005 doesn't have one already.
17006 (assemble_external): Only add decls to weak_decls if they also
17007 have weak attribute.
17009 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
17011 * var-tracking.c (var_reg_delete): Don't delete the association
17012 between REGs and values or one-part variables if the register
17015 2010-01-14 Jakub Jelinek <jakub@redhat.com>
17018 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
17019 because its first operand is a non-localized variable.
17021 2010-01-14 Martin Jambor <mjambor@suse.cz>
17023 PR tree-optimization/42706
17024 * tree-sra.c (encountered_recursive_call): New variable.
17025 (encountered_unchangable_recursive_call): Likewise.
17026 (sra_initialize): Initialize both new variables.
17027 (callsite_has_enough_arguments_p): New function.
17028 (scan_function): Call decl and flags check only for IPA-SRA, check
17029 whether there is a recursive call and whether it has enough arguments.
17030 (all_callers_have_enough_arguments_p): New function.
17031 (convert_callers): Look for recursive calls only when
17032 encountered_recursive_call is set.
17033 (ipa_early_sra): Bail out either if
17034 !all_callers_have_enough_arguments_p or
17035 encountered_unchangable_recursive_call.
17037 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17039 * sel-sched.c: Add 2010 to copyright years.
17040 * sel-sched-ir.c: Likewise.
17041 * sel-sched-ir.h: Likewise.
17043 2010-01-14 Martin Jambor <mjambor@suse.cz>
17045 PR tree-optimization/42714
17046 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
17047 constructors specially.
17049 2010-01-14 Andi Kleen <ak@linux.intel.com>
17051 * config/i386/drivers-i386.c (detect_caches_intel):
17052 Add l2sizekb parameter and fill in.
17053 (host_detect_local_cpu): Add l2sizekb, fill in.
17054 Add Atom small cache heuristic.
17056 2010-01-14 Andi Kleen <ak@linux.intel.com>
17058 * config/i386/drivers-i386.c (detect_caches_cpuid4):
17059 Add level3 parameter and fill in.
17060 (detect_caches_intel): Handle level3 cache.
17062 2010-01-14 Andi Kleen <ak@linux.intel.com>
17064 * config/i386/drivers-i386.c (host_detect_local_cpu):
17065 Fix core duo detection.
17067 2010-01-14 Andi Kleen <ak@linux.intel.com>
17069 * config/i386/drivers-i386.c (host_detect_local_cpu):
17070 Fix Atom detection.
17072 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17074 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
17075 (rs6000_variable_issue_1): this. Use...
17076 (rs6000_variable_issue): here. Reimplement. Print debug info.
17078 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17080 * sel-sched-ir.c (sel_restore_other_notes): Rename to
17081 sel_restore_notes. Update all callers. Call reemit_notes
17084 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17086 PR rtl-optimization/42246
17087 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
17090 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17092 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
17093 all successors is the same as number of successors in current region.
17095 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17097 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
17098 to rename is not separable. Otherwise check that its LHS is not NULL.
17100 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17102 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
17104 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17106 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
17107 available registers when failed to discover LHS register class.
17108 Fix indentation. Update comment.
17110 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17111 Alexander Monakov <amonakov@ispras.ru>
17113 PR rtl-optimization/42389
17114 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
17116 (advance_state_on_fence): Likewise.
17117 (sel_target_adjust_priority): Print debug output only when
17118 sched_verbose >= 4, not 2.
17119 (get_expr_cost): Do not issue all unique insns on the next cycle.
17120 (fill_insns): Initialize can_issue_more from the value saved
17122 * sel-sched-ir.c (flist_add): New parameter issue_more.
17123 Init FENCE_ISSUE_MORE with it.
17124 (merge_fences): Likewise.
17125 (init_fences): Update call to flist_add.
17126 (add_to_fences, add_clean_fence_to_fences)
17127 (add_dirty_fence_to_fences): Likewise.
17128 (move_fence_to_fences): Update call to merge_fences.
17129 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
17131 * sel-sched-ir.h (struct _fence): New field issue_more.
17132 (FENCE_ISSUE_MORE): New accessor macro.
17134 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17136 PR rtl-optimization/42388
17137 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
17138 that have no predecessors nor successors. Do not call move_bb_info
17139 for empty blocks outside of current region.
17141 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17143 PR rtl-optimization/42294
17144 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
17145 * sel-sched.c (move_exprs_to_boundary): Transitively add all
17146 originators' originators.
17148 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
17150 PR rtl-optimization/39453
17151 PR rtl-optimization/42246
17152 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
17154 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
17156 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17157 Alexander Monakov <amonakov@ispras.ru>
17159 PR middle-end/42245
17160 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
17161 (maybe_tidy_empty_bb): ... here. Make static. Add new
17162 argument. Update all callers.
17163 (tidy_control_flow): ... and here. Recompute topological order
17164 of basic blocks in region if necessary.
17165 (sel_redirect_edge_and_branch): Change return type. Return true
17166 if topological order might have been invalidated.
17167 (purge_empty_blocks): Export and move from...
17168 * sel-sched.c (purge_empty_blocks): ... here.
17169 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
17170 (maybe_tidy_empty_bb): Delete prototype.
17171 (purge_empty_blocks): Declare.
17173 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
17175 PR rtl-optimization/42249
17176 * sel-sched.c (try_replace_dest_reg): When chosen register
17177 and original register is the same, do not bail out early, but
17178 still check all original insns for validity of replacing destination
17179 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
17182 2010-01-14 Jakub Jelinek <jakub@redhat.com>
17185 Port from no-undefined-overflow branch:
17186 2009-03-09 Richard Guenther <rguenther@suse.de>
17188 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
17190 2010-01-14 Richard Guenther <rguenther@suse.de>
17193 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
17195 2010-01-14 Ira Rosen <irar@il.ibm.com>
17197 PR tree-optimization/42709
17198 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
17199 as scalar type in creation of constant vector operand.
17201 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17204 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
17205 (check-parallel-%): Match `testsuite' directory component only
17208 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
17210 PR translation/39521
17211 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
17214 2010-01-13 Richard Guenther <rguenther@suse.de>
17216 PR tree-optimization/42730
17217 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
17220 2010-01-13 Steve Ellcey <sje@cup.hp.com>
17223 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
17224 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
17227 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
17229 * config/bfin/libgcc-bfin.ver: Regenerate based on current
17230 libgcc-std.ver. Add entries for ___smulsi3_highpart and
17231 ___umulsi3_highpart.
17233 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
17234 rather than schedule_insns if the pass is enabled.
17236 2010-01-13 Martin Jambor <mjambor@suse.cz>
17238 PR tree-optimization/42704
17239 * tree-sra.c (sra_modify_assign): Do not delete assignments to
17242 2010-01-13 Martin Jambor <mjambor@suse.cz>
17244 PR tree-optimization/42703
17245 * tree-sra.c (analyze_access_subtree): Check that we can build a
17246 reference to the original data within the aggregate.
17248 2010-01-13 Richard Guenther <rguenther@suse.de>
17250 PR tree-optimization/42705
17251 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
17253 2010-01-13 Richard Guenther <rguenther@suse.de>
17255 PR middle-end/42716
17256 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
17258 2010-01-13 Jakub Jelinek <jakub@redhat.com>
17261 * var-tracking.c (values_to_unmark): New variable.
17262 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
17263 values_to_unmark vector. Moved body to...
17264 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
17265 instead queue it into values_to_unmark vector.
17266 (vt_find_locations): Free values_to_unmark vector.
17268 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
17270 * config/s390/s390.c (override_options): Set
17271 default of max-pending-list-length to 256
17273 2010-01-13 Richard Guenther <rguenther@suse.de>
17276 * tree-pass.h (PROP_gimple_lcx): New.
17277 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
17278 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
17279 before the final cleanup_eh.
17280 (dump_properties): Dump PROP_gimple_lcx.
17281 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
17282 (tree_lower_complex_O0): Remove.
17283 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
17284 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
17285 tree_lower_complex, schedule TODO_update_ssa.
17286 * lto-streamer-out.c (output_function): Stream the functions
17288 * lto-streamer-in.c (input_function): Likewise.
17289 (lto_read_body): Do not override them here.
17291 2010-01-12 Joseph Myers <joseph@codesourcery.com>
17294 * c-typeck.c (build_c_cast): Fold value cast to union type before
17295 wrapping it in a CONSTRUCTOR.
17297 2010-01-12 Jakub Jelinek <jakub@redhat.com>
17299 PR rtl-optimization/42699
17300 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
17303 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17305 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
17306 SUBTARGET_WARN_UNUSED_SPEC): Move ...
17307 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
17308 SUBTARGET_WARN_UNUSED_SPEC): ... here
17309 * config/mips/iris5.h (LIBGCC_SPEC): Define.
17311 2010-01-12 Julian Brown <julian@codesourcery.com>
17313 * config/arm/neon-schedgen.ml (Utils): Don't try to
17314 open missing module.
17315 (find_with_result): New.
17317 2010-01-12 Jakub Jelinek <jakub@redhat.com>
17320 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
17321 sharing when canonicalizing ({lt,ge}u (plus a b) b).
17323 PR tree-optimization/42645
17324 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
17325 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
17326 decl_map, set processing_debug_stmt to -1 and return name without
17329 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
17331 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
17332 binutils version, and reword target configuration description.
17334 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
17336 * config/avr/avr.h (LINKER_NAME): Remove.
17338 2010-01-11 Janis Johnson <janis187@us.ibm.com>
17341 * config/rs6000/rs6000.c (rs6000_override_options): On targets
17342 that support VSX, warn for -mno-altivec if vsx is not disabled,
17345 2010-01-11 Joseph Myers <joseph@codesourcery.com>
17346 Shujing Zhao <pearly.zhao@oracle.com>
17348 PR translation/42469
17349 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
17350 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
17351 character between option name and help text.
17352 * c.opt (imultilib): Likewise.
17354 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
17356 * lto-streamer-out.c (output_unreferenced_globals): Output static
17359 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
17361 PR rtl-optimization/42621
17362 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
17363 optimizing for size.
17364 (duplicate_computed_gotos): Remove now-redundant check.
17366 2010-01-10 Steve Ellcey <sje@cup.hp.com>
17369 * configure.ac: Save and restore LDFLAGS and LIBS
17370 * configure: Regenerate.
17372 2010-01-10 Richard Guenther <rguenther@suse.de>
17374 PR middle-end/42667
17375 * builtins.c (fold_builtin_strlen): Add type argument and
17376 convert the resulting length to it.
17377 (fold_builtin_1): Adjust.
17379 2010-01-09 Jakub Jelinek <jakub@redhat.com>
17381 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
17382 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
17384 (num_insns_constant_wide): Adjust for that change.
17386 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17389 * web.c (union_defs): Add used argument, to combine uses of
17390 uninitialized regs.
17391 (entry_register): Adjust type and tests of used argument.
17392 (web_main): Widen used for new use. Pass it to union_defs.
17393 * df.h (union_defs): Adjust prototype.
17395 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17398 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
17399 uses in new incoming argument. Free body.
17400 (reset_debug_uses_in_loop): New.
17401 (analyze_insn_to_expand_var): Call the latter if the former found
17402 anything. Fix whitespace. Reject invalid dest overlaps before
17403 going through all insns in the loop.
17405 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17408 * haifa-sched.c (dying_use_p): Debug insns don't count.
17410 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17412 PR middle-end/42363
17413 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
17414 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
17415 (verify_gimple_call): Reject LHS in noreturn calls.
17417 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17421 * tree-vect-loop-manip.c (adjust_info): New type.
17422 (adjust_vec): New pointer to vector.
17423 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
17424 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
17425 (slpeel_update_phis_for_duplicate_loop): Use them.
17426 (slpeel_update_phi_nodes_for_guard1): Likewise.
17427 (slpeel_update_phi_nodes_for_guard2): Likewise.
17428 (slpeel_tree_peel_loop_to_edge): Likewise.
17429 (vect_update_ivs_after_vectorizer): Likewise.
17431 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17433 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
17434 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
17436 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
17438 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
17439 bogus uninitialized warning.
17441 2010-01-09 Richard Guenther <rguenther@suse.de>
17443 PR middle-end/42512
17444 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
17445 the evolution is compatible with the initial condition.
17447 2010-01-09 Jakub Jelinek <jakub@redhat.com>
17449 * gcc.c (process_command): Update copyright notice dates.
17450 * gcov.c (print_version): Likewise.
17451 * gcov-dump.c (print_version): Likewise.
17452 * mips-tfile.c (main): Likewise.
17453 * mips-tdump.c (main): Likewise.
17455 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
17458 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
17460 (rotlhi3_8): Delete.
17462 (rotlsi3_8): Delete.
17463 (rotlsi3_16): Delete.
17464 (rotlsi3_24): Delete.
17465 (rotl<mode>3): New.
17466 (*rotw<mode>3): New.
17467 (*rotb<mode>3): New.
17468 * config/avr/avr.c (avr_rotate_bytes): New function.
17469 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
17471 2010-01-08 Steve Ellcey <sje@cup.hp.com>
17474 * configure.ac: Modify -rdynamic check.
17475 * configure: Regenerate.
17477 2010-01-08 DJ Delorie <dj@redhat.com>
17479 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
17480 register popping order.
17482 2010-01-08 Richard Guenther <rguenther@suse.de>
17485 * c.opt (fsigned-char): Also let LTO handle this option.
17486 (funsigned-char): Likewise.
17488 2010-01-07 Richard Guenther <rguenther@suse.de>
17490 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
17491 (gimple_op): Likewise.
17492 (gimple_op_ptr): Likewise.
17493 (gimple_assign_set_lhs): Remove gcc_assert.
17494 (gimple_assign_set_rhs1): Likewise.
17495 (gimple_assign_set_rhs2): Likewise.
17496 (gimple_call_set_lhs): Likewise.
17497 (gimple_call_set_fn): Likewise.
17498 (gimple_call_set_fndecl): Likewise.
17499 (gimple_call_fndecl): Likewise.
17500 (gimple_call_return_type): Likewise.
17501 (gimple_call_set_chain): Likewise.
17502 (gimple_call_num_args): Likewise.
17503 (gimple_call_set_arg): Likewise.
17504 (gimple_cond_set_code): Likewise.
17505 (gimple_cond_set_lhs): Likewise.
17506 (gimple_cond_set_rhs): Likewise.
17507 (gimple_cond_set_true_label): Likewise.
17508 (gimple_cond_set_false_label): Likewise.
17509 (gimple_label_set_label): Likewise.
17510 (gimple_goto_set_dest): Likewise.
17511 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
17512 (gimple_debug_bind_get_value): Likewise.
17513 (gimple_debug_bind_get_value_ptr): Likewise.
17514 (gimple_debug_bind_set_var): Likewise.
17515 (gimple_debug_bind_set_value): Likewise.
17516 (gimple_debug_bind_reset_value): Likewise.
17517 (gimple_debug_bind_has_value_p): Likewise.
17518 (gimple_return_retval_ptr): Remove gcc_assert.
17519 (gimple_return_retval): Likewise.
17520 (gimple_return_set_retval): Likewise.
17521 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
17522 (safe_referenced_var_iterator): Remove.
17523 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
17524 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
17525 (fill_referenced_var_vec): Remove.
17526 (first_readonly_imm_use): Remove redundant gcc_assert.
17527 (phi_arg_index_from_use): Combine gcc_asserts.
17528 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
17529 (first_imm_use_stmt): Remove redundant gcc_assert.
17530 * tree-cfg.c (verify_gimple_call): Verify function and chain
17531 operands. Verify arguments.
17532 (verify_types_in_gimple_stmt): Verify condition code and labels.
17534 2010-01-07 Richard Guenther <rguenther@suse.de>
17536 PR tree-optimization/42641
17537 * sese.c (rename_map_elt_info): Use the SSA name version, do
17540 2010-01-07 Jakub Jelinek <jakub@redhat.com>
17542 PR tree-optimization/42625
17543 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
17544 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
17546 2010-01-07 Duncan Sands <baldrick@free.fr>
17548 * Makefile.in (PLUGIN_HEADERS): Add version.h.
17550 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
17553 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
17554 note itself is not function_invariant_p.
17556 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
17558 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
17559 Do not add the DF_NOTE problem.
17560 * store-motion.c (execute_rtl_store_motion): Likewise.
17562 2010-01-07 Martin Jambor <mjambor@suse.cz>
17564 PR tree-optimization/42157
17565 * tree-sra.c (compare_access_positions): Stabilize sort if both
17566 accesses have integer types, return zero immediately if they are the
17569 2010-01-06 Richard Henderson <rth@redhat.com>
17571 PR middle-end/41883
17572 * haifa-sched.c (add_to_note_list): Merge into ...
17573 (concat_note_lists): ... here, and ...
17574 (unlink_other_notes, rm_other_notes): Merge into...
17575 (remove_notes): ... here. Create REG_SAVE_NOTEs for
17576 NOTE_INSN_EPILOGUE_BEG.
17578 2010-01-06 Richard Guenther <rguenther@suse.de>
17580 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
17581 not inline regular functions into always-inline functions.
17583 2010-01-06 Nick Clifton <nickc@redhat.com>
17585 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
17586 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
17588 (OVERRIDE_OPTIONS): Delete.
17589 (OPTIMIZATION_OPTIONS): Define.
17590 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
17591 * config/rx/rx.c (rx_handle_option): Issue an error message if
17592 -mcpu=rx200 and -fpu are used together.
17593 (rx_set_optimization_options): New function. Issue an error
17594 message if an optimization attribute attempts to reset the FPU/
17595 math optimization pairing.
17596 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
17597 * config/rx/rx.opt: Set the default to 32-bit doubles.
17598 * config/rx/t-rx: Add multilibs for -nofpu option.
17599 * doc/invoke.texi: Update documentation of RX options.
17601 2010-01-06 Richard Guenther <rguenther@suse.de>
17603 * tree-ssa-pre.c (name_to_id): New global.
17604 (alloc_expression_id): Simplify SSA name handling.
17605 (lookup_expression_id): Likewise.
17606 (init_pre): Zero name_to_id.
17607 (fini_pre): Free it.
17609 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
17611 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
17613 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
17616 * config/i386/sse.md (smaxv2di3): New.
17617 (umaxv2di3): Likewise.
17618 (sminv2di3): Likewise.
17619 (uminv2di3): Likewise.
17621 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
17624 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
17625 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
17626 (legitimize_tls_address): Likewise.
17627 (sparc_tls_referenced_p): Likewise.
17628 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
17629 and adjust calls to legitimize_pic_address.
17630 (legitimate_constant_p) Use sparc_tls_referenced_p.
17631 (legitimate_pic_operand_p): Likewise.
17632 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
17633 (sparc_tls_symbol_ref_1): Delete.
17634 (sparc_tls_referenced_p): Make static, recognize specific patterns.
17635 (legitimize_tls_address): Make static, handle CONST patterns.
17636 (legitimize_pic_address): Make static, remove unused parameter and
17637 adjust recursive calls.
17638 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
17639 and adjust call to legitimize_pic_address.
17640 (sparc_output_mi_thunk): Likewise.
17642 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
17643 H.J. Lu <hongjiu.lu@intel.com>
17646 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
17647 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
17648 operands to make them signed.
17651 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
17654 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
17655 GTU to GT for V4SI and V2DI.
17657 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
17658 (umin<mode>3): Removed.
17660 (uminv4si3): Likewise.
17662 2010-01-05 Martin Jambor <mjambor@suse.cz>
17664 PR tree-optimization/42462
17665 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
17666 current_function_decl to helper functions and macros.
17668 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17671 * flags.h: Don't include real.h.
17672 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
17673 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
17674 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
17675 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
17676 * dominance.c: Update copyright.
17677 * gimple.c (walk_gimple_op): Remove inline.
17678 * tree-ssa-reassoc.c: Include real.h.
17679 * Makefile.in (FLAGS_H): Remove $(REAL_H).
17680 (tree-ssa-reassoc.o): Depend on $(REAL_H).
17682 2010-01-05 Nick Clifton <nickc@redhat.com>
17684 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
17685 register to push into the stack frame when the accumulator has to
17686 be saved during interrupts.
17688 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
17690 * doc/invoke.texi: Remove the documentation about option
17691 -Wunreachable-code.
17692 * common.opt (Wunreachable-code): Preserved for backward
17694 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
17695 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
17696 the backward compatibility flag section.
17698 2010-01-05 Richard Guenther <rguenther@suse.de>
17700 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
17702 2010-01-05 Jakub Jelinek <jakub@redhat.com>
17705 * cfgexpand.c (expand_one_var): Diagnose too large variables.
17707 PR tree-optimization/42508
17708 * tree-sra.c (convert_callers): Check for recursive call
17709 by comparing cgraph nodes instead of decls.
17710 (modify_function): Call ipa_modify_formal_parameters also
17711 on all same_body aliases.
17713 * cgraphunit.c (cgraph_materialize_all_clones): Compare
17714 cgraph nodes when checking for same_body aliases.
17716 2010-01-05 Richard Guenther <rguenther@suse.de>
17718 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
17719 allocation and lookup.
17720 (get_or_alloc_expr_for_constant): Likewise.
17721 (phi_translate): Sink allocation.
17723 2010-01-04 Richard Guenther <rguenther@suse.de>
17725 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
17726 a new entry only if needed.
17727 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
17728 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
17730 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
17732 (phi_translate): Handle CONSTANTs early.
17734 2010-01-04 Martin Jambor <mjambor@suse.cz>
17736 PR tree-optimization/42398
17737 * tree-sra.c (struct access): Removed flag grp_different_types.
17738 (dump_access): Do not dump the removed flag.
17739 (sort_and_splice_var_accesses): Do not set the removed flag.
17740 (sra_modify_expr): Check for type compatibility directly.
17742 2010-01-04 Martin Jambor <mjambor@suse.cz>
17744 PR tree-optimization/42366
17745 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
17746 edges with variable number of parameters.
17747 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
17748 flag instead of asserting it.
17749 (ipa_read_node_info): Read uses_analysis_done flag.
17751 2010-01-04 Richard Guenther <rguenther@suse.de>
17753 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
17754 iterative_hash_* as intended.
17755 (vn_reference_compute_hash): Likewise. Simplify hashing
17757 (vn_reference_lookup_2): Likewise.
17758 (vn_nary_op_compute_hash): Likewise.
17759 (vn_phi_compute_hash): Likewise.
17760 (expressions_equal_p): Remove strange code.
17761 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
17762 (pre_expr_hash): Likewise. Simplify hashing SSA names.
17763 (bitmap_insert_into_set_1): Take value-id as parameter.
17764 (add_to_value): Pass it.
17765 (bitmap_insert_into_set): Likewise.
17766 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
17768 2010-01-04 Jakub Jelinek <jakub@redhat.com>
17771 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
17772 (do_self_spec): For switches with SWITCH_IGNORE set set also
17773 SWITCH_IGNORE_PERMANENTLY.
17774 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
17777 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
17779 * lto-streamer-out.c (output_unreferenced_globals): Output the full
17780 tree of an unreferenced global var.
17782 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
17785 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
17786 GTU to GT for V4SI and V2DI.
17788 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
17789 (umin<mode>3): Removed.
17791 (uminv4si3): Likewise.
17793 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
17796 * collect2.c (main): Turn on trace in collect2 if -v is passed
17799 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
17801 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
17802 description of expression operand.
17804 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
17806 * configure.ac: Add install-html to target_list for Make-hooks.
17807 * configure: Regenerate.
17808 * fortran/Make-lang.in (F95_HTMLFILES): New.
17809 (fortran.html): Use it.
17810 (fortran.install-html): New.
17811 * Makefile.in (install-html): Add lang.install-html.
17812 * java/Make-lang.in (JAVA_HTMLFILES): New.
17813 (java.html): Use it.
17814 (java.install-html): New.
17815 * objc/Make-lang.in (objc.install-html): New.
17816 * objcp/Make-lang.in (obj-c++.install-html): New.
17817 * cp/Make-lang.in (c++.install-html): New.
17818 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
17819 * lto/Make-lang.in (lto.install-html): New.
17821 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
17824 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
17826 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
17828 PR rtl-optimization/41862
17829 * store-motion.c (store_killed_in_insn, compute_store_table,
17830 remove_reachable_equiv_notes, replace_store_insn,
17831 build_store_vectors): Ignore all DEBUG_INSNs.
17833 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
17836 * common.opt: Add dumpdir.
17838 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
17840 (option_map): Add --dumpdir.
17842 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
17844 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
17846 * opts.c (decode_options): Try dump_dir_name first if
17847 dump_base_name isn't an absolute path.
17848 (common_handle_option): Handle OPT_dumpdir.
17850 * toplev.c (dump_dir_name): New.
17851 (print_switch_values): Also ignore -dumpdir.
17853 * toplev.h (dump_dir_name): New.
17855 2010-01-03 Richard Guenther <rguenther@suse.de>
17857 PR tree-optimization/42589
17858 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
17859 double-word expansion of bswap32.
17861 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
17863 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
17864 with BLOCK_FOR_INSN.
17865 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
17866 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
17867 noce_process_if_block): Likewise.
17868 * gcse.c (compute_local_properties, insert_expr_in_table,
17869 insert_set_in_table, canon_list_insert, find_avail_set,
17870 pre_insert_copy_insn): Likewise.
17872 * basic-block.h (BLOCK_NUM): Move from here...
17873 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
17875 2010-01-03 Richard Guenther <rguenther@suse.de>
17877 PR tree-optimization/42438
17878 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
17879 contains_may_not_return_call flag.
17880 (BB_MAY_NOTRETURN): New.
17881 (valid_in_sets): Trapping nary operations are not valid
17882 in blocks that may not return.
17883 (insert_into_preds_of_block): Remove check for trapping expressions.
17884 (compute_avail): Compute also BB_MAY_NOTRETURN.
17886 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
17888 * doc/invoke.texi: Add 2010 to copyright years.
17890 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
17892 * config/sparc/sparc.c: Fix formatting nits.
17894 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
17895 Alexander Monakov <amonakov@ispras.ru>
17897 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
17899 2010-01-02 Richard Guenther <rguenther@suse.de>
17901 PR middle-end/42577
17902 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
17903 (simplify_switch_using_ranges): Mark to be removed edges
17906 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17908 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
17910 * collect2.c (scan_libraries): Add missing argument in call to
17913 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
17916 * config/alpha/predicates.md (aligned_memory_operand): Return false
17918 (unaligned_memory_operand): Return true for CQImode.
17919 * config/alpha/alpha.c (get_aligned_mem): Assert that location
17920 doesn not cross aligned SImode word boundary.
17922 2010-01-02 Anatoly Sokolov <aesok@post.ru>
17924 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
17926 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
17927 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
17929 2010-01-02 Richard Guenther <rguenther@suse.de>
17932 * toplev.c (compile_file): Emit LTO marker properly. Change
17933 it to __gnu_lto_v1.
17934 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
17936 2010-01-01 Richard Guenther <rguenther@suse.de>
17939 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
17941 2010-01-01 Richard Guenther <rguenther@suse.de>
17944 * c-decl.c (grokdeclarator): For zero-size arrays force
17945 structural equality checks as layout_type does.
17947 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
17949 * builtins.c: Update copyright to 2010.
17951 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
17954 * lto-streamer-out.c (produce_asm): Revert the last change.
17955 (copy_function): Likewise.
17957 * lto-streamer.c (lto_get_section_name): Skip any leading
17960 2010-01-01 Richard Guenther <rguenther@suse.de>
17962 PR middle-end/42559
17963 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
17967 Copyright (C) 2010 Free Software Foundation, Inc.
17969 Copying and distribution of this file, with or without modification,
17970 are permitted in any medium without royalty provided the copyright
17971 notice and this notice are preserved.