]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
interchange-1.f: Remove xfail.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
3bb19a90
VM
12011-08-19 Vladimir Makarov <vmakarov@redhat.com>
2
3 PR rtl-optimization/49936
4 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
5 for calculation of max register move costs.
6
02ee3d31
JM
72011-08-19 Joseph Myers <joseph@codesourcery.com>
8
9 * c-parser.c (c_parser_postfix_expression): Convert operands of
10 __builtin_complex to their semantic types.
11
54f6892e
L
122011-08-19 H.J. Lu <hongjiu.lu@intel.com>
13
14 PR middle-end/49721
15 * explow.c (convert_memory_address_addr_space): Also permute the
16 conversion and addition of constant for zero-extend.
17
d4a83c10
JM
182011-08-19 Joseph Myers <joseph@codesourcery.com>
19
20 * c-parser.c (c_parser_postfix_expression): Handle
21 RID_BUILTIN_COMPLEX.
22 * doc/extend.texi (__builtin_complex): Document.
23
a6f969f4
AS
242011-08-19 Andrew Stubbs <ams@codesourcery.com>
25
26 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
27 beyond conversions.
28 (convert_mult_to_widen): Convert constant inputs to the right type.
29 (convert_plusminus_to_widen): Don't automatically reject inputs that
30 are not an SSA_NAME.
31 Convert constant inputs to the right type.
32
75161d2c
AS
332011-08-19 Andrew Stubbs <ams@codesourcery.com>
34
35 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
36 to the correct type.
37
6a228c2c
AS
382011-08-19 Andrew Stubbs <ams@codesourcery.com>
39
40 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
41 unsigned inputs of different modes.
42 (convert_plusminus_to_widen): Likewise.
43
26a855d7
AS
442011-08-19 Andrew Stubbs <ams@codesourcery.com>
45
46 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
47 'type'.
48 Use 'type' from caller, not inferred from 'rhs'.
49 Don't reject non-conversion statements. Do return lhs in this case.
50 (is_widening_mult_p): Add new argument 'type'.
51 Use 'type' from caller, not inferred from 'stmt'.
52 Pass type to is_widening_mult_rhs_p.
53 (convert_mult_to_widen): Pass type to is_widening_mult_p.
54 (convert_plusminus_to_widen): Likewise.
55
ff63d754
AS
562011-08-19 Andrew Stubbs <ams@codesourcery.com>
57
58 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
59 Ensure the the larger type is the first operand.
60
db719f50
AS
612011-08-19 Andrew Stubbs <ams@codesourcery.com>
62
63 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
64 unsupported unsigned multiplies to signed.
65 (convert_plusminus_to_widen): Likewise.
66
cefb4d4f
AS
672011-08-19 Andrew Stubbs <ams@codesourcery.com>
68
69 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
70 conversion statement separating multiply-and-accumulate.
71
2946bd34
RG
722011-08-19 Richard Guenther <rguenther@suse.de>
73
74 PR tree-optimization/50067
75 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
76 offset only if we accounted for it.
77
5dfe80ba
AS
782011-08-19 Andrew Stubbs <ams@codesourcery.com>
79
80 * config/arm/arm.md (maddhidi4): Remove '*' from name.
81 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
82 * optabs.c (find_widening_optab_handler_and_mode): New function.
83 (expand_widen_pattern_expr): Use find_widening_optab_handler.
84 (expand_binop_directly): Likewise.
85 (expand_binop): Likewise.
86 * optabs.h (find_widening_optab_handler): New macro define.
87 (find_widening_optab_handler_and_mode): New prototype.
88 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
89 type precision rules.
90 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
91 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
92 (is_widening_mult_rhs_p): Allow widening by more than one mode.
93 Explicitly disallow mis-matched input types.
94 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
95 input types to fit the new handler.
96 (convert_plusminus_to_widen): Likewise.
97
a484f6ba
AS
982011-08-19 Andrew Stubbs <ams@codesourcery.com>
99
100 * expr.c (expand_expr_real_2): Use widening_optab_handler.
101 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
102 (gen_insn): $N now means $a must be wider than $b, not consecutive.
103 * optabs.c (widened_mode): New function.
104 (expand_widen_pattern_expr): Use widening_optab_handler.
105 (expand_binop_directly): Likewise.
106 (expand_binop): Likewise.
107 * optabs.h (widening_optab_handlers): New struct.
108 (optab_d): New member, 'widening'.
109 (widening_optab_handler): New function.
110 (set_widening_optab_handler): New function.
111 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
112 widening_optab_handler.
113 (convert_plusminus_to_widen): Likewise.
114
c4b3a0a0
JM
1152011-08-19 Joseph Myers <joseph@codesourcery.com>
116
117 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
118 pedantic.
119 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax
120 comment.
121 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
122
f6d08ab2
JM
1232011-08-19 Joseph Myers <joseph@codesourcery.com>
124
125 * opth-gen.awk: Do not declare target save/restore structures and
126 functions if IN_RTS defined.
127
a3f94870
JY
1282011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
129
130 PR target/49437
131 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
132 when stack was realigned in interrupt handler prologue.
133
bbceee64
JM
1342011-08-18 Joseph Myers <joseph@codesourcery.com>
135
136 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
137 (quals_from_declspecs): Assert _Noreturn not present.
138 (grokdeclarator): Handle _Noreturn.
139 (build_null_declspecs): Initialize noreturn_p.
140 (declspecs_add_scspec): Handle RID_NORETURN.
141 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
142 (c_parser_attributes): Handle RID_NORETURN.
143 * c-tree.h (struct c_declspecs): Add noreturn_p.
144 * ginclude/stdnoreturn.h: New.
145 * Makefile.in (USER_H): Add stdnoreturn.h.
146
7afac110
KY
1472011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
148
149 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
150 (OPTION_MASK_ISA_AVX_UNSET): Update.
151 (OPTION_MASK_ISA_AVX2_UNSET): New.
152 (ix86_handle_option): Handle OPT_mavx2 case.
153 * config/i386/cpuid.h (bit_AVX2): New.
154 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
155 AVX2 feature.
156 * config/i386/i386-c.c (ix86_target_macros_internal):
157 Conditionally define __AVX2__.
158 * config/i386/i386.c (ix86_option_override_internal): Define
159 PTA_AVX2. Define "core-avx2" processor alias. Handle avx2
160 option.
161 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
162 * config/i386/i386.h (TARGET_AVX2): New.
163 * config/i386/i386.opt (mavx2): New.
164 * doc/invoke.texi: Document -mavx2.
165
6277a710
VM
1662011-08-18 Vladimir Makarov <vmakarov@redhat.com>
167
168 PR rtl-optimization/49890
169 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
170 subclasses of class which is superset of a pressure class.
171
df385b9c
L
1722011-08-18 H.J. Lu <hongjiu.lu@intel.com>
173 Igor Zamyatin <igor.zamyatin@intel.com>
174
175 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
176 with HOST_WIDE_INT for isa_flag.
177 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
178 isa variables.
179
180 * config/i386/i386.c (ix86_target_string): Replace int with
181 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
182 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
183 (pta_flags): Removed.
184 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
185 (pta): Use HOST_WIDE_INT on flags.
186 (builtin_isa): Use HOST_WIDE_INT on isa.
187 (ix86_add_new_builtins): Likewise.
188 (def_builtin): Use HOST_WIDE_INT on mask.
189 (def_builtin_const): Likewise.
190 (builtin_description): Likewise.
191
192 * config/i386/i386.opt (ix86_isa_flags): Replace int with
193 HOST_WIDE_INT.
194 (ix86_isa_flags_explicit): Likewise.
195 (x_ix86_isa_flags_explicit): Likewise.
196
9181a6e5
VM
1972011-08-17 Vladimir Makarov <vmakarov@redhat.com>
198
199 PR rtl-optimization/50107
200 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
201 (ira_hard_reg_in_set_p): New.
202
203 * ira-color.c (calculate_saved_nregs): New.
204 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
205 hard regs.
206 (allocno_reload_assign, fast_allocation): Use
207 ira_hard_reg_set_intersection_p instead of
208 ira_hard_reg_not_in_set_p.
209
210 * ira.c (setup_reg_renumber): Use
211 ira_hard_reg_set_intersection_p instead of
212 ira_hard_reg_not_in_set_p.
213 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
214 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
215
216 * ira-costs.c (ira_tune_allocno_costs): Use
217 ira_hard_reg_set_intersection_p instead of
218 ira_hard_reg_not_in_set_p.
219
99114bbf
L
2202011-08-18 H.J. Lu <hongjiu.lu@intel.com>
221 Igor Zamyatin <igor.zamyatin@intel.com>
222
223 * hwint.h (HOST_WIDE_INT_1): New.
224
225 * opt-functions.awk (switch_bit_fields): Initialize the
226 host_wide_int field.
227 (host_wide_int_var_name): New.
228 (var_type_struct): Check and return HOST_WIDE_INT.
229
230 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
231
232 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
233
234 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
235 check masks for HOST_WIDE_INT.
236
237 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
238 (option_enabled): Likewise.
239 (get_option_state): Likewise.
240
241 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
242 to HOST_WIDE_INT.
243
5b880ea6
RO
2442011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
245 Marc Glisse <marc.glisse@normalesup.org>
246
247 PR libstdc++-v3/1773
248 * target.def (decl_mangling_context): New C++ hook.
249 * doc/tm.texi: Regenerate.
250 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
251 * config/sol2-protos.h: Group by source file.
252 (solaris_cxx_decl_mangling_context): Declare.
253 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
254 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
255 Use $<.
256 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
257 Add sol2-stubs.o to extra_objs.
258
4dee9718
JJ
2592011-08-18 Jakub Jelinek <jakub@redhat.com>
260
f44157f8
JJ
261 PR target/50009
262 * stor-layout.c (update_alignment_for_field): Don't ICE on
263 packed flexible array members if ms_bitfield_layout_p.
264
2a63286d
JJ
265 PR target/50092
266 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
267 on the result before returning it.
268
4dee9718
JJ
269 PR debug/50017
270 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
271 is a debug stmt, use location of the first non-debug stmt after it.
272
b28e37f1
RS
2732011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
274
275 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
276 (arm_size_rtx_costs): Likewise.
277
6b8045e1
RG
2782011-08-18 Richard Guenther <rguenther@suse.de>
279
280 * tree.h (tree_int_cst_msb): Remove.
281 * tree.c (tree_int_cst_msb): Likewise.
282 (tree_int_cst_sign_bit): Move from ...
283 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
284
68f932c4
RS
2852011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
286
287 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
288 * doc/tm.texi: Regenerate.
289 * target.def (rtx_costs): Add an opno parameter.
290 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
291 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
292 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
293 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
294 * cse.c (COST_IN): Add an opno parameter.
295 (notreg_cost): Likewise. Update call to rtx_cost.
296 (COST, fold_rtx): Update accordingly.
297 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
298 * expmed.c (emit_store_flag): Likewise.
299 * optabs.c (avoid_expensive_constant): Add an opno parameter.
300 Update call to rtx_cost.
301 (expand_binop_directly, expand_binop): Likewise.
302 (expand_twoval_binop, prepare_cmp_insn): Likewise.
303 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
304 (set_src_cost, get_full_set_src_cost): Update accordingly.
305 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
306 to target hook.
307 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
308 (default_adress_cost): Update calls to rtx_cost.
309
310 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
311 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
312 (arm_rtx_costs): Add an opno parameter.
313 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
314 adjust any recursive rtx-cost calls.
315 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
316 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
317 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
318 * config/cris/cris.c (cris_rtx_costs): Likewise.
319 * config/frv/frv.c (frv_rtx_costs): Likewise.
320 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
321 * config/i386/i386.c (ix86_rtx_costs): Likewise.
322 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
323 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
324 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
325 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
326 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
327 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
328 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
329 * config/mep/mep.c (mep_rtx_cost): Likewise.
330 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
331 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
332 (mips_zero_extend_cost): Add an opno parameter.
333 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
334 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
335 to rtx_cost.
336 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
337 rtx-cost calls.
338 * config/pa/pa.c (hppa_rtx_costs): Likewise.
339 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
340 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
341 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
342 (rs6000_debug_rtx_costs): Likewise.
343 * config/s390/s390.c (s390_rtx_costs): Likewise.
344 * config/score/score-protos.h (score_rtx_costs): Likewise.
345 * config/score/score.c (score_rtx_costs): Likewise.
346 * config/sh/sh.c (andcosts): Update call to rtx_cost.
347 (sh_rtx_costs): Add an opno parameter.
348 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
349 * config/spu/spu.c (spu_rtx_costs): Likewise.
350 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
351 * config/v850/v850.c (v850_rtx_costs): Likewise.
352 * config/vax/vax.c (vax_rtx_costs): Likewise.
353 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
354
5e8f01f4
RS
3552011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
356
357 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
358 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
359 rtx_cost.
360 * calls.c (precompute_register_parameters): Likewise.
361 * combine.c (expand_compound_operation, make_extraction): Likewise.
362 (force_to_mode, distribute_and_simplify_rtx): Likewise.
363 * dse.c (find_shift_sequence): Likewise.
364 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
365 * expr.c (compress_float_constant): Likewise.
366 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
367 * gcse.c (want_to_gcse_p): Likewise.
368 * ifcvt.c (noce_try_sign_mask): Likewise.
369 * loop-doloop.c (doloop_optimize): Likewise.
370 * loop-invariant.c (create_new_invariant): Likewise.
371 * optabs.c (avoid_expensive_constant): Likewise.
372 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
373 (try_replace_in_use, reload_cse_move2add): Likewise.
374 * reload1.c (calculate_elim_costs_all_insns): Likewise.
375 (note_reg_elim_costly): Likewise.
376 * rtlanal.c (insn_rtx_cost): Likewise.
377 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
378 * stmt.c (lshift_cheap_p): Likewise.
379 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
380 * config/avr/avr.c (final_prescan_insn): Likewise.
381 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
382 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
383
d51102f3
RS
3842011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
385
386 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
387 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
388 * cfgloopanal.c (seq_cost): Likewise.
389 * loop-invariant.c (create_new_invariant): Likewise.
390 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
391 (reload_cse_move2add): Use get_full_set_rtx_cost.
392
fdb4f315
RG
3932011-08-18 Richard Guenther <rguenther@suse.de>
394
395 * expr.c (get_inner_reference): Fix typo in last change.
396
4c9cf7af
PC
3972011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
398 Joseph Myers <joseph@codesourcery.com>
399
400 PR tree-optimization/49963
401 * hwint.c (absu_hwi): Define.
402 * hwint.h (absu_hwi): Declare.
403 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
404 of abs_hwi.
405 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
406 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
407
97919ae7
RG
4082011-08-18 Richard Guenther <rguenther@suse.de>
409
410 * expr.c (get_inner_reference): Sign-extend the constant
411 twos-complement offset before doing arbitrary precision
412 arithmetic on it.
413 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
414 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
415 to get_constraint_for_ptr_offset.
416
b566132b
KK
4172011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
418
419 PR target/50068
420 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
421
0d82a1c8
RG
4222011-08-17 Richard Guenther <rguenther@suse.de>
423
424 * tree.h (convert_to_ptrofftype_loc): New function.
425 (convert_to_ptrofftype): Define.
426 * builtins.c (expand_builtin_bzero): Use size_type_node.
427 (fold_builtin_bzero): Likewise.
428 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
429 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
430 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
431 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
432 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
433 * fold-const.c (build_range_check): Negate using the original
434 type.
435 (fold_unary_loc): Use fold_build_pointer_plus_loc.
436 * gimple-fold.c (gimple_adjust_this_by_delta): Use
437 convert_to_ptrofftype.
438 * gimplify.c (gimplify_self_mod_expr): Likewise.
439 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
440 (graphite_create_new_loop_guard): Likewise.
441 * graphite-sese-to-poly.c (my_long_long): Remove.
442 (scop_ivs_can_be_represented): Adjust.
443 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
444 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
445 * tree-loop-distribution.c (build_size_arg_loc): Use
446 size_type_node.
447 (generate_memset_zero): Simplify.
448 * tree-mudflap.c: Use fold_convert, not convert.
449 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
450 its own type.
451 (determine_offset): Likewise for DR_STEP.
452 (valid_initializer_p): Likewise.
453 * tree-profile.c (prepare_instrumented_value): Convert the pointer
454 to an integer type of same size.
455 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
456 to sizetype without need.
457 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
458 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
459 * tree-ssa-loop-manip.c (create_iv): Likewise.
460 (determine_exit_conditions): Adjust comment.
461 * tree-ssa-pre.c (create_expression_by_pieces): Use
462 convert_to_ptrofftype.
463 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
464 * varasm.c (array_size_for_constructor): Compute using double_ints.
465
0b01f619
UW
4662011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
467
468 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
469 when generating an integer result where possible. Short-cut
470 comparison against 0 also for QImode.
471
2ea0be59
UW
4722011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
473
474 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
475 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
476 prototype.
477 * config/spu/spu.c (spu_legitimize_reload_address): New function.
478 (spu_legitimate_address_p): Do not check displacement if the base
479 is an eliminable stack register.
480
b05933f5
AS
4812011-08-16 Anatoly Sokolov <aesok@post.ru>
482
483 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
484 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
485 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
486 m32c_preferred_output_reload_class): Remove.
487 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
488 Change rclass argument and return types to reg_class_t. Use
489 reg_class_subset_p instead of class_sizes.
490 (m32c_preferred_output_reload_class): Make static. Change rclass
491 argument and return types to reg_class_t.
492 (TARGET_PREFERRED_RELOAD_CLASS,
493 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
494
c9c8f2e8
KT
4952011-08-16 Kai Tietz <ktietz@redhat.com>
496
497 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
498
e8dbf8b5
RG
4992011-08-16 Richard GUenther <rguenther@suse.de>
500
501 PR tree-optimization/50082
502 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
503 warnings here, instead of ...
504 (ssa_forward_propagate_and_combine): ... here.
505 (forward_propagate_into_comparison_1): Adjust.
506 (forward_propagate_into_comparison): Likewise.
507 (forward_propagate_into_gimple_cond): Likewise.
508 (forward_propagate_into_cond): Likewise.
509
870d0521
AS
5102011-08-16 Andreas Schwab <schwab@redhat.com>
511
512 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
513 instead of ggc_alloc_zone_vec_rtvec_def.
514
370f4759
RG
5152011-08-16 Richard Guenther <rguenther@suse.de>
516
517 * tree.h (ptrofftype_p): New helper function.
518 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
519 offset verification.
520 (verify_gimple_assign_binary): Likewise.
521 * tree.c (build2_stat): Likewise.
522 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
523 (reset_evolution_in_loop): Likewise.
524 * tree-chrec.h (build_polynomial_chrec): Likewise.
525
c5058418
LW
5262011-08-16 Liang Wang <lwang1@marvell.com>
527
528 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
529 ggc_alloc_zone_vec_rtvec_def.
530
a1bc7628
RG
5312011-08-16 Richard Guenther <rguenther@suse.de>
532
533 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
534 helper factored out from ...
535 (extract_range_from_binary_expr_1): ... here. Re-structure
536 to not glob handling too different tree codes.
537
efec771a
RH
5382011-08-15 Richard Henderson <rth@redhat.com>
539
540 PR middle-end/50006
541 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
542 setting out to include allocate_stack named pattern as well.
543 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
544 * stmt.c (expand_stack_restore): Likewise.
545
d510820a
RG
5462011-08-15 Richard Guenther <rguenther@suse.de>
547
548 PR middle-end/50082
549 * fold-const.c (maybe_canonicalize_comparison_1): Properly
550 convert the modified operand to the other operand type.
551 (fold_comparison): Call maybe_canonicalize_comparison_1 with
552 useless conversions stripped from comparison operands.
553
1a0fcfa9
RG
5542011-08-15 Richard Guenther <rguenther@suse.de>
555
556 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
557 (extract_range_from_unary_expr_1): Restructure.
558
4f9dbaaa
RG
5592011-08-15 Richard Guenther <rguenther@suse.de>
560
561 PR tree-optimization/50058
562 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
563 copy matching.
564
3598da80
RR
5652011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
566
567 PR target/50022
568 * config/arm/arm.c (output_move_double): Add 2 parameters
569 to count the number of insns emitted and whether to emit or not.
570 Use the flag to decide when to emit and count number of instructions
571 that will be emitted.
572 Handle case where output_move_double might be called for calculating
573 lengths with an invalid constant.
574 (arm_count_output_move_double_insns): Define.
575 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
576 (output_move_double): Adjust prototype.
577 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
578 output_move_double.
579 ("*movdi_vfp_cortexa8"): Likewise and add attribute
580 for ce_count.
581 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
582 ("*movdf_soft_insn"): Likewise.
583 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
584 ("*cirrus_thumb2_movdi"): Likewise.
585 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
586 ("*cirrus_movdf_hard_insn"): Likewise.
587 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
588 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
589 ("mov<mode>_internal VMMX"): Likewise.
590 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
591
f4ab7b99
UB
5922011-08-14 Uros Bizjak <ubizjak@gmail.com>
593
594 * config/i386/i386.c (ix86_expand_round_sse4): New function.
595 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
596 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
597 for TARGET_ROUND.
598
599 (rint<mode>2): Simplify TARGET_ROUND check.
600 (floor<mode>2): Ditto.
601 (ceil<mode>2): Ditto.
602 (btrunc<mode>2): Ditto.
603
12e502c6
AS
6042011-08-14 Anatoly Sokolov <aesok@post.ru>
605
606 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
607 as mmix_preferred_output_reload_class.
608
f3713778 6092011-08-14 Georg-Johann Lay <avr@gjlay.de>
f4ab7b99 610
f3713778
GJL
611 * PR target/49903
612 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
613 (branch_unspec): New insn.
614 (branch): Beauty farm.
615 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
616 to be IF_THEN_ELSE.
617 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
618 New static functions.
619 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
620 Use CONST_INT_P. Beauty.
621
7b4ef662
RH
6222011-08-12 Richard Henderson <rth@redhat.com>
623
624 PR rtl-opt/49994
625 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
626 * sched-deps.c (init_deps): Clear it.
627 (deps_analyze_insn): Consume it.
628 (sched_analyze_insn): Fill it.
629
10c241af
RR
6302011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
631
632 PR target/48328
633 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
634 for tbh instructions.
635
412288f1
DN
6362011-08-12 Diego Novillo <dnovillo@google.com>
637
638 * data-streamer.h (streamer_write_zero): Rename from output_zero.
f4ab7b99
UB
639 (streamer_write_uhwi): Rename from lto_output_uleb128.
640 (streamer_write_hwi): Rename from output_sleb128.
641 (streamer_write_string): Rename from lto_output_string.
642 (streamer_string_index): Rename from lto_string_index.
643 (streamer_write_string_with_length): Rename from
644 lto_output_string_with_length.
645 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
646 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
647 (streamer_read_string): Rename from lto_input_string.
648 (streamer_read_indexed_string): Rename from input_string_internal.
649 (streamer_read_uhwi): Rename from lto_input_uleb128.
650 (streamer_read_hwi): Rename from lto_input_sleb128.
651 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
652 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
653 (streamer_write_enum): Rename from lto_output_enum.
654 (streamer_read_enum): Rename from lto_input_enum.
655 (streamer_write_record_start): Rename from output_record_start.
656 (streamer_read_record_start): Rename from input_record_start.
657 (streamer_write_bitpack): Rename from lto_output_bitpack.
658 (streamer_read_bitpack): Rename from lto_input_bitpack.
659 (streamer_write_char_stream): Rename from lto_output_1_stream.
660 (streamer_read_uchar): Rename from lto_input_1_unsigned.
661 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
662 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
663 (streamer_read_string_cst): Rename from input_string_cst.
664 (streamer_read_chain): Rename from lto_input_chain.
665 (streamer_alloc_tree): Rename from lto_materialize_tree.
666 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
667 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
668 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
669 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
670 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
671 (streamer_write_chain): Rename from lto_output_chain.
672 (streamer_write_tree_header): Rename from lto_output_tree_header.
673 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
674 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
675 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
676 (streamer_write_builtin): Rename from lto_output_builtin_tree.
677 (streamer_check_handled_ts_structures): Rename from
678 check_handled_ts_structures.
679 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
680 (streamer_tree_cache_insert_at): Rename from
681 lto_streamer_cache_insert_at.
682 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
683 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
684 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
685 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
686 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
687 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
688 (write_identifier): Rename from output_identifier.
689 (write_ts_common_tree_pointers): Rename from
690 lto_output_ts_common_tree_pointers.
691 (write_ts_vector_tree_pointers): Rename from
692 lto_output_ts_vector_tree_pointers.
693 (write_ts_complex_tree_pointers): Rename from
694 lto_output_ts_complex_tree_pointers.
695 (write_ts_decl_minimal_tree_pointers): Rename from
696 lto_output_ts_decl_minimal_tree_pointers.
697 (write_ts_decl_common_tree_pointers): Rename from
698 lto_output_ts_decl_common_tree_pointers.
699 (write_ts_decl_non_common_tree_pointers): Rename from
700 lto_output_ts_decl_non_common_tree_pointers.
701 (write_ts_decl_with_vis_tree_pointers): Rename from
702 lto_output_ts_decl_with_vis_tree_pointers.
703 (write_ts_field_decl_tree_pointers): Rename from
704 lto_output_ts_field_decl_tree_pointers.
705 (write_ts_function_decl_tree_pointers): Rename from
706 lto_output_ts_function_decl_tree_pointers.
707 (write_ts_type_common_tree_pointers): Rename from
708 lto_output_ts_type_common_tree_pointers.
709 (write_ts_type_non_common_tree_pointers): Rename from
710 lto_output_ts_type_non_common_tree_pointers.
711 (write_ts_list_tree_pointers): Rename from
712 lto_output_ts_list_tree_pointers.
713 (write_ts_vec_tree_pointers): Rename from
714 lto_output_ts_vec_tree_pointers.
715 (write_ts_exp_tree_pointers): Rename from
716 lto_output_ts_exp_tree_pointers.
717 (write_ts_block_tree_pointers): Rename from
718 lto_output_ts_block_tree_pointers.
719 (write_ts_binfo_tree_pointers): Rename from
720 lto_output_ts_binfo_tree_pointers.
721 (write_ts_constructor_tree_pointers): Rename from
722 lto_output_ts_constructor_tree_pointers.
723 (write_ts_target_option): Rename from lto_output_ts_target_option.
724 (write_ts_translation_unit_decl_tree_pointers): Rename from
725 lto_output_ts_translation_unit_decl_tree_pointers.
726 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
727 Rename from lto_streamer_cache_add_to_node_array.
728 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
729 (record_common_node): Rename from lto_record_common_node.
412288f1
DN
730
731 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
732 declarations.
733 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
734 function.
735 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
736 unused function.
737 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
738 (ipa-reference.o): Likewise.
739 * lto-section-out.c: Include data-streamer.h.
740 * ipa-reference.c: Include data-streamer.h.
741
9b0f6f5e
NC
7422011-08-12 Nick Clifton <nickc@redhat.com>
743
f4ab7b99 744 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
9b0f6f5e
NC
745 * doc/md.texi (cmpstrn): Note that the comparison stops if both
746 fetched bytes are zero.
747 (cmpstr): Likewise.
748 (cmpmem): Note that the comparison does not stop if both of the
749 fetched bytes are zero.
750
6c32ee74
UB
7512011-08-12 Uros Bizjak <ubizjak@gmail.com>
752
753 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
754 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
755 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
756 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
757 to integer_type_node.
758 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
759 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
760 * builtins.c (expand_builtin_in): Ditto.
761 (mathfn_built_in_1): Ditto.
762 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
763 BUILT_IN_IFLOOR.
764 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
765 BUILT_IN_IROUND.
766 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
767 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
768 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
769
d9fbc86e
RB
7702011-08-12 Richard Guenther <rguenther@suse.de>
771
772 * tree-vrp.c (extract_range_from_unary_expr_1): Implement
773 -X as 0 - X.
774
7752011-08-12 Romain Geissler <romain.geissler@gmail.com>
f895fc2a
RG
776
777 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
778
20fe71c2
RS
7792011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
780
781 * config/arm/arm.c (get_label_padding): New function.
c789cb77 782 (create_fix_barrier, arm_reorg): Use it.
20fe71c2 783
88b590c5
UB
7842011-08-11 Uros Bizjak <ubizjak@gmail.com>
785
786 PR target/49781
787 * config/i386/i386.md (*lea_5_zext): New.
788 (*lea_6_zext): Ditto.
789 * config/i386/predicates.md (const_32bit_mask): New predicate.
790 (lea_address_operand): Reject AND.
791 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
792 const_32bit_mask immediate.
793 (ix86_print_operand_address): Handle AND.
794 (memory_address_length): Ditto.
795
4309e92c 7962011-08-11 Romain Geissler <romain.geissler@gmail.com>
88b590c5 797 Brian Hackett <bhackett1024@gmail.com>
4309e92c
RG
798
799 * plugin.def: Add event for finish_decl.
800 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
801 * c-decl.c (finish_decl): Invoke callbacks on above event.
802 * doc/plugins.texi: Document above event.
803
25aa059e
RG
8042011-08-11 Richard Guenther <rguenther@suse.de>
805
806 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
807 lookups, make looking through aggregate copies stronger.
808
6bfd73a6
RH
8092011-08-11 Richard Henderson <rth@redhat.com>
810
811 PR bootstrap/50018
812 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
813
022676dc
RG
8142011-08-11 Richard Guenther <rguenther@suse.de>
815
816 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
817 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
818 (vrp_visit_stmt): Likewise.
819
8d2b0410
RG
8202011-08-11 Richard Guenther <rguenther@suse.de>
821
822 PR middle-end/50040
823 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
824 load of the other piece with TREE_NO_WARNING.
825 * tree-flow.h (warn_uninit): Adjust prototype.
826 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
827 the base variable and the expression that is used separately.
828 Properly query all TREE_NO_WARNING flags.
829 (struct walk_data): Remove.
830 (warn_uninitialized_var): Likewise.
831 (warn_uninitialized_vars): Do not walk gimple pieces but simply
832 look at all SSA uses of the statement. Handle unused memory
833 separately.
834 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
835
78926be1
KI
8362011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
837
88b590c5 838 * config/rx/rx.md (movsicc): Allow register to register transfers.
78926be1
KI
839 (*movsicc): Likewise.
840 (*stcc): Restrict this pattern to EQ and NE compares.
841 (*stcc_reg): New pattern. Works for any comparison but only for
842 register transfers.
843
b9393656
DN
8442011-08-11 Diego Novillo <dnovillo@google.com>
845
846 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
847 Call stream_write_tree instead of output_record_start.
848 (lto_output_ts_binfo_tree_pointers): Likewise.
849
850 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
851 Convert it to a macro.
852 (stream_read_tree): Likewise.
853
854 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
855 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
856
857 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
858 and tree_read_bitfields.
859 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
860 (lto_write_tree): Call it.
861 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
862 * streamer-hooks.h (struct streamer_hooks): Remove fields
863 name, is_streamable and alloc_tree. Update all users.
864 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
865 (lto_materialize_tree): ... here.
866 Handle CALL_EXPR codes.
867 Remove call to lto_streamer_cache_append.
88b590c5 868 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
b9393656
DN
869 * tree-streamer.h (tree_read_bitfields): Declare.
870
871 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
872 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
873 * tree-streamer.h (stream_read_tree): New. Replace all calls
874 to lto_input_tree with it.
875 (stream_write_tree): New. Replace all calls to lto_output_tree,
876 lto_output_tree_ref and lto_output_tree_or_ref with it.
877 * lto-streamer-in.c (lto_read_tree): Inline code from
878 lto_streamer_read_tree.
879 (lto_input_tree): Move from tree-streamer-in.c.
880 * lto-streamer-out.c (lto_output_tree_ref): Make static.
881 Remove handling of NULL values for EXPR.
882 Do not handle EXPRs that are not indexable.
883 (lto_write_tree): Move from tree-streamer-out.c.
884 Inline lto_streamer_write_tree.
885 (lto_output_tree): Move from tree-streamer-out.c.
886 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
887 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
888 (lto_preload_common_nodes): Likewise.
889 Remove assertions and adjustments for nodes
890 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
891 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
88b590c5 892 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
b9393656
DN
893 * lto-streamer.h (lto_input_tree): Declare.
894 (lto_output_tree_ref): Remove.
895 * streamer-hooks.h (struct streamer_hooks): Remove fields
896 preload_common_nodes, indexable_with_decls_p,
897 pack_value_fields, unpack_value_fields and output_tree_header.
898 Update all users.
899 * tree-streamer-in.c (lto_materialize_tree): Make extern.
900 (lto_input_tree_pointers): Likewise.
901 (lto_read_tree): Move to lto-streamer-in.c.
902 (lto_input_integer_cst): Make extern.
903 (lto_get_pickled_tree): Likewise.
904 (lto_get_builtin_tree): Likewise.
905 (lto_input_tree): Move to lto-streamer-in.c.
906 * tree-streamer-out.c (pack_value_fields): Make extern.
907 (lto_output_tree_or_ref): Remove. Replace all callers with
908 calls to stream_write_tree.
909 (lto_output_builtin_tree): Make extern.
910 (lto_streamer_write_tree): Inline into lto_write_tree.
911 (lto_output_tree_pointers): Make extern.
912 (lto_output_tree_header): Likewise.
913 (lto_output_integer_cst): Likewise.
914 (lto_write_tree): Move to lto-streamer-out.c.
915 (lto_output_tree): Likewise.
88b590c5 916 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
b9393656
DN
917 (preload_common_nodes): Likewise.
918 (lto_streamer_cache_create): Call it.
919 * tree-streamer.h: Include streamer-hooks.h.
920 (stream_write_tree): New.
921 (stream_read_tree): New.
922 (lto_input_tree): Remove.
923 (lto_materialize_tree): Declare.
924 (lto_input_tree_pointers): Declare.
925 (lto_get_pickled_tree): Declare.
926 (lto_get_builtin_tree): Declare.
927 (lto_input_integer_cst): Declare.
928 (lto_output_tree_header): Declare.
929 (pack_value_fields): Declare.
930 (lto_output_tree_pointers): Declare.
931 (lto_output_integer_cst): Declare.
932 (lto_output_builtin_tree): Declare.
933
ca31ca94
SG
9342011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
935
936 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
937 only if producer writes to the register given by regno.
938
f0898307
SG
9392011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
940 Alexander Monakov <amonakov@ispras.ru>
941
942 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
943 (sched_get_condition_with_rev_uncached): ... this. Factor out
944 condition caching logic into ...
945 (sched_get_condition_with_rev): ... this. Reimplement. Do not
946 attempt to use cache for instructions with zero luid.
947 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
948 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
949
0d9439b0
SG
9502011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
951
952 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
953 get_seqno_for_a_jump. Update the caller.
954 (get_seqno_by_succs): New. Use it ...
955 (get_seqno_for_a_jump): ... here to find a seqno if looking at
956 predecessors was not sufficient.
957 (get_seqno_by_preds): Include head in iteration range, exclude insn.
958
5c416724
DM
9592011-08-11 Dmitry Melnik <dm@ispras.ru>
960
961 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
962
cf3d5824
SG
9632011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
964
965 * sel-sched-ir.h (register_unavailable_p): Declare.
966 * sel-sched-ir.c (register_unavailable_p): New. Use it...
967 (set_unavailable_target_for_expr): ... here to properly test
968 availability of a register.
969 (speculate_expr): Ditto.
970 * sel-sched.c (substitute_reg_in_expr): Ditto.
971 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
972
944499ed
SG
9732011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
974
975 * sel-sched.c (verify_target_availability): Fix usage of
976 hard_regno_nregs.
977
6bf2d156
DM
9782011-08-11 Dmitry Melnik <dm@ispras.ru>
979
980 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
981 recognized by cannot_copy_insn_p hook and volatile instructions.
982
bf3a40e9
DM
9832011-08-11 Dmitry Melnik <dm@ispras.ru>
984
985 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
986
f9bf5a8e
RS
9872011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
988
989 * doc/md.texi (define_bypass): Say that the instruction names can
990 be filename-style globs.
991 * Makefile.in (FNMATCH_H): Define.
992 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
993 * genattrtab.c: Include fnmatch.h.
994 (bypass_list): Change field name from "insn" to "pattern".
995 (gen_bypass_1): Update accordingly.
996 (process_bypasses): Use fnmatch to check for matches between
997 insn reservations and define_bypasses.
998 * genautomata.c: Include fnmatch.h.
999 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
1000 and out_pattern respectively.
1001 (gen_bypass, insert_bypass): Update accordingly.
1002 (for_each_matching_insn, process_bypass_2, process_bypass_1)
1003 (process_bypass): New functions.
1004 (process_decls): Use process_bypass. Update after field name changes.
1005
7ece3881 10062011-08-11 Georg-Johann Lay <avr@gjlay.de>
78926be1 1007
7ece3881
GJL
1008 PR target/49687
1009 * config/avr/avr.md (smulqi3_highpart): New insn.
1010 (umulqi3_highpart): New insn.
1011 (*subqi3.ashiftrt7): New insn.
1012 (smulhi3_highpart): New expander.
1013 (umulhi3_highpart): Nex expander.
1014 (*smulhi3_highpart_call): New insn.
1015 (*umulhi3_highpart_call): New insn.
1016 (extend_u): New code attribute.
1017 (extend_prefix): Rename code attribute to extend_su.
1018 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
1019 widening QI/HI multiply.
1020
fb2c2b16
IR
10212011-08-11 Ira Rosen <ira.rosen@linaro.org>
1022
1023 PR tree-optimization/50039
1024 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
1025 that DEF_STMT has a stmt_vec_info.
1026
b126811e
RG
10272011-08-10 Richard Guenther <rguenther@suse.de>
1028
1029 * tree.h (can_trust_pointer_alignment): Remove.
1030 * builtins.c (can_trust_pointer_alignment): Remove.
1031
0e3a99ae
AS
10322011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1033
1034 * c-typeck.c (scalar_to_vector): New function. Try scalar to
1035 vector conversion.
1036 (stv_conv): New enum for scalar_to_vector return type.
1037 (build_binary_op): Adjust.
1038 * doc/extend.texi: Description of scalar to vector expansion.
1039
0eb77834
RG
10402011-08-10 Richard Guenther <rguenther@suse.de>
1041
1042 * tree.h (get_pointer_alignment): Remove max-align argument.
1043 (get_object_alignment): Likewise.
1044 * builtins.c (get_object_alignment_1): Adjust.
1045 (get_object_alignment): Remove max-align argument.
1046 (get_pointer_alignment): Likewise.
1047 (expand_builtin_strlen): Adjust.
1048 (expand_builtin_memcpy): Likewise.
1049 (expand_builtin_mempcpy_args): Likewise.
1050 (expand_builtin_strncpy): Likewise.
1051 (expand_builtin_memset_args): Likewise.
1052 (expand_builtin_memcmp): Likewise.
1053 (expand_builtin_strcmp): Likewise.
1054 (expand_builtin_strncmp): Likewise.
1055 (get_builtin_sync_mem): Likewise.
1056 (fold_builtin_memset): Likewise.
1057 (fold_builtin_memory_op): Likewise.
1058 (expand_builtin_memory_chk): Likewise.
1059 * emit-rtl.c (get_mem_align_offset): Likewise.
1060 (set_mem_attributes_minus_bitpos): Likewise.
1061 * expr.c (expand_assignment): Likewise.
1062 (expand_expr_real_1): Likewise.
1063 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
1064 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
1065 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
1066 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1067 * value-prof.c (gimple_stringops_transform): Likewise.
1068
1c7836f0
PM
10692011-08-10 Paulo J. Matos <paulo.matos@csr.com>
1070
1071 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
1072 * doc/tm.texi: Regenerate.
1073
4ada410b 10742011-08-10 Georg-Johann Lay <avr@gjlay.de>
88b590c5 1075
4ada410b
GJL
1076 PR target/29560
1077 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
1078 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
1079 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
1080 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
1081 shift target is unused.
1082
d1f4e15f
RG
10832011-08-10 Richard Guenther <rguenther@suse.de>
1084
1085 PR tree-optimization/49937
1086 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
1087 using get_object_alignment_1.
1088
2813f1b1
UB
10892011-08-09 Uros Bizjak <ubizjak@gmail.com>
1090
1091 * config/i386/i386.c (ix86_emit_i387_round): New function.
1092 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
1093 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
1094 Use ix86_emit_i387_round to expand round function for i387 math.
1095 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
1096 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
1097
c6412d86
RO
10982011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1099
1100 * config/sync.c: Move to ../libgcc.
2813f1b1 1101 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
c6412d86
RO
1102 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
1103 Remove.
1104
6e9ee54c
AS
11052011-08-09 Anatoly Sokolov <aesok@post.ru>
1106
1107 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
1108 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
1109 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
1110 Change 'from' and 'to' arguments type to reg_class_t.
1111 (TARGET_REGISTER_MOVE_COST): Define.
1112
394b1520
VM
11132011-08-09 Vladimir Makarov <vmakarov@redhat.com>
1114
1115 PR target/50026
1116 Revert:
1117 PR rtl-optimization/49990
1118 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
1119 ignore classes which can not change mode.
1120 (find_costs_and_classes): Ditto.
1121
4001900f
RG
11222011-08-09 Richard Guenther <rguenther@suse.de>
1123
1124 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
1125 information for ranges with only negative values.
1126 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
1127 BIT_AND_EXPR handling to handle ranges with negative values.
1128
6cf9eb27
KY
11292011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
1130
88b590c5
UB
1131 * config/i386/i386.c: Remove traling spaces.
1132 * config/i386/sse.md: Likewise.
1133 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
1134 (*fma_fmsub_<mode>): Likewise.
1135 (*fma_fnmadd_<mode>): Likewise.
1136 (*fma_fnmsub_<mode>): Likewise.
6cf9eb27 1137
d6257cf0
NC
11382011-08-09 Nick Clifton <nickc@redhat.com>
1139
1140 * config/rx/rx.md: Disable extender peepholes at -O3.
1141
3968b050
UB
11422011-08-09 Uros Bizjak <ubizjak@gmail.com>
1143
1144 PR target/49781
1145 * config/i386/i386.md (reload_noff_load): New.
1146 (reload_noff_store): Ditto.
1147 * config/i386/i386.c (ix86_secondary_reload): Use
1148 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
1149 double-word moves from/to non-offsetable addresses instead of
1150 generating XMM temporary.
1151
2292df60
AS
11522011-08-09 Anatoly Sokolov <aesok@post.ru>
1153
1154 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
1155
1684ca6b
IR
11562011-08-09 Ira Rosen <ira.rosen@linaro.org>
1157
1158 PR tree-optimization/50014
1159 * tree-vect-loop.c (vectorizable_reduction): Get def type before
1160 calling vect_get_vec_def_for_stmt_copy ().
1161
40118062
VM
11622011-08-08 Vladimir Makarov <vmakarov@redhat.com>
1163
1164 PR rtl-optimization/49990
1165 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
1166 ignore classes which can not change mode.
1167 (find_costs_and_classes): Ditto.
1168
8714c21f
RH
11692011-08-08 Richard Henderson <rth@redhat.com>
1170
1171 PR middle-end/49990
1172 * config/i386/i386.c (ix86_expand_prologue): Call
1173 for SEH target gen_prologue_use instead of gen_blockage
1174 at prologue's end.
1175
1ad663a8
MJ
11762011-08-08 Martin Jambor <mjambor@suse.cz>
1177
1178 PR middle-end/49923
1179 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
1180 memory alignment.
1181
f0efc7aa
DN
11822011-08-08 Diego Novillo <dnovillo@google.com>
1183
1184 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
1185 (DATA_STREAMER_H): New.
1186 (GIMPLE_STREAMER_H): New.
1187 (TREE_STREAMER_H): New.
1188 (STREAMER_HOOKS_H): New.
1189 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
1190 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
1191 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
1192 (data-streamer.o): New.
1193 (data-streamer-in.o): New.
1194 (data-streamer-out.o): New.
1195 (gimple-streamer-in.o): New.
1196 (gimple-streamer-out.o): New.
1197 (streamer-hooks.o): New.
1198 (tree-streamer.o): New.
1199 (tree-streamer-in.o): New.
1200 (tree-streamer-out.o): New.
3968b050 1201 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
f0efc7aa
DN
1202 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
1203 GIMPLE_STREAMER_H and TREE_STREAMER_H.
1204 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
1205 GIMPLE_STREAMER_H and TREE_STREAMER_H.
1206 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
3968b050 1207 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
f0efc7aa
DN
1208 (ipa-inline-analysis.o): Likewise.
1209 (ipa-pure-const.o): Likewise.
1210 * data-streamer-in.c: New.
1211 * data-streamer-out.c: New.
1212 * data-streamer.c: New.
1213 * data-streamer.h: New.
1214 * gimple-streamer-in.c: New.
1215 * gimple-streamer-out.c: New.
1216 * gimple-streamer.h: New.
1217 * ipa-inline-analysis.c: Include data-streamer.h.
1218 * ipa-prop.c: Include data-streamer.h.
1219 * ipa-pure-const.c: Include data-streamer.h.
1220 * lto-cgraph.c: Include data-streamer.h.
1221 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
1222 (lto_input_widest_uint_uleb128): Likewise.
1223 (lto_input_sleb128): Likewise.
1224 (bp_unpack_var_len_unsigned): Likewise.
1225 (bp_unpack_var_len_int): Likewise.
1226 * lto-section-out.c (lto_output_uleb128_stream): Move to
1227 data-streamer-out.c.
1228 (lto_output_widest_uint_uleb128_stream): Likewise.
1229 (lto_output_sleb128_stream): Likewise.
1230 (bp_pack_var_len_unsigned): Likewise.
1231 (bp_pack_var_len_int): Likewise.
3968b050 1232 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
f0efc7aa
DN
1233 (struct string_slot): Remove. Update all users.
1234 (lto_tag_check_set): Make extern.
1235 (lto_tag_check_range): Move to lto-streamer.h.
1236 (lto_tag_check): Likewise.
1237 (hash_string_slot_node): Remove. Update all users.
1238 (eq_string_slot_node): Remove. Update all users.
1239 (string_for_index): Move to data-streamer-in.c
1240 (input_string_internal): Likewise.
1241 (input_string_cst): Move to tree-streamer-in.c.
1242 (input_identifier): Likewise.
1243 (lto_input_string): Move to data-streamer-in.c
1244 (input_record_start): Move to data-streamer.h
1245 (canon_file_name): Use new definition of struct string_slot
3968b050 1246 from data-streamer.h. Set S_SLOT.LEN.
f0efc7aa
DN
1247 (lto_input_location): Make extern.
1248 (lto_input_chain): Move to tree-streamer-in.c.
1249 (lto_init_eh): Make extern.
1250 (input_phi): Move to gimple-streamer-in.c.
1251 (input_gimple_stmt): Likewise.
1252 (input_bb): Likewise.
1253 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
1254 (unpack_ts_real_cst_value_fields): Likewise.
1255 (unpack_ts_fixed_cst_value_fields): Likewise.
1256 (unpack_ts_decl_common_value_fields): Likewise.
1257 (unpack_ts_decl_wrtl_value_fields): Likewise.
1258 (unpack_ts_decl_with_vis_value_fields): Likewise.
1259 (unpack_ts_function_decl_value_fields): Likewise.
1260 (unpack_ts_type_common_value_fields): Likewise.
1261 (unpack_ts_block_value_fields): Likewise.
1262 (unpack_ts_translation_unit_decl_value_fields): Likewise.
1263 (unpack_value_fields): Likewise.
1264 (lto_materialize_tree): Likewise.
1265 (lto_input_ts_common_tree_pointers): Likewise.
1266 (lto_input_ts_vector_tree_pointers): Likewise.
1267 (lto_input_ts_complex_tree_pointers): Likewise.
1268 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
1269 (lto_input_ts_decl_common_tree_pointers): Likewise.
1270 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
1271 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
1272 (lto_input_ts_field_decl_tree_pointers): Likewise.
1273 (lto_input_ts_function_decl_tree_pointers): Likewise.
1274 (lto_input_ts_type_common_tree_pointers): Likewise.
1275 (lto_input_ts_type_non_common_tree_pointers): Likewise.
1276 (lto_input_ts_list_tree_pointers): Likewise.
1277 (lto_input_ts_vec_tree_pointers): Likewise.
1278 (lto_input_ts_exp_tree_pointers): Likewise.
1279 (lto_input_ts_block_tree_pointers): Likewise.
1280 (lto_input_ts_binfo_tree_pointers): Likewise.
1281 (lto_input_ts_constructor_tree_pointers): Likewise.
1282 (lto_input_ts_target_option): Likewise.
1283 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
1284 (lto_input_tree_pointers): Likewise.
1285 (lto_get_pickled_tree): Likewise.
1286 (lto_get_builtin_tree): Likewise.
1287 (lto_read_tree): Likewise.
1288 (lto_input_integer_cst): Likewise.
1289 (lto_input_tree): Likewise.
1290 * lto-streamer-out.c: Include data-streamer.h,
1291 gimple-streamer.h and streamer-hooks.h.
1292 (struct string_slot): Move to data-streamer.h.
1293 (hash_string_slot_node): Likewise.
1294 (eq_string_slot_node): Likewise.
1295 (lto_string_index): Move to data-streamer-out.c.
1296 (lto_output_string_with_length): Likewise.
1297 (lto_output_string): Likewise.
1298 (output_string_cst): Move to tree-streamer-out.c.
1299 (output_identifier): Likewise.
1300 (output_zero): Move to data-streamer-out.c
1301 (output_uleb128): Likewise.
1302 (output_sleb128): Likewise.
1303 (output_record_start): Move to data-streamer.h
1304 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
1305 (pack_ts_real_cst_value_fields): Likewise.
1306 (pack_ts_fixed_cst_value_fields): Likewise.
1307 (pack_ts_decl_common_value_fields): Likewise.
1308 (pack_ts_decl_wrtl_value_fields): Likewise.
1309 (pack_ts_decl_with_vis_value_fields): Likewise.
1310 (pack_ts_function_decl_value_fields): Likewise.
1311 (pack_ts_type_common_value_fields): Likewise.
1312 (pack_ts_block_value_fields): Likewise.
1313 (pack_ts_translation_unit_decl_value_fields): Likewise.
1314 (pack_value_fields): Likewise.
1315 (lto_output_chain): Likewise.
1316 (lto_output_ts_common_tree_pointers): Likewise.
1317 (lto_output_ts_vector_tree_pointers): Likewise.
1318 (lto_output_ts_complex_tree_pointers): Likewise.
1319 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
1320 (lto_output_ts_decl_common_tree_pointers): Likewise.
1321 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
1322 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
1323 (lto_output_ts_field_decl_tree_pointers): Likewise.
1324 (lto_output_ts_function_decl_tree_pointers): Likewise.
1325 (lto_output_ts_type_common_tree_pointers): Likewise.
1326 (lto_output_ts_type_non_common_tree_pointers): Likewise.
1327 (lto_output_ts_list_tree_pointers): Likewise.
1328 (lto_output_ts_vec_tree_pointers): Likewise.
1329 (lto_output_ts_exp_tree_pointers): Likewise.
1330 (lto_output_ts_block_tree_pointers): Likewise.
1331 (lto_output_ts_binfo_tree_pointers): Likewise.
1332 (lto_output_ts_constructor_tree_pointers): Likewise.
1333 (lto_output_ts_target_option): Likewise.
1334 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
1335 (lto_output_tree_pointers): Likewise.
1336 (lto_output_tree_header): Likewise.
1337 (lto_output_builtin_tree): Likewise.
1338 (lto_write_tree): Likewise.
1339 (lto_output_integer_cst): Likewise.
1340 (lto_output_tree): Likewise.
1341 (output_phi): Move to gimple-streamer-out.c.
1342 (output_gimple_stmt): Likewise.
1343 (output_bb): Likewise.
1344 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
1345 (streamer_hooks): Move to streamer-hooks.c.
1346 (check_handled_ts_structures): Move to tree-streamer.c
1347 (lto_streamer_cache_add_to_node_array): Likewise.
1348 (lto_streamer_cache_insert_1): Likewise.
1349 (lto_streamer_cache_insert): Likewise.
1350 (lto_streamer_cache_insert_at): Likewise.
1351 (lto_streamer_cache_append): Likewise.
1352 (lto_streamer_cache_lookup): Likewise.
1353 (lto_streamer_cache_get): Likewise.
1354 (lto_record_common_node): Likewise.
1355 (lto_preload_common_nodes): Likewise.
1356 (lto_streamer_cache_create): Likewise.
1357 (lto_streamer_cache_delete): Likewise.
1358 (streamer_hooks_init): Move to streamer-hooks.c.
1359 * lto-streamer.h: Include diagnostic.h
1360 (struct output_block, struct lto_input_block,
3968b050 1361 struct data_in, struct bitpack_d): Remove forward declarations.
f0efc7aa
DN
1362 (struct bitpack_d): Move to data-streamer.h.
1363 (struct lto_streamer_cache_d): Move to tree-streamer.h.
1364 (struct streamer_hooks): Move to streamer-hooks.h.
1365 (bp_pack_var_len_unsigned): Move to data-streamer.h.
1366 (bp_pack_var_len_int): Likewise.
1367 (bp_unpack_var_len_unsigned): Likewise.
1368 (bp_unpack_var_len_int): Likewise.
1369 (lto_input_location): Declare.
1370 (lto_tag_check_set): Declare.
1371 (lto_init_eh): Declare.
1372 (lto_output_tree_ref): Declare.
1373 (lto_output_location): Declare.
1374 (bitpack_create): Move to data-streamer.h.
1375 (bp_pack_value): Likewise.
1376 (lto_output_bitpack): Likewise.
1377 (lto_input_bitpack): Likewise.
1378 (bp_unpack_value): Likewise.
1379 (lto_output_1_stream): Likewise.
1380 (lto_input_1_unsigned): Likewise.
1381 (lto_output_int_in_range): Likewise.
1382 (lto_input_int_in_range): Likewise.
1383 (bp_pack_int_in_range): Likewise.
1384 (bp_unpack_int_in_range): Likewise.
1385 (lto_output_enum): Likewise.
1386 (lto_input_enum): Likewise.
1387 (bp_pack_enum): Likewise.
1388 (bp_unpack_enum): Likewise.
1389 * streamer-hooks.c: New.
1390 * streamer-hooks.h: New.
1391 * tree-streamer-in.c: New.
1392 * tree-streamer-out.c: New.
1393 * tree-streamer.c: New.
1394 * tree-streamer.h: New.
1395
ddaad3c8
RO
13962011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1397
1398 * gthr-posix95.h: Remove.
1399 * gthr.h [_PTHREADS95]: Remove.
1400 * configure.ac (enable_threads): Remove posix95.
1401 * configure: Regenerate.
3968b050 1402 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
ddaad3c8 1403
3968b050 14042011-08-08 Uros Bizjak <ubizjak@gmail.com>
473b30ce
UB
1405
1406 PR target/49781
1407 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
1408 SImode addresses.
1409 (ix86_print_operand_address): Handle zero-extended addresses.
1410 (memory_address_length): Add length of addr32 prefix for
1411 zero-extended addresses.
1412 (ix86_secondary_reload): Handle moves to/from double-word general
1413 registers from/to zero-extended addresses.
1414 * config/i386/predicates.md (lea_address_operand): Reject
1415 zero-extended operands.
1416
cca2207a
L
14172011-08-08 H.J. Lu <hongjiu.lu@intel.com>
1418
1419 PR other/48007
473b30ce 1420 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
cca2207a
L
1421
1422 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
1423 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
1424
1425 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
1426 (_Unwind_Context_Reg_Val): Likewise.
1427 (_Unwind_Get_Unwind_Word): Likewise.
1428 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
1429 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
1430 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
1431 for EXTENDED_CONTEXT_BIT.
1432 (__frame_state_for): Likewise.
1433 (uw_init_context_1): Likewise.
1434 (_Unwind_GetGR): Updated.
1435 (_Unwind_SetGR): Likewise.
1436 (_Unwind_GetGRPtr): Likewise.
1437 (_Unwind_SetGRPtr): Likewise.
1438 (_Unwind_SetGRValue): Likewise.
1439 (_Unwind_GRByValue): Likewise.
1440 (uw_install_context_1): Likewise.
1441
1442 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
1443 ASSUME_EXTENDED_UNWIND_CONTEXT.
1444 * doc/tm.texi: Regenerated.
1445
b6ee5bef
RO
14462011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1447
1448 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
1449
46135ba7
RO
14502011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1451
1452 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
1453 Linux/GNU-specific.
1454 (DEC Alpha Options, -mtune): Likewise.
1455 (MIPS Options, -march): native is supported on IRIX.
1456
e3b3fa45
RO
14572011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1458
1459 * config/sparc/driver-sparc.c: New file.
1460 * config/sparc/x-sparc: New file.
473b30ce
UB
1461 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
1462 * config/sparc/sparc.opt (native): New value for enum processor_type.
e3b3fa45
RO
1463 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
1464 * config/sparc/sparc.c (sparc_option_override): Abort if
1465 PROCESSOR_NATIVE gets here.
1466 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
1467 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
1468 DRIVER_SELF_SPECS): Define.
1469 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
1470 (SPARC Options, -mtune): Likewise.
1471 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
1472 Substitute result.
1473 * configure: Regenerate.
1474 * Makefile.in (EXTRA_GCC_LIBS): Set.
1475 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
1476 (cpp$(exeext)): Likewise.
1477
ce6bfa50
RG
14782011-08-08 Richard Guenther <rguenther@suse.de>
1479
1480 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
1481 split out from ...
1482 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
1483 by composition.
1484
daae4650
MP
14852011-08-08 Mikael Pettersson <mikpe@it.uu.se>
1486
1487 PR tree-optimization/50005
1488 * ipa-inline-analysis (remap_predicate): Add cast to
1489 silence signed/unsigned comparison warning.
1490
3e762578
RS
14912011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
1492
1493 * modulo-sched.c (get_sched_window): Use a table for the debug output.
1494 Print the current ii.
1495 (sms_schedule_by_order): Reduce whitespace in dump line.
1496
fe43febc
RS
14972011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
1498
1499 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
1500 and one loop for successors. Fix upper bound of memory range.
1501
1e46eb2a
UB
15022011-08-06 Uros Bizjak <ubizjak@gmail.com>
1503
1504 PR target/50001
1505 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
1506 (TARGET_INSTANTIATE_DECLS): New define.
1507
cc3801b0 15082011-08-06 Paolo Bonzini <bonzini@gnu.org>
473b30ce 1509 Mikael Morin <mikael.morin@sfr.fr>
cc3801b0
PB
1510
1511 * Makefile.in (INCLUDES_FOR_TARGET): New.
1512 (LIBGCC2_CFLAGS): Use it.
1e46eb2a 1513 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
cc3801b0 1514
f68c9aa8
UB
15152011-08-06 Uros Bizjak <ubizjak@gmail.com>
1516
1517 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
1518 frame->save_regs_using_mov calculation.
1519
cd7c6bc5
UB
15202011-08-06 Uros Bizjak <ubizjak@gmail.com>
1521
1522 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
1523 * config/i386/sse.md (castmode): New mode attribute.
1524 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
1525 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
1526
9911e25a
JH
15272011-08-05 Jan Hubicka <jh@suse.cz>
1528
1529 PR middle-end/49494
1530 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
1531
75d3e6e3
JH
15322011-08-05 Jan Hubicka <jh@suse.cz>
1533
1534 PR middle-end/49500
1535 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
1536 handle aliases.
1537 (create_emultls_var):New function.
1538 (ipa_lower_emutls): Handle aliases correctly.
1539
f791d333
JH
15402011-08-05 Jan Hubicka <jh@suse.cz>
1541
1542 PR middle-end/49735
1543 * ipa-inline.c (recursive_inlining): Look through aliases.
1544
f93b21e2
JM
15452011-08-05 Jason Merrill <jason@redhat.com>
1546
1547 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
1548 declarations to beginning of function.
1549
2c331232
BS
15502011-08-05 Bernd Schmidt <bernds@codesourcery.com>
1551
1552 PR rtl-optimization/49900
1553 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
1554 ensure basic blocks stay in the same order.
1555
44e95206
AH
15562011-08-05 Aldy Hernandez <aldyh@redhat.com>
1557
1558 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
1559 store_bit_field.
1560 (s390_expand_atomic): Same.
1561
6fe818aa
RH
15622011-08-05 Richard Henderson <rth@redhat.com>
1563
1564 PR rtl-opt/49977
1565 * dwarf2cfi.c (scan_insn_after): Split out of ...
1566 (scan_trace): ... here. Correctly place notes wrt sequences.
1567
7ac17442
KK
15682011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
1569 Richard Henderson <rth@redhat.com>
1570
1571 PR rtl-opt/49982
1572 * expr.c (fixup_args_size_notes): Look through no-op moves.
1573
24911a50
UB
15742011-08-05 Uros Bizjak <ubizjak@gmail.com>
1575
1576 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
1577 of "m" for operand 0. Add type and mode attribute.
1578 (*pushxf_nointeger"): Use "<" constraint for operand 0.
1579 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
1580 constraint instead of "o" for opreand 1.
1581 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
42443bdb
UB
1582 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
1583 operand 0, alternative 4.
1584 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
24911a50
UB
1585
15862011-08-05 Uros Bizjak <ubizjak@gmail.com>
1587
1588 * config/i386/predicates.md (lea_address_operand): Rename from
1589 no_seg_address_operand.
1590 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
1591 (*lea_1_zext): Ditto.
1592 (*lea_2): Ditto.
1593 (*lea_2_zext): Ditto.
1594
15952011-08-05 Uros Bizjak <ubizjak@gmail.com>
1596
1597 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
1598 parts.base and parts.index.
1599 * config/i386/predicates.md (aligned_operand): Ditto.
1600 (cmpxchg8b_pic_memory_operand): Ditto.
1601
aca0b0b3
RO
16022011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1603
1604 * config/soft-fp: Move to ../libgcc.
1605 * Makefile.in (SFP_MACHINE): Remove.
1606 (libgcc-support): Remove $(SFP_MACHINE) dependency.
1607 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
1608 * config/arm/t-arm-softfp: Move to
1609 ../libgcc/config/arm/t-softfp.
1610 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
1611 * config/c6x/t-c6x-softfp: Remove.
1612 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
1613 * config/i386/t-fprules-softfp: Move to
1614 ../libgcc/config/t-softfp-tf.
1615 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
1616 * config/ia64/t-fprules-softfp: Remove.
1617 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
1618 * config/lm32/t-fprules-softfp: Remove.
1619 * config/moxie/sfp-machine.h: Remove.
1620 * config/moxie/t-moxie-softfp: Remove.
1621 * config/rs6000/darwin-ldouble-format: Move to
1622 ../libgcc/config/rs6000/ibm-ldouble-format.
1623 * config/rs6000/darwin-ldouble.c: Move to
1624 ../libgcc/config/rs6000/ibm-ldouble.c
1625 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
1626 * config/rs6000/libgcc-ppc64.ver: Likewise.
1627 * config/rs6000/sfp-machine.h: Likewise.
1628 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
1629 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
1630 (LIB2FUNCS_EXTRA): Remove.
1631 (TARGET_LIBGCC2_CFLAGS): Remove.
1632 * config/rs6000/t-aix52: Likewise
1633 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
1634 $(srcdir)/config/rs6000/darwin-ldouble.c.
1635 (SHLIB_MAPFILES): Remove.
1636 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
1637 $(srcdir)/config/rs6000/darwin-ldouble.c.
1638 * config/rs6000/t-fprules-softfp: Move to
1639 ../libgcc/config/t-softfp-sfdf.
1640 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
1641 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
1642 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
1643 $(srcdir)/config/rs6000/darwin-ldouble.c.
1644 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
1645 * config/score/t-score-softfp: Remove.
1646 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
1647 soft-fp/t-softfp from tmake_file.
1648 (arm*-*-uclinux*): Likewise.
1649 (arm*-*-ecos-elf): Likewise.
1650 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
1651 (arm*-*-rtems*): Likewise.
1652 (arm*-*-elf): Likewise.
1653 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
1654 tmake_file.
1655 (moxie-*-uclinux*): Likewise.
1656 (moxie-*-rtems*): Likewise.
1657 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
1658 tmake_file.
1659 (lm32-*-rtems*): Likewise.
1660 (lm32-*-uclinux*): Likewise.
1661 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
1662 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
1663 (powerpc-*-linux*, powerpc64-*-linux*): Remove
1664 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
1665 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
1666 tmake_file.
1667 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
1668 tmake_file.
1669 (tic6x-*-uclinux): Likewise.
1670 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
1671 soft-fp/t-softfp from tmake_file.
1672 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
1673 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
1674 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
24911a50 1675 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
aca0b0b3
RO
1676 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
1677
569dc494
RO
16782011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1679
1680 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
24911a50 1681 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
569dc494
RO
1682 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
1683 TPBIT, TPBIT_FUNCS.
1684 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
1685 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
1686 Remove.
1687 * config/arm/t-vxworks: Likewise.
1688 * config/arm/t-wince-pe: Likewise.
1689 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
1690 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1691 * config/bfin/t-bfin-elf: Likewise.
1692 * config/bfin/t-bfin-linux: Likewise.
1693 * config/bfin/t-bfin-uclinux: Likewise.
1694 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
1695 Remove.
1696 * config/fr30/t-fr30: Likewise.
1697 * config/frv/t-frv: Likewise.
1698 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
1699 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1700 * config/m32c/t-m32c: Likewise.
1701 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
1702 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1703 * config/mcore/t-mcore: Likewise.
1704 * config/mep/t-mep: Likewise.
1705 * config/microblaze/t-microblaze: Likewise.
1706 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
1707 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1708 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
1709 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1710 * config/mn10300/t-linux: Remove.
1711 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1712 * config/pdp11/t-pdp11: Likewise.
1713 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
1714 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
1715 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1716 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
1717 * config/rs6000/t-aix52: Likewise.
1718 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
1719 $(srcdir)/config/rs6000/ppc64-fp.c.
1720 * config/rs6000/t-fprules-fpbit: Remove.
1721 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
1722 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1723 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
1724 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1725 * config/sparc/t-elf: Likewise.
1726 * config/sparc/t-leon: Likewise.
1727 * config/sparc/t-leon3: Likewise.
1728 * config/spu/t-spu-elf: Likewise.
1729 (DPBIT_FUNCS): Remove.
1730 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1731 * config/v850/t-v850: Likewise.
1732 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
1733 (avr-*-*): Likewise.
1734 (h8300-*-rtems*): Set libgcc_tm_file.
1735 (h8300-*-elf*): Likewise.
1736 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
1737 tmake_file.
1738 (powerpc-*-eabisim*): Likewise.
1739 (powerpc-*-elf*): Likewise.
1740 (powerpc-*-eabialtivec*): Likewise.
1741 (powerpc-xilinx-eabi*): Likewise.
1742 (powerpc-*-eabi*): Likewise.
1743 (powerpc-*-rtems*): Likewise.
1744 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
1745 (powerpcle-*-elf*): Likewise.
1746 (powerpcle-*-eabisim*): Likewise.
1747 (powerpcle-*-eabi*): Likewise.
1748 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
1749 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
1750 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
1751 Remove.
1752
201cdb74
RO
17532011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1754
1755 * Makefile.in (UNWIND_H): Remove.
1756 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
1757 ../libgcc/Makefile.in.
1758 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
1759 (LIBUNWINDDEP): Remove.
1760 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
1761 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
1762 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
1763 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
1764 Don't copy $(UNWIND_H).
24911a50 1765 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
201cdb74
RO
1766 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
1767 * aclocal.m4: Regenerate.
1768 * configure: Regenerate.
1769 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
1770 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
1771 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
1772 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
1773 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
1774 * config/arm/libunwind.S, config/arm/pr-support.c,
1775 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
1776 ../libgcc/config/arm.
1777 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
1778 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
1779 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
1780 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
1781 ($(T)frvend$(objext)): Likewise.
1782 * config/ia64/t-glibc (LIB2ADDEH): Remove.
1783 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
1784 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
1785 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
1786 ../libgcc/config/ia64.
1787 * config/ia64/t-hpux (LIB2ADDEH): Remove.
1788 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
1789 * config/ia64/t-vms (LIB2ADDEH): Remove.
1790 * config/ia64/vms.h (UNW_IVMS_MODE,
1791 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
1792 * config/picochip/t-picochip (LIB2ADDEH): Remove.
1793 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
1794 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
1795 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
1796 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
1797 $(srcdir)/../libgcc to refer to unwinder sources.
1798 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
1799 * config/t-darwin (LIB2ADDEH): Remove.
1800 * config/t-freebsd (LIB2ADDEH): Remove.
1801 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
1802 * config/t-libunwind-elf: Move to ../libgcc/config.
1803 * config/t-linux (LIB2ADDEH): Remove.
1804 * config/t-sol2 (LIB2ADDEH): Remove.
1805 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
1806 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
1807
cee0d6d2
L
18082011-08-05 H.J. Lu <hongjiu.lu@intel.com>
1809
1810 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
1811
1812 * doc/invoke.texi: Document core-avx-i.
1813
96c891b3
RO
18142011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1815
1816 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
1817
2aacf3c3
IR
18182011-08-05 Ira Rosen <ira.rosen@linaro.org>
1819
1820 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
1821 result of multiple results reduction when extracting the final
1822 value using scalar code.
1823
0f36b2da
RG
18242011-08-05 Richard Guenther <rguenther@suse.de>
1825
1826 PR tree-optimization/49984
1827 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
1828
8b201bc5
RG
18292011-08-05 Richard Guenther <rguenther@suse.de>
1830
1831 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
1832 return true for constant integer ranges.
1833 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
1834 BIT_IOR_EXPR handling.
1835
c1ea7f07
KT
18362011-08-04 Kai Tietz <ktietz@redhat.com>
1837
1838 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
1839 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
1840
1107f3ae
IR
18412011-08-04 Ira Rosen <ira.rosen@linaro.org>
1842
1843 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
1844 pattern def statement, and its access macro.
1845 (NUM_PATTERNS): Set to 5.
1846 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1847 pattern def statement.
1848 (vect_transform_loop): Likewise.
1849 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
1850 function vect_recog_over_widening_pattern ().
1851 (vect_operation_fits_smaller_type): New function.
1852 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
1853 Likewise.
1854 (vect_pattern_recog_1): Move the code that marks pattern
1855 statements to vect_mark_pattern_stmts (), and call it. Update
1856 documentation.
1857 * tree-vect-stmts.c (vect_supportable_shift): New function.
1858 (vect_analyze_stmt): Handle pattern def statement.
1859 (new_stmt_vec_info): Initialize pattern def statement.
1860
6394830f
RH
18612011-08-04 Richard Henderson <rth@redhat.com>
1862
1863 PR target/49964
1864 * config/i386/i386.c (ix86_expand_call): Don't create nested
1865 PARALLELs for TARGET_VZEROUPPER.
1866 (ix86_split_call_vzeroupper): Fix extraction of the original call.
1867 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
1868 recognize nested PARALLELs.
1869 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
1870 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
1871 *sibcall_value_pop_vzeroupper): Likewise.
1872
faf7a23d
RH
18732011-08-04 Richard Henderson <rth@redhat.com>
1874
1875 PR middle-end/49968
1876 * calls.c (expand_call): Use fixup_args_size_notes for
1877 emit_stack_restore.
1878 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
1879 in non-standard modes.
1880
84f405a1
JJ
18812011-08-04 Jakub Jelinek <jakub@redhat.com>
1882
1883 * gcc.c (self_spec): New variable.
1884 (static_specs): Add self_spec.
1885 (main): Call do_self_spec on "self_spec" specs after reading
1886 user specs files. Move compare_debug handling right after that.
1887
4d320da4
RG
18882011-08-04 Richard Guenther <rguenther@suse.de>
1889
1890 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
1891 (value_range_nonnegative_p): New function.
1892 (ssa_name_nonnegative_p): Use it.
1893 (value_range_constant_singleton): New function.
1894 (op_with_constant_singleton_value_range): Use it.
1895 (extract_range_from_binary_expr_1): New function, split out from ...
1896 (extract_range_from_binary_expr): ... this. Remove fallback
1897 constant folding done here.
1898
7e29ba60
RG
18992011-08-04 Richard Guenther <rguenther@suse.de>
1900
1901 PR tree-optimization/49806
1902 * tree-vrp.c (op_with_boolean_value_range_p): New function.
1903 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
1904 a new statement for a final conversion to bool.
1905
f142b5bc
RG
19062011-08-04 Romain Geissler <romain.geissler@gmail.com>
1907
1908 * gengtype-state.c: Include "bconfig.h" if
1909 GENERATOR_FILE is defined, "config.h" otherwise.
1910 * gengtype.c: Likewise.
1911 * gengtype-lex.l: Likewise.
1912 * gengtype-parse.c: Likewise.
1913 * Makefile.in (gengtype-lex.o-warn): New variable.
1914 (plugin_resourcesdir): Likewise.
1915 (plugin_bindir): Likewise.
1916 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
1917 (MOSTLYCLEANFILES): Add gengtype$(exeext).
1918 (native): Depend on gengtype$(exeext) is $enable_plugin
1919 is set to "yes".
1920 (gtype.state): Depend on s-gtype. Use temporary file.
1921 (gengtype-lex.o): New rule.
1922 (gengtype-parse.o): Likewise.
1923 (gengtype-state.o): Likewise.
1924 (gengtype$(exeext)): Likewise.
1925 (install-gengtype): Likewise.
1926 (gengtype.o): Likewise.
1927 (build/gengtype.o): Depend on version.h.
1928 (build/gengtype-state): Depend on double-int.h, version.h,
1929 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
1930 (install-plugin): Depend on install-gengtype.
1931
8dd00781
JJ
19322011-08-04 Jakub Jelinek <jakub@redhat.com>
1933
1934 PR middle-end/49905
1935 * tree.h (init_attributes): New prototype.
1936 * attribs.c (init_attributes): No longer static.
1937
6eb9142a
RR
19382011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1939
1940 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
1941 maybe_suffix.
1942
63a73071
DL
19432011-08-03 David Li <davidxl@google.com>
1944
1945 * tree-optimize.c (execute_fixup_cfg): Fix up entry
1946 outgoing edge counts after inlining.
1947
90037898
DL
19482011-08-03 David Li <davidxl@google.com>
1949
1950 * profile.c (compute_branch_probabilities): Compute
1951 function frequency after profile annotation.
1952
ea6c2b0e
AM
19532011-08-04 Alan Modra <amodra@gmail.com>
1954
1955 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
1956 use_backchain_to_restore_sp initialisation.
1957 (rs6000_legitimate_offset_address_p): Simplify offset test.
1958
4b39813a
RH
19592011-08-03 Richard Henderson <rth@redhat.com>
1960
1961 * config/spu/spu.md: Use define_c_enum instead of define_constants.
1962 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
1963 (UNSPECV_NOP): New.
1964
a6365e99
RH
19652011-08-03 Richard Henderson <rth@redhat.com>
1966
1967 PR target/34888
1968 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
1969
cb3d2e33
JJ
19702011-08-03 Jakub Jelinek <jakub@redhat.com>
1971
1972 PR tree-optimization/49948
1973 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
1974
35bdbc69
AS
19752011-08-03 Anatoly Sokolov <aesok@post.ru>
1976
1977 * config/m32c/m32c.c (class_sizes): Remove.
1978 (reduce_class): Change arguments and return type to reg_class_t.
1979 Change type cc var to HARD_REG_SET. Change type best var to
1980 reg_class_t. Change type best_size var to unsigned int. Remove
1981 initialization class_sizes var. Use reg_class_size array instead
1982 of class_sizes. Use reg_class_contents array instead
1983 of class_contents.
1984
a130fb24
RG
19852011-08-03 Richard Guenther <rguenther@suse.de>
1986
1987 PR middle-end/49958
1988 * fold-const.c (fold_binary_loc): Only associate
1989 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
1990 overflow wraps.
1991
276e0224
AM
19922011-08-03 Alan Modra <amodra@gmail.com>
1993
1994 PR rtl-optimization/49941
1995 * jump.c (mark_jump_label): Comment.
1996 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
1997 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
1998 (mark_used_flags): Don't mark RETURN.
1999
eb723fa3
RG
20002011-08-03 Richard Guenther <rguenther@suse.de>
2001
2002 PR tree-optimization/49938
2003 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
2004 deal with a POLYNOMIAL_CHREC.
2005
edc429ff
RE
20062011-08-03 Revital Eres <revital.eres@linaro.org>
2007
2008 * modulo-sched.c (calculate_stage_count,
2009 calculate_must_precede_follow, get_sched_window,
2010 try_scheduling_node_in_cycle, remove_node_from_ps): Add
2011 declaration.
2012 (update_node_sched_params, set_must_precede_follow, optimize_sc):
2013 New functions.
2014 (reset_sched_times): Call update_node_sched_params.
2015 (sms_schedule): Call optimize_sc.
2016 (get_sched_window): Change function arguments.
2017 (sms_schedule_by_order): Update call to get_sched_window.
2018 Call set_must_precede_follow.
2019 (calculate_stage_count): Add function argument.
2020
9a08d230
RH
20212011-08-02 Richard Henderson <rth@redhat.com>
2022
2023 PR target/49864
a3fef928 2024 PR target/49879
9a08d230
RH
2025 * reg-notes.def (REG_ARGS_SIZE): New.
2026 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
2027 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
2028 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
2029 different stack levels.
2030 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
2031 (maybe_move_args_size_note): New.
2032 (combine_stack_adjustments_for_block): Use it.
2033 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
2034 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
2035 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
2036 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
2037 (cur_cfa): New.
2038 (queued_args_size): Remove.
2039 (add_cfi_args_size): Assert size is non-negative.
2040 (stack_adjust_offset, dwarf2out_args_size): Remove.
2041 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
2042 (notice_args_size, notice_eh_throw): New.
2043 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
2044 (dwarf2out_frame_debug_adjust_cfa): Likewise.
2045 (dwarf2out_frame_debug_cfa_offset): Likewise.
2046 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
2047 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
2048 (change_cfi_row): Don't emit args_size.
2049 (maybe_record_trace_start_abnormal): Split out from ...
2050 (maybe_record_trace_start): Here. Set args_size_undefined.
2051 (create_trace_edges): Update to match.
2052 (scan_trace): Handle REG_ARGS_SIZE.
2053 (connect_traces): Connect args_size between EH insns.
2054 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
2055 * explow.c (suppress_reg_args_size): New.
2056 (adjust_stack_1): Split out from ...
2057 (adjust_stack): ... here.
2058 (anti_adjust_stack): Use it.
2059 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
2060 * expr.c (mem_autoinc_base): New.
2061 (fixup_args_size_notes): New.
2062 (emit_single_push_insn_1): Rename from emit_single_push_insn.
2063 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
2064 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
2065 * reload1.c (reload_as_needed): Likewise.
2066 * rtl.h (fixup_args_size_notes): Declare.
2067
9f813990
PC
20682011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
2069
2070 PR bootstrap/49914
2071 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
2072 of abs.
2073 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2074 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2075
8f1594b2
RH
20762011-08-02 Richard Henderson <rth@redhat.com>
2077
2078 * config/h8300/h8300.c (push, pop): Return the insn.
2079 (h8300_swap_into_er6): Generate correct unwind info.
2080 (h8300_swap_out_of_er6): Likewise.
cde7b553
RH
2081 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
2082 complex cfa expression.
2083 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
8f1594b2 2084
3ed2c643
L
20852011-08-02 H.J. Lu <hongjiu.lu@intel.com>
2086
2087 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2088
f9b4f8c1
RH
20892011-08-02 Richard Henderson <rth@redhat.com>
2090
2091 PR target/49878
2092 * config/h8300/h8300.c (h8300_move_ok): New.
2093 * config/h8300/h8300-protos.h: Declare it.
2094 * config/h8300/h8300.md (P): New mode iterator.
2095 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
2096 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
2097 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
2098 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
2099 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
2100 and pushqi1_h8300hs_normal; use PRE_MODIFY and
2101 register_no_sp_elim_operand.
2102 (*pushhi1_h8300hs_<P>): Similarly.
2103 (pushqi1, pushhi1, pushhi1_h8300): Remove.
2104 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
2105
b7cef595
RH
21062011-08-02 Richard Henderson <rth@redhat.com>
2107
2108 PR target/49881
2109 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
2110
20906c66
JJ
21112011-08-02 Jakub Jelinek <jakub@redhat.com>
2112
2113 * c-parser.c (enum c_parser_prec): New enum, moved from within
2114 c_parser_binary_expression.
2115 (c_parser_binary_expression): Add PREC argument. Stop parsing
2116 if operator has lower or equal precedence than PREC.
2117 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
2118 callers.
2119 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
2120 Adjust c_finish_omp_atomic caller.
2121 (c_parser_omp_taskyield): New function.
2122 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
2123 (c_parser_omp_clause_name): Handle final and mergeable clauses.
2124 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
2125 functions.
2126 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
2127 and PRAGMA_OMP_CLAUSE_MERGEABLE.
2128 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
2129 (c_parser_omp_clause_reduction): Handle min and max.
2130 * c-typeck.c (c_finish_omp_clauses): Don't complain about
2131 const qualified predetermined vars in firstprivate clause.
2132 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2133 Handle MIN_EXPR and MAX_EXPR.
2134 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
2135 and OMP_CLAUSE_MERGEABLE.
2136 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
2137 and OMP_ATOMIC_CAPTURE_NEW.
2138 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
2139 OMP_CLAUSE_MERGEABLE.
2140 (omp_clause_code_name): Likewise.
2141 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2142 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
2143 and OMP_CLAUSE_MERGEABLE.
2144 (OMP_CLAUSE_FINAL_EXPR): Define.
2145 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
2146 OMP_CLAUSE_MERGEABLE.
2147 (expand_task_call): Likewise.
2148 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
2149 (expand_omp_atomic_fetch_op): Handle cases where old or new
2150 value is needed afterwards.
2151 (expand_omp_atomic): Call expand_omp_atomic_load resp.
2152 expand_omp_atomic_store.
2153 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
2154 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
2155 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
2156 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2157 * tree-nested.c (convert_nonlocal_omp_clauses,
2158 convert_local_omp_clauses): Likewise.
2159 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
2160 OMP_ATOMIC_CAPTURE_NEW): New.
2161 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
2162 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
2163 New inlines.
2164 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
2165 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
2166 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2167
9b80d091
KT
21682011-08-02 Kai Tietz <ktietz@redhat.com>
2169
2170 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
2171 boolean-type.
2172 (ssa_forward_propagate_and_combine): Interprete result of
2173 forward_propagate_comparison.
2174 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
2175 boolean-typed operands for comparisons.
2176
7ea56b23 21772011-08-02 Georg-Johann Lay <avr@gjlay.de>
276e0224 2178
7ea56b23
GJL
2179 * config/avr/libgcc.S: Gather related function in the
2180 same input section.
276e0224 2181 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
7ea56b23
GJL
2182 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
2183 references.
2184 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
2185 __udivmodsi4, __divmodsi4, __prologue_saves__,
2186 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
2187 __do_copy_data, __do_clear_bss, __do_global_ctors,
2188 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
2189
643e867f
UB
21902011-08-02 Uros Bizjak <ubizjak@gmail.com>
2191
2192 PR target/47766
2193 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
2194 (stack_protect_test): The pattern compares ptr_mode value.
2195
390fa588
AM
21962011-08-02 Alan Modra <amodra@gmail.com>
2197
2198 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
2199 note for save_LR_around_toc_setup sequence.
2200
d4be16f6
L
22012011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2202
643e867f 2203 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
d4be16f6 2204
3c67fd9c
SP
22052011-08-01 Sebastian Pop <sebastian.pop@amd.com>
2206 Joseph Myers <joseph@codesourcery.com>
2207
2208 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
2209 * hwint.c: Include diagnostic-core.h.
2210 (abs_hwi): New.
2211 (gcd): Moved here...
2212 (pos_mul_hwi): New.
2213 (mul_hwi): New.
2214 (least_common_multiple): Moved here...
2215 * hwint.h (gcd): ... from here.
2216 (least_common_multiple): ... from here.
2217 (HOST_WIDE_INT_MIN): New.
2218 (HOST_WIDE_INT_MAX): New.
2219 (abs_hwi): Declared.
2220 (gcd): Declared.
2221 (pos_mul_hwi): Declared.
2222 (mul_hwi): Declared.
2223 (least_common_multiple): Declared.
2224 * omega.c (check_pos_mul): Removed.
2225 (check_mul): Removed.
2226 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
2227 mul_hwi instead of check_mul.
2228
172c08a5
RH
22292011-08-01 Richard Henderson <rth@redhat.com>
2230
2231 PR target/49881
2232 * config/avr/avr.h (PUSH_ROUNDING): New.
2233 * config/avr/avr.md (pushqi1): Rename from *pushqi.
2234 (*pushhi, *pushsi, *pushsf): Remove.
2235 (MPUSH): New mode iterator.
2236 (push<MPUSH>1): New expander.
2237
0d5e496f
AS
22382011-08-01 Anatoly Sokolov <aesok@post.ru>
2239
2240 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
2241 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2242 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
2243 mmix_preferred_output_reload_class): Remove.
2244 * config/mmix/mmix.c (mmix_preferred_reload_class,
2245 mmix_preferred_output_reload_class): Make static. Change rclass
2246 argument and return type to reg_class_t.
2247 (TARGET_PREFERRED_RELOAD_CLASS,
2248 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2249
a44250f4
JR
22502011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
2251
2252 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
2253 handling.
2254
efd7630c
L
22552011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2256
2257 PR target/47766
2258 * config/i386/i386.md (PTR): New.
2259 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
2260 (stack_protect_test): Likewise.
2261 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
2262 (stack_tls_protect_set_<mode>): Likewise.
2263 (stack_tls_protect_test_<mode>): Likewise.
2264
03acddfe
UB
22652011-08-01 Uros Bizjak <ubizjak@gmail.com>
2266
2267 PR target/49927
2268 * config/i386/i386.c (ix86_address_subreg_operand): New.
2269 (ix86_decompose_address): Use ix86_address_subreg_operand.
2270 (ix86_legitimate_address_p): Do not assert that subregs satisfy
2271 register_no_elim_operand in DImode.
2272
67f2d54f
IR
22732011-08-01 Ira Rosen <ira.rosen@linaro.org>
2274
2275 PR tree-optimization/49926
2276 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
2277 in a chain doesn't have uses both inside and outside the loop.
2278
f2c308fa 22792011-08-01 Georg-Johann Lay <avr@gjlay.de>
03acddfe 2280
f2c308fa
GJL
2281 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
2282 * config/avr/avr-devices.c (avr_mcu_types): Use it.
2283 * config/avr/avr-mcus.def (AVR_MCU): Use it.
2284 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
2285 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
2286 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
2287 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
2288 to detect if XJMP must not be skipped.
2289
bd15e32c
AM
22902011-08-02 Alan Modra <amodra@gmail.com>
2291
03acddfe
UB
2292 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
2293 Delete.
bd15e32c
AM
2294 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
2295 (rs6000_emit_prologue): Don't prematurely return when
2296 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
2297 save_toc_in_prologue case.
2298 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
2299 calls_alloca.
2300
d80de9e1 23012011-08-01 Georg-Johann Lay <avr@gjlay.de>
bd15e32c 2302
d80de9e1
GJL
2303 * config/avr/avr-devices.c: Delete SVN property svn:executable.
2304 * config/avr/predicates.md: Ditto.
2305 * config/avr/driver-avr.c: Ditto.
2306 * config/avr/genopt.sh: Set SVN property svn:executable to *.
2307
ee222ce0
L
23082011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2309
2310 * calls.c (emit_library_call_value_1): Declare size only if
2311 BLOCK_REG_PADDING is defined.
2312
5fcafa60
KY
23132011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
2314
2315 PR target/49547
03acddfe 2316 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
5fcafa60
KY
2317 (x86_64-*-*): Likewise.
2318 * config/i386/i386.opt (mlzcnt): New.
2319 * config/i386/abmintrin.h: File removed.
2320 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
03acddfe 2321 * config/i386/lzcntintrin.h: ... here. New file.
5fcafa60
KY
2322 (__lzcnt): Rename to ...
2323 (__lzcnt32): ... this.
2324 * config/i386/bmiintrin.h (head): Update copyright year.
2325 (__lzcnt_u16): Removed.
2326 (__lzcnt_u32): Likewise.
2327 (__lzcnt_u64): Likewise.
2328 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
2329 is defined, remove abmintrin.h.
2330 * config/i386/cpuid.h (bit_LZCNT): New.
2331 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2332 LZCNT feature.
2333 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2334 __LZCNT__ if needed.
2335 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
2336 (ix86_option_override_internal): Handle LZCNT option.
2337 (ix86_valid_target_attribute_inner_p): Likewise.
2338 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
2339 * config/i386/i386.h (TARGET_LZCNT): New.
2340 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
2341 * config/i386/i386.md (clz<mode>2): Update insn constraint.
2342 (clz<mode>2_lzcnt): Likewise.
2343 * doc/invoke.texi: Mention -mlzcnt option.
2344 * doc/extend.texi: Likewise.
2345
655b30bf
JB
23462011-08-01 Julian Brown <julian@codesourcery.com>
2347
2348 * configure.ac (fixed-point): Add ARM support.
2349 * configure: Regenerate.
2350 * config/arm/arm.c (arm_fixed_mode_set): New struct.
2351 (arm_set_fixed_optab_libfunc): New.
2352 (arm_set_fixed_conv_libfunc): New.
2353 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
2354 ARM-specific names.
2355 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
2356 return values in SImode.
2357 (arm_return_in_msb): Return fixed-point types in the msb.
2358 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
2359 upwards.
2360 (arm_scalar_mode_supported_p): Support fixed-point modes.
2361 (arm_vector_mode_supported_p): Support vector fixed-point modes.
2362 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
2363 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
2364 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
2365 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
2366 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
2367 New mode iterators.
2368 (qaddsub_suf): New mode attribute.
2369 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
2370 vector modes.
2371 * config/arm/predicates.md (sat_shift_operator): New predicate.
2372 * config/arm/arm-fixed.md: New.
2373 * config/arm/arm.md: Include arm-fixed.md.
2374 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
2375
460b171d
JB
23762011-08-01 Julian Brown <julian@codesourcery.com>
2377
2378 * calls.c (emit_library_call_value_1): Support padding for libcall
2379 arguments and return values.
2380 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
2381 downwards in big-endian mode.
2382
b6193c94
RO
23832011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2384
2385 PR debug/49887
2386 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
2387 * config/sol2-protos.h: Likewise.
2388 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
2389 solaris_code_end.
2390 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
2391 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
2392 solaris_file_end.
2393 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
2394
0747aae4
JB
23952011-08-01 Julian Brown <julian@codesourcery.com>
2396
2397 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
2398
848fac28
JB
23992011-08-01 Julian Brown <julian@codesourcery.com>
2400
2401 * final.c (output_addr_const): Print fixed-point constants as
2402 decimal not hex.
2403
e62a2b6e
RG
24042011-08-01 Richard Guenther <rguenther@suse.de>
2405
2406 * stor-layout.c (initialize_sizetypes): Properly sign-extend
2407 bitsiztype TYPE_MAX_VALUE.
2408
f64398b5
JB
24092011-08-01 Julian Brown <julian@codesourcery.com>
2410
2411 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
2412 comparison helpers.
2413
c469244e
RH
24142011-07-31 Richard Henderson <rth@redhat.com>
2415
2416 * config/h8300/crti.asm: Add flags to .section directive.
2417 * config/h8300/crtn.asm: Likewise.
2418
b87ac615
RH
24192011-07-31 Richard Henderson <rth@redhat.com>
2420
2421 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
2422 * tree.c (build_common_tree_nodes): Likewise.
2423
05eb5cc3
KK
24242011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
2425
2426 PR target/49880
2427 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
2428 (divsi3_i1): Likewise.
2429
a3059635
BS
24302011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2431
2432 PR tree-optimization/49749
2433 * tree-ssa-reassoc.c (get_rank): New forward declaration.
2434 (PHI_LOOP_BIAS): New macro.
2435 (phi_rank): New function.
2436 (loop_carried_phi): Likewise.
2437 (propagate_rank): Likewise.
2438 (get_rank): Add calls to phi_rank and propagate_rank.
bd15e32c 2439
3ee7be4c
L
24402011-07-31 H.J. Lu <hongjiu.lu@intel.com>
2441
2442 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
2443 of TARGET_64BIT.
2444 (PTRDIFF_TYPE): Likewise.
2445
deb1f617
UB
24462011-07-31 Uros Bizjak <ubizjak@gmail.com>
2447
2448 PR target/49920
2449 * config/i386/i386.md (strset): Do not expand strset_singleop
2450 when %eax or $edi are fixed.
2451 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
2452 (*strsetsi_1): Ditto.
2453 (*strsethi_1): Ditto.
2454 (*strsetqi_1): Ditto.
2455 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
2456 (*rep_stossi): Ditto.
2457 (*rep_stosqi): Ditto.
03acddfe 2458 (*strlenqi_1): Ditto.
deb1f617
UB
2459 (cmpstrnsi): Also fail when %ecx is fixed.
2460 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
2461 (*cmpstrnqi_1): Ditto.
deb1f617
UB
2462 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
2463 (*strmovsi_1): Ditto.
2464 (*strmovhi_1): Ditto.
2465 (*strmovqi_1): Ditto.
2466 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
2467 (*rep_movsi): Ditto.
2468 (*rep_movqi): Ditto.
2469
03e69b12
MP
24702011-07-31 Mikael Pettersson <mikpe@it.uu.se>
2471
2472 PR target/47908
2473 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
2474 Disable instruction scheduling for non-ColdFire targets.
2475 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2476
dcaac07d
RE
24772011-07-31 Revital Eres <revital.eres@linaro.org>
2478
2479 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
2480 of anti-dep edge from a branch.
2481 (add_cross_iteration_register_deps): Create anti-dep edge from
2482 a branch.
2483
413e50a2
RE
24842011-07-31 Revital Eres <revital.eres@linaro.org>
2485
2486 * modulo-sched.c: Change comment.
2487 (reset_sched_times): Fix print message.
2488 (print_partial_schedule): Add print info.
2489
f047e518
TV
24902011-07-31 Tom de Vries <tom@codesourcery.com>
2491
2492 PR middle-end/43513
2493 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
2494 get_object_alignment and TYPE_ALIGN.
2495
b3421a06
TV
24962011-07-30 Tom de Vries <tom@codesourcery.com>
2497
2498 PR middle-end/43513
2499 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
2500 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
2501
cc822cc1
RO
25022011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2503
2504 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
2505 <sys/sbd.h>.
2506 (cpu_types): New array.
2507 (cputype): New function.
2508 (host_detect_local_cpu): Only define buf, f if !__sgi__.
2509 Use scaninvent instead of /proc/cpuinfo if __sgi__.
2510 * config.host: Also use driver-native.o, mips/x-native on
2511 mips-sgi-irix*.
deb1f617 2512 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
cc822cc1
RO
2513 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
2514 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
2515
25142650
JJ
25162011-07-29 Jakub Jelinek <jakub@redhat.com>
2517
2518 PR middle-end/49897
2519 PR middle-end/49898
2520 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
2521 in nested parallel and outer is a gimple_reg, mark it as addressable
2522 and set its bit in task_shared_vars bitmap too.
2523
89840058
UB
25242011-07-29 Uros Bizjak <ubizjak@gmail.com>
2525
2526 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
2527
d2da41f5
RO
25282011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2529
2530 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
2531 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
2532 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
2533 AMASK_LOCKPFTCHOK): Define.
2534 (host_detect_local_cpu): Remove buf, f, cpu_names.
2535 Define cpu_types, implver, amask.
2536 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
2537 native CPU.
2538 * config.host: Also use driver-alpha.o, alpha/x-alpha on
2539 alpha*-dec-osf*.
2540 * config/alpha/osf5.h [__alpha__ || __alpha]
2541 (host_detect_local_cpu): Declare.
2542 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
2543 (DRIVER_SELF_SPECS): Define.
2544
dadecee2
UB
25452011-07-29 Uros Bizjak <ubizjak@gmail.com>
2546
2547 PR target/47715
2548 * config/i386/i386.md (*load_tp_x32): New.
2549 (*load_tp_x32_zext): Ditto.
2550 (*add_tp_x32): Ditto.
2551 (*add_tp_x32_zext): Ditto.
2552 (*load_tp_<mode>): Disable for TARGET_X32 targets.
2553 (*add_tp_<mode>): Ditto.
2554 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
2555 ptr_mode and convert to Pmode if needed.
2556
db7ccee2 25572011-07-29 Georg-Johann Lay <avr@gjlay.de>
dadecee2 2558
db7ccee2
GJL
2559 PR target/49687
2560 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
2561 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
2562 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
2563 Add X to register footprint: Clobber r26/r27.
2564
96d03496
RG
25652011-07-29 Richard Guenther <rguenther@suse.de>
2566
2567 * builtins.c (fold_builtin_signbit): Build the comparison
2568 with a proper type.
2569
64fb0d3a
RG
25702011-07-29 Richard Guenther <rguenther@suse.de>
2571
2572 PR tree-optimization/49893
2573 * tree-predcom.c (suitable_reference_p): Volatile references
2574 are not suitable.
2575
6130646b 25762011-07-29 Georg-Johann Lay <avr@gjlay.de>
dadecee2 2577
6130646b
GJL
2578 PR target/49313
2579 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
2580 (__ctzsi2): Result for 0 may be undefined.
2581 (__ctzhi2): Result for 0 may be undefined.
2582 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
2583 (__popcountsi2): Ditto. And don't clobber r26.
2584 (__popcountdi2): Ditto. And don't clobber r27.
2585 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
2586 (parityhi2): New expand.
2587 (paritysi2): New expand.
2588 (popcounthi2): New expand.
2589 (popcountsi2): New expand.
2590 (clzhi2): New expand.
2591 (clzsi2): New expand.
2592 (ctzhi2): New expand.
2593 (ctzsi2): New expand.
2594 (ffshi2): New expand.
2595 (ffssi2): New expand.
2596 (copysignsf3): New insn.
2597 (bswapsi2): New expand.
2598 (*parityhi2.libgcc): New insn.
2599 (*parityqihi2.libgcc): New insn.
2600 (*paritysihi2.libgcc): New insn.
2601 (*popcounthi2.libgcc): New insn.
2602 (*popcountsi2.libgcc): New insn.
2603 (*popcountqi2.libgcc): New insn.
2604 (*popcountqihi2.libgcc): New insn-and-split.
2605 (*clzhi2.libgcc): New insn.
2606 (*clzsihi2.libgcc): New insn.
2607 (*ctzhi2.libgcc): New insn.
2608 (*ctzsihi2.libgcc): New insn.
2609 (*ffshi2.libgcc): New insn.
2610 (*ffssihi2.libgcc): New insn.
2611 (*bswapsi2.libgcc): New insn.
2612
a9b332d4
RG
26132011-07-29 Richard Guenther <rguenther@suse.de>
2614
2615 * tree-vrp.c (get_value_range): Only set parameter default
2616 definitions to varying, leave others at undefined.
2617 (extract_range_from_binary_expr): Fix undefined handling.
2618 (vrp_visit_phi_node): Handle merged undefined state.
2619
154516d9
WG
26202011-07-29 Wei Guozhi <carrot@google.com>
2621
2622 PR rtl-optimization/49799
2623 * combine.c (make_compound_operation): Check if the bit field is valid
2624 before change it to bit field extraction.
2625
e40a0b69
BS
26262011-07-29 Bernd Schmidt <bernds@codesourcery.com>
2627
2628 PR rtl-optimization/49891
2629 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
2630 newly created returnjumps.
2631
13a23442
DD
26322011-07-28 DJ Delorie <dj@redhat.com>
2633
69135c94
DD
2634 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
2635 local frame in a naked function, and produce a suitable error for
2636 that specific case.
2637
13a23442
DD
2638 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
2639 registers to be reloaded in HI classes when the target is HI.
2640
6c6c79a9
SP
26412011-07-28 Sebastian Pop <sebastian.pop@amd.com>
2642
2643 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
2644 bound_one, bound_two.
2645
0c43dbaf
SP
26462011-07-28 Sebastian Pop <sebastian.pop@amd.com>
2647
2648 PR middle-end/48648
2649 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
2650 CLAST assignments.
2651 (translate_clast): Same.
2652 (translate_clast_assignment): New.
2653
60cf26cc
SP
26542011-07-28 Sebastian Pop <sebastian.pop@amd.com>
2655
2656 PR tree-optimization/49876
2657 * sese.c (rename_uses): Do not return false on gloog_error: set
2658 the new_expr to integer_zero_node and continue code generation.
2659 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
2660
4fe249e7
JJ
26612011-07-28 Jakub Jelinek <jakub@redhat.com>
2662
2663 PR debug/49846
2664 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
2665 arguments also check if they aren't initialized with a MODE_INT
2666 mode of the same size.
2667
86f98641
AH
26682011-07-28 Aldy Hernandez <aldyh@redhat.com>
2669
2670 * expr.c (get_bit_range): Handle *MEM_REF's.
2671
dc0ff1c8
BS
26722011-07-28 Bernd Schmidt <bernds@codesourcery.com>
2673
2674 * rtlanal.c (tablejump_p): False for returns.
2675 * reorg.c (first_active_target_insn): New static function.
2676 (find_end_label): Set JUMP_LABEL for a new returnjump.
2677 (optimize_skip, get_jump_flags, rare_destination,
2678 mostly_true_jump, get_branch_condition,
2679 steal_delay_list_from_target, own_thread_p,
2680 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
2681 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
2682 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
2683 * jump.c (delete_related_insns): Likewise.
2684 (jump_to_label_p): New function.
2685 (redirect_target): New static function.
2686 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
2687 (redirect_jump_1): Assert that the new label is nonnull.
2688 (redirect_jump): Likewise.
2689 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
2690 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
2691 exit block.
2692 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
2693 changed. Ensure that the right label is passed to redirect_jump.
2694 * function.c (emit_return_into_block,
2695 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
2696 ret_rtx in their JUMP_LABEL.
2697 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
2698 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
2699 pass ret_rtx as label.
2700 * cfglayout.c (fixup_reorder_chain): Use
2701 force_nonfallthru_and_redirect rather than force_nonfallthru.
2702 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
2703 * rtl.h (ANY_RETURN_P): New macro.
2704 (jump_to_label_p): Declare.
2705 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
2706 JUMP_LABELs.
2707 (mark_target_live_regs): Likewise.
2708 * basic-block.h (force_nonfallthru_and_redirect): Declare.
2709 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
2710 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
2711 alpha_tablejump_best_label): Remove functions.
2712 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
2713 alpha_tablejump_best_label): Remove declarations.
2714 * config/sh/sh.c (barrier_align, split_branches): Adjust for
2715 ret_rtx in JUMP_LABELs.
2716 * config/arm/arm.c (is_jump_table): Likewise.
2717
a2e49bb2
UB
27182011-07-28 Uros Bizjak <ubizjak@gmail.com>
2719
2720 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
2721 special predicate. Remove explicit mode checks.
2722
64153cce
JJ
27232011-07-28 Jakub Jelinek <jakub@redhat.com>
2724
a2e49bb2
UB
2725 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
2726 DW_AT_data_member_location containing just DW_OP_plus_uconst.
b3882148 2727
64153cce
JJ
2728 PR debug/49871
2729 * dwarf2out.c (size_of_die, value_format, output_die): Use
2730 DW_FORM_udata instead of DW_FORM_data[48] for
2731 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
2732
0465f4f8
L
27332011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2734
844bf05b
UB
2735 * config/i386/i386.md (*tls_global_dynamic_64): Update
2736 length attribute.
0465f4f8 2737
f51c4a8a
UB
27382011-07-28 Uros Bizjak <ubizjak@gmail.com>
2739
2740 PR target/47715
2741 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
2742 tls_symbolic_operand check. Update code sequence for TARGET_X32.
2743 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
2744 (tls_dynamic_gnu2_64): Ditto.
2745 (*tls_dynamic_gnu2_lea_64): Ditto.
2746 (*tls_dynamic_gnu2_call_64): Ditto.
2747 (*tls_dynamic_gnu2_combine_64): Ditto.
2748
5e9627ca
L
27492011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2750
2751 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
2752
40b9321d
L
27532011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2754
2755 PR target/47364
2756 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
2757
95f89bb3
RR
27582011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2759
2760 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
2761 before the core constraints. Adjust attributes.
a2e49bb2 2762 ("*thumb2_movdf_vfp"): Likewise.
95f89bb3 2763
98958241
KT
27642011-07-28 Kai Tietz <ktietz@redhat.com>
2765
f51c4a8a 2766 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
98958241
KT
2767 (simplify_truth_ops_using_ranges): Likewise.
2768 (build_assert_expr_for): Likewise.
2769 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
2770 and handle BIT_NOT_EXPR for truth-operation.
2771
f627fef2 27722011-07-28 Georg-Johann Lay <avr@gjlay.de>
f51c4a8a 2773
f627fef2
GJL
2774 PR target/49313
2775 Undo r176835 from trunk
2776 2011-07-27 Georg-Johann Lay
2777
296799ba 27782011-07-28 Georg-Johann Lay <avr@gjlay.de>
f51c4a8a 2779
296799ba
GJL
2780 PR target/49687
2781 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
2782 Add _muluhisi3, _mulshisi3, _usmulhisi3.
2783 * config/avr/libgcc.S (__mulsi3): Rewrite.
2784 (__mulhisi3): Rewrite.
2785 (__umulhisi3): Rewrite.
2786 (__usmulhisi3): New.
2787 (__muluhisi3): New.
2788 (__mulshisi3): New.
2789 (__mulohisi3): New.
2790 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
2791 declare.
2792 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
2793 (pseudo_register_or_const_int_operand): New.
2794 (combine_pseudo_register_operand): New.
2795 (u16_operand): New.
2796 (s16_operand): New.
2797 (o16_operand): New.
2798 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
2799 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
2800 (any_extend, any_extend2): New code iterators.
2801 (extend_prefix): New code attribute.
2802 (mulsi3): Rewrite. Turn insn to expander.
2803 (mulhisi3): Ditto.
2804 (umulhisi3): Ditto.
2805 (usmulhisi3): New expander.
2806 (*mulsi3): New insn-and-split.
2807 (mulu<mode>si3): New insn-and-split.
2808 (muls<mode>si3): New insn-and-split.
2809 (mulohisi3): New insn-and-split.
2810 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
2811 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
2812 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
2813 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
2814 insn-and-split.
2815 (*mulsi3_call): Rewrite.
2816 (*mulhisi3_call): Rewrite.
2817 (*umulhisi3_call): Rewrite.
2818 (*usmulhisi3_call): New insn.
2819 (*muluhisi3_call): New insn.
2820 (*mulshisi3_call): New insn.
2821 (*mulohisi3_call): New insn.
2822 (extendqihi2): Use combine_pseudo_register_operand as predicate
2823 for operand 1.
2824 (extendqisi2): Ditto.
2825 (zero_extendqihi2): Ditto.
2826 (zero_extendqisi2): Ditto.
2827 (zero_extendhisi2): Ditto.
2828 (extendhisi2): Ditto. Don't early-clobber operand 0.
2829
d8fa1b73
UB
28302011-07-28 Uros Bizjak <ubizjak@gmail.com>
2831
2832 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
2833
3689198d
SP
28342011-07-27 Sebastian Pop <sebastian.pop@amd.com>
2835
2836 PR tree-optimization/49471
2837 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
2838 iv only when the largest type is unsigned. Do not call
2839 lang_hooks.types.type_for_size.
2840
27165edd
SP
28412011-07-27 Sebastian Pop <sebastian.pop@amd.com>
2842
2843 PR middle-end/45450
2844 * graphite-poly.c (apply_poly_transforms): Disable legality check
2845 after an openscop read.
2846
bd4a54da
SP
28472011-07-27 Sebastian Pop <sebastian.pop@amd.com>
2848
2849 PR middle-end/47691
2850 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
2851 copy_bb_and_scalar_dependences.
2852 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
2853 (graphite_copy_stmts_from_block): Update call to rename_uses.
2854 (copy_bb_and_scalar_dependences): Update call to
2855 graphite_copy_stmts_from_block.
2856 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
2857
04c9ea12 28582011-07-27 Georg-Johann Lay <avr@gjlay.de>
bd4a54da 2859
04c9ea12
GJL
2860 PR target/49313
2861 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
2862 (__ctzsi2): Result for 0 may be undefined.
2863 (__ctzhi2): Result for 0 may be undefined.
2864 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
2865 (__popcountsi2): Ditto. And don't clobber r26.
2866 (__popcountdi2): Ditto. And don't clobber r27.
2867 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
2868 (parityhi2): New expand.
2869 (paritysi2): New expand.
2870 (popcounthi2): New expand.
2871 (popcountsi2): New expand.
2872 (clzhi2): New expand.
2873 (clzsi2): New expand.
2874 (ctzhi2): New expand.
2875 (ctzsi2): New expand.
2876 (ffshi2): New expand.
2877 (ffssi2): New expand.
2878 (copysignsf3): New insn.
2879 (bswapsi2): New expand.
2880 (*parityhi2.libgcc): New insn.
2881 (*parityqihi2.libgcc): New insn.
2882 (*paritysihi2.libgcc): New insn.
2883 (*popcounthi2.libgcc): New insn.
2884 (*popcountsi2.libgcc): New insn.
2885 (*popcountqi2.libgcc): New insn.
2886 (*popcountqihi2.libgcc): New insn-and-split.
2887 (*clzhi2.libgcc): New insn.
2888 (*clzsihi2.libgcc): New insn.
2889 (*ctzhi2.libgcc): New insn.
2890 (*ctzsihi2.libgcc): New insn.
2891 (*ffshi2.libgcc): New insn.
2892 (*ffssihi2.libgcc): New insn.
2893 (*bswapsi2.libgcc): New insn.
2894
479a4921
UB
28952011-07-27 Uros Bizjak <ubizjak@gmail.com>
2896
2897 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
2898 the mode of symbolic_opreand RTXes.
2899
7aecd4e8
UB
29002011-07-27 Uros Bizjak <ubizjak@gmail.com>
2901
a2e49bb2
UB
2902 * config/i386/predicates.md (x86_64_movabs_operand): Return false
2903 for pic_32bit_operand RTXes.
7aecd4e8
UB
2904 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
2905 in DImode.
2906
eb9820c0
KT
29072011-07-27 Kai Tietz <ktietz@redhat.com>
2908
2fe83a0c
KT
2909 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
2910 for 32-bit, too.
2911 (ix86_handle_abi_attribute): Allow function attributes
2912 ms_abi/sysv_abi in 32-bit mode, too.
2913 * doc/extend.texi: Adjust attribute documentation.
2914
eb9820c0
KT
2915 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
2916 expression handling.
2917 (and_var_with_comparison_1): Likewise.
2918
1169e45d
AH
29192011-07-27 Aldy Hernandez <aldyh@redhat.com>
2920
2921 * params.h (ALLOW_STORE_DATA_RACES): New.
2922 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
2923 * Makefile.in (expr.o): Depend on PARAMS_H.
2924 * machmode.h (get_best_mode): Add argument.
2925 * fold-const.c (optimize_bit_field_compare): Add argument to
2926 get_best_mode.
2927 (fold_truthop): Same.
2928 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
2929 * expr.c (emit_group_store): Same.
2930 (copy_blkmode_from_reg): Same.
2931 (write_complex_part): Same.
2932 (optimize_bitfield_assignment_op): Add argument.
2933 Add argument to get_best_mode.
2934 (get_bit_range): New.
7aecd4e8 2935 (expand_assignment): Calculate maxbits and pass it down accordingly.
1169e45d 2936 (store_field): New argument.
7aecd4e8 2937 (expand_expr_real_2): New argument to store_field. Include params.h.
1169e45d
AH
2938 * expr.h (store_bit_field): New argument.
2939 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
2940 into account maxbits.
2941 * calls.c (store_unaligned_arguments_into_pseudos): New argument
2942 to store_bit_field.
2943 * expmed.c (store_bit_field_1): New argument. Use it.
2944 (store_bit_field): Same.
2945 (store_fixed_bit_field): Same.
2946 (store_split_bit_field): Same.
2947 (extract_bit_field_1): Pass new argument to get_best_mode.
2948 (extract_bit_field): Same.
2949 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
2950 * doc/invoke.texi: Document parameter allow-store-data-races.
2951
7bbdd4e9
JJ
29522011-07-27 Jakub Jelinek <jakub@redhat.com>
2953
7aecd4e8 2954 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
7bbdd4e9 2955
aebf4828
KT
29562011-07-27 Kai Tietz <ktietz@redhat.com>
2957
2958 * tree-vrp.c (extract_range_from_binary_expr): Remove
2959 TRUTH-binary cases and add new bitwise-cases.
2960 (extract_range_from_assignment): Likewise.
2961 (register_edge_assert_for_1): Likeiwise.
2962 (register_edge_assert_for): Likewise.
2963 (simplify_truth_ops_using_ranges): Likewise.
2964 (simplify_stmt_using_ranges): Likewise.
2965
65ceed36
L
29662011-07-26 H.J. Lu <hongjiu.lu@intel.com>
2967
2968 PR target/47372
2969 * config/i386/i386.c (ix86_delegitimize_address): Call
2970 simplify_gen_subreg for PIC with mode of x only if modes of
2971 x and orig_x are different.
2972
b56bc05b
JJ
29732011-07-26 Jakub Jelinek <jakub@redhat.com>
2974
2975 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
2976 to GC allocated copy of the string.
2977 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
2978 before .debug_line, not after it.
2979
bce26def
SP
29802011-07-26 Sebastian Pop <sebastian.pop@amd.com>
2981
2982 PR middle-end/47046
2983 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
2984 evolution_function_is_affine_p on CHREC_RIGHT.
2985
5f72e02d
SP
29862011-07-26 Sebastian Pop <sebastian.pop@amd.com>
2987
2988 * tree-data-ref.c (max_stmt_executions_tree): Do not call
2989 lang_hooks.types.type_for_size.
2990
cbc1994b
SP
29912011-07-26 Sebastian Pop <sebastian.pop@amd.com>
2992
2993 PR middle-end/47653
2994 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
2995 loops using wrapping semantics.
2996
4c7d6755
SP
29972011-07-26 Sebastian Pop <sebastian.pop@amd.com>
2998
2999 PR middle-end/48805
3000 * tree-scalar-evolution.c (instantiate_scev_r): Return
3001 chrec_dont_know for ADDR_EXPR.
3002
e207e41f
UB
30032011-07-26 Uros Bizjak <ubizjak@gmail.com>
3004 H.J. Lu <hongjiu.lu@intel.com>
3005
3006 PR target/47369
3007 PR target/49853
3008 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
3009 if legitimize_tls_address returned operand in wrong mode. Allow
3010 SImode and DImode symbolic operand for PIC. Call convert_to_mode
3011 if legitimize_pic_address returned operand in wrong mode.
3012
842eeb9b
MJ
30132011-07-26 Martin Jambor <mjambor@suse.cz>
3014
3015 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
3016 return false for invariants.
3017
98d2c0ad
UB
30182011-07-26 Uros Bizjak <ubizjak@gmail.com>
3019
3020 * config/i386/i386.md (add->lea splitter): Implement using SWI
3021 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
3022 (add->lea zext splitter): Change operand 2 predicate to
3023 x86_64_nonmemory_operand.
3024
c21510a9
RG
30252011-07-26 Richard Guenther <rguenther@suse.de>
3026
3027 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
3028 frequency makes everything hot.
3029
9f61fd17
RG
30302011-07-26 Richard Guenther <rguenther@suse.de>
3031
3032 PR tree-optimization/49840
3033 * tree-vrp.c (range_fits_type_p): Properly handle full
3034 double-int precision.
3035
5bf3d50d
MJ
30362011-07-26 Martin Jambor <mjambor@suse.cz>
3037
3038 PR bootstrap/49786
3039 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
3040 counts.
3041 (update_specialized_profile): Likewise.
3042
536e3f49
UB
30432011-07-26 Uros Bizjak <ubizjak@gmail.com>
3044 H.J. Lu <hongjiu.lu@intel.com>
3045
3046 PR target/47381
3047 PR target/49832
3048 PR target/49833
3049 * config/i386/i386.md (i): Change SImode attribute to "e".
3050 (g): Change SImode attribute to "rme".
3051 (di): Change SImode attribute to "nF".
3052 (general_operand): Change SImode attribute to x86_64_general_operand.
3053 (general_szext_operand): Change SImode attribute to
3054 x86_64_szext_general_operand.
3055 (immediate_operand): Change SImode attribute to
3056 x86_64_immediate_operand.
3057 (nonmemory_operand): Change SImode attribute to
3058 x86_64_nonmemory_operand.
3059 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
3060 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
3061 (*lea_1): Use SWI48 mode iterator.
3062 (*lea_1_zext): New insn pattern.
3063 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
3064 (*bt<mode>): Ditto.
3065 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
3066 Update operand constraints.
3067 (addsi_1_zext): Ditto.
3068 (*add<mode>2): Ditto.
3069 (*addsi_3_zext): Ditto.
3070 (*subsi_1_zext): Ditto.
3071 (*subsi_2_zext): Ditto.
3072 (*subsi_3_zext): Ditto.
3073 (*addsi3_carry_zext): Ditto.
3074 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
3075 (*mulsi3_1_zext): Ditto.
3076 (*andsi_1): Ditto.
3077 (*andsi_1_zext): Ditto.
3078 (*andsi_2_zext): Ditto.
3079 (*<any_or:code>si_1_zext): Ditto.
3080 (*<any_or:code>si_2_zext): Ditto.
3081 (*test<mode>_1): Use <general_operand> predicate for operand 1.
3082 (*and<mode>_2): Ditto.
3083 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
3084 (add->lea splitter): Check operand modes in insn constraint. Extend
3085 operands less than SImode wide to SImode.
3086 (add->lea zext splitter): Do not extend input operands to DImode.
3087 (*lea_general_1): Handle only QImode and HImode operands.
3088 (*lea_general_2): Ditto.
3089 (*lea_general_3): Ditto.
3090 (*lea_general_1_zext): Remove.
3091 (*lea_general_2_zext): Ditto.
3092 (*lea_general_3_zext): Ditto.
3093 (*lea_general_4): Check operand modes in insn constraint. Extend
3094 operands less than SImode wide to SImode.
3095 (ashift->lea splitter): Ditto.
3096 * config/i386/i386.c (ix86_print_operand_address): Print address
3097 registers with 'q' modifier on 64bit targets.
3098 * config/i386/predicates.md (pic_32bit_opreand): Define as special
3099 predicate. Reject non-SI and non-DI modes.
3100
0de204de
AP
31012011-07-25 Andrew Pinski <apinski@cavium.com>
3102
3103 PR tree-opt/49671
3104 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
3105 TREE_THIS_NOTRAP into the inner most MEM_REF.
3106 Always copy TREE_THIS_VOLATILE.
3107 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
3108 arguments are not volatile references.
3109
104fcc7a
RH
31102011-07-25 Richard Henderson <rth@redhat.com>
3111
3112 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
3113 * final.c (final_scan_insn): Don't test for it.
3114 (rest_of_clean_state): Likewise.
3115
c24a6738
RH
31162011-07-25 Richard Henderson <rth@redhat.com>
3117
3118 PR debug/49841
3119 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
3120 (emit_frame_save): Likewise.
3121 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
3122 insn onto a dummy blockage insn after the join label.
3123
200e10dc
RH
31242011-07-25 Richard Henderson <rth@redhat.com>
3125
3126 * dwarf2cfi.c (dw_trace_info): Add ID member.
3127 (get_trace_index): Remove. Change users to use ID member.
3128 (before_next_cfi_note): New.
3129 (connect_traces): Remove unreachable traces before the main loop.
3130 Look across one trace and generate remember/restore_state if needed.
3131
a5d0ce89
RH
31322011-07-25 Richard Henderson <rth@redhat.com>
3133
3134 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
3135
c344a866
JR
31362011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
3137
3138 * genattr.c (write_upcase, gen_attr <enum definition writing>):
3139 Move to ...
3140 * genattr-common.c ... here.
3141 (main): Call gen_attr.
3142 * optc-gen.awk: Make generated program include insn-attr-common.h .
3143 * Makefile.in (oprions.o): Depend on insn-attr-common.h
3144
4645179e
AS
31452011-07-25 Anatoly Sokolov <aesok@post.ru>
3146
3147 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3148 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
3149 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
3150 m32c_print_operand, m32c_print_operand_address): Remove.
3151 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
3152 Change return type to bool. Change argument type to bool.
3153 (m32c_print_operand, m32c_print_operand_address): Make static.
3154 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
3155 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3156
8175c19c
RO
31572011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3158
3159 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
3160 attributes): Document mmap.
3161
5057fa13
AS
31622011-07-25 Anatoly Sokolov <aesok@post.ru>
3163
3164 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3165 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
3166 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
3167 mmix_print_operand, mmix_print_operand_address): Remove.
3168 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
3169 Change return type to bool. Change argument type to bool.
3170 (mmix_print_operand, mmix_print_operand_address): Make static.
536e3f49 3171 (mmix_intval, mmix_output_condition): Change 'x' argument type
5057fa13
AS
3172 to const_rtx.
3173 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
3174 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3175
f4da258f 31762011-07-25 Georg-Johann Lay <avr@gjlay.de>
536e3f49 3177
f4da258f
GJL
3178 PR target/39386
3179 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
3180 shift counter for x << x and x >> x shifts.
3181
1500b428
RO
31822011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3183
3184 PR target/47124
3185 * config.gcc: Reject *-*-solaris2 configuration.
3186
59daeef4
RS
31872011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
3188
3189 PR tree-optimization/49809
3190 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
3191 gimple_get_lhs instead of gimple_assign_lhs.
3192
4d1c7421
RO
31932011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3194
3195 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
3196
7fdab8d4
RG
31972011-07-25 Richard Guenther <rguenther@suse.de>
3198
3199 PR tree-optimization/49822
3200 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
3201 more. Make sure to preserve stmts with side-effects. Properly
3202 handle virtual defs, follow a longer def chain.
3203
1baae426
RG
32042011-07-22 Romain Geissler <romain.geissler@gmail.com>
3205
3206 PR plugins/45348
3207 PR plugins/48425
3208 PR plugins/46577
3209 * Makefile.in: Do not flatten c-family directory when installing
3210 plugin headers.
3211
264b47b0
EB
32122011-07-25 Eric Botcazou <ebotcazou@adacore.com>
3213
3214 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
3215 original nodes if we are dealing with virtual clones.
3216
3d02ae65
BS
32172011-07-25 Bernd Schmidt <bernds@codesourcery.com>
3218
3219 * common/config/c6x/c6x-common.c: New file.
3220
2eaa698b
RZ
32212011-07-25 Roman Zhuykov <zhroma@ispras.ru>
3222
3223 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
3224
ebeadd91
RG
32252011-07-25 Richard Guenther <rguenther@suse.de>
3226
3227 PR tree-optimization/49715
3228 * tree-vrp.c: Include expr.h and optabs.h.
3229 (range_fits_type_): New function.
3230 (simplify_float_conversion_using_ranges): Likewise.
3231 (simplify_stmt_using_ranges): Call it.
3232 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
3233 * optabs.c (can_float_p): Export.
3234 * optabs.h (can_float_p): Declare.
3235
d9256277
RG
32362011-07-25 Richard Guenther <rguenther@suse.de>
3237
3238 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
3239 (get_value_range): For out-of-range SSA names or names created
3240 after propagation return a read-only varying range.
3241 (dump_all_value_ranges): Adjust.
3242 (vrp_initialize): Likewise.
3243 (vrp_finalize): Likewise.
3244
149e741d
RH
32452011-07-24 Richard Henderson <rth@redhat.com>
3246
3247 PR debug/49831
3248 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
3249 them entirely.
3250
981dc735
RH
32512011-07-24 Richard Henderson <rth@redhat.com>
3252
3253 PR debug/49825
3254 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
3255 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
3256
3382318a
RH
32572011-07-24 Richard Henderson <rth@redhat.com>
3258
3259 PR debug/49827
3260 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
3261
2f23f97a
RH
32622011-07-24 Richard Henderson <rth@redhat.com>
3263
3264 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
3265 Zero args_size for abnormal edges. Adjust all callers.
3266
2edb462e
RH
32672011-07-24 Richard Henderson <rth@redhat.com>
3268
3269 PR debug/49825
3270 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
3271
96d5384b
L
32722011-07-24 H.J. Lu <hongjiu.lu@intel.com>
3273
3274 PR bootstrap/49835
3275 * collect2.c (demangle_flag): Removed.
3276
df45fc34
SL
32772011-07-24 Sandra Loosemore <sandra@codesourcery.com>
3278
3279 * configure.ac (demangler_in_ld): Default to yes.
3280 * configure: Regenerated.
3281 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
3282 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
3283 --no-demangle options straight through to ld. When
3284 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
3285 way that has the intended effect on Windows.
3286
829bdd4b
RH
32872011-07-23 Richard Henderson <rth@redhat.com>
3288
3289 * dwarf2cfi.c: Include basic-block.h.
3290 (dw_label_info): Remove.
3291 (trace_work_list, trace_index): New.
3292 (remember_row, emit_cfa_remember): Remove.
3293 (dw_trace_info_hash, dw_trace_info_eq): New.
3294 (get_trace_index, get_trace_info): New.
3295 (save_point_p): New.
3296 (free_cfi_row): Remove.
3297 (add_cfi): Do not emit DW_CFA_remember_state.
3298 (cfa_row_equal_p): New.
3299 (barrier_args_size): Remove.
3300 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
3301 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
3302 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
3303 (dwarf2out_cfi_begin_epilogue): Remove.
3304 (dwarf2out_frame_debug_restore_state): Remove.
3305 (connect_traces, create_pseudo_cfg): New.
3306 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
3307 * Makefile.in (dwarf2cfi.o): Update.
3308
43215a89
RH
33092011-07-23 Richard Henderson <rth@redhat.com>
3310
3311 * dwarf2cfi.c (dw_trace_info): New.
3312 (dw_label_info): New.
3313 (cie_return_save): New.
3314 (cur_trace): New.
3315 (queued_args_size): Rename from args_size. Update all users.
3316 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
3317 (def_cfa_1): Use cur_trace instead of cfa_*.
3318 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
3319 (clobbers_queued_reg_save, reg_saved_in): Likewise.
3320 (dwarf2out_frame_debug_expr): Likewise.
3321 (create_cie_data): Split out from ...
3322 (execute_dwarf2_frame): ... here. Initialize cur_trace.
3323
6ffc63e1
RH
33242011-07-23 Richard Henderson <rth@redhat.com>
3325
3326 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
3327 Update all users to match.
3328 (execute_dwarf2_frame): Free reg_saved_in_data.
3329
999646c1
RH
33302011-07-23 Richard Henderson <rth@redhat.com>
3331
3332 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
3333 (queued_reg_saves): Don't GTY. Change to a VEC.
3334 (queue_reg_save): Update to match.
3335 (dwarf2out_flush_queued_reg_saves): Likewise.
3336 (clobbers_queued_reg_save): Likewise.
3337 (reg_saved_in): Likewise.
3338 (execute_dwarf2_frame): Free queued_reg_saves.
3339
ce363ef2
RH
33402011-07-23 Richard Henderson <rth@redhat.com>
3341
3342 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
3343
57e16c96
RH
33442011-07-23 Richard Henderson <rth@redhat.com>
3345
3346 * dwarf2cfi.c (add_cfi_args_size): Split out from...
3347 (dwarf2out_args_size): ... here.
3348 (add_cfi_restore): Split out from ...
3349 (dwarf2out_frame_debug_cfa_restore): ... here.
3350 (def_cfa_0): Split out from ...
3351 (def_cfa_1): ... here.
3352 (cfi_oprnd_equal_p, cfi_equal_p): New.
3353 (change_cfi_row): New.
3354 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
3355 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
3356 (output_cfis): Remove.
3357 * dwarf2out.c (output_fde): Simplify output_cfi loop.
3358 (dwarf2out_switch_text_section): Don't call output_cfis.
3359 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
3360 * dwarf2out.h: Update decls.
3361 (enum dw_val_class): Add dw_val_class_none.
3362
f1a0e830
RH
33632011-07-23 Richard Henderson <rth@redhat.com>
3364
3365 * dwarf2cfi.c (update_row_reg_save): New.
3366 (dwarf2out_frame_debug_cfa_expression): Use it.
3367 (dwarf2out_frame_debug_cfa_restore): Likewise.
3368 (reg_save): Likewise. Do not emit DW_CFA_same_value.
3369
141618e2
RH
33702011-07-23 Richard Henderson <rth@redhat.com>
3371
3372 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
3373
f17d3401
RH
33742011-07-23 Richard Henderson <rth@redhat.com>
3375
3376 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
3377 (cie_cfi_row): New.
3378 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
3379 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
3380 (cur_row, remember_row): New.
3381 (def_cfa_1): Use cur_row instead of the old_* variables.
3382 (dwarf2out_frame_debug_restore_state): Similarly.
3383 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
3384 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
3385 (dwarf2out_frame_debug_adjust_cfa): Likewise.
3386 (dwarf2out_frame_debug_cfa_offset): Likewise.
3387 (dwarf2out_frame_debug_expr): Likewise.
3388 (execute_dwarf2_frame): Set up cur_row.
3389 * dwarf2out.h (struct cfa_loc): Mark for GTY.
3390
0be7e7a6
RH
33912011-07-23 Richard Henderson <rth@redhat.com>
3392
3393 * basic-block.h (EDGE_PRESERVE): New.
3394 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
3395 * bb-reorder.c: Include except.h.
3396 (fix_up_crossing_landing_pad): New.
536e3f49 3397 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
0be7e7a6
RH
3398 landing pads in the right partition. Duplicate as necessary.
3399 (partition_hot_cold_basic_blocks): Fix up DF info after
3400 duplicating landing pads.
3401 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
3402 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
3403 is set properly. Validate that EH edges are not CROSSING.
3404 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
3405 (dw2_build_landing_pads): ... here.
3406 (convert_to_eh_region_ranges): Remove code to fixup crossing
3407 landing pads.
3408 * except.h (expand_dw2_landing_pad_for_region): Declare.
3409 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
3410
e0170551
RE
34112011-07-23 Richard Earnshaw <rearnsha@arm.com>
3412
3413 PR target/49816
3414 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
3415
15c2ccba
JM
34162011-07-22 Jason Merrill <jason@redhat.com>
3417
3418 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
3419
295331a4
RH
34202011-07-22 Richard Henderson <rth@redhat.com>
3421
3422 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
3423
5f93b30a
RH
34242011-07-22 Richard Henderson <rth@redhat.com>
3425
3426 * jump.c (maybe_propagate_label_ref): Split out of...
3427 (mark_all_labels): ... here. Do not attempt label_ref
3428 propagation while in cfglayout mode.
3429
e967adf4
JJ
34302011-07-22 Jakub Jelinek <jakub@redhat.com>
3431
520cda8c
JJ
3432 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
3433 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
3434 (dwarf_attr_name): Handle DW_AT_GNU_macros.
3435 (dwarf2out_define): If the vector is empty and
3436 lineno is 0, emit a dummy entry first.
3437 (dwarf2out_undef): Likewise. Remove redundant semicolon.
3438 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
3439 optimize_macinfo_range): New functions.
3440 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
3441 mergeable, optimize longer strings using
3442 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
3443 optimize longer sequences of define/undef ops from headers
3444 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
3445 emit a section headers.
3446 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
3447 and macinfo_section_label to DEBUG_MACRO_SECTION
3448 resp. DEBUG_MACRO_SECTION_LABEL.
3449 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
3450 instead of DW_AT_macro_info.
3451
e967adf4
JJ
3452 PR other/32998
3453 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
3454 options.
3455 * dwarf2out.c: Include opts.h.
3456 (dchar_p): New typedef. Define heap VEC for it.
3457 (producer_string): New variable.
3458 (gen_producer_string): New function.
3459 (gen_compile_unit_die): Use it.
536e3f49 3460 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
e967adf4
JJ
3461 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
3462 * doc/invoke.texi: Document -grecord-gcc-switches and
3463 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
3464 to -frecord-gcc-switches description.
3465
3a636414
JM
34662011-07-22 Jason Merrill <jason@redhat.com>
3467
3468 PR c++/30112
3469 * c-decl.c (c_linkage_bindings): Define.
3470
8b9b2275
EB
34712011-07-22 Eric Botcazou <ebotcazou@adacore.com>
3472
3473 PR debug/49815
3474 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
3475
3de69514
L
34762011-07-22 H.J. Lu <hongjiu.lu@intel.com>
3477
3478 * config/i386/i386.c (ix86_option_override_internal): Disallow
3479 MS ABI in x32 mode.
3480 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
3481 only for TARGET_LP64.
536e3f49 3482 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
3de69514 3483
49f6f4f7 34842011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
e56fa6bb
MM
3485
3486 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
3487 avoid warnings when GCC is built with a C++ compiler.
3488
b75d1e21
MJ
34892011-07-22 Martin Jambor <mjambor@suse.cz>
3490
3491 PR lto/49796
3492 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
536e3f49 3493 if decl node is in another partition, call cgraph_get_node only once.
b75d1e21 3494
63708bf5
UB
34952011-07-22 Uros Bizjak <ubizjak@gmail.com>
3496
e3c666fd 3497 * config.gcc (x86_64-*-linux*): Set
63708bf5
UB
3498 default_gnu_indirect_function to yes.
3499
27315aa6
RG
35002011-07-22 Richard Guenther <rguenther@suse.de>
3501
3502 PR tree-optimization/45819
3503 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
3504 preserve volatile and notrap flags.
3505
5b6d595b
RO
35062011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3507 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3508
3509 PR bootstrap/49794
3510 * configure.ac: Test AM_ICONV with CXX.
3511 * configure: Regenerate.
3512 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
3513
7e2fe488
RO
35142011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3515
3516 PR bootstrap/49797
3517 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
3518 (set_cloog_options): Use it.
3519
d423df48
JJ
35202011-07-22 Jakub Jelinek <jakub@redhat.com>
3521
3522 PR c++/49756
3523 * gcc.c (main): Call stack_limit_increase (64MB).
3524 * toplev.c (toplev_main): Likewise.
3525
7fd72c6f
L
35262011-07-21 H.J. Lu <hongjiu.lu@intel.com>
3527
3528 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
3529 instead of force_reg.
3530
96f0b772
L
35312011-07-21 H.J. Lu <hongjiu.lu@intel.com>
3532
3533 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
3534 needed and use force_reg after convert.
3535 (ix86_expand_call): Likewise.
3536 (ix86_expand_special_args_builtin): Likewise.
3537 (ix86_expand_builtin): Likewise.
3538
ef74e2ba
SP
35392011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3540
3541 PR middle-end/47654
3542 PR middle-end/49649
3543 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
3544 in parameter. Initialize v1 and v2 based on the values returned
3545 by clast_name_to_lb_ub.
3546 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
3547 values.
3548 (type_for_clast_bin): Same.
3549 (type_for_clast_expr): Same.
3550 (type_for_clast_eq): Update calls to type_for_clast_expr.
3551 (type_for_clast_for): Same.
3552 (build_iv_mapping): Same.
3553 * graphite-ppl.h (value_min): New.
3554
84f2ffea
SP
35552011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3556
3557 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
3558 types whenever possible.
3559
3d9784cb
SP
35602011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3561
3562 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
3563 and ub fields.
3564 (new_clast_name_index): Add lb and ub parameters.
3565 (free_clast_name_index): New.
3566 (clast_name_to_lb_ub): New.
3567 (save_clast_name_index): Add lb and ub parameters.
3568 (compute_bounds_for_param): New.
3569 (type_for_level): Removed.
3570 (type_for_clast_for): Removed level parameter. Do not call
3571 type_for_level.
3572 (graphite_create_new_loop): Store the lb and ub for the clast_name
3573 of the iterator of the loop that has been generated.
3574 (graphite_create_new_loop_guard): Remove parameter level.
3575 (create_params_index): Store the lb and ub of each parameter.
3576 (gloog): Use free_clast_name_index. Pass to create_params_index
3577 the current scop.
3578
12b30e6d
SP
35792011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3580
3581 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
3582 (max_precision_type): Inline max_signed_precision_type.
3583 (type_for_clast_red): Use max_precision_type.
3584 (type_for_clast_bin): Same.
3585 (type_for_clast_for): Same.
3586
0cdd9dcf
SP
35872011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3588
3589 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
3590 type_for_interval.
3591 (gcc_type_for_value): Renamed type_for_value.
3592 (gcc_type_for_clast_term): Renamed type_for_clast_term.
3593 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
3594 (gcc_type_for_clast_red): Renamed type_for_clast_red.
3595 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
3596 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
3597 (graphite_translate_clast_equation): Update calls.
3598 (compute_type_for_level): Renamed type_for_level.
3599 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
3600 (build_iv_mapping): Update calls.
3601 (graphite_create_new_loop_guard): Same.
3602
8aab43a0
SP
36032011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3604
3605 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
3606 comment.
3607
cf7eab7d
SP
36082011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3609
3610 * graphite-clast-to-gimple.c (struct ivs_params): New.
3611 (clast_name_to_gcc): Use ivs_params to pass around parameters.
3612 (clast_to_gcc_expression): Same.
3613 (clast_to_gcc_expression_red): Same.
3614 (gcc_type_for_clast_term): Same.
3615 (gcc_type_for_clast_expr): Same.
3616 (gcc_type_for_clast_red): Same.
3617 (gcc_type_for_clast_bin): Same.
3618 (gcc_type_for_clast_eq): Same.
3619 (graphite_translate_clast_equation): Same.
3620 (graphite_create_guard_cond_expr): Same.
3621 (graphite_create_new_guard): Same.
3622 (graphite_create_new_loop): Same.
3623 (build_iv_mapping): Same.
3624 (translate_clast_user): Same.
3625 (graphite_create_new_loop_guard): Same.
3626 (translate_clast): Same.
3627 (translate_clast_for_loop): Same.
3628 (translate_clast_for): Same.
3629 (translate_clast_guard): Same.
3630 (initialize_cloog_names): Fix typo.
3631 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
3632
7b1e9596
SP
36332011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3634
3635 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
3636 (new_clast_name_index): Add level parameter.
3637 (clast_name_to_level): New.
3638 (save_clast_name_index): Add level parameter.
3639 (newivs_to_depth_to_newiv): Removed.
3640 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
3641 (graphite_create_new_loop): Add level parameter. Pass level to
3642 save_clast_name_index.
3643 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
3644 (create_params_index): Pass level to save_clast_name_index.
3645
6e6568db
SP
36462011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3647
3648 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
3649 recompute type, lb, and ub. Get them from...
3650 (graphite_create_new_loop_guard): ...here. Pass in parameter
3651 pointers to type, lb, and ub.
3652 (translate_clast_for_loop): Update function calls.
3653 (translate_clast_for): Same.
3654
dff62090
SP
36552011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3656
3657 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
3658 psct_dynamic_dim.
3659 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
3660 (gcc_type_for_iv_of_clast_loop): Update use of level.
3661 (gloog): Start counting nesting level from 0.
3662 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
3663 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
3664 psct_dynamic_dim on level.
3665
628c1ac9
L
36662011-07-21 H.J. Lu <hongjiu.lu@intel.com>
3667
3668 * config/i386/i386.c (ix86_legitimize_address): Convert to
3669 Pmode if needed.
3670
08a8923e
L
36712011-07-21 H.J. Lu <hongjiu.lu@intel.com>
3672
3673 * config/i386/i386.c (function_value_64): Always return pointers
3674 in Pmode.
3675 (ix86_promote_function_mode): New.
3676 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
3677
777a4e9a
BS
36782011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3679
3680 PR tree-optimization/49749
3681 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
3682 remove no-longer-used maxrank variable.
63708bf5 3683
e9514725 36842011-07-21 Georg-Johann Lay <avr@gjlay.de>
63708bf5 3685
e9514725
GJL
3686 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
3687
9ca1483b
JM
36882011-07-21 Jason Merrill <jason@redhat.com>
3689
3690 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
3691 * recog.h (struct insn_data_d): Check it instead of
3692 HAVE_DESIGNATED_INITIALIZERS.
3693 * genoutput.c (output_insn_data): Likewise.
3694
3ceaf2f5
RG
36952011-07-21 Richard Guenther <rguenther@suse.de>
3696
3697 PR tree-optimization/49770
3698 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
3699 valueized any operand. Renamed from ...
3700 (valueize_refs): ... this. New wrapper around valueize_refs_1.
3701 (valueize_shared_reference_ops_from_ref): Return whether we
3702 valueized any operand.
3703 (vn_reference_lookup): Only when we valueized any operand
3704 use the valueized reference for alias analysis. Do not preserve
3705 the original reference tree in this case.
3706
7c53a140
UB
37072011-07-21 Uros Bizjak <ubizjak@gmail.com>
3708
3709 * config/i386/i386.c (ix86_decompose_address): Reject all but
a4235495 3710 register operands and subregs of DImode hard registers in index.
7c53a140 3711
7f3ff782
KT
37122011-07-21 Kai Tietz <ktietz@redhat.com>
3713
3714 * fold-const.c (fold_unary_loc): Preserve indirect
3715 comparison cast to none-boolean type.
3716 * tree-ssa.c (useless_type_conversion_p): Preserve cast
3717 from/to boolean-type.
7c53a140
UB
3718 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
3719 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
7f3ff782
KT
3720 * tree-cfg.c (verify_gimple_comparison): Check result
3721 type of comparison expression.
7c53a140
UB
3722 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
3723 of condition result and disallow type-cast sinking into comparison.
7f3ff782 3724
91bc6112
RG
37252011-07-21 Richard Guenther <rguenther@suse.de>
3726
3727 * tree-ssa-forwprop.c (combine_conversions): Return whether
3728 we have to run cfg-cleanup. Properly remove dead stmts.
3729 (ssa_forward_propagate_and_combine): Adjust.
3730
d6f23738
RS
37312011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
3732
3733 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
3734
fec3cad3
KT
37352011-07-21 Kai Tietz <ktietz@redhat.com>
3736
3737 * tree-ssa-propagate.c (substitute_and_fold): Use
3738 do_dce flag to deside, if BB's statements are scanned
3739 in last to first, or first to last order.
3740
21f3ae2f 37412011-07-21 Georg-Johann Lay <avr@gjlay.de>
7c53a140 3742
21f3ae2f
GJL
3743 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
3744
6025b127
L
37452011-07-20 H.J. Lu <hongjiu.lu@intel.com>
3746 Uros Bizjak <ubizjak@gmail.com>
3747 Richard Henderson <rth@redhat.com>
3748
3749 * config/i386/constraints.md (w): New.
3750
3751 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
3752 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
3753
3754 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
3755 instead of TARGET_64BIT.
3756
3757 * config/i386/i386.md (indirect_jump): Replace
3758 nonimmediate_operand with indirect_branch_operand.
3759 (*indirect_jump): Likewise. Replace constraint "m" with "w".
a4235495
UB
3760 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
3761 Convert operand 0 to Pmode for x32 if not PIC.
6025b127
L
3762 (*tablejump_1): Replace nonimmediate_operand with
3763 indirect_branch_operand. Replace constraint "m" with "w".
3764 (*call_vzeroupper): Replace constraint "m" with "w".
3765 (*call): Likewise.
3766 (*call_rex64_ms_sysv_vzeroupper): Likewise.
3767 (*call_rex64_ms_sysv): Likewise.
3768 (*call_value_vzeroupper): Likewise.
3769 (*call_value): Likewise.
3770 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
3771 (*call_value_rex64_ms_sysv): Likewise.
a4235495 3772 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
6025b127
L
3773
3774 * config/i386/predicates.md (indirect_branch_operand): New.
3775 (call_insn_operand): Support x32.
3776
7f8925a1
ME
37772011-07-20 Michael Eager <eager@eagercon.com>
3778
3779 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
3780
510a442a
RH
37812011-07-20 Richard Henderson <rth@redhat.com>
3782
3783 * cfg.c (dump_bb_info): Dump basic_block->flags.
3784 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
3785
00b40d0d
UB
37862011-07-20 Uros Bizjak <ubizjak@gmail.com>
3787
3788 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
3789 of DImode hard registers in index.
3790 (ix86_legitimate_address_p): Allow subregs of base and index to span
3791 more than a word. Assert that subregs of base and index satisfy
3792 register_no_elim_operand predicates. Reject addresses where
3793 base and index have different modes.
3794
87f53554
RM
37952011-07-20 Robert Millan <rmh@gnu.org>
3796
3797 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
3798
742f29ab
UW
37992011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3800
3801 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
3802 removing now-unnecessary assignment.
3803
d05f3564
UW
38042011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3805
3806 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
3807 memory address space to the type's address space.
3808
8c352fa8 38092011-07-20 Georg-Johann Lay <avr@gjlay.de>
00b40d0d 3810
8c352fa8
GJL
3811 PR target/36467
3812 PR target/49687
00b40d0d
UB
3813 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
3814 and expand appropriately if there is a CONST_INT in operand2.
8c352fa8
GJL
3815 (usmulqihi3): New insn.
3816 (*sumulqihi3): New insn.
3817 (*osmulqihi3): New insn.
3818 (*oumulqihi3): New insn.
3819 (*muluqihi3.uconst): New insn_and_split.
3820 (*muluqihi3.sconst): New insn_and_split.
3821 (*mulsqihi3.sconst): New insn_and_split.
3822 (*mulsqihi3.uconst): New insn_and_split.
3823 (*mulsqihi3.oconst): New insn_and_split.
3824 (*ashifthi3.signx.const): New insn_and_split.
3825 (*ashifthi3.signx.const7): New insn_and_split.
3826 (*ashifthi3.zerox.const): New insn_and_split.
3827 (mulsqihi3): New insn.
3828 (muluqihi3): New insn.
3829 (muloqihi3): New insn.
3830 * config/avr/predicates.md (const_2_to_7_operand): New.
3831 (const_2_to_6_operand): New.
3832 (u8_operand): New.
3833 (s8_operand): New.
3834 (o8_operand): New.
3835 (s9_operand): New.
3836 (register_or_s9_operand): New.
3837
be31603a
KT
38382011-07-20 Kai Tietz <ktietz@redhat.com>
3839
3840 * builtins.c (fold_builtin_expect): See through the cast
3841 from truthvalue_type_node to long.
3842
c36193c6
MM
38432011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
3844
3845 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
3846 where we can use them from the standard and altivec instruction
3847 sets, instead of always using the 3 operand VSX forms that require
3848 the destination to overlap one of the inputs.
3849 (vsx_fms*): Ditto.
3850 (vsx_fnma*): Ditto.
3851 (vsx_fnms*): Ditto.
3852
3853 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
3854 for DF types.
3855 (fmsdf4_fpr): Ditto.
3856 (nfmadf4_fpr): Ditto.
3857 (nfmsdf4_fpr): Ditto.
3858
02aec184
SL
38592011-07-20 Sandra Loosemore <sandra@codesourcery.com>
3860
3861 * genrecog.c (make_insn_sequence): Correct position numbering
3862 when filtering out match_scratch and match_dup.
3863
f8ecf734
RG
38642011-07-20 Richard Guenther <rguenther@suse.de>
3865
3866 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
3867 against already removed statements.
3868 (forward_propagate_into_comparison): Remove dead defining stmts.
3869 (forward_propagate_into_gimple_cond): Likewise.
3870 (forward_propagate_into_cond): Simplify.
3871 (ssa_forward_propagate_and_combine): Handle changed cfg from
3872 forward_propagate_into_comparison.
3873 * tree-ssa-phiopt.c (conditional_replacement): Use proper
3874 locations for newly built statements.
3875
73451ae7
GJL
38762011-07-20 Georg-Johann Lay <avr@gjlay.de>
3877
3878 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
3879
c4100a35
AK
38802011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3881
3882 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
3883 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
3884
dca412a1
RG
38852011-07-20 Richard Guenther <rguenther@suse.de>
3886
3887 PR middle-end/18908
3888 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
3889 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
3890 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
3891
73d7e266
VM
38922011-07-20 Vladimir Makarov <vmakarov@redhat.com>
3893
3894 * config/frv/frv.c (frv_register_move_cost): Define explicitly
3895 costs for subclasses of GR_REGS.
3896
5e27a6d4
UB
38972011-07-20 Uros Bizjak <ubizjak@gmail.com>
3898
3899 PR target/49780
3900 * config/i386/predicates.md (no_seg_addres_operand): No more special.
3901 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
3902 of DImode hard registers in base.
3903 (ix86_legitimate_address_p): Allow SImode and DImode base and index
3904 registers.
3905
74d8fa44
RG
39062011-07-20 Richard Guenther <rguenther@suse.de>
3907
5e27a6d4 3908 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
74d8fa44
RG
3909 (unify_nodes): Deal with that.
3910 (solve_graph): Likewise.
3911
b0e43da8
CLT
39122011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
3913
3914 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
3915 canonicalize left operand from ZERO_EXTEND to AND.
3916
a8c44c52
AS
39172011-07-20 Anatoly Sokolov <aesok@post.ru>
3918
3919 * target.def (class_max_nregs): New hook.
3920 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
3921 * doc/tm.texi: Regenerate.
3922 * targhooks.c (default_class_max_nregs): New function.
3923 * targhooks.h (default_class_max_nregs): Declare.
3924 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
3925 x_ira_reg_class_min_nregs arrays to unsigned char.
3926 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
3927 hook instead of CLASS_MAX_NREGS macro.
3928 * reginfo.c (restore_register_info): Ditto.
3929 * ira-conflicts.c (process_regs_for_copy): Use
3930 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
3931 Change type rclass and aclass vars to reg_class_t.
3932 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
3933 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
3934 reg_class_t.
3935 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
3936 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
3937
3938 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
3939 * config/i386/i386.c (ix86_class_max_nregs): New function.
3940 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
3941 instead of CLASS_MAX_NREGS macro.
3942 (TARGET_CLASS_MAX_NREGS): Define.
3943 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
3944 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
3945 * config/avr/avr.c (class_max_nregs): Remove function.
3946 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
3947 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
3948 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
3949 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
3950 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
3951 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
3952 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
3953 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
3954 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
3955 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
3956 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
3957 * config/score/score.h (CLASS_MAX_NREGS): Remove.
3958 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
3959 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
3960 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
3961
fd811f03
EB
39622011-07-19 Eric Botcazou <ebotcazou@adacore.com>
3963
3964 * cif-code.def (OVERWRITABLE): Fix typo and move around.
3965 (TARGET_OPTIMIZATION_MISMATCH): Delete.
3966 (EH_PERSONALITY): Fix typo.
3967 (NON_CALL_EXCEPTIONS): Fix message.
3968 (OPTIMIZATION_MISMATCH): Adjust message.
3969 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
3970
78767fd9
ILT
39712011-07-19 Ian Lance Taylor <iant@google.com>
3972
3973 * doc/install.texi (Configuration): Document
3974 --enable-build-poststage1-with-cxx.
3975
0baeec1b
RM
39762011-07-19 Robert Millan <rmh@gnu.org>
3977
3978 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
3979 (GLIBC_DYNAMIC_LINKER): Remove.
3980
3981 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
3982 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
3983 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
3984 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
3985 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
3986 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
3987
3988 * config/mips/linux.h: Remove everything except for ...
3989 (GLIBC_DYNAMIC_LINKER): ... this macro.
3990
3991 * config/mips/linux64.h: Remove everything except for ...
3992 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
3993 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
3994 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
3995 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
3996 (GNU_USER_LINK_EMULATIONN32): New macros.
3997
5e27a6d4
UB
3998 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
3999 Use the new headers.
0baeec1b 4000
754c3d5d
RS
40012011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4002
4003 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
4004 Add offset_known_p and size_known_p fields.
4005 (MEM_OFFSET_KNOWN_P): Update accordingly.
4006 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
4007 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
4008 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
4009 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
4010 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
4011 (init_emit_regs): Likewise.
4012
527210c4
RS
40132011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4014
4015 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
4016 (MEM_OFFSET): Change from returning an rtx to returning a
4017 HOST_WIDE_INT.
4018 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
4019 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
4020 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
4021 (clear_mem_offset): Declare.
4022 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
4023 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
4024 MEM_OFFSET to get a HOST_WIDE_INT offset.
4025 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
4026 (adjust_offset_for_component_ref): Take a bool "known_p"
4027 parameter and a HOST_WIDE_INT "offset" parameter.
4028 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
4029 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
4030 than an rtx. Use clear_mem_offset to clear the offset.
4031 * cfgcleanup.c (merge_memattrs): Likewise.
4032 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
4033 * function.c (assign_parm_find_stack_rtl): Likewise.
4034 (assign_parm_setup_stack): Likewise.
4035 * print-rtl.c (print_rtx): Likewise.
4036 * reload.c (find_reloads_subreg_address): Likewise.
4037 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4038 * var-tracking.c (INT_MEM_OFFSET): Likewise.
4039 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
4040 (get_mem_align_offset): Likewise.
4041 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
4042 (clear_mem_offset): New function.
4043 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
4044 offset rather than an rtx. Assume both the expressio and offset
4045 are available.
4046 (r10k_needs_protection_p_1): Update accordingly, checking the
4047 expression and offset availability here instead.
4048
f5541398
RS
40492011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4050
4051 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
4052 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
4053 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
4054 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
4055 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
4056 (clear_mem_size): Declare.
4057 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
4058 (clear_mem_size): New function.
4059 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
4060 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
4061 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
4062 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
4063 to clear the size.
4064 (nonoverlapping_memrefs_p): Likewise.
4065 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
4066 (expand_builtin_init_trampoline): Likewise.
4067 * calls.c (compute_argument_addresses): Likewise.
4068 * cfgcleanup.c (merge_memattrs): Likewise.
4069 * dce.c (find_call_stack_args): Likewise.
4070 * dse.c (record_store, scan_insn): Likewise.
4071 * dwarf2out.c (dw_sra_loc_expr): Likewise.
4072 * expr.c (emit_block_move_hints): Likewise.
4073 * function.c (assign_parm_find_stack_rtl): Likewise.
4074 * print-rtl.c (print_rtx): Likewise.
4075 * reload.c (find_reloads_subreg_address): Likewise.
4076 * rtlanal.c (may_trap_p_1): Likewise.
4077 * var-tracking.c (track_expr_p): Likewise.
4078 * varasm.c (assemble_trampoline_template): Likewise.
4079 * config/arm/arm.c (arm_print_operand): Likewise.
4080 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
4081 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
4082 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
4083 (expand_constant_setmem_prologue): Likewise.
4084 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
4085 * config/rs6000/rs6000.c (expand_block_move): Likewise.
4086 (adjacent_mem_locations): Likewise.
4087 * config/s390/s390.c (s390_expand_setmem): Likewise.
4088 (s390_expand_insv): Likewise.
4089 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
4090 (*extendqi<mode>2_short_displ): Likewise.
4091 * config/sh/sh.c (expand_block_move): Likewise.
4092 * config/sh/sh.md (extv, extzv): Likewise.
4093
f12144dd
RS
40942011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4095
4096 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
4097 (mem_attrs_htab_eq): ...here.
4098 (find_mem_attrs): Replace with...
4099 (set_mem_attrs): ...this function. Take a mem_attrs structure
4100 rather than individual fields.
4101 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
4102 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
4103 (set_mem_size, change_address, adjust_address_1, offset_address)
4104 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
4105 Update accordingly.
4106
1c3f523e
RS
41072011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4108
4109 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
4110 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
4111 Provide a dummy definition of MEM_ADDR_SPACE for generators.
4112 (target_rtl): Add x_mode_mem_attrs.
4113 (mode_mem_attrs): New macro.
4114 (get_mem_attrs): New function.
4115 * emit-rtl.c (get_mem_attrs): Rename to...
4116 (find_mem_attrs): ...this.
4117 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
4118 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
4119 (set_mem_size, change_address, adjust_address_1, offset_address)
4120 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
4121 Update accordingly.
4122 (init_emit_regs): Initialize mode_mem_attrs.
4123
3046b1a9
RG
41242011-07-19 Richard Guenther <rguenther@suse.de>
4125
4126 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
4127 TRUTH_*_EXPR handling.
4128 * tree-ssa-operands.c (get_expr_operands): Likewise.
4129 * tree-ssa-pre.c (fully_constant_expression): Likewise.
4130 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
4131 Likewise.
4132 (is_and_or_or): Likewise.
4133 (is_norm_cond_subset_of): Likewise.
4134
5d49b6a7
RG
41352011-07-19 Richard Guenther <rguenther@suse.de>
4136
4137 * tree.h (fold_build_pointer_plus_loc): New helper function.
4138 (fold_build_pointer_plus_hwi_loc): Likewise.
4139 (fold_build_pointer_plus): Define.
4140 (fold_build_pointer_plus_hwi): Likewise.
4141 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
4142 (fold_builtin_memory_op): Likewise.
4143 (fold_builtin_stpcpy): Likewise.
4144 (fold_builtin_memchr): Likewise.
4145 (fold_builtin_strstr): Likewise.
4146 (fold_builtin_strchr): Likewise.
4147 (fold_builtin_strrchr): Likewise.
4148 (fold_builtin_strpbrk): Likewise.
4149 (fold_builtin_strcat): Likewise.
4150 (expand_builtin_memory_chk): Likewise.
4151 (fold_builtin_memory_chk): Likewise.
4152 * c-typeck.c (build_unary_op): Likewise.
4153 * cgraphunit.c (thunk_adjust): Likewise.
4154 * fold-const.c (build_range_check): Likewise.
4155 (fold_binary_loc): Likewise.
4156 * omp-low.c (extract_omp_for_data): Likewise.
4157 (expand_omp_for_generic): Likewise.
4158 (expand_omp_for_static_nochunk): Likewise.
4159 (expand_omp_for_static_chunk): Likewise.
4160 * tree-affine.c (add_elt_to_tree): Likewise.
4161 * tree-data-ref.c (split_constant_offset_1): Likewise.
4162 * tree-loop-distribution.c (generate_memset_zero): Likewise.
4163 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
4164 * tree-predcom.c (ref_at_iteration): Likewise.
4165 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4166 (add_to_parts): Likewise.
4167 (create_mem_ref): Likewise.
4168 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
4169 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
4170 (number_of_iterations_le): Likewise.
4171 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
4172 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4173 (vect_create_addr_base_for_vector_ref): Likewise.
4174 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
4175 (vect_create_cond_for_alias_checks): Likewise.
4176 * tree-vrp.c (extract_range_from_assert): Likewise.
4177 * config/alpha/alpha.c (alpha_va_start): Likewise.
4178 (alpha_gimplify_va_arg_1): Likewise.
4179 * config/i386/i386.c (ix86_va_start): Likewise.
4180 (ix86_gimplify_va_arg): Likewise.
4181 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
4182 * config/mep/mep.c (mep_expand_va_start): Likewise.
4183 (mep_gimplify_va_arg_expr): Likewise.
4184 * config/mips/mips.c (mips_va_start): Likewise.
4185 (mips_gimplify_va_arg_expr): Likewise.
4186 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
4187 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
4188 (rs6000_gimplify_va_arg): Likewise.
4189 * config/s390/s390.c (s390_va_start): Likewise.
4190 (s390_gimplify_va_arg): Likewise.
4191 * config/sh/sh.c (sh_va_start): Likewise.
4192 (sh_gimplify_va_arg_expr): Likewise.
4193 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
4194 * config/spu/spu.c (spu_va_start): Likewise.
4195 (spu_gimplify_va_arg_expr): Likewise.
4196 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
4197 Likewise.
4198 (xstormy16_gimplify_va_arg_expr): Likewise.
4199 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
4200 (xtensa_gimplify_va_arg_expr): Likewise.
4201
d906fd7f
RG
42022011-07-19 Richard Guenther <rguenther@suse.de>
4203
4204 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
4205 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
4206 handling.
4207
4208 PR middle-end/18908
4209 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
4210 result of BIT_*_EXPR to bitfield precision.
4211
1b14d815
RS
42122011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
4213
4214 PR tree-optimization/49742
4215 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
4216 as a potential write.
4217
d906fd7f
RG
42182011-07-19 Richard Guenther <rguenther@suse.de>
4219
4220 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
4221 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
4222 (forward_propagate_comparison): Simplify, remove obsolete code.
4223
53020648
RG
42242011-07-19 Richard Guenther <rguenther@suse.de>
4225
4226 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
4227 BIT_XOR_EXPR, same as the RTL expander does.
4228 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
4229 (verify_gimple_assign_unary): Likewise.
4230 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
4231 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
4232 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
4233
b8b2b009
JJ
42342011-07-19 Jakub Jelinek <jakub@redhat.com>
4235
4236 PR tree-optimization/49768
4237 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
4238 if offset is smaller than bitoffset, but offset+size is bigger
4239 than bitoffset.
4240
338f655d
IR
42412011-07-19 Ira Rosen <ira.rosen@linaro.org>
4242
4243 PR tree-optimization/49771
4244 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
4245 zero step, set segment length to the size of the data-ref's type.
4246
310bc633
MJ
42472011-07-18 Martin Jambor <mjambor@suse.cz>
4248
4249 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
4250 comments.
4251 (ipcp_values_pool): Declare.
4252 (ipcp_sources_pool): Likewise.
4253 (ipcp_lattice): Changed to forward declaration.
4254 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
4255 cannot_devirtualize.
4256 (ipa_node_params): New fields descriptors, lattices, known_vals,
4257 clone_for_all_contexts and node dead, removed fields params and
4258 count_scale.
4259 (ipa_set_param_count): Removed.
4260 (ipa_get_param_count): Made to work with descriptors vector.
4261 (ipa_get_param): Updated.
4262 (ipa_param_cannot_devirtualize_p): Removed.
4263 (ipa_param_types_vec_empty): Likewise.
4264 (ipa_set_param_used): New function.
4265 (ipa_get_param_used): Updated to use descriptors vector.
4266 (ipa_func_list): Removed.
4267 (ipa_init_func_list): Removed declaration.
4268 (ipa_push_func_to_list_1): Likewise.
4269 (ipa_pop_func_from_list): Likewise.
4270 (ipa_push_func_to_list): Removed.
4271 (ipa_lattice_from_jfunc): Remove declaration.
4272 (ipa_get_jf_pass_through_result): Declare.
4273 (ipa_get_jf_ancestor_result): Likewise.
4274 (ipa_value_from_jfunc): Likewise.
4275 (ipa_get_lattice): Update.
4276 (ipa_lat_is_single_const): New function.
4277 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
4278 (ipa_init_func_list): Likewise.
4279 (ipa_pop_func_from_list): Likewise.
4280 (ipa_get_param_decl_index): Fix coding style.
4281 (count_formal_params): Removed.
4282 (count_formal_params_1): Renamed to count_formal_params.
4283 (ipa_populate_param_decls): Update to use descriptors vector.
4284 (ipa_initialize_node_params): Likewise.
4285 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
4286 (ipa_analyze_params_uses): Likewise.
4287 (ipa_free_node_params_substructures): Likewise and free also lattices
4288 and known values.
4289 (duplicate_array): Removed.
4290 (ipa_edge_duplication_hook): Add the new edge to the list of edge
4291 clones.
4292 (ipa_node_duplication_hook): Update to use new lattices.
4293 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
4294 (ipa_free_all_structures_after_iinln): Likewise.
4295 (ipa_write_node_info): Update to use new lattices.
4296 (ipa_read_node_info): Likewise.
4297 (ipa_get_jf_pass_through_result): New function.
4298 (ipa_get_jf_ancestor_result): Likewise.
4299 (ipa_value_from_jfunc): Likewise.
4300 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
4301 * ipa-cp.c: Reimplemented.
4302 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
4303 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
4304 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
4305 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
4306 * doc/invoke.texi (devirt-type-list-size): Removed description.
4307 (ipa-cp-value-list-size): Added description.
4308
6774a66f
RH
43092011-07-18 Richard Henderson <rth@redhat.com>
4310
4311 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
4312 before calling create_basic_block.
4313
8b316874
JJ
43142011-07-18 Jakub Jelinek <jakub@redhat.com>
4315
4316 PR middle-end/49675
4317 * tree.c (build_common_builtin_nodes): Register
4318 __builtin_return_address, __cyg_profile_func_enter
4319 and __cyg_profile_func_exit.
4320
9f68560b
RH
43212011-07-18 Richard Henderson <rth@redhat.com>
4322
4323 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
4324 (add_labels_and_missing_jumps): ... here.
4325 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
4326
03126412
UB
43272011-07-18 Uros Bizjak <ubizjak@gmail.com>
4328
4329 PR target/47744
4330 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
4331 of DImode hard registers in PLUS address chains.
4332
fbf80ef7
RO
43332011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4334
4335 PR bootstrap/49769
4336 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
4337 (alpha*-*-freebsd*): Likewise.
4338 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
4339 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
4340 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
4341 crtprec80.o, crtfastmath.o to extra_parts for all targets.
4342 (ia64*-*-elf*): Remove extra_parts.
4343 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
4344 (sparc64-*-linux*): Likewise.
4345 (sparc64-*-freebsd*): Likewise.
4346
4347 Revert:
4348 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
4349 (ia64*-*-linux*): Likewise.
4350 (mips64*-*-linux*): Likewise.
4351 (mips*-*-linux*): Likewise.
4352
daf633ba
DE
43532011-07-18 David Edelsohn <dje.gcc@gmail.com>
4354
4355 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
4356
4b4455e5
RG
43572011-07-18 Richard Guenther <rguenther@suse.de>
4358
4359 * gimplify.c (gimplify_expr): Use input_location, not saved_location
4360 when building new trees.
4361
e002c7cb
RG
43622011-07-18 Richard Guenther <rguenther@suse.de>
4363
4364 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
4365 expansion result to bitfield precision if required.
4366
e44dbbe1
RO
43672011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4368
4369 * config.gcc (i[3456x]86-*-netware*): Remove.
4370
4371 * gthr-nks.h: Remove.
4372 * configure.ac (enable_threads): Remove nks.
4373 * configure: Regenerate.
4374
4375 * config/i386/i386.c (ix86_encode_section_info): Remove netware
4376 reference.
4377 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
4378 <netware.h> reference.
4379
4380 * config/i386/netware-libgcc.c,
4381 gcc/config/i386/netware-libgcc.def,
4382 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
4383 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
4384 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
4385 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
4386
4387 * doc/extend.texi (Function Attributes,
4388 callee_pop_aggregate_return): Remove i?86-netware reference.
4389 * doc/install.texi (Configuration, --enable-threads): Remove nks.
4390
fd862017
JDA
43912011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4392
4393 PR target/49746
4394 Revert:
4395 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4396
4397 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
4398 patterns.
4399
1ff24749
EB
44002011-07-17 Eric Botcazou <ebotcazou@adacore.com>
4401
4402 PR middle-end/49732
4403 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
4404
a4a2c37d
MK
44052011-07-16 Matthias Klose <doko@ubuntu.com>
4406
4407 * doc/install.texi: Document --enable-static-libjava.
4408
ea6136a2
RH
44092011-07-15 Richard Henderson <rth@redhat.com>
4410
4411 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
4412 Replace all three arguments by returning a VEC of edges.
4413 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
4414 pointers and counts.
4415 (fix_edges_for_rarely_executed_code): Merge ...
4416 (rest_of_handle_partition_blocks): ... into...
4417 (partition_hot_cold_basic_blocks): ... here. Return todo items if
4418 any work was performed.
4419 (pass_partition_blocks): Clear todo_flags_finish.
4420
6545e33e
PC
44212011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
4422 Jakub Jelinek <jakub@redhat.com>
4423 Jonathan Wakely <jwakely.gcc@gmail.com>
4424
4425 PR libstdc++/49745
4426 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
4427 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
4428
6feeed06
JM
44292011-07-15 Jason Merrill <jason@redhat.com>
4430
4431 PR testsuite/49741
4432 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
4433 rather than --tool_opts.
4434
44762055
BS
44352011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
4436
4437 * doc/plugins.texi (Building GCC plugins): gengtype needs its
0fa71447 4438 corresponding gtype.state.
44762055 4439
1be0310c
JDA
44402011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4441
4442 PR target/49723
4443 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
4444
12c5ffe5
EB
44452011-07-15 Eric Botcazou <ebotcazou@adacore.com>
4446
4447 PR target/48220
4448 * doc/md.texi (Standard Names): Document window_save.
4449 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
4450 expand_debug_expr and expand_debug_source_expr. If the target has
4451 a window_save instruction, adjust the ENTRY_VALUE_EXP.
4452 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
4453 SSA_NAME_VAR is a parameter.
4454 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
4455 * var-tracking.c (parm_reg_t): New type and associated vector type.
4456 (windowed_parm_regs): New variable.
4457 (adjust_insn): If the target has a window_save instruction and this
4458 is the instruction, make its effect on parameter registers explicit.
4459 (next_non_note_insn_var_location): New function.
4460 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
4461 (vt_add_function_parameter): If the target has a window_save insn,
4462 adjust the incoming RTL and record that in windowed_parm_regs.
4463 (vt_finalize): Free windowed_parm_regs.
4464
bcead286
BS
44652011-07-15 Bernd Schmidt <bernds@codesourcery.com>
4466
4467 * doc/invoke.texi (C6X Options): New section.
4468 * doc/md.texi (TI C6X family): New section.
4469 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
4470 tic6x-*-uclinux.
4471 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
4472 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
4473 Provide C6X definitions.
4474 * config/c6x/c6x.md: New file.
4475 * config/c6x/constraints.md: New file.
4476 * config/c6x/predicates.md: New file.
4477 * config/c6x/c6x-sched.md.in: New file.
4478 * config/c6x/c6x-sched.md: New file.
4479 * config/c6x/gensched.sh: New file.
4480 * config/c6x/c6x-mult.md.in: New file.
4481 * config/c6x/genmult.sh: New file.
4482 * config/c6x/c6x-mult.md: New file.
4483 * config/c6x/sync.md: New file.
4484 * config/c6x/c6x-protos.h: New file.
4485 * config/c6x/sfp-machine.h: New file.
4486 * config/c6x/c6x.c: New file.
4487 * config/c6x/c6x.h: New file.
4488 * config/c6x/crti.s: New file.
4489 * config/c6x/crtn.s: New file.
4490 * config/c6x/lib1funcs.asm: New file.
4491 * config/c6x/c6x-modes.def: New file.
4492 * config/c6x/genopt.sh: New file.
4493 * config/c6x/c6x.opt: New file.
4494 * config/c6x/c6x-tables.opt: New file.
4495 * config/c6x/c6x-opts.h: New file.
4496 * config/c6x/c6x-isas.def: New file.
4497 * config/c6x/elf.h: New file.
4498 * config/c6x/elf-common.h: New file.
4499 * config/c6x/uclinux-elf.h: New file.
4500 * config/c6x/t-c6x: New file.
4501 * config/c6x/t-c6x-elf: New file.
4502 * config/c6x/t-c6x-uclinux: New file.
4503 * config/c6x/t-c6x-softfp: New file.
4504 * config/c6x/gtd.c: New file.
4505 * config/c6x/gtf.c: New file.
4506 * config/c6x/ltd.c: New file.
4507 * config/c6x/ltf.c: New file.
4508 * config/c6x/ged.c: New file.
4509 * config/c6x/gef.c: New file.
4510 * config/c6x/led.c: New file.
4511 * config/c6x/lef.c: New file.
4512 * config/c6x/eqd.c: New file.
4513 * config/c6x/eqf.c: New file.
4514 * config/c6x/libgcc-c6xeabi.ver: New file.
4515
aef0e7a8
BS
4516 Revert
4517 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
4518 PR rtl-optimization/11320
4519 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
4520 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
4521 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
4522 current_sched_info->compute_jump_reg_dependencies. Record which
4523 registers are used and which registers are set by the jump.
4524 Clear deps->reg_conditional_sets after a barrier.
4525 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
4526 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
4527 (init_deps): Initialize reg_conditional_sets.
4528 (free_deps): Clear reg_conditional_sets.
4529 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
4530 Mark registers live on entry of the fallthrough block and conditionally
4531 set as set by the jump. Mark registers live on entry of non-fallthrough
4532 blocks as used by the jump.
4533 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
4534 Mark new parameters as unused.
4535
9bed2f0d
AP
45362011-07-14 Andrew Pinski <pinskia@gmail.com>
4537
4538 PR tree-opt/49309
4539 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
4540 Use fold_build2_loc instead of build2.
4541 Use the correct type for the new tree.
4542
1f88caaa
BS
45432011-07-14 Bernd Schmidt <bernds@codesourcery.com>
4544
4545 PR rtl-optimization/11320
4546 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
4547 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
4548
d772f97c 45492011-07-14 Georg-Johann Lay <avr@gjlay.de>
1f88caaa 4550
d772f97c
GJL
4551 PR target/49487
4552 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
4553 of REG.
4554 (*rotw<mode>): Use const_int_operand for operand2.
4555 Use match_scatch for operand3.
4556 (*rotb<mode>): Ditto
4557 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
4558
1a5d20a4
RG
45592011-07-14 Richard Guenther <rguenther@suse.de>
4560
4561 PR tree-optimization/49651
4562 * tree-ssa-structalias.c (get_constraint_for_1): Properly
4563 handle dereferences with subvariables.
4564
5fbcc0ed
RG
45652011-07-14 Richard Guenther <rguenther@suse.de>
4566
4567 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
4568 (fold_stmt_1): Do it here directly on gimple and as a first thing.
4569
fbf3fee2
RG
45702011-07-14 Richard Guenther <rguenther@suse.de>
4571
4572 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
4573 not bool_var when folding bool_var != 1 or bool_var == 0.
4574
b953c2b8
BS
45752011-07-14 Bernd Schmidt <bernds@codesourcery.com>
4576
4577 * haifa-sched.c (schedule_insns): Remove outdated comment.
4578 (schedule_block): When computing a known value for TODO_SPEC,
4579 just set it rather than using logical operations.
4580 (try_ready): Likewise. Use a local variable rather than a
4581 pointer to TODO_SPEC. Reorder an if statement to move the
4582 easy case to the then block.
4583 * sched-deps.c (dep_spec_p): New static function.
4584 (update_dep): Use it to decide whether to call
4585 change_spec_dep_to_hard.
4586 (get_back_and_forw_lists): Use it.
4587 (sd_resolve_dep): Likewise.
4588 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
4589 (haifa_note_mem_dep): Likewise.
4590 (check_dep): Likewise.
4591 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
4592 (sched_free_deps): Free in two passes.
4593
1f098f07
RS
45942011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
4595
4596 PR middle-end/49736
4597 * expr.c (all_zeros_p): Undo bogus part of last change.
4598
73059910
MK
45992011-07-14 Matthias Klose <doko@ubuntu.com>
4600
4601 * doc/extend.texi (optimize attribute): Fix typo.
4602
bd5d002e
RG
46032011-07-14 Richard Guenther <rguenther@suse.de>
4604
4605 * gimplify.c (gimplify_expr): Only do required conversions.
4606
eb1dcdff
GJL
46072011-07-14 Georg-Johann Lay <avr@gjlay.de>
4608
4609 PR target/43746
4610 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
4611 i.e. use default_elf_select_section.
4612 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
4613 (READONLY_DATA_SECTION_ASM_OP): Remove.
4614 (TARGET_ASM_NAMED_SECTION): Move from here...
4615 * config/avr/avr.c: ...to here.
03126412 4616 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
eb1dcdff
GJL
4617 (avr_asm_named_section): Make static.
4618
d31fb329
RO
46192011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4620
4621 PR bootstrap/49739
03126412
UB
4622 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
4623 and crtfastmath.o for Linux/x86.
d31fb329 4624
26965010
BS
46252011-07-14 Bernd Schmidt <bernds@codesourcery.com>
4626
4627 * haifa-sched.c: Include "hashtab.h"
4628 (sched_no_dce): New global variable.
4629 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
4630 SHADOW_P): New macros.
4631 (last_clock_var, cycle_issued_insns): Move declarations.
4632 (must_backtrack): New static variable.
4633 (struct delay_pair): New structure.
4634 (delay_htab, delay_htab_i2): New static variables.
4635 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
4636 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
4637 functions.
4638 (dep_cost_1): If delay pairs exist, try to look up the insns and
4639 use the correct pair delay if we find them.
4640 (rank-for_schedule): Tweak priority for insns that must be scheduled
4641 soon to avoid backtracking.
4642 (queue_insn): Detect conditions which force backtracking.
4643 (ready_add): Likewise.
4644 (struct sched_block_state): Add member shadows_only_p.
4645 (struct haifa_save_data): New structure.
4646 (backtrack_queue): New static variable.
4647 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
4648 unschedule_insns_until, restore_last_backtrack_point,
4649 free_topmost_backtrack_point, free_backtrack_queue,
4650 estimate_insn_tick, estimate_shadow_tick): New functions.
4651 (prune_ready_list): New arg shadows_only_p. All callers changed.
4652 If true, remove everything that isn't SHADOW_P. Look up delay
03126412 4653 pairs and estimate ticks to avoid scheduling the first insn too early.
26965010
BS
4654 (verify_shadows): New function.
4655 (schedule_block): Add machinery to enable backtracking.
4656 (sched_init): Take sched_no_dce into account when setting
4657 DF_LR_RUN_DCE.
4658 (free_delay_pairs): New function.
4659 (init_h_i_d): Initialize INSN_EXACT_TICK.
4660 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
4661 * sched-deps.c (sd_unresolve_dep): New function.
4662 * sched-int. (struct haifa_sched_info): New fields save_state
4663 and restore_state.
4664 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
4665 feeds_backtrack_insn and shadow_p.
4666 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
4667 (sched_no_dce): Declare variable.
4668 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
4669 sd_unresolve_dep): Declare functions.
4670 * modulo-sched.c (sms_sched_info): Clear the two new fields.
4671 * sched-rgn.c (rgn_const_sched_info): Likewise.
4672 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
4673 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
4674 (ebb_sched_info): Add them for the two new fields.
4675 (add_deps_for_risky_insns): Call add_delay_dependencies.
4676
1db75f6c
MM
46772011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
4678
4679 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
4680 Rename -mr11.
4681 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
4682 (rs6000_call_indirect_aix): Ditto.
4683 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
4684 (call_indirect_aix<ptrsize>_internal): Ditto.
4685 (call_indirect_aix<ptrsize>_nor11): Ditto.
4686 (call_indirect_aix<ptrsize>_internal2): Ditto.
4687 (call_value_indirect_aix<ptrsize>): Ditto.
4688 (call_value_indirect_aix<ptrsize>_internal): Ditto.
4689 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
4690 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
4691 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
4692
e2995714
JM
46932011-07-13 Jason Merrill <jason@redhat.com>
4694
4695 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
4696
4dfe3ad5
UW
46972011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4698
4699 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
4700 * config/spu/spu.md ("clrsb<mode>2"): New expander.
4701
dddc6762
TS
47022011-07-13 Thomas Schwinge <thomas@schwinge.name>
4703
4704 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
4705 * configure: Regenerate.
4706
b4d80e56
UW
47072011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4708
4709 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
4710 (asm_file_start): Remove.
4711 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
4712 free_bb_for_insn around code that modifies insns before
4713 restarting df analysis.
4714
9e34e53f
RO
47152011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4716
4717 PR target/49541
03126412 4718 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
9e34e53f
RO
4719 (LINK_SPEC): ... here.
4720
51564684
BS
47212011-07-13 Bernd Schmidt <bernds@codesourcery.com>
4722
4723 * haifa-sched.c (struct sched_block_state): New.
4724 (schedule_block): Move some local variables into such a structure.
4725
b3fe1584
RO
47262011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4727
4728 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
4729 * config/i386/t-crtpc: Remove.
4730 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
4731 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
4732 tmake_file.
4733 (x86_64-*-darwin*): Likewise.
4734 (i[34567]86-*-linux*): Likewise.
4735 (x86_64-*-linux*): Likewise.
4736
4737 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
4738 Handle -mpc32, -mpc64, -mpc80.
4739
35d8090d
RO
47402011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4741
4742 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
4743 * config/alpha/t-crtfm: Remove.
4744 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
4745 * config/i386/t-crtfm: Remove.
4746 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
4747 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
4748 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
4749 * config/sparc/t-crtfm: Remove.
4750
4751 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
4752 (alpha*-*-freebsd*): Likewise.
4753 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
4754 (x86_64-*-darwin*): Likewise.
4755 (i[34567]86-*-linux*): Likewise.
4756 (x86_64-*-linux*): Likewise.
4757 (x86_64-*-mingw*): Likewise.
4758 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
4759 (ia64*-*-freebsd*): Likewise.
4760 (ia64*-*-linux*): Likewise.
4761 (mips64*-*-linux*): Likewise.
4762 (mips*-*-linux*): Likewise.
4763 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
4764 (sparc64-*-linux*): Likewise.
4765 (sparc64-*-freebsd*): Likewise.
4766
e141542e
RO
47672011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4768
4769 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
4770 * config/darwin-crt3.c: Move to ../libgcc/config.
4771 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
4772 ($(T)crt3$(objext)): Remove.
4773 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
4774 ($(T)crt2$(objext)): Remove.
4775 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
4776 (powerpc64-*-darwin*): Likewise.
4777
72fbc381
L
47782011-07-13 H.J. Lu <hongjiu.lu@intel.com>
4779
03126412 4780 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
72fbc381
L
4781
4782 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
4783 (addsi_1_zext): This.
4784
727a65e6
BS
47852011-07-13 Bernd Schmidt <bernds@codesourcery.com>
4786
4787 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
4788 * doc/tm.texi: Regenerate.
73451ae7 4789 * target.def (mergeable_rodata_prefix): New defhookpod.
727a65e6
BS
4790 * varasm.c (mergeable_string_section, mergeable_constant_section):
4791 Use it. Allocate name with alloca.
4792
cb77b6cf
L
47932011-07-13 H.J. Lu <hongjiu.lu@intel.com>
4794
4795 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
4796
36fc3799
RS
47972011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
4798
4799 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
4800 overlap check.
4801
953d0c90
RS
48022011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
4803
4804 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
4805 (count_type_elements): Delete.
4806 (complete_ctor_at_level_p): Declare.
4807 * expr.c (flexible_array_member_p): New function, split out from...
4808 (count_type_elements): ...here. Make static. Replace allow_flexarr
4809 parameter with for_ctor_p. When for_ctor_p is true, return the
4810 number of elements that should appear in the top-level constructor,
4811 otherwise return an estimate of the number of scalars.
4812 (categorize_ctor_elements): Replace p_must_clear with p_complete.
4813 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
4814 (complete_ctor_at_level_p): New function, borrowing union logic
4815 from old categorize_ctor_elements_1.
4816 (mostly_zeros_p): Return true if the constructor is not complete.
4817 (all_zeros_p): Update call to categorize_ctor_elements.
4818 * gimplify.c (gimplify_init_constructor): Update call to
4819 categorize_ctor_elements. Don't call count_type_elements.
4820 Unconditionally prevent clearing for variable-sized types,
4821 otherwise rely on categorize_ctor_elements to detect
4822 incomplete initializers.
4823
9111c715
RG
48242011-07-13 Richard Guenther <rguenther@suse.de>
4825
4826 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
4827 the final type is integral.
4828
a19af9c4
BS
48292011-07-13 Bernd Schmidt <bernds@codesourcery.com>
4830
4831 * sched-int.h (struct _dep): Add member cost.
4832 (DEP_COST, UNKNOWN_DEP_COST): New macros.
4833 * sched-deps.c (init_dep_1): Initialize DEP_COST.
4834 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
4835 (sched_change_pattern): Reset it for dependent insns.
4836
2d1efe2d
RO
48372011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4838
4839 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
4840 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
4841 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
4842 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
4843 (CRT0_S, MCRT0_S): Remove.
4844 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
4845 Remove.
4846 (s-crt0): Remove.
4847 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
4848
e84a58ff
EB
48492011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4850
4851 * cse.c (insert_with_costs): Put semi-colon after empty loop body
4852 on the next line.
4853 * emit-rtl.c (push_to_sequence): Likewise.
4854 * haifa-sched.c (max_issue): Likewise.
4855 * matrix-reorg.c (add_allocation_site): Likewise.
4856 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4857 * reload.c (alternative_allows_const_pool_ref): Likewise.
4858 * sched-rgn.c (rgn_add_block): Likewise.
4859 (rgn_fix_recovery_cfg): Likewise.
4860 * tree.c (attribute_list_contained): Likewise.
4861
3a4ffde6
UB
48622011-07-12 Uros Bizjak <ubizjak@gmail.com>
4863
4864 * config/i386/i386.c: Tidy processor feature bitmasks.
4865 (m_P4_NOCONA): New.
4866
10b75750
AP
48672011-07-12 Andrew Pinski <pinskia@gmail.com>
4868
4869 PR rtl-opt/49474
4870 * cprop.c (find_implicit_sets): Correct the condition.
4871
4f42d714
RH
48722011-07-12 Richard Henderson <rth@redhat.com>
4873
4874 PR target/49713
4875 * dwarf2out.h (dwarf_frame_regnum): Remove.
4876 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
4877 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
4878 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
4879 (execute_dwarf2_frame): Initialize them.
4880 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
4881 users of the macros with the variables.
4882 (expand_builtin_dwarf_sp_column): Revert last change.
4883 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
4884 result of DWARF_FRAME_REGNUM into a local variable.
4885
3a5e4ad6
RH
48862011-07-12 Richard Henderson <rth@redhat.com>
4887
4888 PR target/49714
4889 * config/i386/i386.c (x86_output_mi_thunk): Use
4890 machopic_indirect_call_target instead of machopic_indirection_name
4891 directly.
4892
9e9bd455
LG
48932011-07-12 Laurent GUERBY <laurent@guerby.net>
4894 Eric Botcazou <ebotcazou@adacore.com>
4895
4896 * prefix.h: Wrap up in extern "C" block.
4897
4d652a18
HJ
48982011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
4899
4900 AMD bdver2 Enablement
4901 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
4902 (case ${target}): Add bdver2.
4903 * config/i386/driver-i386.c (host_detect_local_cpu): Let
4904 -march=native recognize bdver2 processors.
4905 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4906 bdver2 def_and_undef
4907 * config/i386/i386.c (struct processor_costs bdver2_cost): New
4908 bdver2 cost table.
4909 (m_BDVER2): New definition.
4910 (m_AMD_MULTIPLE): Includes m_BDVER2.
4911 (initial_ix86_tune_features): Add bdver2 tuning.
4912 (processor_target_table): Add bdver2 entry.
4913 (static const char *const cpu_names): Add bdver2 entry.
4914 (ix86_option_override_internal): Add bdver2 instruction sets.
4915 (ix86_issue_rate): Add bdver2.
4916 (ix86_adjust_cost): Add bdver2.
4917 (has_dispatch): Add bdver2.
4918 * config/i386/i386.h (TARGET_BDVER2): New definition.
4919 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
4920 (enum processor_type): Add PROCESSOR_BDVER2.
4921 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
4922 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
4923 description.
4924
5756d08c
RH
49252011-07-12 Richard Henderson <rth@redhat.com>
4926
4927 PR target/49714
4928 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
4929 destination address in memory on some paths.
4930
123148b5
BS
49312011-07-12 Bernd Schmidt <bernds@codesourcery.com>
4932
4933 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
4934 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
4935 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
4936 * function.c (locate_and_pad_parm): Take it into account.
4937 * target.def (function_arg_round_boundary): New hook.
4938 * targhooks.c (default_function_arg_round_boundary): New function.
4939 * targhooks.h (default_function_arg_round_boundary): Declare.
4940 * doc/tm.texi: Regenerate.
4941
b7a83ad8
RG
49422011-07-12 Richard Guenther <rguenther@suse.de>
4943
4944 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
4945 Do not perform no-op changes.
4946
12c4ecb1
RS
49472011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
4948
4949 * config/arm/predicates.md (neon_struct_operand): Make a normal
4950 predicate.
4951 (neon_struct_or_register_operand): New predicate.
4952 * config/arm/neon.md (movmisalign<mode>): Replace predicates
4953 with neon_struct_or_register_operand.
4954 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
4955 neon_struct_operand instead of memory_operand.
4956
ab079773
MJ
49572011-07-12 Martin Jambor <mjambor@suse.cz>
4958
4959 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
4960 * cgraph.c (cgraph_get_node_or_alias): Removed.
4961 (change_decl_assembler_name): Changed all calls to
4962 cgraph_get_node_or_alias to a call to cgraph_get_node.
4963 (cgraph_make_decl_local): Likewise.
4964 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
4965 * varasm.c (default_binds_local_p_1): Likewise.
4966 (decl_binds_to_current_def_p): Likewise.
4967
d5fed62d
JJ
49682011-07-12 Jakub Jelinek <jakub@redhat.com>
4969
4970 PR tree-optimization/49712
4971 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
4972
c0b6224a
BS
49732011-07-11 Bernd Schmidt <bernds@codesourcery.com>
4974
4975 * genautomata.c (add_arc): Return void. All callers changed.
4976 (make_automaton): Remove dead code.
4977
7263c6d7
RH
49782011-07-11 Richard Henderson <rth@redhat.com>
4979
4980 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
4981 (DW_FRAME_POINTER_REGNUM): New.
4982 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
4983 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
4984 (dwf_regno): New.
4985 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
4986 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
4987 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
4988 Use it.
4989 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
4990 * dwarf2out.h (dwarf_frame_regnum): New.
4991 (struct cfa_loc): Document the domain of the reg member.
4992
f9610d20
UB
49932011-07-11 Uros Bizjak <ubizjak@gmail.com>
4994
4995 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
4996 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
4997
96ae7458
JJ
49982011-07-11 Jakub Jelinek <jakub@redhat.com>
4999
5000 PR debug/49676
5001 * dwarf2out.c (int_shift_loc_descriptor): New function.
5002 (int_loc_descriptor): If shorter, emit i as
5003 (i >> shift), shift, DW_OP_shl for suitable shift value.
5004 Similarly, try to optimize large negative values using
5005 DW_OP_neg of a positive value if shorter.
5006 (size_of_int_shift_loc_descriptor): New function.
5007 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
5008 changes.
5009 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
5010 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
5011 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
5012 is shorter.
5013 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
5014 addend as added DW_OP_plus if it is shorter.
5015
feffaec4
RO
50162011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5017
5018 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
5019 (DTORS_SECTION_ASM_OP): Define.
5020
2d8d5935
RO
50212011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5022
5023 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
5024 * config/t-dfprules: Move to ../libgcc/config.
5025 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5026 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
5027 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
5028 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
5029 Likewise.
5030 (i[34567]86-*-cygwin*): Likewise.
5031 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5032 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
5033 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
5034 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
5035 D64PBIT_FUNCS, D128PBIT_FUNCS.
5036
dcc95c20
RG
50372011-07-11 Richard Guenther <rguenther@suse.de>
5038
5039 * tree-vrp.c (simplify_conversion_using_ranges): Manually
5040 translate the source value-range through the conversion chain.
5041
28164eed
RS
50422011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
5043
5044 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
5045
f3054223
AL
50462011-07-11 Arthur Loiret <aloiret@debian.org>
5047
5048 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
5049 a bi-arch compiler defaulting to 31-bit. In this case:
5050 (tmake_file): Add s390/t-linux64.
5051 * doc/install.texi: Add s390-linux to the list of targets supporting
5052 --enable-targets=all.
5053
bd5ab709
AL
50542011-07-11 Arthur Loiret <aloiret@debian.org>
5055 Matthias Klose <doko@debian.org>
5056
5057 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
5058 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
5059 (tm_file): Add mips/linux64.h.
5060 (tmake_file): Add mips/t-linux64.
5061 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
5062 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
5063 instead of hardcoded mabi=n32.
5064 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
5065 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
5066 convention.
5067
d3b7e946
AK
50682011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5069
5070 * passes.c (init_optimization_passes): Add invariant motion pass
5071 after induction variable optimization.
5072
7e4ec472 50732011-07-11 Georg-Johann Lay <avr@gjlay.de>
f9610d20 5074
7e4ec472
GJL
5075 PR target/39633
5076 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
5077 offsets 1..5 set cc0 in a usable way.
5078
0e65e631
RG
50792011-07-11 Romain Geissler <romain.geissler@gmail.com>
5080
5081 * tree.h (call_expr_arg): Remove.
5082 (call_expr_argp): Likewise.
5083
18970372
EB
50842011-07-11 Eric Botcazou <ebotcazou@adacore.com>
5085
5086 * config/sparc/sparc.md (save_register_window_1): Rename to...
5087 (window_save): ...this.
5088 * config/sparc/sparc.c (emit_save_register_window): Rename to...
5089 (emit_window_save): ...this.
5090 (sparc_expand_prologue): Adjust to above renaming.
5091
9e419e38
L
50922011-07-10 H.J. Lu <hongjiu.lu@intel.com>
5093
5094 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
5095 of movabs for x32.
5096
3db72de3
RH
50972011-07-10 Richard Henderson <rth@redhat.com>
5098
5099 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
5100 run final, instead of emitting text directly.
5101
a1f91bca
L
51022011-07-10 H.J. Lu <hongjiu.lu@intel.com>
5103
5104 * config/i386/i386.c (ix86_option_override_internal): Turn on
5105 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
5106 small PIC models for TARGET_X32.
5107
a50023f9
HPN
51082011-07-10 Hans-Peter Nilsson <hp@axis.com>
5109
9a0b29f0
HPN
5110 PR target/49684
5111 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
5112 $(LIBGCC2_CFLAGS).
5113
a50023f9
HPN
5114 PR bootstrap/49680
5115 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
5116 stray notes and debug insns by using prev_nonnote_nondebug_insn
5117 instead of PREV_INSN.
5118
948d330e
RH
51192011-07-09 Richard Henderson <rth@redhat.com>
5120
5121 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
5122 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
5123 * dwarf2out.c: ... here.
5124 (output_all_cfis): Remove.
5125 (dwarf2out_switch_text_section): Use output_cfis directly.
5126 (size_of_locs): Export.
5127 (output_loc_sequence, output_loc_sequence_raw): Export.
5128 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
5129 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
5130 output_cfa_loc_raw): Move to ...
5131 * dwarfcfi.c: ... here.
5132 * dwarf2out.h: Update decls.
5133
db42e39d
RH
51342011-07-09 Richard Henderson <rth@redhat.com>
5135
5136 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
5137 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
5138 * dwarf2cfi.c: ... here.
5139 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
5140 (DWARF_ROUND, DWARF_CIE_ID): Remove.
5141 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
5142 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
5143 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
5144
a8e5c0e7
RH
51452011-07-09 Richard Henderson <rth@redhat.com>
5146
5147 * dwarf2cfi.c (cie_return_save): New.
5148 (queue_reg_save): Use compare_reg_or_pc.
5149 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
5150 (dwarf2out_frame_debug_expr): Likewise.
5151 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
5152 (initial_return_save): Likewise.
5153 (execute_dwarf2_frame): Save and restore initial return save from
5154 the cie to the fde.
5155 * config/mips/mips.c (mips_frame_set): Remove special case for
5156 DWARF_FRAME_RETURN_COLUMN.
5157
4a8ee122
RH
51582011-07-09 Richard Henderson <rth@redhat.com>
5159
5160 * dwarf2cfi.c (lookup_cfa): Remove.
5161 (execute_dwarf2_frame): Assert queues are empty on entry.
5162 Setup initial cfa directly, not via lookup_cfa.
5163 Don't clear args_size state here.
5164
3edb53aa
RH
51652011-07-09 Richard Henderson <rth@redhat.com>
5166
5167 * dwarf2cfi.c (add_cfi_vec): New.
5168 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
5169 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
5170 (execute_dwarf2_frame): Set add_cfi_vec.
5171
ded49a7f
RH
51722011-07-09 Richard Henderson <rth@redhat.com>
5173
5174 * defaults.h (ASM_COMMENT_START): Move here...
5175 * dwarf2asm.c: ... from here.
5176 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
5177 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
5178 * varasm.c: Likewise.
5179
45fba6d1
RH
51802011-07-09 Richard Henderson <rth@redhat.com>
5181
5182 PR debug/49686
5183 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
5184 (create_cfi_notes): ... do it here instead.
5185
5b696ba2
JJ
51862011-07-09 Jakub Jelinek <jakub@redhat.com>
5187
5188 PR debug/49676
5189 * dwarf2out.c (size_of_int_loc_descriptor): New function.
5190 (address_of_int_loc_descriptor): Use it.
f9610d20 5191 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
5b696ba2 5192
8662b2ba
RH
51932011-07-09 Richard Henderson <rth@redhat.com>
5194
5195 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
5196 (prologue, epilogue): New.
5197 (return, *rts): New.
5198 (blockage, setd, seti): New.
5199 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
5200 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
5201 (pdp11_saved_regno): New.
5202 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
5203 generate rtl instead of text.
5204 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
5205 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
5206 * config/pdp11/pdp11-protos.h: Update.
5207
28b21ebb
RH
52082011-07-09 Richard Henderson <rth@redhat.com>
5209
5210 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
5211 try to insert an rtl prologue here.
5212 (rs6000_output_function_epilogue): Similarly.
5213 * config/rs6000/rs6000.md (prologue): Emit a barrier to
5214 satisfy !TARGET_SCHED_PROLOG.
5215 (epilogue, sibcall_epilogue): Likewise.
5216
0a222ba7
EB
52172011-07-09 Eric Botcazou <ebotcazou@adacore.com>
5218
5219 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
5220 (FP_REG_P): Delete.
5221 (IN_OR_GLOBAL_P): Likewise.
5222
2fda8e14
JM
52232011-07-08 Jason Merrill <jason@redhat.com>
5224
4063e61b
JM
5225 PR c++/45437
5226 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
5227 compound assignment.
5228
2fda8e14
JM
5229 * cgraph.c (cgraph_add_to_same_comdat_group): New.
5230 * cgraph.h: Declare it.
5231 * ipa.c (function_and_variable_visibility): Make sure thunks
5232 have the right visibility.
5233
830f11fe
RH
52342011-07-08 Richard Henderson <rth@redhat.com>
5235
5236 PR bootstrap/49680
5237 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
5238 any tablejump vector.
5239
965b2557
RH
5240 PR bootstrap/49680
5241 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
5242 end of the prologue.
5243
70db9095
JJ
52442011-07-08 Jakub Jelinek <jakub@redhat.com>
5245
5246 PR target/49621
5247 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
f9610d20 5248 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
70db9095
JJ
5249 * config/rs6000/vector.md (vector_select_<mode>,
5250 vector_select_<mode>_uns): Change second operand of NE to
5251 CONST0_RTX (<MODE>mode) instead of const0_rtx.
5252 * config/rs6000/altivec.md (*altivec_vsel<mode>,
5253 *altivec_vsel<mode>_uns): Expect second operand of NE to be
5254 zero_constant of the corresponding vector mode.
5255 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
5256 Likewise.
5257
e92c5020
SP
52582011-07-08 Sebastian Pop <sebastian.pop@amd.com>
5259
5260 * graphite-dependences.c (build_alias_set_powerset): Remove
5261 continue from loop, add one more assert.
5262
3e4f8484 52632011-07-08 Georg-Johann Lay <avr@gjlay.de>
f9610d20 5264
3e4f8484
GJL
5265 PR target/46779
5266 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
5267 In particular, allow 8-bit values in r28 and r29.
5268 (avr_hard_regno_scratch_ok): Disallow any register that might be
5269 part of the frame pointer.
5270 (avr_hard_regno_rename_ok): Same.
5271 (avr_legitimate_address_p): Don't allow SUBREGs.
5272
0094f21b
JB
52732011-07-08 Julian Brown <julian@codesourcery.com>
5274
5275 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
5276 big-endian mode.
5277 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
5278 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
5279 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
5280 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
5281 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
5282 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
5283 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
5284 registers in big-endian mode.
5285
9ae60101
BS
52862011-07-08 Bernd Schmidt <bernds@codesourcery.com>
5287
5288 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
5289 in terms of another.
5290 (write_attr_value): Write a cast if necessary.
5291
c0a6a1ef
BS
5292 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
5293 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
5294 (REG_WORDS_BIG_ENDIAN): Document.
5295 * doc/tm.texi: Regenerate.
5296 * reload.c (operands_match_p): Take it into account.
5297 (reload_adjust_reg_for_mode): Likewise.
5298 * rtlanal.c (subreg_get_info): Likewise.
5299
b862187a
RG
53002011-07-08 Richard Guenther <rguenther@suse.de>
5301
5302 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
5303 folding.
5304
e8e8c74b
KT
53052011-07-08 Kai Tietz <ktietz@redhat.com>
5306
5307 * fold-const.c (fold_truth_andor): Factored out truth_andor
5308 label from fold_binary as function.
5309 (fold_binary_loc): Replace truth_andor lable
5310 by function fold_truth_andor.
5311
6c3cb698
KY
53122011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
5313
5314 PR middle-end/49519
5315 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
5316 check if address is stored in register. If so - give up.
5317 (check_sibcall_argument_overlap_1): Do not perform check of
5318 overlapping when it is call to address.
5319
7d8d6d73 53202011-07-08 Georg-Johann Lay <avr@gjlay.de>
9ae60101 5321
7d8d6d73
GJL
5322 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
5323 of magic '31'.
5324
69660a70
BS
53252011-07-08 Bernd Schmidt <bernds@codesourcery.com>
5326
5327 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
5328 GET_MODE_BITSIZE where appropriate.
5329 (widen_leading, expand_parity, expand_ctz, expand_ffs,
5330 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
5331 expand_float, expand_fix): Likewise.
5332 * expr.c (convert_move, convert_modes, expand_expr_real_2,
5333 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
5334 * stor-layout.c (get_mode_bounds): Likewise.
5335 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
5336 Likewise.
5337 * convert.c (convert_to_integer): Likewise.
5338 * expmed.c (expand_shift_1): Likewise.
5339
86cdf393
BS
5340 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
5341 a bitsize.
5342
0d44736e
BS
5343 * optabs.c (expand_binop): Tighten conditions for doubleword
5344 expansions.
f9610d20 5345 (widen_bswap): Assert that mode bitsize and precision are the same.
0d44736e
BS
5346 * stor-layout.c (get_best_mode): Skip modes that have lower
5347 precision than bitsize.
5348 * recog.c (simplify_while_replacing): Assert that bitsize and
5349 precision are the same.
5350
2c50b2c3
RO
53512011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5352
5353 * Makefile.in (LIBGCOV): Remove.
5354 (libgcc.mvars): Remove LIBGCOV.
5355 * libgov.c: Move to ../libgcc.
5356
a039d7c2
RO
53572011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5358
5359 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
5360
e923ef41
MJ
53612011-07-08 Martin Jambor <mjambor@suse.cz>
5362
5363 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
5364 is too big for total scalarization.
5365
b709e189
RH
53662011-07-07 Richard Henderson <rth@redhat.com>
5367
5368 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
5369 (DBX_DEBUGGING_INFO): Undef.
5370
2867fa7c
RH
53712011-07-07 Richard Henderson <rth@redhat.com>
5372
5373 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
5374 Handle some opcodes specially for debugging.
5375 * print-rtl.c: Include dwarf2out.h
5376 (print_rtx): Handle NOTE_INSN_CFI.
5377 * Makefile.in (print-rtl.o): Update.
5378
7644b3c7
RH
53792011-07-07 Richard Henderson <rth@redhat.com>
5380
5381 * tree-pass.h (pass_dwarf2_frame): Declare.
5382 * passes.c (init_optimization_passes): Add it.
5383 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
5384 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
5385 make static, do not call add_cfis_to_fde.
5386 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
5387 dwarf2out_frame_init): Merge into...
5388 (execute_dwarf2_frame): ... here. New function.
5389 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
5390 saved_do_cfi_asm to a tri-state variable.
5391 (gate_dwarf2_frame, pass_dwarf2_frame): New.
5392 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
5393 if it has yet to be done. Don't call dwarf2cfi_function_init.
5394 * dwarf2out.h, debug.h: Update decls.
5395 * final.c (final_start_function): Don't call
5396 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
5397 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
5398 * toplev.c (lang_dependent_init): Likewise.
5399
a518b996
RH
54002011-07-07 Richard Henderson <rth@redhat.com>
5401
5402 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
5403 FDE_TABLE_INCREMENT): Replace with...
5404 (fde_vec): ... this, a new vector.
5405 (current_fde): Remove. Replace all users with cfun->fde.
5406 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
5407 (size_of_aranges, dwarf2out_finish): Likewise.
5408 (dwarf2out_alloc_current_fde): Break out from ...
5409 (dwarf2out_begin_prologue): ... here.
5410 (dwarf2out_frame_init): Remove.
5411 * dwarf2cfi.c: Update all users of current_fde.
5412 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
5413 * dwarf2out.h: Update decls.
5414 (dw_fde_node): Add fde_index member.
5415 * function.h (struct function): Add fde member.
5416
89e25f95
BS
54172011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5418 Richard Henderson <rth@redhat.com>
5419
5420 * dwarf2cfi.c (add_cfi): Remove.
5421 (dwarf2out_cfi_label): Remove force argument. Only generate the
5422 label name.
5423 (add_fde_cfi): Simplify the different code paths.
5424 (add_cie_cfi): New.
5425 (old_cfa, old_cfa_remember): New.
5426 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
5427 (last_reg_save_label): Remove.
5428 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
5429 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
5430 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
5431 dwarf2out_frame_debug_cfa_expression,
5432 dwarf2out_frame_debug_cfa_restore,
5433 dwarf2out_frame_debug_cfa_window_save,
5434 dwarf2out_frame_debug_expr): Remove label parameter.
5435 (cfi_label_required_p, add_cfis_to_fde): New.
5436 (dwarf2out_frame_debug_after_prologue): New.
5437 (dwarf2cfi_frame_init): Initialize old_cfa.
5438 (dwarf2out_frame_debug_restore_state): Likewise.
5439 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
5440 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
5441 * final.c (final_start_function): Call
5442 dwarf2out_frame_debug_after_prologue.
5443
bc5612ed
BS
54442011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5445 Richard Henderson <rth@redhat.com>
5446
5447 * dwarf2cfi.c (cfi_insn): New.
5448 (dwarf2out_cfi_label): Don't emit cfi label here.
5449 (add_fde_cfi): Create a NOTE_INSN_CFI.
5450 (dwarf2out_frame_debug): Setup cfi_insn.
5451 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
5452 (dwarf2out_cfi_begin_epilogue): Make static.
5453 (dwarf2out_frame_debug_restore_state): Make static.
5454 * dwarf2out.c (output_cfi_directive): Make static.
5455 (dwarf2out_emit_cfi): New.
5456 * dwarf2out.h: Update.
5457 * final.c (final): Remove CFI notes.
5458 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
5459 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
5460 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
5461 * insn-notes.def (NOTE_INSN_CFI): New.
5462 (NOTE_INSN_CFI_LABEL): New.
5463 * rtl.h (union rtunion_def): Add rt_cfi member.
5464 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
5465
647a1567
RH
54662011-07-07 Richard Henderson <rth@redhat.com>
5467
5468 * dwarf2cfi.c: New file.
5469 * Makefile.in (OBJS): Add it.
5470 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
5471 * gengtype.c (open_base_files): Include dwarf2out.h.
5472 * coretypes.h (enum var_init_status): Move from ...
5473 * rtl.h: ... here.
5474 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
5475 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
5476 expand_builtin_dwarf_sp_column, init_return_column_size,
5477 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
5478 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
5479 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
5480 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
5481 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
5482 compute_barrier_args_size, dwarf2out_args_size,
5483 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
5484 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
5485 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
5486 queue_reg_save, dwarf2out_flush_queued_reg_saves,
5487 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
5488 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
5489 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
5490 dwarf2out_frame_debug_cfa_expression,
5491 dwarf2out_frame_debug_cfa_restore,
5492 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
5493 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
5494 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
5495 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
5496 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
5497 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
5498 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
5499 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
5500 dw_loc_descr_node): Move to dwarf2out.h.
5501 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
5502 mem_loc_descriptor): Export.
5503 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
5504 (dwarf2out_frame_init): Extract CIE generation code to
5505 dwarf2cfi_frame_init.
5506
b286d9ed
EB
55072011-07-07 Eric Botcazou <ebotcazou@adacore.com>
5508
5509 PR target/49660
5510 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
5511 MASK_V8PLUS, remove commented out flag and reorder.
5512
c4603e7c
JJ
55132011-07-07 Jakub Jelinek <jakub@redhat.com>
5514
5515 PR c/49644
5516 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
5517 one non-complex and one complex argument, call c_save_expr on both
5518 operands.
5519
81361831
MJ
55202011-07-07 Martin Jambor <mjambor@suse.cz>
5521
5522 PR middle-end/49495
5523 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
5524 (verify_cgraph_node): Some functinality moved to
5525 verify_edge_corresponds_to_fndecl, call it.
5526
1e4b2746
JM
55272011-07-07 Joseph Myers <joseph@codesourcery.com>
5528
5529 * config.gcc (*local*): Remove.
5530 * doc/install-old.texi: Don't mention local configurations.
5531
d7ff1e11
JJ
55322011-07-07 Jakub Jelinek <jakub@redhat.com>
5533
5534 PR debug/49522
5535 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
5536 referencing debug insns that have been reset.
5537 (dead_debug_insert_before): Don't assert reg is non-NULL,
5538 instead return immediately if it is NULL.
5539
2492731a
JM
55402011-07-07 Joseph Myers <joseph@codesourcery.com>
5541
f9610d20 5542 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
2492731a 5543
9d9c740d
BS
55442011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5545
5546 * hw-doloop.c: New file.
5547 * hw-doloop.h: New file.
5548 * Makefile.in (OBJS): Add hw-doloop.o.
5549 (hw-doloop.o): New rule.
5550 ($(obj_out_file)): Add hw-doloop.h dependency.
5551 * config/bfin/bfin.c: Include "hw-doloop.h".
5552 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
5553 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
5554 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
5555 type changed to hwloop_info. Return bool, true if the loop was
5556 successfully optimized. Remove code that was moved to
5557 hw-doloop.c, and adjust other parts.
5558 (hwloop_fail): New static function, containing parts that used
5559 to be in bfin_optimize_loop.
5560 (bfin_discover_loop, bfin_discover_loops, free_loops,
5561 bfin_reorder_loops): Remove.
5562 (hwloop_pattern_reg): New static function.
5563 (bfin_doloop_hooks): New variable.
5564 (bfin_reorg_loops): Remove most code, call reorg_loops.
5565 * config/bfin/bfin.md (doloop_end splitter): Also enable if
5566 loop counter is a memory_operand.
5567
f0ea7581
L
55682011-07-07 H.J. Lu <hongjiu.lu@intel.com>
5569
f9610d20 5570 * config.gcc: Support --with-multilib-list for x86 Linux targets.
f0ea7581
L
5571
5572 * configure.ac: Mention x86-64 for --with-multilib-list.
5573 * configure: Regenerated.
5574
5575 * config/i386/gnu-user64.h (SPEC_64): Support x32.
5576 (SPEC_32): Likewise.
5577 (ASM_SPEC): Likewise.
5578 (LINK_SPEC): Likewise.
5579 (TARGET_THREAD_SSP_OFFSET): Likewise.
5580 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
5581 (SPEC_X32): New.
5582
5583 * config/i386/i386.h (TARGET_X32): New.
5584 (TARGET_LP64): New.
5585 (LONG_TYPE_SIZE): Likewise.
5586 (POINTER_SIZE): Likewise.
5587 (POINTERS_EXTEND_UNSIGNED): Likewise.
5588 (OPT_ARCH64): Support x32.
5589 (OPT_ARCH32): Likewise.
5590
5591 * config/i386/i386.opt (mx32): New.
5592
5593 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
5594 (GLIBC_DYNAMIC_LINKERX32): Likewise.
5595 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
5596 (GLIBC_DYNAMIC_LINKERX32): Likewise.
5597
5598 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
5599 (BIONIC_DYNAMIC_LINKERX32): Likewise.
5600 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
5601
5602 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
5603
f9610d20 5604 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
f0ea7581
L
5605
5606 * doc/invoke.texi: Document -mx32.
5607
38460025
RS
56082011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
5609
5610 * doc/invoke.texi (mwords-little-endian): Deprecate.
5611 * config/arm/arm.opt (mwords-little-endian): Likewise.
5612 * config/arm/arm.c (arm_option_override): Warn about the deprecation
5613 of -mwords-little-endian.
5614
3f125532
RS
56152011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
5616
5617 * reload1.c (choose_reload_regs): Use mode sizes to check whether
5618 an old reload register completely defines the required value.
5619
bbc210ab
RG
56202011-07-07 Richard Guenther <rguenther@suse.de>
5621
5622 * fold-const.c (fold_unary_loc): Do not strip sign-changes
5623 for NEGATE_EXPR.
5624
29c5134a
RG
56252011-07-07 Richard Guenther <rguenther@suse.de>
5626
5627 * tree-vrp.c (simplify_conversion_using_ranges): New function.
5628 (simplify_stmt_using_ranges): Call it.
5629
0816a42a
KT
56302011-07-07 Kai Tietz <ktietz@redhat.com>
5631
5632 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
5633 (lookup_logical_inverted_value): Likewise.
5634 (simplify_bitwise_binary_1): Likewise.
5635 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
5636
3ce9f090
JM
56372011-07-07 Joseph Myers <joseph@codesourcery.com>
5638
5639 * gcc.c (%[Spec]): Don't document.
5640 (struct spec_list): Update comment.
5641 (do_spec_1): Don't handle %[Spec].
5642 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
5643
41dfca87
JM
56442011-07-07 Joseph Myers <joseph@codesourcery.com>
5645
5646 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
5647 default based on TARGET_ASM_NAMED_SECTION.
5648 * common/common-target.def (have_named_sections): Default to true.
5649 * common/config/default-common.c: Don't include tm.h.
5650 * common/config/picochip/picochip-common.c
5651 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
5652 * common/config/m32c/m32c-common.c: Remove.
5653 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
f9610d20
UB
5654 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5655 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5656 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 5657 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
f9610d20
UB
5658 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5659 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
41dfca87 5660
19c44640
JJ
56612011-07-07 Jakub Jelinek <jakub@redhat.com>
5662
5663 PR middle-end/49640
f9610d20
UB
5664 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
5665 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
19c44640 5666
891a2e42
RO
56672011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5668
5669 PR libmudflap/49550
5670 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
5671
fbdd5d87
RO
56722011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5673
5674 PR target/39150
5675 * configure.ac (gcc_cv_as_hidden): Also accept
5676 x86_64-*-solaris2.1[0-9]*.
5677 (gcc_cv_as_cfi_directive): Likewise.
5678 (gcc_cv_as_comdat_group_group): Likewise.
5679 (set_have_as_tls): Likewise.
5680 * configure: Regenerate.
5681 * config.gcc (i[34567]86-*-solaris2*): Also handle
5682 x86_64-*-solaris2.1[0-9]*.
5683 * config.host (i[34567]86-*-solaris2*): Likewise.
5684 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
5685 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
5686 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
5687 (TARGET_LD_EMULATION): Use it.
5688 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
5689 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
5690 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
5691 (ASM_CPU64_DEFAULT_SPEC): Define.
5692 (ASM_CPU_SPEC): Use %(asm_cpu_default).
5693 (ASM_SPEC): Redefine.
5694 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
5695 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
f9610d20 5696 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
fbdd5d87
RO
5697 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
5698 configuration.
5699 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
5700
fcf7471a
RO
57012011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5702
5703 * config/sol2.h (ASM_SPEC): Split into ...
5704 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
5705 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
5706 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
5707 (ASM_SPEC): Use ASM_SPEC_BASE.
5708 * config/sparc/sol2.h (ASM_SPEC): Redefine.
5709
1e6a67d1 57102011-07-07 Georg-Johann Lay <avr@gjlay.de>
f9610d20 5711
1e6a67d1
GJL
5712 * config/avr/avr.md (*reload_insi): Change predicate #1 to
5713 const_int_operand. Ditto for peep2 producing this insn.
5714 Add argument to output_reload_insisf call.
5715 (*movsi,*movsf): Add argument to output_movsisf call.
5716 (*reload_insf): New insn and new peep2 to produce it.
5717 * config/avr/avr-protos.h (output_movsisf): Change prototype.
5718 (output_reload_insisf): Change prototype.
5719 * config/avr/avr.c (avr_asm_len): New function.
5720 (output_reload_insisf): Rewrite.
5721 (output_movsisf): Change prototype. output_reload_insisf for
5722 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
5723 (adjust_insn_length): Add argument to output_movsisf and
5724 output_reload_insisf call.
5725
6a4bdc79
BS
57262011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5727
5728 * emit-rtl.c (paradoxical_subreg_p): New function.
5729 * rtl.h (paradoxical_subreg_p): Declare.
5730 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
5731 apply_distributive_law, simplify_comparison, simplify_set): Use it.
5732 * cse.c (record_jump_cond, cse_insn): Likewise.
5733 * expr.c (force_operand): Likewise.
5734 * rtlanal.c (num_sign_bit_copies1): Likewise.
5735 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
5736 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
5737 (push_reload): Use precision to check for paradoxical subregs.
5738 * expmed.c (extract_bit_field_1): Likewise.
5739
46c9550f
BS
5740 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
5741 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
5742 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
5743 simplify_set, simplify_logical, expand_compound_operation,
5744 make_extraction, force_to_mode, if_then_else_cond, extended_count,
5745 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
5746 record_value_for_reg): Likewise.
5747 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
5748 * simplify-rtx. c (simplify_unary_operation_1,
5749 simplify_binary_operation_1, simplify_const_relational_operation):
5750 Likewise.
5751
5511bc5a
BS
5752 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
5753 instead of GET_MODE_BITSIZE where appropriate.
5754 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
5755 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
5756 init_num_sign_bit_copies_in_rep): Likewise.
5757 * cse.c (fold_rtx, cse_insn): Likewise.
5758 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
5759 * simplify-rtx.c (simplify_unary_operation_1,
5760 simplify_const_unary_operation, simplify_binary_operation_1,
5761 simplify_const_binary_operation, simplify_ternary_operation,
5762 simplify_const_relational_operation, simplify_subreg): Likewise.
5763 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
5764 simplify_if_then_else, simplify_set, expand_compound_operation,
5765 expand_field_assignment, make_extraction, if_then_else_cond,
5766 make_compound_operation, force_to_mode, make_field_assignment,
5767 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
5768 extended_count, try_widen_shift_mode, simplify_shift_const_1,
5769 simplify_comparison, record_promoted_value, simplify_compare_const,
5770 record_dead_and_set_regs_1): Likewise.
5771
d58c1a38
BS
5772 Revert:
5773 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
5774 shift_truncation_mask hook instead of performing modulo by width.
5775 Compare against mode precision, not bitsize.
d58c1a38 5776 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 5777 Use shift_truncation_mask instead of constructing the value manually.
d58c1a38 5778
76594d53
MM
57792011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5780
5781 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
5782 declaration.
5783 (rs6000_save_toc_in_prologue_p): Ditto.
5784
5785 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
5786 up the static chain (r11) during indirect function calls.
5787 (-msave-toc-indirect): New undocumented debug switch.
5788
5789 * config/rs6000/rs6000.c (struct machine_function): Add
5790 save_toc_in_prologue field to note whether the prologue needs to
5791 save the TOC value in the reserved stack location.
5792 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
5793 to save the TOC in the prologue, do so.
5794 (rs6000_trampoline_init): Don't allow creating AIX style
5795 trampolines if -mno-r11 is in effect.
5796 (rs6000_call_indirect_aix): New function to create AIX style
5797 indirect calls, adding support for -mno-r11 to suppress loading
5798 the static chain, and saving the TOC in the prologue instead of
5799 the call body.
5800 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
5801 TOC in the prologue.
5802
5803 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
5804 register numbers.
5805 (TOC_REGNUM): Ditto.
5806 (STATIC_CHAIN_REGNUM): Ditto.
5807 (ARG_POINTER_REGNUM): Ditto.
5808 (SFP_REGNO): Delete, unused.
5809 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
5810 function descriptor offsets.
5811 (TOC_SAVE_OFFSET_64BIT): Ditto.
5812 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
5813 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
5814 (AIX_FUNC_DESC_SC_32BIT): Ditto.
5815 (AIX_FUNC_DESC_SC_64BIT): Ditto.
f9610d20
UB
5816 (ptrload): New mode attribute for the appropriate load of a pointer.
5817 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
76594d53
MM
5818 (call_indirect_aix64): Ditto.
5819 (call_value_indirect_aix32): Ditto.
5820 (call_value_indirect_aix64): Ditto.
5821 (call_indirect_nonlocal_aix32_internal): Ditto.
5822 (call_indirect_nonlocal_aix32): Ditto.
5823 (call_indirect_nonlocal_aix64_internal): Ditto.
5824 (call_indirect_nonlocal_aix64): Ditto.
5825 (call): Rewrite AIX indirect function calls. Add support for
5826 eliminating the static chain, and for moving the save of the TOC
5827 to the function prologue.
5828 (call_value): Ditto.
5829 (call_indirect_aix<ptrsize>): Ditto.
5830 (call_indirect_aix<ptrsize>_internal): Ditto.
5831 (call_indirect_aix<ptrsize>_internal2): Ditto.
5832 (call_indirect_aix<ptrsize>_nor11): Ditto.
5833 (call_value_indirect_aix<ptrsize>): Ditto.
5834 (call_value_indirect_aix<ptrsize>_internal): Ditto.
5835 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
5836 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
5837 (call_nonlocal_aix32): Relocate in the rs6000.md file.
5838 (call_nonlocal_aix64): Ditto.
5839
5840 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
5841 -mno-r11 documentation.
5842
49d6830d
JW
58432011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5844
5845 PR other/49658
5846 * doc/extend.texi (Compound Literals): Fix typo.
5847
c884924f
JG
58482011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
5849
f9610d20 5850 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
c884924f 5851
bf588455
BS
58522011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
5853
5854 * configure.ac (plugin-version.h): Generate
5855 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
5856 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
5857 macros.
5858
5859 * configure: Regenerate.
5860
5861 * doc/plugins.texi (Building GCC plugins): Mention
5862 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
5863
d0edd768
BS
58642011-07-06 Bernd Schmidt <bernds@codesourcery.com>
5865
5866 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
5867 * combine.c (make_extraction, gen_lowpart_or_truncate,
5868 apply_distributive_law, simplify_comparison,
5869 reg_truncated_to_mode, record_truncated_value): Use it.
5870 * cse.c (notreg_cost): Likewise.
5871 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
5872 * expr.c (convert_move, convert_modes): Likewise.
5873 * optabs.c (expand_binop, expand_unop): Likewise.
5874 * postreload.c (move2add_last_label): Likewise.
5875 * regmove.c (optimize_reg_copy_3): Likewise.
5876 * rtlhooks.c (gen_lowpart_general): Likewise.
5877 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5878
e5cabdfb
JM
58792011-07-06 Joseph Myers <joseph@codesourcery.com>
5880
5881 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
5882
2d0c270f
BS
58832011-07-06 Bernd Schmidt <bernds@codesourcery.com>
5884
5885 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
5886 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
5887 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
5888 (simplify_const_unary_operation, simplify_binary_operation_1,
f9610d20
UB
5889 simplify_const_binary_operation, simplify_const_relational_operation):
5890 Use them. Use GET_MODE_MASK for masking and sign-extensions.
2d0c270f
BS
5891 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
5892 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
5893 simplify_shift_const_1, simplify_comparison): Likewise.
5894 * expr.c (convert_modes): Likewise.
5895 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
f9610d20 5896 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
2d0c270f
BS
5897 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
5898
f9c08345
BS
5899 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
5900
6d6c9525
RG
59012011-07-06 Richard Guenther <rguenther@suse.de>
5902
5903 PR tree-optimization/49645
5904 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
5905 register variables.
5906 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
5907 in type qualification here ...
5908 (copy_reference_ops_from_ref): ... not here.
5909 (vn_reference_lookup_3): ... or here.
5910 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
5911 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
5912
d1a6ec10
ILT
59132011-07-06 Ian Lance Taylor <iant@google.com>
5914
5915 * doc/install.texi (Configuration): It's
5916 --enable-gnu-indirect-function, not --enable-indirect-function.
5917
ff3e08af
BS
59182011-07-06 Bernd Schmidt <bernds@codesourcery.com>
5919
5920 * simplify-rtx.c (simplify_const_binary_operation): Use the
f9610d20
UB
5921 shift_truncation_mask hook instead of performing modulo by width.
5922 Compare against mode precision, not bitsize.
ff3e08af 5923 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
f9610d20 5924 Use shift_truncation_mask instead of constructing the value manually.
ff3e08af 5925
a369b639
L
59262011-07-06 H.J. Lu <hongjiu.lu@intel.com>
5927
5928 PR middle-end/47383
5929 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
5930 address computation and convert to address_mode if needed.
5931
1a072294
RG
59322011-07-06 Richard Guenther <rguenther@suse.de>
5933
5934 * tree.c (build_common_tree_nodes_2): Merge with
5935 build_common_tree_nodes.
5936 * tree.h (build_common_tree_nodes): Adjust prototype.
5937 (build_common_tree_nodes_2): Remove.
5938 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
5939 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
5940
f2c3a8ce
JJ
59412011-07-05 Jakub Jelinek <jakub@redhat.com>
5942
5943 PR tree-optimization/49618
5944 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
5945 t recurse on the decl.
5946 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
5947 return true if expr isn't known to be defined in current
5948 TU or some other LTO partition.
5949
3aa439ed
MM
59502011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
5951
5952 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
5953 override CASE_VALUES_THRESHOLD.
5954
5955 * stmt.c (toplevel): Include params.h.
5956 (case_values_threshold): Use the --param case-values-threshold
5957 value if non-zero, otherwise use machine dependent value.
5958 (expand_case): Use case_values_threshold.
5959
5960 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
5961
5962 * doc/invoke.texi (--param case-values-threshold): Document.
5963
49956667
RH
59642011-07-05 Richard Henderson <rth@redhat.com>
5965
5966 * dwarf2out.c (dwarf2out_cfi_label): Make static.
5967 (dwarf2out_flush_queued_reg_saves): Make static.
5968 (dwarf2out_reg_save): Remove.
5969 (dwarf2out_return_save): Remove.
5970 (dwarf2out_return_reg): Remove.
5971 (dwarf2out_reg_save_reg): Remove.
5972 (dwarf2out_def_cfa): Merge into ...
5973 (dwarf2out_frame_init): ... here.
5974 * dwarf2out.h, tree.h: Remove declarations as necessary.
5975
9f2ff8e5
RH
59762011-07-05 Richard Henderson <rth@redhat.com>
5977
c2b40eba
RH
5978 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
5979 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
5980 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
5981 the alloc insn.
5982
7d3c6cd8
RH
5983 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
5984 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
5985 (process_epilogue): Don't call dwarf2out_def_cfa.
5986
5f740973
RH
5987 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
5988 indicate the return address save.
5989 (process_cfa_register): Likewise.
5990
a1880147
RH
5991 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
5992 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
5993
9f2ff8e5
RH
5994 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
5995 for ar.pfs save at alloc insn.
5996
ddc6e7d6
RH
59972011-07-05 Richard Henderson <rth@redhat.com>
5998
5999 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
6000 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
6001 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
6002 stack pointer save.
6003 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
6004 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
6005 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
6006 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
6007
a3515605
RH
60082011-07-05 Richard Henderson <rth@redhat.com>
6009
6010 * config/vax/vax.md (define_c_enum unspecv): New. Define the
6011 VUNSPEC_* constants here instead of via define_constants.
6012 (VUNSPEC_PEM): New constant.
6013 (procedure_entry_mask): New insn.
6014 (prologue): New expander.
6015 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
6016 (vax_expand_prologue): Rename from vax_output_function_prologue;
6017 emit rtl instead of text.
6018 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
6019 (print_operand): Add 'x' prefix.
6020
a7adbbcb
L
60212011-07-05 H.J. Lu <hongjiu.lu@intel.com>
6022
6023 PR middle-end/47715
6024 * calls.c (precompute_register_parameters): Promote the function
6025 argument before checking non-legitimate constant.
6026
cec11ec4
SP
60272011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6028
6029 PR tree-optimization/47654
6030 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
6031 (lst_do_strip_mine_loop): Return an int.
6032 (lst_do_strip_mine): Same.
6033 (scop_do_strip_mine): Same.
6034 (scop_do_block): Loop blocking should strip-mine at least two loops.
6035 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
6036 (scop_do_interchange): Same.
6037 * graphite-poly.h (scop_do_interchange): Update declaration.
6038 (scop_do_strip_mine): Same.
6039
9b0d314a
SP
60402011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6041
6042 * graphite-clast-to-gimple.c (precision_for_value): Removed.
6043 (precision_for_interval): Removed.
6044 (gcc_type_for_interval): Use mpz_sizeinbase.
6045
81d6d080
SP
60462011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6047
6048 * graphite-ppl.h (value_max): Correct computation of max.
6049
369e3430
SP
60502011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6051
6052 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
6053
fce5dddd
RG
60542011-07-05 Richard Guenther <rguenther@suse.de>
6055
6056 * c-decl.c (c_init_decl_processing): Defer building common
6057 tree nodes to c_common_nodes_and_builtins.
6058
12037899
RL
60592011-07-05 Razya Ladelsky <razya@il.ibm.com>
6060
6061 PR tree-optimization/49580
f9610d20 6062 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
12037899 6063 the loop's number of iterations.
f9610d20
UB
6064 * tree-parloops.c (transform_to_exit_first_loop): Add the
6065 handling of the loop's number of iterations before the call
12037899 6066 to gimple_duplicate_sese_tail.
28b21ebb 6067 Insert the stmt caclculating the new rhs of the loop's
12037899
RL
6068 condition stmt to the preheader instead of iters_bb.
6069
509a31f8
L
60702011-07-05 H.J. Lu <hongjiu.lu@intel.com>
6071
6072 PR rtl-optimization/47449
6073 * fwprop.c (forward_propagate_subreg): Don't propagate hard
6074 register nor zero/sign extended hard register.
6075
39becbac
RG
60762011-07-05 Richard Guenther <rguenther@suse.de>
6077
6078 PR tree-optimization/49518
6079 PR tree-optimization/49628
6080 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
6081 irrelevant and invariant data-references.
6082 (vect_analyze_data_ref_access): For invariant loads clear the
6083 group association.
6084
15923c25
JJ
60852011-07-04 Jakub Jelinek <jakub@redhat.com>
6086
af421d9c
JJ
6087 PR rtl-optimization/49619
6088 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
6089 pass VOIDmode as op0_mode to recursive call, and return temp even
6090 when different from tor, just if it is not IOR of the original
6091 PLUS arguments.
6092
707f9919
JJ
6093 PR rtl-optimization/49472
6094 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
6095 negating MULT, negate the second operand instead of first.
6096 (simplify_binary_operation_1) <case MULT>: If one operand is
f9610d20
UB
6097 a NEG and the other is MULT, don't attempt to optimize by negation
6098 of the MULT operand if it only moves the NEG operation around.
707f9919 6099
15923c25
JJ
6100 PR debug/49602
6101 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
6102 get_current_def return value if it can't be trusted to be
6103 the current value of the variable in the current bb.
6104
0d5e0c1b
UB
61052011-07-04 Uros Bizjak <ubizjak@gmail.com>
6106
6107 PR target/49600
6108 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
6109 general register to memory for !TARGET_INTER_UNIT_MOVES.
6110
db297e20
GJL
61112011-07-04 Georg-Johann Lay <avr@gjlay.de>
6112
6113 PR target/44643
6114 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
6115 instead of TREE_READONLY.
6116
f451d14d
GJL
61172011-07-04 Georg-Johann Lay <avr@gjlay.de>
6118
6119 * doc/extend.texi (AVR Built-in Functions): Update documentation
6120 of __builtin_avr_fmul*.
0d5e0c1b 6121 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
f451d14d
GJL
6122 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
6123 * config/avr/avr.md (fmul): Rename to fmul_insn.
6124 (fmuls): Rename to fmuls_insn.
6125 (fmulsu): Rename to fmulsu_insn.
6126 (fmul,fmuls,fmulsu): New expander.
6127 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
6128 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
6129 * config/avr/libgcc.S (__fmul): New function.
6130 (__fmuls): New function.
6131 (__fmulsu,__fmulsu_exit): New function.
6132
30f1e6de
RG
61332011-07-04 Richard Guenther <rguenther@suse.de>
6134
6135 PR tree-optimization/49615
6136 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
6137 basic-block index check.
6138
6dab9931
GJL
61392011-07-04 Georg-Johann Lay <avr@gjlay.de>
6140
6141 * longlong.h (count_leading_zeros, count_trailing_zeros,
6142 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
6143 resp. 64.
6144
b5066d8b
IR
61452011-07-03 Ira Rosen <ira.rosen@linaro.org>
6146
6147 PR tree-optimization/49610
6148 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
6149 a basic block.
6150
bc712852
EB
61512011-07-02 Eric Botcazou <ebotcazou@adacore.com>
6152 Olivier Hainque <hainque@adacore.com>
6153 Nicolas Setton <setton@adacore.com>
6154
6155 * tree.h (TYPE_ARTIFICIAL): New flag.
6156 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
6157 the DIE of the type if it is artificial.
6158 (gen_array_type_die): Likewise.
6159 (gen_enumeration_type_die): Likewise.
6160 (gen_struct_or_union_type_die): Likewise.
6161 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
6162 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
6163
8b1bdcc5
JJ
61642011-07-01 Jakub Jelinek <jakub@redhat.com>
6165
6166 * tree-object-size.c (pass_through_call): Handle
6167 BUILT_IN_ASSUME_ALIGNED.
6168
06e88d73
MJ
61692011-07-01 Martin Jambor <mjambor@suse.cz>
6170
6171 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
6172
6bbec3e1
L
61732011-07-01 H.J. Lu <hongjiu.lu@intel.com>
6174
6175 PR middle-end/48016
6176 * explow.c (update_nonlocal_goto_save_area): Use proper mode
6177 for stack save area.
6178 * function.c (expand_function_start): Likewise.
6179
e8fdf1cd
RG
61802011-07-01 Richard Guenther <rguenther@suse.de>
6181
6182 PR middle-end/49596
6183 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
6184 may have unknown refs.
6185
80d3dd38
KT
61862011-07-01 Kai Tietz <ktietz@redhat.com>
6187
6188 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
6189
179fc656
RO
61902011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6191
6192 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
6193 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
6194 (Specific, mips-sgi-irix6): Likewise.
6195
14a393a3
RO
61962011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6197
6198 PR libmudflap/49549
6199 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
6200
3aecd443
JJ
62012011-07-01 Jakub Jelinek <jakub@redhat.com>
6202
6203 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
6204 [idx]= and [idx1 ... idx2]= before initializers if needed for
6205 array initializers.
6206
7474f719
CL
62072011-07-01 Chen Liqin <liqin.gcc@gmail.com>
6208
6209 * config.gcc (score-*-elf): Remove score7.o.
6210 * config/score/t-score-elf: Likewise.
6211 * config/score/score.c: Merge score7 to score.c and
6212 remove forwarding functions.
6213 * config/score/score7.c: Deleted.
6214 * config/score/score7.h: Deleted.
6215
ab70d825
RG
62162011-07-01 Richard Guenther <rguenther@suse.de>
6217
6218 PR tree-optimization/49603
0d5e0c1b 6219 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
ab70d825 6220
1ac93f10
MJ
62212011-06-30 Martin Jambor <mjambor@suse.cz>
6222
6223 * tree-sra.c (struct access): Rename total_scalarization to
6224 grp_total_scalarization
6225 (completely_scalarize_var): New function.
6226 (sort_and_splice_var_accesses): Set total_scalarization in the
6227 representative access.
6228 (analyze_access_subtree): Propagate total scalarization accross the
6229 tree, no holes in totally scalarized trees, simplify coverage
6230 computation.
6231 (analyze_all_variable_accesses): Call completely_scalarize_var instead
6232 of completely_scalarize_record.
6233
97f309c3
RH
62342011-06-30 Richard Henderson <rth@redhat.com>
6235
6236 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
6237 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
6238 * config/i386/i386.c: Don't include dwarf2out.h.
6239 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
6240 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
6241 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
6242 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
6243 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
6244
ef284364
RH
62452011-06-30 Richard Henderson <rth@redhat.com>
6246
6247 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
6248 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
6249 * final.c (final_scan_insn): Look for it, and invoke
6250 dwarf2out_frame_debug before the insn if found.
6251
c8412f97
RH
62522011-06-30 Richard Henderson <rth@redhat.com>
6253
6254 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
6255 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
6256
e3f903d8
RH
62572011-06-30 Richard Henderson <rth@redhat.com>
6258
6259 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
6260 Define a vector of this type.
6261 (regs_saved_in_regs): Use a VEC.
6262 (num_regs_saved_in_regs): Remove.
6263 (compare_reg_or_pc): New.
6264 (record_reg_saved_in_reg): Split out from...
6265 (dwarf2out_flush_queued_reg_saves): ... here.
6266 (clobbers_queued_reg_save): Update for VEC.
6267 (reg_saved_in): Likewise.
6268 (dwarf2out_frame_debug_init): Likewise.
6269 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
6270 (dwarf2out_frame_debug_cfa_register): Likewise.
6271
e2c9010a
EB
62722011-06-30 Eric Botcazou <ebotcazou@adacore.com>
6273
6274 PR tree-optimization/49572
6275 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
6276 type of the RHS instead of that of the LHS for the expression type.
6277
dbb07bbc
EB
62782011-06-30 Eric Botcazou <ebotcazou@adacore.com>
6279
6280 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
6281 unconditionally.
6282
1565af08
RG
62832011-06-30 Richard Guenther <rguenther@suse.de>
6284
6285 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
6286 * tree-ssa-structalias.c (create_variable_info_for): Do not
6287 add initial constraints for non-var-decls. Properly handle
6288 globals in other ltrans partitions.
6289 (intra_create_variable_infos): Manually create constraints for
6290 the fake no-alias parameter.
6291 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
6292 and assert there are no clones.
6293
42373e0b
RG
62942011-06-30 Richard Guenther <rguenther@suse.de>
6295
6296 PR tree-optimization/46787
6297 * tree-data-ref.c (dr_address_invariant_p): Remove.
6298 (find_data_references_in_stmt): Invariant accesses are ok now.
0d5e0c1b 6299 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
42373e0b
RG
6300 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
6301 invariant loads.
6302
7aa62ea1
MJ
63032011-06-30 Martin Jambor <mjambor@suse.cz>
6304
6305 PR tree-optimization/49094
6306 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
6307 (build_accesses_from_assign): Use it.
6308
f60f32b3
JJ
63092011-06-30 Jakub Jelinek <jakub@redhat.com>
6310
d9048d16
JJ
6311 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
6312 handling of BUILT_IN_ASSUME_ALIGNED.
6313
f60f32b3
JJ
6314 PR debug/49364
6315 * dwarf2out.c (output_abbrev_section): Don't return early
6316 if abbrev_die_table_in_use is 1.
6317 (dwarf2out_finish): Instead don't call output_abbrev_section
6318 nor emit abbrev_section_label in that case.
6319
7cce15d4
NC
63202011-06-30 Nick Clifton <nickc@redhat.com>
6321
6322 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
6323 for the V850E.
6324
ce7e54ff
JJ
63252011-06-30 Jakub Jelinek <jakub@redhat.com>
6326
6327 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
6328 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
6329
83197f37
IR
63302011-06-30 Ira Rosen <ira.rosen@linaro.org>
6331
6332 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
6333 both pattern and original statements if necessary.
6334 (vect_transform_loop): Likewise.
6335 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
6336 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
6337 Mark the pattern statement only if the original statement doesn't
6338 have its own uses.
6339 (process_use): Call vect_mark_relevant with additional parameter.
6340 (vect_mark_stmts_to_be_vectorized): Likewise.
6341 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
6342 (vect_analyze_stmt): Handle both pattern and original statements
6343 if necessary.
6344 (vect_transform_stmt): Don't store vectorized pattern statement
6345 in the original statement.
6346 (vect_is_simple_use_1): Use related pattern statement only if the
6347 original statement is irrelevant.
6348 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
6349
dbb07bbc 63502011-06-29 Changpeng Fang <changpeng.fang@amd.com>
5c0d88e6 6351
dbb07bbc
EB
6352 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
6353 option.
6354 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
6355 entry.
5c0d88e6
CF
6356 (TARGET_AVX128_OPTIMAL): New definition.
6357 * config/i386/i386.c (initial_ix86_tune_features): Initialize
6358 X86_TUNE_AVX128_OPTIMAL entry.
6359 (ix86_option_override_internal): Enable the generation
6360 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
6361 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
6362 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
6363
931050d0
EB
63642011-06-29 Eric Botcazou <ebotcazou@adacore.com>
6365
6366 PR tree-optimization/49539
6367 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
6368 names by means of stmt_references_abnormal_ssa_name.
6369 (associate_plusminus): Call can_propagate_from before propagating
6370 from definition statements.
6371 (ssa_forward_propagate_and_combine): Remove superfluous newline.
6372
dfedbe40
RG
63732011-06-29 Richard Guenther <rguenther@suse.de>
6374
6375 * doc/invoke.texi: Document -scev dump modifier.
6376 * tree-pass.h (TDF_SCEV): New dump flag.
6377 * tree-dump.c (dump_option_value_in): Add scev.
6378 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
6379 * tree-scalar-evolution.c: Likewise.
6380
3a86cfeb
NS
63812011-06-29 Nathan Sidwell <nathan@codesourcery.com>
6382
6383 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
6384 (cxa_type_match): Correct declaration.
0d5e0c1b
UB
6385 (__gnu_unwind_pr_common): Reconstruct additional indirection
6386 when __cxa_type_match returns succeeded_with_ptr_to_base.
3a86cfeb 6387
f3678bfb
UW
63882011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6389
6390 PR rtl-optimization/49114
6391 * reload.c (struct replacement): Remove SUBREG_LOC member.
6392 (push_reload): Do not set it.
6393 (push_replacement): Likewise.
6394 (subst_reload): Remove dead code.
6395 (copy_replacements): Remove assertion.
6396 (copy_replacements_1): Do not handle SUBREG_LOC.
6397 (move_replacements): Likewise.
6398 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
6399 Detect subregs via recursive descent instead of via SUBREG_LOC.
6400
433ba0a5 64012011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 6402
433ba0a5
GJL
6403 * config/avr/avr.c (avr_encode_section_info): Dispatch to
6404 default_encode_section_info.
6405
73f6eabc
RS
64062011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
6407
6408 PR tree-optimization/49545
6409 * builtins.c (get_object_alignment_1): Update function comment.
6410 Do not use DECL_ALIGN for functions, but test
6411 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
6412 * fold-const.c (get_pointer_modulus_and_residue): Don't check
6413 for functions here.
6414 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
6415
a0f33d3a
JJ
64162011-06-29 Jakub Jelinek <jakub@redhat.com>
6417
6418 PR debug/49567
0d5e0c1b
UB
6419 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
6420 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
a0f33d3a 6421
946c8b23 64222011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 6423
946c8b23 6424 PR target/34734
0d5e0c1b 6425 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
946c8b23
GJL
6426 about uninitialized data attributed 'progmem' from here...
6427 (avr_encode_section_info): ...to this new function.
6428 (TARGET_ENCODE_SECTION_INFO): New define.
6429 (avr_section_type_flags): For data in ".progmem.data", remove
6430 section flag SECTION_WRITE.
6431
9a63dee4 64322011-06-29 Georg-Johann Lay <avr@gjlay.de>
0d5e0c1b 6433
9a63dee4
GJL
6434 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
6435 _xmulhisi3_exit.
6436 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
6437 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
6438 (__umulhisi3): Ditto.
6439 * config/avr/avr.md (mulhisi3): New insn expender.
6440 (umulhisi3): New insn expender.
6441 (*mulhisi3_call): New insn.
6442 (*umulhisi3_call): New insn.
6443
4374ce45
JM
64442011-06-28 Joseph Myers <joseph@codesourcery.com>
6445
6446 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
6447
94759030
RH
64482011-06-28 Richard Henderson <rth@redhat.com>
6449
6450 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
6451 all code and arguments that handled pushes. Update all callers.
6452
d018b46e
RH
64532011-06-28 Richard Henderson <rth@redhat.com>
6454
6455 * config/arm/arm.c (arm_output_function_prologue): Don't call
6456 thumb1_output_function_prologue.
6457 (arm_expand_prologue): Avoid dead store.
6458 (number_of_first_bit_set): Use ctz_hwi.
6459 (thumb1_emit_multi_reg_push): New.
6460 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
6461 to emit the entire prologue as rtl.
6462 (thumb1_output_interwork): Split out from
6463 thumb1_output_function_prologue.
6464 (thumb1_output_function_prologue): Remove.
6465 (arm_attr_length_push_multi): Handle thumb1.
6466 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
6467 (prologue_thumb1_interwork): New.
6468 (*push_multi): Allow thumb1; use push_mult_memory_operand.
6469 * config/arm/predicates.md (push_mult_memory_operand): New.
6470
97269a23
EB
64712011-06-28 Eric Botcazou <ebotcazou@adacore.com>
6472
6473 * config/sparc/sync.md (*stbar): Delete.
6474 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
6475
4a9206ce
EB
64762011-06-28 Eric Botcazou <ebotcazou@adacore.com>
6477
6478 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
6479
6138f9bd
RO
64802011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6481
6482 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
6483 (TARGET_64BIT_DEFAULT): Define.
6484 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
6485 of tm_file.
6486 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
6487
a7d0d30f
JM
64882011-06-28 Joseph Myers <joseph@codesourcery.com>
6489
6490 * common.opt (in_lto_p): New Variable entry.
6491 * flags.h (in_lto_p): Move to common.opt.
6492 * gcc.c: Include params.h.
6493 (set_option_handlers): Also use common_handle_option and
6494 target_handle_option.
0d5e0c1b 6495 (main): Call global_init_params, finish_params and init_options_struct.
a7d0d30f
JM
6496 * opts.c (debug_type_names): Move from toplev.c.
6497 (print_filtered_help): Access quiet_flag through opts pointer.
0d5e0c1b
UB
6498 (common_handle_option): Return early in the driver for some options.
6499 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
6500 opts pointer.
a7d0d30f
JM
6501 * toplev.c (in_lto_p): Move to common.opt.
6502 (debug_type_names): Move to opts.c.
6503 * Makefile.in (OBJS): Remove opts.o.
6504 (OBJS-libcommon-target): Add opts.o.
6505 (gcc.o): Update dependencies.
6506
420863a9
KT
65072011-06-28 Kai Tietz <ktietz@redhat.com>
6508
0d5e0c1b 6509 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
420863a9 6510
0498a2be
RR
65112011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6512
6513 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
6514 with '=' constraint modifier.
6515 (*divdf3_vfp): Likewise.
6516 ("*mulsf3_vfp"): Likewise.
6517 ("*muldf3_vfp"): Likewise.
6518 ("*mulsf3negsf_vfp"): Likewise.
6519 ("*muldf3negdf_vfp"): Likewise.
6520
4a68b724
NC
65212011-06-28 Nick Clifton <nickc@redhat.com>
6522
6523 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
6524 relaxation when performing an incremental link.
6525
72a32729
KT
65262011-06-28 Kai Tietz <ktietz@redhat.com>
6527
6528 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
6529 within BB from last to first.
6530
88a00ef7
JM
65312011-06-28 Joseph Myers <joseph@codesourcery.com>
6532
6533 * genattr-common.c: New. Based on genattr.c.
6534 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
6535 (MOSTLYCLEANFILES): Add insn-attr-common.h.
6536 (opts.o): Update dependencies.
6537 (.PRECIOUS): Add insn-attr-common.h.
6538 (simple_rtl_generated_h): Add insn-attr-common.h.
6539 (build/genattr-common.o): New.
6540 (genprogrtl): Add attr-common.
6541 * genattr.c (main): Include insn-attr-common.h. Don't generate
6542 definitions of DELAY_SLOTS or INSN_SCHEDULING.
0d5e0c1b 6543 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
88a00ef7 6544
880962ac
GJL
65452011-06-28 Georg-Johann Lay <avr@gjlay.de>
6546
4a68b724 6547 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
880962ac 6548 avr-*-* and avr-*-rtems* targets.
4a68b724 6549
880962ac
GJL
6550 * config/avr/elf.h: New file.
6551 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
6552 (TARGET_ASM_SELECT_SECTION): Define.
6553 (INIT_SECTION_ASM_OP): Undefine.
6554 (FINI_SECTION_ASM_OP): Undefine.
6555 (READONLY_DATA_SECTION_ASM_OP): Undefine.
6556 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
6557 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
6558 * config/avr/avr.h:
6559 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
6560 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
6561 (MAX_OFILE_ALIGNMENT): Move to elf.h.
6562 (STRING_LIMIT): Move to elf.h.
6563 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
6564 (ASM_DECLARE_OBJECT_NAME): Remove.
6565 (ESCAPES): Remove.
6566 (ASM_OUTPUT_SKIP): Remove.
6567 (DWARF2_DEBUGGING_INFO): Remove.
6568 (OBJECT_FORMAT_ELF): Remove.
6569 (USER_LABEL_PREFIX): Remove.
6570 (ASM_OUTPUT_EXTERNAL): Remove.
6571 (ASM_OUTPUT_ASCII): Remove.
6572 (TYPE_ASM_OP): Remove.
6573 (SIZE_ASM_OP): Remove.
6574 (WEAK_ASM_OP): Remove.
6575 (STRING_ASM_OP): Remove.
6576 (SET_ASM_OP): Remove.
6577 (ASM_WEAKEN_LABEL): Remove.
6578 (TYPE_OPERAND_FMT): Remove.
6579 (ASM_DECLARE_FUNCTION_SIZE): Remove.
6580 (ASM_FINISH_DECLARE_OBJECT): Remove.
6581 (NO_DOLLAR_IN_LABEL): Remove.
6582 (ASM_GENERATE_INTERNAL_LABEL): Remove.
6583 (ASM_OUTPUT_CASE_LABEL): Remove.
6584 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
6585 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
6586 (gas_output_ascii): Remove.
6587 (gas_output_limited_string): Remove.
6588 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
6589 * config/avr/avr-protos.h
6590 (gas_output_ascii): Remove prototye.
6591 (gas_output_limited_string): Remove prototype.
6592
a1b5eb93
RE
65932011-06-27 Richard Earnshaw <rearnsha@arm.com>
6594
6595 PR target/48637
6596 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
6597 asm operands.
6598
310e71a8
JH
65992011-06-27 Jan Hubicka <jh@suse.cz>
6600
4a9206ce
EB
6601 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
6602 node instead of references in node.
310e71a8 6603
171da07a
RH
66042011-06-27 Richard Henderson <rth@redhat.com>
6605
6606 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
6607 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
6608 inside ifdef.
6609
dc2a58da
JJ
66102011-06-27 Jakub Jelinek <jakub@redhat.com>
6611
56300785
JJ
6612 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
6613
45d439ac
JJ
6614 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
6615 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
6616 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
6617 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
6618 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
6619 (evaluate_stmt, execute_fold_all_builtins): Handle
6620 BUILT_IN_ASSUME_ALIGNED.
6621 * tree-ssa-dce.c (propagate_necessity): Likewise.
6622 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
6623 call_may_clobber_ref_p_1): Likewise.
6624 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
6625 (expand_builtin_assume_aligned): New function.
6626 * doc/extend.texi (__builtin_assume_aligned): Document.
6627
dc2a58da
JJ
6628 PR debug/49544
6629 * cselib.c (promote_debug_loc): If cselib_preserve_constants
6630 and l has two DEBUG_INSN owned locs instead of just one, adjust
6631 the second location's setting_insn too.
6632
0d72f628
RO
66332011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6634
6635 PR libmudflap/38738
6636 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
6637
bebd619e
NC
66382011-06-27 Nick Clifton <nickc@redhat.com>
6639
0d5e0c1b
UB
6640 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
6641 bit position of highest bit set into a count of the high zero bits.
bebd619e 6642
353b39fa
EB
66432011-06-27 Eric Botcazou <ebotcazou@adacore.com>
6644
6645 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
6646
a7af037b
EB
66472011-06-27 Eric Botcazou <ebotcazou@adacore.com>
6648
6649 PR lto/48492
6650 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
6651 to a NULL parent.
6652
1c86160a
RG
66532011-06-27 Richard Guenther <rguenther@suse.de>
6654
6655 PR tree-optimization/49394
6656 * passes.c (execute_one_pass): Restore current_pass after
6657 applying IPA transforms.
6658
5da49a9d
KT
66592011-06-27 Kai Tietz <ktietz@redhat.com>
6660
6661 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
6662 out of type precision after operation.
0d5e0c1b
UB
6663 (find_bswap): Take for limit value the integer auto-promotion
6664 into account.
5da49a9d 6665
9242213f
EB
66662011-06-27 Eric Botcazou <ebotcazou@adacore.com>
6667
6668 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
6669 forward scan as well.
6670
db8b22ef
TG
66712011-06-27 Tristan Gingold <gingold@adacore.com>
6672
6673 PR target/44241
6674 * config/vms/vms-protos.h: New file.
6675 * config/vms/vms-crtlmap.map: New file.
6676 * config/vms/vms.c: New file.
6677 * config/vms/make-crtlmap.awk: New file.
6678 * config/vms/vms-crtl.h: File removed.
6679 * config/vms/vms-crtl-64.h: File removed.
6680 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
6681 * config/alpha/vms64.h: Do not include vms-crtl-64.h
6682 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
6683 clear some builtins on VMS. Calls vms_patch_builtins.
6684 (avms_asm_output_external): Remove.
6685 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
6686 (struct crtl_name_spec): Remove
6687 (DO_CTRL_NAMES): Remove.
6688 * config/ia64/vms.h (struct crtl_name_spec): Remove
6689 (DO_CTRL_NAMES): Remove.
6690 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
6691 clear some builtins on VMS. Calls vms_patch_builtins.
6692 (ia64_asm_output_external): Remove DO_CRTL_NAME.
6693 * config/ia64/vms64.h: Do not include vms-crtl-64.h
0d5e0c1b 6694 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
db8b22ef 6695
b213221d
TG
66962011-06-27 Tristan Gingold <gingold@adacore.com>
6697
6698 * config/alpha/alpha.c (alpha_end_function): Always generate .end
6699 directive on VMS.
6700
157b9300
EB
67012011-06-27 Eric Botcazou <ebotcazou@adacore.com>
6702
6703 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
6704 the function receives nonlocal gotos.
6705
ccbf5bb4
RG
67062011-06-27 Richard Guenther <rguenther@suse.de>
6707
6708 PR tree-optimization/49536
6709 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
6710 For non-scalar inner types use a scalar type according to
6711 the scalar inner mode.
6712
fe4cd14b
RG
67132011-06-27 Richard Guenther <rguenther@suse.de>
6714
6715 PR tree-optimization/49365
6716 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
6717
afc3f22f
RS
67182011-06-27 Richard Guenther <rguenther@suse.de>
6719
6720 PR tree-optimization/49169
6721 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
6722 the alignment of function decls.
6723
92590751 67242011-06-26 Iain Sandoe <iains@gcc.gnu.org>
a45a766b
IS
6725
6726 PR target/47997
6727 * config/darwin.c (darwin_mergeable_string_section): Place string
6728 constants in '.cstring' rather than '.const' when CF/NSStrings are
6729 active.
6730
605354f3
EB
67312011-06-26 Eric Botcazou <ebotcazou@adacore.com>
6732
6733 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
6734 (emit_save_register_window): Likewise.
6735 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
6736 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
6737 Swap back %o7/%i7 in register naming.
6738
0e9197f5
IS
67392011-06-25 Iain Sandoe <iains@gcc.gnu.org>
6740
6741 PR driver/49371
6742 * config/darwin.c (darwin_override_options): Improve warning when
6743 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
6744 is given with fpie/fPIE.
6745 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
6746 * config/darwin9.h (PIE_SPEC): New.
53461199 6747
605354f3 67482011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
53461199
BS
6749
6750 * timevar.c (timevar_print): Increase width for display of timevar
6751 name.
6752
f796c438
JJ
67532011-06-24 Jakub Jelinek <jakub@redhat.com>
6754
6755 PR c++/46400
6756 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
6757 instead of TYPE_CHAIN for chain_next for types.
6758
a7289eaf
RH
67592011-06-24 Richard Henderson <rth@redhat.com>
6760
6761 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
6762 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
6763 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
6764 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
6765 (sparc_flat_expand_prologue): Emit individual instructions
6766 instead of one of the above.
6767
c4b9a87e
ER
67682011-06-24 Easwaran Raman <eraman@google.com>
6769
6770 PR rtl-optimization/49429
6771 PR target/49454
6772 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
6773 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
6774 used to copy y into x.
6775 * calls.c (initialize_argument_information): Mark
6776 an argument addressable if it is passed by invisible reference.
6777 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
6778 if it is passed by reference.
6779
5ac6c59e
L
67802011-06-24 H.J. Lu <hongjiu.lu@intel.com>
6781
6782 PR rtl-optimization/49504
6783 * rtlanal.c (nonzero_bits1): Properly handle addition or
1f134bd6
L
6784 subtraction of a pointer in Pmode if pointers extend unsigned.
6785 (num_sign_bit_copies1): Likewise.
5ac6c59e 6786
b807e627
MJ
67872011-06-24 Martin Jambor <mjambor@suse.cz>
6788
6789 PR tree-optimizations/49516
6790 * tree-sra.c (sra_modify_assign): Choose the safe path for
6791 aggregate copies if we also did scalar replacements.
6792
9a1ea4b9
RR
67932011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6794
6795 PR target/49335
6796 * config/arm/predicates.md (add_operator): New.
0d5e0c1b 6797 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
9a1ea4b9 6798
949cfd0a
AK
67992011-06-24 Andi Kleen <ak@linux.intel.com>
6800
6801 * tree-sra.c (type_internals_preclude_sra_p): Add msg
6802 parameter. Split up ifs and report reason in *msg.
6803 (reject): Add.
6804 (find_var_candiate): Add msg variable.
6805 Split up ifs and report reason to reject.
6806 (find_param_candidates): Add msg variable.
6807 Pass msg to type_internals_preclude_sra_p.
6808
49e9c661 68092011-06-23 Jeff Law <law@redhat.com>
ad3577df 6810
b0c11403
JL
6811 PR middle-end/48770
6812 * reload.h (reload): Change to return a bool.
6813 * ira.c (ira): If requested by reload, run a fast DCE pass after
6814 reload has completed. Fix comment typo.
6815 * reload1.c (need_dce): New file scoped static.
6816 (reload): Set reload_completed here. Return whether or not a DCE
6817 pass after reload is needed.
6818 (delete_dead_insn): Set need_dce as needed.
6819
ad3577df
JL
6820 PR middle-end/49465
6821 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
6822 to detect threading through joiner block. If there was already
6823 an edge to the new target, then do not change the PHI nodes.
6824
7cf64710
JJ
68252011-06-23 Jakub Jelinek <jakub@redhat.com>
6826
6827 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
6828 get_pointer_alignment to see if base isn't sufficiently aligned.
6829
febb1302
JH
68302011-06-23 Jan Hubicka <jh@suse.cz>
6831
6832 PR tree-optimize/49373
6833 * tree-pass.h (all_late_ipa_passes): Declare.
6834 * cgraphunit.c (init_lowered_empty_function): Fix properties.
4a9206ce
EB
6835 (cgraph_optimize): Execute late passes; remove unreachable funcions
6836 after materialization.
6837 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
6838 LTOing.
febb1302
JH
6839 * passes.c (all_late_ipa_passes): Declare.
6840 (dump_passes, register_pass): Handle late ipa passes.
4a9206ce
EB
6841 (init_optimization_passes): Move ipa_pta to late passes; schedule
6842 fixup_cfg at beggining of all_passes.
febb1302
JH
6843 (apply_ipa_transforms): New function.
6844 (execute_one_pass): When doing simple ipa pass, apply all transforms.
6845
4c77620d
JM
68462011-06-23 Joseph Myers <joseph@codesourcery.com>
6847
6848 * params.c: Include common/common-target.h. Don't include tm.h.
6849 (lang_independent_params): Move from toplev.c.
6850 (global_init_params): New.
6851 * params.h (global_init_params): Declare.
6852 * target.def (default_params): Move to common-target.def.
6853 * toplev.c (lang_independent_options): Remove.
6854 (lang_independent_params): Move to params.c.
6855 (general_init): Use global_init_params.
6856 * common/common-target.def (option_default_params): Move from
6857 target.def.
6858 * common/config/ia64/ia64-common.c: Include params.h.
6859 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6860 from ia64.c.
6861 * common/config/rs6000/rs6000-common.c: Include params.h.
6862 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6863 from rs6000.c.
6864 * common/config/sh/sh-common.c: Include params.h.
6865 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6866 from sh.c.
6867 * common/config/spu/spu-common.c: Include params.h.
6868 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6869 from spu.c.
6870 * config/ia64/ia64.c (ia64_option_default_params,
6871 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
6872 * config/rs6000/rs6000.c (rs6000_option_default_params,
6873 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
6874 * config/sh/sh.c (sh_option_default_params,
6875 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
6876 * config/spu/spu.c (spu_option_default_params,
6877 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
6878 * Makefile.in (OBJS): Remove params.o.
6879 (OBJS-libcommon-target): Add params.o.
6880 (params.o, $(common_out_object_file)): Update dependencies.
6881 * doc/tm.texi: Regenerate.
6882
6aad1e38
AM
68832011-06-23 Alan Modra <amodra@gmail.com>
6884
6885 PR bootstrap/49383
6886 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
6887 invocation for 2011-06-09 changes.
6888
4fb489e7
JJ
68892011-06-22 Jakub Jelinek <jakub@redhat.com>
6890
fb79f500
JJ
6891 PR libgomp/49490
6892 * omp-low.c (expand_omp_for_static_nochunk): Only
0d5e0c1b
UB
6893 use n ceil/ nthreads size for the first n % nthreads threads in the
6894 team instead of all threads except for the last few ones which
fb79f500
JJ
6895 get less work or none at all.
6896
4fb489e7
JJ
6897 PR debug/49496
6898 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
6899 uses.
6900
9c7c9f10
RG
69012011-06-22 Richard Guenther <rguenther@suse.de>
6902
6903 PR tree-optimization/49493
6904 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
6905 Refer to the alias target of variables.
6906 (associate_varinfo_to_alias_1): Remove.
6907 (ipa_pta_execute): Do not associate aliases with anything.
6908 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
6909 (cgraph_function_node): Likewise.
6910 (cgraph_function_or_thunk_node): Likewise.
6911 (varpool_variable_node): Likewise.
6912
7cf13d1f
NS
69132011-06-22 Nathan Sidwell <nathan@codesourcery.com>
6914
0d5e0c1b 6915 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
7cf13d1f
NS
6916 * config.gcc (arm*-*-linux*): Default to gnu tls.
6917 (arm*-*-*): Add --with-tls option.
6918 (all_defaults): Add 'tls'.
6919
78a8eb4e
RH
69202011-06-22 Richard Henderson <rth@redhat.com>
6921
6922 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
6923 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
6924 (dwarf2out_frame_debug_cfa_window_save): Rename from
6925 dwarf2out_window_save; make static.
6926 * tree.h (dwarf2out_window_save): Don't declare.
6927
6928 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
6929 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
6930 (emit_save_register_window): Rename from gen_save_register_window;
6931 emit the insn and add REG_CFA_* notes.
6932 (sparc_expand_prologue): Update to match.
6933 * config/sparc/sparc.md (save_register_window_1): Simplify from
6934 save_register_window<P:mode>.
6935
3b4c46d7
L
69362011-06-22 H.J. Lu <hongjiu.lu@intel.com>
6937
6938 PR target/49497
6939 * config/i386/i386.md (*lea_general_2): Always allow SImode.
6940 (*lea_general_2_zext): Likewise.
6941 (imul to lea peepholes): Use const359_operand and check
6942 TARGET_PARTIAL_REG_STALL.
6943
6944 * config/i386/predicates.md (const359_operand): New.
6945
4399cf59
MM
69462011-06-22 Michael Matz <matz@suse.de>
6947
6948 * cgraphunit.c (assemble_thunk): Use correct return type.
6949
31a0c825 69502011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
0d5e0c1b 6951 Dmitry Melnik <dm@ispras.ru>
31a0c825
DP
6952
6953 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
6954 (neon_output_shift_immediate): Ditto.
6955 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
6956 prototype.
6957 (neon_output_shift_immediate): Ditto.
6958 * config/arm/neon.md (vashl<mode>3): Modified constraint.
6959 (vashr<mode>3_imm): New insn pattern.
6960 (vlshr<mode>3_imm): Ditto.
6961 (vashr<mode>3): Modified constraint.
6962 (vlshr<mode>3): Ditto.
6963 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
6964 predicate.
6965 (imm_for_neon_rshift_operand): Ditto.
6966 (imm_lshift_or_reg_neon): Ditto.
6967 (imm_rshift_or_reg_neon): Ditto.
6968
6969 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
6970
ddb555ed
JJ
69712011-06-22 Jakub Jelinek <jakub@redhat.com>
6972
36dc1a88
JJ
6973 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
6974 builtin calls even if likelyvalue is not CONSTANT.
6975 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
6976 Return get_value_for_expr of first operand
6977 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
6978 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
6979 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
6980 their non-checking counterparts.
6981 (call_may_clobber_ref_p_1): Likewise.
6982 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
6983 like their non-checking counterparts.
6984 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
6985 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
6986 like their non-checking counterparts.
6987 (find_func_clobbers): Likewise.
6988 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
6989 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
6990
41cd4957
JJ
6991 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
6992 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
6993 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
6994 of base type reference as argument.
6995 (resolve_addr_in_expr): Likewise. Fix keep computation.
6996 (convert_descriptor_to_signed): Renamed to...
0d5e0c1b
UB
6997 (convert_descriptor_to_mode): ... this. For wider types convert to
6998 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
41cd4957
JJ
6999 (typed_binop): New function.
7000 (scompare_loc_descriptor, ucompare_loc_descriptor,
7001 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
7002 default to unsigned type instead of signed.
7003
ddb555ed
JJ
7004 PR debug/47858
7005 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
7006 (gimple_build_debug_source_bind_stat): New prototype.
7007 (gimple_build_debug_source_bind): Define.
7008 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
7009 gimple_debug_source_bind_get_value,
7010 gimple_debug_source_bind_get_value_ptr,
7011 gimple_debug_source_bind_set_var,
7012 gimple_debug_source_bind_set_value): New inlines.
7013 * gimple.c (gimple_build_debug_source_bind_stat): New function.
7014 * gimple-pretty-print.c (dump_gimple_debug): Handle
7015 GIMPLE_DEBUG_SOURCE_BIND.
7016 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
7017 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7018 * tree-parloops.c (eliminate_local_variables,
7019 separate_decls_in_region): Likewise.
7020 (separate_decls_in_region_debug): Renamed from
7021 separate_decls_in_region_debug_bind. Handle
7022 gimple_debug_source_bind_p.
7023 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
7024 prototypes.
7025 (DECL_HAS_DEBUG_ARGS_P): Define.
7026 (struct tree_function_decl): Add has_debug_args_flag field.
7027 * tree.c (debug_args_for_decl): New variable.
7028 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
7029 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
7030 (rewrite_debug_stmt_uses): New function.
7031 (rewrite_stmt): Use it to rewrite debug stmt uses.
7032 * rtl.def (DEBUG_PARAMETER_REF): New.
7033 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
7034 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
7035 DEBUG_PARAMETER_REF.
7036 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
7037 * print-rtl.c (print_rtx): Likewise.
7038 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
7039 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
7040 debug stmts in the first bb.
7041 * tree-inline.c (remap_ssa_name): If remapping default def
7042 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
7043 a source bind debug stmt.
7044 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
7045 (maybe_move_debug_stmts_to_successors): Likewise.
7046 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
7047 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
7048 debug args vector from old_decl to new_decl.
7049 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
7050 or modified parameters, add debug bind stmts before call
0d5e0c1b 7051 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
ddb555ed
JJ
7052 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
7053 on DECL_DEBUG_EXPRs from debug args vector.
7054 (expand_debug_source_expr): New function.
7055 (expand_debug_locations): Use it for source bind insns.
7056 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
7057 * var-tracking.c (prepare_call_arguments): Add debug args
7058 to call_arguments if any.
7059 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
0d5e0c1b
UB
7060 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
7061 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
ddb555ed
JJ
7062 (get_ref_die_offset, parameter_ref_descriptor): New functions.
7063 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
7064 (gen_subprogram_die): Handle parameters identified by
7065 DEBUG_PARAMETER_REF.
7066
ccdc2164
NS
70672011-06-22 Nathan Sidwell <nathan@codesourcery.com>
7068
7069 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
7070 * doc/install.texi (Configuration): Document --with-tls.
ccdc2164
NS
7071 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
7072 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
7073 (arm_tls_descseq_addr): New.
7074 (legitimize_tls_address): Add tlsdesc support.
7075 (arm_cannot_copy_insn_p): Check for tlscall.
7076 (arm_emit_tls_decoration): Likewise.
7077 * config/arm/arm.h (TARGET_GNU2_TLS): New.
7078 (OPTION_DEFAULT_SPECS): Add with-tls support.
7079 * config/arm/arm.md (R1_REGNUM): Define.
7080 (tlscall): New.
7081 * config/arm/arm.opt (tls_type): New enumeration type and values.
7082 (mtls-dialect): New switch.
7083 * config/arm/arm-opts.h (enum tls_type): New.
7084
70e41a6a
NP
70852011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
7086
7087 * attribs.c (register_attribute): Added assert to check that all
7088 attribute specs are registered with a name that is not empty and
7089 does not start with '_'.
7090 (decl_attributes): Avoid the lookup of the "naked" attribute spec
7091 if the function has no attributes.
7092 * tree.c (is_attribute_with_length_p): Removed.
7093 (is_attribute_p): Removed.
0d5e0c1b 7094 (private_is_attribute_p): New.
70e41a6a
NP
7095 (private_lookup_attribute): New.
7096 (lookup_attribute): Removed.
7097 (lookup_ident_attribute): New.
7098 (remove_attribute): Require the first argument to be in the form
7099 'text', not '__text__'. Updated asserts.
7100 (merge_attributes): Use lookup_ident_attributes instead of
7101 lookup_attribute.
7102 (merge_dllimport_decl_attributes): Use remove_attribute.
7103 (attribute_list_contained): Likewise.
7104 (attribute_list_equal): Immediately return 1 if the arguments are
7105 identical pointers.
7106 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
7107 'int'. Require the first argument to be in the form 'text', not
7108 '__text__'. Require the second argument to be an identifier.
7109 (lookup_attribute): Made inline. Require the first argument to be
7110 in the form 'text', not '__text__'.
7111 (private_is_attribute_p, private_lookup_attribute): New.
7112 Updated comments.
0d5e0c1b 7113
e0a8ecf2
AM
71142011-06-21 Andrew MacLeod <amacleod@redhat.com>
7115
7116 * builtins.c: Add sync_ or SYNC__ to builtin names.
7117 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
7118 * omp-low.c: Add sync_ or SYNC__ to builtin names.
7119
663827d3 71202011-06-21 Georg-Johann Lay <avr@gjlay.de>
637c11bd 7121
663827d3
GJL
7122 PR target/33049
7123 * config/avr/avr.md (extzv): New expander.
7124 (*extzv): New insn.
7125 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
7126 * config/avr/constraints.md (C04): New constraint.
7127 * doc/md.texi (Machine Constraints): Document it.
7128
146aef0b
JJ
71292011-06-21 Jakub Jelinek <jakub@redhat.com>
7130
7131 PR middle-end/49489
7132 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
7133 unsignedp argument instead of 1 for clrsb_optab.
7134 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
7135 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
7136 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
7137 * optabs.c (widen_leading): Call widen_operand and expand_unop
7138 with 0 as unsignedp argument instead of 1 for clrsb_optab.
637c11bd 7139 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
146aef0b 7140
c0503294
GJL
71412011-06-21 Georg-Johann Lay <avr@gjlay.de>
7142
7143 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
7144
3801c801
BS
71452011-06-21 Bernd Schmidt <bernds@codesourcery.com>
7146
0bddee8e
BS
7147 * gensupport.c (add_define_attr): New static function.
7148 (is_predicable): Allow multi-alternative lists for the "predicable"
7149 attribute.
7150 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
7151 (process_one_cond_exec): Call alter_attrs_for_insn.
7152 * doc/md.texi (Defining Attributes): Mention some standard names.
7153 (Conditional Execution): Update documentation for "predicable".
7154
3801c801
BS
7155 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
7156 __builtin_clrsbll): Document.
7157 * doc/rtl.texi (clrsb): New entry.
7158 * optabs.c (widen_leading): Renamed from widen_clz. New argument
7159 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
7160 (expand_unop): Handle clrsb_optab.
7161 (init_optabs): Initialize it.
7162 * optabs.h (enum optab_index): New entry OTI_clrsb.
7163 (clrsb_optab): Define.
7164 * genopinit.c (optabs): Add an entry for it.
7165 * builtins.c (expand_builtin): Handle clrsb builtin functions.
7166 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
7167 BUILT_IN_CLRSBLL): New.
7168 * rtl.def (CLRSB): New code.
7169 * dwarf2out.c (mem_loc_descriptor): Handle it.
7170 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7171 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
7172 and popcount.
7173 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
7174 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
7175 (__ctzDI2): Move declaration.
7176 * config/bfin/bfin.md (clrsbsi2): New expander.
7177 (signbitssi2): Use the CLRSB rtx.
7178 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
7179 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
7180
55f01229
RG
71812011-06-21 Richard Guenther <rguenther@suse.de>
7182
637c11bd 7183 * ipa-inline-transform.c (inline_transform): Fix previous change.
55f01229 7184
5181cd6a
IR
71852011-06-21 Ira Rosen <ira.rosen@linaro.org>
7186
7187 PR tree-optimization/49478
7188 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
7189 with constant operand.
7190
e4ee3d70
RG
71912011-06-21 Richard Guenther <rguenther@suse.de>
7192
7193 * ipa-inline-transform.c (inline_transform): Fix typo.
637c11bd 7194
7b7ec6c5
RG
71952011-06-21 Richard Guenther <rguenther@suse.de>
7196
7197 PR tree-optimization/49483
7198 * tree-vect-stmts.c (vectorizable_assignment): Also handle
7199 VIEW_CONVERT_EXPR conversions.
7200
1b916ca6
JM
72012011-06-21 Joseph Myers <joseph@codesourcery.com>
7202
7203 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
7204 * config/avr/avr-tables.opt: New file (generated).
7205 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
7206 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
7207 avr-mcus.def.
7208 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
7209 (avr_option_override): Don't process -mmcu= argument here. Set
7210 avr_current_device using avr_mcu_index.
637c11bd 7211 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
1b916ca6
JM
7212 * config/avr/avr.opt (mmcu=): Use Enum.
7213 * config/avr/t-avr (avr-devices.o): Update dependencies.
7214 ($(srcdir)/config/avr/avr-tables.opt): New.
7215 * target.def (help): Remove.
7216 * doc/tm.texi.in (TARGET_HELP): Remove.
7217 * doc/tm.texi: Regenerate.
7218 * opts.c: Don't include target.h.
7219 (common_handle_option): Don't call targetm.help.
7220 * system.h (TARGET_HELP): Poison.
7221 * Makefile.in (opts.o): Update dependencies.
7222
7ecfa34f
RO
72232011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7224
7225 * config/usegld.h: New file.
7226 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
7227 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
637c11bd 7228 (LIB_SPEC): Likewise. Search /lib.
7ecfa34f
RO
7229 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
7230 (RDYNAMIC_SPEC): Handle GNU ld.
637c11bd
UB
7231 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
7232 Define.
7ecfa34f
RO
7233 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
7234 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
7235 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
7236 (STACK_CHECK_STATIC_BUILTIN): Define.
7237 * config/sol2.opt (compat-bsd): Remove.
7238 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
7239 * config/sol2-bi.h: New file.
7240 * config/sol2-gld.h: Remove.
7241 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
7242 (NO_DBX_BNSYM_ENSYM): Remove.
7243 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
7244 (STACK_CHECK_STATIC_BUILTIN): Remove.
7245 Test USE_GLD instead of TARGET_GNU_LD.
7246 * config/i386/sol2-10.h: Rename to ...
7247 * config/i386/sol2-bi.h .. this.
7248 (SUBTARGET_EXTRA_SPECS): Redefine.
7249 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
7250 (MULTILIB_DEFAULTS): Remove.
7251 (DEFAULT_ARCH32_P): Define.
7252 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
7253 (ARCH64_SUBDIR): Define.
7254 Test USE_GLD instead of TARGET_GNU_LD.
7255 (I386_EMULATION): Rename to ...
7256 (ARCH32_EMULATION): ... this.
7257 (X86_64_EMULATION): Rename to ...
7258 (ARCH64_EMULATION): ... this.
7259 (TARGET_LD_EMULATION): Remove.
7260 (LINK_ARCH_SPEC): Remove.
7261 * config/i386/sol2-gas.h: Remove.
7262 * config/i386/t-sol2-10: Rename to ...
7263 * config/i386/t-sol2-64: ... this.
7264 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
7265 (AS_SPARC64_FLAG): Define.
7266 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
7267 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
7268 depending on TARGET_CPU_DEFAULT.
7269 (CPP_CPU_SPEC): Redefine.
7270 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
7271 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
7272 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
7273 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
7274 ASM_ARCH_DEFAULT_SPEC): Redefine.
7275 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7276 LINK_ARCH_DEFAULT_SPEC.
7277 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
7278 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
7279 (ARCH64_SUBDIR): Define.
7280 (LINK_ARCH64_SPEC): Redefine.
7281 (CC1_SPEC): Redefine.
7282 (OPTION_DEFAULT_SPECS): Redefine.
7283 (MULTILIB_DEFAULTS): Define.
7284 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
7285 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
7286 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
7287 (NO_DBX_BNSYM_ENSYM): Remove.
7288 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
7289 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
7290 (TARGET_ASM_NAMED_SECTION): Likewise.
7291 (STACK_CHECK_STATIC_BUILTIN): Remove.
7292 * config/sparc/sol2-bi.h: Remove.
7293 * config/sparc/sol2-gas-bi.h: Remove.
7294 * config/sparc/sol2-gas.h: Remove.
7295 * config/sparc/sol2-gld-bi.h: Remove.
7296 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
7297 common parts ...
7298 (*-*-solaris2*): ... here.
7299
4b583c43 73002011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 7301
4b583c43 7302 PR other/43564
637c11bd
UB
7303 * ipa-inline.c (can_inline_edge_p): Check
7304 !DECL_DISREGARD_INLINE_LIMITS.
7305
3bb556ad 73062011-06-21 Christian Bruel <christian.bruel@st.com>
637c11bd 7307
3bb556ad
CB
7308 PR middle-end/49139
7309 * cgraphunit.c (process_function_and_variable_attributes): warn when
7310 always_inline functions that are not inline.
637c11bd
UB
7311 * ipa-inline-transform.c (inline_transform): Always call
7312 optimize_inline.
7313 * tree-inline.c (tree_inlinable_function_p): Use error instead
7314 of sorry.
3bb556ad 7315 (expand_call_inline): Likewise.
637c11bd 7316
f1ee724c
JJ
73172011-06-21 Jakub Jelinek <jakub@redhat.com>
7318
7319 * Makefile.in (dg_target_exps): Set.
7320 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
7321 instead of 7, try to divide it more evenly.
7322
73232011-06-20 Changpeng Fang <changpeng.fang@amd.com>
97ef5ae6 7324
931050d0 7325 PR target/49089
97ef5ae6
CF
7326 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
7327 (avx256_split_unaligned_store): New definition.
7328 (ix86_option_override_internal): Enable avx256 unaligned load/store
7329 splitting only when avx256_split_unaligned_load/store is set.
7330
998c75b6
BS
73312011-06-20 Bernd Schmidt <bernds@codesourcery.com>
7332
7333 * regrename.c (scan_rtx_reg): Handle the case where we write to an
7334 open chain in a smaller mode without failing the entire block.
7335
3a769784
AM
73362011-06-21 Alan Modra <amodra@gmail.com>
7337
7338 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
7339 CONST high part large-toc address.
7340 (rs6000_tls_referenced_p): Make static.
7341 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
7342
c2954af9
RR
73432011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7344
7345 PR target/49385
7346 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
7347 one of the operands is a register.
7348
a95015b6
KT
73492011-06-20 Kai Tietz <ktietz@redhat.com>
7350
637c11bd
UB
7351 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
7352 operations in combination with binary and.
a95015b6 7353
49a30d00
BS
73542011-06-20 Bernd Schmidt <bernds@codesourcery.com>
7355
7356 * regrename.c (do_replace): Don't update notes.
7357
3bae1d98
AM
73582011-06-20 Alan Modra <amodra@gmail.com>
7359
7360 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
7361 of toc-relative address in CONST.
7362 (rs6000_delegitimize_address): Recognize changed address.
7363 (rs6000_legitimize_reload_address): Likewise.
7364 (rs6000_emit_move): Don't force these constants to memory.
7365 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
7366 toc-relative address in CONST.
7367 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
7368 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
7369
10937b0c
L
73702011-06-18 H.J. Lu <hongjiu.lu@intel.com>
7371
637c11bd 7372 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
10937b0c
L
7373 (count_trailing_zeros): Likewise.
7374
0c587260
L
73752011-06-18 H.J. Lu <hongjiu.lu@intel.com>
7376
7377 PR other/49325
7378 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
7379 .init_array can be used with .ctors on targets.
7380 * configure: Regenerated.
7381
c020c92b
EB
73822011-06-18 Eric Botcazou <ebotcazou@adacore.com>
7383
7384 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
7385 if the element type is volatile.
7386
cd35bcf7
JH
73872011-06-18 Jan Hubicka <jh@suse.cz>
7388
7389 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
7390 extra name aliases.
7391 (lto_symtab_resolve_can_prevail_p): Likewise.
7392 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
7393 * cgraphbuild.c (record_reference): Remove extra body alias code.
7394 (mark_load): Likewise.
7395 (mark_store): Likewise.
7396 * cgraph.h (varpool_node): Remove extra_name filed;
7397 add alias_of and extraname_alias.
7398 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
7399 (varpool_alias_aliased_node): New inline function.
7400 (varpool_variable_node): New function.
7401 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
7402 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
7403 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
7404 (input_varpool_node): Likewise.
7405 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
7406 (varpool_externally_visible_p): Remove extra body alias code.
7407 (function_and_variable_visibility): Likewise.
7408 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
7409 (ipa_pta_execute): Use it.
7410 * varpool.c (varpool_remove_node): Remove extra name alias code.
7411 (varpool_mark_needed_node): Likewise.
7412 (varpool_analyze_pending_decls): Analyze aliases.
7413 (assemble_aliases): New functoin.
7414 (varpool_assemble_decl): Use it.
7415 (varpool_create_variable_alias): New function.
7416 (varpool_extra_name_alias): Rewrite.
7417 (varpool_for_node_and_aliases): New function.
7418
c96b4102
JJ
74192011-06-18 Jakub Jelinek <jakub@redhat.com>
7420
7421 PR target/49411
7422 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
7423 last_arg_constant and last argument doesn't match its predicate,
7424 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
7425 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
7426 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
7427 spelling of error message.
7428 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
7429 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
7430 const_0_to_255_operand instead of const_int_operand.
7431
7432 Revert:
7433 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7434
7435 * config/i386/sse.md (blendbits): Remove mode attribute.
7436 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
7437 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
7438 Check integer value of operand 3 in insn constraint.
7439
9a2091cd
HPN
74402011-06-17 Hans-Peter Nilsson <hp@axis.com>
7441
7442 PR rtl-optimization/48542
7443 * reload.c (find_equiv_reg): Stop looking when finding a
7444 setjmp-type call.
7445 * reload1.c (reload_as_needed): Invalidate all reload
7446 registers when crossing a setjmp-type call.
7447
361b51c0
JL
74482011-06-16 Jeff Law <law@redhat.com>
7449
7450 * tree-ssa-threadupdate.c (struct redirection_data): New field
7451 intermediate_edge.
7452 (THREAD_TARGET2): Define.
637c11bd 7453 (redirection_data_eq): Also check that the intermediate edge is equal.
361b51c0
JL
7454 (lookup_redirection_data): Drop useless argument. Extract the
7455 outgoing_edge and intermediate edge from E. Callers updated.
7456 (copy_phi_args, update_destination_phis): New functions.
7457 (fix_duplicate_block_edges): Likewise.
7458 (create_edge_and_update_destination_phis): Duplicate all the edges
7459 hung off e->aux. Use copy_phi_args.
7460 (create_duplicates): Use fix_duplicate_block_edges.
7461 (fixup_template_block): Likewise.
7462 (redirect_edges): If necessary, redirect the joiner block's incoming
7463 edge to the duplicate of the joiner block.
7464 (thread_block): Don't muck up loops when threading through a joiner
7465 block.
637c11bd 7466 (thread_through_loop_header): Handle threading through a joiner block.
361b51c0
JL
7467 (mark_threaded_blocks, register_jump_thread): Likewise.
7468 * tree-flow.h (register_jump_thread): Add new argument. Callers
7469 updated.
7470 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
7471 (thread_across_edge): Handle threading through a joiner block.
637c11bd 7472
ee460e75
MJ
74732011-06-16 Martin Jambor <mjambor@suse.cz>
7474
7475 PR tree-optimization/49343
7476 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
7477 calculate offset, provide 2nd operand for the new COMPONENT_REF.
7478
a285ba2e
IS
74792011-06-16 Iain Sandoe <iains@gcc.gnu.org>
7480
7481 * config/darwin-protos.h (machopic_select_rtx_section): Move to
7482 inside RTX_CODE ifdef.
7483
0703f020
TV
74842011-06-16 Tom de Vries <tom@codesourcery.com>
7485
7486 PR target/45098
637c11bd
UB
7487 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
7488 Disallow NULL pointer for pointer arithmetic.
0703f020 7489
900c07da
RR
74902011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7491
7492 PR target/49398
7493 Revert.
7494 2011-06-10 Wei Guozhi <carrot@google.com>
7495
7496 PR target/45335
7497 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
7498 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
7499 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
7500 related peephole2.
7501 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
7502 related peephole2.
7503 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
7504 (arm_legitimate_ldrd_p): New prototype.
7505 (arm_output_ldrd): New prototype.
7506 * config/arm/arm.c (arm_check_ldrd_operands): New function.
7507 (arm_legitimate_ldrd_p): New function.
7508 (arm_output_ldrd): New function.
7509
c020c92b 75102011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
d5cc9181
JR
7511
7512 PR middle-end/46500
7513 * doc/tm.texi.in: Update Copyright date.
7514 * doc/tm.texi: Regenerate.
7515 * targhooks.c (default_setup_incoming_varargs): Replace
7516 CUMULATIVE_ARGS* argument type with cumulative_args_t.
7517 (default_pretend_outgoing_varargs_named): Likewise.
7518 (hook_pass_by_reference_must_pass_in_stack): Likewise.
7519 (hook_callee_copies_named): Likewise.
7520 (default_function_arg_advance): Likewise.
7521 (default_function_arg): Likewise.
7522 (default_function_incoming_arg): Likewise.
7523 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
7524 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
7525 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
7526 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7527 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
7528 * targhooks.h (default_setup_incoming_varargs): Likewise.
7529 (default_pretend_outgoing_varargs_named): Likewise.
7530 (hook_pass_by_reference_must_pass_in_stack): Likewise.
7531 (hook_callee_copies_named): Likewise.
7532 (default_function_arg_advance): Likewise.
7533 (default_function_arg): Likewise.
7534 (default_function_incoming_arg): Likewise.
7535 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
7536 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
7537 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
7538 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7539 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
7540 * target.def (pass_by_reference): Likewise.
7541 (setup_incoming_varargs, strict_argument_naming): Likewise.
7542 (pretend_outgoing_varargs_named, callee_copies): Likewise.
7543 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
7544 (function_incoming_arg): Likewise.
7545 * target.h: Don't include "tm.h" .
7546 (cumulative_args_t): New typedef.
7547 [GCC_TM_H] (get_cumulative_args): New static inline function.
7548 [GCC_TM_H] (pack_cumulative_args): Likewise.
7549 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
7550 argument type with cumulative_args_t.
7551 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
7552 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
7553 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
7554 (frv_arg_partial_bytes, frv_function_arg): Likewise.
7555 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
7556 (frv_function_arg_1): Likewise.
7557 * config/s390/s390.c (s390_pass_by_reference): Likewise.
7558 (s390_function_arg_advance, s390_function_arg): Likewise.
7559 * config/m32c/m32c.c (m32c_function_arg): Likewise.
7560 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
7561 (m32c_strict_argument_naming): Likewise.
7562 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
7563 (spu_function_arg_advance): Likewise.
7564 (spu_setup_incoming_varargs): Likewise. Make static.
7565 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
7566 Remove prototype.
7567 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
7568 CUMULATIVE_ARGS* argument type with cumulative_args_t.
7569 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
7570 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
7571 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
7572 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
7573 (mep_pass_by_reference, mep_function_arg): Likewise.
7574 (mep_function_arg_advance): Likewise.
7575 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7576 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
7577 (m32r_function_arg, m32r_function_arg_advance): Likewise.
7578 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
7579 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
7580 (ix86_function_arg, ix86_pass_by_reference): Likewise.
7581 (ix86_setup_incoming_varargs): Likewise.
7582 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
7583 (sh_strict_argument_naming): Likewise.
7584 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
7585 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
7586 (sh_function_arg_advance, sh_function_arg): Likewise.
7587 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
7588 (pdp11_function_arg_advance): Likewise.
7589 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
7590 Likewise.
7591 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
7592 * config/avr/avr.c (avr_function_arg): Likewise.
7593 (avr_function_arg_advance): Likewise.
7594 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
7595 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
7596 (xtensa_function_arg_1): Likewise.
637c11bd
UB
7597 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
7598 Likewise.
d5cc9181
JR
7599 (xstormy16_function_arg): Likewise.
7600 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
7601 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
7602 (fr30_function_arg_advance): Likewise.
7603 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7604 (lm32_function_arg, lm32_function_arg_advance): Likewise.
7605 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
7606 (moxie_function_arg, moxie_function_arg_advance): Likewise.
7607 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
7608 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
7609 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
7610 (cris_function_arg, cris_function_incoming_arg): Likewise.
7611 (cris_function_arg_advance, cris_function_arg_1): Likewise.
7612 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
7613 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
7614 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
7615 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
7616 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
7617 (mn10300_arg_partial_bytes): Likewise.
7618 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
7619 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
7620 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
7621 (ia64_function_arg_1): Likewise.
7622 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
7623 (m68k_function_arg): Likewise.
7624 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
7625 (rs6000_function_arg, setup_incoming_varargs): Likewise.
7626 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
7627 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
7628 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
7629 (picochip_arg_advance): Likewise.
7630 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
7631 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
7632 (mcore_function_arg_advance): Likewise.
7633 * config/score/score.c (score_pass_by_reference): Likewise.
7634 (score_function_arg_advance): Likewise.
7635 (score_arg_partial_bytes): Likewise. Make static.
7636 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
7637 * config/arm/arm.c (arm_arg_partial_bytes): Replace
7638 CUMULATIVE_ARGS* argument type with cumulative_args_t.
7639 (arm_function_arg, arm_function_arg_advance): Likewise.
7640 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
7641 * config/pa/pa.c (pa_pass_by_reference): Likewise.
7642 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
7643 (pa_function_arg): Likewise.
7644 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
7645 (mips_function_arg, mips_function_arg_advance): Likewise.
7646 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
7647 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
7648 * config/vax/vax.c (vax_function_arg): Likewise.
7649 (vax_function_arg_advance): Likewise.
7650 * config/h8300/h8300.c (h8300_function_arg): Likewise.
7651 (h8300_function_arg_advance): Likewise.
7652 * config/v850/v850.c (v850_pass_by_reference): Likewise.
7653 (v850_strict_argument_naming, v850_function_arg): Likewise.
7654 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
7655 (v850_setup_incoming_varargs): Likewise.
7656 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
7657 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
7658 (mmix_function_arg, mmix_pass_by_reference): Likewise.
7659 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
7660 with const void *.
7661 * config/bfin/bfin.c (setup_incoming_varargs): Replace
7662 CUMULATIVE_ARGS* argument type with cumulative_args_t.
7663 (bfin_function_arg_advance, bfin_function_arg): Likewise.
7664 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
7665 * calls.c (emit_call_1): Change type of args_so_far to
7666 cumulative_args_t. Changed all callers.
7667 (initialize_argument_information): Likewise.
7668 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
7669 * dse.c (get_call_args): Likewise.
7670 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7671 * function.c (pass_by_reference, reference_callee_copied): Likewise.
7672 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
7673 New member args_so_far_v. Changed all users.
7674 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
7675 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7676 * config/mips/mips.c (mips_output_args_xfer): Likewise.
7677 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
7678 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
637c11bd
UB
7679 * config/microblaze/microblaze.c (microblaze_expand_prologue):
7680 Likewise.
d5cc9181
JR
7681 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
7682 m32r_pass_by_reference.
7683
51312233
IR
76842011-06-16 Ira Rosen <ira.rosen@linaro.org>
7685
7686 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
7687 argument to be a VEC of statements.
637c11bd
UB
7688 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
7689 assert that pattern statements have to have their vector type set.
51312233
IR
7690 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
7691 Change the first argument to be a VEC of statements. Update
7692 documentation.
7693 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
7694 (vect_handle_widen_mult_by_const): New function.
637c11bd
UB
7695 (vect_recog_widen_mult_pattern): Change the first argument to be a
7696 VEC of statements. Update documentation. Check that the constant is
7697 INTEGER_CST. Support multiplication by a constant that fits an
7698 intermediate type - call vect_handle_widen_mult_by_const.
51312233
IR
7699 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
7700 call. Handle additional pattern statements if necessary.
7701
fd4df33d
NC
77022011-06-16 Nick Clifton <nickc@redhat.com>
7703
7704 PR target/49427
7705 * config.gcc: Set cpu_type to v850 for any V850 architecture.
7706 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
7707 md_file, extra_modes, out_file and extra_options are these are all
7708 deduced from cpu_type.
7709
fbd05da0
GJL
77102011-06-16 Georg-Johann Lay <avr@gjlay.de>
7711
7712 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
7713 truncation mask to 63.
7714
0ad8bb3b
GJL
77152011-06-16 Georg-Johann Lay <avr@gjlay.de>
7716
7717 PR target/49313
7718 PR target/29524
7719 * longlong.h: Add AVR support:
7720 (count_leading_zeros): New macro.
7721 (count_trailing_zeros): New macro.
7722 (COUNT_LEADING_ZEROS_0): New macro.
637c11bd
UB
7723 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
7724 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
7725 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
7726 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
0ad8bb3b
GJL
7727 (LIB2FUNCS_EXCLUDE): Add _clz.
7728 * config/avr/libgcc.S (XCALL): Move up in file.
7729 (XJMP): New C Macro.
7730 (DEFUN): New asm macro.
7731 (ENDF): New asm macro.
7732 (__ffssi2): New function.
7733 (__ffshi2): New function.
7734 (__loop_ffsqi2): New function.
7735 (__ctzsi2): New function.
7736 (__ctzhi2): New function.
7737 (__clzdi2): New function.
7738 (__clzsi2): New function.
7739 (__clzhi2): New function.
7740 (__paritydi2): New function.
7741 (__paritysi2): New function.
7742 (__parityhi2): New function.
59c1e10b 7743 (__parityqi2): New function.
0ad8bb3b
GJL
7744 (__popcounthi2): New function.
7745 (__popcountsi2): New function.
7746 (__popcountdi2): New function.
7747 (__popcountqi2): New function.
7748 (__bswapsi2): New function.
7749 (__bswapdi2): New function.
7750 (__ashldi3): New function.
7751 (__ashrdi3): New function.
7752 (__lshrdi3): New function.
7753 Fix suspicous lines.
7754
12430896
RG
77552011-06-16 Richard Guenther <rguenther@suse.de>
7756
7757 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
7758 the same as x != 0.
637c11bd
UB
7759 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
7760 to (bool) X & 1.
12430896
RG
7761 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
7762 equality compares against zero for the lower bit.
7763
09302442
JJ
77642011-06-16 Jakub Jelinek <jakub@redhat.com>
7765
7766 PR tree-optimization/49419
7767 * tree-vrp.c (execute_vrp): Call init_range_assertions
7768 before estimate_numbers_of_iterations, call
7769 free_number_of_iterations_estimates before calling
7770 remove_range_assertions.
7771
81c41166
RE
77722011-06-16 Revital Eres <revital.eres@linaro.org>
7773
7774 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
7775 (struct partial_schedule): Add rows_length field.
7776 (verify_partial_schedule): Check rows_length.
7777 (ps_insert_empty_row): Handle rows_length.
7778 (create_partial_schedule): Likewise.
7779 (free_partial_schedule): Likewise.
7780 (reset_partial_schedule): Likewise.
7781 (create_ps_insn): Remove rest_count argument.
7782 (remove_node_from_ps): Update rows_length.
7783 (add_node_to_ps): Update rows_length and call create_ps_insn
7784 without passing row_rest_count.
7785 (rotate_partial_schedule): Update rows_length.
7786
d24dc7b3
RE
77872011-06-16 Revital Eres <revital.eres@linaro.org>
7788
7789 * ddg.c (add_intra_loop_mem_dep): New function.
7790 (build_intra_loop_deps): Call it.
7791
361b51c0 77922011-06-13 Jeff Law <law@redhat.com>
2098e438
JL
7793
7794 * df-problems.c (df_lr_local_compute): Manually CSE
7795 PIC_OFFSET_TABLE_REGNUM.
7796 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
7797 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
7798
85ce9375
JH
77992011-06-13 Jan Hubicka <jh@suse.cz>
7800
7801 * cgraphunit.c (handle_alias_pairs): New function.
7802 (cgraph_finalize_compilation_unit): Use it.
7803 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
7804 as externally visible.
7805
a577c405
RG
78062011-06-15 Richard Guenther <rguenther@suse.de>
7807
7808 * expr.c (expand_expr_real_2): Reduce all integral types to
7809 bitfield precision.
7810 (expand_expr_real_1): Likewise.
7811
93536c97
MJ
78122011-06-15 Martin Jambor <mjambor@suse.cz>
7813
7814 PR tree-optimization/48613
7815 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
7816 ipa_node_params_vector is NULL.
fd4df33d 7817
ba45cfc4
JJ
78182011-06-15 Jakub Jelinek <jakub@redhat.com>
7819
7820 PR debug/49382
7821 * dwarf2out.c (dw_loc_list_node): Add force field.
637c11bd
UB
7822 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
7823 location in the list, even if it is modified before first real insn.
ba45cfc4 7824 (output_loc_list): Emit empty ranges with force flag set.
637c11bd 7825 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
ba45cfc4 7826
6fc5966f
AM
78272011-06-15 Alexander Monakov <amonakov@ispras.ru>
7828
7829 PR target/49349
7830 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
7831 (fence_to_rewind). Use it to notice when bookkeeping will be placed
7832 above a fence. Update comments.
7833 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
7834 placed just above it. Do not allow NULL place_to_insert.
7835
9d5e7640
IR
78362011-06-15 Ira Rosen <ira.rosen@linaro.org>
7837
7838 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
7839 (slpeel_tree_peel_loop_to_edge): Don't call
7840 remove_dead_stmts_from_loop.
7841 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
7842 remove irrelevant pattern statements. For irrelevant statements
7843 check if it is the last statement of a detected pattern, use
7844 corresponding pattern statement instead.
7845 (destroy_loop_vec_info): No need to remove pattern statements,
7846 only free stmt_vec_info.
7847 (vect_transform_loop): For irrelevant statements check if it is
7848 the last statement of a detected pattern, use corresponding
7849 pattern statement instead.
7850 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
7851 pattern statements. Set basic block for the new statement.
7852 (vect_pattern_recog): Update documentation.
7853 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
7854 operands of pattern statements.
7855 (vectorizable_call): Fix printing. In case of a pattern statement
7856 use the lhs of the original statement when creating a dummy
7857 statement to replace the original call.
7858 (vect_analyze_stmt): For irrelevant statements check if it is
7859 the last statement of a detected pattern, use corresponding
7860 pattern statement instead.
7861 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
7862 statements use gsi of the original statement.
7863
677f3fa8
JM
78642011-06-14 Joseph Myers <joseph@codesourcery.com>
7865
7866 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
7867 common/common-target-def.h.
7868 * target.def (default_target_flags, handle_option,
7869 supports_split_stack, optimization_table, init_struct,
7870 except_unwind_info, unwind_tables_default, have_named_sections):
7871 Move to common/common-target.def.
7872 * target.h (enum opt_levels, struct default_options): Move to
7873 common/common-target.h.
7874 * targhooks.c (default_except_unwind_info,
7875 dwarf2_except_unwind_info, sjlj_except_unwind_info,
7876 default_target_handle_option, empty_optimization_table): Move to
7877 common/common-targhooks.c.
7878 * targhooks.h (default_except_unwind_info,
7879 dwarf2_except_unwind_info, sjlj_except_unwind_info,
7880 default_target_handle_option, empty_optimization_table): Move to
7881 common/common-targhooks.h.
7882 * common/common-target-def.h: Include common/common-targhooks.h.
7883 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
7884 defined.
7885 * common/common-target.def (handle_option, option_init_struct,
7886 option_optimization_table, default_target_flags,
7887 except_unwind_info, supports_split_stack, unwind_tables_default,
7888 have_named_sections): Move from target.def.
7889 (HOOK_PREFIX): Undefine at end of file.
7890 * common/common-target.h: Include input.h.
7891 (enum opt_levels, struct default_options): Move from target.h.
7892 * common/common-targhooks.c, common/common-targhooks.h: New.
7893 * config.gcc (target_has_targetm_common): Default to yes.
7894 (moxie*): Set target_has_targetm_common=no.
7895 (hppa*-*-*): Don't set target_has_targetm_common=yes.
7896 * doc/tm.texi: Regenerate.
7897 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
7898 (C_TARGET_DEF_H): Add common/common-targhooks.h.
7899 (GCC_OBJS): Remove vec.o.
7900 (OBJS): Remove hooks.o and vec.o.
7901 (OBJS-libcommon-target): Add vec.o, hooks.o and
7902 common/common-targhooks.o.
7903 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
7904 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
7905 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
7906 cfglayout.o, $(out_object_file), $(common_out_object_file)):
7907 Update dependencies.
7908 (common/common-targhooks.o): New.
637c11bd 7909 * common/config/default-common.c: Include tm.h. Add FIXME comment.
677f3fa8
JM
7910 * common/config/pa/pa-common.c: Include more headers. Take
7911 copyright dates from pa.c.
7912 (pa_option_optimization_table, pa_handle_option,
7913 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
7914 TARGET_HANDLE_OPTION): Move from pa.c.
7915 * common/config/alpha/alpha-common.c,
7916 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
7917 common/config/bfin/bfin-common.c,
7918 common/config/cris/cris-common.c,
7919 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
7920 common/config/h8300/h8300-common.c,
7921 common/config/i386/i386-common.c,
7922 common/config/ia64/ia64-common.c,
7923 common/config/iq2000/iq2000-common.c,
7924 common/config/lm32/lm32-common.c,
7925 common/config/m32c/m32c-common.c,
7926 common/config/m32r/m32r-common.c,
7927 common/config/m68k/m68k-common.c,
7928 common/config/mcore/mcore-common.c,
7929 common/config/mep/mep-common.c,
7930 common/config/microblaze/microblaze-common.c,
7931 common/config/mips/mips-common.c,
7932 common/config/mmix/mmix-common.c,
7933 common/config/mn10300/mn10300-common.c,
7934 common/config/pdp11/pdp11-common.c,
7935 common/config/picochip/picochip-common.c,
7936 common/config/rs6000/rs6000-common.c,
7937 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
7938 common/config/score/score-common.c, common/config/sh/sh-common.c,
7939 common/config/sparc/sparc-common.c,
7940 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
7941 common/config/vax/vax-common.c,
7942 common/config/xstormy16/xstormy16-common.c,
7943 common/config/xtensa/xtensa-common.c: New.
7944 * config/alpha/alpha.c: Include common/common-target.h.
7945 (alpha_option_optimization_table, alpha_handle_option,
7946 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7947 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
7948 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
7949 * config/arm/arm.c (arm_option_optimization_table,
7950 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
7951 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
7952 arm-common.c.
7953 * config/avr/avr.c (avr_option_optimization_table,
7954 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
7955 to avr-common.c.
7956 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
7957 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
7958 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
7959 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
7960 * config/cris/cris.c (cris_option_optimization_table,
7961 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7962 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
7963 cris-common.c.
7964 * config/fr30/fr30.c (fr30_option_optimization_table,
7965 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
7966 to fr30-common.c.
7967 * config/frv/frv.c (frv_option_optimization_table,
7968 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
7969 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
7970 * config/h8300/h8300.c (h8300_option_optimization_table,
7971 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
7972 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
7973 * config/i386/i386-protos.h (ix86_handle_option): Declare.
7974 * config/i386/i386.c: Include common/common-target.h.
7975 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
7976 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
7977 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
7978 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
7979 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
7980 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
7981 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
7982 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
7983 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
7984 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
7985 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
7986 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
7987 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
7988 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
7989 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
7990 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
7991 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
7992 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
7993 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
7994 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
7995 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
7996 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
7997 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
7998 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
7999 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
8000 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
8001 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
8002 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
8003 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
8004 ix86_option_optimization_table, ix86_option_init_struct,
8005 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
8006 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8007 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
8008 i386-common.c.
8009 * config/i386/t-i386 (i386.o): Update dependencies.
8010 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
8011 * config/ia64/ia64.c (ia64_option_optimization_table,
8012 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
8013 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8014 ia64_handle_option): Move to ia64-common.c.
8015 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
8016 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
8017 * config/lm32/lm32.c (lm32_option_optimization_table,
8018 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
8019 to lm32-common.c.
8020 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
8021 m32c-common.c.
8022 * config/m32r/m32r.c (m32r_option_optimization_table,
8023 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8024 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
8025 m32r_handle_option): Move to m32r-common.c.
8026 (m32r_memory_move_cost): Remove comment referring to
8027 TARGET_HANDLE_OPTION.
8028 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
8029 Move to m68k-common.c.
8030 * config/mcore/mcore.c (mcore_option_optimization_table,
8031 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8032 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
8033 * config/mep/mep.c (mep_option_optimization_table,
8034 mep_handle_option, TARGET_HANDLE_OPTION,
8035 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
8036 Move to mep-common.c.
8037 * config/microblaze/microblaze.c
8038 (microblaze_option_optimization_table,
8039 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8040 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
8041 * config/mips/mips.c (mips_handle_option,
8042 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
8043 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
8044 mips-common.c.
8045 * config/mmix/mmix.c (mmix_option_optimization_table,
8046 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
8047 Move to mmix-common.c.
8048 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
8049 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
8050 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8051 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
8052 * config/pa/pa.c: Include common/common-target.h.
8053 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
8054 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8055 pa_handle_option): Move to pa-common.c.
8056 (pa_option_override): Use targetm_common.except_unwind_info.
8057 (pa_asm_output_mi_thunk, pa_function_section): Use
8058 targetm_common.have_named_sections.
8059 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
8060 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8061 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
8062 pdp11_handle_option, pdp11_option_init_struct): Move to
8063 pdp11-common.c.
8064 * config/picochip/picochip.c (picochip_option_optimization_table,
8065 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
8066 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
8067 * config/rs6000/rs6000.c: Include common/common-target.h.
8068 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
8069 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
8070 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
8071 rs6000_handle_option): Move to rs6000-common.c.
8072 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8073 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
8074 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8075 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
8076 * config/s390/s390.c (processor_flags_table,
8077 s390_option_optimization_table, s390_option_init_struct,
8078 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
8079 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8080 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
8081 * config/s390/s390.h (processor_flags_table): Declare.
8082 * config/score/score.c (score_option_optimization_table,
8083 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8084 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
8085 score_handle_option): Move to score-common.c.
8086 * config/sh/sh.c (sh_option_optimization_table,
8087 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
8088 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8089 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
8090 * config/sparc/sparc.c: Include common/common-target.h.
8091 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
8092 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
8093 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
8094 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
8095 spu_option_init_struct): Move to spu-common.c.
8096 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
8097 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
8098 * config/v850/v850.c (small_memory_physical_max,
8099 v850_handle_memory_optionn v850_handle_option,
8100 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
8101 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
8102 v850-common.c.
637c11bd 8103 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
677f3fa8
JM
8104 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
8105 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
8106 Move to xtensa-common.c.
8107 * cfglayout.c: Include common/common-target.h.
8108 (fixup_reorder_chain): Use targetm_common.have_named_sections.
8109 * cfgrtl.c: Include common/common-target.h.
8110 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
8111 targetm_common.have_named_sections.
8112 * dbxout.c: Include common/common-target.h.
8113 (dbxout_function_end): Use targetm_common.have_named_sections.
8114 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
8115 targetm_common.except_unwind_info.
8116 * dwarf2out.c: Include common/common-target.h.
8117 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
8118 dwarf2out_begin_prologue, dwarf2out_frame_init,
8119 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
8120 targetm_common.except_unwind_info.
8121 * except.c: Include common/common-target.h.
8122 (init_eh, finish_eh_generation,
8123 output_one_function_exception_table): Use
8124 targetm_common.except_unwind_info.
637c11bd 8125 (switch_to_exception_section): Use targetm_common.have_named_sections.
677f3fa8
JM
8126 * explow.c: Include common/common-target.h.
8127 * expr.c: Include common/common-target.h.
637c11bd 8128 (build_personality_function): Use targetm_common.except_unwind_info.
677f3fa8
JM
8129 * function.c: Include common/common-target.h.
8130 (expand_function_end): Use targetm_common.except_unwind_info.
8131 * haifa-sched.c: Include common/common-target.h.
637c11bd 8132 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
677f3fa8
JM
8133 * lto-opts.c: Include common/common-target.h instead of target.h.
8134 (lto_reissue_options): Use targetm_common.handle_option.
8135 * opts.c: Include common/common-target.h.
8136 (target_handle_option): Use targetm_common.handle_option.
8137 (init_options_struct): Update comment referring to
8138 targetm.target_option.optimization. Use
8139 targetm_common.default_target_flags,
8140 targetm_common.unwind_tables_default and
8141 targetm_common.option_init_struct.
8142 (default_options_optimization): Use
8143 targetm_common.option_optimization_table.
8144 (finish_options): Use targetm_common.except_unwind_info,
8145 targetm_common.unwind_tables_default,
8146 targetm_common.have_named_sections and
8147 targetm_common.supports_split_stack.
8148 * toplev.c: Include common/common-target.h.
8149 (process_options): Use targetm_common.have_named_sections.
8150 * tree-tailcall.c: Include common/common-target.h.
637c11bd 8151 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
677f3fa8 8152 * tree.c: Include common/common-target.h.
637c11bd 8153 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
677f3fa8
JM
8154 * varasm.c: Include common/common-target.h.
8155 (resolve_unique_section, hot_function_section,
8156 default_function_section): Use targetm_common.have_named_sections.
8157
d26c7090
ER
81582011-06-14 Easwaran Raman <eraman@google.com>
8159
8160 PR rtl-optimization/44194
8161 * dse.c: Include tree-flow.h
8162 (insn_info): Add new field non_frame_wild_read.
8163 (group_info): Add new fields escaped_n and escaped_p.
8164 (kill_on_calls): New variable.
8165 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
8166 (dse_step0): Initialize kill_on_calls.
8167 (can_escape): New function.
8168 (set_usage_bits): Add additional parameter; record information
8169 about escaped locations.
637c11bd 8170 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
d26c7090
ER
8171 (dse_step2_nospill): Set kill_on_calls based on
8172 group->escaped_n and group->escaped_n.
8173 (add_wild_read): Refactor into...
8174 (reset_active_stores): ... New function, and
8175 (free_read_records): ... New function.
8176 (add_non_frame_wild_read): New function.
8177 (scan_insn): Call add_non_frame_wild_read on non-const calls.
637c11bd 8178 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
d26c7090
ER
8179 (dse_step5_nospill): Call scan_reads_nospill for instructions
8180 marked as non_frame_wild_read.
637c11bd 8181 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
d26c7090 8182
c49a6962
JM
81832011-06-14 Joseph Myers <joseph@codesourcery.com>
8184
8185 * common/common-target-def.h, common/common-target.def,
8186 common/common-target.h, common/config/default-common.c,
8187 common/config/pa/pa-common.c: New files.
8188 * Makefile.in (common_out_file, common_out_object_file,
8189 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
8190 (OBJS-libcommon-target): Include $(common_out_object_file).
8191 (prefix.o): Update dependencies.
8192 ($(common_out_object_file), common/common-target-hooks-def.h,
8193 s-common-target-hooks-def-h): New.
8194 (s-tm-texi): Also check timestamp on common-target.def.
8195 (build/genhooks.o): Update dependencies.
8196 * config.gcc (common_out_file, target_has_targetm_common): Define.
8197 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
8198 TARGET_ALWAYS_STRIP_DOTDOT.
8199 * configure.ac (common_out_object_file): Define.
8200 (common_out_file, common_out_object_file): Substitute.
8201 (common): Create directory.
8202 * configure: Regenerate.
8203 * doc/tm.texi.in (targetm_common): Document.
8204 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
8205 * doc/tm.texi: Regenerate.
8206 * genhooks.c (hook_array): Also include common/common-target.def.
8207 * prefix.c (tm.h): Don't include.
8208 (common/common-target.h): Include.
8209 (ALWAYS_STRIP_DOTDOT): Don't define.
8210 (update_path): Use targetm_common.always_strip_dotdot instead of
8211 ALWAYS_STRIP_DOTDOT.
8212 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
8213
22c5fa5f
DL
82142011-06-14 David Li <davidxl@google.com>
8215
8216 * passes.c (execute_function_todo): Remove TODO_dump_func.
8217 (execute_one_pass): Remove TODO_dump_func.
8218 (execute_function_dump): New function.
8219 * tree-vrp.c: Remove TODO_dump_func.
8220 * regrename.c: Remove TODO_dump_func.
8221 * fwprop.c: Remove TODO_dump_func.
8222 * tree-into-ssa.c: Remove TODO_dump_func.
8223 * tree-complex.c: Remove TODO_dump_func.
8224 * tracer.c: Remove TODO_dump_func.
8225 * tree-loop-distribution.c: Remove TODO_dump_func.
8226 * postreload-gcse.c: Remove TODO_dump_func.
8227 * postreload.c: Remove TODO_dump_func.
8228 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
8229 * tree-tailcall.c: Remove TODO_dump_func.
8230 * ipa-cp.c: Remove TODO_dump_func.
8231 * final.c: Remove TODO_dump_func.
8232 * tree-emutls.c: Remove TODO_dump_func.
8233 * omp-low.c: Remove TODO_dump_func.
8234 * tree-ssa-dse.c: Remove TODO_dump_func.
8235 * tree-ssa-uncprop.c: Remove TODO_dump_func.
8236 * auto-inc-dec.c: Remove TODO_dump_func.
8237 * reorg.c: Remove TODO_dump_func.
8238 * tree-ssa-copyrename.c: Remove TODO_dump_func.
8239 * tree-ssa-ccp.c: Remove TODO_dump_func.
8240 * compare-elim.c: Remove TODO_dump_func.
8241 * mode-switching.c: Remove TODO_dump_func.
8242 * modulo-sched.c: Remove TODO_dump_func.
8243 * tree-call-cdce.c: Remove TODO_dump_func.
8244 * cse.c: Remove TODO_dump_func.
8245 * web.c: Remove TODO_dump_func.
8246 * tree-stdarg.c: Remove TODO_dump_func.
8247 * lto-streamer-out.c: Remove TODO_dump_func.
8248 * tree-ssa-math-opts.c: Remove TODO_dump_func.
8249 * tree-ssa-dom.c: Remove TODO_dump_func.
8250 * tree-nrv.c: Remove TODO_dump_func.
8251 * loop-init.c: Remove TODO_dump_func.
8252 * gimple-low.c: Remove TODO_dump_func.
8253 * ipa-inline.c: Remove TODO_dump_func.
8254 * tree-ssa-sink.c: Remove TODO_dump_func.
8255 * jump.c: Remove TODO_dump_func.
8256 * ifcvt.c: Remove TODO_dump_func.
8257 * tree-ssa-loop.c: Remove TODO_dump_func.
8258 * recog.c: Remove TODO_dump_func.
8259 * dse.c: Remove TODO_dump_func.
8260 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
8261 * matrix-reorg.c: Remove TODO_dump_func.
8262 * tree-eh.c: Remove TODO_dump_func.
8263 * regmove.c: Remove TODO_dump_func.
8264 * function.c: Remove TODO_dump_func.
8265 * tree-vectorizer.c: Remove TODO_dump_func.
8266 * ipa-split.c: Remove TODO_dump_func.
8267 * gcse.c: Remove TODO_dump_func.
8268 * tree-if-conv.c: Remove TODO_dump_func.
8269 * init-regs.c: Remove TODO_dump_func.
8270 * tree-ssa-phiopt.c: Remove TODO_dump_func.
8271 * implicit-zee.c: Remove TODO_dump_func.
8272 * lower-subreg.c: Remove TODO_dump_func.
8273 * bt-load.c: Remove TODO_dump_func.
8274 * tree-dfa.c: Remove TODO_dump_func.
8275 * except.c: Remove TODO_dump_func.
8276 * emit-rtl.c: Remove TODO_dump_func.
8277 * store-motion.c: Remove TODO_dump_func.
8278 * cfgexpand.c: Remove TODO_dump_func.
8279 * tree-cfgcleanup.c: Remove TODO_dump_func.
8280 * cfgcleanup.c: Remove TODO_dump_func.
8281 * tree-ssa-pre.c: Remove TODO_dump_func.
8282 * tree-sra.c: Remove TODO_dump_func.
8283 * tree-mudflap.c: Remove TODO_dump_func.
8284 * tree-ssa-copy.c: Remove TODO_dump_func.
8285 * cfglayout.c: Remove TODO_dump_func.
8286 * tree-ssa-forwprop.c: Remove TODO_dump_func.
8287 * tree-ssa-dce.c: Remove TODO_dump_func.
8288 * ira.c: Remove TODO_dump_func.
8289 * tree-ssa.c: Remove TODO_dump_func.
8290 * integrate.c: Remove TODO_dump_func.
8291 * tree-optimize.c: Remove TODO_dump_func.
8292 * tree-ssa-phiprop.c: Remove TODO_dump_func.
8293 * tree-object-size.c: Remove TODO_dump_func.
8294 * combine.c: Remove TODO_dump_func.
8295 * bb-reorder.c: Remove TODO_dump_func.
8296 * cprop.c: Remove TODO_dump_func.
8297 * var-tracking.c: Remove TODO_dump_func.
8298 * tree-profile.c: Remove TODO_dump_func.
8299 * tree-vect-generic.c: Remove TODO_dump_func.
8300 * reg-stack.c: Remove TODO_dump_func.
8301 * sched-rgn.c: Remove TODO_dump_func.
8302 * tree-ssa-structalias.c: Remove TODO_dump_func.
8303 * tree-switch-conversion.c: Remove TODO_dump_func.
8304 * tree-cfg.c: Remove TODO_dump_func.
8305 * tree-ssa-reassoc.c: Remove TODO_dump_func.
8306 * combine-stack-adj.c: Remove TODO_dump_func.
8307 * dce.c: Remove TODO_dump_func.
8308 * tree-ssanames.c: Remove TODO_dump_func.
8309 * regcprop.c: Remove TODO_dump_func.
8310
fa465762
L
83112011-06-14 H.J. Lu <hongjiu.lu@intel.com>
8312
8313 PR middle-end/47364
8314 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
8315 and properly handle result not in Pmode.
8316
7d8d16c3
RM
83172011-06-14 Robert Millan <rmh@gnu.org>
8318
8319 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
8320 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
8321 `config/linux.h'.
8322
8323 * config/i386/kfreebsd-gnu64.h: New file.
8324 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
8325 with `i386/kfreebsd-gnu64.h'.
8326
8327 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
8328 (GNU_USER_LINK_EMULATION64): New macros.
8329 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
8330 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
8331 of hardcoding `elf_i386' and `elf_x86_64'.
8332
0ccef3d2
NC
83332011-06-14 Nick Clifton <nickc@redhat.com>
8334
8335 PR target/49403
8336 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
8337
8338 PR target/49402
8339 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
8340
8a76c4a0
JJ
83412011-06-14 Jakub Jelinek <jakub@redhat.com>
8342
1ace6185
JJ
8343 PR fortran/49103
8344 * tree.h (DECL_NONSHAREABLE): Define.
8345 (struct tree_decl_common): Change decl_common_unused to
8346 decl_nonshareable_flag.
8347 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
8348 Ignore vars with DECL_NONSHAREABLE bit set.
8349 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
8350 on stores to automatic aggregate vars.
8351
8a76c4a0
JJ
8352 PR rtl-optimization/49390
8353 Revert:
8354 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
8355
8356 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
8357 MEM_ALIAS_SET.
8358
b4a9343c
ZD
83592011-06-14 Zdenek Dvorak <ook@ucw.cz>
8360 Tom de Vries <tom@codesourcery.com>
8361
8362 PR target/45098
8363 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
8364 Document changed semantics.
8365 (max_stmt_executions, max_stmt_executions_int): Declare.
8366 * tree-data-ref.c (estimated_loop_iterations)
8367 (estimated_loop_iterations_int): Move functions...
8368 * tree-ssa-loop-niter.c (estimated_loop_iterations)
8369 (estimated_loop_iterations_int): here.
8370 (record_estimate): Change nb_iterations_upper_bound and
8371 nb_iterations_estimate semantics.
8372 (max_stmt_executions, max_stmt_executions_int): New function.
8373 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
8374 (max_stmt_executions_tree): this.
8375 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
8376 estimated_loop_iterations_tree.
8377 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
8378 max_stmt_executions_int instead of estimated_loop_iterations_int.
8379 * predict.c (predict_loops): Idem.
8380 * tree-parloops.c (parallelize_loops): Idem.
8381 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
8382 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
8383 (init_omega_for_ddr_1): Idem.
8384 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
8385 (loop_prefetch_arrays): Idem
8386 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
8387 max_stmt_executions instead of estimated_loop_iterations.
8388 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
8389 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
8390 instead of nb_iterations_upper_bound.
8391
d2640c43
JH
83922011-06-13 Jan Hubicka <jh@suse.cz>
8393
8394 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
8395
40873cdd
RH
83962011-06-14 Richard Henderson <rth@redhat.com>
8397
8398 PR debug/48459
8399 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
8400 (based_loc_descr): Assert it's true.
8401 (compute_frame_pointer_to_fb_displacement): Set it, rather than
8402 aborting immediately.
8403
73e8cb24
SL
84042011-06-14 Sanjin Liu <scliu@faraday-tech.com>
8405 Mingfeng Wu <mingfeng@faraday-tech.com>
8406
8407 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
8408
f835f0a7
JH
84092011-06-13 Jan Hubicka <jh@suse.cz>
8410
8411 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
8412
ee6f1177
JH
84132011-06-13 Jan Hubicka <jh@suse.cz>
8414
8415 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
8416 similarly to DECL_COMDAT.
8417 * cgraphunit.c (cgraph_analyze_function): Likewise.
8418 * ipa.c (function_and_variable_visibility): Likewise.
8419
618abf9a
JH
84202011-06-13 Jan Hubicka <jh@suse.cz>
8421
8422 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
8423 BINFO_VIRTUALS when streaming for ltrans unit.
8424
a45fe02f
DE
84252011-06-13 David Edelsohn <dje.gcc@gmail.com>
8426
8427 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
8428 (movdi_internal64): Same.
8429
84302011-06-13 Edmar Wienskoski <edmar@freescale.com>
8431
e641e495 8432 PR target/44618
7d8d16c3
RM
8433 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
8434 a set of similar patterns, where the MATCH_OPERAND for the function
8435 argument is replaced with individual references to hardware registers.
a45fe02f
DE
8436 (save_fpregs_<mode>): Ditto
8437 (restore_gpregs_<mode>): Ditto
8438 (return_and_restore_gpregs_<mode>): Ditto
8439 (return_and_restore_fpregs_<mode>): Ditto
8440 (return_and_restore_fpregs_aix_<mode>): Ditto
8441
8775a18b
JH
84422011-06-13 Jan Hubicka <jh@suse.cz>
8443
8444 * ipa-utils.c (postorder_stack): New structure.
8445 (ipa_reverse_postorder): Handle aliases.
8446
84472011-06-13 Jan Hubicka <jh@suse.cz>
8448
8449 * ipa-inline.c (reset_edge_caches): Walk aliases.
8450 (update_caller_keys): Do not test inlinability of aliases.
8451 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
8452 (do_estimate_growth): Fix typo.
8453
6c69a029
JH
84542011-06-13 Jan Hubicka <jh@suse.cz>
8455
8456 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
8457 (can_remove_node_now_p): ... here; handle same comdat groups.
8458 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
8459 (inline_call): Update use of can_remove_node_now_p.
8460
10c63ba4 84612011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
495f8c14 8462
10c63ba4 8463 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
495f8c14
KP
8464 condition to disallow non-identical memory locations.
8465 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
8466 preference to bit manipulation instructions.
495f8c14 8467
9aa3f5c5
JH
84682011-06-13 Jan Hubicka <jh@suse.cz>
8469
8470 * cgraph.c (cgraph_for_node_thunks_and_aliases,
8471 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
8472 (nonremovable_p): New function.
8473 (cgraph_can_remove_if_no_direct_calls_p): New function.
8474 (used_from_object_file_p): New functoin.
10c63ba4
EB
8475 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
8476 references from aliases.
9aa3f5c5
JH
8477 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
8478 * ipa-inline.c (check_caller_edge): New function.
10c63ba4
EB
8479 (want_inline_function_called_once_p): Use it; accept aliases called
8480 once, too.
9aa3f5c5
JH
8481 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
8482
30cecf17
RR
84832011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8484
8485 PR target/48454
8486 * config/arm/neon.md (vec_pack_trunc): Set the lengths
8487 correctly for the case with Quad vectors.
8488
29f85237
JJ
84892011-06-13 Jakub Jelinek <jakub@redhat.com>
8490 Ira Rosen <ira.rosen@linaro.org>
8491
8492 PR tree-optimization/49352
8493 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
8494 all, make sure loop_use_stmt after the loop is a def stmt of a used
8495 SSA_NAME that is the only one defined inside of the loop. Don't
8496 check for COND_EXPR and GIMPLE_BINARY_RHS.
8497 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
8498 check_reduction is true.
8499
c3e3f090
JH
85002011-06-11 Jan Hubicka <jh@suse.cz>
8501
8502 PR middle-end/49373
8503 * ipa.c (cgraph_externally_visible_p): Check resolution info.
8504
516e0768
JH
85052011-06-11 Jan Hubicka <jh@suse.cz>
8506
8507 PR middle-end/48836
8508 * ipa-inline-transform.c: Include tree-pass.h
8509 (inline_transform): Set TODO_update_ssa_only_virtuals.
8510 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
8511
903b0a8b
JH
85122011-06-11 Jan Hubicka <jh@suse.cz>
8513
8514 PR middle-end/49378
8515 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
8516 aliases and thunks.
8517
44542f8e
IR
85182011-06-12 Ira Rosen <ira.rosen@linaro.org>
8519
8520 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
8521 Take number of iterations to peel into account for equally frequent
8522 misalignment values.
8523
ea89702b
JH
85242011-06-11 Jan Hubicka <jh@suse.cz>
8525
637c11bd
UB
8526 * lto-streamer-out.c (produce_symtab): Stream out the newly
8527 represented aliases.
ea89702b 8528
380ed5ed
JH
85292011-06-11 Jan Hubicka <jh@suse.cz>
8530
637c11bd
UB
8531 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
8532 varying args.
380ed5ed
JH
8533 (ipa_update_after_lto_read): Likewise.
8534 (ipa_write_node_info): Do not sream call_with_var_arguments.
8535 (ipa_read_node_info): Likewise.
8536
00cfc363
JH
85372011-06-11 Jan Hubicka <jh@suse.cz>
8538
8539 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
8540
39e2db00
JH
85412011-06-11 Jan Hubicka <jh@suse.cz>
8542
8543 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
8544 (lto_symtab_resolve_can_prevail_p): Likewise.
8545 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
8546 * cgraph.c (same_body_aliases_done): New global var.
8547 (cgraph_same_body_alias_1): Rename to ...
8548 (cgraph_create_function_alias): ... this one; reorg to new
8549 representation.
8550 (cgraph_same_body_alias): Use cgraph_create_function_alias;
8551 record references when asked to.
8552 (cgraph_add_thunk): Fix formating.
8553 (cgraph_get_node): Kill same body alias code.
8554 (cgraph_node_for_asm): Likewise.
8555 (cgraph_remove_same_body_alias): Remove.
8556 (cgraph_remove_node): Kill same body alias code.
8557 (cgraph_mark_address_taken_node): Mark also the aliased function
8558 as having address taken.
8559 (dump_cgraph_node): Dump same body aliases.
8560 (cgraph_for_node_thunks_and_aliases): Update for new alias
8561 representation.
8562 (cgraph_for_node_and_aliases): Likewise.
8563 * cgraph.h (same_body): Kll pointer.
8564 (same_body_alias): Update comment.
8565 (same_body_aliases_done): Declare.
8566 (cgraph_remove_same_body_alias): Remove declaration.
8567 (cgraph_create_function_alias): Declare.
8568 (cgraph_process_same_body_aliases): Declare.
8569 (cgraph_function_with_gimple_body_p): Check for alias.
8570 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
8571 (cgraph_alias_aliased_node): New function.
8572 (cgraph_function_node): Update for new aliases.
8573 (cgraph_function_or_thunk_node): Likewise.
8574 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
8575 (inline_call): Remove dead aliases.
10c63ba4
EB
8576 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
8577 name hack for same body aliases.
39e2db00
JH
8578 (clone_of_p): Look through aliases.
8579 (verify_cgraph_node): Verify aliases.
8580 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
8581 (cgraph_process_same_body_aliases): New function.
8582 (process_function_and_variable_attributes): Disable weakref warning on
8583 alias.
8584 (cgraph_analyze_functions): Handle aliases.
8585 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
8586 (assemble_thunks): Rename to ...
8587 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
8588 (cgraph_expand_function): Remove alias output code.
8589 (cgraph_output_in_order): Skip aliases.
8590 (cgraph_preserve_function_body_p): Aliases don't need preserving.
8591 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
8592 (ipa_record_reference): Do not assert on alias references.
8593 (ipa_ref_has_aliases_p): New function.
8594 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
8595 (ipa_ref_has_aliases_p): Declare.
8596 * lto-cgraph.c (lto_output_node): Handle aliases.
8597 (input_node): Likewise.
8598 * lto-streamer-out.c (lto_output): Skip aliases.
8599 (produce_symtab): Kill same_body_alias code.
8600 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
8601 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
8602 * ipa-inline.c (update_caller_keys): Walk aliases.
8603 (inline_small_functions): Fix thinko in previous patch.
8604 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
8605 (function_and_variable_visibility): Do not walk same body aliases.
8606 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
8607 (ipa_pta_execute): Use it.
8608
9ee65b55
UB
86092011-06-11 Uros Bizjak <ubizjak@gmail.com>
8610
8611 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
8612 (*vec_dupv2df): Rename from vec_dupv2df.
8613 (vec_dupv2df): New expander.
8614
86152011-06-11 Uros Bizjak <ubizjak@gmail.com>
8616
8617 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
8618
86192011-06-11 Uros Bizjak <ubizjak@gmail.com>
8620
8621 * config/i386/i386.md: Use default value in "isa" attribute.
8622 * config/i386/sse.md: Ditto.
8623 * config/i386/mmx.md: Ditto.
8624
ba68a139
WG
86252011-06-10 Wei Guozhi <carrot@google.com>
8626
8627 PR target/45335
8628 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
8629 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
8630 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
8631 related peephole2.
8632 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
8633 related peephole2.
8634 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
8635 (arm_legitimate_ldrd_p): New prototype.
8636 (arm_output_ldrd): New prototype.
8637 * config/arm/arm.c (arm_check_ldrd_operands): New function.
8638 (arm_legitimate_ldrd_p): New function.
8639 (arm_output_ldrd): New function.
8640
deced1e2
XDL
86412011-06-10 David Li <davidxl@google.com>
8642
8643 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
8644 * passes.c (passr_eq): New function.
8645 (create_pass_tab): New function.
8646 (pass_traverse): New function.
8647 (dump_one_pass): New function.
8648 (dump_pass_list): New function.
8649 (dump_passes): New function.
8650
71fb4f92
JH
86512011-06-10 Jan Hubicka <jh@suse.cz>
8652
8653 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
8654 setting the nothrow flag.
8655 * ipa-reference.c (propagate): Skip aliases.
8656 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
8657 (propagate_nothrow): Skip aliases; do not update cgraph.
8658 (local_pure_const): Do not update cgraph.
8659 * tree-profile.c (tree_profiling): Do fixup_cfg.
8660
41817394
JH
86612011-06-10 Jan Hubicka <jh@suse.cz>
8662
8663 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
8664 (cgraph_local_node_p): ... here; handle aliases.
8665 (has_addr_references_p): Break out from ...;
8666 (cgraph_remove_unreachable_nodes) ... here.
8667
fb37c1de
JH
86682011-06-10 Jan Hubicka <jh@suse.cz>
8669
8670 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
9ee65b55
UB
8671 * common.opt (flag_inline_functions_called_once): Do not
8672 initialize to 1.
fb37c1de 8673
0818c24c
JH
86742011-06-10 Jan Hubicka <jh@suse.cz>
8675
8676 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
9ee65b55
UB
8677 (ipcp_initialize_node_lattices): Do not deal with aliases;
8678 Do not try to propagate through thunks.
0818c24c
JH
8679 (ipcp_change_tops_to_bottom): Do not deal with aliases.
8680
c8246dbe
JH
86812011-06-10 Jan Hubicka <jh@suse.cz>
8682
9ee65b55
UB
8683 * ipa-prop.c (ipa_write_node_info): Stream jump functions
8684 for indirect calls.
c8246dbe
JH
8685 (ipa_read_node_info): Likewise.
8686
d7e2a1c1
BS
86872011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8688
8689 PR lto/49302
8690 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
8691 (build_and_insert_call): Likewise.
8692 (build_and_insert_ref): New.
8693 (gimple_expand_builtin_pow): Minor cleanup.
8694 (gimple_expand_builtin_cabs): New.
8695 (execute_cse_sincos): Add case for BUILT_IN_CABS.
9ee65b55 8696
749f25d8
JH
86972011-06-10 Jan Hubicka <jh@suse.cz>
8698
8699 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
8700 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
8701 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
8702 (ipcp_propagate_stage): Skip aliases when propagating.
8703 (ipcp_need_redirect_p): Skip aliases.
8704 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
8705 collect_callers_of_node.
8706 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
8707 for aliases.
8708 (ipa_compute_jump_functions): Look through aliases.
8709
8340fbd7
RO
87102011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8711
8712 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
8713
9aaa7e47
HPN
87142011-06-10 Hans-Peter Nilsson <hp@axis.com>
8715
8716 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
8717 Adjust comments.
8718 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
8719
f1724940
JH
87202011-06-10 Jan Hubicka <jh@suse.cz>
8721
8722 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
8723 Update call of gimple_get_virt_method_for_binfo.
8724 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
8725 refuse_thunks parameter.
8726 (gimple_fold_call): Update.
8727 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
8728
a6f834c5
JH
87292011-06-10 Jan Hubicka <jh@suse.cz>
8730
8731 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
8732 (not_all_callers_have_enough_arguments_p): ... this one; turn into
8733 worker for cgraph_for_node_and_aliases.
8734 (convert_callers_for_node): Break out from ...
8735 (convert_callers): ... here.
8736 (modify_function): Use collect_callers_of_node.
8737 (ipa_early_sra): Use cgraph_for_node_and_aliases.
8738
7871eee3
RG
87392011-06-10 Richard Guenther <rguenther@suse.de>
8740
8741 PR tree-optimization/49361
8742 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
8743 when not already in gimple form.
8744
dae957ae
RG
87452011-06-10 Richard Guenther <rguenther@suse.de>
8746
8747 PR bootstrap/49344
8748 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
8749 FOR_EACH_PHI_OR_STMT_USE.
8750
a5b1779f
JH
87512011-06-10 Jan Hubicka <jh@suse.cz>
8752
8753 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
8754 (clone_inlined_nodes): ... here.
8755 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
8756 to real destination prior inlining.
8757 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
8758 can_early_inline_edge_p, want_early_inline_function_p,
8759 want_early_inline_function_p, want_inline_small_function_p,
8760 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
8761 edge_badness, update_all_callee_keys, lookup_recursive_calls,
8762 add_new_edges_to_heap, inline_small_functions, flatten_function,
8763 inline_always_inline_functions, early_inline_small_functions): Use
8764 cgraph_function_or_thunk_node.
8765 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
8766 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
8767 (do_estimate_edge_growth_1): Break out from ...
8768 (do_estimate_growth) ... here; walk aliases.
8769 (inline_generate_summary): Skip aliases.
8770
c1ae3ca5
RG
87712011-06-10 Richard Guenther <rguenther@suse.de>
8772
9ee65b55
UB
8773 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
8774 forward when combining, visit inserted stmts when a stmt was changed.
c1ae3ca5 8775
b504a918
PC
87762011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
8777
8778 * tree.h (error_operand_p): Add.
8779 * dbxout.c (dbxout_type_fields): Use the latter.
8780 * c-decl.c (add_stmt): Likewise.
8781 * gimplify.c (omp_add_variable, omp_notice_variable,
8782 gimplify_scan_omp_clauses): Likewise.
8783
3f5ea9dc 87842011-06-10 Georg-Johann Lay <avr@gjlay.de>
b504a918 8785
3f5ea9dc
GJL
8786 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
8787 when a value is actually passed in regs.
8788
b11b0904 87892011-06-10 Eric Botcazou <ebotcazou@adacore.com>
870c3cf8 8790 Laurent Rougé <laurent.rouge@menta.fr>
b11b0904
EB
8791
8792 * doc/invoke.texi (SPARC options): Add -mflat.
8793 * config/sparc/sparc.opt: Likewise.
8794 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
8795 (sparc_flat_expand_prologue): Declare.
8796 (sparc_flat_expand_epilogue): Likewise.
8797 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
8798 (CPP_ENDIAN_SPEC): Replace with...
8799 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
8800 (CPP_SPEC): Adjust to above change.
8801 (EXTRA_SPECS): Likewise.
8802 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
8803 (INCOMING_REGNO): Likewise.
8804 (OUTGOING_REGNO): Likewise.
8805 (LOCAL_REGNO): Likewise.
8806 (SETUP_FRAME_ADDRESSES): Likewise.
8807 (FIXED_REGISTERS): Set 0 for %fp.
8808 (CALL_USED_REGISTERS): Likewise.
8809 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
8810 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
8811 (RETURN_ADDR_REGNUM): Define.
8812 (RETURN_ADDR_RTX): Use it.
8813 (INCOMING_RETURN_ADDR_REGNUM): Define.
8814 (INCOMING_RETURN_ADDR_RTX): Use it.
8815 (DWARF_FRAME_RETURN_COLUMN): Likewise.
8816 (EH_RETURN_REGNUM): Define.
8817 (EH_RETURN_STACKADJ_RTX): Use it.
8818 (EH_RETURN_HANDLER_RTX): Delete.
8819 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
8820 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
8821 Delete.
8822 (struct machine_function): Add frame_size, apparent_frame_size,
8823 frame_base_reg, frame_base_offset, n_global_fp_regs and
8824 save_local_in_regs_p fields.
8825 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
8826 sparc_frame_base_offset, sparc_n_global_fp_regs,
8827 sparc_save_local_in_regs_p): New macros.
8828 (sparc_option_override): Error out if -fcall-saved-REG is specified
8829 for Out registers.
8830 (eligible_for_restore_insn): Fix formatting.
8831 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
8832 (eligible_for_sibcall_delay): Likewise.
8833 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
8834 (sparc_legitimate_address_p): Adjust to above change.
8835 (save_global_or_fp_reg_p): New predicate.
8836 (return_addr_reg_needed_p): Likewise.
8837 (save_local_or_in_reg_p): Likewise.
8838 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
8839 (SORR_SAVE, SORR_RESTORE): Delete.
8840 (sorr_pred_t): New typedef.
8841 (sorr_act_t): New enum.
8842 (save_or_restore_regs): Rename to...
8843 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
8844 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
8845 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
8846 mechanism. Add CFI information for double-word saves in 32-bit mode.
8847 (emit_adjust_base_to_offset): New function extracted from...
8848 (emit_save_or_restore_regs): ...this. Rename the rest to...
8849 (emit_save_or_restore_regs_global_fp_regs): ...this.
8850 (emit_save_or_restore_regs_local_in_regs): New function.
8851 (gen_create_flat_frame_[123]): New functions.
8852 (sparc_expand_prologue): Use SIZE local variable. Adjust.
8853 (sparc_flat_expand_prologue): New function.
8854 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
8855 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
8856 (sparc_flat_expand_epilogue): New function.
8857 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
8858 (output_return): Likewise.
8859 (output_sibcall): Likewise.
8860 (sparc_output_mi_thunk): Likewise.
8861 (sparc_frame_pointer_required): Likewise.
8862 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
8863 function optimization.
8864 * config/sparc/sparc.md (flat): New attribute.
8865 (prologue): Add TARGET_FLAT handling.
8866 (save_register_window): Disable if TARGET_FLAT.
8867 (create_flat_frame_[123]): New patterns.
8868 (epilogue): Add TARGET_FLAT handling.
8869 (sibcall_epilogue): Likewise.
8870 (eh_return): New expander.
8871 (eh_return_internal): New insn and splitter.
8872 (return_internal): Add TARGET_FLAT handling.
8873 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
8874 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
8875 (nonlocal_goto): Add TARGET_FLAT handling.
8876 * config/sparc/t-elf: Add -mflat multilib.
8877 * config/sparc/t-leon: Likewise.
8878
fede8efa
JH
88792011-06-10 Jan Hubicka <jh@suse.cz>
8880
8881 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
8882 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
8883 (self_recursive_p): Use cgraph_function_node.
8884 (propagate_pure_const): Likewise.
8885 (propagate_nothrow): Likewise.
8886 * ipa-reference.c (ipa_reference_get_not_read_global): Use
8887 cgraph_function_node.
8888 (propagate_bits): Likewise.
8889 (propagate): Likewise.
8890
0127c76f
RR
88912011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8892 Richard Earnshaw <rearnsha@arm.com>
8893
9ee65b55 8894 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
0127c76f
RR
8895 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
8896 (*thumb2_movdi_vfp): Delete.
8897 (*arm_movdi_vfp_cortexa8): Delete.
8898 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
8899 (*movdi_vfp_cortexa8): Likewise.
8900
f93fe5a0
RG
89012011-06-10 Richard Guenther <rguenther@suse.de>
8902
8903 * stor-layout.c (initialize_sizetypes): Give names to all
8904 sizetype kinds.
8905
f2164f87
IR
89062011-06-10 Ira Rosen <ira.rosen@linaro.org>
8907
8908 PR tree-optimization/49318
8909 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
8910 irrelevant pattern statements.
8911
3f91c962
HPN
89122011-06-10 Hans-Peter Nilsson <hp@axis.com>
8913
3d223145
HPN
8914 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
8915
3f91c962
HPN
8916 PR bootstrap/49354
8917 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
8918 to last assignment.
8919
b125ad45
JH
89202011-06-09 Jan Hubicka <jh@suse.cz>
8921
8922 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
8923 do not recompute reachable flag.
8924 (cgraph_finalize_function, cgraph_analyze_functions): Set
8925 redefined_extern_inline here.
8926
be330ed4
JH
89272011-06-09 Jan Hubicka <jh@suse.cz>
8928
8929 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
8930 (cgraph_only_called_directly_p): ... this one; bring offline.
8931 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
8932 varpool_used_from_object_file_p): Drop names from the declaratoin.
8933 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
8934 collect_callers_of_node): New.
8935 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
8936 (cgraph_edge_recursive_p): Use cgraph_function_node.
8937 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
8938 (cgraph_node_cannot_be_local_p_1): Break out from ...
8939 (cgraph_node_can_be_local_p): ... here; walk aliases.
8940 (cgraph_for_node_thunks_and_aliases): New function.
8941 (cgraph_for_node_and_aliases): New function.
8942 (cgraph_make_node_local_1): Break out from ...
9ee65b55
UB
8943 (cgraph_make_node_local) ... here; use
8944 cgraph_for_node_thunks_and_aliases.
be330ed4 8945 (cgraph_set_nothrow_flag_1): Break out from ...
9ee65b55
UB
8946 (cgraph_set_nothrow_flag) ... here;
8947 use cgraph_for_node_thunks_and_aliases.
be330ed4 8948 (cgraph_set_const_flag_1): Break out from ...
9ee65b55
UB
8949 (cgraph_set_const_flag) ... here;
8950 use cgraph_for_node_thunks_and_aliases.
be330ed4 8951 (cgraph_set_pure_flag_1): Break out from ...
9ee65b55
UB
8952 (cgraph_set_pure_flag) ... here;
8953 use cgraph_for_node_thunks_and_aliases.
be330ed4 8954 (cgraph_propagate_frequency_1): Break out from ...
9ee65b55
UB
8955 (cgraph_propagate_frequency) ... here; use
8956 cgraph_for_node_thunks_and_aliases.
be330ed4 8957 (cgraph_used_from_object_file_p): Do not care about aliases.
9ee65b55
UB
8958 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
8959 New functions.
be330ed4
JH
8960 (collect_callers_of_node_1, collect_callers_of_node): New functions.
8961
2ea91d6b
HPN
89622011-06-10 Hans-Peter Nilsson <hp@axis.com>
8963
8964 PR rtl-optimization/49154
8965 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
8966 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
8967 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
8968 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
8969 * config/cris/cris.h (cris_register_move_cost): Remove
8970 !TARGET_V32 code. Tweak comments.
8971
9cf4fb5a
JH
89722011-06-09 Jan Hubicka <jh@suse.cz>
8973
8974 * cgraphbuild.c (record_eh_tables): Mark personality function as having
8975 address taken.
8976
6049a4c8
HPN
89772011-06-10 Hans-Peter Nilsson <hp@axis.com>
8978
c577822e 8979 PR rtl-optimization/49154
9ee65b55
UB
8980 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
8981 is a matching slot in the hashtable, assign it to classes_ptr.
c577822e 8982
54e1e4f7 8983 PR rtl-optimization/49154
6049a4c8
HPN
8984 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
8985 register classes.
8986 * doc/tm.texi: Regenerate.
8987
3be68b64
KK
89882011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
8989
8990 PR target/49307
8991 * config/sh/sh.md (UNSPEC_CHKADD): New.
8992 (chk_guard_add): New define_insn_and_split.
8993 (symGOT_load): Use chk_guard_add instead of blockage.
8994
bf806a90
KT
89952011-06-09 Kai Tietz <ktietz@redhat.com>
8996
8997 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
8998
d5a9738b
EB
89992011-06-09 Eric Botcazou <ebotcazou@adacore.com>
9000
9001 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
9002
527e82c2
WG
90032011-06-09 Wei Guozhi <carrot@google.com>
9004
9005 PR target/46975
9006 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
9007 (peephole2 for conditional move): Generate 16 bit instructions.
9008
b8bc3a43
UB
90092011-06-09 Uros Bizjak <ubizjak@gmail.com>
9010
9011 * config/i386/i386.md (*movdi_internal_rex64): Merge
9012 alternatives 6 and 8.
9013
4745da6e
DL
90142011-06-09 David Li <davidxl@google.com>
9015
9016 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
9017 * passes.c (passr_eq): New function.
9018 (create_pass_tab): New function.
9019 (pass_traverse): New function.
9020 (dump_one_pass): New function.
9021 (dump_pass_list): New function.
9022 (dump_passes): New function.
9023
bdf67bcb
DL
90242011-06-09 David Li <davidxl@google.com>
9025
9026 * tree-complex.c (tree_lower_complex): Gate cleanup.
9027 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
9028 (execute_optimize_stdarg): Ditto.
9029 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
9030 (execute_cleanup_eh_1): Ditto.
9031 (execute_cleanup_eh): Ditto.
9032 * gcse.c (gate_rtl_pre): Ditto.
9033 (execute_rtl_pre): Ditto.
9034 * except.c (finish_eh_generation): Ditto.
9035 (convert_to_eh_region_ranges): Ditto.
9036 * cprop.c (one_cprop_pass): Ditto.
9037
547fdef8
BS
90382011-06-09 Bernd Schmidt <bernds@codesourcery.com>
9039
9040 PR target/48673
9041 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
9042 in all basic blocks.
9043
10e48e39
RO
90442011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9045
9046 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
9047 (HAVE_ENABLE_EXECUTE_STACK): Define.
9048 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
9049 (HAVE_ENABLE_EXECUTE_STACK): Define.
9050 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
9051 (HAVE_ENABLE_EXECUTE_STACK): Define.
9052 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
9053 (ENABLE_EXECUTE_STACK): Remove.
9054 (HAVE_ENABLE_EXECUTE_STACK): Define.
9055 [IN_LIBGCC2]: Don't include <windows.h>.
9056 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
9057 (HAVE_ENABLE_EXECUTE_STACK): Define.
9058 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
9059 (HAVE_ENABLE_EXECUTE_STACK): Define.
9060 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
9061 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
9062 (HAVE_ENABLE_EXECUTE_STACK): Define.
9063 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
9064 (HAVE_ENABLE_EXECUTE_STACK): Define.
9065 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
9066 (HAVE_ENABLE_EXECUTE_STACK): Define.
9067 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
9068 (HAVE_ENABLE_EXECUTE_STACK): Define.
9069 * config/alpha/alpha.c (alpha_trampoline_init): Test
9070 HAVE_ENABLE_EXECUTE_STACK.
9071 * config/i386/i386.c (ix86_trampoline_init): Likewise.
9072 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
9073 (sparc64_initialize_trampoline): Likewise.
9074 * libgcc2.c [L_enable_execute_stack]: Remove.
9075 * system.h (ENABLE_EXECUTE_STACK): Poison.
9076 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
9077 * doc/tm.texi: Regenerate.
9078 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
9079
8ced31fe
JJ
90802011-06-09 Jakub Jelinek <jakub@redhat.com>
9081
9082 PR middle-end/49308
9083 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
9084 variable. After resetting and rescanning insn continue with previous
9085 statement.
9086
ee610fcd
RO
90872011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9088
9089 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
9090 (gcc_cv_ld_hidden): Likewise.
9091 * configure: Regenerate.
9092 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
9093 (ix86_stack_protect_fail): Mark unused.
9094 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
9095 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
9096 [TARGET_MACHO]: Don't define.
9097 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
9098 (TARGET_STACK_PROTECT_FAIL): Likewise.
9099 (rs6000_stack_protect_fail): Mark unused.
9100 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
b8bc3a43 9101 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
ee610fcd 9102
8f2e22ff
AK
91032011-06-08 Andi Kleen <ak@linux.intel.com>
9104
9105 * varasm.c (get_section): Print location of other conflict
9106 for section conflicts.
9107
815cecbe
AK
91082011-06-08 Andi Kleen <ak@linux.intel.com>
9109
9110 * config/i386/driver-i386.c (host_detect_local_cpu):
9111 Add model 0x2d Intel CPU.
9112
1460ec5c
AK
91132011-06-08 Andi Kleen <ak@linux.intel.com>
9114
9115 * reginfo.c (global_regs_decl): Add.
b8bc3a43
UB
9116 (globalize_reg): Add decl parameter. Compute location. Pass location
9117 to warnings and add inform. Store decl in global_regs_decl.
1460ec5c
AK
9118 * rtl.h (globalize_reg): Update prototype.
9119 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
9120
df17530a
MX
91212011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
9122
9123 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
9124
409fed48
KK
91252011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
9126
9127 PR target/49305
9128 * config/sh/predicates.md (general_movsrc_operand): Check
9129 mode for memory with indexed address for QI and HImode.
9130 (general_movdst_operand): Likewise.
9131
87c16a45
NP
91322011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
9133
b8bc3a43 9134 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
87c16a45 9135
49931fcb
AO
91362011-06-08 Alexandre Oliva <aoliva@redhat.com>
9137
9138 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
9139 (num_ssa_operands): Likewise.
9140 (op_iter_init_phiuse): Forward-declare.
9141 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
9142
29494d1f
NC
91432011-06-08 Nick Clifton <nickc@redhat.com>
9144
9145 * doc/invoke.texi (ARM Options): Update description of
9146 -mthumb-interwork.
9147
4ffae7ff
L
91482011-06-08 H.J. Lu <hongjiu.lu@intel.com>
9149
9150 * config/i386/driver-i386.c (host_detect_local_cpu): Support
9151 unknown Intel family 0x6 CPUs.
9152
d9c77712
MJ
91532011-06-08 Martin Jambor <mjambor@suse.cz>
9154
9155 * tree-sra.c (mark_rw_status): Removed.
9156 (analyze_access_subtree): New parameter parent instead of
9157 mark_read and mark_write, propagate from that.
9158
b1def36c
JB
91592011-06-08 Julian Brown <julian@codesourcery.com>
9160
9161 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
9162 for double-precision helper functions in hard-float mode if only
9163 single-precision arithmetic is supported in hardware.
9164
6c8e9fc9
AM
91652011-06-08 Alexander Monakov <amonakov@ispras.ru>
9166
9167 PR rtl-optimization/49303
9168 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
9169 code_motion_path_driver returned 0 or 1.
9170 (sel_region_finish): Clear h_d_i_d.
9171
c2bbcb0d
KK
91722011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
9173
9174 * config/sh/sh.c (prepare_move_operands): Set pic register
9175 appropriately for global and local dynamic tls models even
9176 if flag_pic is unset.
9177
6976ae51
JM
91782011-06-07 Jason Merrill <jason@redhat.com>
9179
9180 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
9181
bb5b1f5e
XDL
91822011-06-07 Xinliang David Li <davidxl@google.com>
9183 * passes.c (enable_disable_pass): Handle assembler name.
9184 (is_pass_explicitly_enabled_or_disabled): Ditto.
9185
91ffe356
RO
91862011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9187
9188 PR tree-optimization/48497
9189 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
9190
06bc3ec7
BS
91912011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9192
9193 PR tree-optimization/46728
9194 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
9195 to use gimple_val_nonnegative_real_p.
9196 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
9197 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
29494d1f 9198
c074d740
L
91992011-06-07 H.J. Lu <hongjiu.lu@intel.com>
9200
9201 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
9202
8973b112
SG
92032011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
9204
9205 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
9206 constant vectors.
9207
67b88453
RG
92082011-06-07 Richard Guenther <rguenther@suse.de>
9209
9210 * stor-layout.c (initialize_sizetypes): Initialize all
9211 sizetypes based on target definitions.
9212 (set_sizetype): Remove.
9213 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
9214 * tree.h (set_sizetype): Remove.
9215
1dcad079
NC
92162011-06-07 Nick Clifton <nickc@redhat.com>
9217
9218 * config.gcc: Unify V850 architecture options and add support for
9219 newer V850 architectures.
9220 * config/v850/t-v850e: Delete.
9221
009db074
RG
92222011-06-07 Richard Guenther <rguenther@suse.de>
9223
9224 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
9225 Call set_sizetype from here.
9226
f373314f
AS
92272011-06-07 Andrew Stubbs <ams@codesourcery.com>
9228
9229 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
9230 (*maddhisi4tb, *maddhisi4tt): New define_insns.
9231
c536876e
AS
92322011-06-07 Bernd Schmidt <bernds@codesourcery.com>
9233 Andrew Stubbs <ams@codesourcery.com>
9234
9235 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
9236 multiplies.
9237 * doc/md.texi (Canonicalization of Instructions): Document widening
9238 multiply canonicalization.
9239
308dc890
JJ
92402011-06-07 Jakub Jelinek <jakub@redhat.com>
9241
9242 PR gcov-profile/49299
b8bc3a43 9243 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
308dc890 9244
383d9c83
IR
92452011-06-07 Ira Rosen <ira.rosen@linaro.org>
9246
9247 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
9248 a pointer.
9249 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
9250 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
9251 vect_recog_pow_pattern): Likewise.
9252 (vect_pattern_recog_1): Remove declaration.
9253 (widened_name_p): Remove declaration. Add new argument to specify
9254 whether to check that both types are either signed or unsigned.
9255 (vect_recog_widen_mult_pattern): Update documentation. Handle
9256 unsigned patterns and multiplication by constants.
9257 (vect_pattern_recog_1): Update vect_recog_func references. Use
9258 statement information from the statement returned from pattern
9259 detection functions.
9260 (vect_pattern_recog): Update vect_recog_func reference.
9261 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
9262 multiplication by a constant use the type of the other operand.
9263
4de4b0f2
RS
92642011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
9265
9266 PR rtl-optimization/49145
9267 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
9268
a9d24544
JJ
92692011-06-06 Jakub Jelinek <jakub@redhat.com>
9270
99a5e049
JJ
9271 PR debug/49262
9272 * dwarf2out.c (native_encode_initializer): Decrement count in each
9273 iteration.
9274
04902d4c
JJ
9275 PR debug/49294
9276 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
9277 non-MODE_INT modes.
9278
a9d24544
JJ
9279 PR c++/49264
9280 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
9281 if stmt folded into nothing.
b8bc3a43
UB
9282 * tree-inline.c (fold_marked_statements): If a builtin at the end of
9283 a bb folded into nothing, just update cgraph edges and move to next bb.
a9d24544
JJ
9284 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
9285 to be NULL. Don't compute count and frequency if new_call is NULL.
9286
47c79d56
DN
92872011-06-04 Diego Novillo <dnovillo@google.com>
9288
9289 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
9290 (cgraph.o): Likewise.
9291 (cgraphunit.o): Likewise.
9292 * cgraphunit.c: Include lto-streamer.h
9293 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
9294 if LTO is enabled.
9295 * lto-streamer-in.c (unpack_value_fields): Call
9296 streamer_hooks.unpack_value_fields if set.
9297 (lto_materialize_tree): For unhandled nodes, first try to
9298 call lto_streamer_hooks.alloc_tree, if it exists.
9299 (lto_input_ts_decl_common_tree_pointers): Move reading of
9300 DECL_INITIAL to lto_streamer_read_tree.
9301 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
9302 (lto_streamer_read_tree): New.
9303 (lto_reader_init): Rename from lto_init_reader.
9304 Move initialization code to lto/lto.c.
9305 * lto-streamer-out.c (pack_value_fields): Call
9306 streamer_hooks.pack_value_fields if set.
b8bc3a43
UB
9307 (lto_output_tree_ref): For tree nodes that are not normally indexable,
9308 call streamer_hooks.indexable_with_decls_p before giving up.
47c79d56 9309 (lto_output_ts_decl_common_tree_pointers): Move handling
b8bc3a43
UB
9310 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
9311 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
9312 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
9313 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
47c79d56
DN
9314 (lto_streamer_write_tree): New.
9315 (lto_output): Call lto_streamer_init directly.
9316 (lto_writer_init): Remove.
9317 * lto-streamer.c (streamer_hooks): New.
9318 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
9319 instead of lto_preload_common_nodes.
9320 (lto_is_streamable): Move from lto-streamer.h
9321 (lto_streamer_hooks_init): New.
9322 (streamer_hooks): New.
9323 (streamer_hooks_init): New.
9324 * lto-streamer.h (struct output_block): Forward declare.
9325 (struct lto_input_block): Likewise.
9326 (struct data_in): Likewise.
9327 (struct bitpack_d): Likewise.
9328 (struct streamer_hooks): Declare.
9329 (streamer_hooks): Declare.
9330 (lto_streamer_hooks_init): Declare.
9331 (lto_streamer_write_tree): Declare.
9332 (lto_streamer_read_tree): Declare.
9333 (streamer_hooks_init): Declare.
9334 (lto_is_streamable): Move to lto-streamer.c
9335
22afe143
AK
93362011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9337
9338 * longlong.h (smul_ppmm): The resulting register pair contains the
9339 higher order word first.
9340
3906ea1b
BS
93412011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9342
9343 PR tree-optimization/46728
9344 * builtins.c (powi_table): Remove.
9345 (powi_lookup_cost): Remove.
9346 (powi_cost): Remove.
9347 (expand_powi_1): Remove.
9348 (expand_powi): Remove.
9349 (expand_builtin_pow_root): Remove.
9350 (expand_builtin_pow): Remove.
9351 (expand_builtin_powi): Eliminate handling of constant exponent.
9352 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
b8bc3a43 9353
3598cabd
AO
93542011-06-06 Alexandre Oliva <aoliva@redhat.com>
9355
9356 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
9357
a7a110bb
AO
93582011-06-06 Alexandre Oliva <aoliva@redhat.com>
9359
9360 * dce.c (reset_unmarked_insns_debug_uses): New.
9361 (delete_unmarked_insns): Skip debug insns.
9362 (prescan_insns_for_dce): Likewise.
9363 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
9364 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
9365 active reg can be found.
9366 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
9367 (convert_regs_1): Use it.
9368
6d8402ac
AO
93692011-06-06 Alexandre Oliva <aoliva@redhat.com>
9370
9371 * tree-pretty-print.c (dump_function_header): Add flags.
9372 Don't dump decl_uid with nouid.
9373 * tree-pretty-print.h (dump_function_header): Adjust.
9374 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
9375 * passes.c (pass_init_dump_file): Pass dump_flags on.
9376 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
9377
f75e1f1e
AO
93782011-06-06 Alexandre Oliva <aoliva@redhat.com>
9379
9380 PR bootstrap/49270
9381 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
9382
275311c4
MP
93832011-06-06 Mikael Pettersson <mikpe@it.uu.se>
9384
9385 PR tree-optimization/49243
9386 * calls.c (setjmp_call_p): Also check if fndecl has the
9387 returns_twice attribute.
9388
aa4203e7
RO
93892011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9390
9391 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
9392 -ffast-math etc.
9393
48f9d59a
RH
93942011-06-06 Richard Henderson <rth@redhat.com>
9395 Georg-Johann Lay <avr@gjlay.de>
9396
9397 PR target/42210
9398 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
9399 New predicates.
9400 * config/avr/avr.md ("insv"): New insn expander.
9401 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
9402 "*insv.not.io", "*insv.reg"): New insns.
9403
11494830
HPN
94042011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
9405
9406 PR target/49285
b8bc3a43
UB
9407 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
9408 to nonimmediate_operand from memory_operand for the operand that is to
9409 be forced to memory by the expander. Lose the constraints.
11494830 9410
679e70df
EB
94112011-06-05 Eric Botcazou <ebotcazou@adacore.com>
9412
9413 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
9414 EH return when delayed branches are disabled.
9415
4d3d7f15
UB
94162011-06-05 Uros Bizjak <ubizjak@gmail.com>
9417
9418 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
9419 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
9420 calculation.
9421 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
9422 Simplify MODE_V1DF and MODE_V2SF handling.
9423 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
9424 Simplify MODE_SF handling.
9425
a45c0557
JH
94262011-06-04 Jan Hubicka <jh@suse.cz>
9427
9428 PR tree-optimization/48893
9429 PR tree-optimization/49091
9430 PR tree-optimization/49179
9431 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
9432 Bounds check.
9433
26740835
JH
94342011-06-04 Jan Hubicka <jh@suse.cz>
9435
9436 PR lto/48954
b8bc3a43
UB
9437 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
9438 bitmaps.
26740835 9439
014ab419
JW
94402011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
9441
9442 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
9443
407bcba7
JJ
94442011-06-04 Jakub Jelinek <jakub@redhat.com>
9445
9446 PR target/49281
9447 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
9448 to be strictly smaller than 1 << shiftcount.
9449
e3195c52
JH
94502011-06-04 Jan Hubicka <jh@suse.cz>
9451
9452 PR tree-optimize/48929
9453 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
9454 of empty predicate.
9455
047d33a0
AO
94562011-06-04 Alexandre Oliva <aoliva@redhat.com>
9457
9458 PR debug/48333
9459 * calls.c (emit_call_1): Prefer the __builtin declaration of
9460 builtin functions.
9461
dc587809
DN
94622011-06-03 Diego Novillo <dnovillo@google.com>
9463
9464 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
9465 (lto_input_tree_pointers): Likewise.
9466 * lto-streamer-out.c (pack_value_fields): Likewise.
9467 (lto_output_tree_pointers): Likewise.
9468 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
9469 and OPTIMIZATION_NODE.
9470
58cd1d70
RO
94712011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9472
9473 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
9474 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
9475 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
9476 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
9477 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
9478 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
9479 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
9480 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
9481 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
9482 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
9483 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
9484 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
9485 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
9486 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
9487 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
9488 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
9489 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
9490 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
9491 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
9492 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
9493 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
9494 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
9495 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
9496 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
9497 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
9498 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
9499 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
9500 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
9501 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
9502 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
9503 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
9504 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
9505 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
9506 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
9507 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
9508 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
9509 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
9510 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
9511 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
9512 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
9513 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
9514 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
9515 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
9516 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
9517 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
9518 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
9519 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
9520 * system.h (MD_UNWIND_SUPPORT): Poison.
9521 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
9522 * doc/tm.texi: Regenerate.
9523 * unwind-dw2.c: Include md-unwind-support.h instead of
9524 MD_UNWIND_SUPPORT.
9525 * config/ia64/unwind-ia64.c: Likewise.
9526 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
9527
10c63ba4 95282011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
34e0c8d5
JH
9529
9530 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
9531
1b7a0148
RH
95322011-06-03 Richard Henderson <rth@redhat.com>
9533 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9534
9535 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
9536 (sigill_hdlr): Correct insn, insn size.
9537 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
9538
737346fa
RO
95392011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9540
9541 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
9542 t-slibgcc-dummy.
9543 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
9544 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
9545 * config/mips/t-iris: Remove.
9546 * config/mips/t-irix6: New file.
9547 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
9548
c192cee6
RO
95492011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9550
9551 * Makefile.in (LIB2ADDEHDEP): Remove.
9552 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
9553 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
9554 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
9555 * config/t-darwin (LIB2ADDEHDEP): Remove.
9556 * config/t-freebsd (LIB2ADDEHDEP): Remove.
9557 * config/t-linux (LIB2ADDEHDEP): Remove.
9558
d5828cc7
DN
95592011-06-03 Diego Novillo <dnovillo@google.com>
9560
9561 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
9562 (lto_register_var_decl_in_symtab): Likewise.
9563 (lto_register_function_decl_in_symtab): Likewise.
9564 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8929d9ea 9565 logic to uniquify_nodes.
d5828cc7 9566
ee33b5f0
RO
95672011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9568
9569 * config/alpha/t-osf5: Remove.
9570 * config/alpha/t-osf-pthread: Remove.
9571 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
9572 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
9573
16868d84
JB
95742011-06-03 Julian Brown <julian@codesourcery.com>
9575
9576 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
9577 (strongarm1110): Use strongarm tuning.
4d3d7f15 9578 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
16868d84
JB
9579 * config/arm/arm.c (arm_strongarm_tune): New.
9580 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
9581 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
9582 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
9583 setting, using previous defaults or 1 for Cortex-A5.
9584 (arm_option_override): Set max_insns_skipped from current tuning.
9585
1cec1285
NS
95862011-06-03 Nathan Sidwell <nathan@codesourcery.com>
9587
9588 * doc/install.texi (Options specification): Document --with-specs.
9589
eed55426
RR
95902011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9591
9592 * config/arm/neon.md (orndi3_neon): Actually split it.
9593
d5b6cc25
AO
95942011-06-02 Alexandre Oliva <aoliva@redhat.com>
9595
9596 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
9597 * var-tracking.c (reverse_op): Limite recurse depth to 5.
9598
2ba42841
AO
95992011-06-02 Alexandre Oliva <aoliva@redhat.com>
9600
9601 PR debug/47590
9602 * target.def (delay_sched2, delay_vartrack): New.
9603 * doc/tm.texi.in: Update.
9604 * doc/tm.texi: Rebuild.
9605 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
9606 * var-tracking.c (gate_handle_var_tracking): Likewise.
9607 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
9608 (bfin_flag_var_tracking): Drop.
9609 (output_file_start): Don't save and override flag_var_tracking.
9610 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
9611 (bfin_reorg): Test original variables.
9612 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
9613 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
9614 (ia64_flag_var_tracking): Drop.
9615 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
9616 (ia64_file_start): Don't save and override flag_var_tracking.
9617 (ia64_override_options_after_change): Ditto
9618 flag_schedule_insns_after_reload.
9619 (ia64_reorg): Test original variables.
9620 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
9621 (picochip_flag_var_tracking): Drop.
9622 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
9623 (picochip_option_override): Don't save and override
9624 flag_schedule_insns_after_reload.
9625 (picochip_asm_file_start): Ditto flag_var_tracking.
9626 (picochip_reorg): Test original variables.
9627 * config/spu/spu.c (spu_flag_var_tracking): Drop.
9628 (TARGET_DELAY_VARTRACK): Define.
9629 (spu_var_tracking): New.
9630 (spu_machine_dependent_reorg): Call it.
9631 (asm_file_start): Don't save and override flag_var_tracking.
9632
a700b5f0
KK
96332011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
9634
9635 PR target/49163
9636 * config/sh/predicates.md (general_movsrc_operand): Return 0
9637 for memory and memory subreg of which address is an invalid
9638 indexed address for QI and HImode.
9639 (general_movdst_operand): Likewise.
9640
76015c34
EB
96412011-06-02 Eric Botcazou <ebotcazou@adacore.com>
9642
9643 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
9644 edges only, when there is a non-local label in the function.
9645 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
9646
4e76acd2
UB
96472011-06-02 Uros Bizjak <ubizjak@gmail.com>
9648
9649 * config/i386/constraints.md (Y3): New register constraint.
9650 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
9651 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
9652 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
9653 *sse2_interleave_lowv2df.
9654
288f605f
JB
96552011-06-02 Julian Brown <julian@codesourcery.com>
9656
9657 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
9658 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
9659 (arm_cortex_a5_tune): New.
9660
7ec70105
JB
96612011-06-02 Julian Brown <julian@codesourcery.com>
9662
153668ec
JB
9663 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
9664 * config/arm/arm.c (arm_default_branch_cost): New.
9665 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
9666 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
9667 (arm_fa726_tune): Set branch_cost field using
9668 arm_default_branch_cost.
9669 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
9670 current_tune structure.
9671 * dojump.c (tm_p.h): Include file.
9672
96732011-06-02 Julian Brown <julian@codesourcery.com>
9674
9675 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
9676 tuning.
7ec70105
JB
9677 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
9678 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
9679 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
9680 field.
9681 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
9682 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
9683 (arm_fa726te_tune): Add prefer_constant_pool setting.
9684 (arm_v6t2_tune, arm_cortex_tune): New.
9685 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
9686 prefer_constant_pool setting.
9687
aad61732
UB
96882011-06-02 Uros Bizjak <ubizjak@gmail.com>
9689
4e76acd2
UB
9690 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
9691 switch statement.
aad61732
UB
9692 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
9693 (*movdf_internal) <case 6,7,8>: Ditto.
9694
4e76acd2 9695 * config/i386/constraints.md (Y4): New register constraint.
aad61732
UB
9696 * config/i386/sse.md (vec_set<mode>_0): Merge with
9697 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
9698 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
9699 *vec_extractv2di_1_sse.
9700 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
9701 and *vec_concatv2di_rex64_sse.
9702
6e588138
SH
97032011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
9704
9705 PR target/48807
9706 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
9707 of cgraph_local_info for null before attempting to use it.
9708
bc6d3f91
EB
97092011-06-02 Eric Botcazou <ebotcazou@adacore.com>
9710
9711 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
9712 (current_function_dynamic_alloc_count): Delete.
9713 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
9714 (expand_builtin_nonlocal_goto): Remove obsolete comment.
9715 (expand_builtin_update_setjmp_buf): Remove dead code.
9716 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
9717 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
9718 support.
9719 * function.c (instantiate_virtual_regs): Likewise.
9720 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
9721 for a block with a single abnormal incoming edge.
9722 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
a21ede65 9723 (SETJMP_VIA_SAVE_AREA): Delete.
bc6d3f91
EB
9724 * config/sparc/sparc-protos.h (load_got_register): Declare.
9725 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
9726 (load_got_register): Make global.
9727 (sparc_frame_pointer_required): Add 'static'.
9728 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
9729 (sparc_builtin_setjmp_frame_value): New function.
9730 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
9731 (save_stack_nonlocal): New expander.
9732 (restore_stack_nonlocal): Likewise.
9733 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
9734 (nonlocal_goto_internal): New insn.
9735 (goto_handler_and_restore): Delete.
9736 (builtin_setjmp_setup): Likewise.
9737 (do_builtin_setjmp_setup): Likewise.
9738 (setjmp): Likewise.
9739 (builtin_setjmp_receiver): New expander.
9740
69282fee
DL
97412011-06-01 David Li <davidxl@google.com>
9742
9743 PR middle-end/49261
9744 * tree-pretty-print.c (dump_function_header): Format cleanup.
9745
e95873dd
KK
97462011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
9747
9748 PR target/49238
9749 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
9750 needed when original operands are used for msw_skip comparison.
9751
88c15821
JJ
97522011-06-01 Jakub Jelinek <jakub@redhat.com>
9753
9754 PR debug/49250
9755 * var-tracking.c (add_uses, add_stores): Don't call
9756 cselib_subst_to_values on ENTRY_VALUE.
9757
07233947
DN
97582011-06-01 Diego Novillo <dnovillo@google.com>
9759
9760 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
9761 output_record_start with LTO_null instead of output_zero.
9762 (lto_output_ts_binfo_tree_pointers): Likewise.
9763 (lto_output_tree): Likewise.
9764 (output_eh_try_list): Likewise.
9765 (output_eh_region): Likewise.
9766 (output_eh_lp): Likewise.
9767 (output_eh_regions): Likewise.
9768 (output_bb): Likewise.
9769 (output_function): Likewise.
9770 (output_unreferenced_globals): Likewise.
9771 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
9772 instead of NUM_TREE_CODES.
9773 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
9774 (lto_output_int_in_range): Change << to >> when shifting VAL.
9775
4ee3537a
DN
97762011-06-01 Diego Novillo <dnovillo@google.com>
9777
9778 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
9779 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
9780
02972eaf
RS
97812011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
9782
9783 PR target/45074
9784 * optabs.h (valid_multiword_target_p): Declare.
9785 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
9786 doing multi-word operations.
9787 * optabs.c (expand_binop): Likewise.
9788 (expand_doubleword_bswap): Likewise.
9789 (expand_absneg_bit): Likewise.
9790 (expand_unop): Likewise.
9791 (expand_copysign_bit): Likewise.
9792 (multiword_target_p): New function.
9793
4d41c2d1
RS
97942011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
9795
9796 PR rtl-optimization/48830
9797 PR rtl-optimization/48808
9798 PR rtl-optimization/48792
9799 * reload.c (push_reload): Check contains_reg_of_mode.
9800 * reload1.c (strip_paradoxical_subreg): New function.
9801 (gen_reload_chain_without_interm_reg_p): Use it to handle
9802 paradoxical subregs.
9803 (emit_output_reload_insns, gen_reload): Likewise.
9804
5f57dccb
DL
98052011-06-01 David Li <davidxl@google.com>
9806
9807 * predict.c : Change pass name
9808 * ipa.c: Ditto.
9809 * dce.c: Ditto.
9810 * tree-profile.c: Ditto.
9811 * except.c: Ditto.
9812
ea6cf778
DL
98132011-06-01 David Li <davidxl@google.com>
9814
9815 * tree-pretty-print.c (dump_function_header): New function.
9816 * final.c (rest_of_clean_state): Use header dumper.
9817 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
9818 * passes.c (pass_init_dump_file): Use header dumper.
9819
ebdc0d4b
JJ
98202011-06-01 Jakub Jelinek <jakub@redhat.com>
9821
eeeb9b49
JJ
9822 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
9823 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
9824 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
9825 New functions.
9826 (mem_loc_descriptor): Use them.
9827
ebdc0d4b
JJ
9828 * var-tracking.c (create_entry_value): New function.
9829 (vt_add_function_parameter): Use it.
9830
0699e415
RO
98312011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9832
9833 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
9834 Include <signal.h>, <ucontext.h>.
9835 (sigill_caught): Define.
9836 (sigill_hdlr): New function.
9837 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
9838 insns can be executed.
aad61732 9839 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
0699e415
RO
9840 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
9841
ca24c5ad
RO
98422011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9843
9844 * config/t-slibgcc-darwin: Move to ...
aad61732 9845 * config/t-slibgcc-dummy: ... this. Clarify comments.
ca24c5ad
RO
9846 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
9847 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
9848 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
aad61732 9849 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
ca24c5ad
RO
9850 Remove i386/t-crtstuff from tmake_file.
9851 (i[34567]86-*-solaris2*): Remove t-svr4,
9852 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
9853 t-slibgcc-dummy.
9854 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
9855 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
9856 sparc/t-crtfm from tmake_file.
9857 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
9858 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
9859 Remove extra_parts.
9860 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
9861 * config/i386/t-nwld (SHLIB_LINK): Remove.
9862 * config/i386/t-rtems-i386: Rename to ...
9863 * config/i386/t-rtems: ... this.
9864 ($(T)crti.o, $(T)crtn.o): Remove.
9865 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
9866 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
9867 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
9868 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
9869 EXTRA_MULTILIB_PARTS): Remove.
9870 * config/sparc/t-sol2-64: Likewise.
9871 * config/sparc/t-sol2: Remove.
9872 * config/sparc/t-crtin: Remove.
9873 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
9874 * config/i386/gmon-sol2.c: Remove.
9875 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
9876 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
9877 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
9878 * config/i386/sol2-gc1.asm: Remove.
9879 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
9880 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
9881 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
9882 * config/t-slibgcc-sld: Remove.
9883
a78d13c3
JJ
98842011-06-01 Jakub Jelinek <jakub@redhat.com>
9885
9886 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
9887 base_type_for_mode with op_mode instead of mode.
9888
572070ef
PB
98892011-06-01 Paul Brook <paul@cpodesourcery.com>
9890
9891 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
9892 Cortex-A15.
9893 * config/arm/arm-tune.md: Regenerate.
9894 * config/arm/arm-tables.opt: Regenerate.
9895 * config/arm/arm.c (FL_DIV): Rename...
9896 (FL_THUMB_DIV): ... to this.
9897 (FL_ARM_DIV): Define.
9898 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
9899 (arm_arch_hwdiv): Remove.
9900 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
9901 (arm_issue_rate): Add cortexr5.
9902 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
9903 __ARM_ARCH_EXT_IDIV__.
9904 (TARGET_IDIV): Define.
9905 (arm_arch_hwdiv): Remove.
9906 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
9907 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
9908 (divsi3, udivsi3): New patterns.
9909 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
9910 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
9911
11026b51
MJ
99122011-06-01 Martin Jambor <mjambor@suse.cz>
9913
9914 * ipa-utils.c (ipa_dfs_info): New field scc_no.
9915 * ipa-utils.c (searchc): Set scc_no.
9916
b6156cf2
MJ
99172011-06-01 Martin Jambor <mjambor@suse.cz>
9918
9919 * ipa-utils.c (searchc_env): New field allow_overwritable.
9920 (searchc): do not ignore edges to overwritable nodes if indicated
9921 by env->allow_overwritable.
9922 (ipa_reduced_postorder): Set env.allow_overwritable.
9923
6807da97
RG
99242011-06-01 Richard Guenther <rguenther@suse.de>
9925
9926 * tree.c (free_lang_data): Do not reset boolean_type_node nor
9927 char_type_node.
9928 * lto-streamer.c (lto_record_common_node): Take node pointer,
9929 do not register types.
9930 (lto_preload_common_nodes): Explicitly skip preloading nodes
9931 that differ between frontends.
9932
66bd20e7 99332011-05-31 Pat Haugen <pthaugen@us.ibm.com>
ddaf42bc
PH
9934
9935 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
9936 NON_FLOAT_REGS.
9937
66bd20e7 99382011-05-31 Pat Haugen <pthaugen@us.ibm.com>
abdd692e
PH
9939
9940 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
9941 parameter value for dump. Dump cost on outermost call only.
9942 (rs6000_memory_move_cost): Dump cost on outermost call only.
9943
7351d8da
JJ
99442011-05-31 Jakub Jelinek <jakub@redhat.com>
9945
ead7c399
JJ
9946 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
9947 DW_OP_GNU_convert ops.
9948
509f4495
JJ
9949 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
9950 cselib_preserve_constants.
9951 (cselib_lookup_1): If cselib_preserve_constants,
9952 a new VALUE is being created for REG and there is a VALUE for the
9953 same register in wider mode, add another loc with lowpart SUBREG of
9954 the wider VALUE.
9955 (cselib_subst_to_values): Handle ENTRY_VALUE.
9956 * var-tracking.c (replace_expr_with_values): Return NULL for
9957 ENTRY_VALUE too.
9958 * dwarf2out.c (convert_descriptor_to_signed): New function.
9959 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
9960 instead of two shifts.
9961 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
9962 the right mode if needed.
9963 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
9964 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
9965 convert_descriptor_to_signed.
9966 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
9967 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
9968
7351d8da
JJ
9969 PR target/48688
9970 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
9971
5cc93ee0
UB
99722011-05-31 Uros Bizjak <ubizjak@gmail.com>
9973
9974 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
9975 of X87MODEI12 and SWI48x instead of SSEMODEI24.
9976 (SWI248x): New mode iterator, rename from X87MODEI.
9977 (X87MODEI): Remove mode iterator.
9978 (X87MODEI12): Ditto.
9979 (SSEMODEI24): Ditto.
9980
f0686e78
AO
99812011-05-31 Alexandre Oliva <aoliva@redhat.com>
9982
9983 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
9984 * doc/invoke.texi: Document max-vartrack-expr-depth.
9985 * var-tracking.c (EXPR_DEPTH): New.
9986 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
9987
f3308413
AO
99882011-05-31 Alexandre Oliva <aoliva@redhat.com>
9989
9990 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
9991 * config/i386/sse.md: Add n to negated FMA pattern names.
9992
28c14a04
AO
99932011-05-31 Alexandre Oliva <aoliva@redhat.com>
9994
9995 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
9996
70efc82d
AO
99972011-05-31 Alexandre Oliva <aoliva@redhat.com>
9998
5cc93ee0 9999 * gengtype-state.c (read_state_params_structs): Initialize previous.
70efc82d 10000
6ba5d856
UB
100012011-05-31 Uros Bizjak <ubizjak@gmail.com>
10002
10003 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
10004 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
10005
100062011-05-31 Uros Bizjak <ubizjak@gmail.com>
10007
10008 * config/i386/i386.md (*movtf_internal): Avoid allocating general
10009 registers. Penalize F*r->o alternative to prevent partial memory
10010 stalls. Slightly penalize *roF->*r alternative. Generate SSE
10011 CONST_DOUBLE immediates when optimizing function for size. Do not move
10012 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
10013 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
10014 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
10015 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
10016 alternatives.
10017 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
10018
10019 (fp_register_operand splitters): Use fp_register_operand
10020 constraint. Do not use FP_REG_P in insn condition.
10021 (any_fp_register_operand splitters): Use any_fp_register_operand
10022 constraint. Do not use ANY_FP_REG_P in insn condition.
10023
533c07c5
JH
100242011-05-31 Jan Hubicka <jh@suse.cz>
10025
10026 * cgraph.h (cgraph_inline_failed_t): Give enum a name
10027 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
10028 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
10029 (lto_output_edge): Use output_enum and var_len_unsigned.
10030 (lto_output_varpool_node): Likewise.
10031 (input_overwrite_node): Do not take resolution parameter;
10032 extract it from a bitpack.
10033 (input_node): Do not read resolution; use input_enum and
10034 var_len_unsigned.
10035 (input_varpool_node): Likewise.
10036 (input_edge): Likewise.
10037 (input_cgraph_1): Likewise.
10038
2611db71
RG
100392011-05-31 Richard Guenther <rguenther@suse.de>
10040
10041 * gimple.c (gimple_register_canonical_type): Do not register
10042 any types via gimple_register_type.
10043
b9e57365
JH
100442011-05-31 Jan Hubicka <jh@suse.cz>
10045
10046 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
10047 of thunks.
10048
35979cc2
JJ
100492011-05-31 Jakub Jelinek <jakub@redhat.com>
10050
10051 PR rtl-optimization/49235
10052 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
10053 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
10054
8f7de592
IR
100552011-05-31 Ira Rosen <ira.rosen@linaro.org>
10056
10057 PR tree-optimization/49093
10058 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
10059 data references.
10060
8d8a3bda
DS
100612011-05-31 Dodji Seketeli <dodji@redhat.com>
10062
10063 PR debug/49047
10064 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
6ba5d856 10065 for concrete functions containing the code of cloned functions.
8d8a3bda 10066
2e87621c
RG
100672011-05-31 Richard Guenther <rguenther@suse.de>
10068
10069 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
10070 to ...
10071 (forward_propagate_into_comparison_1): ... this.
10072 (forward_propagate_comparison): Rename to ...
10073 (forward_propagate_into_comparison): ... this. Split out
10074 real forward propagation code to ...
10075 (forward_propagate_comparison): ... this.
10076 (forward_propagate_into_gimple_cond): Remove looping.
10077 (forward_propagate_into_cond): Likewise.
10078 (simplify_not_neg_expr): Return whether we have done something.
10079 (simplify_gimple_switch): Likewise.
10080 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
10081 (ssa_forward_propagate_and_combine): ... this. Re-structure
10082 to do a forward forward-propagation walk on BBs and a backward
6ba5d856 10083 stmt combining walk on BBs. Consistently re-scan changed statements.
2e87621c
RG
10084 (pass_forwprop): Adjust.
10085
5a880d5d
ILT
100862011-05-30 Ian Lance Taylor <iant@google.com>
10087
10088 * godump.c (go_format_type): Correct length of name added to
10089 obstack for anonymous field.
10090
5f133038
KK
100912011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
10092
10093 PR target/49186
10094 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
10095 part of the second operand is 0.
10096
b17d5426
UB
100972011-05-30 Uros Bizjak <ubizjak@gmail.com>
10098
10099 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
10100 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
10101 to memory for !TARGET_MEMORY_MISMATCH_STALL.
10102 (*movdf_internal_rex64): Do not penalize F->r alternative.
6ba5d856 10103 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
b17d5426
UB
10104 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
10105 when optimizing function for size. Do not move CONST_DOUBLEs
10106 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
6ba5d856
UB
10107 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
10108 SUBREGs. Do not check for MEM_P operands in the insn condition,
b17d5426
UB
10109 check for ANY_FP_REGNO_P instead.
10110 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
10111 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
10112 function for speed.
10113 * config/i386/i386.c (ix86_option_override_internal): Do not
10114 set TARGET_INTEGER_DFMODE_MOVES here.
10115
a0cd843f
L
101162011-05-30 H.J. Lu <hongjiu.lu@intel.com>
10117
10118 PR target/49168
aad61732 10119 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
a0cd843f 10120
006a5f38
JJ
101212011-05-30 Jakub Jelinek <jakub@redhat.com>
10122
10123 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
10124 DW_TAG_rvalue_reference_type even for
10125 -gdwarf-4 -fno-debug-types-section.
10126
6e96f98a
BS
101272011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10128
10129 PR tree-optimization/46728
10130 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
10131 (build_and_insert_binop): New.
10132 (gimple_expand_builtin_pow): Reorder args for
10133 build_and_insert_call; use build_and_insert_binop; add more
10134 optimizations for fractional exponents.
b17d5426 10135
4f60111f
NF
101362011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
10137
10138 PR bootstrap/49190
10139
10140 Revert:
10141 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
10142
10143 * tree.h (struct tree_identifier): Inherit from tree_typed, not
10144 tree_common.
10145 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
10146 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
10147 TS_BASE instead of TS_COMMON.
10148 * varasm.c (assemble_name): Remove assert.
10149
3fd7879d
RS
101502011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
10151
10152 * config.gcc: Keep obselete list sorted.
10153
80060f7a
JJ
101542011-05-30 Jakub Jelinek <jakub@redhat.com>
10155 Eric Botcazou <ebotcazou@adacore.com>
10156
10157 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
10158 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
10159 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
10160 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
10161 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
10162
17e99cdb
RG
101632011-05-30 Richard Guenther <rguenther@suse.de>
10164
10165 * gimple.c (gimple_types_compatible_p_1): Compare record
10166 and union type members properly.
10167
42b05b6e
RG
101682011-05-30 Richard Guenther <rguenther@suse.de>
10169
10170 PR tree-optimization/49210
6ba5d856
UB
10171 * ipa-split.c (split_function): Care for the case where the call
10172 result is not trivially convertible to the result holding variable.
42b05b6e 10173
f3321158
RG
101742011-05-30 Richard Guenther <rguenther@suse.de>
10175
10176 PR tree-optimization/49218
10177 * tree-vrp.c (adjust_range_with_scev): Properly check whether
10178 overflow occured.
10179
d12d8efe
RG
101802011-05-30 Richard Guenther <rguenther@suse.de>
10181
10182 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
10183 New function split out from ...
10184 (forward_propagate_into_gimple_cond): ... here. Adjust.
10185 (forward_propagate_into_cond): Likewise.
10186 (forward_propagate_comparison): Also propagate into
10187 comparisons on assignment RHS. Change return value to
10188 behave similar to forward_propagate_into_cond.
10189 (tree_ssa_forward_propagate_single_use_vars): Handle
10190 strict-overflow warnings properly for forward_propagate_comparison.
10191
df33b41f
RO
101922011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10193
10194 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
10195 from plugin linker.
10196 * configure: Regenerate.
10197
69940d4d
IR
101982011-05-30 Ira Rosen <ira.rosen@linaro.org>
10199
10200 PR tree-optimization/49199
10201 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
b17d5426 10202 non-reduction operands are either defined in the loop or by induction.
69940d4d 10203
226c52aa
XDL
102042011-05-29 Xinliang David Li <davidxl@google.com>
10205
10206 * opts-global.c (handle_common_deferred_options): Handle new options.
10207 * passes.c (register_one_dump_file): Call register_pass_name.
10208 (execute_one_pass): Check explicit enable/disable flag.
10209 (passr_hash): New function.
10210 (passr_eq): Ditto.
10211 (register_pass_name): Ditto.
10212 (get_pass_by_name): Ditto.
10213 (pass_hash): Ditto.
10214 (pass_eq): Ditto.
10215 (enable_pass): Ditto.
10216 (disable_pass): Ditto.
10217 (is_pass_explicitly_enabled_or_disabled): Ditto.
10218
491d8eed
UB
102192011-05-29 Uros Bizjak <ubizjak@gmail.com>
10220
10221 * config/i386/i386.md (*movoi_internal_avx): Use
10222 standard_sse_constant_opcode for alternative 0.
10223 (*movti_internal_sse): Ditto.
10224 (*movti_internal_rex64): Use standard_sse_constant_opcode for
10225 alternative 2.
10226 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
10227 sselog1 type moves.
10228 (*movsi_internal): Ditto.
10229 (*movdi_internal): Ditto. Add ssecvt type moves.
10230
eb93b31f
EB
102312011-05-29 Eric Botcazou <ebotcazou@adacore.com>
10232
10233 PR target/48830
10234 * rtlanal.c (simplify_subreg_regno): Adjust comment.
10235
3f831b7d
JJ
102362011-05-29 Jakub Jelinek <jakub@redhat.com>
10237
10238 PR rtl-optimization/49095
10239 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
10240 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
10241
ee3ee488
RS
102422011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
10243
10244 PR target/43995
10245 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
10246 recurse_p argument. Only follow register copies if it is set,
10247 and prevent mips_find_pic_call_symbol from recursing.
10248 (mips_find_pic_call_symbol): Add a recurse_p argument.
10249 Pass it to mips_pic_call_symbol_from_set.
10250 (mips_annotate_pic_calls): Update accordingly.
10251
65f3dedb
RS
102522011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
10253
10254 * emit-rtl.c (try_split): Use a loop to search for
10255 NOTE_INSN_CALL_ARG_LOCATIONs.
10256
61e374ab
RG
102572011-05-29 Richard Guenther <rguenther@suse.de>
10258
10259 PR tree-optimization/49217
10260 * ipa-pure-const.c (propagate_pure_const): Fix typos.
10261
fac009a8
JH
102622011-05-28 Jan Hubicka <jh@suse.cz>
10263
10264 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
10265 length.
10266 (string_slot_free): Remove
10267 (create_output_block): Initialize obstack.
10268 (destroy_output_block): Free obstack.
10269 (lto_string_index): Add PERSISTENT parameter; do not duplicate
10270 the string unless it needs to be added into the hash.
10271 (lto_output_string_with_length): Add persistent attribute;
10272 handle NULL strings.
10273 (lto_output_string): Add PERSISTENT parameter.
10274 (output_string_cst, output_identifier): Simplify.
10275 (lto_output_location_bitpack): Update.
10276 (lto_output_builtin_tree): Update.
10277 * lto-streamer.h (struct output_block): Add obstack.
491d8eed
UB
10278 (lto_output_string, lto_output_string_with_length): Remove
10279 declarations; functions are static now.
fac009a8 10280
fa766006
JH
102812011-05-28 Jan Hubicka <jh@suse.cz>
10282
10283 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
10284 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
10285 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
10286 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
10287 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
10288 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
10289 unpack_ts_decl_with_vis_value_fields,
10290 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
10291 lto_get_builtin_tree): Use enum and variable length i/o.
10292 * basic-block.h (profile_status_d): Add PROFILE_LAST.
10293 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
10294 New functions.
10295 (bp_pack_enum, bp_unpack_enum): New macros.
10296
e092158b
RS
102972011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10298
10299 * genrecog.c: Remove redundant forward declarations.
10300
7ca2afa0
RS
103012011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10302
10303 * config.gcc: Deprecate mips*-*-openbsd*.
10304
a601a53a
RS
103052011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10306
10307 PR bootstrap/49195
10308 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
10309 for match_op_dup.
10310
fc64b448
AP
103112011-05-27 Andrew Pinski <pinskia@gmail.com>
10312
10313 PR middle-end/48981
10314 * gengtype.c (vec_prefix_type): New function.
10315 (note_def_vec): Use vec_prefix_type and change the length
10316 attribute to be based on the prefix.
10317 * vec.c: Include coretypes.h before vec.h.
10318 (struct vec_prefix): Remove.
10319 (vec_gc_p_reserve): Change the offsetof to sizeof.
10320 (vec_gc_p_reserve_exact): Likewise.
10321 (vec_heap_p_reserve): Likewise.
10322 (vec_heap_p_reserve_exact): Likewise.
10323 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
10324 (vec_stack_p_reserve): Change the offsetof to sizeof.
10325 (vec_stack_p_reserve_exact): Likewise.
10326 * vec.h (struct vec_prefix): New struct definition.
10327 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
10328 (VEC_T_GTY(T,B)): Likewise.
10329 (DEF_VEC_FUNC_P(T)): Use prefix field.
10330 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
10331 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
10332
ba869341
BS
103332011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10334
10335 PR tree-optimization/46728
10336 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
10337 (powi_as_mults): Add gimple_set_location.
10338 (build_and_insert_call): New.
10339 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
10340 0.5, 0.25, 0.75, 1./3., or 1./6.
491d8eed 10341
d296760d
AM
103422011-05-27 Alexander Monakov <amonakov@ispras.ru>
10343
10344 * doc/contrib.texi: Update copyright years.
10345 (Contributors): Add Zdenek Sojka.
10346
38e01f9e
NF
103472011-05-27 Nathan Froyd <froydnj@codesourcery.com>
10348
10349 * c-decl.c (c_push_function_context): Copy the current statement
10350 list stack.
10351 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
10352 (finish_struct): Call building_stmt_list_p instead of checking
10353 cur_stmt_list.
10354 * c-parser.c (c_parser_postfix_expression): Likewise.
10355 * c-typeck.c (c_end_compound_stmt): Likewise.
10356 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
10357 * tree-iterator.c (stmt_list_cache): Change to a VEC.
10358 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
10359 (free_stmt_list): Likewise.
10360 * tree.h (struct tree_statement_list): Include typed_tree instead
10361 of tree_common.
10362 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
10363 as TS_TYPED instead of TS_COMMON.
10364
8950516e 103652011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
66bd20e7 10366 Uros Bizjak <ubizjak@gmail.com>
8950516e
RO
10367
10368 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
10369 (HAVE_AS_IX86_TLSGDPTL): Define.
10370 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
10371 (HAVE_AS_IX86_TLSLDMPLT): Define.
10372 * configure: Regenerate.
10373 * config.in: Regenerate.
10374 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
10375 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
10376 TARGET_SUN_TLS, use @tlsgdplt or @plt.
10377 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
10378 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
10379 @tlsldmplt or @plt.
10380 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
10381
b0bd15f7
BS
103822011-05-27 Bernd Schmidt <bernds@codesourcery.com>
10383
10384 * sched-int.h (struct _haifa_deps_insn_data): New members cond
10385 and reverse_cond.
10386 (INSN_COND, INSN_REVERSE_COND): New macros.
10387 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
10388 once.
10389 (sched_get_condition_with_rev): Cache the results, and look them up
10390 if possible.
10391 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
10392 are clobbered by the current insn.
10393 * target.def (exposed_pipline): New sched data hook.
10394 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
10395 * doc/tm.texi: Regenerate.
10396
fa65a9cf
BS
103972011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10398
10399 PR tree-optimization/49170
10400 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
10401 sincos or cexp.
b0bd15f7 10402
c2299dfe
RG
104032011-05-27 Richard Guenther <rguenther@suse.de>
10404
10405 PR middle-end/49189
10406 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
10407 of comparisons.
10408
a95b23b4
BS
104092011-05-27 Bernd Schmidt <bernds@codesourcery.com>
10410
10411 * haifa-sched.c (sched_scan_info): Remove.
10412 (schedule_block): Call sched_extend_luids rather than sched_init_luids
10413 with NULL args.
10414 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
10415 Remove functions.
10416 (sched_scan): Remove.
10417 (sched_extend_luids): Renamed from luids_extend_insn and no longer
10418 static. All callers changed.
10419 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
10420 static. All callers changed.
10421 (sched_init_luids): Remove all arguments except the first. All
10422 callers changed. Don't use sched_scan.
10423 (haifa_init_h_i_d): Likewise.
10424 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
10425 manually rather than using sched_init_luids. Likewise with
10426 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
10427 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
10428 rather than sched_init_luids with NULL args.
10429 * sel-sched-ir.c (new_insns): Remove variable.
10430 (sched_scan): New static function, previously in haifa-sched.c. Remove
10431 all arguments but the first two; all callers changed.
10432 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
10433 rather than sched_init_luids.
10434 (sel_init_bbs): Remove second argument. All callers changed.
10435 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
10436 with NULL arguments.
10437 (create_insn_rtx_from_pattern): Likewise.
10438 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
10439 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
10440 (sched_init_insn_luid, sched_extend_luids): Declare.
10441 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
10442 declarations.
10443
f8f972fc
RB
104442011-05-27 Richard Guenther <rguenther@suse.de>
10445
10446 PR middle-end/49177
10447 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
10448 A CMP B ? (T) true : (T) false for non-integral types T again.
10449
51a9ed47
JH
104502011-05-27 Jan Hubicka <jh@suse.cz>
10451
10452 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
10453 so 0 means NULL string.
10454 (lto_output_string_with_length): ... here.
f8f972fc
RB
10455 (lto_output_string, output_string_cst, output_identifier): Update
10456 handling of NULL strings.
51a9ed47
JH
10457 (lto_output_location_bitpack): New function.
10458 (lto_output_location): Use it.
10459 (lto_output_tree_ref): Use output_record_start.
f8f972fc
RB
10460 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
10461 len values.
10462 * lto-streamer-in.c (string_for_index): Break out from ...; offset
10463 values by 1.
491d8eed 10464 (input_string_internal): ... here;
f8f972fc
RB
10465 (input_string_cst, input_identifier, lto_input_string): Update handling
10466 of NULL strings.
51a9ed47
JH
10467 (lto_input_location_bitpack): New function
10468 (lto_input_location): Use it.
f8f972fc
RB
10469 (unpack_ts_type_common_value_fields): Pack align & alias in var len
10470 values.
51a9ed47
JH
10471 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
10472 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
10473 (bp_pack_value): Sanity check the value range.
10474 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
10475 New functions.
10476 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
10477 New functions.
10478
66bd20e7 104792011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
dc38fc2e
HS
10480
10481 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
10482 call_arg_location instructions down the floor.
10483
574e418a
VM
104842011-05-26 Vladimir Makarov <vmakarov@redhat.com>
10485
10486 PR rtl-optimization/49154
10487 * ira.c (setup_pressure_classes): Process class without sublcasses
10488 as a candidate for pressure classes.
10489
6a1a787e
RS
104902011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
10491
10492 PR rtl-optimization/48575
10493 * genrecog.c (position_type): New enum.
10494 (position): New structure.
10495 (decision): Use position structure instead of a string.
10496 (root_pos, peep2_insn_pos_list): New variables.
10497 (next_position, compare_positions): New functions.
10498 (new_decision): Use position structures instead of strings.
10499 (maybe_both_true): Likewise.
10500 (change_state): Likewise.
10501 (write_tree): Likewise.
10502 (make_insn_sequence): Likewise.
10503
92e948a8
NF
105042011-05-26 Nathan Froyd <froydnj@codesourcery.com>
10505
10506 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
10507 TS_BASE instead of TS_COMMON.
10508 (find_decls_types_r): Check for TS_TYPED structure before looking at
10509 TREE_TYPE.
10510 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
10511 Add chain field.
10512 (BLOCK_CHAIN): Use new chain field.
10513
66bd20e7 105142011-05-26 Pat Haugen <pthaugen@us.ibm.com>
c61e40d3
PH
10515
10516 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
10517 moves expensive on Power7 also.
10518
1f498652
RG
105192011-05-26 Richard Guenther <rguenther@suse.de>
10520
10521 * fold-const.c (fold_unary_loc): Remove bogus code.
10522
a2fc3e63
NF
105232011-05-26 Nathan Froyd <froydnj@codesourcery.com>
10524
10525 * tree.h (struct tree_identifier): Inherit from tree_typed, not
10526 tree_common.
10527 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
10528 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
10529 TS_BASE instead of TS_COMMON.
10530 * varasm.c (assemble_name): Remove assert.
10531
d11bf18f
BS
105322011-05-26 Bernd Schmidt <bernds@codesourcery.com>
10533
10534 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
10535 substituted first.
10536 * libgcc-std.ver: Delete file.
10537
ac8e1875
RG
105382011-05-26 Richard Guenther <rguenther@suse.de>
10539
10540 PR tree-optimization/48702
10541 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
10542 only when we know the base address is within bounds.
10543 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
10544 assume the base address of TARGET_MEM_REFs is in bounds.
10545
7e32e652
RO
105462011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10547
10548 PR target/49099
10549 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
10550 declaration in TARGET_SOLARIS.
10551
66bd20e7 105522011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
43660e0b
HS
10553
10554 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
491d8eed 10555 The instruction is then expanded explicitly.
43660e0b
HS
10556 (supported_compare): Callable instruction.
10557 (compare): Likewise.
10558
1537737f
JJ
105592011-05-26 Jakub Jelinek <jakub@redhat.com>
10560
10561 PR c++/49165
10562 * gimplify.c (shortcut_cond_r): Don't special case
10563 COND_EXPRs if they have void type on one of their arms.
10564
7b1ac803
BS
105652011-05-26 Bernd Schmidt <bernds@codesourcery.com>
10566
10567 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
10568 to reduce duplication, and to achieve a slightly more logical order
10569 of operations.
10570
1aa9438f
JJ
105712011-05-26 Jakub Jelinek <jakub@redhat.com>
10572
10573 PR tree-optimization/49161
10574 * tree-vrp.c (struct case_info): New type.
10575 (compare_case_labels): Sort case_info structs instead of
10576 trees, and not primarily by CASE_LABEL uids but by
10577 label_for_block indexes.
10578 (find_switch_asserts): Put case labels into struct case_info
10579 array instead of TREE_VEC, adjust sorting, compare label_for_block
10580 values instead of CASE_LABELs.
10581
50fed7bf
RR
105822011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10583
10584 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
10585 ("orndi3_neon"): Likewise.
10586 ("bic<mode>3_neon"): Likewise.
10587
48df3fa6
IR
105882011-05-26 Ira Rosen <ira.rosen@linaro.org>
10589
10590 PR tree-optimization/49038
10591 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
10592 Ensure at least one epilogue iteration if required by data
10593 accesses with gaps.
10594 * tree-vectorizer.h (struct _loop_vec_info): Add new field
10595 to mark loops that require peeling for gaps.
10596 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
10597 (vect_get_known_peeling_cost): Take peeling for gaps into
10598 account.
10599 (vect_transform_loop): Generate epilogue if required by data
10600 access with gaps.
10601 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
10602 loop as requiring an epilogue if there are gaps in the end of
10603 the strided group.
10604
53febcba
ILT
106052011-05-25 Ian Lance Taylor <iant@google.com>
10606
10607 * godump.c (go_format_type): Output the first field with a usable
10608 Go type, if any.
10609
dbbc4d4c
ILT
106102011-05-25 Ian Lance Taylor <iant@google.com>
10611
10612 * godump.c (go_format_type): Check for invalid type names, pointer
10613 target types, and struct field types.
10614
f03a5402
JM
106152011-05-25 Jason Merrill <jason@redhat.com>
10616
10617 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
10618
c497c412
UB
106192011-05-25 Uros Bizjak <ubizjak@gmail.com>
10620
10621 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
10622
e470affe
L
106232011-05-25 H.J. Lu <hongjiu.lu@intel.com>
10624
10625 * config/i386/i386.md (*movqi_extv_1)): Put back
10626 "register_operand" check in "type" calculation.
10627 (*movqi_extzv_2): Likewise.
10628
6c81b2bc
L
106292011-05-25 H.J. Lu <hongjiu.lu@intel.com>
10630
c497c412 10631 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
6c81b2bc 10632
0c007eb2
BS
106332011-05-25 Bernd Schmidt <bernds@codesourcery.com>
10634
10635 PR bootstrap/49160
10636 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
10637 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
10638 __divxc3, __divtc3): Wrap definitions in #ifndef.
10639
521ca78e
L
106402011-05-25 H.J. Lu <hongjiu.lu@intel.com>
10641
10642 PR target/49142
10643 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
10644 "register_operand" check and replace q_regs_operand with
10645 QIreg_operand in "type" calculation.
10646 (*movqi_extv_1): Likewise.
10647 (*movqi_extzv_2_rex64): Likewise.
10648 (*movqi_extzv_2): Likewise.
10649
10650 * config/i386/predicates.md (QIreg_operand): New.
10651
29f8b844
RG
106522011-05-25 Richard Guenther <rguenther@suse.de>
10653
10654 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
10655 type-based offset disambiguation, streamline MEM_REF and
10656 TARGET_MEM_REF handling.
10657
74838de3
L
106582011-05-25 H.J. Lu <hongjiu.lu@intel.com>
10659
10660 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
10661 (bdesc_special_args): Add pause intrinsic.
10662
10663 * config/i386/i386.md (UNSPEC_PAUSE): New.
10664 (pause): Likewise.
10665 (*pause): Likewise.
10666 * config/i386/ia32intrin.h (__pause): Likewise.
10667
10668 * doc/extend.texi (X86 Built-in Functions): Add documentation for
10669 pause intrinsic.
10670
d24ad7d6
BS
106712011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10672
10673 PR tree-optimization/46728
10674 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
10675 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
c497c412 10676
d9f8303f
NF
106772011-05-25 Nathan Froyd <froydnj@codesourcery.com>
10678
10679 * tree.h (struct tree_exp): Inherit from struct tree_typed.
10680 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
10681 instead of TS_COMMON.
10682
cdbf4541
BS
106832011-05-25 Bernd Schmidt <bernds@codesourcery.com>
10684
10685 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
10686 LIBGCC2_GNU_PREFIX is defined.
10687 (__N): New macro.
10688 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
10689 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
10690 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
10691 __clz_tab): Define using __N.
10692 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
10693 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
10694 * target.def (libfunc_gnu_prefix): New hook.
10695 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
10696 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
10697 * doc/tm.texi: Regenerate.
10698 * system.h (LIBGCC2_GNU_PREFIX): Poison.
10699 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
10700 account.
10701 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
10702 (init_optabs): Likewise for the bswap libfuncs.
10703 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
10704 and divide.
10705 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
10706 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
10707 * libgcc-std.ver: Remove.
10708 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
10709 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
10710 libgcc-std.ver.
10711 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10712 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
10713 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
10714 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
10715 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
10716 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10717 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10718 * config/fixed-bit.h (FIXED_OP): Define differently depending on
10719 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
10720 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
10721
f242c0a5
JH
107222011-05-25 Jan Hubicka <jh@suse.cz>
10723
10724 * lto-streamer-out.c (output_record_start): Use lto_output_enum
10725 (lto_output_tree): Use output_record_start.
10726 * lto-streamer-in.c (input_record_start): Use lto_input_enum
10727 (lto_get_pickled_tree): Use input_record_start.
10728 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
10729 (lto_value_range_error): New function.
10730 * lto-streamer.h (lto_value_range_error): Declare.
10731 (lto_output_int_in_range, lto_input_int_in_range): New functions.
10732 (lto_output_enum, lto_input_enum): New macros.
10733
a11e0df4
EB
107342011-05-25 Eric Botcazou <ebotcazou@adacore.com>
10735
10736 * common.opt (flag_stack_usage_info): New variable.
10737 (-Wstack-usage): New option.
10738 * doc/invoke.texi (Warning options): Document -Wstack-usage.
10739 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
10740 <OPT_fstack_usage>: Likewise.
10741 * toplev.c (output_stack_usage): Handle -Wstack-usage.
10742 * calls.c (expand_call): Test flag_stack_usage_info variable instead
10743 of flag_stack_usage.
10744 (emit_library_call_value_1): Likewise.
10745 * explow.c (allocate_dynamic_stack_space): Likewise.
10746 * function.c (instantiate_virtual_regs ): Likewise.
10747 (prepare_function_start): Likewise.
10748 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
10749 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
10750 * config/arm/arm.c (arm_expand_prologue): Likewise.
10751 (thumb1_expand_prologue): Likewise.
10752 * config/avr/avr.c (expand_prologue): Likewise.
10753 * config/i386/i386.c (ix86_expand_prologue): Likewise.
10754 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
10755 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
10756 * config/mips/mips.c (mips_expand_prologue): Likewise.
10757 * config/pa/pa.c (hppa_expand_prologue): Likewise.
10758 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
10759 * config/s390/s390.c (s390_emit_prologue): Likewise.
10760 * config/sh/sh.c (sh_expand_prologue): Likewise.
10761 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
10762 * config/spu/spu.c (spu_expand_prologue): Likewise.
10763
e7cfe241
RG
107642011-05-25 Richard Guenther <rguenther@suse.de>
10765
10766 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
10767 (gimple_canonical_types_compatible_p): Likewise.
10768
c5235f4c
JH
107692011-05-25 Jan Hubicka <jh@suse.cz>
10770
10771 PR middle-end/49062
10772 * ipa.c (function_and_variable_visibility): Only add to same
10773 comdat group list if DECL_ONE_ONLY.
10774
8242a0f6
AB
107752011-05-25 Andrey Belevantsev <abel@ispras.ru>
10776
10777 PR rtl-optimization/49014
10778 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
10779
642a011d
JJ
107802011-05-25 Jakub Jelinek <jakub@redhat.com>
10781
10782 PR target/49128
10783 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
10784
30a435d8
VM
107852011-05-24 Vladimir Makarov <vmakarov@redhat.com>
10786
10787 PR rtl-optimization/48757
10788 * ira-build.c (loop_with_eh_edge_p): Rename to
10789 loop_with_complex_edge_p, check edges on complexity, make function
10790 conditional.
10791 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
10792 conditional.
10793
24d1bbc7
EB
107942011-05-24 Eric Botcazou <ebotcazou@adacore.com>
10795
10796 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
10797 force flag_ira_share_save_slots to 0.
10798
65773087
EB
107992011-05-24 Eric Botcazou <ebotcazou@adacore.com>
10800
10801 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
10802 (vt_initialize): Set PROLOGUE_BB unconditionally.
10803 Add block comment about CFA_BASE_RTX machinery.
10804 Reset FP_CFA_OFFSET to -1 on all invalid paths.
10805 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
10806
4e26ba90
NP
108072011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
10808
10809 PR objc/48187
10810 * c-parser.c (c_parser_objc_class_instance_variables): More robust
10811 parsing of syntax error in ObjC instance variable lists. In
10812 particular, avoid an infinite loop if there is a stray ']'.
10813 Updated error message.
10814
936fd13c
ILT
108152011-05-24 Ian Lance Taylor <iant@google.com>
10816
10817 * godump.c (go_define): Don't accept a string immediately after
10818 another operand.
10819
f17333e3
ILT
108202011-05-24 Ian Lance Taylor <iant@google.com>
10821
10822 * godump.c (struct godump_container): Add invalid_hash field.
10823 (go_format_type): Return false if type is found in invalid_hash.
10824 (go_output_typedef): Add invalid type to invalid_hash.
10825 (go_finish): Create and delete invalid_hash.
10826
d24ad7d6 108272011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
c497c412 10828
78be79d5
BS
10829 PR tree-optimization/46728
10830 * tree-ssa-math-opts.c (powi_table): New.
10831 (powi_lookup_cost): New.
10832 (powi_cost): New.
10833 (powi_as_mults_1): New.
10834 (powi_as_mults): New.
10835 (gimple_expand_builtin_powi): New.
10836 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
10837 (gate_cse_sincos): Remove sincos/cexp restriction.
f17333e3 10838
caee412b
RO
108392011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10840
10841 PR target/3746
10842 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
10843 mips-tdump native.
10844 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
10845 * mips-tdump.c: Likewise.
10846
5eed4f27
L
108472011-05-24 H.J. Lu <hongjiu.lu@intel.com>
10848
10849 PR target/49128
10850 * config/i386/driver-i386.c (host_detect_local_cpu): Always
10851 add -mno-XXX. Handle FMA.
10852
8c5fdaae
VM
108532011-05-24 Vladimir Makarov <vmakarov@redhat.com>
10854
10855 PR rtl-optimization/48633
10856 * ira-build.c (loop_with_eh_edge_p): New function.
10857 (mark_loops_for_removal): Use it.
10858
108592011-05-24 Vladimir Makarov <vmakarov@redhat.com>
113a5be6
VM
10860
10861 PR rtl-optimization/48971
10862 * ira.c (setup_pressure_classes): Don't check register move cost
10863 for classes with one registers. Don't add pressure class if there
10864 is a pressure class with the same available hard registers.
10865 Check contains_reg_of_mode. Fix a typo in collecting
10866 temp_hard_regset. Ignore hard registers not belonging to a class.
10867
df1f7315
UB
108682011-05-24 Uros Bizjak <ubizjak@gmail.com>
10869
10870 PR target/49133
10871 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
10872
ee0cb37c
EB
108732011-05-24 Eric Botcazou <ebotcazou@adacore.com>
10874 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10875
10876 PR gcov-profile/48845
10877 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
10878
6a20ce76
RG
108792011-05-24 Richard Guenther <rguenther@suse.de>
10880
10881 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
10882 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
10883 (gimple_types_compatible_p_1): Adjust.
10884 (iterative_hash_canonical_type): Do not bother about complete vs.
10885 incomplete types.
10886 (gimple_canonical_types_compatible_p): Likewise.
10887
2fcb858c
RO
108882011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10889
10890 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
10891
96d91dcf
RG
108922011-05-24 Richard Guenther <rguenther@suse.de>
10893
10894 PR bootstrap/49078
10895 * gimple.c (gimple_register_canonical_type): Revert
10896 previous change.
10897 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
10898 does not for a tree for the case where it matters. Cache
10899 pointer-type alias-sets.
10900
1ed1641d
JM
109012011-05-24 Joseph Myers <joseph@codesourcery.com>
10902
10903 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
10904 (OBJS): Remove options.o, opts-common.o and prefix.o.
10905 (OBJS-libcommon-target): New.
10906 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
10907 (BACKEND): Include libcommon-target.a.
10908 (MOSTLYCLEANFILES): Include libcommon-target.a.
10909 (libcommon-target.a): New.
10910 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
10911 prefix.o.
10912
57dfdff0
JM
109132011-05-23 Joseph Myers <joseph@codesourcery.com>
10914
10915 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
10916 parts of output shared with the driver.
10917 * optc-gen.awk: Don't generate parts of output not shared with the
10918 driver.
10919 * opth-gen.awk: Remove GCC_DRIVER conditionals.
10920 * doc/options.texi (SourcerInclude): Mention options-save.c.
10921 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
10922 (OBJS): Add options-save.o.
10923 (options-save.c, options-save.o): New.
10924 (options.o): Update dependencies.
10925 (gcc-options.o): Remove.
10926 (mostlyclean): Remove options-save.c.
10927
0e0d82a7
JJ
109282011-05-23 Jakub Jelinek <jakub@redhat.com>
10929
9166988f
JJ
10930 PR debug/49032
10931 * dbxout.c: Include cgraph.h.
10932 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
10933 and without value expr, return NULL if no varpool node exists for
10934 it or if it is not needed.
10935 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
10936
0e0d82a7
JJ
10937 PR c/49120
10938 * c-decl.c (start_decl): Convert expr to void_type_node.
10939
65712d5c
RS
109402011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
10941
10942 PR rtl-optimization/48826
10943 * emit-rtl.c (try_split): When splitting a call that is followed
10944 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
10945
9025085e
JJ
109462011-05-23 Jakub Jelinek <jakub@redhat.com>
10947
10948 * cfgexpand.c (expand_debug_expr): For unused non-addressable
10949 parameters passed in memory prefer using DECL_INCOMING_RTL over
10950 the pseudos it will be copied into.
10951
34a061be
L
109522011-05-23 H.J. Lu <hongjiu.lu@intel.com>
10953
10954 PR target/47315
10955 * config/i386/i386.c (ix86_option_override_internal): Save the
10956 initial options after checking vzeroupper.
10957
c375a3a4
DL
109582011-05-23 David Li <davidxl@google.com>
10959
10960 PR tree-optimization/48988
10961 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
10962 Initialize has_valid_pred for each pred chain.
10963
e1caba18
RG
109642011-05-23 Richard Guenther <rguenther@suse.de>
10965
10966 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
10967 (iterative_hash_gimple_type): Always hash type names.
10968
dde05067
NF
109692011-05-23 Nathan Froyd <froydnj@codesourcery.com>
10970
10971 * c-typeck.c (build_function_call_vec): Tweak call to
10972 check_function_arguments.
10973
094f6ab3
RG
109742011-05-23 Richard Guenther <rguenther@suse.de>
10975
10976 PR tree-optimization/49115
10977 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
10978 is not necessarily carried out, do not claim it kills the ref.
10979 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
10980
9a9822e1
RG
109812011-05-23 Richard Guenther <rguenther@suse.de>
10982
10983 PR middle-end/15419
10984 * builtins.c (fold_builtin_memory_op): Be less restrictive about
10985 what pointer types we accept for folding.
10986
c8028650
RO
109872011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10988
10989 * gthr-gnat.c: Remove.
10990 * gthr-gnat.h: Remove.
10991 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
10992 * config/t-freebsd (LIB2ADDEH): Likewise.
10993 * config/t-linux (LIB2ADDEH): Likewise.
10994 * config/t-sol2 (LIB2ADDEH): Likewise.
10995 * config/ia64/t-vms (LIB2ADDEH): Likewise.
10996 * configure.ac (target_thread_file): Remove gnat handling.
10997 * configure: Regenerate.
10998 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
10999
15882fe9
TG
110002011-05-23 Tristan Gingold <gingold@adacore.com>
11001 Eric Botcazou <ebotcazou@adacore.com>
11002
11003 * gcov.c (create_file_names): If no object directory is specified,
11004 keep the directory of the file.
11005
da90c957
RO
110062011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11007
11008 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
11009 * configure: Regenerate.
11010
7bba408b
JJ
110112011-05-23 Jakub Jelinek <jakub@redhat.com>
11012
11013 PR middle-end/48973
11014 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
11015 failed and the comparison has a single bit signed type, use
11016 constm1_rtx instead of const1_rtx for true value.
11017 (do_store_flag): If ops->type is single bit signed type, disable
11018 signel bit test optimization and pass -1 instead of 1 as last
11019 parameter to emit_store_flag_force.
11020
bc69f7ff
TV
110212011-05-23 Tom de Vries <tom@codesourcery.com>
11022
11023 PR target/45098
11024 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
11025 function.
11026 (infer_loop_bounds_from_undefined): Use new function.
11027
29cedf8e
RS
110282011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
11029
11030 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
11031 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
11032 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
11033 and -O0 otherwise.
11034 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
11035
afe8b6ec
EB
110362011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11037
11038 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
11039 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
11040 returns true.
11041
872dab53
RS
110422011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
11043
11044 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
11045
145f6c5b
EB
110462011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11047
11048 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
11049 UNSPEC_MOVE_PIC pattern.
11050
8ac79835
EB
110512011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11052
11053 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
11054 (sparc-*-rtems*): Likewise.
11055 (sparc64-*-elf*): Likewise.
11056 (sparc64-*-rtems*): Likewise.
11057 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
11058 * config/sparc/t-crtin: New file.
11059 * config/sparc/t-sol2 (crti.o): Delete rule.
11060 (crtn.o): Likewise.
11061 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
11062 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
11063 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
11064 (ENDFILE_SPEC): Add crtn.o.
11065
5fb43dd8
TV
110662011-05-22 Tom de Vries <tom@codesourcery.com>
11067
11068 PR middle-end/48689
11069 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
11070 CODE_CONTAINS_STRUCT (TS_COMMON).
11071
ccb1b17b
JJ
110722011-05-22 Jakub Jelinek <jakub@redhat.com>
11073
11074 PR middle-end/49029
11075 * expmed.c (extract_fixed_bit_field): Test whether target can be used
11076 only after deciding which mode to use.
11077
50ad7db2
TV
110782011-05-22 Tom de Vries <tom@codesourcery.com>
11079
11080 PR target/45098
dc0a3366 11081 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
50ad7db2
TV
11082 for call to get_shiftadd_cost.
11083
ef230b38
UB
110842011-05-22 Uros Bizjak <ubizjak@gmail.com>
11085
11086 PR target/49104
11087 * config/i386/cpuid.h (bit_MMXEXT): New define.
11088
15f072f9
NC
110892011-05-22 Nick Clifton <nickc@redhat.com>
11090
11091 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
11092 initialisation of non-existant args[2] element. Use args[] array
11093 not arg[] array to pass arguments to build_function_type_list.
11094
e38fdc94
IR
110952011-05-22 Ira Rosen <ira.rosen@linaro.org>
11096
11097 PR tree-optimization/49087
ef230b38 11098 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
e38fdc94 11099
5b018c65
JM
111002011-05-21 Jason Merrill <jason@redhat.com>
11101
11102 PR c++/49092
11103 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
11104 static storage duration.
11105
abd9a770
EB
111062011-05-21 Eric Botcazou <ebotcazou@adacore.com>
11107
11108 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
11109 frame pointer.
11110
bd9a3248
EB
111112011-05-21 Eric Botcazou <ebotcazou@adacore.com>
11112
11113 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
11114 false if there are call-saved registers here...
11115 (sparc_can_use_return_insn_p): ...but here instead.
11116 (save_or_restore_regs): Fix thinko.
11117 (sparc_expand_prologue): Use current_function_is_leaf.
11118 (sparc_frame_pointer_required): Likewise.
11119
a5dfec9a
NC
111202011-05-21 Nick Clifton <nickc@redhat.com>
11121
11122 PR target/49098
11123 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
11124
555c3771
NP
111252011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
11126
11127 * gengtype.c (walk_type): Implemented "atomic" GTY option.
11128 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
11129
86fa5de4
JM
111302011-05-21 Joseph Myers <joseph@codesourcery.com>
11131
11132 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
11133 * optc-gen.awk: Move common code to opt-read.awk.
11134 * opth-gen.awk: Likewise.
ef230b38 11135 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86fa5de4 11136
bce33ab2
NF
111372011-05-20 Nathan Froyd <froydnj@codesourcery.com>
11138
11139 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
11140
e6450c11
TV
111412011-05-20 Tom de Vries <tom@codesourcery.com>
11142
11143 PR target/45098
11144 * tree-ssa-loop-ivopts.c: Include expmed.h.
11145 (get_shiftadd_cost): New function.
11146 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
11147
0e8b84ec
JJ
111482011-05-20 Jakub Jelinek <jakub@redhat.com>
11149
11150 PR bootstrap/49086
11151 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
11152 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
11153
946bdf67
JM
111542011-05-20 Joseph Myers <joseph@codesourcery.com>
11155
11156 * Makefile.in: Update comment referring to $(OBJS-common).
11157
c53aafdf
ILT
111582011-05-20 Ian Lance Taylor <iant@google.com>
11159
11160 * godump.c (go_output_typedef): Put enum constants in the macro
11161 hash table to avoid duplicate Go const definitions.
11162
2691e6d7
JM
111632011-05-20 Joseph Myers <joseph@codesourcery.com>
11164
11165 * Makefile.in (LIBDEPS): Add libcommon.a.
11166 (LIBS): Likewise.
11167 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
11168 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
11169 pretty-print.o and version.o.
11170 (OBJS-libcommon): New.
11171 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
11172 (BACKEND): Add libcommon.a.
11173 (MOSTLYCLEANFILES): Likewise.
11174 (libcommon.a): New.
11175 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
11176 (cpp$(exeext)): Likewise.
11177 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
11178 pretty-print.o and input.o.
11179 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
11180 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
11181 (errors.o): Remove.
11182 (mips-tfile): Don't explicitly use version.o.
11183 (mips-tdump): Likewise.
11184 (gcov.o): Depend on $(DIAGNOSTIC_H).
11185 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
11186 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
11187 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
11188 * gcov-dump.c: Include intl.h and diagnostic.h.
11189 (main): Initialize diagnostics.
11190 * gcov.c: Include diagnostic.h.
11191 (fnotice): Remove.
11192 (main): Initialize diagnostics.
11193 * lto-wrapper.c: Include diagnostic.h.
11194 (main): Initialize diagnostics.
11195
252b3e8c
MM
111962011-05-20 Michael Matz <matz@suse.de>
11197
11198 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
11199
2ee36ba6
MM
112002011-05-20 Michael Matz <matz@suse.de>
11201 Richard Guenther <rguenther@suse.de>
11202
11203 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
11204 use lto_streamer_cache_append directly instead of returning a VEC.
11205 (preload_common_node): Remove.
11206 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
11207 track seen nodes.
11208 (lto_streamer_cache_create): Call lto_preload_common_nodes.
11209
90ff582f
RG
112102011-05-20 Richard Guenther <rguenther@suse.de>
11211
11212 PR tree-optimization/49079
11213 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
11214 MEM_REFs correctly for the trailing array access detection.
11215 Special case constants the same way as decls for overall size
11216 constraining.
11217
3cda91d8
UB
112182011-05-20 Uros Bizjak <ubizjak@gmail.com>
11219
11220 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
11221 argument expansion.
11222
6c66f733
JJ
112232011-05-20 Jakub Jelinek <jakub@redhat.com>
11224
11225 PR tree-optimization/49073
3cda91d8
UB
11226 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
11227 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6c66f733
JJ
11228 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
11229
0ea80a16
RG
112302011-05-20 Richard Guenther <rguenther@suse.de>
11231
11232 PR middle-end/48849
11233 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
11234 of pointer types the same way the middle-end does.
11235
fb291a1e
RG
112362011-05-20 Richard Guenther <rguenther@suse.de>
11237
3cda91d8
UB
11238 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
11239 or pointer-to chains. Delay all fixup to uniquify_nodes.
fb291a1e 11240
37cb25ed
QN
112412011-05-19 Quentin Neill <quentin.neill@amd.com>
11242
11243 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
11244 (fma4_fmaddsub): Likewise
11245
a30726a4
JH
112462011-05-19 Jan Hubicka <jh@suse.cz>
11247
11248 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
11249 (GIMPLE_TYPE_PAIR_SIZE): New macro.
11250 (type_pair_cache): New static var.
11251 (lookup_type_pair): Use fixed sized custom hash; make inline.
11252 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
11253 calls of lookup_type_pair.
11254 (print_gimple_types_stats): Remove cache stats.
11255 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
11256 and gtc_ob.
11257
0955cf61
UB
112582011-05-19 Uros Bizjak <ubizjak@gmail.com>
11259
11260 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
11261 when TARGET_RDRND is active.
11262 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
11263 Generate dummy SImode target register when target is NULL.
11264
12d844c8
JM
112652011-05-19 Joseph Myers <joseph@codesourcery.com>
11266
11267 * config/arm/arm-fpus.def: New.
11268 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
11269 arm-fpus.def.
11270 * config/arm/arm-tables.opt: Regenerate.
11271 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
11272 (arm_option_override): Don't decode FPU name to string here.
11273 * config/arm/arm.opt (mfpu=): Use Enum.
11274 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
11275 Update dependencies.
11276
9e350e99
JM
112772011-05-19 Joseph Myers <joseph@codesourcery.com>
11278
11279 * collect2.c: Include diagnostic.h.
11280 (fatal_perror, fatal, error, fancy_abort): Remove.
11281 (main): Set progname. Call xmalloc_set_program_name and
11282 diagnostic_initialize.
11283 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
11284 scan_libraries, resolve_lib_name): Call fatal_error instead of
11285 fatal and fatal_perror.
11286 * collect2.h (error, fatal, fatal_perror): Don't declare.
11287 * tlink.c: Include diagnostic-core.h.
11288 (recompile_files): Call fatal_error instead of fatal_perror.
11289 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
11290 pretty-print.o and input.o.
11291 (collect2.o, tlink.o): Update dependencies.
11292
86ff4081
RO
112932011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11294
11295 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
11296
2ca48caa
RO
112972011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11298
11299 PR target/40483
11300 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
11301 COMDAT group syntax, both SPARC and x86 variants.
11302 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
11303 * configure: Regenerate.
11304 * config/sol2.h (TARGET_SOLARIS): Define.
11305 (PUSHSECTION_FORMAT): Remove.
11306 (SECTION_NAME_FORMAT): Define.
11307 * config/sol2.c: Include hashtab.h.
11308 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
11309 expansion, using SECTION_NAME_FORMAT.
11310 (solaris_comdat_htab): New variable.
11311 (struct comdat_entry): Define.
11312 (comdat_hash): New function.
11313 (comdat_eq): New function.
11314 (solaris_elf_asm_comdat_section): New function.
11315 (solaris_define_comdat_signature): New function.
11316 (solaris_code_end): New function.
11317 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
11318 (solaris_code_end): Declare.
11319 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
11320 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
11321 solaris_code_end.
11322 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
11323 Remove ATTRIBUTE_UNUSED.
11324 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
11325 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
0955cf61 11326 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2ca48caa
RO
11327 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
11328 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
11329 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
11330 (PUSHSECTION_FORMAT): Remove.
11331 (SECTION_NAME_FORMAT): Redefine.
11332
da5fb469
KT
113332011-05-19 Kai Tietz <ktietz@redhat.com>
11334
11335 * tree-cfg.c (verify_gimple_assign_binary): Barf on
11336 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
11337 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
11338
1651e703 113392011-05-19 Anatoly Sokolov <aesok@post.ru>
0967b228
AS
11340 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11341
11342 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
11343
e497b9bd
RG
113442011-05-19 Richard Guenther <rguenther@suse.de>
11345
11346 PR middle-end/48985
11347 * tree-object-size.c (addr_object_size): If the pointed-to
11348 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
11349
31b3ca64
RG
113502011-05-19 Richard Guenther <rguenther@suse.de>
11351
11352 * gimple.c (gimple_types_compatible_p_1): Compare names of
11353 the types themselves.
11354 (iterative_hash_gimple_type): And hash them that way.
11355 (gimple_register_type_1): If we register a main variant properly
11356 initialize the leader to ourselves.
11357
bb8d292d
TV
113582011-05-19 Tom de Vries <tom@codesourcery.com>
11359
11360 PR target/45098
11361 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
11362 get_loop_invariant_expr_id.
11363 (get_loop_invariant_expr_id): Use get_expr_id.
11364 (parm_decl_cost): New function.
11365 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
11366 Improve bound cost estimation. Use different inv_expr_id for elim and
11367 express cases.
11368
a53c5024
TV
113692011-05-19 Tom de Vries <tom@codesourcery.com>
11370
11371 PR target/45098
11372 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
11373 cost_base.cost == 0.
11374
31f9eb59
L
113752011-05-18 H.J. Lu <hongjiu.lu@intel.com>
11376
11377 PR target/49002
66bd20e7
EB
11378 * config/i386/sse.md
11379 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
11380 load cast.
31f9eb59 11381
681056ae
JJ
113822011-05-18 Jakub Jelinek <jakub@redhat.com>
11383
11384 PR tree-optimization/49039
11385 * tree-vrp.c (extract_range_from_binary_expr): For
11386 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
11387 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
11388
b5ee6752
TV
113892011-05-18 Tom de Vries <tom@codesourcery.com>
11390
11391 PR target/45098
11392 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
11393
0bda47a3
UB
113942011-05-18 Uros Bizjak <ubizjak@gmail.com>
11395
11396 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
11397 (*tls_global_dynamic_64): Ditto.
11398 (*tls_local_dynamic_base_32_gnu): Ditto.
11399 (*tls_local_dynamic_base_64): Ditto.
11400 (tls_initial_exec_64_sun): Ditto.
11401
033b0805
SH
114022011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
11403
11404 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
11405 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
11406 bf592-none.
11407 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
11408 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
11409 * config/bfin/bfin.c (bfin_cpus): Add bf592.
11410 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
0bda47a3 11411 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
033b0805
SH
11412 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
11413 * config/bfin/elf.h (LIB_SPEC): Add bf592.
11414
ba163417
JM
114152011-05-18 Joseph Myers <joseph@codesourcery.com>
11416
11417 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
0bda47a3 11418 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
ba163417
JM
11419 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
11420 target_thread_pointer, arm_structure_size_boundary, struct
11421 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
11422 struct abi_name, arm_all_abis): Remove.
0bda47a3
UB
11423 (arm_option_override) Don't process most enumerated option values here.
11424 Don't process target_fpe_name here. Work with integer not string for
11425 structure size boundary; use separate diagnostics for each case.
ba163417
JM
11426 * config/arm/arm.h (enum float_abi_type, enum
11427 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
11428 to arm-opts.h.
11429 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
11430 arm_structure_size_boundary): Remove.
11431 * config/arm/arm.opt (mabi=): Use Enum and Init.
11432 (arm_abi_type): New Enum and EnumValue entries.
11433 (mfloat-abi=): Use Enum and Init.
11434 (float_abi_type): New Enum and EnumValue entries.
0bda47a3 11435 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
ba163417
JM
11436 (mfp16-format=): Use Enum and Init.
11437 (arm_fp16_format_type): New Enum and EnumValue entries.
11438 (mstructure-size-boundary=): Use UInteger and Init.
11439 (mtp=): Use Enum and Init.
11440 (arm_tp_type): New Enum and EnumValue entries.
11441
179184e3
RG
114422011-05-18 Richard Guenther <rguenther@suse.de>
11443
11444 PR tree-optimization/49018
11445 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
11446 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
11447 gimple_has_side_effects.
11448
93b2a207
RG
114492011-05-18 Richard Guenther <rguenther@suse.de>
11450
11451 * gimple.c (gimple_register_type_1): New function, split out from ...
11452 (gimple_register_type): ... here. Avoid infinite recursion.
11453
b010117a
IR
114542011-05-18 Ira Rosen <ira.rosen@linaro.org>
11455
11456 PR tree-optimization/41881
11457 * tree-vectorizer.h (struct _loop_vec_info): Add new field
11458 reduction_chains along with a macro for its access.
11459 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
11460 (destroy_loop_vec_info): Free reduction chains.
11461 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
11462 (vect_is_slp_reduction): New function.
11463 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
11464 (vect_create_epilog_for_reduction): Support SLP reduction chains.
11465 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
11466 definition types for reduction chains.
11467 (vect_supported_load_permutation_p): Don't allow permutations for
11468 reduction chains.
11469 (vect_analyze_slp_instance): Support reduction chains.
11470 (vect_analyze_slp): Try to build SLP instance from reduction chains.
11471 (vect_get_constant_vectors): Handle reduction chains.
11472 (vect_schedule_slp_instance): Mark the first statement of the
11473 reduction chain as reduction.
11474
e14c1050
IR
114752011-05-18 Ira Rosen <ira.rosen@linaro.org>
11476
11477 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
11478 names for group elements access.
11479 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
11480 reduction chains as well. Remove data reference and interleaving
11481 related words from the fields names.
11482 * tree-vect-loop.c (vect_transform_loop): Use new names for group
11483 elements access.
11484 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
11485 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
11486 vect_update_interleaving_chain, vect_same_range_drs,
11487 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
11488 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
11489 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
11490 vect_analyze_group_access, vect_analyze_data_ref_access,
11491 vect_create_data_ref_ptr, vect_transform_strided_load,
11492 vect_record_strided_load_vectors): Likewise.
11493 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
11494 vect_model_load_cost, vectorizable_store, vectorizable_load,
11495 vect_remove_stores, new_stmt_vec_info): Likewise.
11496 * tree-vect-slp.c (vect_build_slp_tree,
11497 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
11498
51c213f7
RG
114992011-05-18 Richard Guenther <rguenther@suse.de>
11500
11501 PR middle-end/48989
11502 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
11503 operand verification.
11504 (verify_gimple_assign_binary): Likewise.
11505 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
11506 to non-1-precision BOOLEAN_TYPEs.
11507
8f5e5434
TV
115082011-05-18 Tom de Vries <tom@codesourcery.com>
11509
11510 PR target/45098
11511 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
11512
116bc3a4
JJ
115132011-05-18 Jakub Jelinek <jakub@redhat.com>
11514
11515 PR tree-optimization/49000
11516 * tree-ssa.c (execute_update_addresses_taken): Call
11517 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
11518 be rewritten and decl has been marked for renaming, reset
11519 the debug stmt.
11520
26a8964c
JM
115212011-05-17 Joseph Myers <joseph@codesourcery.com>
11522
11523 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
11524 enum_opts_set when testing if attributes have set -mfpmath=.
11525
82bd45d7
RS
115262011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11527
11528 * config/mips/mips.c (mips_handle_option): Remove unused variable.
11529
267ffce3
UB
115302011-05-17 Uros Bizjak <ubizjak@gmail.com>
11531
11532 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
11533 info->entry with 0
11534 * tree-inline.c (maybe_inline_call_in_expr): Initialize
11535 id.transform_lang_insert_block with NULL.
11536
115372011-05-17 Uros Bizjak <ubizjak@gmail.com>
d9403b0d
UB
11538
11539 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
11540 (output_fp_compare): Change args 3 and 4 to bool.
11541 (ix86_expand_call): Change arg 6 to bool.
11542 (ix86_attr_length_immediate_default): Change arg 2 to bool.
11543 (ix86_attr_length_vex_default): Change arg 3 to bool.
11544 * config/i386/i386.md: Update all uses.
11545 * config/i386/i386.c: Ditto.
11546 (ix86_flags_dependent): Change return type to bool.
11547
5beaf664
RG
115482011-05-17 Richard Guenther <rguenther@suse.de>
11549
11550 * gimple.c (type_hash_pair_compare): Fix comparison.
11551
008bad7a
RG
115522011-05-17 Richard Guenther <rguenther@suse.de>
11553
11554 * gimple.c (iterative_hash_gimple_type): Simplify singleton
11555 case some more, fix final hash value of the non-singleton case.
11556
36461340
RG
115572011-05-17 Richard Guenther <rguenther@suse.de>
11558
11559 PR bootstrap/49013
11560 Revert
11561 2011-05-16 Richard Guenther <rguenther@suse.de>
11562
11563 * gimple.c (gimple_types_compatible_p_1): Use names of the
11564 type itself, not its main variant.
11565 (iterative_hash_gimple_type): Likewise.
11566
6b6a59f3
RG
115672011-05-17 Richard Guenther <rguenther@suse.de>
11568
11569 * gimple.c (gimple_register_canonical_type): Use the main-variant
11570 leader for computing the canonical type.
11571
4ffc4134
NC
115722011-05-17 Nick Clifton <nickc@redhat.com>
11573
a1d8754e
NC
11574 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
11575 moves.
11576
4ffc4134
NC
11577 * config/rx/rx.md: Add peephole to remove redundant extensions
11578 after loads.
39960f7a
NC
11579 (bitset_in_memory): Use rx_restricted_mem_operand.
11580 (bitinvert_in_memory): Likewise.
11581 (bitclr_in_memory): Likewise.
4ffc4134 11582
b3db92ac
KI
115832011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
11584 Nick Clifton <nickc@redhat.com>
11585
11586 * config/rx/rx.md: Add peepholes to match a register move followed
11587 by a comparison of the moved register. Replace these with an
11588 addition of zero that does both actions in one instruction.
11589
8637e32a
JJ
115902011-05-17 Jakub Jelinek <jakub@redhat.com>
11591
11592 PR target/48986
11593 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
11594 predicate to allow CONST_INT.
11595 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
11596
8023568e
JM
115972011-05-16 Joseph Myers <joseph@codesourcery.com>
11598
11599 * opts-common.c (opt_enum_arg_to_value): New.
11600 * opts.h (opt_enum_arg_to_value): Declare.
11601 * config/i386/i386.opt (fpmath): Remove.
11602 (mfpmath=): Use Enum, Init and Save.
11603 (fpmath_unit): New Enum and EnumValue entries.
11604 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
11605 name for function fpmath state.
11606 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
11607 * config/i386/i386.c: Include diagnostic.h.
11608 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
d9403b0d 11609 (ix86_target_string): Take enum fpmath_unit value instead of string.
8023568e 11610 (ix86_debug_options): Update call to ix86_target_string.
d9403b0d 11611 (ix86_option_override_internal): Don't process fpmath strings here.
8023568e
JM
11612 (x86_function_specific_save, ix86_function_specific_restore):
11613 Don't handle fpmath state specially.
11614 (ix86_function_specific_print): Pass fpmath state to
11615 ix86_target_string instead of printing in this function.
11616 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
11617 Handle enum attributes.
11618 (IX86_ATTR_ENUM, ix86_opt_enum): New.
11619 (ix86_valid_target_attribute_tree): Update option_strings
11620 handling. Handle fpmath as enum option.
11621 (ix86_can_inline_p): Update field names for function fpmath state.
11622 (ix86_expand_builtin): Update call to ix86_target_string.
11623 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
11624 (ix86_fpmath): Remove.
11625 * config/i386/t-i386 (i386.o): Update dependencies.
11626
9e8d926e
JM
116272011-05-16 Joseph Myers <joseph@codesourcery.com>
11628
11629 PR preprocessor/48677
11630 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
11631 from decoded_options[0], not from itself.
11632
f6449011
UB
116332011-05-16 Uros Bizjak <ubizjak@gmail.com>
11634
11635 * config/i386/constraints.md (z): New constraint.
11636 * config/i386/i386.c (c): New mode attribute.
11637 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
11638 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
11639 constraint for operand 0.
11640 (*call_vzeroupper): Ditto.
11641 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
11642 (*call_rex64_ms_sysv_vzeroupper): Ditto.
11643 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
11644 Use "lzm" constraint for operand 0.
11645 (*call_pop_vzeroupper): Ditto.
11646 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
11647 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
11648 constraint for operand 0.
11649 (*sibcall_vzeroupper): Ditto.
11650 (*sibcall_rex64_ms_sysv): Ditto.
11651 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
11652 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
11653 *sibcall_pop_1. Use "Uz" constraint for operand 0.
11654 (*sibcall_pop_vzeroupper): Ditto.
11655 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
11656 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
11657 mode iterator. Use "<c>zm" constraint for operand 1.
11658 (*call_value_vzeroupper): Ditto.
11659 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
d9403b0d 11660 for operand 1.
f6449011
UB
11661 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
11662 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
11663 *call_value_pop_1. Use "lzm" constraint for operand 1.
11664 (*call_value_pop_vzeroupper): Ditto.
11665 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
11666 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
11667 mode iterator. Use "Uz" constraint for operand 1.
11668 (*sibcall_value_vzeroupper): Ditto.
11669 (*sibcall_value_rex64_ms_sysv): Ditto.
11670 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
11671 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
11672 constraint for operand 1.
11673 (*sibcall_value_pop_vzeroupper): Ditto.
11674 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
11675 and "z" constraint for operand 2.
11676 (*tls_global_dynamic_32_gnu): Ditto.
11677 (*tls_local_dynamic_base_32_gnu): Ditto.
11678 (*tls_local_dynamic_base_64): Ditto.
11679 (*tls_local_dynamic_32_once): Ditto.
11680 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
11681 Update all callers.
11682 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
11683
c11b6902
RG
116842011-05-16 Richard Guenther <rguenther@suse.de>
11685
11686 * gimple.c (gimple_types_compatible_p_1): Use names of the
11687 type itself, not its main variant.
11688 (iterative_hash_gimple_type): Likewise.
11689
1e83b5f1
RG
116902011-05-16 Richard Guenther <rguenther@suse.de>
11691
f6449011
UB
11692 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
11693 always visit pointer target and function result and argument types.
1e83b5f1 11694
62e36382
JM
116952011-05-16 Jason Merrill <jason@redhat.com>
11696
11697 PR c++/48999
11698 * tree-inline.c (copy_statement_list): Put back recursion.
11699
687027a4
GJL
117002011-05-16 Georg-Johann Lay <avr@gjlay.de>
11701
11702 PR target/27663
11703 PR target/41076
11704 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
11705 * config/avr/avr.md ("*ior<mode>qi.byte0",
11706 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
11707
f24a5190
GJL
117082011-05-16 Georg-Johann Lay <avr@gjlay.de>
11709
11710 PR target/45099
11711 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
11712 register is needed for a function argument.
11713
3066f593
RG
117142011-05-16 Richard Guenther <rguenther@suse.de>
11715
11716 * gimple.c (struct type_hash_pair): New type.
11717 (type_hash_pair_compare): New function.
f6449011 11718 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3066f593 11719
b2ab2cf4
RE
117202011-05-16 Revital Eres <revital.eres@linaro.org>
11721
f6449011 11722 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
b2ab2cf4 11723
dfb737fc
UB
117242011-05-15 Uros Bizjak <ubizjak@gmail.com>
11725
11726 * config/i386/i386.md (floating point move splitters): Fix
11727 usage of standard_80387_constant_p.
f6449011 11728 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
dfb737fc 11729
8caa1de0
UB
117302011-05-15 Uros Bizjak <ubizjak@gmail.com>
11731
11732 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
11733
8a519095
EB
117342011-05-14 Eric Botcazou <ebotcazou@adacore.com>
11735
11736 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
11737 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
11738 (tree_ssa_lim_finalize): Likewise.
11739
479fecd3
UB
117402011-05-14 Uros Bizjak <ubizjak@gmail.com>
11741
11742 * config/i386/constraint.md (Yd, Yx): New register constraints.
11743 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
11744 Yd conditional register constraint.
11745 (*movtf_internal): Use standard_sse_constant_opcode.
11746 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
11747 Yx conditional register constraint.
11748 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
11749 Yd conditional register constraint. Use standard_sse_constant_p to
11750 check for valid SSE constants and call standard_sse_constant_opcode to
11751 output SSE insn.
11752 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
11753 constants and call standard_sse_constant_opcode to output SSE insn.
11754 * config/i386/i386.c (ix86_option_ovverride_internal): Set
11755 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
11756 optimize_size is set.
11757 (standard_sse_constant_opcode): Output conditional AVX insn templates.
11758
2d8c9ad5
TB
117592011-05-14 Tobias Burnus <burnus@net-b.de>
11760
11761 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
11762
411a20d6
MJ
117632011-05-13 Martin Jambor <mjambor@suse.cz>
11764
11765 * ipa-prop.c (ipa_cst_from_jfunc): New function.
11766 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
11767 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
11768 (evaluate_conditions_for_ipcp_clone): Removed.
11769 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
11770 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
11771 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
11772
dc764d10
EB
117732011-05-13 Eric Botcazou <ebotcazou@adacore.com>
11774
11775 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
11776 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
11777 lieu of MAY_HAVE_DEBUG_STMTS.
11778 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
11779 debug statements if !MAY_HAVE_DEBUG_STMTS.
11780
9f47a24e
MT
117812011-05-13 Martin Thuresson <martint@google.com>
11782
11783 PR gcov-profile/47793
11784 * libgcov.c (gcov_exit): Support relative profile paths.
11785 * doc/invoke.texi (-fprofile-dir): Update for above change.
11786
b8a71aed
RG
117872011-05-13 Richard Guenther <rguenther@suse.de>
11788
11789 * gimple.c (gimple_canonical_types_compatible_p): Do not use
11790 type-pair caching, do not compare hashes.
11791
eb9f9259
NF
117922011-05-13 Nathan Froyd <froydnj@codesourcery.com>
11793
11794 PR middle-end/48965
11795 * tree-cfg.c (edge_to_cases_cleanup): Return true.
11796 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
11797
3c6cbf7a
KT
117982011-05-13 Kai Tietz <ktietz@redhat.com>
11799
11800 * gimplify.c (gimplify_expr): Make sure operand is boolified.
11801 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
11802 compatible type for TRUTH_NOT_EXPR.
11803
2e7f5dc0
L
118042011-05-13 H.J. Lu <hongjiu.lu@intel.com>
11805
dc764d10 11806 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2e7f5dc0
L
11807 (ix86_hard_regno_mode_ok): Change return value to bool. Use
11808 can_create_pseudo_p ().
11809
e834e95c
RG
118102011-05-13 Richard Guenther <rguenther@suse.de>
11811
11812 PR lto/48978
11813 * gimple.c (iterative_hash_gimple_type): Revert change in
11814 pointer target and function result and argument hashing.
11815
34203483
UB
118162011-05-13 Uros Bizjak <ubizjak@gmail.com>
11817
11818 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
11819 (*movxf_internal_nointeger): Ditto.
11820 (*movdf_internal_rex64): Ditto.
11821 (*movdf_internal): Ditto.
11822 (*movdf_internal_nointeger): Ditto.
11823 (*movsf_internal): Ditto.
11824 (sincos splitters): Use can_create_pseudo ().
11825
7eb68c06
JM
118262011-05-13 Joseph Myers <joseph@codesourcery.com>
11827
11828 * config/i386/i386-opts.h: New.
11829 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
11830 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
11831 ix86_section_threshold): Remove.
11832 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
11833 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
11834 OPT_mbranch_cost_.
11835 (ix86_option_override_internal): Don't decode strings for options
11836 other than -march=, -mtune= and -mfpmath=. Don't allow for
11837 __attribute__ uses in remaining diagnostics for options with
34203483 11838 string arguments. Don't check for integer arguments being negative.
7eb68c06 11839 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
34203483 11840 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7eb68c06
JM
11841 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
11842 ix86_branch_cost, ix86_section_threshold): Remove.
11843 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
11844 HeaderInclude.
11845 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
11846 but not Var.
11847 (masm=): Use Enum and Init.
11848 (asm_dialect): New Enum and EnumValue entries.
11849 (mbranch-cost=): Use UInteger.
11850 (mlarge-data-threshold=): Use UInteger and Init.
11851 (mcmodel=): Use Enum and Init.
11852 (cmodel): New Enum and EnumValue entries.
11853 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
11854 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
11855 mregparm=): Use UInteger.
11856 (mstringop-strategy=): Use Enum and Init.
11857 (stringop_alg): New Enum and EnumValue entries.
11858 (mtls-dialect=): Use Enum and Init.
11859 (tls_dialect): New Enum and EnumValue entries.
11860 (mabi=): Use Enum and Init.
11861 (calling_abi): New Enum and EnumValue entries.
11862 (mveclibabi=): Use Enum and Init.
11863 (ix86_veclibabi): New Enum and EnumValue entries.
11864
f67e203c
NC
118652011-05-13 Nick Clifton <nickc@redhat.com>
11866
34203483
UB
11867 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
11868 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
f67e203c 11869
221df0b6
KT
118702011-05-13 Kai Tietz <ktietz@redhat.com>
11871
11872 PR middle-end/48984
11873 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
11874 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
11875 (gimple_boolify): Check for cast for boolean_type_node instead for
11876 BOOLEAN_TYPE.
11877
208cb8cb
RG
118782011-05-13 Richard Guenther <rguenther@suse.de>
11879
11880 PR tree-optimization/48172
11881 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
11882 multiplying by number of iterations for equal step.
11883 (vect_create_cond_for_alias_checks): Likewise.
11884
b88ecf55
AS
118852011-05-13 Andreas Schwab <schwab@redhat.com>
11886
11887 * configure.ac: Use AS_HELP_STRING throughout.
11888 * configure: Regenerate.
11889
569b527e
L
118902011-05-12 H.J. Lu <hongjiu.lu@intel.com>
11891
34203483 11892 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
569b527e
L
11893 (ix86_emit_restore_regs_using_mov): Likewise.
11894 (ix86_emit_restore_sse_regs_using_mov): Likewise.
11895
8b9a1428
AS
118962011-05-12 Anatoly Sokolov <aesok@post.ru>
11897
11898 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
11899 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
11900 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
11901 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
11902 RTX_OK_FOR_OLO10_P): ...here.
11903 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
11904 SYMBOLIC_CONST.
11905
1d15f620
KT
119062011-05-12 Kai Tietz <ktietz@redhat.com>
11907
11908 * gimplify.c (gimple_boolify): Re-boolify expression
11909 arguments even if expression type is of kind BOOLEAN_TYPE.
11910 (gimplify_boolean_expr): Removed.
11911 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
11912 and XOR. Additional take care that we keep expression's type.
11913 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
11914 of TRUTH_AND|OR|XOR_EXPR.
11915
c2b5fc8d
JJ
119162011-05-12 Jakub Jelinek <jakub@redhat.com>
11917
11918 PR tree-optimization/48975
11919 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
11920 on all bbs here and free and clear ifc_bbs at the end.
11921
61332f77
RG
119222011-05-12 Richard Guenther <rguenther@suse.de>
11923
11924 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
11925 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
11926 until after simple checks.
11927 (gimple_types_compatible_p): Likewise.
11928 (iterative_hash_gimple_type): Always hash pointer targets
11929 and function return and argument types.
11930 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
11931 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
11932 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
11933 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
11934 completely in the simple compare section.
11935 (gimple_register_canonical_type): Query the cache again after
11936 registering.
11937
e2a3a5f1
RG
119382011-05-12 Richard Guenther <rguenther@suse.de>
11939
11940 PR tree-optimization/48172
11941 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
11942 the number of iterations from the segment size calculation.
11943 (vect_create_cond_for_alias_checks): Adjust.
11944
2c703f3a
JJ
119452011-05-12 Jakub Jelinek <jakub@redhat.com>
11946
11947 PR debug/48967
11948 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
11949 if validate_subreg fails.
11950
119512011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
b27981e0
HS
11952
11953 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
11954 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
11955 early.
11956
87e91fca
DD
119572011-05-12 DJ Delorie <dj@redhat.com>
11958
d53903d6 11959 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
87e91fca
DD
11960 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
11961 created builtin into rx_builtins array.
11962 (rx_builtin_decl): New function.
34203483 11963 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
87e91fca 11964
5f2f13fd
DD
119652011-05-12 DJ Delorie <dj@redhat.com>
11966 Nick Clifton <nickc@redhat.com>
11967
11968 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
11969 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
11970 (rx_is_legitimate_address): Add pre-decrement and post-increment
11971 addressing in HImode and QImode. Fix test for out of range
11972 REG+INT addressing.
87e91fca 11973 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
34203483 11974 (rx_align_for_label): Test label before extracting its usage count.
5f2f13fd 11975 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 11976 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 11977
57421f45
JM
119782011-05-11 Jason Merrill <jason@redhat.com>
11979
11980 * tree.c (type_hash_canon): Use struct tree_type_non_common.
11981
898c90c0
EB
119822011-05-11 Eric Botcazou <ebotcazou@adacore.com>
11983
11984 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
11985 reindent the subsequent block.
11986
79bec923
ST
119872011-05-11 Satoru Takabayashi <satorux@google.com>
11988 Paul Pluzhnikov <ppluzhnikov@google.com>
11989
34203483 11990 * doc/install.texi (Configuration): Document --with-linker-hash-style.
e77e2cbb
PP
11991 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
11992 * config.in: Add LINKER_HASH_STYLE.
11993 * configure.ac: Add --with-linker-hash-style.
11994 * configure: Regenerate.
79bec923 11995
d0340959
RG
119962011-05-11 Richard Guenther <rguenther@suse.de>
11997
11998 PR middle-end/48964
11999 * gimple.c (iterative_hash_canonical_type): Fix typo.
12000
cb032fee
UB
120012011-05-11 Uros Bizjak <ubizjak@gmail.com>
12002
12003 * config/i386/i386.c (legitimize_tls_address)
479fecd3 12004 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
12005 expanders directly for TARGET_GNU2_TLS. Determine pic and
12006 __tls_get_addr symbol reference here. Update call to
12007 gen_tls_global_dynamic_{32,64} for added arguments.
479fecd3 12008 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
12009 expanders directly for TARGET_GNU2_TLS. Determine
12010 __tls_get_addr symbol reference here. Update call to
12011 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
12012 unique UNSPEC REG_EQUIV to libcall block.
12013 (ix86_tls_get_addr): Declare static.
12014 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
12015 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
12016 Do not determine pic and __tls_get_addr symbol reference here. Do not
12017 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
12018 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
12019 (tls_global_dynamic_64): Add operand 2. Do not determine
12020 __tls_get_addr symbol reference here. Do not call
12021 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
12022 (tls_local_dynamic_base64): Ditto for operand 1.
12023
6d3cc8f0
EB
120242011-05-11 Eric Botcazou <ebotcazou@adacore.com>
12025
12026 * function.c (expand_function_start): Initialize stack_check_probe_note
12027 only if the generic stack checking mechanism is used.
12028
51e020fc
RG
120292011-05-11 Richard Guenther <rguenther@suse.de>
12030
12031 PR tree-optimization/15256
12032 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
12033 (A & B) | C, combine (A op CST1) op CST2.
12034 (tree_ssa_forward_propagate_single_use_vars): Only bother to
12035 visit assigns that have uses.
12036
51545682
NF
120372011-05-11 Nathan Froyd <froydnj@codesourcery.com>
12038
cb032fee 12039 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
12040 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
12041 (unpack_ts_type_common_value_fields): ...this. Update comment.
12042 (unpack_value_fields): Adjust for renaming.
12043 (lto_input_ts_type_tree_pointers): Split into...
12044 (lto_input_ts_type_common_tree_pointer): ...this and...
12045 (lto_input_ts_type_non_common_tree_pointers): ...this.
12046 (lto_input_tree_pointers): Adjust for above split.
12047 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
12048 (pack_ts_type_common_value_fields): ...this. Update comment.
12049 (lto_output_ts_type_tree_pointers): Split into...
12050 (lto_output_ts_type_common_tree_pointers): ...this and...
12051 (lto_output_ts_type_non_common_tree_pointers): ...this.
12052 (lto_output_tree_pointers): Adjust for above split.
12053 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
12054 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
12055 * stor-layout.c (vector_type_mode): Adjust location of mode field.
12056 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
12057 Define.
12058 (struct tree_type): Split into...
12059 (struct tree_type_common: ...this and...
12060 (struct tree_type_with_lang_specific): ...this and...
12061 (struct tree_type_non_common): ...this. Adjust accessor macros
12062 accordingly.
12063 (TYPE_VALUES_RAW): Define.
12064 (union tree_node): Update for above changes.
12065 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
12066 TS_TYPE_NON_COMMON.
12067 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
12068 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
12069 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
12070 * treestructu.def (TS_TYPE): Remove.
12071 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
12072 Define.
12073
b03c3082
JJ
120742011-05-11 Jakub Jelinek <jakub@redhat.com>
12075
12076 PR debug/48159
12077 * tree-ssa.c (reset_debug_uses): New function.
12078 * tree-flow.h (reset_debug_uses): New prototype.
12079 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
12080 * tree-loop-distribution.c (generate_loops_for_partition): Call
12081 reset_debug_uses on the stmts that will be removed. Keep around
12082 all debug stmts, don't count them as bits in partition bitmap.
12083 (generate_builtin): Don't count debug stmts or labels as bits in
12084 partition bitmap.
12085
b5e04de5
RG
120862011-05-11 Richard Guenther <rguenther@suse.de>
12087
12088 * gimple.c (gimple_type_hash_1): Merge with ...
12089 (gimple_type_hash): ... this.
12090 (gtc_visit): Remove mode parameter and simplify accordingly.
12091 (gimple_types_compatible_p_1): Likewise.
12092 (gimple_types_compatible_p): Likewise.
12093 (iterative_hash_gimple_type): Likewise.
12094 (visit): Likewise.
12095 (gimple_type_eq): Adjust.
12096
fc6970e4
RE
120972011-05-11 Revital Eres <revital.eres@linaro.org>
12098
12099 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
12100 enters the branch create an anti edge in the opposite direction
12101 to prevent the creation of reg-moves.
12102 * modulo-sched.c: Adjust comment to reflect the fact we are
12103 scheduling closing branch.
12104 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
12105 (stage_count): New field in struct partial_schedule.
12106 (calculate_stage_count): New function.
12107 (normalize_sched_times): Rename to reset_sched_times and handle
12108 incrementing the sched time of the nodes by a constant value
12109 passed as parameter.
12110 (duplicate_insns_of_cycles): Skip closing branch.
12111 (sms_schedule_by_order): Schedule closing branch.
12112 (ps_insn_find_column): Handle closing branch.
12113 (sms_schedule): Call reset_sched_times and adjust the code to
12114 support scheduling of the closing branch.
12115 (ps_insert_empty_row): Update calls to normalize_sched_times
12116 and rotate_partial_schedule functions.
12117
41a58a92
RG
121182011-05-11 Richard Guenther <rguenther@suse.de>
12119
12120 PR middle-end/48953
12121 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
12122
e9f8dcf9
JM
121232011-05-11 Joseph Myers <joseph@codesourcery.com>
12124
cb032fee
UB
12125 * opts.c (finish_options): Move warning settings from process_options.
12126 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 12127
10c224a9
RG
121282011-05-11 Richard Guenther <rguenther@suse.de>
12129
12130 PR tree-optimization/18041
12131 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
12132 (simplify_bitwise_binary): ... this. Handle operand conversions
12133 by applying them to the result instead.
12134 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
12135
825b27de
RG
121362011-05-11 Richard Guenther <rguenther@suse.de>
12137
12138 * gimple.c (gimple_canonical_types_compatible_p): Split out
12139 from gimple_types_compatible_p and friends. Do not recurse
12140 to pointed-to types.
12141 (gimple_canonical_type_eq): Use it.
12142 (iterative_hash_canonical_type): Split out from
12143 iterative_hash_gimple_type and friends. Do not recurse
12144 to pointed-to types.
12145 (gimple_canonical_type_hash): Use it, allocate the hash here.
12146
ca756625
RE
121472011-05-11 Revital Eres <revital.eres@linaro.org>
12148
12149 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
12150 recognizing doloop.
12151
b8abece3
RE
121522011-05-11 Revital Eres <revital.eres@linaro.org>
12153
12154 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
12155 instead of PREV_INSN.
12156
ce7b3761
RE
121572011-05-11 Revital Eres <revital.eres@linaro.org>
12158
12159 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
12160 * loop-doloop.c (doloop_condition_get): Likewise.
12161 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
12162 (doloop_end): New.
12163 * config/arm/arm.md (*addsi3_compare0): Remove "*".
12164
a9dc9d37
NF
121652011-05-10 Nathan Froyd <froydnj@codesourcery.com>
12166
12167 * tree.def (CASE_LABEL_EXPR): Add an operand.
12168 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
12169
96703596
JM
121702011-05-10 Joseph Myers <joseph@codesourcery.com>
12171
12172 * c-decl.c (c_override_global_bindings_to_false): Remove.
12173 (global_bindings_p): Don't check
12174 c_override_global_bindings_to_false.
12175 * c-tree.h (c_override_global_bindings_to_false): Remove.
12176 * c-typeck.c (composite_type): Don't set
12177 c_override_global_bindings_to_false.
12178
dbcc9f08
MM
121792011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12180
12181 PR target/48857, 48495
12182 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
12183 (VSX_MODE): Ditto.
12184 (VSX_MOVE_MODE): Ditto.
12185 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
12186 VSX vector types. Add V2DImode.
12187 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
12188 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
12189 (MODES_TIEABLE_P): Ditto.
12190
12191 * config/rs6000/rs6000.c (rs6000_emit_move): Use
12192 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
12193 VSX_VECTOR_MODE.
12194 (init_cumulative_args): Ditto.
12195 (rs6000_function_arg_boundary): Ditto.
12196 (rs6000_function_arg_advance_1): Ditto.
12197 (rs6000_function_arg): Ditto.
12198 (rs6000_function_ok_for_sibcall): Ditto.
12199 (emit_frame_save): Ditto.
12200 (rs6000_function_value): Ditto.
12201 (rs6000_libcall_value): Ditto.
12202
4a68b4ca
JM
122032011-05-10 Joseph Myers <joseph@codesourcery.com>
12204
12205 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
12206 i386/darwin-lib.h to $libgcc_tm_file.
12207 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
12208
bcb521e9
JM
122092011-05-10 Joseph Myers <joseph@codesourcery.com>
12210
12211 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
12212
f10d3ac9
JM
122132011-05-10 Joseph Myers <joseph@codesourcery.com>
12214
cb032fee 12215 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
12216 * config/rs6000/rs6000-tables.opt: New file (generated).
12217 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
12218 rs6000/rs6000-tables.opt to extra_options.
12219 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
12220 * config/rs6000/rs6000.c (rs6000_select): Remove.
12221 (processor_target_table): Move contents to rs6000-cpus.def.
12222 (darwin_rs6000_override_options): Check
12223 global_options_set.x_rs6000_cpu_index instead of
12224 rs6000_select[1].string.
12225 (rs6000_option_override_internal): Likewise.
12226 (rs6000_handle_option): Don't assert that global structures are in
12227 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
12228 (rs6000_default_cpu): New variable.
12229 (rs6000_file_start): Set it instead of local default_cpu. Check
12230 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
12231 global_options_set.x_rs6000_tune_index instead of rs6000_select.
12232 (rs6000_darwin_file_start): Check rs6000_default_cpu and
12233 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
12234 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
12235 rs6000_select): Remove.
12236 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
12237 Remove.
12238 (mcpu=, mtune=): Use Var, Init, Enum and Save.
12239 * config/rs6000/t-rs6000
12240 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
12241 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
12242 global_options_set.x_rs6000_cpu_index instead of
12243 rs6000_select[1].string.
12244 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
12245 global_options_set.x_rs6000_cpu_index instead of
12246 rs6000_select[1].string.
12247
80cf2e08
JM
122482011-05-10 Joseph Myers <joseph@codesourcery.com>
12249
12250 * config.gcc (libgcc_tm_file): Define instead of including files
12251 from ../../libgcc/config/ in tm_file.
cb032fee 12252 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
12253 * configure: Regenerate.
12254 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
12255 libgcc_tm.h, cs-libgcc_tm.h): New.
12256 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
12257 (clean): Remove libgcc_tm.h.
12258 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
12259 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
12260 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
12261
fd01a351
GJL
122622011-05-10 Georg-Johann Lay <avr@gjlay.de>
12263
12264 PR target/48896
12265 * config/avr/avr.c (avr_ret_register): Return unsigned int
12266 instead of int.
12267 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
12268 it to avr_libcall_value.
12269 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
12270 expand_expr.
12271 (avr_expand_binop_builtin): Ditto.
12272 (avr_expand_unop_builtin): Ditto.
12273
34cc3c86
DD
122742011-05-10 DJ Delorie <dj@redhat.com>
12275
12276 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
12277 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
12278 * config/rx/rx.c (rx_align_for_label): Add label and
12279 uses_threshold parameters. Do not align when the label is not
12280 used enough.
12281 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
12282
be173289
RG
122832011-05-10 Richard Guenther <rguenther@suse.de>
12284
12285 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
12286 a series of conversions and apply foldings similar to what
12287 fold-const does.
12288 (tree_ssa_forward_propagate_single_use_vars): Call it.
12289
e7f78021
JJ
122902011-05-10 Jakub Jelinek <jakub@redhat.com>
12291
6ae70ea2
JJ
12292 PR tree-optimization/48611
12293 PR tree-optimization/48794
12294 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
12295 referenced from RESX or EH_DISPATCH arguments.
12296
e7f78021
JJ
12297 PR debug/48928
12298 * dfp.c (decimal_to_decnumber): Handle conversion from
12299 dconst{1,2,m1,half}.
12300
fca132b9
UB
123012011-05-09 Uros Bizjak <ubizjak@gmail.com>
12302
12303 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
12304 for !flag_prefer_avx128.
12305 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
12306
e4c03378
EB
123072011-05-09 Eric Botcazou <ebotcazou@adacore.com>
12308
12309 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
12310 (fold_ternary_loc): Use expr_location_or.
12311
805d6a75
L
123122011-05-09 H.J. Lu <hongjiu.lu@intel.com>
12313
12314 PR debug/48853
12315 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
12316 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
12317 Pmode and mem_mode is not VOIDmode.
12318
e4c03378 123192011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 12320
e4c03378
EB
12321 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
12322 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 12323
51e7f377
UB
123242011-05-09 Uros Bizjak <ubizjak@gmail.com>
12325
12326 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
12327 (const_pow2_1_to_8_operand): Ditto.
12328 (const_pow2_1_to_128_operand): Ditto.
12329 (const_pow2_1_to_32768_operand): Ditto.
12330 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
12331 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
12332 in insn constraint to check integer value of operand 3.
12333 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
12334
12335 (PINSR_MODE): New mode iterator.
12336 (sse2p4_1): New mode attribute.
12337 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
12338 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
12339 iterator. Use const_int_operand instead of
12340 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
12341 exact_log2 in insn constraint to check integer value of operand 3.
12342
123432011-05-09 Uros Bizjak <ubizjak@gmail.com>
12344
12345 * config/i386/sse.md (blendbits): Remove mode attribute.
12346 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
12347 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
12348 Check integer value of operand 3 in insn constraint.
12349
0ca8de87
RG
123502011-05-09 Richard Guenther <rguenther@suse.de>
12351
12352 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
12353 for diagnostics.
12354 (lto_symtab_merge): Likewise. Do not register types here.
12355 (lto_symtab_merge_decls_2): Likewise.
12356 (lto_symtab_merge_decls_1): Likewise.
12357 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
12358 * gimple.c (enum gtc_mode): Declare.
12359 (gimple_types_compatible_p): Make static.
12360
a9e6994a
AK
123612011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12362
12363 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
12364 temporary register to match Pmode.
12365
fb55d62e
UB
123662011-05-09 Uros Bizjak <ubizjak@gmail.com>
12367
12368 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
12369 and *vec_concatv4si_1_avx.
12370
eb1485a6
UB
123712011-05-09 Uros Bizjak <ubizjak@gmail.com>
12372
12373 PR rtl-optimization/48927
12374 * ira-conflicts.c (commutative_constraint_p): Use
12375 recog_data.alternative_enabled_p to disable alternatives where
12376 "enabled" attribute is false.
12377 (get_dup_num): Ditto.
12378 * ira-lives.c (single_reg_class): Ditto.
12379 (ira_implicitly_set_insn_hard_regs): Ditto.
12380
c46d001a
EB
123812011-05-09 Eric Botcazou <ebotcazou@adacore.com>
12382
12383 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
12384 (dataflow_set_preserve_mem_locs): Likewise.
12385
123862011-05-09 Philipp Thomas <pth@suse.de>
12387
6d9e7c41
PT
12388 * config/mep/mep.c (mep_validate_vliw): Syntax description
12389 should not be translated.
12390
d371df6f
JM
123912011-05-09 Joseph Myers <joseph@codesourcery.com>
12392
12393 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
12394 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 12395 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
12396 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
12397 MIPS_ARCH_OPTION_NATIVE): Define.
12398 * config/mips/mips.c (mips_cpu_info_table): Move contents to
12399 mips-cpus.def.
12400 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
12401 mips_parse_cpu): Remove.
12402 (mips_cpu_info_from_opt, mips_default_arch): New.
12403 (mips_handle_option): Don't assert that global structures are in
12404 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
12405 (mips_option_override): Use new variables and functions to set
eb1485a6 12406 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
12407 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
12408 definition.
12409 * config/mips/mips.opt (march=): Use ToLower and Enum.
12410 (mips): Use ToLower, Enum and Var.
12411 (mtune=): Use ToLower and Enum.
12412 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
12413
4fc07af9
JH
124142011-05-08 Jan Hubicka <jh@suse.cz>
12415
12416 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
12417 Arrange type pairs to be UID ordered.
12418 (gimple_lookup_type_leader): Make inline.
12419
2cf320a8
NC
124202011-05-09 Nick Clifton <nickc@redhat.com>
12421
61d6def5
NC
12422 PR target/48899
12423 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
12424 PROCESSOR_DEFAULT.
12425
2cf320a8
NC
12426 PR target/48897
12427 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
12428 variable 's'.
12429
4f82319d
CLT
124302011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
12431
12432 * combine.c (simplify_comparison): Abstract out parts into...
12433 (simplify_compare_const): ... new function.
12434 (try_combine): Generalize parallel arithmetic/compare combining
12435 to call simplify_compare_const() and CANONICALIZE_COMPARE().
12436
74605a11
JH
124372011-05-08 Jan Hubicka <jh@suse.cz>
12438
12439 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
12440 (cgraph_create_virtual_clone): Call hooks once virtual clone
12441 is finished.
74605a11 12442 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
12443 * ipa-cp.c (ipcp_estimate_growth): Use
12444 estimate_ipcp_clone_size_and_time.
74605a11
JH
12445 * ipa-inline-transform.c (clone_inlined_nodes): Update.
12446 * lto-cgraph.c (input_node): Update.
12447 * ipa-inline.c (recursive_inlining): Update.
12448 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
12449 (evaluate_conditions_for_known_args): Break out from ...
12450 (evaluate_conditions_for_edge): ... here.
12451 (evaluate_conditions_for_ipcp_clone): New function.
12452 (inline_node_duplication_hook): Update clone summary based
12453 on parameter map.
12454 (estimate_callee_size_and_time): Rename to ...
12455 (estimate_node_size_and_time): take NODE instead of EDGE;
12456 take POSSIBLE_TRUTHS as argument.
12457 (estimate_callee_size_and_time): Update.
12458 (estimate_ipcp_clone_size_and_time): New function.
12459 (do_estimate_edge_time): Update.
12460
5c049507
RG
124612011-05-08 Richard Guenther <rguenther@suse.de>
12462
12463 PR middle-end/48908
12464 PR middle-end/48905
12465 * expmed.c (expand_shift_1): Compute adjusted constant shift
12466 amount manually.
12467
f64c36ba
EB
124682011-05-08 Eric Botcazou <ebotcazou@adacore.com>
12469
12470 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
12471
c461a957
EB
124722011-05-08 Eric Botcazou <ebotcazou@adacore.com>
12473
12474 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
12475
7c74e556
JW
124762011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
12477
12478 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
12479
b4c0a884
JH
124802011-05-07 Jan Hubicka <jh@suse.cz>
12481
a9bcb3f0
EB
12482 * ipa-inline-transform.c (inline_call): Account when program size
12483 decreases.
b4c0a884 12484 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
12485 (edge_badness): Reorganize to be power 2 based; fix thinko when
12486 computing badness for negative growth; update comments to match
12487 reality; better dumps.
b4c0a884 12488
c99c0026
EB
124892011-05-07 Eric Botcazou <ebotcazou@adacore.com>
12490
12491 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
12492 type to bool and adjust comment.
12493 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
12494 (fold_mathfn_compare): Remove calls to global_bindings_p.
12495 (fold_inf_compare): Likewise.
12496 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
12497 * c-tree.h (global_bindings_p): Adjust prototype.
12498 * c-decl.c (global_bindings_p): Return bool and simplify.
12499
1400c8e5
ZD
125002011-05-07 Zdenek Dvorak <ook@ucw.cz>
12501
12502 PR tree-optimization/48837
12503 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
12504 when accumulator transformation is performed.
12505
5d0878e7
JH
125062011-05-06 Jan Hubicka <jh@suse.cz>
12507
a9bcb3f0
EB
12508 * i386.h (ix86_tune_indices): Add
12509 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 12510 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
12511 * i386.c (initial_ix86_tune_features): Add
12512 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
12513 (software_prefetching_beneficial_p): Remove predicate.
12514 (ix86_option_override_internal): Use new macro.
12515
58696ce5
JH
125162011-05-06 Jan Hubicka <jh@suse.cz>
12517
12518 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
12519
c47d0034
JH
125202011-05-06 Jan Hubicka <jh@suse.cz>
12521
12522 * cgraph.c (cgraph_add_thunk): Create real function node instead
12523 of alias node; finalize it and mark needed/reachale; arrange visibility
12524 to be right and add it into the corresponding same comdat group list.
12525 (dump_cgraph_node): Dump thunks.
12526 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
12527 cgraph_function_with_gimple_body_p,
12528 cgraph_first_function_with_gimple_body,
c47d0034
JH
12529 cgraph_next_function_with_gimple_body): New functions.
12530 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
12531 New macros.
12532 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
12533 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
12534 * cgraphunit.c (cgraph_finalize_function): Only look into possible
12535 devirtualization when optimizing.
12536 (verify_cgraph_node): Verify thunks.
12537 (cgraph_analyze_function): Analyze thunks.
12538 (cgraph_mark_functions_to_output): Output thunks only in combination
12539 with function they are assigned to.
12540 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
12541 alias into normal node.
12542 (assemble_thunks): New functoin.
12543 (cgraph_expand_function): Use it.
12544 * lto-cgraph.c (lto_output_node): Stream thunks.
12545 (input_overwrite_node): Stream in thunks.
12546 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
12547 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
12548 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
12549 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
12550 (inline_analyze_function): Do not care about thunk jump functions.
12551 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
12552 * ipa-prop.c (ipa_prop_write_jump_functions): Use
12553 cgraph_function_with_gimple_body_p.
12554 * passes.c (do_per_function_toporder): Use
12555 cgraph_function_with_gimple_body_p.
c47d0034
JH
12556 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
12557 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
12558 (function_called_by_processed_nodes_p): Likewise.
12559
d8f426ec
JM
125602011-05-06 Joseph Myers <joseph@codesourcery.com>
12561
12562 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
12563 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
12564 entries.
12565 (mabi=): Replace with separate entries for mabi=altivec,
12566 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
12567 mabi=ieeelongdouble and mabi=ibmlongdouble.
12568 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
12569 check for -mabi=spe without SPE ABI support here.
12570 (rs6000_handle_option): Replace OPT_mabi_ handling with
12571 OPT_mabi_altivec and OPT_mabi_spe handling.
12572
80bde45b
CC
125732011-05-06 Cary Coutant <ccoutant@google.com>
12574
12575 * dwarf2out.c (contains_subprogram_definition): New function.
12576 (should_move_die_to_comdat): Call it.
12577
a91926b9
JL
125782011-05-06 Jeff Law <law@redhat.com>
12579
12580 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
12581 remove_ctrl_stmt_and_useless_edges.
12582 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
12583 (fixup_template_block, thread_single_edge): Likewise.
12584 (mark_threaded_blocks): Use THREAD_TARGET.
12585
1fc1b66d
AM
125862011-05-06 Alan Modra <amodra@gmail.com>
12587
12588 PR target/48900
12589 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
12590 const0_rtx as the arg to the dummy __tls_get_addr libcall.
12591
e194de64
UB
125922011-05-06 Uros Bizjak <ubizjak@gmail.com>
12593
12594 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
12595 constraint modifier to "r".
12596
d740dc9e
JM
125972011-05-06 Joseph Myers <joseph@codesourcery.com>
12598
12599 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
12600 fall through for OPT_mcmodel_.
12601
cab78b15
AK
126022011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12603
12604 * config/s390/s390.c (s390_asm_trampoline_template): Comment
12605 instruction sizes.
e194de64 12606 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 12607
ee6824ae
RR
126082011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12609
eb1485a6
UB
12610 PR target/47930
12611 * config/arm/arm.opt (marm): Document it.
12612 (mthumb): Reject negative variant.
ee6824ae 12613
9ef58464
UB
126142011-05-06 Uros Bizjak <ubizjak@gmail.com>
12615
12616 PR target/48898
12617 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
12618 Fix typo in "ccvt" variable name.
12619
155b6176
TG
126202011-05-06 Tristan Gingold <gingold@adacore.com>
12621
12622 PR target/48895
12623 * config/vms/vms-ar.c (main): Remove cwd variable.
12624
3becc47b
JJ
126252011-05-06 Jakub Jelinek <jakub@redhat.com>
12626
12627 PR debug/48902
12628 * var-tracking.c (prepare_call_arguments): Move else before #endif.
12629
3d528853
NF
126302011-05-05 Nathan Froyd <froydnj@codesourcery.com>
12631
12632 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
12633 * gimplify.c (gimplify_switch_expr): Likewise.
12634 * omp-low.c (expand_omp_sections): Likewise.
12635 * tree-eh.c (lower_try_finally_switch): Likewise.
12636 (lower_eh_dispatch): Likewise.
12637 * tree.h (build_case_label): Declare.
12638 * tree.c (build_case_label): Define.
12639
deb5046b
JM
126402011-05-05 Jason Merrill <jason@redhat.com>
12641
12642 PR c++/40975
12643 * tree-inline.c (copy_tree_r): Use copy_statement_list.
12644 (copy_statement_list): Don't recurse.
12645 * stor-layout.c (copy_self_referential_tree_r): Don't allow
12646 STATEMENT_LIST.
12647
013c0411
JM
126482011-05-05 Joseph Myers <joseph@codesourcery.com>
12649
12650 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
12651 through from -mfpu= handling.
12652 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
12653
a0905f8b
BS
126542011-05-05 Bernd Schmidt <bernds@codesourcery.com>
12655
12656 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
12657 POST_MODIFY.
12658
fc4538e4
SE
126592011-05-05 Steve Ellcey <sje@cup.hp.com>
12660
12661 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
12662 for 11.31.
12663 (hppa[12]*-*-hpux11*): Ditto.
12664 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
12665 * config/ia64/hpux-unix2003.h: New.
12666 * config/pa/pa-hpux1131.opt: New.
12667 * config/pa/pa-hpux1131.h: New.
12668 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
12669 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 12670 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 12671
1e30c578
JJ
126722011-05-05 Jakub Jelinek <jakub@redhat.com>
12673
12674 PR debug/48853
12675 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
12676 instead of mode as 3rd argument to recursive call.
12677 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
12678 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
12679 VOIDmode.
12680 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
12681 don't give up if mode is Pmode and mem_mode is not VOIDmode.
12682 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
12683 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
12684
d19eb620
JB
126852011-05-05 Julian Brown <julian@codesourcery.com>
12686
12687 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
12688 parenthesis in D-register case.
12689
c860fe8c
JM
126902011-05-05 Joseph Myers <joseph@codesourcery.com>
12691
12692 * opt-functions.awk (var_type_struct): Handle Enum options.
12693 * optc-gen.awk: Don't check range of variables of character type.
12694 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
12695 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
12696 rs6000_sdata_name, rs6000_explicit_options): Remove.
12697 (rs6000_option_override_internal): Check for -malign-power here.
12698 Use global_options_set instead of rs6000_explicit_options.
12699 (rs6000_parse_fpu_option): Remove.
12700 (rs6000_handle_option): Access variables via opts and opts_set
12701 pointers. Use error_at and warning_at. Add fall-through
12702 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
12703 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
12704 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
12705 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
12706 here. Don't use rs6000_parse_fpu_option.
12707 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
12708 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
12709 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
12710 (mrecip=): Use Var.
12711 (mspe): Use Var and Save.
12712 (mtraceback=): Use Enum and Var.
12713 (rs6000_traceback_type): New Enum and EnumValue entries.
12714 (mfloat-gprs=): Use Enum, Var and Save.
12715 (rs6000_float_gprs): New Enum and EnumValue entries.
12716 (mlong-double-): use Var and Save.
12717 (msched-costly-dep=, minsert-sched-nops=): Use Var.
12718 (malign-): Use Enum and Var.
12719 (rs6000_alignment_flags): New Enum and EnumValue entries.
12720 (mfpu=): Use Enum.
12721 (fpu_type_t): New Enum and EnumValue entries.
12722 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12723 global_options_set instead of rs6000_explicit_options.
12724 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12725 global_options_set instead of rs6000_explicit_options.
12726 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12727 global_options_set instead of rs6000_explicit_options.
12728 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12729 global_options_set instead of rs6000_explicit_options.
12730 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
12731 global_options_set instead of rs6000_explicit_options.
12732 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12733 global_options_set instead of rs6000_explicit_options.
12734 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
12735 definition.
12736 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12737 global_options_set instead of rs6000_explicit_options.
12738 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
12739 (rs6000_cmodel): New Enum and EnumValue entries.
12740 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12741 global_options_set instead of rs6000_explicit_options.
12742 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
12743 (mtls-size=): Use Enum and Var.
12744 (rs6000_tls_size): New Enum and EnumValue entries.
12745
0691dde9
MM
127462011-05-05 Michael Matz <matz@suse.de>
12747
12748 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
12749 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
12750 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
12751 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
12752 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
12753 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
12754 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
12755 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
12756 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
12757 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
12758 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
12759 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
12760 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
12761 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
12762 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
12763 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
12764
86529a49
RG
127652011-05-05 Richard Guenther <rguenther@suse.de>
12766
12767 * expmed.c (expand_variable_shift): Rename to ...
12768 (expand_shift_1): ... this. Take an expanded shift amount.
12769 For rotates recurse directly not building trees for the shift amount.
12770 (expand_variable_shift): Wrap around expand_shift_1.
12771 (expand_shift): Adjust.
12772
d0228c2e
JJ
127732011-05-05 Jakub Jelinek <jakub@redhat.com>
12774
12775 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
12776
907a08d9
EB
127772011-05-05 Eric Botcazou <ebotcazou@adacore.com>
12778
12779 * tree.h (get_pending_sizes): Remove prototype.
12780 (put_pending_size): Likewise.
12781 (put_pending_sizes): Likewise.
12782 * stor-layout.c (pending_sizes): Delete.
12783 (get_pending_sizes): Likewise.
12784 (put_pending_size): Likewise.
12785 (put_pending_sizes): Likewise.
12786 (variable_size): Do not call put_pending_size and tidy up.
12787 * function.h (struct function): Remove dont_save_pending_sizes_p.
12788 * lto-streamer-in.c (input_function): Do not stream it.
12789 * lto-streamer-out.c (output_function): Likewise.
12790 * tree-inline.c (initialize_cfun): Do not copy it.
12791 * c-decl.c (store_parm_decls): Do not set it.
12792 * omp-low.c (create_task_copyfn): Likewise.
12793 * tree-optimize.c (tree_rest_of_compilation): Likewise.
12794
386d9c57
UB
127952011-05-05 Uros Bizjak <ubizjak@gmail.com>
12796
12797 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
12798 conditions.
12799 (*movdf_internal): Ditto.
12800 (*movdf_internal_nointeger): Ditto.
12801 (*movsf_internal): Ditto.
12802
a04a722b
JM
128032011-05-05 Joseph Myers <joseph@codesourcery.com>
12804
12805 * c-decl.c (finish_decl): Don't call get_pending_sizes.
12806 (grokparm): Add parameter expr. Pass it to grokdeclarator.
12807 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
12808 (c_variable_size): Remove.
12809 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
12810 call put_pending_sizes.
12811 (get_parm_info): Add parameter expr. Use it to set
12812 arg_info->pending_sizes.
12813 (store_parm_decls): Use arg_info->pending_sizes instead or calling
12814 get_pending_sizes.
12815 * c-parser.c (c_parser_parms_declarator): Update call to
12816 c_parser_parms_list_declarator.
12817 (c_parser_parms_list_declarator): Take parameter expr. Update
12818 call to push_parm_decl. Update recursive call. Don't call
12819 get_pending_sizes. Update calls to get_parm_info.
12820 (c_parser_objc_method_definition): Update calls to
12821 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 12822 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
12823 (c_parser_objc_method_decl): Add parameter expr. Update call to
12824 grokparm.
386d9c57 12825 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
12826 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
12827 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
12828
c92a6f97
MH
128292011-05-05 Michael Hope <michael.hope@linaro.org>
12830
386d9c57
UB
12831 PR pch/45979
12832 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
12833 __ARM_EABI__ hosts.
c92a6f97 12834
07ea0048
UW
128352011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12836
12837 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
12838 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
12839 (spu_output_mi_thunk): New function.
12840
d634bfa1
RO
128412011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12842
12843 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
12844 targetm.asm_out.print_operand.
12845 * config/sol2.c: Include target.h.
12846
40fda55b
JH
128472011-05-04 Jan Hubicka <jh@suse.cz>
12848
12849 * ipa-inline.c (reset_edge_caches): New function.
12850 (update_caller_keys): Add check_inlinablity_for; do not
12851 reset edge caches; remove now unnecesary loop.
386d9c57 12852 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
12853 (update_all_callee_keys): Likewise.
12854 (inline_small_functions): Sanity check cache; update code
12855 recomputing it.
12856
0360f70d
BS
128572011-05-04 Bernd Schmidt <bernds@codesourcery.com>
12858
12859 PR rtl-optimization/47612
12860 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
12861 as the last insn of the sequence to be moved.
12862
7a994646
TB
128632011-05-04 Tobias Burnus <burnus@net-b.de>
12864
12865 PR fortran/48864
12866 * doc/invoke.texi (Ofast): Document that it
12867 enables Fortran's -fno-protect-parens.
12868
7a2f7208
UB
128692011-05-04 Uros Bizjak <ubizjak@gmail.com>
12870
12871 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
12872
a2d42931
EB
128732011-05-04 Eric Botcazou <ebotcazou@adacore.com>
12874
12875 * stor-layout.c (variable_size): Do not issue errors.
12876
f81b1a3d
RG
128772011-05-04 Richard Guenther <rguenther@suse.de>
12878
12879 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
12880 for array-ref indices.
12881 (tree_coverage_counter_addr): Likewise.
12882 (build_fn_info_type): Use size_int for index types.
12883 (build_gcov_info): Likewise.
12884
c62c040f
RG
128852011-05-04 Richard Guenther <rguenther@suse.de>
12886
12887 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
12888 to build_int_cst.
12889 * c-typeck.c (really_start_incremental_init): Use bitsize_int
12890 for constructor indices.
12891 (push_init_level): Likewise.
12892
1e3287d0
RG
128932011-05-04 Richard Guenther <rguenther@suse.de>
12894
12895 * explow.c (promote_mode): Move variable declarations before code.
12896
6c32445b
NF
128972011-05-04 Nathan Froyd <froydnj@codesourcery.com>
12898
12899 * tree.h (build_function_type_array): Declare.
12900 (build_varargs_function_type_array): Declare.
12901 (build_function_type_vec, build_varargs_function_type_vec): Define.
12902 * tree.c (build_function_type_array_1): New function.
12903 (build_function_type_array): New function.
12904 (build_varargs_function_type_array): New function.
12905
fdabf269
RS
129062011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
12907
12908 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
12909 before setting STMT_VINFO_TYPE.
12910
a207915a
UW
129112011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12912
12913 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
12914 instead of spu_pass_by_reference.
12915
5e617be8
AK
129162011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12917
12918 * calls.c (emit_library_call_value_1): Invoke
12919 promote_function_mode hook on libcall arguments.
12920 * explow.c (promote_function_mode, promote_mode): Handle TYPE
12921 argument being NULL.
12922 * targhooks.c (default_promote_function_mode): Lisewise.
12923 * config/s390/s390.c (s390_promote_function_mode): Likewise.
12924 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
12925
12926 * doc/tm.texi: Document that TYPE argument might be NULL.
12927
486d04be
SH
129282011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
12929
12930 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
12931
9b19b026
SH
129322011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
12933
12934 From Bernd Schmidt
12935 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
12936
502bc3df
RO
129372011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12938
12939 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
12940 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
12941 Move ...
12942 * mips-tfile.c: ... here.
12943 Don't include coretypes.h, tm.h, filenames.h.
12944 (saber_stop): Remove definition and all calls.
12945 [__SABER__]: Remove.
12946 (__LINE__): Remove default.
12947 (Size_t, Ptrdiff_t): Remove definitions.
12948 Replace by size_t, ptrdiff_t.
12949 [!MIPS_DEBUGGING_INFO]: Remove.
12950 (SHASH_SIZE, THASH_SIZE): Remove defaults.
12951 (progname): Add const.
12952 (STATIC): Remove.
12953 Replace all uses by static.
12954 (ALIGN_SYMTABLE_OFFSET): Remove default.
12955 * mips-tdump.c: Don't include coretypes.h, tm.h.
12956 Remove !MIPS_IS_STAB guard.
12957 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
12958 $(TM_H), filenames.h dependencies.
12959 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
12960
991eb6ef
SH
129612011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
12962
12963 From Jie Zhang
12964 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
12965 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
12966
420ccc84
SH
129672011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
12968
12969 From Bernd Schmidt
12970 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
12971 account and save/restore RETS.
12972 (PROFILE_BEFORE_PROLOGUE): Define.
12973 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
12974 the push insn to use predecrement.
12975
9f8d69ee
SH
129762011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
12977
12978 From Jie Zhang
12979 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
12980
662c03f4
NC
129812011-05-04 Nick Clifton <nickc@redhat.com>
12982
12983 * config/mn10300/mn10300.c: Include cfgloop.h.
12984 (DUMP): New macro.
12985 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
12986 Lcc or a FLcc insn into the instruction stream.
12987 (mn10300_block_contains_call): New function. Returns true if the
12988 given basic block contains a CALL insn.
12989 (mn10300_loop_contains_call_insn): New function. Returns true if
12990 the given loop contains a CALL insn.
12991 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
12992 to use the SETLB and Lcc or FLcc insns.
12993 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
12994 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
12995 * config/mn10300/mn10300.opt (msetlb): New option. Used to
12996 disable the SETLB optimization.
12997 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
12998 __SETLB__ or __NO_SETLB__.
12999 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
13000 (movsf_internal): Handle MDR register.
13001 (cmpsi): Make visible.
13002 (setlb): New pattern.
13003 (Lcc): New pattern.
13004 (FLcc): New pattern.
13005
843b6915
UB
130062011-05-04 Uros Bizjak <ubizjak@gmail.com>
13007
13008 PR target/48860
13009 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
13010 for reg<->xmm moves.
13011 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
13012 (vec_concatv2di_rex64_sse): Ditto.
13013 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
13014 (*vec_extractv2di_1_rex64): Ditto.
13015
13016 Revert:
13017 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
13018
13019 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
13020 reg<->xmm moves.
13021 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
13022
d35936ab
RG
130232011-05-04 Richard Guenther <rguenther@suse.de>
13024
13025 * tree.h (int_const_binop): Remove notrunc argument.
13026 * fold-const.c (int_const_binop): Remove notrunc argument. Always
13027 create integer constants that are properly truncated.
13028 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
13029 (const_binop): Remove zero notrunc argument to int_const_binop.
13030 (size_binop_loc): Likewise.
13031 (fold_div_compare): Likewise.
13032 (maybe_canonicalize_comparison_1): Likewise.
13033 (fold_comparison): Likewise.
13034 (fold_binary_loc): Likewise.
13035 (multiple_of_p): Likewise.
13036 * expr.c (store_constructor): Likewise.
13037 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
13038 (maybe_fold_stmt_addition): Likewise.
13039 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
13040 * stor-layout.c (layout_type): Likewise.
13041 * tree-data-ref.c (tree_fold_divides_p): Likewise.
13042 * tree-sra.c (build_ref_for_offset): Likewise.
13043 (build_user_friendly_ref_for_offset): Likewise.
13044 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
13045 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13046 * tree-ssa-loop-niter.c (inverse): Likewise.
13047 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13048 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
13049 * tree-switch-conversion.c (check_range): Likewise.
13050 (build_constructors): Likewise.
13051 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
13052 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
13053 (extract_range_from_assert): Likewise.
13054 (vrp_int_const_binop): Likewise.
13055 (extract_range_from_binary_expr): Likewise.
13056 (extract_range_from_unary_expr): Likewise.
13057 (check_array_ref): Likewise.
13058 (find_case_label_range): Likewise.
13059 (simplify_div_or_mod_using_ranges): Likewise.
13060 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
13061 comparing case labels for merging.
13062
8992c063
MW
130632011-05-03 Mark Wielaard <mjw@redhat.com>
13064
13065 * dwarf2out.c (debug_str_hash_forced): Removed.
13066 (gen_label_for_indirect_string): Removed.
13067 (get_debug_string_label): Removed.
13068 (AT_string_form): Generate label directly.
13069 (output_indirect_string): Test indirect_string_node for
13070 DW_FORM_strp instead of checking label and refcount.
13071 (prune_indirect_string): Removed.
13072 (prune_unused_types): Don't check debug_str_hash_forced or
13073 call prune_indirect_string.
13074
4868e6ea
AO
130752011-05-04 Alexandre Oliva <aoliva@redhat.com>
13076
13077 PR other/48093
13078 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
13079
01a5c0ab
AO
130802011-05-04 Alexandre Oliva <aoliva@redhat.com>
13081
13082 PR debug/47994
13083 PR debug/47919
13084 * combine.c (try_combine): Skip debug insns at m_split tests.
13085
6ac00218
MW
130862011-04-26 Mark Wielaard <mjw@redhat.com>
13087
13088 PR42288
13089 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
13090 when info_section_emitted.
13091
3af42a7b
JM
130922011-05-03 Joseph Myers <joseph@codesourcery.com>
13093
13094 * config/mips/mips-opts.h: New.
13095 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
13096 to mips-opts.h.
13097 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
13098 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
13099 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
13100 via opts pointer.
13101 * config/mips/mips.h (enum mips_code_readable_setting): Move to
13102 mips-opts.h.
13103 (mips_abi, mips_code_readable): Don't declare.
843b6915 13104 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
13105 (mabi=): Use Enum and Var.
13106 (mips_abi): New Enum and EnumValue entries.
13107 (mcode-readable=): Use Enum and Var.
13108 (mips_code_readable_setting): New Enum and EnumValue entries.
13109 (mr10k-cache-barrier=): Use Enum and Var.
13110 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
13111
1cb1a99f
JH
131122011-05-03 Jan Hubicka <jh@suse.cz>
13113
13114 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
13115 replace hash by pointer map.
13116 (cgraph_node_set_element_def, cgraph_node_set_element,
13117 const_cgraph_node_set_element, varpool_node_set_element_def,
13118 varpool_node_set_element, const_varpool_node_set_element): Remove.
13119 (free_cgraph_node_set, free_varpool_node_set): New function.
13120 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
13121 * tree-emutls.c: Free varpool node set.
13122 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
13123 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
13124 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
13125 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
13126 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
13127 Move here from ipa.c; implement using pointer_map
13128 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
13129 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
13130 debug_cgraph_node_set, varpool_node_set_new,
13131 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
13132 dump_varpool_node_set, debug_varpool_node_set):
13133 Move to ipa-uitls.c.
13134 * passes.c (ipa_write_summaries): Update.
13135
7f31f4db
SH
131362011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13137
7a2f7208
UB
13138 From Mike Frysinger:
13139 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
13140 bf542/bf544/bf547/bf548/bf549.
7f31f4db 13141
b70fce6d
UB
131422011-05-03 Uros Bizjak <ubizjak@gmail.com>
13143
13144 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
13145
265b1d82
SH
131462011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13147
13148 From Bernd Schmidt:
13149 * config/bfin/bfin.md (MOVCC): New mode_macro.
13150 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
13151 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
13152 comments from generated assembly.
13153
f0b568f3
SH
131542011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13155
13156 From Bernd Schmidt
13157 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
13158 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
13159 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
13160 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
13161 * config/bfin/lib1funcs.asm (___muldi3): New function.
13162
2c67cf6e
NF
131632011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13164
13165 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
13166 build_function_type_list instead of build_function_type.
13167 Rearrange initialization of `args' to do so.
13168
f9ac28ad
NF
131692011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13170
13171 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
13172 instead of build_function_type.
13173
22b8798c
NF
131742011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13175
13176 * config/rs6000/rs6000.c (spe_init_builtins): Call
13177 build_function_type_list instead of build_function_type.
13178 (paired_init_builtins, altivec_init_builtins): Likewise.
13179 (builtin_function_type): Likewise.
13180
4cb44528
NF
131812011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13182
13183 * config/sh/sh.c (sh_media_init_builtins): Call
13184 build_function_type_list instead of build_function_type.
13185
4c203a6a
NF
131862011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13187
13188 * config/sparc/sparc.c (sparc_file_end): Call
13189 build_function_type_list instead of build_function_type.
13190
d6a3d62b
NF
131912011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13192
13193 * config/alpha/alpha.c (alpha_init_builtins): Call
13194 build_function_type_list instead of build_function_type.
13195
de530b86
NF
131962011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13197
13198 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
13199 build_function_type_list instead of build_function_type.
13200
baeec5f2
NF
132012011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13202
13203 * config/iq2000/i2000.c (iq2000_init_builtins): Call
13204 build_function_type_list instead of build_function_type.
13205 Delete `endlink' variable.
13206
c19afe52
NF
132072011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13208
13209 * config/avr/avr.c (avr_init_builtins): Call
13210 build_function_type_list instead of build_function_type.
13211
a341df0a
NF
132122011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13213
13214 * config/picochip/picochip.c (picochip_init_builtins): Call
13215 build_function_type_list instead of build_function_type.
13216 Delete `endlink' variable.
13217
2102b1e1
NF
132182011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13219
13220 * config/bfin/bfin.c (bfin_init_builtins): Call
13221 build_function_type_list instead of build_function_type.
13222
9f111209
SH
132232011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13224
13225 From Bernd Schmidt
13226 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
13227 that's not CONST_INT. Seemingly redundant check is due to PR39768.
13228
7071d064
SH
132292011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13230
13231 From Jie Zhang:
13232 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
13233 libbffastfp overrides libgcc when -mfast-fp.
13234
748f7574 132352011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
44fb48ef
SH
13236
13237 Originally from Bernd Schmidt
13238 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
13239 * config/bfin/bfin.c (override_options): Test it and error if
13240 TARGET_FDPIC.
13241
1a3a9152
SH
132422011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13243
13244 Originally From Bernd Schmidt
13245 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
13246 FD-PIC.
13247
7134c090
JL
132482011-05-03 Jeff Law <law@redhat.com>
13249
13250 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
13251 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
13252 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
13253 than accessing AUX field directly. Free the AUX field before
13254 clearing it.
7134c090
JL
13255 (thread_block, thread_through_loop_header): Likewise.
13256 (thread_single_edge, mark_threaded_blocks): Likewise.
13257 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
13258 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 13259
2c7eebae
BS
132602011-05-03 Bernd Schmidt <bernds@codesourcery.com>
13261
13262 * function.c (init_function_start): Call decide_function_section.
13263 * varasm.c (decide_function_section): New function.
13264 (assemble_start_function): When not using
13265 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
13266 or first_function_block_is_cold.
13267 * rtl.h (decide_function_section): Declare.
13268
17038fcf
JJ
132692011-05-03 Uros Bizjak <ubizjak@gmail.com>
13270 Jakub Jelinek <jakub@redhat.com>
13271
13272 PR target/48774
13273 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
13274 only succeed if req_mode is the same as set_mode.
13275
3810076b
BS
132762011-05-03 Bernd Schmidt <bernds@codesourcery.com>
13277
13278 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
13279 * genemit.c (gen_exp): Handle RETURN.
13280 * emit-rtl.c (verify_rtx_sharing): Likewise.
13281 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
13282 * rtl.c (copy_rtx): RETURN is shared.
13283 * rtl.h (enum global_rtl_index): Add GR_RETURN.
13284 (ret_rtx): New.
13285 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
13286 * config/s390/s390.c (s390_emit_epilogue): Likewise.
13287 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
13288 * config/cris/cris.c (cris_expand_return): Likewise.
13289 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
13290 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
13291 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
13292 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
13293 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
13294 Likewise.
13295 * config/v850/v850.c (expand_epilogue): Likewise.
13296 * config/bfin/bfin.c (bfin_expand_call): Likewise.
13297 * config/arm/arm.md (epilogue): Likewise.
13298 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
13299 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
13300 variable to ret_reg.
13301
9efdb4ad
RG
133022011-05-03 Richard Guenther <rguenther@suse.de>
13303
13304 PR lto/48846
13305 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
13306 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
13307 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
13308
60a45536
RG
133092011-05-03 Richard Guenther <rguenther@suse.de>
13310
13311 * c-decl.c (grokdeclarator): Instead of looking at
13312 TREE_OVERFLOW check if the constant fits in the index type.
13313
3188ed59
RS
133142011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13315
13316 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
13317 (vec_store_lanes<mode><mode>): Likewise.
13318
272c6793
RS
133192011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13320
13321 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
13322 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
13323 convert_optab_index values.
13324 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
13325 * genopinit.c (optabs): Initialize the new optabs.
13326 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
13327 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
13328 (expand_STORE_LANES): New functions.
13329 * tree.h (build_array_type_nelts): Declare.
13330 * tree.c (build_array_type_nelts): New function.
13331 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
13332 (vect_model_load_cost): Likewise.
13333 (vect_store_lanes_supported, vect_load_lanes_supported)
13334 (vect_record_strided_load_vectors): Declare.
13335 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
13336 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
13337 (vect_transform_strided_load): Split out statement recording into...
13338 (vect_record_strided_load_vectors): ...this new function.
13339 * tree-vect-stmts.c (create_vector_array, read_vector_array)
13340 (write_vector_array, create_array_ref): New functions.
13341 (vect_model_store_cost): Add store_lanes_p argument.
13342 (vect_model_load_cost): Add load_lanes_p argument.
13343 (vectorizable_store): Try to use store-lanes functions for
13344 interleaved stores.
13345 (vectorizable_load): Likewise load-lanes and loads.
13346 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
13347 to vect_model_store_cost.
13348 (vect_build_slp_tree): Likewise vect_model_load_cost.
13349
0f6d54f7
RS
133502011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13351
13352 * hooks.h (hook_bool_mode_uhwi_false): Declare.
13353 * hooks.c (hook_bool_mode_uhwi_false): New function.
13354 * target.def (array_mode_supported_p): New hook.
13355 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
13356 * doc/tm.texi: Regenerate.
13357 * stor-layout.c (mode_for_array): New function.
13358 (layout_type): Use it.
13359 * config/arm/arm.c (arm_array_mode_supported_p): New function.
13360 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
13361
b15eacc7
EB
133622011-05-03 Eric Botcazou <ebotcazou@adacore.com>
13363
13364 PR target/48723
13365 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
13366 for -fstack-check if the size to allocate is negative.
13367
575bfb00
LC
133682011-05-02 Lawrence Crowl <crowl@google.com>
13369
13370 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
13371 (timevar_cond_start): New for starting a timer only when it is not
13372 already running.
13373 (timevar_cond_stop): New for stopping a timer when it was not already
13374 running.
13375
13376 * timevar.c (timevar_stop): Enable start/stop timers to start again.
13377 (timevar_cond_start): New as above.
13378 (timevar_cond_stop): New as above.
13379
13380 * timevar.def: Add start/stop timers for compiler phases,
13381 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
13382 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
13383 and TV_PHASE_FINALIZE.
13384 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
13385 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
13386 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
13387 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
13388 Make unused TV_OVERLOAD into a start/stop timer.
13389
13390 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
13391 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
13392 to indicate that they are start/stop timers.
13393
13394 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
13395 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
13396 Move initialization to do_compile.
13397 (do_compile): Add initialization from above.
13398 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
13399
13400 * c-decl.c (c_write_global_declarations): Add start/stop of
13401 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
13402
13403 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
13404 or TV_PARSE_INLINE, as appropriate.
13405 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
13406 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
13407
3533b943
JM
134082011-05-02 Jason Merrill <jason@redhat.com>
13409
13410 PR c++/40975
13411 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
13412
2609a0ce
SM
134132011-05-02 Simon Martin <simartin@users.sourceforge.net>
13414
13415 PR c/35445
13416 * c-decl.c (finish_decl): Only create a composite if the types are
13417 compatible.
13418
6b0e4cbb
JM
134192011-05-02 Joseph Myers <joseph@codesourcery.com>
13420
13421 * config/fr30/fr30-protos.h (Mmode): Don't define.
13422 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
13423 definition where used.
13424 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
13425 define. Expand definitions where used.
13426 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
13427 Expand definitions where used.
13428 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
13429 rx_function_arg, rx_function_arg_advance,
13430 rx_function_arg_boundary): Expand definitions of those macros.
13431 * config/v850/v850-protos.h (Mmode): Don't define. Expand
13432 definition where used.
13433
4e938ce6
UB
134342011-05-02 Uros Bizjak <ubizjak@gmail.com>
13435
13436 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
13437 reg<->xmm moves.
13438 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
13439 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
13440 with *movv2sf_internal_rex64_avx.
13441 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
13442 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
13443 Use %v prefix in insn mnemonic to handle TARGET_AVX.
13444 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
13445 "vex" in "prefix" attribute calculation.
13446 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
13447
36019c19
SH
134482011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
13449
7a2f7208
UB
13450 PR target/47951
13451 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
13452 inputs match the output.
36019c19 13453
f69ea688
AS
134542011-05-02 Andreas Schwab <schwab@linux-m68k.org>
13455
13456 PR target/47955
13457 * config/m68k/m68k.c (m68k_expand_prologue): Set
13458 current_function_static_stack_size.
13459
c33406f5
JH
134602011-05-02 Jan Hubicka <jh@suse.cz>
13461
13462 * lto-streamer.c (lto_streamer_cache_insert_1,
13463 lto_streamer_cache_lookup, lto_streamer_cache_create,
13464 lto_streamer_cache_delete): Use pointer map instead of hashtable.
13465 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
13466
47c94d21
JM
134672011-05-02 Joseph Myers <joseph@codesourcery.com>
13468
13469 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
13470 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
13471 config/m68k/t-opts: New files.
13472 * config/m68k/m68k-tables.opt: New file (generated).
13473 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
13474 extra_options and m68k/t-opts to tmake_file.
13475 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
13476 (all_isas): Initialize using m68k-isas.def.
13477 (all_microarchs): Initialize using m68k-microarchs.def.
13478 (m68k_find_selection): Remove.
13479 (m68k_handle_option): Don't assert that global structures are in
13480 use. Use error_at. Access variables via opts pointer. Don't
13481 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
13482 directly for -m68020-40 and -m68020-60.
13483 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
13484 m68k_tune_entry here.
13485 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
13486 to m68k-opts.h.
13487 (m68k_library_id_string): Remove declaration.
4e938ce6 13488 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
13489 (m68k_library_id_string): New Variable.
13490 (march=, mcpu=, mtune=): Use Enum and Var.
13491
e562bf36
RG
134922011-05-02 Richard Guenther <rguenther@suse.de>
13493
13494 * varasm.c (output_constructor_regular_field): Compute zero-based
13495 index with double-ints. Make sure to ICE instead of producing
13496 wrong code.
13497 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
13498 in asserts. Properly use a signed type.
13499
6bec6c98
UB
135002011-05-02 Uros Bizjak <ubizjak@gmail.com>
13501
13502 * config/i386/sse.md (V): New mode iterator.
13503 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
13504 TARGET_SSE2.
13505 (V_256): Rename from AVX256MODE.
13506 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
13507 condition to all users.
13508 (VF1): Ditto.
13509 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
13510 condition to all users.
13511 (VF_128): Make V4SF mode unconditional.
13512 (VF_256): Rename from AVX256MODEF2P.
13513 (VI4F_128): Rename from SSEMODE4S.
13514 (VI8F_128): Rename from SSEMODE2D.
13515 (VI4F_256): Rename from AVX256MODE8P.
13516 (VI8F_256): Rename from AVX256MODE4P.
13517 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
13518 (ssescalarmodesuffix): Remove SF and DF modes.
13519 (SSEMODE124): Remove.
13520 (SSEMODE1248): Ditto.
13521 (SSEMODEF2P): Ditto.
13522 (AVXMODEF2P): Ditto.
13523 (AVXMODEFDP): Ditto.
13524 (AVXMODEFSP): Ditto.
13525 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
13526 unconditional.
13527 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
13528 unconditional.
13529 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
13530 xop_pcmov_<mode>256. Use V mode iterator.
13531
13532 Adjust RTX patterns globally for renamed mode attributes.
13533
2dfdcb4b
UW
135342011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13535
13536 * haifa-sched.c (sched_emit_insn): Emit insn before first
13537 non-scheduled insn. Inform back-end about new insn. Add
13538 new insn to scheduled_insns list.
13539
90bc4623
RG
135402011-05-02 Richard Guenther <rguenther@suse.de>
13541
13542 PR tree-optimization/48822
13543 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
13544 (process_scc): Indicate which iteration we start.
13545
bc0fe8cb
JH
135462011-05-02 Jan Hubicka <jh@suse.cz>
13547
13548 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
13549 (lto_section_overrun): New.
13550 * lto-section-out.c (append_block): Rename to ...
13551 (lto_append_block): ... this one; export.
13552 (lto_output_1_stream): Move lto lto-streamer.h
13553 (lto_output_data_stream): Update.
13554 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
13555 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
13556 functions.
13557
f070a9d1
RG
135582011-05-02 Richard Guenther <rguenther@suse.de>
13559
13560 * tree.c (tree_code_counts): New global array.
13561 (record_node_allocation_statistics): Count individual tree codes.
13562 (dump_tree_statistics): Dump individual code stats.
13563
09dfe187
JH
135642011-05-01 Jan Hubicka <jh@suse.cz>
13565
13566 * ipa-inline.c (caller_growth_limits): Fix thinko when
13567 looking for largest stack frame.
13568 * ipa-inline.h (dump_inline_summary): Declare.
13569 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
13570 on stack usage.
13571 (dump_inline_summary): Export.
13572 (debug_inline_summary): Declare as DEBUG_FUNCTION.
13573
6f76a878
AS
135742011-05-01 Anatoly Sokolov <aesok@post.ru>
13575
13576 * reginfo.c (memory_move_cost): Change rclass argument type form
13577 'enum reg_class' to reg_class_t.
13578 * reload.h (memory_move_cost): Update prototype.
13579 * postreload.c reload_cse_simplify_set): Change type dclass var to
13580 reg_class_t.
13581 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
13582 Update prototype.
13583 (ira_allocate_and_set_costs): Change aclass argument type form
13584 'enum reg_class' to reg_class_t.
6bec6c98 13585 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
13586 Change aclass argument type to reg_class_t.
13587 (update_conflict_hard_reg_costs): Change type aclass and pref vars
13588 to reg_class_t.
13589 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
13590 memory_move_cost call.
13591
13592 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
13593 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
13594 Change type tmp var to reg_class_t.
13595
9a4ac625
JH
135962011-04-30 Jan Hubicka <jh@suse.cz>
13597
13598 * ipa-inline.c (can_inline_edge_p): Disregard limits when
13599 inlining into function with flatten attribute.
13600 (want_inline_small_function_p): Be more realistic about inlining
13601 cold calls where callee size grows.
13602
dd8352ee
JH
136032011-04-30 Jan Hubicka <jh@suse.cz>
13604
13605 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
13606 flags.
13607
46e43d2b
AS
136082011-04-30 Anatoly Sokolov <aesok@post.ru>
13609
13610 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
13611 PRINT_OPERAND_PUNCT_VALID_P): Remove.
13612 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
13613 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
13614 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13615 (print_operand): Rename to...
13616 (sparc_print_operand): ...this. Make static. Adjust
13617 sparc_print_operand function call.
13618 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
13619 functions.
13620
ecb62563
JH
136212011-04-30 Jan Hubicka <jh@suse.cz>
13622
6bec6c98 13623 PR middle-end/48752
ecb62563
JH
13624 * ipa-inline.c (early_inliner): Disable when doing late
13625 addition of function.
13626
edb9b69e
JJ
136272011-04-30 Jakub Jelinek <jakub@redhat.com>
13628
be80a87e
JJ
13629 * dwarf2out.c (get_address_mode): New inline.
13630 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
13631 if not dwarf_strict emit
13632 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
13633 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
13634 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
13635 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
13636 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
13637 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
13638 mem_loc_descriptor callers.
13639 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13640 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
13641 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
13642 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
13643 (base_types): New variable.
13644 (get_base_type_offset, calc_base_type_die_sizes,
13645 base_type_for_mode, mark_base_types, base_type_cmp,
13646 move_marked_base_types): New functions.
13647 (calc_die_sizes): Assert that die_offset is 0 or equal to
13648 next_die_offset.
13649 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
13650 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
13651 callers. If not dwarf_strict, call mem_loc_descriptor even for
13652 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
13653 (gen_subprogram_die): Don't give up on call site parameters
13654 with non-integral or large integral modes. Adjust
13655 mem_loc_descriptor callers.
13656 (prune_unused_types): Call prune_unused_types_mark on base_types
13657 vector entries.
13658 (resolve_addr): Call mark_base_types.
13659 (dwarf2out_finish): Call move_marked_base_types.
13660
edb9b69e
JJ
13661 PR tree-optimization/48809
13662 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
13663 type.
13664 (gen_inbound_check): Don't compute index_expr - range_min in utype
13665 again, instead reuse SSA_NAME initialized in build_arrays.
13666 Remove two useless gsi_for_stmt calls.
13667
a6545a3d
JL
136682011-04-29 Jeff Law <law@redhat.com>
13669
13670 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
13671
af8bca3c
MJ
136722011-04-29 Martin Jambor <mjambor@suse.cz>
13673
13674 * cgraph.h (cgraph_postorder): Remove declaration.
13675 * ipa-utils.h (ipa_free_postorder_info): Declare.
13676 (ipa_reverse_postorder): Likewise.
13677 * cgraphunit.c: Include ipa-utils.h.
13678 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
13679 * ipa-inline.c: Include ipa-utils.h.
13680 (ipa_inline): Update call to ipa_reverse_postorder.
13681 * ipa-pure-const.c (propagate_pure_const): Update call to
13682 ipa_reduced_postorder and ipa_print_order. Call
13683 ipa_free_postorder_info to clean up.
13684 (propagate_nothrow): Likewise.
13685 * ipa-reference.c (propagate): Removed a useless call to
13686 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
13687 and ipa_print_order. Call ipa_free_postorder_info to clean up.
13688 * ipa.c: Include ipa-utils.h.
13689 (ipa_profile): Update call to ipa_reverse_postorder.
13690 (cgraph_postorder): Moved to...
13691 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
13692 (ipa_utils_print_order): Renamed to ipa_print_order.
13693 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
13694 comments.
13695 (ipa_free_postorder_info): New function.
13696 * passes.c: Include ipa-utils.h.
13697 (do_per_function_toporder): Update call to ipa_reverse_postorder.
13698 (ipa_write_summaries): Likewise.
13699 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
13700 (cgraphunit.o): Likewise.
13701 (ipa.o): Likewise.
13702 (ipa-inline.o): Likewise.
13703
b15c64ee
JH
137042011-04-29 Jan Hubicka <jh@suse.cz>
13705
13706 * gcc.dg/tree-ssa/inline-10.c: New testcase.
13707 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
13708 * ipa-inline.h (clause_t): Turn into unsigned int.
13709 * ipa-inline-analysis.c (add_clause): Do more simplification.
13710 (and_predicates): Shortcut more cases.
13711 (predicates_equal_p): Move forward; check that clauses are properly
13712 ordered.
13713 (or_predicates): Shortcut more cases.
13714 (edge_execution_predicate): Rewrite as...
13715 (set_cond_stmt_execution_predicate): ... this function; handle
13716 __builtin_constant_p.
13717 (set_switch_stmt_execution_predicate): New .
13718 (compute_bb_predicates): New.
13719 (will_be_nonconstant_predicate): Update TODO.
13720 (estimate_function_body_sizes): Use compute_bb_predicates
13721 and free them later, always try to estimate if stmt is constant.
13722 (estimate_time_after_inlining, estimate_size_after_inlining):
13723 Gracefully handle optimized out edges.
13724 (read_predicate): Fix off by one error.
13725
a88fdc2a
NP
137262011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
13727
13728 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
13729
d984c8ef
XDL
137302011-04-27 Xinliang David Li <davidxl@google.com>
13731
13732 * tree-profile.c (init_ic_make_global_vars): Set
13733 tls attribute on ic vars.
13734 * coverage.c (coverage_end_function): Initialize
13735 function_list with zero.
13736
45a2c477
RG
137372011-04-29 Richard Guenther <rguenther@suse.de>
13738
13739 * builtins.c (fold_builtin_classify_type): Use integer_type_node
13740 for the type of the result.
13741 (fold_builtin_isascii): Likewise.
13742 (fold_builtin_toascii): Use integer_type_node where appropriate.
13743 (fold_builtin_logb): Likewise.
13744 (fold_builtin_frexp): Likewise.
13745 (fold_builtin_strstr): Likewise.
13746 (fold_builtin_strpbrk): Likewise.
13747 (fold_builtin_fputs): Likewise.
13748 (fold_builtin_sprintf): Likewise.
13749 (fold_builtin_snprintf): Likewise.
13750 (fold_builtin_printf): Likewise.
13751 (do_mpfr_remquo): Use a proper type for the assigned constant.
13752 (do_mpfr_lgamma_r): Likewise.
13753 * dwarf2out.c (resolve_one_addr): Use size_int.
13754 * except.c (init_eh): Likewise.
13755 (assign_filter_values): Use integer_type_node for filter values.
13756 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
13757 indices.
13758 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
13759 for EH region numbers.
13760 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
13761 for the shift amount.
13762
eb6c3df1
RG
137632011-04-29 Richard Guenther <rguenther@suse.de>
13764
13765 * expr.h (expand_shift): Rename to ...
13766 (expand_variable_shift): ... this.
13767 (expand_shift): Take a constant shift amount.
13768 * expmed.c (expand_shift): Rename to ...
13769 (expand_variable_shift): ... this.
13770 (expand_shift): New wrapper around expand_variable_shift.
13771 * expr.c (convert_move, emit_group_load_1, emit_group_store,
13772 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
13773 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
13774 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
13775 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
13776 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
13777 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
13778 emit_store_flag_1, emit_store_flag): Likewise.
13779 * builtins.c (expand_builtin_signbit): Likewise.
13780 * calls.c (load_register_parameters): Likewise.
13781 * function.c (assign_parm_setup_block): Likewise.
13782 * lower-subreg.c (resolve_shift_zext): Likewise.
13783 * optabs.c (widen_bswap, expand_abs_nojump,
13784 expand_one_cmpl_abs_nojump, expand_float): Likewise.
13785 * spu/spu.c (spu_expand_extv): Likewise.
13786 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
13787
9f616812
RG
137882011-04-29 Richard Guenther <rguenther@suse.de>
13789
13790 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
13791 for the remapped region number.
13792 * predict.c (build_predict_expr): Use integer_type_node for the
13793 predict kind.
13794 * fold-const.c (fold_binary_loc): Use integer_type_node for
13795 the shift amount. Use a proper type for the PLUS_EXPR operand.
13796
b823cdfe
MM
137972011-04-29 Michael Matz <matz@suse.de>
13798
13799 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
13800 other trees that just builtins.
13801 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
13802
413581ba
RG
138032011-04-29 Richard Guenther <rguenther@suse.de>
13804
13805 * tree-nested.c (get_trampoline_type): Use size_int.
13806 (get_nl_goto_field): Likewise.
13807 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
13808 for all indexes.
13809 (lower_eh_constructs_2): Likewise.
13810 (lower_resx): Likewise.
13811 (lower_eh_dispatch): Likewise.
13812 * tree-mudflap.c (mf_build_string): Use size_int.
13813 (mudflap_register_call): Use integer_type_node for the flag.
13814 (mudflap_enqueue_constant): Use size_int.
13815 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
13816 instead of rebuilding it.
13817
5c04e9f4
RG
138182011-04-29 Richard Guenther <rguenther@suse.de>
13819
13820 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
13821 Handle OBJ_TYPE_REF.
13822 (find_func_aliases_for_call): Use it more consistently.
13823
5c24671b
AO
138242011-04-29 Alexandre Oliva <aoliva@redhat.com>
13825
13826 * haifa-sched.c (last_nondebug_scheduled_insn): New.
13827 (rank_for_schedule): Use it.
13828 (schedule_block): Set it.
13829
10adac51
XDL
138302011-04-28 David Li <davidxl@google.com>
13831
13832 * tree.c (crc32_string): Use crc32_byte.
13833 (crc32_byte): New function.
13834 * tree.h (crc32_byte): New function.
13835 * gcov.c (read_graph_file): Handle new cfg_cksum.
13836 (read_count_file): Ditto.
13837 * profile.c (instrument_values): Ditto.
13838 (get_exec_counts): Ditto.
13839 (read_profile_edge_counts): Ditto.
13840 (compute_branch_probabilities): Ditto.
13841 (compute_value_histograms): Ditto.
13842 (branch_prob): Ditto.
13843 (end_branch_prob): Ditto.
13844 * coverage.c (read_counts_file): Ditto.
13845 (get_coverage_counts): Ditto.
13846 (tree_coverage_counter_addr): Ditto.
13847 (coverage_checksum_string): Ditto.
13848 (coverage_begin_output): Ditto.
13849 (coverage_end_function): Ditto.
13850 (build_fn_info_type): Ditto.
13851 (build_fn_info_value): Ditto.
13852 * libgcov.c (gcov_exit): Ditto.
13853 * gcov-dump.c (tag_function): Ditto.
13854 (compute_checksum): Remove.
13855
5d6358a5
AM
138562011-04-29 Alan Modra <amodra@gmail.com>
13857
13858 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13859 unspec plus offset. Tidy macho code.
13860
85ad2ef5
MJ
138612011-04-29 Martin Jambor <mjambor@suse.cz>
13862
13863 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
13864 node instead of a decl. Update all callers.
13865 * cgraph.h: Update declaration.
13866
437f4a00
IR
138672011-04-28 Ira Rosen <ira.rosen@linaro.org>
13868
13869 PR tree-optimization/48765
13870 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
13871 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
13872 to indicate if loop aware SLP is being used. Scan the statements
13873 and update the vectorization factor according to the type of
13874 vectorization before statement analysis.
13875 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
13876 pass it to vect_analyze_loop_operations.
13877 (vectorizable_reduction): Set number of copies to 1 in case of pure
13878 SLP statement.
13879 * tree-vect-stmts.c (vectorizable_conversion,
13880 vectorizable_assignment, vectorizable_shift,
13881 vectorizable_operation, vectorizable_type_demotion,
13882 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
13883 Likewise.
13884 (vectorizable_condition): Move the check that it is not SLP
13885 vectorization before the number of copies check.
13886 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
13887 to vectorize the loop using SLP.
13888
c6fc44f3
JJ
138892011-04-28 Jakub Jelinek <jakub@redhat.com>
13890
13891 PR middle-end/48597
13892 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
13893 inline asm.
13894
6c0170ea
JM
138952011-04-28 Joseph Myers <joseph@codesourcery.com>
13896
13897 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
13898 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
13899 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13900 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13901 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
13902 linux*.h headers.
6bec6c98 13903 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
13904 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13905 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13906 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 13907 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
13908 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
13909 REG_NAME.
13910 * config/i386/linux.h (REG_NAME): Don't define.
13911 * config/i386/linux64.h (REG_NAME): Don't define.
13912 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
13913 Undefine before defining.
13914
970dabbd
JH
139152011-04-28 Jan Hubicka <jh@suse.cz>
13916
6bec6c98
UB
13917 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
13918 nonconstant_names array.
970dabbd
JH
13919 (estimate_function_body_sizes): Build nonconstant_names array; handle
13920 BUILT_IN_CONSTANT_P.
13921
8d3e3924
RG
139222011-04-28 Richard Guenther <rguenther@suse.de>
13923
13924 PR bootstrap/48804
13925 Revert
13926 2011-04-28 Richard Guenther <rguenther@suse.de>
13927
13928 * tree-ssa-structalias.c (solve_constraints): Build succ graph
13929 as late as possible.
6bec6c98 13930
8576f20a
RG
139312011-04-28 Richard Guenther <rguenther@suse.de>
13932
13933 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
13934 (debug_constraint): Do it here.
13935 (dump_constraints): And here.
13936 (rewrite_constraints): And here.
13937 (dump_constraint_edge): Remove.
13938 (dump_constraint_graph): Rewrite to produce DOT output.
13939 (solve_constraints): Build succ graph as late as possible.
13940 Dump constraint graphs before and after solving.
13941
e38811ce
RG
139422011-04-28 Richard Guenther <rguenther@suse.de>
13943
13944 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13945 New function split out from ...
13946 (find_func_aliases): ... here. Call it.
13947 (find_func_aliases_for_call): Likewise.
13948
fbaf0d0c
GDR
139492011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
13950
13951 * internal-fn.h (internal_fn_name_array): Declare.
13952 (internal_fn_flags_array): Likewise.
13953
cbb734aa
UB
139542011-04-27 Uros Bizjak <ubizjak@gmail.com>
13955
13956 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
13957 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
13958 Move from sse.md.
13959 (ssemodefsuffix): Remove.
13960 (ssevecmodesuffix): New mode attribute.
13961 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
13962 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
13963 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
13964 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
13965 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
13966 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
13967 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
13968 ssemodesuffix mode attribute.
13969 (float splitters): Use ssevecmodesuffix mode attribute.
13970 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
13971 (sseinsmode): Rename from avxvecmode.
13972 (avxsizesuffix): Rename from avxmodesuffix.
13973 (sseintvecmode): Rename from avxpermvecmode.
13974 (ssedoublevecmode): Rename from ssedoublesizemode.
13975 (ssehalfvecmode): Rename from avxhalfvecmode.
13976 (ssescalarmode): Rename from avxscalarmode.
13977 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
13978 templates for ssemodesuffix mode attribute.
13979 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
13980 mode attribute.
13981
13982 Adjust RTX patterns globally for renamed mode attributes.
13983
991278ab
JH
139842011-04-27 Jan Hubcika <jh@suse.cz>
13985
13986 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
13987 * ipa-inline-analysis.c: Include alloc-pool.h.
13988 (edge_predicate_pool): New.
13989 (trye_predicate_p): New function
13990 (false_predicate_p): New function.
13991 (add_clause): Sanity check that false clauses are "optimized";
13992 never add clauses to predicate that is already known to be false.
13993 (and_predicate): Use flase_predicate_p.
13994 (evaulate_predicate): Rename to ...
13995 (evaluate_predicate): ... this one; update all callers; assert
13996 that false is not listed among possible truths.
13997 (dump_predicate): Use true_predicate_p.
13998 (account_size_time): Use false_predicate_p.
13999 (evaulate_conditions_for_edge): Rename to ...
14000 (evaluate_conditions_for_edge) ... this one.
14001 (edge_set_predicate): New function.
14002 (inline_edge_duplication_hook): Duplicate edge predicates.
14003 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 14004 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
14005 (dump_inline_summary): Update.
14006 (estimate_function_body_sizes): Set edge predicates.
14007 (estimate_calls_size_and_time): Handle predicates.
14008 (estimate_callee_size_and_time): Update.
14009 (remap_predicate): Add toplev_predicate; update comment.
14010 (remap_edge_predicates): New function.
14011 (inline_merge_summary): Compute toplev predicate; update.
14012 (read_predicate): New function.
14013 (read_inline_edge_summary): Use it.
14014 (inline_read_section): Likewise.
14015 (write_predicate): New function.
14016 (write_inline_edge_summary): Use it.
14017 (inline_write_summary): Likewise.
14018 (inline_free_summary): Free alloc pool and edge summary vec.
14019
648b5f85
RG
140202011-04-27 Richard Guenther <rguenther@suse.de>
14021
14022 * tree-ssa-structalias.c (changed_count): Remove.
14023 (changed): Use a bitmap.
14024 (unify_nodes): Adjust.
14025 (do_sd_constraint): Likewise.
14026 (do_ds_constraint): Likewise.
14027 (do_complex_constraint): Likewise.
14028 (solve_graph): Likewise.
14029
4d5dcfb2
JH
140302011-04-27 Jan Hubicka <jh@suse.cz>
14031
14032 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
14033
200eb7d2
UB
140342011-04-27 Uros Bizjak <ubizjak@gmail.com>
14035
14036 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
14037 (avx_vperm2f128_*_operand): Ditto.
14038 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
14039 Use avx_vpermilp_parallel in insn condition.
14040 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
14041 Use avx_vperm2f128_parallel in insn condition.
14042
7d6e2521
RG
140432011-04-27 Richard Guenther <rguenther@suse.de>
14044
14045 * Makefile.in (tree-ssa-structalias.o): Remove
14046 gt-tree-ssa-structalias.h dependency.
14047 (GTFILES): Remove tree-ssa-structalias.c.
14048 * tree.c (allocate_decl_uid): New function.
14049 (make_node_stat): Use it.
14050 (copy_node_stat): Likewise.
14051 * tree.h (allocate_decl_uid): Declare.
14052 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
14053 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
14054 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 14055 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
14056 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
14057 (struct heapvar_map): Likewise.
14058 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
14059 heapvar_insert): Likewise.
14060 (make_heapvar_for): Rename to ...
14061 (make_heapvar): ... this. Simplify.
14062 (fake_var_decl_obstack): New global var.
14063 (build_fake_var_decl): New function.
14064 (make_constraint_from_heapvar): Adjust.
14065 (handle_lhs_call): Likewise.
14066 (create_function_info_for): Likewise.
14067 (intra_create_variable_infos): Likewise.
14068 (init_alias_vars): Allocate fake_var_decl_obstack.
14069 (init_alias_heapvars, delete_alias_heapvars): Remove.
14070 (compute_points_to_sets): Do not call init_alias_heapvars.
14071 (ipa_pta_execute): Likewise.
14072 (delete_points_to_sets): Free fake_var_decl_obstack.
14073
526ed6c2
UW
140742011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14075
14076 * config/spu/divmovti4.c (union qword_UTItype): New data type.
14077 (si_from_UTItype, si_to_UTItype): New functions.
14078 (__udivmodti4): Use them to implement type-punning.
14079 * config/spu/multi3.c (union qword_TItype): New data type.
14080 (si_from_TItype, si_to_TItype): New functions.
14081 (__multi3): Use them to implement type-punning.
14082
c187d33c
UW
140832011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14084
14085 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
14086
40982661
JH
140872011-04-27 Jan Hubicka <jh@suse.cz>
14088
14089 * ipa-prop.c (function_insertion_hook_holder): New holder.
14090 (ipa_add_new_function): New function.
200eb7d2
UB
14091 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
14092 Register/deregister holder.
40982661 14093
9aef53ee
RG
140942011-04-27 Richard Guenther <rguenther@suse.de>
14095
14096 PR tree-optimization/48772
200eb7d2 14097 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 14098
f63d806d
RG
140992011-04-27 Richard Guenther <rguenther@suse.de>
14100
14101 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
14102 TARGET_MEM_REF handling.
14103
e1ea7451
NC
141042011-04-27 Nick Clifton <nickc@redhat.com>
14105
9b5db25d
NC
14106 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
14107 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
14108 (REG_CLASS_NAMES): Likewise.
14109 (REG_CLASS_CONTENTS): Likewise.
14110 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
14111 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
14112 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
14113 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
14114 (EVEN_REGS): New macro. Alias for QUAD_REGS.
14115 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
14116 duplicate register classes.
97d20907 14117 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
14118 (frv_register_move_cost): Likewise.
14119
e1ea7451
NC
14120 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
14121 end of the regno_reg_class array.
14122
5c2f94b4
JJ
141232011-04-27 Jakub Jelinek <jakub@redhat.com>
14124
14125 PR c/48742
14126 * c-typeck.c (build_binary_op): Don't wrap arguments if
14127 int_operands is true.
14128
57a944d7
KK
141292011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
14130
14131 PR target/48767
14132 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
14133 targetm.calls.must_pass_in_stack for void type.
14134
898b8927
JH
141352011-04-26 Jan Hubicka <jh@suse.cz>
14136
14137 * cgraphbuild.c (build_cgraph_edges): Update call
14138 of cgraph_create_edge and cgraph_create_indirect_edge.
14139 * cgraph.c (cgraph_create_edge_including_clones,
14140 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
14141 cgraph_update_edges_for_call_stmt_node): Do not take nest
14142 argument; do not initialize call_stmt_size/time.
14143 (dump_cgraph_node): Do not dump nest.
14144 (cgraph_clone_edge): Do not take loop_nest argument;
14145 do not propagate it; do not clone call_stmt_size/time.
14146 (cgraph_clone_node): Likewise.
14147 (cgraph_create_virtual_clone): Update.
14148 * cgraph.h (struct cgraph_edge): Remove
14149 call_stmt_size/call_stmt_time/loop_nest.
14150 (cgraph_create_edge, cgraph_create_indirect_edge,
14151 cgraph_create_edge_including_clones, cgraph_clone_node): Update
14152 prototype.
14153 * tree-emutls.c (gen_emutls_addr): Update.
14154 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
14155 loop_nest; handle indirect calls, too.
14156 (clone_inlined_nodes): Do not care about updating inline summaries.
14157 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
14158 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
14159 stream call_stmt_size/call_stmt_time/loop_nest.
14160 * ipa-inline.c (edge_badness): Update.
14161 (ipa_inline): dump summaries after inlining.
14162 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 14163 New.
898b8927
JH
14164 (inline_edge_summary): New function.
14165 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
14166 (inline_edge_removal_hook): Handle edge summaries.
14167 (inline_edge_duplication_hook): New hook.
14168 (inline_summary_alloc): Alloc hooks.
14169 (initialize_growth_caches): Do not register removal hooks.
14170 (free_growth_caches); Do not free removal hook.
14171 (dump_inline_edge_summary): New function.
14172 (dump_inline_summary): Use it.
14173 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
14174 (inline_update_callee_summaries): New function.
14175 (inline_merge_summary): Use it.
14176 (do_estimate_edge_time, do_estimate_edge_growth): Update.
14177 (read_inline_edge_summary): New function.
14178 (inline_read_section): Use it.
14179 (write_inline_edge_summary): New function.
14180 (inline_write_summary): Use it.
14181 (inline_free_summary): Free edge new holders.
14182 * tree-inline.c (copy_bb): Update.
14183
ffa03772
JM
141842011-04-26 Jason Merrill <jason@redhat.com>
14185
14186 * tree-eh.c (lower_try_finally_switch): Create the label along with
14187 the CASE_LABEL_EXPR.
14188
6d7b45ad
DM
141892011-04-26 David S. Miller <davem@davemloft.net>
14190 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14191
14192 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
14193 * configure: Regenerate.
14194
df10b6d4
MM
141952011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14196
14197 PR target/48258
14198 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
14199 reduction.
14200 (VEC_reduc): New code iterator and splitters for vector reduction.
14201 (VEC_reduc_name): Ditto.
14202 (VEC_reduc_rtx): Ditto.
14203 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
14204 (reduc_<VEC_reduc_name>_v4sf): Ditto.
14205
14206 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
14207 support for extracting SF on VSX.
14208
14209 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
14210 generating xscvspdp.
14211 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
14212 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
14213 double add, minimum, maximum vector reduction.
14214 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
14215 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
14216 optimize double vector reduction.
14217 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
14218
35a5db04
JM
142192011-04-26 Joseph Myers <joseph@codesourcery.com>
14220
14221 * config/fr30/fr30.h (inhibit_libc): Don't define.
14222 * config/m32r/m32r-protos.h: Correct comment.
14223 * config/v850/v850.h (GHS_default_section_names,
14224 GHS_current_section_names): Use tree, not union tree_node *.
14225
2f964ad6
XDL
142262011-04-26 Xinliang David Li <davidxl@google.com>
14227
200eb7d2 14228 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
14229 * c-family/c-opts.c (c_common_handle_option): Set
14230 warn_maybe_uninitialized.
14231 * opts.c (common_handle_option): Ditto.
14232 * common.opt: New option.
14233 * tree-ssa.c (warn_uninit): Add one more parameter.
14234 (warn_uninitialized_var): Pass warning code.
14235 * tree-flow.h: Interface change.
14236
9c7bd91a
RO
142372011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14238
200eb7d2 14239 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
14240 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
14241 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
14242
c2f36e21
RO
142432011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14244
14245 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
14246 * config/mips/mips.opt (mmips-tfile): Remove.
14247
14248 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
14249 mips-tdump reference to ...
200eb7d2 14250 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
14251 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
14252 reference by Tru64 UNIX.
14253
2c9da85b
JJ
142542011-04-26 Jakub Jelinek <jakub@redhat.com>
14255
0c5f6539
JJ
14256 PR debug/48768
14257 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
14258 is error_mark_node, set value to NULL.
14259
2c9da85b
JJ
14260 PR tree-optimization/48734
14261 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
14262 if return value from maybe_fold_*_comparsions isn't something
14263 the code is prepared to handle.
14264
77fa1d54
UB
142652011-04-26 Uros Bizjak <ubizjak@gmail.com>
14266
14267 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
14268 mode check.
14269 (ext_QIreg_nomode_operands): Remove.
14270 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
14271 (*andsi_1): Ditto.
14272 (*andhi_1): Ditto.
14273
0e2a6c2b
AS
142742011-04-26 Andrew Stubbs <ams@codesourcery.com>
14275
14276 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
14277
961562d8
RB
142782011-04-26 Richard Guenther <rguenther@suse.de>
14279
14280 * c-typeck.c (build_unary_op): Do not expand array-refs via
14281 pointer arithmetic. Only adjust qualifiers for function types.
14282
142832011-04-26 Richard Guenther <rguenther@suse.de>
14284
14285 PR middle-end/48694
14286 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
14287 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
14288 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
14289 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 14290
a0d260fc
PC
142912011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
14292
6bec6c98 14293 * doc/extend.texi: Document __underlying_type.
a0d260fc 14294
4d583bb9
SB
142952011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
14296
14297 * config/rs6000/titan.md (automata_option "progress"): Remove.
14298
1f3fcdc3
JL
142992011-04-25 Jeff Law <law@redhat.com>
14300
14301 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
14302
e5b0dad8
JK
143032011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14304
14305 * system.h (ENUM_BITFIELD): Remove.
14306
5157a881 143072011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 14308 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
14309
14310 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
14311 for STORE_FLAG_VALUE==-1 case.
14312
ed4c109e
RS
143132011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
14314
14315 PR target/43804
14316 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
14317 LEGITIMATE_PIC_OPERAND_P.
14318
f3181aa2
JH
143192011-04-24 Jan Hubicka <jh@suse.cz>
14320
14321 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
14322 WPA hack.
77fa1d54
UB
14323 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
14324 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
14325 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
14326 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
14327 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
14328 Sanity check predicate length.
14329 (remap_predicate): Likewise; sanity check jump functions.
14330 (inline_read_section, inline_write_summary): Sanity check
14331 predicate length.
14332
5307cbaa
PC
143332011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
14334
14335 PR other/48748
14336 * doc/extend.texi (Type Traits): Document __is_standard_layout,
14337 __is_literal_type, and __is_trivial; update throughout about
14338 possibly cv-qualified void types.
14339
bebd5f99
GP
143402011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
14341
14342 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
14343 testsuite and make it version agnostic.
14344
7ee28a74
JH
143452011-04-22 Jan Hubicka <jh@suse.cz>
14346
14347 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
14348
16997bc0
JJ
143492011-04-23 Jakub Jelinek <jakub@redhat.com>
14350
14351 PR c/48685
14352 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
14353 to VOID_TYPE even around MODIFY_EXPR.
14354
f94d4ab1
MS
143552011-04-22 Mike Stump <mikestump@comcast.net>
14356
1a84c183 14357 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
14358 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
14359 comment.
14360
632b4f8e
JH
143612011-04-22 Jan Hubicka <jh@suse.cz>
14362
14363 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
14364 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
14365 ipa-prop.c; update all uses.
632b4f8e 14366 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
14367 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
14368 merge summary of inlined function into former caller.
632b4f8e
JH
14369 * ipa-inline.c (max_benefit): Remove.
14370 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
14371 (update_caller_keys): Use
14372 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
14373 (update_callee_keys): Likewise.
14374 (update_all_callee_keys): Likewise.
77fa1d54
UB
14375 (inline_small_functions): Do not collect max_benefit; do not reset
14376 estimated_growth; call free_growth_caches and initialize_growth_caches.
14377 * ipa-inline.h (struct condition, type clause_t, struct predicate,
14378 struct size_time_entry): New structures.
632b4f8e 14379 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
14380 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
14381 and estimated_growth.
632b4f8e
JH
14382 (edge_growth_cache_entry): New structure.
14383 (node_growth_cache, edge_growth_cache): New global vars.
14384 (estimate_growth): Turn into inline.
14385 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
14386 initialize_growth_caches, free_growth_caches): Declare.
14387 (estimate_edge_growth): Rewrite.
14388 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
14389 (reset_node_growth_cache, reset_edge_growth_cache): New inline
14390 functions.
632b4f8e
JH
14391 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
14392 (NUM_CONDITIONS): New constant.
14393 (predicate_conditions): New enum.
14394 (IS_NOT_CONSTANT): New constant.
14395 (edge_removal_hook_holder): New var.
14396 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
14397 (true_predicate, single_cond_predicate, false_predicate,
14398 not_inlined_predicate, add_condition, add_clause, and_predicates,
14399 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
14400 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
14401 evaulate_conditions_for_edge): New functions.
14402 (inline_summary_alloc): Move to heap.
14403 (inline_node_removal_hook): Clear condition and entry vectors.
14404 (inline_edge_removal_hook): New function.
14405 (initialize_growth_caches, free_growth_caches): New function.
14406 (dump_inline_summary): Update.
14407 (edge_execution_predicate): New function.
14408 (will_be_nonconstant_predicate): New function.
14409 (estimate_function_body_sizes): Compute BB and constantness predicates.
14410 (compute_inline_parameters): Do not clear estimated_growth.
14411 (estimate_edge_size_and_time): New function.
14412 (estimate_calls_size_and_time): New function.
14413 (estimate_callee_size_and_time): New function.
14414 (remap_predicate): New function.
14415 (inline_merge_summary): New function.
14416 (do_estimate_edge_time): New function based on...
14417 (estimate_edge_time): ... this one.
14418 (do_estimate_edge_growth): New function.
14419 (do_estimate_growth): New function based on....
14420 (estimate_growth): ... this one.
14421 (inline_analyze_function): Analyze after deciding on jump functions.
14422 (inline_read_section): New function.
14423 (inline_read_summary): Use it.
14424 (inline_write_summary): Write all the new data.
14425 * ipa-prop.c (ipa_get_param_decl_index): Export.
14426 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
14427 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
14428 Declare.
14429 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
14430 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
14431 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
14432 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
14433 cgraph_edge_inlinable_p): Remove.
14434 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
14435 (cgraph_process_new_functions): Update call of
14436 compute_inline_parameters.
632b4f8e 14437
1df5b0db
RG
144382011-04-22 Richard Guenther <rguenther@suse.de>
14439
14440 * tree.c (build_int_cst): Properly create canonicalized integer
14441 constants.
14442 (build_int_cst_type): Remove scary comments.
14443
ae01169c
XDL
144442011-04-22 Xinliang David Li <davidxl@google.com>
14445
14446 * toplev.c (process_options): Enable -Werror=coverage-mismatch
14447 by default when -Wno-error is not specified.
14448 * opts-global.c (decode_options): Remove call to
14449 control_warning_options.
14450
93dfac24
JJ
144512011-04-22 Jakub Jelinek <jakub@redhat.com>
14452
14453 PR tree-optimization/48717
14454 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
14455 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
14456
1b5f5069
JM
144572011-04-22 Joseph Myers <joseph@codesourcery.com>
14458
14459 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
14460 definition where used.
14461
144f4153
JJ
144622011-04-22 Jakub Jelinek <jakub@redhat.com>
14463
14464 PR c/48716
14465 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
14466 TREE_STATIC variables declared inside of some OpenMP construct.
14467
f9fd305b
MJ
144682011-04-22 Martin Jambor <mjambor@suse.cz>
14469
14470 PR middle-end/48585
1d284ec5 14471 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 14472
49819fef
AM
144732011-04-22 Alexander Monakov <amonakov@ispras.ru>
14474
14475 PR c/36750
14476 * c-typeck.c (pop_init_level): Do not warn about initializing
14477 with ` = {0}'.
14478
401f6699
AM
144792011-04-22 Alan Modra <amodra@gmail.com>
14480
14481 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
14482 when returning call_cookie.
14483 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
14484 pointers, to functions with no more vector args than the current
14485 function, and some non-local calls for ABI_V4.
14486 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
14487 sibcall_nonlocal_aix64): Combine to ..
14488 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
14489 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
14490 (sibcall_value_nonlocal_aix<mode>): ..likewise.
14491 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
14492 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
14493 operand.
14494 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
14495 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
14496 sibcall_value_symbolic_64): Delete.
14497
903d1e67
XDL
144982011-04-21 Xinliang David Li <davidxl@google.com>
14499
14500 * cgraph.h: Remove pid.
14501 * cgraph.c: Remove pid.
14502 * value-prof.c (init_node_map): New function.
14503 (del_node_map): New function.
14504 (find_func_by_funcdef_no): New function.
14505 (gimple_ic_transform): Call new function.
14506 * cgraphunit.c (cgraph_finalize_function): Remove pid.
14507 * function.c (get_last_funcdef_no): New function.
14508 * function.h (get_last_funcdef_no): New function.
14509 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
14510 to libgcov function.
14511 (tree-profiling): Call node map init and delete function.
14512
7378e95f
ILT
145132011-04-21 Ian Lance Taylor <iant@google.com>
14514
14515 * godump.c (go_format_type): Use exported Go name for anonymous
14516 field name.
14517
e84a6fcf
NF
145182011-04-21 Nathan Froyd <froydnj@codesourcery.com>
14519
14520 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
14521 Call builtin_function_type_list instead of builtin_function_type.
14522 (UNARY, BINARY, TRINARY, QUAD): Likewise.
14523
4fe058e2
NF
145242011-04-21 Nathan Froyd <froydnj@codesourcery.com>
14525
14526 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
14527 build_function_type_list instead of build_function_type.
14528 Delete variable `endlink'.
14529
1ba0a2d2
NF
145302011-04-21 Nathan Froyd <froydnj@codesourcery.com>
14531
14532 * config/s390/s390.c (s390_init_builtins): Call
14533 build_function_type_list instead of build_function_type.
14534
c0676219
NF
145352011-04-21 Nathan Froyd <froydnj@codesourcery.com>
14536
14537 * config/ia64/ia64.c (ia64_init_builtins): Call
14538 build_function_type_list instead of builtin_function_type.
14539
6ddfda8a
ER
145402011-04-21 Easwaran Raman <eraman@google.com>
14541
3a6448ea 14542 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
14543 (add_stack_var): ...and its reference here...
14544 (expand_stack_vars): ...and here.
14545 (stack_var_cmp): Sort by descending order of size.
14546 (partition_stack_vars): Change heuristic.
1d284ec5 14547 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
14548 (dump_stack_var_partition): Add newline after each partition.
14549
23756963
DA
145502011-04-21 Dimitrios Apostolou <jimis@gmx.net>
14551 Jeff Law <law@redhat.com>
14552
77fa1d54 14553 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
14554 * gengtype.c (matching_file_name_substitute): Likewise.
14555
aa2a43d2
RG
145562011-04-21 Richard Guenther <rguenther@suse.de>
14557
14558 PR lto/48703
1d284ec5 14559 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 14560
4d931f41
EB
145612011-04-21 Eric Botcazou <ebotcazou@adacore.com>
14562
14563 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
14564
f103fa7a
RG
145652011-04-21 Richard Guenther <rguenther@suse.de>
14566
14567 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
14568 file name.
14569
e19f6650
RG
145702011-04-21 Richard Guenther <rguenther@suse.de>
14571
14572 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
14573 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
14574 Use DECL_P, not SSA_VAR_P.
14575 (ptr_derefs_may_alias_p): Likewise.
14576 (ptr_deref_may_alias_ref_p_1): Likewise.
14577 (decl_refs_may_alias_p): Likewise.
14578 (refs_may_alias_p_1): Likewise.
14579 (ref_maybe_used_by_call_p_1): Likewise.
14580 (call_may_clobber_ref_p_1): Likewise.
14581 (indirect_ref_may_alias_decl_p): Assume indirect refrences
14582 are either MEM_REF or TARGET_MEM_REF.
14583 (indirect_refs_may_alias_p): Likewise.
14584 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
14585 for MEM_EXPR of indirect calls.
14586
9d1831bb
TG
145872011-04-21 Tristan Gingold <gingold@adacore.com>
14588
14589 * vmsdbgout.c (write_srccorr): Compute file length from the string.
14590 (dst_file_info_struct): Remove flen field.
14591 (lookup_filename): Remove code that set flen field.
14592
f199c029
TG
145932011-04-21 Tristan Gingold <gingold@adacore.com>
14594
14595 * config/ia64/ia64.c (ia64_start_function): Add a guard.
14596
2894086e
UB
145972011-04-21 Uros Bizjak <ubizjak@gmail.com>
14598
14599 PR target/48708
14600 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
14601 vec_extract and vec_concat for non-SSE4_1 targets.
14602
53f94a5c
RG
146032011-04-21 Richard Guenther <rguenther@suse.de>
14604
14605 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
14606 return statements.
14607
f0dca5ba
JM
146082011-04-21 Joseph Myers <joseph@codesourcery.com>
14609
14610 * config/i386/cygming.h (union tree_node, TREE): Don't define or
14611 undefine.
14612 (FILE): Don't undefine.
14613
984514ac
JM
146142011-04-21 Joseph Myers <joseph@codesourcery.com>
14615
14616 * config/alpha/alpha.c (struct machine_function): Use rtx, not
14617 struct rtx_def *.
14618 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
14619 struct rtx_def *.
14620 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 14621 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
14622 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
14623 rtx_def *.
14624 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
14625 definitions where used.
14626 * config/microblaze/microblaze.h (struct microblaze_args): Use
14627 rtx, not struct rtx_def *.
14628 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
14629 rtx_def *.
2894086e
UB
14630 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
14631 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
14632 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
14633 not struct rtx_def *.
14634 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
14635 struct rtx_def *.
14636 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
14637 rtx_def *.
2894086e 14638 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 14639
0b5a2724
RS
146402011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
14641
14642 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
14643 operand_equal_p to compare DR_BASE_ADDRESSes.
14644 (vect_check_interleaving): Likewise.
14645
4b18d683
RS
146462011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
14647
14648 PR target/46329
14649 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
14650 for all Neon struct constants.
14651
1a627b35
RS
146522011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
14653
14654 * target.def (legitimate_constant_p): New hook.
14655 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
14656 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
14657 * doc/tm.texi: Regenerate.
14658 * hooks.h (hook_bool_mode_rtx_true): Declare.
14659 * hooks.c (hook_bool_mode_rtx_true): Define.
14660 * system.h (LEGITIMATE_CONSTANT_P): Poison.
14661 * calls.c (precompute_register_parameters): Replace uses of
14662 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
14663 (emit_library_call_value_1): Likewise.
14664 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
14665 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
14666 * ira-costs.c (scan_one_insn): Likewise.
14667 * recog.c (general_operand, immediate_operand): Likewise.
14668 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
14669 * reload1.c (init_eliminable_invariants): Likewise.
14670
14671 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
14672 mode argument.
14673 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
14674 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
14675 argument.
14676 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14677 * config/alpha/predicates.md (input_operand): Update call to
14678 alpha_legitimate_constant_p.
14679
14680 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
14681 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
14682 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
14683 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14684 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
14685 (arm_legitimate_constant_p): New functions.
14686 (arm_cannot_force_const_mem): Make static.
14687
14688 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
14689
14690 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
14691 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
14692 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
14693 instead of bfin_legitimate_constant_p.
14694 (bfin_legitimate_constant_p): Make static. Add a mode argument.
14695 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14696
14697 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
14698
14699 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
14700
14701 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
14702 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
14703 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14704 (frv_legitimate_constant_p): Make static. Add a mode argument.
14705
14706 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
14707 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
14708 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
14709
14710 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
14711 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
14712 * config/i386/i386.c (legitimate_constant_p): Rename to...
14713 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
14714 argument.
14715 (ix86_cannot_force_const_mem): Update accordingly.
14716 (ix86_legitimate_address_p): Likewise.
14717 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14718 * config/i386/i386.md: Update commentary.
14719
14720 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
14721 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
14722 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14723 (ia64_legitimate_constant_p): Make static. Add a mode argument.
14724
14725 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
14726
14727 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
14728 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
14729 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14730 (lm32_legitimate_constant_p): Make static. Add a mode argument.
14731
14732 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
14733 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
14734 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
14735
14736 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
14737 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14738 (m32r_legitimate_constant_p): New function.
14739
14740 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
14741 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
14742 LEGITIMATE_CONSTANT_P.
14743 (LEGITIMATE_CONSTANT_P): Delete.
14744 * config/m68k/m68k.c (m68k_expand_prologue): Call
14745 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
14746 (m68k_legitimate_constant_p): New function.
14747 * config/m68k/m68k.md: Update comments.
14748
14749 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
14750 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14751 (mcore_legitimate_constant_p): New function.
14752
14753 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
14754 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
14755 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
14756 Add a mode argument.
14757 (mep_legitimate_address): Update accordingly.
14758 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14759
14760 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
14761 Delete.
14762 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
14763 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
14764 static. Check OP's mode for VOIDmode.
14765 (microblaze_legitimate_constant_p): New function.
14766 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14767
14768 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
14769 * config/mips/mips.c (mips_legitimate_constant_p): New function.
14770 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
14771 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14772 * config/mips/predicates.md: Update comments.
14773
14774 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
14775 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
14776 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14777 (mmix_legitimate_constant_p): Make static, return a bool, and take
14778 a mode argument.
14779 (mmix_print_operand_address): Update accordingly.
14780
14781 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
14782 Delete.
14783 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
14784 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
14785 static. Add a mode argument.
1a627b35
RS
14786 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14787
14788 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
14789
14790 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
14791 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14792 (pa_legitimate_constant_p): New function.
14793
14794 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
14795
14796 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
14797 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14798 (pdp11_legitimate_constant_p): New function.
14799
14800 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
14801 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14802 (rs6000_legitimate_constant_p): New function.
14803
14804 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
14805 (rx_legitimate_constant_p): ...this.
14806 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
14807 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
14808 (rx_legitimate_constant_p): ...this.
14809 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14810 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
14811
14812 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
14813 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
14814 * config/s390/s390.c (legitimate_constant_p): Rename to...
14815 (s390_legitimate_constant_p): ...this. Make static, return a bool,
14816 and add a mode argument.
14817 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14818
14819 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
14820
14821 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
14822 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14823 (sh_legitimate_constant_p): New function.
14824
14825 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
14826 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
14827 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14828 (legitimate_constant_p): Rename to...
14829 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
14830 argument.
14831 (constant_address_p): Update accordingly.
14832
14833 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
14834 argument and return a bool.
14835 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
14836 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14837 (spu_legitimate_constant_p): Add a mode argument and return a bool.
14838 (spu_rtx_costs): Update accordingly.
14839 * config/spu/predicates.md (vec_imm_operand): Likewise.
14840
14841 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
14842
14843 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
14844 * config/v850/v850.c (v850_legitimate_constant_p): New function.
14845 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14846
14847 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
14848 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
14849 * config/vax/vax.c (legitimate_constant_p): Likewise.
14850
14851 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
14852 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14853 (xtensa_legitimate_constant_p): New function.
14854
fbbf66e7
RS
148552011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
14856
14857 * target.def (cannot_force_const_mem): Add a mode argument.
14858 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
14859 * doc/tm.texi: Regenerate.
14860 * hooks.h (hook_bool_mode_rtx_false): Declare.
14861 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
14862 (hook_bool_mode_const_rtx_true): Likewise.
14863 (hook_bool_mode_rtx_false): New function.
14864 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
14865 to be non-VOID. Update call to cannot_force_const_mem.
14866 (find_reloads): Update accordingly.
14867 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
14868 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
14869 argument.
14870 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
14871 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
14872 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
14873 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
14874 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
14875 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
14876 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
14877 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
14878 (m68k_cannot_force_const_mem): ...this new function.
14879 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
14880 argument.
14881 (mips_const_insns, mips_legitimize_const_move): Update calls.
14882 (mips_secondary_reload_class): Likewise.
14883 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
14884 (pa_cannot_force_const_mem): ...this new function.
2894086e 14885 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
14886 (rs6000_cannot_force_const_mem): ...this new function.
14887 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
14888 argument.
14889 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
14890 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
14891 to...
14892 (xtensa_cannot_force_const_mem): ...this new function.
14893
b861891b
NF
148942011-04-20 Nathan Froyd <froydnj@codesourcery.com>
14895
14896 * config/mips/mips.c (mips16_build_function_stub): Call
14897 build_function_type_list instead of build_function_type.
14898 (mips16_build_call_stub): Likewise.
14899
34149ed5
NF
149002011-04-20 Nathan Froyd <froydnj@codesourcery.com>
14901
14902 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
14903 instead of build_function_type.
14904
12526412
NF
149052011-04-20 Nathan Froyd <froydnj@codesourcery.com>
14906
14907 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
14908 instead of build_function_type.
14909
3b84d61f
UB
149102011-04-20 Uros Bizjak <ubizjak@gmail.com>
14911
14912 PR target/48678
14913 * config/i386/i386.md (insv): Change operand 0 constraint to
14914 "register_operand". Change operand 1 and 2 constraint to
14915 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
14916 * config/i386/sse.md (sse4_1_pinsrb): Export.
14917 (sse2_pinsrw): Ditto.
14918 (sse4_1_pinsrd): Ditto.
14919 (sse4_1_pinsrq): Ditto.
14920 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
14921 * config/i386/i386.c (ix86_expand_pinsr): New.
14922
4a25752b
ER
149232011-04-20 Easwaran Raman <eraman@google.com>
14924
14925 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
14926 containing union type only with -fstrict-aliasing.
14927
04695783
JM
149282011-04-20 Jim Meyering <meyering@redhat.com>
14929
14930 Remove useless if-before-free tests.
14931 * calls.c (expand_call, save_area): Likewise.
14932 * cfgcleanup.c (try_forward_edges): Likewise.
14933 * collect2.c (collect_execute): Likewise.
14934 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
14935 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
14936 * coverage.c (coverage_checksum_string): Likewise.
14937 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
14938 * cselib.c (cselib_init): Likewise.
14939 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
14940 (df_set_clean_cfg): Likewise.
14941 * function.c (free_after_compilation): Likewise.
14942 * gcc.c (do_spec_1, main): Likewise.
14943 * gcov.c (create_file_names): Likewise.
14944 * gensupport.c (identify_predicable_attribute): Likewise.
14945 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
14946 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
14947 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
14948 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
14949 * ipa-pure-const.c (local_pure_const): Likewise.
14950 * ipa-reference.c (propagate): Likewise.
14951 * ira-costs.c (free_ira_costs): Likewise.
14952 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
14953 * matrix-reorg.c (mat_free): Likewise.
14954 * prefix.c (get_key_value): Likewise.
14955 * profile.c (compute_value_histograms): Likewise.
14956 * reload1.c (free_reg_equiv): Likewise.
14957 * sched-deps.c (free_deps): Likewise.
14958 * sel-sched-ir.c (fence_clear): Likewise.
14959 * sese.c (set_rename, if_region_set_false_region): Likewise.
14960 * tree-data-ref.c (free_rdg): Likewise.
14961 * tree-eh.c (lower_try_finally): Likewise.
14962 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
14963 * tree-ssa-live.c (delete_var_map): Likewise.
14964 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
14965 * tree-ssa-pre.c (phi_trans_add): Likewise.
14966
6788475a
JJ
149672011-04-20 Jakub Jelinek <jakub@redhat.com>
14968
14969 PR tree-optimization/48611
14970 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
14971 beyond ERT_MUST_NOT_THROW region.
14972
0eda4033
CM
149732011-04-20 Catherine Moore <clm@codesourcery.com>
14974
14975 * config/mips/mips.opt (mfix-24k): New.
14976 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
14977 * config/mips/mips.md (length): Increase by 4 for stores if
14978 fixing 24K errata.
14979 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
14980 all noreorder if fixing 24K errata.
14981 * doc/invoke.texi: Document mfix-24k.
14982
01475747
CLT
149832011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
14984
14985 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 14986 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 14987
bc2c1a60
AS
149882011-04-20 Andrew Stubbs <ams@codesourcery.com>
14989
14990 * config/arm/arm.c (arm_gen_constant): Move movw support ....
14991 (const_ok_for_op): ... to here.
14992
583722ee
KT
149932011-04-20 Kai Tietz <ktietz@redhat.com>
14994
2894086e
UB
14995 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
14996 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 14997
422c0989
AS
149982011-04-20 Andrew Stubbs <ams@codesourcery.com>
14999
15000 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
15001
d7978bff
RG
150022011-04-20 Richard Guenther <rguenther@suse.de>
15003
15004 PR tree-optimization/47892
15005 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
15006 are if-convertible.
15007
818412ba
EB
150082011-04-20 Eric Botcazou <ebotcazou@adacore.com>
15009
15010 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
15011
b501ce4e
TG
150122011-04-20 Tristan Gingold <gingold@adacore.com>
15013
15014 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
15015
516edfdd
GJL
150162011-04-20 Georg-Johann Lay <avr@gjlay.de>
15017
15018 PR target/18145
15019
15020 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
15021 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
15022 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
15023 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
15024 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
15025
15026 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
15027 New prototype.
15028
15029 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
15030 (avr_asm_named_section, avr_asm_output_aligned_common,
15031 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
15032 New functions to update...
15033 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
15034 (avr_asm_init_sections): Overwrite section callbacks for
15035 data_section, bss_section.
15036 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
15037 from here to...
15038 (avr_file_end): ...here.
15039
dafc9511
RG
150402011-04-20 Richard Guenther <rguenther@suse.de>
15041
15042 PR middle-end/48695
15043 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 15044 objects and types here. Adjust for their offset before comparing.
dafc9511 15045
1da0876c
RS
150462011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
15047
15048 * tree-vect-stmts.c (vectorizable_store): Only chain one related
15049 statement per copy.
15050
25583c4f
RS
150512011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
15052
15053 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
15054 (GIMPLE_H): Include $(INTERNAL_FN_H).
15055 (OBJS-common): Add internal-fn.o.
15056 (internal-fn.o): New rule.
15057 * internal-fn.def: New file.
15058 * internal-fn.h: Likewise.
15059 * internal-fn.c: Likewise.
15060 * gimple.h: Include internal-fn.h.
15061 (GF_CALL_INTERNAL): New gf_mask.
15062 (gimple_statement_call): Put fntype into a union with a new
15063 internal_fn field.
15064 (gimple_build_call_internal): Declare.
15065 (gimple_build_call_internal_vec): Likewise.
15066 (gimple_call_same_target_p): Likewise.
15067 (gimple_call_internal_p): New function.
15068 (gimple_call_internal_fn): Likewise.
15069 (gimple_call_fntype): Return null for internal calls.
15070 (gimple_call_set_fntype): Assert that the function is not internal.
15071 (gimple_call_set_fn): Likewise.
15072 (gimple_call_set_fndecl): Likewise.
15073 (gimple_call_set_internal_fn): New function.
15074 (gimple_call_addr_fndecl): Handle null functions.
15075 (gimple_call_return_type): Likewise null types.
15076 * gimple.c (gimple_build_call_internal_1): New function.
15077 (gimple_build_call_internal): Likewise.
15078 (gimple_build_call_internal_vec): Likewise.
15079 (gimple_call_same_target_p): Likewise.
15080 (gimple_call_flags): Handle calls to internal functions.
15081 (gimple_call_fnspec): New function.
15082 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
15083 (gimple_has_side_effects): Handle null functions.
15084 (gimple_rhs_has_side_effects): Likewise.
15085 (gimple_call_copy_skip_args): Handle calls to internal functions.
15086 * cfgexpand.c (expand_call_stmt): Likewise.
15087 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
15088 * gimple-fold.c (gimple_fold_call): Handle null functions.
15089 (gimple_fold_stmt_to_constant_1): Don't fold
15090 calls to internal functions.
15091 * gimple-low.c (gimple_check_call_args): Handle calls to internal
15092 functions.
15093 * gimple-pretty-print.c (dump_gimple_call): Likewise.
15094 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
15095 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
15096 (do_warn_unused_result): Likewise.
15097 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
15098 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
15099 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
15100 the target of a call.
15101 (initialize_hash_element): Update accordingly.
15102 (hashable_expr_equal_p): Use gimple_call_same_target_p.
15103 (iterative_hash_hashable_expr): Handle calls to internal functions.
15104 (print_expr_hash_elt): Likewise.
15105 * tree-ssa-pre.c (can_value_number_call): Likewise.
15106 (eliminate): Handle null functions.
15107 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
15108 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
15109 (find_func_aliases): Likewise.
15110 * value-prof.c (gimple_ic_transform): Likewise.
15111 (gimple_indirect_call_to_profile): Likewise.
15112 * lto-streamer-in.c (input_gimple_stmt): Likewise.
15113 * lto-streamer-out.c (output_gimple_stmt): Likewise.
15114
1a3118e9
JH
151152011-04-19 Jan Hubicka <jh@suse.cz>
15116
15117 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
15118 * ipa-inline.c (inline_small_functions): Compute summaries first,
15119 populate heap later.
1a3118e9 15120
fee8b6da
JH
151212011-04-19 Jan Hubicka <jh@suse.cz>
15122
15123 * cgraph.h (save_inline_function_body): Remove.
15124 * ipa-inline-transform.c: New file, broke out of...
15125 * ipa-inline.c: ... this one; Update toplevel comment.
15126 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
15127 make global.
15128 (update_noncloned_frequencies): Move to ipa-inline-transform.c
15129 (cgraph_mark_inline_edge): Rename to inline_call; move to
15130 ipa-inline-transform.c.
15131 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
15132 move to ipa-inline-transform.c
15133 (recursive_inlining, inline_small_functions, flatten_function,
15134 ipa_inline, inline_always_inline_functions,
15135 early_inline_small_functions): Update.
15136 (inline_transform): Move to ipa-inline-transform.c.
15137 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
15138 Declare.
15139 * Makefile.in (ipa-inline-transform.o): New file.
15140 * cgraphunit.c (save_inline_function_body): Move to
15141 ipa-inline-transform.c
15142
f0679612
DD
151432011-04-19 DJ Delorie <dj@redhat.com>
15144
15145 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
15146 registers if we already know there aren't any.
15147 (m32c_emit_epilogue): Don't emit a barrier here.
15148 (m32c_emit_eh_epilogue): Likewise.
15149 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
15150 operands at expand time.
15151 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
15152 int" wchar type.
15153 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
15154 duplicates. Provide aliases instead.
15155 * config/m32c/prologue.md (eh_return): Emit a barrier here.
15156 (eh_epilogue): Add a "(return)" here as a hint to other parts of
15157 the compiler.
15158
32257ddc
AS
151592011-04-19 Anatoly Sokolov <aesok@post.ru>
15160
15161 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
15162 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
15163 (general_or_i64_p, sparc_register_move_cost): New function.
15164
60bea929
RO
151652011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15166
15167 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 15168 Add lynx, mipssde. Sort table.
60bea929 15169
444b3995 151702011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 15171
9d12f71a
EB
15172 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
15173 not negative.
444b3995 15174
d708ce50
JJ
151752011-04-19 Jakub Jelinek <jakub@redhat.com>
15176
15177 PR target/48678
15178 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
15179 is a SUBREG with non-MODE_INT mode inside of it.
15180
49c471e3
MJ
151812011-04-19 Martin Jambor <mjambor@suse.cz>
15182
15183 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
15184 also according to actual contants.
15185 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
15186 (gimple_fold_call): Use it.
15187 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
15188
0004f992
MJ
151892011-04-19 Martin Jambor <mjambor@suse.cz>
15190
15191 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
15192 non-pointer assignments.
15193
40591473
MJ
151942011-04-19 Martin Jambor <mjambor@suse.cz>
15195
15196 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
15197 account anc_offset and otr_type from the indirect edge info.
15198 * ipa-prop.c (get_ancestor_addr_info): New function.
15199 (compute_complex_ancestor_jump_func): Assignment analysis moved to
15200 get_ancestor_addr_info, call it.
15201 (ipa_note_param_call): Do not initialize information about polymorphic
15202 calls, return the indirect call graph edge. Remove the last
15203 parameter, adjust all callers.
15204 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
15205 parameters. Initialize polymorphic information in the indirect edge.
15206
abe36b81
EB
152072011-04-19 Eric Botcazou <ebotcazou@adacore.com>
15208
15209 PR lto/48148
15210 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
15211 the types if they have different enumeration identifiers.
15212
e6416b30
JH
152132011-04-19 Jan Hubicka <jh@suse.cz>
15214
15215 * cgraph.h (cgraph_optimize_for_size_p): Declare.
15216 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
15217 * predict.c (cgraph_optimize_for_size_p): Break out from ...
15218 (optimize_function_for_size_p) ... here.
15219
d39132ea
RG
152202011-04-19 Richard Guenther <rguenther@suse.de>
15221
15222 PR lto/48207
15223 * tree.c (free_lang_data): Do not reset the decl-assembler-name
15224 langhook.
15225
ff7037dc
EB
152262011-04-19 Eric Botcazou <ebotcazou@adacore.com>
15227
15228 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
15229 if DECL_NO_INLINE_WARNING_P is set on the function.
15230
c1ee2892
BS
152312011-04-19 Bernd Schmidt <bernds@codesourcery.com>
15232
15233 PR fortran/47976
15234 * reload1.c (inc_for_reload): Return void. All callers changed.
15235 (emit_input_reload_insns): Don't try to delete previous output
15236 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
15237
152382011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
15239
15240 * gengtype.h: Updated copyright year.
15241 (struct input_file_st): Add inpisplugin field.
15242 (type_fileloc): New function.
15243 * gengtype.c
15244 (write_typed_struct_alloc_def): Add gcc_assert.
15245 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
15246 (write_typed_alloc_defns): Don't output for plugin files.
15247 (input_file_by_name): Clear inpisplugin field.
15248 (main): Set inpisplugin field for plugin files.
15249
897e0a89
NP
152502011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
15251
15252 * gengtype-state.c (string_eq): New.
15253 (read_state): Use string_eq instead of strcmp when creating the
15254 state_ident_tab.
15255
363ee90e
WG
152562011-04-19 Wei Guozhi <carrot@google.com>
15257
15258 PR target/47855
15259 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
15260 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
15261 linkage.
15262 * config/arm/constraints.md (Uu): New constraint.
15263 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
15264
18a24fed
TG
152652011-04-19 Tristan Gingold <gingold@adacore.com>
15266
15267 * config.gcc (-*-*-*vms): Added.
15268 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
15269 definitions moved.
15270 * config/vms/vms-ld.c: New file.
15271 * config/vms/vms-ar.c: New file.
15272 * config/vms/t-vmsnative: New file.
15273
1c13f168
XDL
152742011-04-18 Xinliang David Li <davidxl@google.com>
15275
15276 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
15277
84825707
JJ
152782011-04-18 Jakub Jelinek <jakub@redhat.com>
15279
15280 PR middle-end/48661
15281 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
15282 if TREE_TYPE (v) is non-NULL.
15283
15284 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
15285 gimple_get_virt_mehtod_for_binfo.
15286 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
15287 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
15288 callers.
15289 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15290
7d4f8d02 152912011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
15292 Steve Ellcey <sje@cup.hp.com>
15293
7d4f8d02
EB
15294 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
15295 use its mode as source mode if it isn't VOIDmode.
7254cb57 15296
474e8e70
DCR
152972011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
15298
15299 * doc/passes.texi: Fill crossref nodes.
15300
cff41484
JM
153012011-04-18 Jim Meyering <meyering@redhat.com>
15302
7d4f8d02 15303 Fix doubled-word typos in comments and strings
cff41484
JM
15304 * config/alpha/vms-unwind.h: s/for for/for/
15305 * config/arm/unwind-arm.h: Likewise.
15306 * config/microblaze/microblaze.c: Likewise.
15307 * config/sh/constraints.md: s/in in/in/
15308 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
15309
f60c2554
UB
153102011-04-18 Uros Bizjak <ubizjak@gmail.com>
15311
15312 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
15313 (AVX_FLOAT_MODE_P): Ditto.
15314 (AVX128_VEC_FLOAT_MODE_P): Ditto.
15315 (AVX256_VEC_FLOAT_MODE_P): Ditto.
15316 (AVX_VEC_FLOAT_MODE_P): Ditto.
15317 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
15318 (UNSPEC_MASKSTORE): Ditto.
15319 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
15320 Merge from <sse>_movmsk<ssemodesuffix> and
15321 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
15322 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
15323 iterator.
15324 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
15325 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
15326 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
15327
09a2806f
JH
153282011-04-18 Jan Hubicka <jh@suse.cz>
15329
8a8dccb2
JH
15330 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
15331
09a2806f
JH
15332 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
15333 (want_inline_function_called_once_p): Break out the logic from
15334 ipa_inline.
15335 (edge_badness): Ensure that profile is not misupdated.
15336 (lookup_recursive_calls): Prioritize by call frequencies.
15337 (inline_small_functions): Move program size estimates here;
15338 actually process whole queue even when unit growth has been
15339 met. (to properly compute inline_failed reasons and for the
f60c2554 15340 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
15341 (ipa_inline): Remove unit summary code; first inline hot calls
15342 of functions called once, cold calls next.
15343 (order, nnodes): Remove unused variables.
15344 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
15345 (GTFILES): Remove ipa-inline.c
15346 * sel-sched.c (fill_insns): Silence uninitialized var warning.
15347
3eea52ef
EB
153482011-04-18 Eric Botcazou <ebotcazou@adacore.com>
15349
15350 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
15351
229a1c59 153522011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 15353 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
15354
15355 * arm.c (neon_builtin_type_bits): Remove.
15356 (typedef enum neon_builtin_mode): New.
15357 (T_MAX): Don't define.
15358 (typedef enum neon_builtin_datum): Remove bits, codes[],
15359 num_vars and base_fcode. Add mode, code and fcode.
15360 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
15361 VAR10): Change accordingly.
15362 (neon_builtin_data[]): Change accordingly
15363 (arm_init_neon_builtins): Change accordingly.
15364 (neon_builtin_compare): Remove.
15365 (locate_neon_builtin_icode): Remove.
15366 (arm_expand_neon_builtin): Change accordingly.
15367
15368 * arm.h (enum arm_builtins): Move to ...
15369 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
15370
15371 * arm.c (arm_builtin_decl): Declare.
15372 (TARGET_BUILTIN_DECL): Define.
15373 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
15374 (arm_builtin_decls[]): New.
15375 (arm_init_neon_builtins): Store builtin declarations in
15376 arm_builtin_decls[].
15377 (arm_init_tls_builtins): Likewise.
15378 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
15379 (arm_builtin_decl): New.
15380
75e802cc
RG
153812011-04-18 Richard Guenther <rguenther@suse.de>
15382
15383 * tree.c (upper_bound_in_type): Build properly canonicalized
15384 INTEGER_CSTs.
15385 (lower_bound_in_type): Likewise.
15386
3b45a007
RG
153872011-04-18 Richard Guenther <rguenther@suse.de>
15388
15389 * gimple.h (gimple_call_addr_fndecl): New function.
15390 (gimple_call_fndecl): Use it.
15391 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
15392 for direct calls.
15393 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
15394 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
15395
d25a79ea
RG
153962011-04-18 Richard Guenther <rguenther@suse.de>
15397
15398 PR middle-end/48650
15399 * tree.c (build_string): STRING_CST is now derived from tree_typed.
15400
7d5fc814
EB
154012011-04-18 Eric Botcazou <ebotcazou@adacore.com>
15402
15403 PR lto/48492
15404 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
15405 DECL_IN_CONSTANT_POOL without RTL.
15406
7e7cfcf6
UW
154072011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
15408 Ira Rosen <ira.rosen@linaro.org>
15409
15410 PR target/48252
15411 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
15412 to match neon_vzip/vuzp/vtrn_internal.
15413 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
15414 outputs explicitly dependent on both inputs.
15415 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
15416
49eab32e
JJ
154172011-04-18 Jakub Jelinek <jakub@redhat.com>
15418
15419 PR tree-optimization/48616
15420 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
15421 whether the shift is by scalar or vector based on whether all SLP
15422 scalar stmts have the same rhs.
15423
e54170f4
CLT
154242011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
15425
15426 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
15427 memory operands.
15428
b14ee6c9
RS
154292011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
15430
269e0e18 15431 PR target/43700
b14ee6c9
RS
15432 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
15433 registers.
15434
10158cd3
JH
154352011-04-17 Jan Hubicka <jh@suse.cz>
15436
15437 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
15438 * cgrpahunit.c (cgraph_finalize_function): Do not set
15439 finalized_by_frontend.
10158cd3
JH
15440 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
15441 finalized_by_frontend.
15442
2e9bb6ba
JH
154432011-04-17 Jan Hubicka <jh@suse.cz>
15444
15445 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
15446 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
15447 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
15448 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
15449 method.
2e9bb6ba
JH
15450 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
15451 gimple-fold.c
15452 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
15453
beb628e1
EB
154542011-04-17 Eric Botcazou <ebotcazou@adacore.com>
15455
15456 PR lto/48538
15457 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
15458 is non-null before accessing it.
15459 (input_cgraph): Remove trailing spaces.
15460
3e2fdd24
RE
154612011-04-17 Revital Eres <revital.eres@linaro.org>
15462
15463 * params.def (sms-min-sc): New param flag.
15464 * modulo-sched.c (sms_schedule): Use it.
15465 * doc/invoke.texi (sms-min-sc): Document it.
15466
4c0f7679
JH
154672011-04-17 Jan Hubicka <jh@suse.cz>
15468
15469 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
15470 present, also set gimple_call_set_cannot_inline.
15471 * ipa-inline.c: Update toplevel comment.
15472 (MAX_TIME): Remove.
15473 (cgraph_clone_inlined_nodes): Fix linebreaks.
15474 (cgraph_check_inline_limits): Restructure to ...
15475 (caller_growth_limits): ... this one; be more tolerant
15476 on growth in nested inline chains; add explanatory comment;
15477 fix stack accounting thinko introduced by previous patch.
15478 (cgraph_default_inline_p): Remove.
15479 (report_inline_failed_reason): New function.
15480 (can_inline_edge_p): New function.
15481 (can_early_inline_edge_p): New function.
15482 (leaf_node_p): Move upwards in file.
15483 (want_early_inline_function_p): New function.
15484 (want_inline_small_function_p): New function.
15485 (want_inline_self_recursive_call_p): New function.
15486 (cgraph_edge_badness): Rename to ...
15487 (edge_badness) ... this one; fix linebreaks.
15488 (update_edge_key): Update call of edge_baddness; add
15489 detailed dump about queue updates.
15490 (update_caller_keys): Use can_inline_edge_p and
15491 want_inline_small_function_p.
15492 (cgraph_decide_recursive_inlining): Rename to...
15493 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
15494 want_inline_self_recursive_call_p; simplify and remove no longer
15495 valid FIXME.
4c0f7679
JH
15496 (cgraph_set_inline_failed): Remove.
15497 (add_new_edges_to_heap): Use can_inline_edge_p and
15498 want_inline_small_function_p.
15499 (cgraph_decide_inlining_of_small_functions): Rename to ...
15500 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
15501 can/want predicates; cleanup debug ouput; work edges till fibheap
15502 is exhausted and do not stop once unit growth is reached; remove
15503 later loop processing remaining edges.
4c0f7679
JH
15504 (cgraph_flatten): Rename to ...
15505 (flatten_function): ... this one; use can_inline_edge_p
15506 and can_early_inline_edge_p predicates.
15507 (cgraph_decide_inlining): Rename to ...
15508 (ipa_inline): ... this one; remove unreachable nodes before
15509 inlining functions called once; simplify the pass.
15510 (cgraph_perform_always_inlining): Rename to ...
15511 (inline_always_inline_functions): ... this one; use
f60c2554 15512 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
15513 (cgraph_decide_inlining_incrementally): Rename to ...
15514 (early_inline_small_functions): ... this one; simplify
15515 using new predicates; cleanup; make dumps prettier.
15516 (cgraph_early_inlining): Rename to ...
15517 (early_inliner): newer inline regular functions into always-inlines;
15518 fix updating of call stmt summaries.
15519 (pass_early_inline): Update for new names.
15520 (inline_transform): Fix formating.
15521 (gate_cgraph_decide_inlining): Rename to ...
15522 (pass_ipa_inline): ... this one.
15523 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
15524 * ipa-inline-analysis.c (dump_inline_summary): Update.
15525 (compute_inline_parameters): Do not compute disregard_inline_limits;
15526 look for mismatching arguments.
15527 (estimate_growth): Fix handlig of non-trivial self recursion.
15528 (inline_read_summary): Do not read info->disregard_inline_limits.
15529 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
15530 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
15531 and move all checks into can_inline_edge_p predicate; re-enable code
15532 comparing optimization levels.
4c0f7679
JH
15533 (expand_call_inline): Do not test inline_forbidden_into_p.
15534 * Makefile.in (ipa-inline.o): Update arguments.
15535
54333b7c
RE
155362011-04-17 Revital Eres <revital.eres@linaro.org>
15537
15538 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
15539
42c2bf92
RE
155402011-04-17 Revital Eres <revital.eres@linaro.org>
15541
15542 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
15543
b183e9e0
MM
155442011-04-17 Michael Matz <matz@suse.de>
15545
15546 PR tree-optimization/48622
15547 PR lto/48645
15548 * ipa-inline-analysis.c (inline_read_summary): Read size/time
15549 in same order as they're written.
15550
b8a17fa2
JDA
155512011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15552
15553 * config/pa/predicates.md: Reorganize and simplify predicates.
15554 Eliminate duplicate code checks.
15555 (arith_operand): Rename to arith14_operand
15556 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
15557 * config/pa/pa.md: Use renamed operands.
15558 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
15559 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
15560 arith11_operand, adddi3_operand, indexed_memory_operand,
15561 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
15562 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
15563 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
15564 move_dest_operand, move_src_operand, prefetch_cc_operand,
15565 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
15566 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
15567 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
15568 div_operand, int5_operand, movb_comparison_operator,
15569 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
15570 arith_double_operand, ireg_operand, lhs_lshift_operand,
15571 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
15572 integer_store_memory_operand): Likewise.
15573 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
15574 (integer_store_memory_operand, read_only_operand,
15575 function_label_operand, borx_reg_operand,
15576 non_hard_reg_operand): Likewise.
15577 (eq_neq_comparison_operator): Delete unused operator.
15578 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
15579 function_label_operand.
15580 (emit_move_sequence): Likewise.
15581
8dfb9f16
UB
155822011-04-16 Uros Bizjak <ubizjak@gmail.com>
15583
15584 * config/i386/sse.md (sseunpackmode): New mode attribute.
15585 (ssepackmode): Ditto.
15586 (vec_pack_trunc_<mode>): Macroize expander from
15587 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
15588 (vec_unpacks_lo_<mode>): Macroize expander from
15589 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15590 (vec_unpacks_hi_<mode>): Macroize expander from
15591 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15592 (vec_unpacku_lo_<mode>): Macroize expander from
15593 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15594 (vec_unpacku_hi_<mode>): Macroize expander from
15595 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15596 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
15597 ix86_expand_sse4_unpack.
15598 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
15599
e7f23018
JH
156002011-04-16 Jan Hubicka <jh@suse.cz>
15601
15602 * cgraphbuild.c: Include ipa-inline.h.
15603 (reset_inline_failed): Use initialize_inline_failed.
15604 * cgraph.c: Include ipa-inline.h.
15605 (cgraph_create_node_1): Do not initialize estimated_growth.
15606 (initialize_inline_failed): More to ipa-inline-analysis.c
15607 (dump_cgraph_node): Do not dump inline flags.
15608 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
15609 and disregard_inline_limits flags.
15610 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
15611 time, size, estimated_growth.
8dfb9f16
UB
15612 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
15613 Update.
e7f23018
JH
15614 * cgraphunit.c (cgraph_decide_is_function_needed): Use
15615 DECL_DISREGARD_INLINE_LIMITS.
15616 (cgraph_analyze_function): Do not initialize
15617 node->local.disregard_inline_limits.
15618 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
15619 inlinable, versionable and disregard_inline_limits.
15620 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
15621 cgraph_check_inline_limits, cgraph_default_inline_p,
15622 cgraph_edge_badness, update_caller_keys, update_callee_keys,
15623 add_new_edges_to_heap): Update.
15624 (cgraph_decide_inlining_of_small_function): Update; set
15625 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
15626 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
15627 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
15628 * ipa-inline.h (inline_summary): Add inlinable, versionable,
15629 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
15630 time, size and estimated_growth parameters.
e7f23018
JH
15631 (estimate_edge_growth): Update.
15632 (initialize_inline_failed): Declare.
15633 * ipa-split.c: Include ipa-inline.h
15634 (execute_split_functions): Update.
15635 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
15636 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
15637 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
15638 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
15639 estimated_growth to INT_MIN.
15640 (inline_node_duplication_hook): Likewise.
15641 (dump_inline_summary): Dump new fields.
15642 (compute_inline_parameters): Update.
15643 (estimate_edge_time, estimate_time_after_inlining,
15644 estimate_size_after_inlining, estimate_growth, inline_read_summary,
15645 inline_write_summary):
15646 (initialize_inline_failed): Move here from cgraph.c.
15647 * tree-sra.c: Include ipa-inline.h.
15648 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
15649 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
15650 ipa-inline.h.
e7f23018 15651
e81b8564
UB
156522011-04-16 Uros Bizjak <ubizjak@gmail.com>
15653
15654 * config/i386/sse.md (V16): New mode iterator.
15655 (VI1, VI8): Ditto.
15656 (AVXMODEQI, AVXMODEDI): Remove.
15657 (sse2, sse3): New mode attribute.
15658 (mov<mode>): Use V16 mode iterator.
15659 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
15660 (push<mode>1): Use V16 mode iterator.
15661 (movmisalign<mode>): Ditto.
15662 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
15663 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
15664 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
15665 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
15666 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
15667 avx_movdqu<avxmodesuffix>.
15668 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
15669 *avx_movdqu<avxmodesuffix>.
15670 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
15671 avx_lddqu<avxmodesuffix>.
15672 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
15673 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
15674 avx_movnt<AVXMODEDI:mode>.
15675 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
15676 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
15677
4743d438
BS
156782011-04-16 Bernd Schmidt <bernds@codesourcery.com>
15679
15680 PR target/48629
15681 * haifa-sched.c (prune_ready_list, schedule_block): Use
15682 sched_pressure_p rather than flag_sched_pressure.
15683
748f7574 156842011-04-15 Pat Haugen <pthaugen@us.ibm.com>
eb229cf4
PH
15685
15686 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
15687 cgraph_get_node instead of cgraph_get_create_node.
15688
2ba172e0
JJ
156892011-04-15 Jakub Jelinek <jakub@redhat.com>
15690
15691 * cfgexpand.c (expand_debug_expr): Use
15692 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
15693
63d2a353
MM
156942011-04-15 Michael Matz <matz@suse.de>
15695
15696 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
15697 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
15698 * function.c (gimplify_parameters): Ditto.
15699 * gimplify.c (gimplify_vla_decl): Ditto.
15700
15701 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
15702 (gimple_call_set_alloca_for_var): New inline function.
15703 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
15704 * gimple.c (gimple_build_call_from_tree): Remember
15705 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
15706 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
15707
15708 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
15709 calls if they were for VLA objects.
15710
dee74c34
MJ
157112011-04-15 Martin Jambor <mjambor@suse.cz>
15712
15713 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
15714 of ADR_EXPRs.
15715
8e5837bc
MJ
157162011-04-15 Martin Jambor <mjambor@suse.cz>
15717
15718 PR middle-end/48601
15719 * tree-emutls.c (lower_emutls_function_body): Call
15720 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
15721 result is non-NULL.
15722
0dc33c3c
NP
157232011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
15724
15725 * c-decl.c (detect_field_duplicates): Call
15726 objc_detect_field_duplicates instead of objc_get_interface_ivars.
15727
edcdea5b
NF
157282011-04-15 Nathan Froyd <froydnj@codesourcery.com>
15729
15730 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
15731 * gimple.c (gimple_asm_clobbers_memory_p): Define.
15732 * ipa-pure-const.c (check_stmt): Call it.
15733 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
15734
8456558d
RG
157352011-04-15 Richard Guenther <rguenther@suse.de>
15736
15737 PR tree-optimization/48290
15738 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
15739 Properly decide inhibiting propagation based on the valueized
15740 operand. Do loop-closed SSA form preserving here ...
15741 (init_copy_prop): ... not here.
15742
266446be
L
157432011-04-15 H.J. Lu <hongjiu.lu@intel.com>
15744
15745 PR target/48612
15746 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
15747 (*ieee_smax<mode>3): Likewise.
15748
17465c6e
AK
157492011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15750
15751 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
15752 Replace match_operand with match_dup for the third operand in
15753 these expanders.
15754
bce204e5
MK
157552011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
15756
15757 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
15758 to track processing of conditionals. Update all callers.
15759 (try_combine, simplify_if_then_else): Update.
15760
3162fdf4
MK
157612011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
15762
15763 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
15764 -fsched-pressure.
15765
79002a57 157662011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 15767
79002a57
GJL
15768 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
15769 instead of match_operand for operand 3.
15770
4fd3a105
RS
157712011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
15772
15773 * recog.h (insn_operand_data): Add an "allows_mem" field.
15774 * genoutput.c (output_operand_data): Initialize it.
15775 * optabs.c (maybe_legitimize_operand_same_code): New function.
15776 (maybe_legitimize_operand): Use it when matching the original
15777 op->value.
15778
ad19c4be
EB
157792011-04-15 Eric Botcazou <ebotcazou@adacore.com>
15780
15781 * gimplify.c: Fix issues in comments throughout.
15782 (voidify_wrapper_expr): Fix long line.
15783 (build_stack_save_restore): Likewise.
15784 (gimplify_loop_expr): Likewise.
15785 (gimplify_compound_lval): Likewise.
15786 (gimplify_init_ctor_eval): Likewise.
15787 (gimplify_modify_expr_rhs): Likewise.
15788 (omp_notice_threadprivate_variable): Likewise.
15789
b25aa0e8 157902011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 15791
b25aa0e8
EB
15792 * cfgexpand.c (expand_call_stmt): Convert the function type to the
15793 original one if this is not a builtin function.
e7925582 15794
09db7afe
JJ
157952011-04-14 Jakub Jelinek <jakub@redhat.com>
15796
15797 PR target/48605
15798 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
15799 offset it as needed based on top 2 bits in operands[3], change
15800 MEM mode to SFmode and mask those 2 bits away from operands[3].
15801
c59633d9
NP
158022011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
15803
15804 * c-parser.c (c_parser_objc_protocol_definition): Updated for
15805 change from objc_declare_protocols() to objc_declare_protocol().
15806
5e60198b
UB
158072011-04-14 Uros Bizjak <ubizjak@gmail.com>
15808
15809 * config/i386/sse.md (sse4_1): New mode attribute.
15810 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
15811 avx_blend<ssemodesuffix><avxmodesuffix> and
15812 sse4_1_blend<ssemodesuffix> using VF mode iterator.
15813 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
15814 avx_blendv<ssemodesuffix><avxmodesuffix> and
15815 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
15816 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
15817 avx_dp<ssemodesuffix><avxmodesuffix> and
15818 sse4_1_dp<ssemodesuffix> using VF mode iterator.
15819 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
15820 (sse4_1_packusdw): Merge with *avx_packusdw.
15821 (sse4_1_pblendvb): Merge with *avx_pblendvb.
15822 (sse4_1_pblendw): Merge with *avx_pblendw.
15823 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
15824 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
15825 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
15826 VF mode iterator.
15827 (sse4_1_round<ssescalarmodesuffix>): Merge with
15828 *avx_round<ssescalarmodesuffix>.
15829 (aesenc): Merge with *avx_aesenc.
15830 (aesenclast): Merge with *avx_aesenclast.
15831 (aesdec): Merge with *avx_aesdec.
15832 (aesdeclast): Merge with *avx_aesdeclast.
15833 (pclmulqdq): Merge with *pclmulqdq.
15834 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
15835 New predicate.
15836 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
15837
6f197850
L
158382011-04-14 H.J. Lu <hongjiu.lu@intel.com>
15839
15840 PR middle-end/48608
15841 * cfgexpand.c (get_decl_align_unit): Renamed to ...
15842 (align_local_variable): This. Update DECL_ALIGN.
15843 (add_stack_var): Updated.
15844 (expand_one_stack_var): Likewise.
15845
4a5ba3ed
RG
158462011-04-14 Richard Guenther <rguenther@suse.de>
15847
15848 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
15849 Remove.
15850 (dse_initialize_block_local_data, dse_leave_block,
15851 record_voperand_set, get_stmt_uid): Likewise.
15852 (dse_possible_dead_store_p): Allow any kind of killing stmt.
15853 (dse_optimize_stmt): Remove voperand set handling code.
15854 Simplify and improve to handle any kind of killing stmt.
15855 (dse_record_phi): Remove.
15856 (dse_enter_block): Simplify.
15857 (tree_ssa_dse): Likewise.
15858 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
15859
10a5dd5d
JH
158602011-04-14 Jan Hubicka <jh@suse.cz>
15861
15862 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
15863 * cgraph.h (struct inline_summary): Move to ipa-inline.h
15864 (cgraph_local_info): Remove inline_summary.
15865 * ipa-cp.c: Include ipa-inline.h.
15866 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
15867 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
15868 accesor.
15869 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
15870 (input_overwrite_node): Do not set inline summary.
15871 (input_node): Do not stream inline summary.
15872 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
15873 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
15874 growth; we do not have inline parameters computed for that anyway.
15875 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
15876 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
15877 (inline_summary_t): New type and VECtor.
15878 (debug_inline_summary, dump_inline_summaries): Declare.
15879 (inline_summary): Use VOCtor.
15880 (estimate_edge_growth): Kill hack computing call stmt size directly.
15881 * lto-section-in.c (lto_section_name): Add inline section.
15882 * ipa-inline-analysis.c: Include lto-streamer.h
15883 (node_removal_hook_holder, node_duplication_hook_holder): New holders
15884 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
15885 (inline_summary_vec): Define.
15886 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
15887 dump_inline_summaries): New functions.
5e60198b
UB
15888 (estimate_function_body_sizes): Properly compute size/time of outgoing
15889 calls.
15890 (compute_inline_parameters): Alloc inline_summary; do not compute
15891 size/time of incomming calls.
10a5dd5d
JH
15892 (estimate_edge_time): Avoid missing time summary hack.
15893 (inline_read_summary): Read inline summary info.
15894 (inline_write_summary): Write inline summary info.
15895 (inline_free_summary): Free all hooks and inline summary vector.
15896 * lto-streamer.h: Add LTO_section_inline_summary section.
15897 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
15898 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
15899
b602d918
RS
159002011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
15901
15902 * tree-vectorizer.h (vect_strided_store_supported): Add a
15903 HOST_WIDE_INT argument.
15904 (vect_strided_load_supported): Likewise.
15905 (vect_permute_store_chain): Return void.
15906 (vect_transform_strided_load): Likewise.
15907 (vect_permute_load_chain): Delete.
15908 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
15909 count argument. Check that the count is a power of two.
15910 (vect_strided_load_supported): Likewise.
15911 (vect_permute_store_chain): Return void. Update after above changes.
15912 Assert that the access is supported.
15913 (vect_permute_load_chain): Likewise.
15914 (vect_transform_strided_load): Return void.
15915 * tree-vect-stmts.c (vectorizable_store): Update calls after
15916 above interface changes.
15917 (vectorizable_load): Likewise.
15918 (vect_analyze_stmt): Don't check for strided powers of two here.
15919
ab4472fa
RG
159202011-04-14 Richard Guenther <rguenther@suse.de>
15921
15922 PR tree-optimization/48590
15923 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15924 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
15925 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
15926 BUILT_IN_STACK_SAVE.
15927 * tree-ssa-dce.c (propagate_necessity): Handle
15928 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
15929
32dabdaf
NP
159302011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
15931
15932 * c-parser.c (c_parser_objc_class_declaration): Updated call to
15933 objc_declare_class.
15934
daade206
RG
159352011-04-14 Richard Guenther <rguenther@suse.de>
15936
15937 * tree.h (get_object_alignment_1): Declare.
15938 * builtins.c (get_object_alignment_1): Split out worker from ...
15939 (get_object_alignment): ... here.
15940 * fold-const.c (get_pointer_modulus_and_residue): Use
15941 get_object_alignment_1.
15942
920e8172
RS
159432011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
15944
15945 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
15946 type parameter.
15947 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
15948 parameter. Generalise code to handle arrays as well as vectors.
15949 (vect_setup_realignment): Update accordingly.
15950 * tree-vect-stmts.c (vectorizable_store): Likewise.
15951 (vectorizable_load): Likewise.
15952
5ce1ee7f
RS
159532011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
15954
15955 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
15956 within the per-copy loop.
15957
6438fe33 159582011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
15959
15960 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
15961 in the dump file.
15962
6438fe33 159632011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
15964
15965 * doc/options.texi (Negative): Explicitly mention that the
15966 Negative chain must be circular.
15967
61e46a7d
NF
159682011-04-14 Nathan Froyd <froydnj@codesourcery.com>
15969
15970 * function.h (block_chainon): Declare.
15971 * function.c (block_chainon): Define.
15972
43ea6502 159732011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b 15974 Eric Weddington <eric.weddington@atmel.com>
748f7574 15975 Georg-Johann Lay <avr@gjlay.de>
5e60198b 15976
f60c2554 15977 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
15978 New Includes
15979 (avr_init_builtins, avr_expand_builtin,
15980 avr_expand_delay_cycles, avr_expand_unop_builtin,
15981 avr_expand_binop_builtin ): New functions.
15982 (avr_builtin_id): New enum
15983 (struct avr_builtin_description): New struct
15984 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
15985 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 15986
43ea6502 15987 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 15988 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
15989 UNSPECV_DELAY_CYCLES): new enumeration values
15990 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
15991 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
15992 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
15993 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
15994 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
15995 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
15996 "fmulsu"): New insns
5e60198b 15997
43ea6502
AS
15998 * config/avr/avr-c.c: fix line endings
15999 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
16000 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
16001 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
16002 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
16003 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 16004
43ea6502
AS
16005 * doc/extend.texi (AVR Built-in Functions): New node
16006 (Target Builtins): Add documentation of AVR
16007 built-in functions.
16008
8a9b55f3
GJL
160092011-04-14 Georg-Johann Lay <avr@gjlay.de>
16010
16011 PR target/44643
16012 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
16013 alone. Error if non-const data has attribute progmem.
16014
94bd1825
NF
160152011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16016
16017 * tree.h (struct tree_constructor): Include tree_typed instead of
16018 tree_common.
16019 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
16020 TS_TYPED instead of TS_COMMON.
16021
5e60198b 160222011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
16023
16024 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
16025 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
16026 (sse2_psadbw): Merge with *avx_psadbw.
16027 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
16028 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
16029 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
16030 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
16031 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
16032 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
16033 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
16034 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
16035 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
16036 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
16037 (ssse3_palignrti): Merge with *avx_palignrti.
16038
4b1a4694
NF
160392011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16040
16041 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
16042 * tree-ssanames.c (fini_ssanames): VEC_free it.
16043 (make_ssa_name_fn): Update for VECness of free_ssanames.
16044 (release_ssa_name, release_dead_ssa_names): Likewise.
16045 * tree.h (struct tree_ssa_name): Include tree_typed instead of
16046 tree_common.
16047 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
16048 TS_TYPED instead of TS_COMMON.
16049
4da3b811
NF
160502011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16051
16052 * postreload-gcse.c (gcse_after_reload_main): Add calls to
16053 statistics_counter_event.
16054 * tree-ssa-copyrename.c (stats): Define.
16055 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
16056 statistics_counter_event.
16057 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
16058 (bswap_stats, widen_mul_stats): Define.
16059 (insert_reciprocals): Increment rdivs_inserted.
16060 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
16061 rfuncs_inserted. Add calls to statistics_counter_event.
16062 (execute_cse_sincos_1): Increment inserted.
16063 (execute_cse_sincos): Zeroize sincos_stats. Add call to
16064 statistics_counter_event.
16065 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
16066 of bswap_stats. Add calls to statistics_counter_event.
16067 (convert_mult_to_widen): Increment widen_mults_inserted.
16068 (convert_plusminus_to_widen): Increment maccs_inserted.
16069 (convert_mult_to_fma): Increment fmas_inserted.
16070 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
16071 calls to statistics_counter_event.
16072
89fa552a
VM
160732011-04-13 Vladimir Makarov <vmakarov@redhat.com>
16074
16075 PR rtl-optimization/48455
16076 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
16077 `temp_costs->mem_cost'.
16078
03dfc36d
JH
160792011-04-13 Jan Hubicka <jh@suse.cz>
16080
16081 * ipa-inline.h: New file.
16082 * ipa-inline-analysis.c: New file. Broken out of ...
16083 * ipa-inline.c: ... this file; update toplevel comment;
16084 include ipa-inline.h
16085 (inline_summary): Move to ipa-inline.h
16086 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
16087 ipa-inline-analysis.c.
7d4f8d02
EB
16088 (cgraph_estimate_time_after_inlining): Rename to
16089 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
16090 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
16091 to estimate_edge_growth.
16092 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
16093 rename to estimate_size_after_inlining.
16094 (cgraph_mark_inline_edge): Update for new naming convention.
16095 (cgraph_check_inline_limits): Likewise.
16096 (cgraph_edge_badness): Likewise.
16097 (cgraph_decide_recursive_inlining): Likewise.
16098 (cgraph_decide_inlining_of_small_functions): Likewise.
16099 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
16100 (cgraph_estimate_growth): Rename to estimate_growth; move to
16101 ipa-inline-analysis.c.
03dfc36d
JH
16102 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
16103 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
16104 (compute_inline_parameters): Likewise.
16105 (compute_inline_parameters_for_current): Likewise.
16106 (pass_inline_parameters): Likewise.
16107 (inline_indirect_intraprocedural_analysis): Likewise.
16108 (analyze_function): Rename to inline_analyze_function; likewise.
16109 (add_new_function): Move to ipa-inline-analysis.c.
16110 (inline_generate_summary): Likewise.
16111 (inline_read_summary): Likewise.
16112 (inline_write_summary): Likewise.
16113 * Makefile.in (ipa-inline-analysis.c): New file.
16114
7673c962
RO
161152011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16116
16117 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
16118 * configure: Regenerate.
16119
9698252f
NF
161202011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16121
16122 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
16123 instead of tree_common.
16124 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
16125 Likewise.
16126 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
16127 TS_TYPED rather than TS_COMMON.
16128 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
16129
3a7bfdd5
GJL
161302011-04-01 Georg-Johann Lay <avr@gjlay.de>
16131
16132 PR target/45263
86d83530
GJL
16133 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
16134 r20 around calls of __tablejump_elpm__
3a7bfdd5 16135
20790697
JJ
161362011-04-13 Jakub Jelinek <jakub@redhat.com>
16137
16138 PR middle-end/48591
16139 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
16140 NULL.
16141 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
16142
094d7661
BS
161432011-04-13 Bernd Schmidt <bernds@codesourcery.com>
16144
16145 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
16146 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
16147 (cfi_vec): New typedef.
16148 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
16149 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
16150 (cie_cfi_vec): New static variable.
16151 (cie_cfi_head): Delete.
16152 (add_cfi): Accept a cfi_vec * as first argument. All callers and
16153 declaration changed. Use vector rather than list operations.
16154 (new_cfi): Don't initialize the dw_cfi_next field.
16155 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
16156 rather than list operations.
16157 (lookup_cfa): Use vector rather than list operations.
16158 (output_cfis): New argument upto. Accept a cfi_vec rather than
16159 a dw_cfi_ref list head as argument. All callers changed.
16160 Iterate over the vector using upto as a maximum index.
16161 (output_all_cfis): New static function.
16162 (output_fde): Use vector rather than list operations. Use the
16163 new upto argument for output_cfis rather than manipulating a
16164 list.
16165 (dwarf2out_begin_prologue): Change initializations to match
16166 new struct members.
16167 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
16168 from the vector length rather than searching for the end of a list.
16169 Use output_all_cfis.
16170 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
16171
673a5740
NC
161722011-04-13 Nick Clifton <nickc@redhat.com>
16173
16174 * config/rx/rx.md (movmemsi): Do not use this pattern when
16175 volatile pointers are involved.
16176
1ee8b298
UB
161772011-04-13 Uros Bizjak <ubizjak@gmail.com>
16178
16179 * config/i386/sse.md (pinsrbits): Remove.
16180 (sse2_packsswb): Merge with *avx_packsswb.
16181 (sse2_packssdw): Merge with *avx_packssdw.
16182 (sse2_packuswb): Merge with *avx_packuswb.
16183 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
16184 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
16185 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
16186 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
16187 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
16188 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
16189 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
16190 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
16191 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
16192 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
16193 (sse2_loadld): Merge with *avx_loadld.
16194 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
16195 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
16196 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
16197 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
16198 (vec_concatv2di): Merge with *vec_concatv2di_avx.
16199
81f653d6
NF
162002011-04-12 Nathan Froyd <froydnj@codesourcery.com>
16201
16202 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
16203 calling TREE_CHAIN.
16204 * print-tree.c (print_node): Likewise.
16205 * tree-inline.c (copy_tree_r): Likewise.
16206 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
16207 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
16208 instead of TS_COMMON.
16209 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
16210 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
16211 (copy_node_stat): Zero TREE_CHAIN only if necessary.
16212 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
16213 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
16214 ...and these...
16215 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
16216 * tree.h: ...here.
16217 (TREE_CHAIN): Check for a TS_COMMON structure.
16218 (TREE_TYPE): Check for a TS_TYPED structure.
16219
748f7574 162202011-04-12 Pat Haugen <pthaugen@us.ibm.com>
ed940a4a
PH
16221
16222 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
16223 cgraph_get_create_node instead of cgraph_node.
16224
eb345401
NP
162252011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
16226
16227 * c-parser.c (c_parser_initelt): Updated call to
16228 objc_build_message_expr.
16229 (c_parser_postfix_expression): Likewise.
16230
a6c46762
KT
162312011-04-12 Kai Tietz <ktietz@redhat.com>
16232
16233 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
16234 MASK_MS_BITFIELD_LAYOUT bit.
16235
b4ccfed9
JJ
162362011-04-12 Jakub Jelinek <jakub@redhat.com>
16237
16238 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
16239 assert it is always true.
16240 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
16241 moves.
16242
0d8a2528
NP
162432011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
16244
16245 * c-parser.c (c_lex_one_token): Rewritten conditional used when
16246 compiling Objective-C to be more efficient.
16247
06bd234a
AF
162482011-04-12 Axel Freyn <axel-freyn@gmx.de>
16249
16250 * opts-common.c (decode_cmdline_options_to_array): Remove variable
16251 argv_copied.
16252
28569ac3
RS
162532011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16254
16255 * recog.h, genoutput.c, optabs.c: Revert last patch.
16256
ae59e00d
RR
162572011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16258
81b1e7eb
UB
16259 PR target/48090
16260 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 16261
cff1b7e0
RS
162622011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16263
16264 * recog.h (insn_operand_data): Add an "allows_mem" field.
16265 * genoutput.c (output_operand_data): Initialize it.
16266 * optabs.c (maybe_legitimize_operand_same_code): New function.
16267 (maybe_legitimize_operand): Use it when matching the original
16268 op->value.
16269
77059241
RS
162702011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16271
16272 * genpreds.c (process_define_predicate): Move most processing
16273 to gensupport.c. Continue to validate the expression.
16274 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
16275 (process_define_predicate): Move processing to gensupport.c.
16276 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
16277 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
16278 (compute_predicate_codes): Moved from genrecog.c. Add lineno
16279 argument.
16280 (valid_predicate_name_p): New function, split out from old
16281 genpreds.c:process_define_predicate.
16282 (process_define_predicate): New function, combining code from
16283 old genpreds.c and genrecog.c functions.
16284 (process_rtx): Call it for DEFINE_PREDICATE and
16285 DEFINE_SPECIAL_PREDICATE.
16286
6308e208
RS
162872011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16288
16289 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
16290 size of a '%A' memory reference.
16291 (T_DREG, T_QREG): New neon_builtin_type_bits.
16292 (arm_init_neon_builtins): Assert that the load and store operands
16293 are neon_struct_operands.
16294 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
16295 (NEON_ARG_MEMORY): New builtin_arg.
16296 (neon_dereference_pointer): New function.
16297 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
16298 Handle NEON_ARG_MEMORY.
16299 (arm_expand_neon_builtin): Update after above interface changes.
16300 Use NEON_ARG_MEMORY for loads and stores.
16301 * config/arm/predicates.md (neon_struct_operand): New predicate.
16302 * config/arm/iterators.md (V_two_elem): Tweak formatting.
16303 (V_three_elem): Use BLKmode for accesses that have no associated mode.
16304 (V_four_elem): Tweak formatting.
16305 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
16306 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
16307 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
16308 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
16309 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
16310 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
16311 (neon_vst4<mode>): Replace pointer operand with a memory operand.
16312 Use %A in the output template.
16313 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
16314 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
16315 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
16316 the width of the memory access. Remove post-increment.
16317 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
16318
e5db8f2f
NC
163192011-04-12 Nick Clifton <nickc@redhat.com>
16320
16321 * config/v850/v850.c (expand_prologue): Do not use the CALLT
16322 instruction for interrupt handlers if the target is the basic V850
16323 architecture.
16324 (expand_epilogue): Likewise.
16325
74f091d6
JJ
163262011-04-12 Jakub Jelinek <jakub@redhat.com>
16327
16328 PR rtl-optimization/48549
16329 * combine.c (propagate_for_debug): Also stop after BB_END of
16330 this_basic_block. Process LAST and just stop processing after it.
16331 (combine_instructions): If last_combined_insn has been deleted,
16332 set last_combined_insn to its PREV_INSN.
16333
f20ca725
RG
163342011-04-12 Richard Guenther <rguenther@suse.de>
16335
16336 PR tree-optimization/46076
16337 * gimple.h (struct gimple_statement_call): Add fntype field.
16338 (gimple_call_fntype): Adjust.
16339 (gimple_call_set_fntype): New function.
16340 * gimple.c (gimple_build_call_1): Set the call function type.
16341 * gimplify.c (gimplify_call_expr): Preserve the function
16342 type the frontend used for the call.
16343 (gimplify_modify_expr): Likewise.
16344 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
16345 function type.
16346 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
16347 function type.
16348 * tree-ssa.c (useless_type_conversion_p): Function pointer
16349 conversions are useless.
16350
a358e188
MJ
163512011-04-12 Martin Jambor <mjambor@suse.cz>
16352
16353 * cgraph.h (cgraph_node): Remove function declaration.
16354 (cgraph_create_node): Declare.
16355 (cgraph_get_create_node): Likewise.
16356 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
16357 Updated all callers.
16358 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
16359 the decl does not already exist. Call cgraph_get_create_node instead
16360 of cgraph_node.
16361 (cgraph_get_create_node): New function.
16362 (cgraph_same_body_alias): Update comment.
16363 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
16364 assert it does not return NULL.
16365 (cgraph_update_edges_for_call_stmt): Likewise.
16366 (cgraph_clone_edge): Likewise.
16367 (cgraph_create_virtual_clone): Likewise.
16368 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
16369 instead of cgraph_node.
16370 (cgraph_add_new_function): Call cgraph_create_node or
16371 cgraph_get_create_node instead of cgraph_node.
16372 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
16373 instead of cgraph_node.
16374 (record_eh_tables): Likewise.
16375 (mark_address): Likewise.
16376 (mark_load): Likewise.
16377 (build_cgraph_edges): Call cgraph_get_create_node instead
16378 of cgraph_node.
16379 (rebuild_cgraph_edges): Likewise.
16380 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
16381 instead of cgraph_node.
16382 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
16383 cgraph_node.
16384 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
16385 cgraph_create_node instead of cgraph_node.
16386 * c-decl.c (finish_function): Call cgraph_get_create_node instead
16387 of cgraph_node.
16388 * lto-cgraph.c (input_node): Likewise.
16389 * lto-streamer-in.c (input_function): Likewise.
16390 * varasm.c (mark_decl_referenced): Likewise.
16391 (assemble_alias): Likewise.
16392
fe660d7b
MJ
163932011-04-12 Martin Jambor <mjambor@suse.cz>
16394
16395 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
16396 instead of cgraph_node and assert it does not return NULL.
16397 * lto-streamer-in.c (lto_read_body): Likewise.
16398 * omp-low.c (new_omp_context): Likewise.
16399 (create_task_copyfn): Likewise.
16400 * tree-emutls.c (lower_emutls_function_body): Likewise.
16401 * matrix-reorg.c (transform_allocation_sites): Likewise.
16402
bae5cddf
JJ
164032011-04-12 Jakub Jelinek <jakub@redhat.com>
16404
16405 PR c/48552
16406 * c-typeck.c (build_asm_expr): Error out on attempts to use
16407 void type outputs or inputs for constraints that allow reg or
16408 don't allow memory.
16409
06eb52ca
CLT
164102011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
16411 Richard Earnshaw <rearnsha@arm.com>
16412
16413 PR target/48250
16414 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
16415 to use sign-magnitude offsets. Reject unsupported unaligned
16416 cases. Add detailed description in comments.
16417 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
16418 condition from TARGET_32BIT to TARGET_ARM.
16419
648a616b
NF
164202011-04-11 Nathan Froyd <froydnj@codesourcery.com>
16421
16422 * tree.h (struct typed_tree): New.
16423 (struct tree_common): Include it instead of tree_base.
16424 (TREE_TYPE): Update for new location of type field.
16425 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
16426 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
16427 (union tree_node): Add typed field.
16428 * treestruct.def (TS_TYPED): New.
16429 * lto-streamer.c (check_handled_ts_structures): Handle it.
16430 * tree.c (MARK_TS_TYPED): New macro.
16431 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
16432
1e6d1da0
EB
164332011-04-11 Eric Botcazou <ebotcazou@adacore.com>
16434
16435 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
16436 (force_nonfallthru): Do not alter the loop nest if no basic block
16437 was created.
16438
164392011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
16440
16441 * config/i386/sse.md (VI): New mode iterator.
16442 (SSEMODEI): Remove.
16443 (AVX256MODEI): Ditto.
16444 (AVXMODEF4P): Ditto.
16445 (avxvecpsmode): Ditto.
16446 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
16447 (sse2_andnot<mode>3): New expander.
16448 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
16449 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
16450 (<any_logic:code><mode>3): Use VI mode iterator.
16451 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
16452 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
16453 (*andnottf3): Handle AVX three-operand constraints.
16454 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
16455
b1372d5d 164562011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 16457 Robert Millan <rmh@gnu.org>
b1372d5d
JM
16458
16459 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
16460 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
16461 GNU_USER_DYNAMIC_LINKER64): Define.
16462 (REG_NAME): Don't undefine.
16463 (MD_UNWIND_SUPPORT): Undefine.
16464 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
16465 (REG_NAME): Don't undefine.
16466 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 16467 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 16468
761c0c6e
JM
164692011-04-11 Joseph Myers <joseph@codesourcery.com>
16470
16471 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
16472 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
16473
26e0228f
XDL
164742011-04-11 Xinliang David Li <davidxl@google.com>
16475
16476 * value-profile.c (check_ic_target): New function.
16477 (gimple_ic_transform): Sanity check indirect call target.
16478 * gimple-low.c (gimple_check_call_args): Interface change.
16479 (gimple_check_call_matching_types): New function.
16480 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
16481
164822011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
16483
16484 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
16485 tree-pretty-print.h & realmpfr.h.
16486
a58dfa49
VM
164872011-04-11 Vladimir Makarov <vmakarov@redhat.com>
16488
16489 PR middle-end/48464
16490 * ira.c (setup_pressure_classes): Fix typo in loop condition.
16491 (setup_allocno_and_important_classes): Ditto.
16492
107fd1c1
JM
164932011-04-11 Joseph Myers <joseph@codesourcery.com>
16494
16495 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
16496 GNU_USER_DYNAMIC_LINKER.
16497 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
16498 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16499 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
16500 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
16501 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
16502 GNU_USER_TARGET_OS_CPP_BUILTINS.
16503 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
16504 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16505 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
16506 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16507 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
16508 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
16509 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
16510 GNU_USER_TARGET_OS_CPP_BUILTINS.
16511 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16512 GNU_USER_DYNAMIC_LINKER.
16513 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16514 GNU_USER_TARGET_OS_CPP_BUILTINS.
16515 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
16516 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16517 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
16518 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16519 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
16520 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
16521 GNU_USER_DYNAMIC_LINKER64): Remove.
16522 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
16523 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16524 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16525 GNU_USER_DYNAMIC_LINKER.
16526 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16527 GNU_USER_TARGET_OS_CPP_BUILTINS.
16528 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16529 GNU_USER_TARGET_OS_CPP_BUILTINS.
16530 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
16531 to GNU_USER_TARGET_OS_CPP_BUILTINS.
16532 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16533 GNU_USER_TARGET_OS_CPP_BUILTINS.
16534 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
16535 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
16536 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
16537 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
16538 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16539 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16540 GNU_USER_DYNAMIC_LINKER.
16541 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
16542 GNU_USER_TARGET_OS_CPP_BUILTINS.
16543 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
16544 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16545 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16546 GNU_USER_DYNAMIC_LINKER.
16547 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
16548 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16549 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
16550 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16551 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16552 GNU_USER_DYNAMIC_LINKER.
16553 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
16554 GNU_USER_DYNAMIC_LINKERN32.
16555 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
16556 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
16557 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
16558 GNU_USER_DYNAMIC_LINKER32.
16559 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
16560 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16561 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16562 GNU_USER_DYNAMIC_LINKER.
16563 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
16564 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16565 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
16566 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 16567 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
16568 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
16569 GNU_USER_DYNAMIC_LINKER32.
16570 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
16571 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
16572 GNU_USER_DYNAMIC_LINKER.
16573 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
16574 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16575 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
16576 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
16577 GNU_USER_DYNAMIC_LINKER64.
16578 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
16579 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16580 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16581 GNU_USER_DYNAMIC_LINKER.
16582 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
16583 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16584 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16585 GNU_USER_DYNAMIC_LINKER.
16586 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
16587 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16588 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
16589 GNU_USER_DYNAMIC_LINKER32.
16590 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
16591 GNU_USER_DYNAMIC_LINKER64.
16592 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
16593 GNU_USER_DYNAMIC_LINKER64.
16594 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
16595 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16596 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
16597 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 16598 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 16599
e24609cf
JM
166002011-04-11 Joseph Myers <joseph@codesourcery.com>
16601
16602 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
16603 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
16604 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
16605 GNU_USER_DYNAMIC_LINKER.
16606 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
16607 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
16608 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
16609 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
16610 GNU_USER_DYNAMIC_LINKER64.
16611 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
16612 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
16613 GNU_USER_LINK_EMULATION.
16614 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
16615 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
16616 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
16617 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
16618 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
16619 CPP_SPEC, CC1_SPEC): Remove.
16620 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
16621 (GNU_USER_DYNAMIC_LINKER): Define.
16622 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
16623 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
16624 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
16625 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
16626 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
16627 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
16628 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
16629 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
16630 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
16631 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
16632 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
16633 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
16634 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
16635 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
16636 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
16637 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
16638 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16639 GNU_USER_DYNAMIC_LINKER.
16640 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16641 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
16642 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16643 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
16644 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16645 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
16646 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
16647 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
16648 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 16649 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 16650
b8ce4e94
KT
166512011-04-11 Kai Tietz <ktietz@redhat.com>
16652
16653 PR target/9601
16654 PR target/11772
16655 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
16656 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
16657 comment.
16658 (ix86_is_msabi_thiscall): Removed.
16659 (ix86_is_type_thiscall): Likewise.
16660 (ix86_get_callcvt): New function.
16661 (ix86_comp_type_attributes): Simplify check.
16662 (ix86_function_regparm): Use ix86_get_callcvt for calling
16663 convention attribute checks.
16664 (ix86_return_pops_args): Likewise.
16665 (ix86_static_chain): Likewise.
16666 (x86_this_parameter): Likewise.
16667 (x86_output_mi_thunk): Likewise.
16668 (ix86_function_type_abi): Optimize check for types without attributes.
16669 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
16670 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
16671 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
16672 by flag-values.
16673 (IX86_BASE_CALLCVT): Helper macro.
16674 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
16675 Use ix86_get_callcvt for calling convention attribute checks and avoid
16676 symbol-decoration for stdcall in TARGET_RTD case.
16677 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
16678 Likewise.
16679 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
16680 for declaration.
16681
798dd0ba
UB
166822011-04-11 Uros Bizjak <ubizjak@gmail.com>
16683
16684 * config/i386/sse.md (VI_128): New mode iterator.
16685 (VI12_128): Rename from SSEMODE12.
16686 (VI14_128): Rename from SSEMODE14.
16687 (VI124_128): New mode iterator.
16688 (VI24_128): Rename from SSEMODE248.
16689 (VI248_128): Rename from SSEMODE248.
16690 (SSEMODE124C8): Remove.
16691 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
16692 (*sse2_<plusminus_insn><mode>3): Merge with
16693 *avx_<plusminus_insn><mode>3.
16694 (*mulv8hi3): Merge with *avx_mulv8hi3.
16695 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
16696 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
16697 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
16698 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
16699 (ashr<mode>3): Merge with *avx_ashr<mode>3.
16700 (lshr<mode>3): Merge with *avx_lshr<mode>3.
16701 (ashl<mode>3): Merge with *avx_ashl<mode>3.
16702 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
16703 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
16704 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
16705 (*<smaxmin:code>v8hi3): Ditto.
16706 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
16707 (*<smaxmin:code>v16qi3): Ditto.
16708 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
16709 (*sse2_eq<mode>3): Ditto.
16710 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
16711 (*sse2_gt<mode>3): Ditto.
16712 (vcondv2di): Split out of vcond<mode>.
16713 (vconduv2di): Split out of vcondu<mode>.
16714
956011be
RG
167152011-04-11 Richard Guenther <rguenther@suse.de>
16716
16717 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
16718 before calling tree_low_cst.
16719
e6313a78
RG
167202011-04-11 Richard Guenther <rguenther@suse.de>
16721
16722 * stor-layout.c (layout_type): Compute all array index size operations
16723 in the original type.
16724 (initialize_sizetypes): Add comment.
16725 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
16726
e69d7376
JM
167272011-04-11 Joseph Myers <joseph@codesourcery.com>
16728
16729 * common.opt (Tbss=, Tdata=, Ttext=): New options.
16730
9f9ebcdf
MJ
167312011-04-11 Martin Jambor <mjambor@suse.cz>
16732
16733 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
16734 of cgraph_node, handle NULL return value.
16735 (cgraph_global_info): Likewise.
16736 (cgraph_rtl_info): Likewise.
16737 * tree-inline.c (estimate_num_insns): Likewise.
16738 * gimplify.c (unshare_body): Likewise.
16739 (unvisit_body): Likewise.
16740 (gimplify_body): Likewise.
16741 * predict.c (optimize_function_for_size_p): Likewise.
16742 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
16743 (call_may_clobber_ref_p_1): Likewise.
16744 * varasm.c (function_section_1): Likewise.
16745 (assemble_start_function): Likewise.
16746
581985d7
MJ
167472011-04-11 Martin Jambor <mjambor@suse.cz>
16748
16749 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
16750 of cgraph_node.
16751 * final.c (rest_of_clean_state): Likewise.
16752 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
16753 * passes.c (pass_init_dump_file): Likewise.
16754 (execute_all_ipa_transforms): Likewise.
16755 (function_called_by_processed_nodes_p): Likewise.
16756 * predict.c (maybe_hot_frequency_p): Likewise.
16757 (probably_never_executed_bb_p): Likewise.
16758 (compute_function_frequency): Likewise.
16759 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
16760 (unnest_nesting_tree_1): Likewise.
16761 (lower_nested_functions): Likewise.
16762 * tree-optimize.c (execute_fixup_cfg): Likewise.
16763 (tree_rest_of_compilation): Likewise.
16764 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
16765 * tree-sra.c (ipa_early_sra): Likewise.
16766 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
16767 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
16768 * ipa.c (record_cdtor_fn): Likewise.
16769 * ipa-inline.c (cgraph_early_inlining): Likewise.
16770 (compute_inline_parameters_for_current): Likewise.
16771 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
16772 * ipa-pure-const.c (local_pure_const): Likewise.
16773 * ipa-split.c (split_function): Likewise.
16774 (execute_split_functions): Likewise.
16775 * cgraphbuild.c (build_cgraph_edges): Likewise.
16776 (rebuild_cgraph_edges): Likewise.
16777 (cgraph_rebuild_references): Likewise.
16778 (remove_cgraph_callee_edges): Likewise.
16779 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
16780 (verify_cgraph_node): Likewise.
16781 (cgraph_analyze_functions): Likewise.
16782 (cgraph_preserve_function_body_p): Likewise.
16783 (save_inline_function_body): Likewise.
16784 (save_inline_function_body): Likewise.
16785 * tree-inline.c (copy_bb): Likewise.
16786 (optimize_inline_calls): Likewise.
16787
57dbdc5a
MJ
167882011-04-11 Martin Jambor <mjambor@suse.cz>
16789
16790 PR tree-optimization/48195
16791 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
16792 ipa_check_create_edge_args.
16793 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
16794 ipa_check_create_edge_args.
16795 * ipa-inline.c (inline_generate_summary): Do not call
16796 ipa_check_create_node_params and ipa_check_create_edge_args.
16797 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
16798 ipa_check_create_edge_args.
16799
d108e679
AS
168002011-04-09 Anatoly Sokolov <aesok@post.ru>
16801
16802 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
16803 instead of loop.
16804 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
16805 * function.c (record_hard_reg_sets): Likewise.
16806 * ira.c (compute_regs_asm_clobbered): Likewise.
16807 * sched-deps.c (sched_analyze_1): Likewise.
16808 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
16809
3411bc59
XDL
168102011-04-09 Xinliang David Li <davidxl@google.com>
16811
16812 PR tree-optimization/PR48484
16813 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
16814 has_valid_pred lazily
16815
b365495a
DS
168162011-04-09 Duncan Sands <baldrick@free.fr>
16817
16818 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
16819
68bc509a
EB
168202011-04-08 Eric Botcazou <ebotcazou@adacore.com>
16821
16822 * combine.c (combine_validate_cost): Adjust comments. Set registered
16823 cost of I0 to zero at the end, if any.
16824
041e059f
XDL
168252011-04-08 Xinliang David Li <davidxl@google.com>
16826
68bc509a
EB
16827 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
16828 to insane profile data.
041e059f 16829
444b3995
XDL
168302011-04-08 Xinliang David Li <davidxl@google.com>
16831
16832 * ipa-cp.c (ipcp_update_profiling): Correct
16833 negative scale factor due to insane profile data.
16834
6a801cf2
XDL
168352011-04-08 Xinliang David Li <davidxl@google.com>
16836
16837 * final.c (dump_basic_block_info): New function.
16838 (final): Dump basic block.
16839 (final_scan_insn): Remove old dump.
16840
d5f3624e
SK
168412011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
16842
68bc509a
EB
16843 PR target/47829
16844 * config.gcc (i386-*-freebsd): Disable unwind table generation for
16845 crtbegin/crtend.
d5f3624e 16846
42821aff
MM
168472011-04-08 Michael Matz <matz@suse.de>
16848
16849 PR middle-end/48389
16850 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
16851 functions.
16852 (rebuild_jump_labels): Call rebuild_jump_labels_1.
16853 * rtl.h (rebuild_jump_labels_chain): Declare.
16854 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
16855 insns inserted on edges.
16856
ad7be009
JM
168572011-04-08 Joseph Myers <joseph@codesourcery.com>
16858
16859 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
16860 * config/arm/arm-arches.def: New.
16861 * config/arm/arm-opts.h: New.
16862 * config/arm/genopt.sh: New.
16863 * config/arm/arm-tables.opt: New (generated).
16864 * config/arm/arm.c (arm_handle_option, arm_target_help,
16865 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
16866 (all_architectures): Get most table contents from arm-arches.def.
16867 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
16868 arm_selected_tune here.
16869 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
16870 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
16871 (march=, mcpu=, mtune=): Use Enum and Var.
16872 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
16873 (arm.o): Update dependencies.
ecbb6fb7 16874
42821aff 168752011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
16876
16877 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
16878 of header_file.
16879 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
16880 (write_typed_alloc_defns): Likewise.
16881 (main): Calls write_typed_alloc_defns with output_header.
16882
8d189b3f
VM
168832011-04-08 Vladimir Makarov <vmakarov@redhat.com>
16884
68bc509a 16885 PR inline-asm/48435
8d189b3f
VM
16886 * ira-color.c (setup_profitable_hard_regs): Add comments.
16887 Don't take prohibited hard regs into account.
16888 (setup_conflict_profitable_regs): Rename to
16889 get_conflict_profitable_regs.
16890 (check_hard_reg_p): Check prohibited hard regs.
16891
44f370bf
NF
168922011-04-08 Nathan Froyd <froydnj@codesourcery.com>
16893
16894 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
16895 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
16896 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
16897
483d7ad3
JDA
168982011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16899
16900 PR target/48366
16901 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 16902 move from floating point to shift amount register.
483d7ad3
JDA
16903 (emit_move_sequence): Remove secondary reload support for floating
16904 point to shift amount amount register copies.
16905 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
16906 amount register copies.
16907 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
16908 register, return false if mode isn't a scalar integer mode.
16909 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
16910
97e03fa1
RG
169112011-04-08 Richard Guenther <rguenther@suse.de>
16912
16913 * gimple.c (gimple_call_flags): Remove kludge.
16914
9d40778b
AM
169152011-04-08 Alexander Monakov <amonakov@ispras.ru>
16916
16917 * sel-sched.c (sel_region_init): Move call to
16918 sel_setup_region_sched_flags after setup_current_loop_nest.
16919
19ac7892
AB
169202011-04-08 Andrey Belevantsev <abel@ispras.ru>
16921
16922 PR rtl-optimization/48272
19ac7892
AB
16923 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
16924 init_insn_reg_pressure_info. Adjust a caller.
16925 * sched-int.h (init_insn_reg_pressure_info): Declare.
16926 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
16927 when sched-pressure is enabled.
16928
0f8c63cc
RG
169292011-04-08 Richard Guenther <rguenther@suse.de>
16930
16931 * gimple.c (gimple_set_modified): Do not queue calls to
16932 MODIFIED_NORETURN_CALLS here ...
16933 * tree-ssa-operands.c (update_stmt_operands): ... but here.
16934
5e5a425e
RG
169352011-04-08 Richard Guenther <rguenther@suse.de>
16936
16937 PR lto/48467
16938 * toplev.c (lang_dependent_init): Do not open asm_out_file
16939 in WPA mode, nor perform debug machinery initialization.
16940 (finalize): Do not unlink asm_out_file in WPA mode.
16941
9bfc434b
RG
169422011-04-08 Richard Guenther <rguenther@suse.de>
16943
16944 * gimple.h (gimple_call_fntype): New function.
16945 (gimple_call_return_type): Use it.
16946 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
16947 * gimple-low.c (gimple_check_call_args): Likewise.
16948 * gimple.c (gimple_call_flags): Likewise.
16949 (gimple_call_arg_flags): Likewise.
16950 (gimple_call_return_flags): Likewise.
16951 * tree-cfg.c (verify_gimple_call): Likewise.
16952 (do_warn_unused_result): Likewise.
16953 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
16954 * value-prof.c (gimple_ic_transform): Fix fndecl check.
16955
7c1f0b40
DM
169562011-04-08 Dmitry Melnik <dm@ispras.ru>
16957
16958 PR rtl-optimization/48235
16959 * sel-sched.c (code_motion_process_successors): Recompute the last
16960 insn in basic block if control flow changed.
16961 (code_motion_path_driver): Ditto. Recompute the first insn as well.
16962 Update condition for ilist_remove.
16963
ea4d630f
AM
169642011-04-08 Alexander Monakov <amonakov@ispras.ru>
16965
16966 PR rtl-optimization/48302
16967 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
16968 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
16969 it to record added preheader blocks.
16970 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
16971 on to sel_add_loop_preheaders.
16972 (sel_region_init): Move call to setup_current_loop_nest after
16973 sel_init_bbs.
16974
07643d76
AM
169752011-04-08 Alexander Monakov <amonakov@ispras.ru>
16976
16977 PR target/48273
16978 * cfgloop.h (loop_has_exit_edges): New helper.
16979 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
16980 non-clonable.
16981 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
16982 that have no exit edges.
16983
1f3b2b4e
AM
169842011-04-08 Alexander Monakov <amonakov@ispras.ru>
16985
16986 PR rtl-optimization/48442
16987 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
16988 all callers. Adjust assert.
16989
554f1948
JJ
169902011-04-08 Jakub Jelinek <jakub@redhat.com>
16991
16992 PR tree-optimization/48377
16993 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
16994 is_packed to true even for types with smaller TYPE_ALIGN than
16995 TYPE_SIZE.
16996
ddf72388
RG
169972011-04-08 Richard Guenther <rguenther@suse.de>
16998
16999 PR bootstrap/48513
17000 * doc/tm.texi: Re-generate.
17001
0c27e2d8
WG
170022011-04-08 Wei Guozhi <carrot@google.com>
17003
17004 PR target/47855
17005 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
17006 * config/arm/arm.c (arm_attr_length_push_multi): New function.
17007 * config/arm/arm.md (*push_multi): Change the length computation to
17008 call a C function.
17009
07c5f94e
AS
170102011-04-08 Anatoly Sokolov <aesok@post.ru>
17011
17012 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
17013 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
17014 * doc/tm.texi: Regenerate.
17015 * system.h (ASM_OUTPUT_BSS): Poison.
17016 * varasm.c (asm_output_bss): Remove function.
17017 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 17018
07c5f94e
AS
17019 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
17020 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
17021 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
17022 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17023 Likewise.
17024 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17025 Likewise.
17026 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17027 Likewise.
17028 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
17029
5f2c36e1
JM
170302011-04-07 Joseph Myers <joseph@codesourcery.com>
17031
17032 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
17033 EnumValue lines.
17034
39e7722b
JM
170352011-04-07 Joseph Myers <joseph@codesourcery.com>
17036
17037 * config/m68k/m68k.c (m68k_handle_option): Don't handle
17038 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
17039 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
17040 OPT_mcpu32.
17041 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
17042 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
17043 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
17044 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
17045 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
17046 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
17047 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
17048 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
17049 options. Don't map other m68k options manually. Don't handle
17050 old-style options as canonical.
17051 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 17052 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 17053
cf103ca4
EB
170542011-04-07 Eric Botcazou <ebotcazou@adacore.com>
17055
17056 * basic-block.h (force_nonfallthru): Move to...
17057 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
17058 (force_nonfallthru): ...here.
17059 * cfghooks.c (force_nonfallthru): New function.
17060 * cfgrtl.c (force_nonfallthru): Rename into...
17061 (rtl_force_nonfallthru): ...this.
17062 (commit_one_edge_insertion): Do not set AUX field.
17063 (commit_edge_insertions): Do not discover new basic blocks.
17064 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
17065 (cfg_layout_rtl_cfg_hooks): Likewise.
17066 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
17067 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
17068 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
17069
14431f58
AS
170702011-04-07 Anatoly Sokolov <aesok@post.ru>
17071
17072 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
17073 Remove macros.
17074
3729983c
UB
170752011-04-07 Uros Bizjak <ubizjak@gmail.com>
17076
17077 * config/i386/sse.md: Update copyright year.
17078 (avxcvtvecmode): Remove.
17079 (sse_movhlps): Merge with *avx_movhlps.
17080 (sse_movlhps): Merge with *avx_movlhps.
17081 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
17082 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
17083 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
17084 (sse_loadhps): Merge with *avx_loadhps.
17085 (sse_storelps): Merge with *avx_storelps.
17086 (sse_loadlps): Merge with *avx_loadlps.
17087 (sse_movss): Merge with *avx_movss.
17088 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
17089 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
17090 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
17091 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
17092 (vec_set<mode>_0): Ditto.
17093 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
17094 (sse4_1_insertps): Merge with *avx_insertps.
17095 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
17096 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
17097 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
17098 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
17099 (sse2_storehpd): Merge with *avx_storehpd.
17100 (sse2_loadhpd): Merge with *avx_loadhpd.
17101 (sse2_loadlpd): Merge with *avx_loadlpd.
17102 (sse2_movsd): Merge with *avx_movsd.
17103 (*vec_concatv2df): Merge with *vec_concatv2df.
17104
4e626909
JJ
171052011-04-07 Jakub Jelinek <jakub@redhat.com>
17106
17107 PR debug/48343
17108 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 17109 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
17110 (try_combine): Add last_combined_insn parameter, pass it instead of
17111 i3 to propagate_for_debug.
17112
3729983c 171132011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
17114
17115 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
17116 to handle MDR <-> data register transfers.
17117 (movhi_internal): Likewise.
17118
20c03367
AM
171192011-04-07 Alan Modra <amodra@gmail.com>
17120
17121 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
17122 previous stack info.
17123
bf22920b
TV
171242011-04-07 Tom de Vries <tom@codesourcery.com>
17125
17126 PR target/43920
17127 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
17128 flow_find_cross_jump. Swap variables to implement backward replacement.
17129 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
17130
823918ae
TV
171312011-04-07 Tom de Vries <tom@codesourcery.com>
17132
17133 PR target/43920
17134 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
17135 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
17136 and bb2.
17137 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
17138 src1 or src2. Redirect edges to the last basic block. Update
17139 frequency and count on multiple basic blocks in case of fallthru.
823918ae 17140
472c95f5
TV
171412011-04-07 Tom de Vries <tom@codesourcery.com>
17142
17143 PR target/43920
17144 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
17145 function.
3729983c
UB
17146 (old_insns_match_p): Change return type. Replace return false/true
17147 with return dir_none/dir_both. Use can_replace_by.
17148 (flow_find_cross_jump): Add dir_p parameter. Init replacement
17149 direction from dir_p. Register replacement direction in dir, last_dir
17150 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
17151 merge_dir. Return replacement direction in dir_p.
17152 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
17153 return type of old_insns_match_p.
17154 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
17155 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
17156 flow_find_cross_jump.
17157 * basic-block.h (enum replace_direction): New type.
17158 (flow_find_cross_jump): Add parameter to declaration.
17159
a95d4000
UB
171602011-04-06 Uros Bizjak <ubizjak@gmail.com>
17161
17162 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
17163 (AVXMODEDCVTPS2DQ): Ditto.
17164 (VEC_FLOAT_MODE): Ditto.
17165 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
17166 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
17167 (<any_logic:code><mode>3): Use VF mode iterator.
17168 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
17169 Use VF mode iterator.
17170 (copysign<mode>3): Use VF mode iterator.
17171 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
17172 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
17173 (*<any_logic:code><MODEF:mode>3): Merge with
17174 *avx_<any_logic:code><MODEF:mode>3.
17175 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
17176 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
17177 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
17178 (avx_cvtdq2ps<avxmodesuffix>): Remove.
17179 (sse2_cvtdq2ps): Use %v modifier.
17180 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
17181 (avx_cvtps2dq<avxmodesuffix>): Remove.
17182 (sse2_cvtps2dq): Use %v modifier.
17183 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
17184 (avx_cvttps2dq<avxmodesuffix>): Remove.
17185 (sse2_cvttps2dq): Use %v modifier.
17186 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
17187 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
17188 (sse2_cvtsd2siq): Fix insn template.
17189 (sse2_cvtsd2siq_2): Ditto.
17190 (sse2_cvttsd2siq): Ditto.
17191 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
17192 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
17193
ad01c437
JM
171942011-04-06 Joseph Myers <joseph@codesourcery.com>
17195
17196 * gcov-io.c: Use GCC Runtime Library Exception.
17197
fe846284
JJ
171982011-04-06 Jakub Jelinek <jakub@redhat.com>
17199
17200 PR debug/48466
17201 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
17202 as base_reg whatever register reg has been eliminated to, instead
17203 of hardcoding STACK_POINTER_REGNUM.
17204
acce4e77
JM
172052011-04-06 Joseph Myers <joseph@codesourcery.com>
17206
17207 * doc/tm.texi.in: Document C target hooks as separate from general
17208 target hooks.
17209 * doc/tm.texi: Regenerate.
17210 * genhooks.c (struct hook_desc): Add docname field.
17211 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
17212 docname field.
17213 (hook_array): Include c-target.def.
17214 (emit_documentation): Use docname field in output.
17215 (emit_init_macros): Take docname argument. Only emit definitions
17216 for hooks matching docname.
17217 (main): Expect additional arguments in all cases. Pass argument
17218 to emit_init_macros.
17219 * target.def: Move initial macro definitions and comments to
17220 target-hooks-macros.h.
17221 (gcc_targetcm): Move to c-family/c-target.def.
17222 * target.h (targetcm): Move declaration to c-family/c-target.h.
17223 * targhooks.c (default_handle_c_option): Move to
17224 c-family/c-opts.c.
17225 * targhooks.h (default_handle_c_option): Move declaration to
17226 c-family/c-common.h.
17227 * target-hooks-macros.h: New file.
17228 * config.gcc (target_has_targetcm): Define and use to add to
17229 c_target_objs and cxx_target_objs.
17230 * config/default-c.c: New file.
17231 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
17232 of target.h and target-def.h.
17233 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
17234 (darwin_objc_construct_string, darwin_cfstring_ref_p,
17235 darwin_check_cfstring_format_arg): Make static.
17236 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
17237 TARGET_STRING_OBJECT_REF_TYPE_P,
17238 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
17239 * config/darwin-protos.h (darwin_objc_construct_string,
17240 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
17241 declare.
17242 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
17243 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 17244 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
17245 * config/t-darwin (darwin-c.o): Update dependencies.
17246 * system.h (TARGET_HAS_TARGETCM): Poison.
17247 * Makefile.in (TARGET_H): Update.
17248 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
17249 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
17250 (default-c.o): New target.
17251 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 17252 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
17253 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
17254 c-target.def.
17255 (build/genhooks.o): Update dependencies.
17256
275b4baa 172572011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 17258
275b4baa
RG
17259 * ipa-inline.c (enum inlining_mode): Remove.
17260 (cgraph_flatten): Use some other token.
17261 (cgraph_edge_early_inlinable_p): New function, split out from ...
17262 (cgraph_perform_always_inlining): New function, split out from ...
17263 (cgraph_decide_inlining_incrementally): ... here.
17264 (cgraph_mark_inline_edge): Adjust.
17265 (cgraph_early_inlining): Re-structure.
17266 (pass_early_inline): Require SSA form.
17267
f15b8bdf 172682011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
17269 Julian Brown <julian@codesourcery.com>
17270 Mark Shinwell <shinwell@codesourcery.com>
17271
17272 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
17273 LO_REGS only for Thumb-1.
17274 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
17275 be used in short instructions when optimising for size on Thumb-2.
17276
516426da
EB
172772011-04-06 Eric Botcazou <ebotcazou@adacore.com>
17278
17279 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
17280 associated with user returns to be preserved.
17281
96621ebf
TG
172822011-04-06 Tristan Gingold <gingold@adacore.com>
17283
f15b8bdf
EB
17284 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
17285 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
17286 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
17287 if XCOFF_DEBUGGING_INFO.
17288
07c0852e
UB
172892011-04-06 Uros Bizjak <ubizjak@gmail.com>
17290
17291 * config/i386/i386.md (attribute isa): New.
17292 (attribute enabled): New.
17293 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
17294 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
17295 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
17296 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
17297 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
17298 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17299 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
17300 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
17301
17302 * config/i386/sse.md (VF): New mode iterator.
17303 (VF1): Ditto.
17304 (VF2): Ditto.
17305 (VF_128): Ditto.
17306 (SSEMODEF4): Remove.
17307 (attribute sse): Handle V8SF and V4DF modes.
17308 (<absneg:code><mode>2): Use VF mode iterator.
17309 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
17310 mode iterator.
17311 (<plusminus_insn><mode>3): Use VF mode iterator.
17312 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
17313 Use VF mode iterator.
17314 (<sse>_vm<plusminus_insn><mode>3): Merge with
17315 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
17316 (mul<mode>3): Use VF mode iterator.
17317 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
17318 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
17319 mode iterator.
17320 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
17321 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
17322 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
17323 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
17324 mode iterator.
17325 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
17326 Use VF1 mode iterator.
17327 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
17328 (sqrt<VF2:mode>2): New expander.
17329 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
17330 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
17331 and sqrtv2df2. Use VF mode iterator.
17332 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
17333 mode iterator.
17334 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
17335 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
17336 Use VF1 mode iterator.
17337 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
17338 (<smaxmin:code><mode>3): Use VF mode iterator.
17339 (*<smaxmin:code><mode>3_finite): Merge with
17340 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
17341 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17342 (<sse>_vm<smaxmin:code><mode>2): Merge with
17343 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
17344 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
17345 mode iterator.
17346 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
17347 mode iterator.
17348 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
17349 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
17350 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
17351 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
17352 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
17353 VF mode iterator.
17354 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
17355 Use VF_128 mode iterator.
17356 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
17357 mode iterator.
17358 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
17359 VF_128 mode iterator.
17360 (vcond<mode>): Use VF mode iterator.
17361 * config/i386/predicates.md (sse_comparison_operator): Merge with
17362 avx_comparison_float_operator. Do not declare as special_predicate.
17363 * config/i386/i386.c (struct builtin_description): Update for renamed
17364 compare patterns.
17365 (ix86_expand_args_builtin): Ditto.
17366 (ix86_expand_sse_compare_mask): Ditto.
17367
ff5d142c
RG
173682011-04-06 Richard Guenther <rguenther@suse.de>
17369
17370 * tree-inline.c (estimate_num_insns): For calls simply account
17371 for all passed arguments and a used return value.
17372
d7d1d041 173732011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 17374
d7d1d041
RG
17375 PR tree-optimization/47663
17376 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
17377 call_stmt_time fields.
17378 (cgraph_edge_inlinable_p): Declare.
17379 (cgraph_edge_recursive_p): New inline function.
17380 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
17381 (cgraph_clone_edge): Copy it.
17382 * ipa-inline.c (cgraph_estimate_edge_time): New function.
17383 Account for call stmt time.
17384 (cgraph_estimate_time_after_inlining): Take edge argument.
17385 (cgraph_estimate_edge_growth): Account call stmt size.
17386 (cgraph_estimate_size_after_inlining): Take edge argument.
17387 (cgraph_mark_inline_edge): Adjust.
17388 (cgraph_check_inline_limits): Likewise.
17389 (cgraph_recursive_inlining_p): Remove.
17390 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
17391 (cgraph_decide_recursive_inlining): Take edge argument and
17392 adjust.
17393 (cgraph_decide_inlining_of_small_functions): Do not avoid
17394 diags for recursive inlining here.
17395 (cgraph_flatten): Adjust.
17396 (cgraph_decide_inlining_incrementally): Likewise.
17397 (estimate_function_body_sizes): Remove call cost handling.
17398 (compute_inline_parameters): Initialize caller edge call costs.
17399 (cgraph_estimate_edge_growth): New function.
17400 (cgraph_estimate_growth): Use it.
17401 (cgraph_edge_badness): Likewise.
17402 (cgraph_check_inline_limits): Take an edge argument.
17403 (cgraph_decide_inlining_of_small_functions): Adjust.
17404 (cgraph_decide_inlining): Likewise.
17405 * tree-inline.c (estimate_num_insns): Only account for call
17406 return value if it is used.
17407 (expand_call_inline): Avoid diagnostics on recursive inline
17408 functions here.
17409 * lto-cgraph.c (lto_output_edge): Output edge call costs.
17410 (input_edge): Input edge call costs.
17411
2feb95f7
RO
174122011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17413
17414 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
17415
26fbd9c2
JW
174162011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
17417
17418 * doc/invoke.texi (Spec Files): Fix typo.
17419
694dc0ca
EB
174202011-04-06 Eric Botcazou <ebotcazou@adacore.com>
17421
17422 * profile.c (branch_prob): Move declaration of local variable. Remove
17423 obsolete ??? comment. Expand the location explicitly instead of using
17424 the LOCATION_FILE and LOCATION_LINE macros.
17425
4925d0d5
WG
174262011-04-06 Wei Guozhi <carrot@google.com>
17427
17428 PR target/47855
17429 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
17430 (arm_cond_branch): Likewise.
17431 (arm_cond_branch_reversed): Likewise.
17432 (arm_jump): Likewise.
17433 (push_multi): Likewise.
17434 * config/arm/constraints.md (Py): New constraint.
17435
f55dfa2f
NF
174362011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17437
17438 PR bootstrap/48471
17439 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
17440 Move these...
17441 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
17442 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
17443 #ifdef DBX_DEBUGGING_INFO.
17444
fca96842
BS
174452011-04-05 Bernd Schmidt <bernds@codesourcery.com>
17446
17447 PR bootstrap/48403
17448 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
17449 if old and new states differ.
17450
30b83e38
JM
174512011-04-05 Joseph Myers <joseph@codesourcery.com>
17452
17453 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
17454 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
17455 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
17456 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
17457 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
17458 mcfv4e): Use Alias.
17459 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
17460 ColdFire options to -mcpu= options.
17461
277a9aa5
JL
174622011-04-05 Jeff Law <law@redhat.com>
17463
17464 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
17465 check if BB is a successor of LOOP->header and return
17466 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
17467
c1e2610e
SB
174682011-04-05 Steven Bosscher <steven@gcc.gnu.org>
17469
17470 * cprop.c (struct reg_use): Remove.
17471 (reg_use_table): Make an array of RTX.
17472 (find_used_regs, constprop_register, local_cprop_pass,
17473 bypass_block): Simplify users of reg_use_table.
17474 (cprop_insn): Likewise. Iterate if copy propagation succeeded
17475 on one of the uses found by find_used_regs.
17476
e532f586
NF
174772011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17478
17479 PR bootstrap/48469
17480 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
17481 declaration.
17482
3fb7c055
NF
174832011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17484
17485 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
17486 as an rtx.
17487 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
17488
b71b43d9
SB
174892011-04-05 Steven Bosscher <steven@gcc.gnu.org>
17490
17491 PR middle-end/48441
17492 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
17493
b405b274
NF
174942011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17495
17496 * combine.c: Include obstack.h.
17497 (struct insn_link): Define.
17498 (uid_log_links): Adjust type.
17499 (FOR_EACH_LOG_LINK): New macro.
17500 (insn_link_obstack): Declare.
17501 (alloc_insn_link): Define.
17502 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
17503 type of link variables.
17504 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
17505 (try_combine, record_promoted_values, distribute_notes): Likewise.
17506 (distribute_links): Likewise. Tweak prototype.
17507 (clear_log_links): Delete.
17508 (adjust_for_new_dest): Call alloc_insn_link.
17509 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
17510
6409abe3
NF
175112011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17512
17513 * gcse.c (modify_mem_list): Convert to an array of VECs.
17514 (canon_modify_mem_list, compute_transp): Tweak formatting.
17515 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
17516 (load_killed_in_block_p): Likewise.
17517 (record_last_mem_set_info): Likewise.
17518 (clear_modify_mem_tables): Likewise.
17519
170d8157
TV
175202011-04-05 Tom de Vries <tom@codesourcery.com>
17521
17522 PR middle-end/48461
17523 * function.c (emit_use_return_register_into_block): Only define if
17524 HAVE_return.
17525
c5911a55
EB
175262011-04-05 Eric Botcazou <ebotcazou@adacore.com>
17527
17528 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
17529
abd016e6
JM
175302011-04-05 Joseph Myers <joseph@codesourcery.com>
17531
17532 * config/rx/rx-opts.h: New.
17533 * config/rx/rx.c (rx_cpu_type): Remove.
17534 (rx_handle_option): Don't assert that global structures are in
17535 use. Access variables via opts pointer. Defer most handling of
17536 OPT_mint_register_. Use error_at.
17537 (rx_option_override): Handle deferred OPT_mint_register_ here.
17538 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
17539 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
17540 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
17541 (rx_cpu_types): New Enum and EnumValue entries.
17542 (mint-register=): Use Defer and use Var accordingly.
17543
1ed13f83
NF
175442011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17545
17546 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
17547 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
17548 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
17549 Move these...
17550 (debug_free_queue, debug_nesting, symbol_queue_index):
17551 ...and these...
17552 * dbxout.c: ...to here. Make static.
17553
6ce1edcf
NF
175542011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17555
17556 * gcse.c (modify_pair): Define. Define a VEC of it.
17557 (canon_modify_mem_list): Convert to an array of VECs.
17558 (free_insn_expr_list_list): Delete.
17559 (clear_modify_mem_tables): Call VEC_free instead.
17560 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
17561 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
17562 (canon_list_insert, compute_transp): Likewise.
17563
c201ac94
TV
175642011-04-05 Tom de Vries <tom@codesourcery.com>
17565
17566 PR target/43920
17567 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
17568 for size.
17569
4c029f40
TV
175702011-04-05 Tom de Vries <tom@codesourcery.com>
17571
17572 PR target/43920
17573 * function.c (emit_use_return_register_into_block): New function.
17574 (thread_prologue_and_epilogue_insns): Use
17575 emit_use_return_register_into_block.
17576
2a562b0a
TV
175772011-04-05 Tom de Vries <tom@codesourcery.com>
17578
17579 PR target/43920
17580 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
17581 insn.
17582
0248bceb
TV
175832011-04-05 Tom de Vries <tom@codesourcery.com>
17584
17585 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
17586
ffa94123
YZ
175872011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
17588
798dd0ba
UB
17589 * config/arm/arm.md (define_constants for unspec): Replace with
17590 define_c_enum.
17591 (define_constants for unspecv): Replace with define_c_enum.
17592 * config/arm/neon.md (define_constants for unspec): Replace with
17593 define_c_enum.
ffa94123 17594
3b8f9b46
RH
175952011-04-04 Richard Henderson <rth@redhat.com>
17596
720cf80f 17597 PR bootstrap/48400
3b8f9b46
RH
17598 * dwarf2out.c (output_line_info): Always emit line info from
17599 at least one section.
17600 (dwarf2out_init): Create text_section_line_info here ...
17601 (set_cur_line_info_table): ... not here.
17602
720cf80f 176032011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
17604
17605 PR target/48380
17606 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 17607 not called.
e5b0e1ca 17608
720cf80f 17609 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 17610
196565d4
SB
176112011-04-04 Steven Bosscher <steven@gcc.gnu.org>
17612
b77f9eab
SB
17613 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
17614 (expr_equiv_p): Remove.
17615 (insert_set_in_table): Look at <dest, src> pair instead of expr.
17616 (hash_scan_set): Update call to insert_set_in_table.
17617 (dump_hash_table): Dump <dest, src> pair.
17618 (lookup_set): Simplify. Lookup <dest, src> pair.
17619 (compute_transp): Remove, fold heavily simplified code into...
17620 (compute_local_properties): ...here. Expect COMP and TRANSP
17621 unconditionally.
17622 (find_avail_set): Take set directly from struct expr.
17623 (find_bypass-set): Likewise.
17624 (bypass_block): Likewise.
17625 (cprop_insn): Likewise. Remove redundant INSN_P test.
17626
384d7a55
SB
17627 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
17628 checks on form of COND from find_implicit_sets to here.
17629 (find_implicit_sets): Cleanup control flow. Split critical edges
17630 if it exposes implicit sets. Allocate/resize implicit_sets as
17631 necessary.
17632 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
17633 changed something. Run df_analyze after find_implicit_sets if any
17634 edges were split. Do not allocate implicit_sets here.
17635
3084ce69
SB
17636 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
17637 (gcse_obstack): Renamed to cprop_obstack.
17638 (GNEW, GNEWVEC, GNEWVAR): Remove.
17639 (gmalloc): Remove.
17640 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
17641 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
17642 (gcse_alloc): Likewise, and rename to cprop_alloc.
17643 (alloc_gcse_men, free_gcse_mem): Remove.
17644 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
17645 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
17646 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
17647
196565d4
SB
17648 * cprop.c (oprs_not_set_p): Remove.
17649 (mark_set, mark_clobber): Remove.
17650 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
17651 (reg_not_set_p): New function.
17652 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
17653 (cprop_insn): Likewise.
17654 (cprop_jump): Use FOR_EACH_EDGE.
17655
9b69cf83
BS
176562011-04-04 Bernd Schmidt <bernds@codesourcery.com>
17657
17658 PR bootstrap/48403
17659 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
17660 (rank_for_schedule): Use scheduled_insns vector instead of
17661 last_scheduled_insn.
17662 (ok_for_early_queue_removal): Likewise.
17663 (queue_to_ready): Search forward in nonscheduled_insns_begin if
17664 we have a dbg_cnt.
17665 (choose_ready): Likewise.
17666 (commit_schedule): Use VEC_iterate.
17667 (schedule_block): Initialize nonscheduled_insns_begin. If we have
17668 a dbg_cnt, use it and ensure the first insn is in the ready list.
17669 (haifa_sched_init): Allocate scheduled_insns.
17670 (sched_extend_ready_list): Don't allocate it; reserve space.
17671 (haifa_sched_finish): Free it.
17672
24f48c2f
JM
176732011-04-04 Joseph Myers <joseph@codesourcery.com>
17674
17675 * optc-gen.awk: Always remove type from Variable entry before
17676 recording in var_seen.
17677
8effe856
EB
176782011-04-04 Eric Botcazou <ebotcazou@adacore.com>
17679
17680 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
17681 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
17682 call to tidy_fallthru_edges.
17683
413519ae
JM
176842011-04-04 Joseph Myers <joseph@codesourcery.com>
17685
17686 * doc/options.texi (ToLower): Document.
3729983c 17687 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
17688 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
17689 * opts.h (cl_option): Add cl_tolower field.
17690 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
17691 arguments with lowercase strings.
17692 * config/rx/rx.opt (mcpu=): Add ToLower.
17693 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
17694 argument.
17695
7d34a1b0
RS
176962011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
17697
17698 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
17699
c30e7434
RS
177002011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
17701
17702 * config/vax/vax.c: Include reload.h.
17703
112a861d
AS
177042011-04-04 Anatoly Sokolov <aesok@post.ru>
17705
17706 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
17707 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17708 (sparc_preferred_reload_class): New function.
17709
e8c6bb74
JJ
177102011-04-04 Jakub Jelinek <jakub@redhat.com>
17711
2aeaa366 17712 PR debug/48401
e8c6bb74
JJ
17713 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
17714 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
17715
2c081caf
NF
177162011-04-03 Nathan Froyd <froydnj@codesourcery.com>
17717
17718 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
17719 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
17720
53802f27
AS
177212011-04-03 Anatoly Sokolov <aesok@post.ru>
17722
17723 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
17724 (ASM_OUTPUT_ALIGNED_BSS): Define.
17725
e89964e3
MM
177262011-04-03 Michael Matz <matz@suse.de>
17727
17728 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
17729 and next_slot members.
17730 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
17731 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
17732 (lto_streamer_cache_append): Declare.
17733 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
17734 unsigned index, remove offset parameter, ensure that we append
17735 or update existing entries.
17736 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
17737 parameter, update next_slot for append.
17738 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
17739 parameter.
17740 (lto_streamer_cache_insert_at): Likewise.
17741 (lto_streamer_cache_append): New function.
17742 (lto_streamer_cache_lookup): Use unsigned index.
17743 (lto_streamer_cache_get): Likewise.
17744 (lto_record_common_node): Don't test tree_node_can_be_shared.
17745 (preload_common_node): Adjust call to lto_streamer_cache_insert.
17746 (lto_streamer_cache_delete): Don't free offsets member.
17747 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
17748 (lto_output_string_with_length): Use lto_output_data_stream.
17749 (lto_output_tree_header): Remove ix parameter, don't write it.
17750 (lto_output_builtin_tree): Likewise.
17751 (lto_write_tree): Adjust callers to above, don't track and write
17752 offset, write unsigned index.
17753 (output_unreferenced_globals): Don't emit all global vars.
17754 (write_global_references): Use unsigned indices.
17755 (lto_output_decl_state_refs): Likewise.
17756 (write_symbol): Likewise.
17757 * lto-streamer-in.c (lto_input_chain): Move earlier.
17758 (input_function): Use unsigned index.
17759 (input_alias_pairs): Don't read and then ignore all global vars.
17760 (lto_materialize_tree): Remove ix_p parameter, don't read index,
17761 don't pass it back, use lto_streamer_cache_append.
17762 (lto_register_var_decl_in_symtab): Use unsigned index.
17763 (lto_register_function_decl_in_symtab): Likewise.
17764 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
17765 index.
17766 (lto_get_builtin_tree): Don't read index, use
17767 lto_streamer_cache_append.
17768 (lto_read_tree): Adjust call to lto_materialize_tree.
17769
17770 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
17771 don't use function calls in arguments to MIN.
17772
17773 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
17774 twice.
17775
17776 * gimple.c (gimple_type_leader_entry): Mark deletable.
17777
b9a5b5b2
AM
177782011-04-03 Alan Modra <amodra@gmail.com>
17779
17780 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
17781
ac6a641b
MM
177822011-04-03 Michael Matz <matz@suse.de>
17783
17784 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
17785 an integer.
17786 * tree.h (tree_decl_non_common.vindex): Adjust comment.
17787
0038d4e0
MM
177882011-04-03 Michael Matz <matz@suse.de>
17789
e9c18386 17790 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
17791 * gimple-fold.c (canonicalize_constructor_val): Accept being called
17792 without function context.
17793 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
17794 current_function_decl and cfun.
17795
91f2fae8
MM
177962011-04-03 Michael Matz <matz@suse.de>
17797
17798 * tree.c (decl_init_priority_insert): Don't create entry for
17799 default priority.
17800 (decl_fini_priority_insert): Ditto.
17801 (fields_compatible_p, find_compatible_field): Remove.
17802 * tree.h (fields_compatible_p, find_compatible_field): Remove.
17803 * gimple.c (gimple_compare_field_offset): Adjust block comment.
17804
da29e070
EB
178052011-04-03 Eric Botcazou <ebotcazou@adacore.com>
17806
17807 * combine.c (try_combine): Remove useless local variable.
17808
4979c28b 178092011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 17810 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
17811
17812 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
17813 non-variable offsets and compare the remaining bases of the two
17814 accesses instead of looking for exact same data-ref.
17815
b4ddcaee
KT
178162011-04-02 Kai Tietz <ktietz@redhat.com>
17817
f90298e1
KT
17818 PR target/48416
17819 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
17820
b4ddcaee
KT
17821 * i386.c (ix86_is_msabi_thiscall): New helper function.
17822 (ix86_is_type_thiscall): New helper function.
17823 (ix86_comp_type_attributes): Handle thiscall for method-functions
17824 special.
17825 (init_cumulative_args): Likewise.
17826 (find_drap_reg): Likewise.
17827 (ix86_static_chain): Likewise.
17828 (x86_this_parameter): Likewise.
17829 (x86_output_mi_thunk): Likewise.
17830
2a9d769a 178312011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
17832 Nicolas Setton <setton@adacore.com>
17833 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
17834
17835 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
17836 (add_gnat_descriptive_type_attribute): New function.
17837 (gen_array_type_die): Call it.
17838 (gen_enumeration_type_die): Likewise.
17839 (gen_struct_or_union_type_die): Likewise.
17840 (modified_type_die): Likewise.
17841 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
17842 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
17843 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
17844
15a03a11
JJ
178452011-04-01 Jakub Jelinek <jakub@redhat.com>
17846
17847 PR bootstrap/48148
17848 * dwarf2out.c (resolve_addr): Don't call force_decl_die
17849 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
17850
17851 Revert:
17852 2011-03-17 Richard Guenther <rguenther@suse.de>
17853
17854 PR bootstrap/48148
17855 * lto-cgraph.c (input_overwrite_node): Clear the abstract
17856 origin for decls in other ltrans units.
17857 (input_varpool_node): Likewise.
17858
19228b93
JJ
178592011-04-01 Jakub Jelinek <jakub@redhat.com>
17860
17861 PR middle-end/48335
17862 * expr.c (expand_assignment): Handle all possibilities
17863 if TO_RTX is CONCAT.
e9c18386 17864 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
17865 (store_split_bit_field): If SUBREG_REG (op0) or
17866 op0 itself has smaller mode than word, return it
17867 for offset 0 and const0_rtx for out-of-bounds stores.
17868 If word is const0_rtx, skip it.
17869
88cb339e
N
178702011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
17871
17872 * config/h8300/h8300.c (print_operand_address): Rename to...
17873 (h8300_print_operand_address): ...this. Make static. Adjust comments.
17874 Call h8300_print_operand and h8300_print_operand_address instead of
17875 print_operand and print_operand_address. Declare.
17876 (print_operand): Renake to...
17877 (h8300_print_operand): ...this. Make static. Adjust comments.
17878 Call h8300_print_operand instead of print_operand. Declare.
17879 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
17880 (h8300_register_move_cost): Likewise.
17881 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
17882 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
17883 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
17884 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
17885 * config/h8300/h8300-protos.h (print_operand): Delete.
17886 (print_operand_address): Delete.
17887
756d6ee9
RH
178882011-04-01 Richard Henderson <rth@redhat.com>
17889
17890 PR 48400
17891 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
17892 in strict mode before dwarf4. Re-order tests to early out
17893 before switching sections.
17894
ceaaaeab
NF
178952011-04-01 Nathan Froyd <froydnj@codesourcery.com>
17896
17897 * config/h8300/constraints.md: New file.
17898 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
17899 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
17900 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
17901 * config/h8300/predicates.md (bit_operand): Likewise.
17902 (incdec_operand): Use satisfies_constraint_M and
17903 satisfies_constraint_O. Don't use C code block.
17904 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
17905 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
17906 (compute_mov_length): Use satisfies_constraint_G.
17907 (fix_bit_operand): Use satisfies_constraint_U.
17908 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
17909 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
17910 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
17911 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
17912 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
17913 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
17914 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17915 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
17916 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
17917 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
17918 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
17919 (EXTRA_MEMORY_CONSTRAINT): Delete.
17920
08ae38e0
AP
179212011-04-01 Andrew Pinski <pinskia@gmail.com>
17922 Michael Meissner <meissner@linux.vnet.ibm.com>
17923
17924 PR target/48262
17925 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
17926 operands, as per the specifications.
17927
17928 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
17929 (vec_extract_evenv4sf): Ditto.
17930 (vec_extract_evenv8hi): Ditto.
17931 (vec_extract_evenv16qi): Ditto.
17932 (vec_extract_oddv4si): Ditto.
17933
bdb0b0f6
MW
179342011-03-31 Mark Wielaard <mjw@redhat.com>
17935
17936 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
17937 high_pc attribute if the CU has no associated code. Only output
17938 DW_AT_entry_pc for CU if not generating strict dwarf and
17939 dwarf_version < 4.
17940
722279e4
BS
179412011-04-01 Bernd Schmidt <bernds@codesourcery.com>
17942
17943 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
17944 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
17945 out of ...
17946 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
17947 * final.c (final_start_function): Call the new function rather
17948 than using a NULL argument for dwarf2out_frame_debug.
17949
c5dd277d
BS
17950 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
17951 that contains the prologue.
17952
ec4efea9
BS
17953 * haifa-sched.c (queue_insn): New arg REASON. All callers
17954 changed. Print it in debugging output.
17955
2a6a0d80
BS
17956 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
17957
86014d07
BS
17958 * sched-ebb.c (begin_schedule_ready): Remove second argument.
17959 Split most of the code into...
17960 (begin_move_insn): ... here. New function.
17961 (ebb_sched_info): Add a pointer to it.
17962 * haifa-sched.c (scheduled_insns): New static variable.
17963 (sched_extend_ready_list): Allocate it.
17964 (schedule_block): Use it to record the order of scheduled insns.
17965 Perform RTL changes to move insns only after all scheduling
17966 decisions have been made.
17967 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
17968 begin_move_insn field.
17969 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
17970 * sched-int.h (struct haifa_sched_info): Remove second argument
17971 from begin_schedule_ready hook. Add new member begin_move_insn.
17972 * sched-rgn.c (begin_schedule_ready): Remove second argument.
17973 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
17974
9d701248
BS
17975 * haifa-sched.c (prune_ready_list): New function, broken out of
17976 schedule_block.
17977 (schedule_block): Use it.
17978
1ca1dad5
UW
179792011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17980
17981 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
17982
49568e45
KT
179832011-04-01 Kai Tietz <ktietz@redhat.com>
17984
17985 * config.gcc (*-*-mingw*): Allow as option the
17986 posix threading model.
07c0852e 17987 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
17988 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
17989 definition.
17990 (CPP_SPEC): Add pthread/no-pthread handling.
17991 (LIB_SPEC): Likewise.
17992 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
17993 (LIB_SPEC): Likewise.
17994 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
17995 flag to pass -pthread option for shared libgcc build.
17996 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
17997 for shared libgcc build.
17998 * config/i386/t-mingw-pthread: New file.
17999 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
18000 New define to enable use of library pthread by default.
18001 * config/i386/mingw.opt (pthread): New driver option.
18002 (no-pthread): New driver option.
e9c18386 18003 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
18004 * config/i386/mingw-w64.opt: Likewise.
18005
748f7574 180062011-04-01 Gary Funck <gary@intrepid.com>
636b4106
GF
18007
18008 * c-decl.c (grokdeclarator): Fix formatting.
18009
f04713ee
RS
180102011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18011
18012 * expr.c (emit_block_move_via_movmem): Use n_generator_args
18013 instead of n_operands.
18014 (set_storage_via_setmem): Likewise.
18015 * optabs.c (maybe_gen_insn): Likewise.
18016 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
18017 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
18018 (mips_expand_builtin_direct): Likewise.
18019 * config/spu/spu.c (expand_builtin_args): Likewise.
18020
b29387ee
RS
180212011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18022
18023 * recog.h (insn_data_d): Add n_generator_args.
18024 * genoutput.c (data): Likewise.
18025 (output_insn_data): Print it.
18026 (max_opno, num_dups): Delete.
18027 (scan_operands): Just fill in "d->operand[...]".
18028 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
18029
e792559a
RS
180302011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18031
18032 * gensupport.h (pattern_stats): New structure.
18033 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
18034 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
18035 (max_operand_1, max_operand_vec): Delete.
18036 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
18037
e8110d6f
NF
180382011-03-31 Nathan Froyd <froydnj@codesourcery.com>
18039
18040 * emit-rtl.c (emit_pattern_after_setloc): New function.
18041 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
18042 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
18043 (emit_pattern_after): New function.
18044 (emit_insn_after, emit_jump_insn_after): Call it.
18045 (emit_call_insn_after, emit_debug_insn_after): Likewise.
18046 (emit_pattern_before_setloc): New function.
18047 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
18048 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
18049 Likewise.
18050 (emit_pattern_before): New function.
18051 (emit_insn_before, emit_jump_insn_before): Call it.
18052 (emit_call_insn_before, emit_debug_insn_before): Likewise.
18053
576f85f1
RH
180542011-03-31 Richard Henderson <rth@redhat.com>
18055
18056 * dwarf2out.c (dw_separate_line_info_ref): Remove.
18057 (dw_separate_line_info_entry): Remove.
18058 (enum dw_line_info_opcode): New.
18059 (dw_line_info_entry): Use it.
18060 (dw_line_info_table, dw_line_info_table_p): New.
18061 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
18062 (line_info_table, line_info_label_num): Remove.
18063 (line_info_table_in_use): Remove.
18064 (separate_line_info_table): Remove.
18065 (separate_line_info_table_allocated): Remove.
18066 (separate_line_info_table_in_use): Remove.
18067 (LINE_INFO_TABLE_INCREMENT): Remove.
18068 (line_info_label_num): New.
18069 (cur_line_info_table): New.
18070 (text_section_line_info, cold_text_section_line_info): New.
18071 (separate_line_info): New.
18072 (SEPARATE_LINE_CODE_LABEL): Remove.
18073 (print_dwarf_line_table): Remove.
18074 (debug_dwarf): Don't dump it.
18075 (output_one_line_info_table): New.
18076 (output_line_info): Use it.
18077 (new_line_info_table): New.
18078 (set_cur_line_info_table): New.
18079 (dwarf2out_switch_text_section): Use it.
18080 (dwarf2out_begin_function): Likewise.
18081 (push_dw_line_info_entry): New.
18082 (dwarf2out_source_line): Rewrite for new line info tables.
18083 (dwarf2out_init): Remove dead initailizations.
18084
300d83d9
JM
180852011-03-31 Joseph Myers <joseph@codesourcery.com>
18086
18087 * opts.h (cl_option): Add comments to fields. Add bit-fields for
18088 various flags.
18089 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
18090 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
18091 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
18092 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
18093 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
18094 * opt-functions.awk (flag_init, switch_bit_fields): New.
18095 (switch_flags): Don't handle flags moved to bit-fields. Don't
18096 generate CL_MISSING_OK or CL_SAVE.
18097 * optc-gen.awk: Update to generate bit-field output as well as
18098 flags field.
18099 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
18100 bit-field instead of CL_REJECT_DRIVER flag.
18101 * opts-common.c (generate_canonical_option,
18102 decode_cmdline_option): Use bit-fields instead of CL_* flags.
18103 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
18104 instead of CL_REJECT_NEGATIVE flag.
18105 * toplev.c (print_switch_values): Use cl_report bit-field instead
18106 of CL_REPORT flag.
18107
d4d73ce2
EB
181082011-03-31 Eric Botcazou <ebotcazou@adacore.com>
18109
18110 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
18111 a zero minimum index only if it is redundant.
18112
b8faca75
VM
181132011-03-31 Vladimir Makarov <vmakarov@redhat.com>
18114
18115 PR rtl-optimization/48381
18116 * ira-color.c (assign_hard_reg): Use hard reg set intersection
18117 instead of ira_class_hard_reg_index for calculating conflicting
18118 hard registers.
18119
7d11cebe
SB
181202011-03-31 Steven Bosscher <steven@gcc.gnu.org>
18121
18122 * cprop.c: Clean up hash table building.
18123 (reg_avail_info): Remove.
18124 (oprs_available_p): Remove.
18125 (record_last_reg_set_info): Remove.
18126 (record_last_set_info): Remove.
18127 (reg_available_p): New function.
18128 (gcse_constant_p): Do not treat unfolded conditions as constants.
18129 (make_set_regs_unavailable): New function.
18130 (hash_scan_set): Simplify with new reg_available_p.
18131 (compute_hash_table_work): Traverse insns stream only once.
18132 Do not compute reg_avail_info. Traverse insns in reverse order.
18133 Record implicit sets after recording explicit sets from the block.
18134
98faf84f
MM
181352011-03-31 Michael Matz <matz@suse.de>
18136
e9c18386 18137 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 18138
f52d97da
AS
181392011-03-31 Anatoly Sokolov <aesok@post.ru>
18140
18141 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
18142 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
18143 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18144 (h8300_mode_dependent_address_p): New function.
18145 (h8300_get_index): Make static.
18146
e16b6fd0
JL
181472011-03-31 Jeff Law <law@redhat.com>
18148
10c51983
JL
18149 * reload1.c (elimination_effects): Fix typo in recent change.
18150
e9c18386 18151 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
18152 typo potentially leading to null pointer dereference.
18153
18154 * caller-save.c (new_saved_hard_reg): Eliminate return value.
18155 (setup_save_areas): Corresponding changes to avoid useless
18156 assignments.
18157
18158 * jump.c (reversed_comparison_code_parts): Avoid successive return
18159 statements when REVERSE_CONDITION is defined.
18160
18161 * expr.c (expand_assignment): Avoid useless assignments.
18162 (expand_expr_real_1): Likewise.
18163 (expand_expr_real_2): Avoid useless statements.
18164
18165 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
18166
18167 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
18168
18169 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
18170 statements.
18171
18172 * stmt.c (expand_expr_stmt): Avoid useless assignment.
18173
eb1eb914
JM
181742011-03-31 Joseph Myers <joseph@codesourcery.com>
18175
18176 PR target/47109
18177 * doc/tm.texi.in (TARGET_VERSION): Remove.
18178 * doc/tm.texi: Regenerate.
18179 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
18180 * collect2.c (main): Don't use TARGET_VERSION.
18181 * mips-tdump.c (main): Don't use TARGET_VERSION.
18182 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 18183 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
18184 * config/rs6000/vxworksae.h: Remove.
18185 * config/alpha/alpha.h (TARGET_VERSION): Remove.
18186 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
18187 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
18188 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
18189 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
18190 * config/arm/arm.h (TARGET_VERSION): Remove.
18191 * config/arm/coff.h (TARGET_VERSION): Remove.
18192 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
18193 * config/arm/elf.h (TARGET_VERSION): Remove.
18194 * config/arm/freebsd.h (TARGET_VERSION): Remove.
18195 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
18196 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
18197 * config/arm/pe.h (TARGET_VERSION): Remove.
18198 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
18199 * config/arm/semi.h (TARGET_VERSION): Remove.
18200 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
18201 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
18202 * config/arm/vxworks.h (TARGET_VERSION): Remove.
18203 * config/avr/avr.h (TARGET_VERSION): Remove.
18204 * config/bfin/bfin.h (TARGET_VERSION): Remove.
18205 * config/fr30/fr30.h (TARGET_VERSION): Remove.
18206 * config/frv/frv.h (TARGET_VERSION): Remove.
18207 * config/h8300/h8300.h (TARGET_VERSION): Remove.
18208 * config/i386/cygwin.h (TARGET_VERSION): Remove.
18209 * config/i386/darwin.h (TARGET_VERSION): Remove.
18210 * config/i386/darwin64.h (TARGET_VERSION): Remove.
18211 * config/i386/djgpp.h (TARGET_VERSION): Remove.
18212 * config/i386/freebsd.h (TARGET_VERSION): Remove.
18213 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
18214 * config/i386/gnu.h (TARGET_VERSION): Remove.
18215 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
18216 * config/i386/i386elf.h (TARGET_VERSION): Remove.
18217 * config/i386/linux.h (TARGET_VERSION): Remove.
18218 * config/i386/linux64.h (TARGET_VERSION): Remove.
18219 * config/i386/lynx.h (TARGET_VERSION): Remove.
18220 * config/i386/mingw32.h (TARGET_VERSION): Remove.
18221 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
18222 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
18223 * config/i386/netware.h (TARGET_VERSION): Remove.
18224 * config/i386/nto.h (TARGET_VERSION): Remove.
18225 * config/i386/openbsd.h (TARGET_VERSION): Remove.
18226 * config/i386/vxworks.h (TARGET_VERSION): Remove.
18227 * config/ia64/elf.h (TARGET_VERSION): Remove.
18228 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
18229 * config/ia64/hpux.h (TARGET_VERSION): Remove.
18230 * config/ia64/linux.h (TARGET_VERSION): Remove.
18231 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
18232 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
18233 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
18234 * config/lm32/lm32.h (TARGET_VERSION): Remove.
18235 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
18236 * config/m32c/m32c.h (TARGET_VERSION): Remove.
18237 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
18238 * config/m32r/m32r.h (TARGET_VERSION): Remove.
18239 * config/m68k/linux.h (TARGET_VERSION): Remove.
18240 * config/m68k/m68k.h (TARGET_VERSION): Remove.
18241 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
18242 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
18243 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
18244 * config/mep/mep.h (TARGET_VERSION): Remove.
18245 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
18246 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
18247 * config/mips/iris6.h (MACHINE_TYPE): Remove.
18248 * config/mips/linux.h (TARGET_VERSION): Remove.
18249 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
18250 * config/mips/vxworks.h (TARGET_VERSION): Remove.
18251 * config/mmix/mmix.h (TARGET_VERSION): Remove.
18252 * config/mn10300/linux.h (TARGET_VERSION): Remove.
18253 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
18254 * config/pa/pa.h (TARGET_VERSION): Remove.
18255 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
18256 * config/picochip/picochip.h (TARGET_VERSION): Remove.
18257 * config/rs6000/aix.h (TARGET_VERSION): Remove.
18258 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
18259 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
18260 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
18261 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
18262 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
18263 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
18264 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
18265 * config/rs6000/linux.h (TARGET_VERSION): Remove.
18266 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
18267 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
18268 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
18269 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
18270 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
18271 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
18272 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
18273 * config/s390/linux.h (TARGET_VERSION): Remove.
18274 * config/s390/s390.h (TARGET_VERSION): Remove.
18275 * config/s390/tpf.h (TARGET_VERSION): Remove.
18276 * config/score/score.h (TARGET_VERSION): Remove.
18277 * config/sh/linux.h (TARGET_VERSION): Remove.
18278 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
18279 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
18280 * config/sh/sh.h (TARGET_VERSION): Remove.
18281 * config/sh/sh64.h (TARGET_VERSION): Remove.
18282 * config/sh/superh.h (TARGET_VERSION): Remove.
18283 * config/sh/vxworks.h (TARGET_VERSION): Remove.
18284 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
18285 * config/sparc/linux.h (TARGET_VERSION): Remove.
18286 * config/sparc/linux64.h (TARGET_VERSION): Remove.
18287 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
18288 TARGET_NAME32, TARGET_NAME): Remove.
18289 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
18290 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
18291 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
18292 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
18293 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
18294 * config/spu/spu.h (TARGET_VERSION): Remove.
18295 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
18296 * config/v850/v850.h (TARGET_VERSION): Remove.
18297 * config/vax/linux.h (TARGET_VERSION): Remove.
18298 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
18299 * config/xtensa/elf.h (TARGET_VERSION): Remove.
18300 * config/xtensa/linux.h (TARGET_VERSION): Remove.
18301
ace31bca
EB
183022011-03-31 Eric Botcazou <ebotcazou@adacore.com>
18303
18304 PR target/48142
18305 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
18306 frame-related from frame-unrelated adjustments to the stack pointer.
18307
76f9db36
JJ
183082011-03-31 Jakub Jelinek <jakub@redhat.com>
18309
18310 * common.opt (fdebug-types-section): Move earlier.
18311 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
18312
b7826465
AT
183132011-03-31 Andreas Tobler <andreast@fgznet.ch>
18314
18315 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
18316 var.
18317
1290e54c
NF
183182011-03-30 Nathan Froyd <froydnj@codesourcery.com>
18319
18320 * tree.h (CASE_CHAIN): Define.
18321 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
18322 (gimple_redirect_edge_and_branch): Likewise.
18323
bddc98e1
VM
183242011-03-30 Vladimir Makarov <vmakarov@redhat.com>
18325
18326 PR middle-end/48367
18327 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
18328 calculation.
18329
c865e437
JL
183302011-03-30 Jeff Law <law@redhat.com>
18331
b3750213 18332 * PR bootstrap/48371
c865e437
JL
18333 * reload1.c (reload): Fix botch in last change.
18334
18335 * reload.h (struct reload): Fix typo introduced in last change.
18336
2cdf9574
JM
183372011-03-30 Joseph Myers <joseph@codesourcery.com>
18338
18339 * config/arm/arm.opt (mhard-float, msoft-float): Mark
18340 Undocumented. Remove help text.
18341 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
18342 -mhard-float.
18343
666a21a2
JM
183442011-03-30 Joseph Myers <joseph@codesourcery.com>
18345
18346 * doc/options.texi (NegativeAlias): Document.
18347 (Alias): Mention NegativeAlias.
18348 * opt-functions.awk: Handle NegativeAlias.
e9c18386 18349 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
18350 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
18351 * opts.h (CL_NEGATIVE_ALIAS): Define.
18352 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
18353 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
18354 OPT_mspe_.
18355 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
18356 Alias entries.
18357 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
18358 mno-spe and mno-isel instead of mspe=no and -misel=no.
18359
0fa4e351
MW
183602011-03-29 Mark Wielaard <mjw@redhat.com>
18361
18362 * common.opt (fdebug-types-section): New flag.
18363 * doc/invoke.texi: Document new -fno-debug-types-section flag.
18364 * dwarf2out.c (use_debug_types): New define.
18365 (struct die_struct): Mark die_id with GTY desc use_debug_types.
18366 (print_die): Guard output of type unit signatures using
18367 use_debug_types.
18368 (build_abbrev_table): Replace assert of dwarf_version >= 4
18369 with assert on use_debug_types.
18370 (size_of_die): Likewise.
18371 (unmark_dies): Likewise.
18372 (value_format): Decide AT_ref_external form on use_debug_types.
18373 (output_die): Replace dwarf_version version check guard with
18374 use_debug_types where appropriate.
18375 (modified_type_die): Likewise.
18376 (gen_reference_type_die): Likewise.
18377 (dwarf2out_start_source_file): Likewise.
18378 (dwarf2out_end_source_file): Likewise.
18379 (prune_unused_types_walk_attribs): Likewise.
18380 (dwarf2out_finish): Likewise.
18381
4648deb4
VM
183822011-03-30 Vladimir Makarov <vmakarov@redhat.com>
18383
18384 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
18385
4f431835
RS
183862011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18387
18388 PR rtl-optimization/48332
18389 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
18390 mode of input operand N and modeN to its actual mode.
18391
f2034d06
JL
183922011-03-30 Jeff Law <law@redhat.com>
18393
18394 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
18395 define accessor macro.
18396 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
18397 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
18398 (reg_equiv_init): Likewise.
18399 (reg_equivs_size): New variable.
18400 (reg_equiv_init_size): Remove.
18401 (allocate_initial_values): Move prototype to here from....
18402 * integrate.h (allocate_initial_values): Remove prototype.
18403 * integrate.c: Include reload.h.
18404 (allocate_initial_values): Corresponding changes.
18405 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
18406 (fix_reg_equiv_init, no_equiv): Corresponding changes.
18407 (update_equiv_regs): Corresponding changes.
18408 (ira): Corresponding changes.
18409 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
18410 (push_secondary_reload): Corresponding changes.
18411 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
18412 (make_memloc, find_reloads_address): Corresponding changes.
18413 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
18414 (find_reloads_address_1): Corresponding changes.
18415 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
18416 (refers_to_regno_for_reload_p): Corresponding changes.
18417 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
18418 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
18419 * reload1.c: Include ggc.h.
18420 (grow_reg_equivs): New function.
18421 (replace_pseudos_in, reload): Corresponding changes.
18422 (calculate_needs_all_insns, alter_regs): Corresponding changes.
18423 (eliminate_regs_1, elimination_effects): Corresponding changes.
18424 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
18425 (delete_output_reload): Likewise.
18426 * caller-save.c (mark_referenced_regs): Corresponding changes.
18427 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
18428 * frv/predicates.md (frv_load_operand): Corresponding changes.
18429 * microblaze/microblaze.c (double_memory_operand): Corresponding
18430 changes.
18431 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
18432 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 18433 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
18434 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
18435 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
18436 changes.
18437 * pa/pa.c (emit_move_sequence): Corresponding changes.
18438 * vax/vax.c (nonindexed_address_p): Corresponding changes.
18439
159b81b0
RS
184402011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18441
18442 PR target/47551
18443 * config/arm/arm.c (coproc_secondary_reload_class): Handle
18444 structure modes. Don't check neon_vector_mem_operand for
18445 vector or structure modes.
18446
a6217191
RS
184472011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18448 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18449
18450 PR target/43590
18451 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
18452 operand 1 and reshuffle the operands to match.
18453 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
18454
bd837408
CS
184552011-03-30 Christian Schüler <cschueler@gmx.de>
18456
6955d771 18457 PR driver/48208
bd837408 18458 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 18459
6955d771 18460 PR driver/48260
bd837408
CS
18461 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
18462 handler function.
18463 * config/darwin.opt: Added '-arch' option.
18464
e9c0470a
NC
184652011-03-30 Nick Clifton <nickc@redhat.com>
18466
18467 * config/rx/rx.md: Add peepholes and patterns to combine
18468 extending loads and simple arithmetic instructions.
18469 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
18470 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
18471 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 18472 modes to use pre-decrement and post-increment addressing.
e9c18386 18473 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 18474 addresses.
e9c18386
UB
18475 (rx_print_operand): Add support for %Q. Fix handling of %Q.
18476 (rx_memory_move_cost): Adjust cost of stores.
18477 (rx_adjust_insn_length): New function.
e9c0470a 18478
8a87e7ab
JJ
184792011-03-30 Jakub Jelinek <jakub@redhat.com>
18480
18481 PR c/48305
18482 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
18483 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
18484 matching arg00/arg01 types.
18485
12486e03
EB
184862011-03-30 Eric Botcazou <ebotcazou@adacore.com>
18487
18488 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
18489 last_location to UNKNOWN_LOCATION.
18490
0b99eef6
L
184912011-03-30 H.J. Lu <hongjiu.lu@intel.com>
18492
18493 PR target/48349
18494 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
18495 FLOAT_SSE_REGS.
18496
023592aa
JM
184972011-03-30 Joseph Myers <joseph@codesourcery.com>
18498 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18499
18500 PR bootstrap/48337
18501 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
18502 Init(PROCESSOR_V7).
18503 (sparc_cpu): Likewise.
18504 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
18505 PROCESSOR_V7.
18506
ad3b266b
VM
185072011-03-29 Vladimir Makarov <vmakarov@redhat.com>
18508
18509 PR target/48336
18510 PR middle-end/48342
18511 PR rtl-optimization/48345
18512 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
18513 hard regs for given mode from profitable regs when doing secondary
18514 allocation.
18515
633c9126
JL
185162011-03-29 Jeff Law <law@redhat.com>
18517
18518 PR bootstrap/48327
18519 * tree-ssa-threadupdate.c (struct redirection_data): Remove
18520 do_not_duplicate field.
18521 (lookup_redirection_data): Corresponding changes.
18522 (create_duplicates): Always create a template block.
18523 (redirect_edges): Remove code which reused the original block
18524 when it was going to become unreachable code.
18525 (thread_block): Don't set do_not_duplicate field.
18526
eb50f63a
JM
185272011-03-29 Joseph Myers <joseph@codesourcery.com>
18528
18529 * lto-opts.c (register_user_option_p, lto_register_user_option):
18530 Make type argument unsigned.
18531 * lto-streamer.h (lto_register_user_option): Make type argument
18532 unsigned.
18533 * opth-gen.awk: Make CL_* macros unsigned.
18534 * opts-common.c (find_opt): Make lang_mask argument unsigned.
18535 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
18536 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
18537 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
18538 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
18539 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
18540 (find_opt): Make lang_mask argument unsigned.
18541
76763a6d
VM
185422011-03-29 Vladimir Makarov <vmakarov@redhat.com>
18543
18544 PR rtl-optimization/48331
18545 PR rtl-optimization/48334
18546 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
18547 for any used algorithm.
18548
5c82436e
VM
185492011-03-29 Vladimir Makarov <vmakarov@redhat.com>
18550
18551 * ira-conflicts.c (build_object_conflicts): Add unused attribute
18552 to parent_max.
18553
7a81008b
UB
185542011-03-29 Uros Bizjak <ubizjak@gmail.com>
18555
18556 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
18557 (alpha_option_override): Don't set alpha_sr_alias_set.
18558 (emit_frame_store_1): Use gen_frame_mem rather than calling
18559 set_mem_alias_set.
18560 (alpha_expand_epilogue): Ditto.
18561
86c8d1f6
IR
185622011-03-29 Ira Rosen <ira.rosen@linaro.org>
18563
18564 PR tree-optimization/48290
18565 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
18566 vectorization, check that relevant phis in the basic block after
18567 the inner loop are really inner loop's exit phis.
18568
0d12220f
RS
185692011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
18570
e8cf17e7 18571 PR debug/48190
0d12220f
RS
18572 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
18573 (cached_dw_loc_list_def): New structure.
18574 (cached_dw_loc_list): New typedef.
18575 (cached_dw_loc_list_table): New variable.
18576 (cached_dw_loc_list_table_hash): New function.
18577 (cached_dw_loc_list_table_eq): Likewise.
18578 (add_location_or_const_value_attribute): Take a bool cache_p.
18579 Cache the list when the parameter is true.
18580 (gen_formal_parameter_die): Update caller.
18581 (gen_variable_die): Likewise.
18582 (dwarf2out_finish): Likewise.
18583 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
18584 while generating debug info for the decl.
18585 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
18586 (dwarf2out_init): Initialize cached_dw_loc_list_table.
18587 (resolve_addr): Cache the result of resolving a chain of
18588 location lists.
18589
1756cb66
VM
185902011-03-28 Vladimir Makarov <vmakarov@redhat.com>
18591
18592 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
18593 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 18594
1756cb66
VM
18595 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
18596 after regstat_init_n_sets_and_refs.
18597
18598 * ira.c: Add more comments at the top.
18599 (setup_stack_reg_pressure_class, setup_pressure_classes):
18600 Add comments how we compute the register pressure classes.
18601 (setup_allocno_and_important_classes): Add more comments.
18602 (setup_class_translate_array, reorder_important_classes)
18603 (setup_reg_class_relations): Add comments.
18604
18605 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
18606 start of the file.
18607
18608 * ira-color.c: Add 2011 to the Copyright line.
18609 (assign_hard_reg): Add more comments.
18610 (improve_allocation): Ditto.
18611
18612 * ira-costs.c: Add 2011 to the Copyright line.
18613 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
18614 comments.
18615 (setup_regno_cost_classes_by_mode): Ditto.
18616
18617 Initial patches from ira-improv branch:
18618
18619 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
18620
f60c2554 18621 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
18622 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
18623 (ira_create_allocno): Remove initialization of
18624 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
18625 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
18626 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
18627 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
18628 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
18629 Initialize ALLOCNO_ADD_DATA.
18630 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
18631 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
18632 ALLOCNO_REG.
18633 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
18634 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
18635
18636 * ira.c (ira_reallocate): Remove.
18637 (setup_pressure_classes): Call
18638 ira_init_register_move_cost_if_necessary. Use
18639 ira_register_move_cost instead of ira_get_register_move_cost.
18640 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
18641 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
18642
18643 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
18644 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
18645 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
18646 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
18647 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
18648 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
18649 Fix formatting.
7a81008b 18650 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
18651 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
18652 (struct allocno_color_data): New.
18653 (allocno_color_data_t): New typedef.
18654 (allocno_color_data): New definition.
18655 (ALLOCNO_COLOR_DATA): New macro.
18656 (struct object_color_data): New.
18657 (object_color_data_t): New typedef.
18658 (object_color_data): New definition.
18659 (OBJECT_COLOR_DATA): New macro.
18660 (update_copy_costs, calculate_allocno_spill_cost): Call
18661 ira_init_register_move_cost_if_necessary. Use
18662 ira_register_move_cost instead of ira_get_register_move_cost.
18663 (move_spill_restore, update_curr_costs): Ditto.
18664 (allocno_spill_priority): Make it inline.
7a81008b 18665 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
18666 (struct coalesce_data, coalesce_data_t): New.
18667 (allocno_coalesce_data): New definition.
18668 (ALLOCNO_COALESCE_DATA): New macro.
18669 (merge_allocnos, coalesced_allocno_conflict_p): Use
18670 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
18671 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
18672 (coalesce_allocnos): Ditto.
18673 (setup_coalesced_allocno_costs_and_nums): Ditto.
18674 (collect_spilled_coalesced_allocnos): Ditto.
18675 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
18676 (setup_slot_coalesced_allocno_live_ranges): Ditto.
18677 (coalesce_spill_slots): Ditto.
18678 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
18679 free allocno_coalesce_data.
18680
18681 * ira-conflicts.c: Fix formatting.
18682 (process_regs_for_copy): Call
18683 ira_init_register_move_cost_if_necessary. Use
18684 ira_register_move_cost instead of ira_get_register_move_cost.
18685 (build_object_conflicts): Optimize.
18686
18687 * ira-costs.c (record_reg_classes): Optimize. Call
18688 ira_init_register_move_cost_if_necessary. Use
18689 ira_register_move_cost, ira_may_move_in_cost, and
18690 ira_may_move_out_cost instead of ira_get_register_move_cost and
18691 ira_get_may_move_cost.
18692 (record_address_regs): Ditto.
18693 (scan_one_insn): Optimize.
18694 (find_costs_and_classes): Optimize.
18695 (process_bb_node_for_hard_reg_moves): Call
18696 ira_init_register_move_cost_if_necessary. Use
18697 ira_register_move_cost instead of ira_get_register_move_cost.
18698
18699 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
18700 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
18701 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
18702 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
18703 definitions.
18704 (ira_initiate_emit_data, ira_finish_emit_data)
18705 (create_new_allocno): New functions.
7a81008b 18706 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
18707 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
18708 Use ira_register_move_cost instead of ira_get_register_move_cost.
18709
18710 * ira-int.h: Fix some comments.
7a81008b
UB
18711 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
18712 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
18713 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
18714 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
18715 add_data.
18716 (struct ira_allocno): Make mode and aclass a bitfield. Move other
18717 bitfield after mode. Make hard_regno a short int. Make
18718 hard_regno short. Remove first_coalesced_allocno and
18719 next_coalesced_allocno. Move mem_optimized_dest_p,
18720 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
18721 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
18722 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
18723 temp, colorable_p. Add new member add_data.
18724 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
18725 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
18726 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
18727 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
18728 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
18729 (ALLOCNO_ADD_DATA): New macro.
18730 (ira_emit_data_t): New typedef.
18731 (struct ira_emit_data): New. Move mem_optimized_dest_p,
18732 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
18733 from struct ira_allocno.
18734 (ALLOCNO_EMIT_DATA): New macro.
18735 (ira_allocno_emit_data, allocno_emit_reg): New.
18736 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 18737 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
18738 (OBJECT_ADD_DATA): New macro.
18739 (ira_reallocate): Remove.
18740 (ira_initiate_emit_data, ira_finish_emit_data): New.
18741 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
18742 (ira_init_register_move_cost_if_necessary): New.
18743 (ira_object_conflict_iter_next): Merge into
18744 ira_object_conflict_iter_cond.
7a81008b 18745 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 18746
f60c2554 18747 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
18748 ira_init_register_move_cost_if_necessary. Use
18749 ira_register_move_cost instead of ira_get_register_move_cost.
18750
18751 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
18752
18753 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
18754
18755 * ira-costs.c: Fix formatting.
18756 (cost_classes, cost_classes_num): Remove.
18757 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
18758 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
18759 (cost_classes_del, cost_classes_htab): New.
18760 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
18761 (initiate_regno_cost_classes, setup_cost_classes): New.
18762 (setup_regno_cost_classes_by_aclass): New.
7a81008b 18763 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
18764 (record_reg_classes): Use regno_cost_classes instead of
18765 cost_classes. Move checking opposite operand up.
18766 (record_address_regs): Use regno_cost_classes
18767 instead of cost_classes.
18768 (scan_one_insn): Ditto. Use always general register.
18769 (print_allocno_costs): Use regno_cost_classes instead of
18770 cost_classes.
18771 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
18772 (find_costs_and_classes): Set up cost classes for each registers.
18773 Use also their mode for this. Use regno_cost_classes instead of
18774 cost_classes.
18775 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
18776 cost_classes.
18777 (free_ira_costs, ira_init_costs): Don't use cost_classes.
18778 (ira_costs, ira_set_pseudo_classes): Call
18779 initiate_regno_cost_classes and finish_regno_cost_classes.
18780
18781 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
18782
18783 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
18784
18785 * target.def (ira_cover_classes): Remove.
18786
7a81008b 18787 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
18788
18789 * doc/tm.texi.in: Ditto.
18790
18791 * ira-conflicts.c: Remove mentioning cover classes from the file.
18792 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 18793 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
18794
18795 * targhooks.c (default_ira_cover_classes): Remove.
18796
18797 * targhooks.h (default_ira_cover_classes): Ditto.
18798
18799 * haifa-sched.c: Remove mentioning cover classes from the file.
18800 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
18801 ira_pressure_classes and ira_pressure_classes_num instead of
18802 ira_reg_class_cover_size and ira_reg_class_cover. Use
18803 sched_regno_pressure_class instead of sched_regno_cover_class.
18804 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
18805 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
18806
18807 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
18808 classes from the file.
18809 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
18810 (struct object_hard_regs, struct object_hard_regs_node): New.
18811 (struct ira_object): New members profitable_hard_regs,
18812 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
18813 (struct ira_allocno): Rename cover_class to aclass. Rename
18814 cover_class_cost and updated_cover_class_cost to class_cost and
18815 updated_class_cost. Remove splay_removed_p and
18816 left_conflict_size. Add new members colorable_p.
18817 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
18818 (ALLOCNO_COLORABLE_P): New macro.
18819 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
18820 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
18821 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
18822 (OBJECT_...): Rename parameter C to O.
18823 (OBJECT_PROFITABLE_HARD_REGS): New macro.
18824 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
18825 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
18826 (struct target_ira_int): New members x_ira_max_memory_move_cost,
18827 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
18828 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
18829 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
18830 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
18831 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
18832 x_ira_reg_class_subunion.
18833 (ira_max_memory_move_cost, ira_max_register_move_cost)
18834 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
18835 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
18836 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 18837 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
18838 (ira_reg_class_union): Rename to ira_reg_class_subunion.
18839 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
18840 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
18841 (ira_tune_allocno_costs_and_cover_classes): Rename to
18842 ira_tune_allocno_costs.
18843 (ira_debug_hard_regs_forest): New.
18844 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
18845 (ira_object_conflict_iter_next): Fix comments.
7a81008b 18846 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
18847 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
18848 cover_class to aclass.
18849 (ira_allocate_and_accumulate_costs): Ditto.
18850 (ira_allocate_and_set_or_copy_costs): Ditto.
18851
18852 * opts.c (decode_options): Remove ira_cover_class check.
18853
18854 * ira-color.c: Remove mentioning cover classes from the file. Use
18855 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
18856 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
18857 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
18858 (splay-tree.h): Remove include.
18859 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
18860 before copy_freq_compare_func.
18861 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
18862 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
18863 New definitions.
18864 (hard_regs_roots, hard_regs_node_vec): Ditto.
18865 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
18866 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
18867 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
18868 (create_new_object_hard_regs_node): Ditto.
18869 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 18870 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
18871 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
18872 Ditto.
18873 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
18874 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
18875 (remove_unused_object_hard_regs_nodes): Ditto.
18876 (enumerate_object_hard_regs_nodes): Ditto.
18877 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
18878 (object_hard_regs_subnode_t): Ditto.
18879 (struct object_hard_regs_subnode): Ditto.
18880 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
18881 (setup_object_hard_regs_subnode_index): Ditto.
18882 (get_object_hard_regs_subnodes_num): Ditto.
18883 (form_object_hard_regs_nodes_forest): Ditto.
18884 (finish_object_hard_regs_nodes_tree): Ditto.
18885 (finish_object_hard_regs_nodes_forest): Ditto.
18886 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 18887 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
18888 (pseudos_have_intersected_live_ranges_p): Rename to
18889 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
18890 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
18891 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
18892 (update_copy_costs): Remove assert. Skip cost update if the hard
18893 reg does not belong the class.
18894 (assign_hard_reg): Process only profitable hard regs.
18895 (uncolorable_allocnos_num): Make it scalar.
18896 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
18897 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
18898 and ira_reg_class_max_nregs.
18899 (bucket_allocno_compare_func): Check frequency first.
18900 (sort_bucket): Add compare function as a parameter.
18901 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
18902 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
18903 (push_allocno_to_stack): Rewrite for checking new allocno
18904 colorability.
7a81008b 18905 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
18906 (push_only_colorable): Pass new parameter to sort_bucket.
18907 (push_allocno_to_spill): Remove.
18908 (allocno_spill_priority_compare): Make it inline and rewrite.
18909 (splay_tree_allocate, splay_tree_free): Remove.
18910 (allocno_spill_sort_compare): New function.
18911 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
18912 build and use splay tree. Choose first allocno in uncolorable
18913 allocno bucket to spill. Remove setting spill cost.
18914 (all_conflicting_hard_regs): Remove.
18915 (setup_allocno_available_regs_num): Check only profitable hard
18916 regs. Print info about hard regs nodes.
18917 (setup_allocno_left_conflicts_size): Remove.
18918 (put_allocno_into_bucket): Don't call
7a81008b 18919 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
18920 (improve_allocation): New.
18921 (color_allocnos): Call setup_profitable_hard_regs,
18922 form_object_hard_regs_nodes_forest, improve_allocation,
18923 finish_object_hard_regs_nodes_forest. Setup spill cost.
18924 (print_loop_title): Use pressure classes.
18925 (color_allocnso): Ditto.
18926 (do_coloring): Remove allocation and freeing splay_tree_node_pool
18927 and allocnos_for_spilling.
18928 (ira_sort_regnos_for_alter_reg): Don't setup members
18929 {first,next}_coalesced_allocno.
18930 (color): Remove allocating and freeing removed_splay_allocno_vec.
18931 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
18932 prohibited_class_mode_regs.
18933
18934 * ira-lives.c: Remove mentioning cover classes from the file. Fix
18935 formatting.
18936 (update_allocno_pressure_excess_length): Use pressure classes.
18937 (inc_register_pressure, dec_register_pressure): Check for pressure
18938 class.
18939 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
18940 pressure class. Use ira_reg_class_nregs instead of
18941 ira_reg_class_max_nregs.
18942 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
18943 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
18944 (single_reg_class): Use ira_reg_class_nregs instead of
18945 ira_reg_class_max_nregs.
18946 (process_bb_node_lives): Use pressure classes.
18947
18948 * ira-emit.c: Remove mentioning cover classes from the file. Use
18949 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
18950 (change_loop): Use pressure classes.
18951 (modify_move_list): Call ira_set_allocno_class instead of
18952 ira_set_allocno_cover_class.
18953
18954 * ira-build.c: Remove mentioning cover classes from the file. Use
18955 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
18956 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
18957 ALLOCNO_UPDATED_CLASS_COST instead of
18958 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
18959 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
18960 (ira_create_allocno): Remove initialization of
18961 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
18962 ALLOCNO_COLORABLE_P.
18963 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
18964 Update conflict regs for the objects.
18965 (create_cap_allocno): Remove assert. Don't propagate
18966 ALLOCNO_AVAILABLE_REGS_NUM.
18967 (ira_free_allocno_costs): New function.
18968 (finish_allocno): Change a part of code into call of
18969 ira_free_allocno_costs.
18970 (low_pressure_loop_node_p): Use pressure classes.
18971 (object_range_compare_func): Don't compare classes.
18972 (setup_min_max_conflict_allocno_ids): Ditto.
18973
18974 * loop-invariant.c: Remove mentioning cover classes from the file.
18975 Use ira_pressure_classes and ira_pressure_classes_num instead of
18976 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
18977 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
18978 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
18979 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
18980 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
18981 STACK_REG_COVER_CLASS.
18982 (get_regno_cover_class): Rename to get_regno_pressure_class.
18983 (move_loop_invariants): Initialize and finalize regstat.
18984
18985 * ira.c: Remove mentioning cover classes from the file. Add
18986 comments about coloring without cover classes. Use ALLOCNO_CLASS
18987 instead of ALLOCNO_COVER_CLASS. Fix formatting.
18988 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
18989 setup_class_subset_and_memory_move_costs.
18990 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
18991 (setup_cover_and_important_classes): Rename to
18992 setup_allocno_and_important_classes.
18993 (setup_class_translate_array): New.
18994 (setup_class_translate): Call it for allocno and pressure classes.
18995 (cover_class_order): Rename to allocno_class_order.
18996 (comp_reg_classes_func): Use ira_allocno_class_translate instead
18997 of ira_class_translate.
18998 (reorder_important_classes): Set up ira_important_class_nums.
18999 (setup_reg_class_relations): Set up ira_reg_class_superunion.
19000 (print_class_cover): Rename to print_classes. Add parameter.
19001 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
19002 Print pressure classes too.
19003 (find_reg_class_closure): Rename to find_reg_classes. Don't call
19004 setup_reg_subclasses.
7a81008b 19005 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
19006 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
19007 (setup_prohibited_class_mode_regs): Use
7a81008b 19008 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
19009 (clarify_prohibited_class_mode_regs): New function.
19010 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
19011 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
19012 (ira_init_once): Initialize them.
19013 (free_register_move_costs): Process them.
19014 (ira_init): Move calls of find_reg_classes and
19015 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
19016 Call clarify_prohibited_class_mode_regs.
19017 (ira_no_alloc_reg): Remove.
19018 (too_high_register_pressure_p): Use pressure classes.
19019
19020 * sched-deps.c: Remove mentioning cover classes from the file.
19021 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
19022 ira_pressure_classes and ira_pressure_classes_num instead of
19023 ira_reg_class_cover_size and ira_reg_class_cover.
19024 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
19025 sched_regno_pressure_class instead of sched_regno_cover_class.
19026 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
19027 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
19028
19029 * ira.h: Add 2010 to Copyright.
19030 (ira_no_alloc_reg): Remove external.
19031 (struct target_ira): Rename x_ira_hard_regno_cover_class,
19032 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
19033 x_ira_class_translate to x_ira_hard_regno_allocno_class,
19034 x_ira_allocno_classes_num, x_ira_allocno_classes, and
19035 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
19036 x_ira_pressure_classes, x_ira_pressure_class_translate, and
19037 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
19038 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
19039 x_ira_no_alloc_regs.
7a81008b 19040 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
19041 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
19042 ira_allocno_classes_num and ira_allocno_classes.
19043 (ira_class_translate): Rename to ira_allocno_class_translate.
19044 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
19045 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
19046 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
19047 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
19048 (ira_no_alloc_regs): New.
19049
19050 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
19051 classes from the file. Use ALLOCNO_CLASS instead of
19052 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
19053 ALLOCNO_COVER_CLASS_COST.
19054 (regno_cover_class): Rename to regno_aclass.
19055 (record_reg_classes): Use ira_reg_class_subunion instead of
19056 ira_reg_class_union.
19057 (record_address_regs): Check overflow.
19058 (scan_one_insn): Ditto.
7a81008b 19059 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
19060 (print_pseudo_costs): Use REG_N_REFS.
19061 (find_costs_and_classes): Use classes intersected with them on the
19062 1st pass. Check overflow. Use ira_reg_class_subunion instead of
19063 ira_reg_class_union. Use ira_allocno_class_translate and
19064 regno_aclass instead of ira_class_translate and regno_cover_class.
19065 Modify code for finding regno_aclass. Setup preferred classes for
19066 the next pass.
19067 (setup_allocno_cover_class_and_costs): Rename to
19068 setup_allocno_class_and_costs. Use regno_aclass instead of
19069 regno_cover_class. Use ira_set_allocno_class instead of
19070 ira_set_allocno_cover_class.
19071 (init_costs, finish_costs): Use regno_aclass instead of
19072 regno_cover_class.
19073 (ira_costs): Use setup_allocno_class_and_costs instead of
19074 setup_allocno_cover_class_and_costs.
19075 (ira_tune_allocno_costs_and_cover_classes): Rename to
19076 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
19077 by processing objects. Use ira_reg_class_max_nregs instead of
19078 ira_reg_class_nregs.
19079
19080 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
19081
19082 * sched-int.h: Remove mentioning cover classes from the file.
19083 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
19084
19085 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
19086 classes from the file.
19087 (struct reg_pref): Rename coverclass into allocnoclass.
19088 (reg_cover_class): Rename to reg_allocno_class.
19089
7a81008b 19090 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
19091
19092 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
19093
19094 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
19095
19096 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
19097
19098 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
19099
19100 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
19101
19102 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
19103
19104 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
19105
19106 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
19107
19108 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
19109
19110 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
19111 (i386_ira_cover_classes): Ditto.
19112
19113 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
19114
19115 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
19116
19117 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
19118
19119 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
19120
19121 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
19122
19123 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
19124
19125 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
19126 (mips_ira_cover_classes): Ditto.
19127
19128 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
19129
19130 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
19131
19132 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
19133
19134 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
19135
19136 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
19137
19138 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
19139 (IRA_COVER_CLASSES_VSX): Ditto.
19140
19141 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
19142 (rs6000_ira_cover_classes): Ditto.
19143
19144 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
19145
19146 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
19147
19148 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
19149
19150 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
19151
19152 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
19153
19154 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
19155
19156 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
19157
19158 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
19159
19160 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
19161
19162 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
19163
2b80199f
JJ
191642011-03-29 Jakub Jelinek <jakub@redhat.com>
19165
71dae1fe
JJ
19166 PR debug/48253
19167 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
19168 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
19169 dw_fde_unlikely_section_end_label, cold_in_std_section,
19170 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
19171 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
19172 fields.
19173 (output_fde): Use dw_fde_second_{begin,end} if second is
19174 true, otherwise dw_fde_{begin,end}.
19175 (output_call_frame_info): Test dw_fde_second_begin != NULL
19176 instead of dw_fde_switched_sections.
19177 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
19178 fields, initialize new fields. Initialize in_std_section
19179 unconditionally from the first partition.
19180 (dwarf2out_end_epilogue): Don't override dw_fde_end when
19181 dw_fde_second_begin is non-NULL.
19182 (dwarf2out_switch_text_section): Stop initializing removed
19183 dw_fde_struct fields, initialize new fields, initialize
19184 also dw_fde_end here. Set dw_fde_switch_cfi even when
19185 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
19186 (struct var_loc_list_def): Add last_before_switch field.
19187 (arange_table, arange_table_allocated, arange_table_in_use,
19188 ARANGE_TABLE_INCREMENT, add_arange): Removed.
19189 (size_of_aranges): Count !in_std_section and !second_in_std_section
19190 hunks in fdes, instead of looking at arange_table_in_use.
19191 (output_aranges): Add aranges_length argument, don't call
19192 size_of_aranges here. Instead of using aranges_table*
19193 emit ranges for fdes when !in_std_section resp.
19194 !second_in_std_section.
19195 (dw_loc_list): Break ranges crossing section switch.
19196 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 19197 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
19198 (gen_subprogram_die): Don't call add_arange. Use
19199 dw_fde_{begin,end} for first partition and if switched
19200 section dw_fde_second_{begin,end} for the second.
19201 (var_location_switch_text_section_1,
19202 var_location_switch_text_section): New functions.
19203 (dwarf2out_begin_function): Initialize cold_text_section even
19204 when function_section () isn't text_section.
19205 (prune_unused_types): Don't walk arange_table.
19206 (dwarf2out_finish): Don't needlessly test
19207 flag_reorder_blocks_and_partition when testing cold_text_section_used.
19208 If info_section_emitted, call size_of_aranges and if it indicates
19209 non-empty .debug_aranges, call output_aranges with the computed
19210 size. Stop using removed dw_fde_struct fields, use
19211 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
19212 for second.
19213
2b80199f
JJ
19214 PR debug/48203
19215 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
19216 create ENTRY_VALUE if incoming or address of incoming's MEM
19217 is a hard REG.
19218 * dwarf2out.c (mem_loc_descriptor): Don't emit
19219 DW_OP_GNU_entry_value of DW_OP_fbreg.
19220 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
19221 on ENTRY_VALUE is able to find the canonical parameter VALUE.
19222 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
19223 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
19224 ENTRY_VALUE_EXPs.
19225 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
19226 is a REG_P or MEM_P with REG_P address, compute hash directly
19227 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
19228 (preserve_only_constants): Don't clear VALUES forwaring
19229 ENTRY_VALUE to some other VALUE.
19230
8a445129
RS
192312011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
19232
19233 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
19234 instead of GEN_INT.
19235
c82fee88
EB
192362011-03-28 Eric Botcazou <ebotcazou@adacore.com>
19237
19238 * cfgexpand.c (expand_gimple_cond): Always set the source location and
19239 block before expanding the statement.
19240 (expand_gimple_stmt_1): Likewise. Set them here...
19241 (expand_gimple_stmt): ...and not here. Tidy.
19242 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
19243 unknown.
19244
e45425ec
SB
192452011-03-28 Steven Bosscher <steven@gcc.gnu.org>
19246
19247 * Makefile.in: New rule for cprop.o.
19248 * gcse.c: Move constant/copy propagation to cprop.c.
19249 (compute_local_properties): Only handle expression tables.
19250 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
19251 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
19252 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
19253 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 19254 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
19255 compute_cprop_data, find_used_regs, try_replace_reg,
19256 find_avail_set, cprop_jump, constprop_register, cprop_insn,
19257 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
19258 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
19259 find_bypass_set, reg_killed_on_edge, bypass_block,
19260 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
19261 execute_rtl_cprop, pass_rtl_cprop): Move to...
19262 * cprop.c: ...here. New file, constant/copy propagation for RTL
19263 moved from gcse.c to here with minor cleanups in duplicated code.
19264
c09d5426
L
192652011-03-28 H.J. Lu <hongjiu.lu@intel.com>
19266
19267 * config/i386/i386.c (flag_opts): Fix a typo in
19268 -mavx256-split-unaligned-store.
19269
9eaa7740
AS
192702011-03-28 Anatoly Sokolov <aesok@post.ru>
19271
19272 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
19273 LIBCALL_VALUE): Remove macros.
19274 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19275 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19276 (h8300_function_value, h8300_libcall_value,
19277 h8300_function_value_regno_p): New functions.
19278
dcec2be2
AS
192792011-03-28 Anatoly Sokolov <aesok@post.ru>
19280
19281 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
19282
520af9ec
JL
192832011-03-28 Jeff Law <law@redhat.com>
19284
19285 * tree-ssa-threadupdate.c (redirect_edges): Call
19286 create_edge_and_update_destination_phis as needed.
19287 (create_edge_and_update_destination_phis): Accept new BB argument.
19288 All callers updated.
19289 (thread_block): Do not update the profile when threading around
19290 intermediate blocks.
19291 (thread_single_edge): Likewise.
19292 (determine_bb_domination_status): If BB is not a successor of the
19293 loop header, return NONDOMINATING.
19294 (register_jump_thread): Note when we register a jump thread around
19295 an intermediate block.
19296 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
19297 (thread_across_edge): Use it.
19298
7450b54f
TG
192992011-03-28 Tristan Gingold <gingold@adacore.com>
19300
19301 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
19302 when for_return is 2.
19303
649beb33
JL
193042011-03-28 Jeff Law <law@redhat.com>
19305
19306 * var-tracking.c (canonicalize_values_mark): Delete unused
19307 lhs assignment.
19308 (canonicalize_values_star, set_variable_part): Likewise.
19309 (clobber_variable_part, delete_variable_part): Likewise.
19310
d5b8da97
SB
193112011-03-28 Steven Bosscher <steven@gcc.gnu.org>
19312
19313 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
19314
322dd859
MJ
193152011-03-28 Martin Jambor <mjambor@suse.cz>
19316
19317 * tree-inline.c (expand_call_inline): Do not check that destination
19318 node is analyzed.
19319 (optimize_inline_calls): Assert that destination node is analyzed.
19320 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
19321 not call tree_lowering_passes.
19322 * cgraph.h (cgraph_analyze_function): Declare.
19323 * cgraphunit.c (cgraph_analyze_function): Make public.
19324
aa53e58b
JM
193252011-03-28 Joseph Myers <joseph@codesourcery.com>
19326
19327 * config/sparc/sparc-opts.h: New.
19328 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
19329 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
19330 (sparc_option_override): Store processor_type enumeration rather
19331 than string in cpu_default. Remove name and enumeration from
19332 cpu_table. Directly default -mcpu then default -mtune from -mcpu
19333 without using sparc_select. Use target_flags_explicit instead of
19334 fpu_option_set.
19335 * config/sparc/sparc.h (enum processor_type): Move to
19336 sparc-opts.h.
19337 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
19338 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
19339 HeaderInclude entry.
19340 (mcpu=, mtune=): Use Var and Enum.
19341 (sparc_processor_type): New Enum and EnumValue entries.
19342
dd350eba
RO
193432011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19344 Iain Sandoe <iains@gcc.gnu.org>
19345
19346 PR target/48245
19347 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
19348
1b29f05e
EB
193492011-03-28 Eric Botcazou <ebotcazou@adacore.com>
19350
19351 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
19352 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
19353 Insert new statements at it in lieu of STMT.
19354 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
19355 * tree-vect-stmts.c (vectorizable_store): Likewise.
19356 (vectorizable_load): Likewise.
19357
506e6808
UB
193582011-03-28 Uros Bizjak <ubizjak@gmail.com>
19359
19360 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
19361 (divtf3): Ditto.
19362 (multf3): Ditto.
19363 (subtf3): Ditto.
19364
2e939ee9
L
193652011-03-27 H.J. Lu <hongjiu.lu@intel.com>
19366
19367 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
19368 unaligned 256bit load/store.
19369 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
19370 (*avx_movdqu<avxmodesuffix>): Likewise.
19371
5e85ab88
JDA
193722011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19373
19374 PR target/48288
19375 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
19376 * config/pa/pa.md (iordi3): Use new predicate in expander.
19377 (iorsi3): Likewise.
19378
47be3d6d
AS
193792011-03-27 Anatoly Sokolov <aesok@post.ru>
19380
506e6808 19381 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 19382 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
19383 * config/mips/mips-protos.h (mips_function_value): Remove.
19384 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
19385 (mips_function_value_1): ... this. Make static. Handle receiving
19386 the function type in 'fn_decl_or_type' argument.
19387 (mips_function_value, mips_libcall_value,
19388 mips_function_value_regno_p): New function.
19389 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19390 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19391
d253656a
L
193922011-03-27 H.J. Lu <hongjiu.lu@intel.com>
19393
19394 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
19395 and -mavx256-split-unaligned-store.
19396 (ix86_option_override_internal): Split 32-byte AVX unaligned
19397 load/store by default.
19398 (ix86_avx256_split_vector_move_misalign): New.
19399 (ix86_expand_vector_move_misalign): Use it.
19400
19401 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
19402 -mavx256-split-unaligned-store.
19403
19404 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
19405 256bit load/store. Generate unaligned store on misaligned memory
19406 operand.
19407 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
19408 256bit load/store.
19409 (*avx_movdqu<avxmodesuffix>): Likewise.
19410
19411 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
19412 -mavx256-split-unaligned-store.
19413
1ea9206a
RS
194142011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
19415
19416 PR target/38598
19417 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
19418 Update commentary.
19419
b99ce2a8
RS
194202011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
19421
19422 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
19423 opno arguments with an expand_operand. Use create_input_operand.
19424 (mips_prepare_builtin_target): Delete.
19425 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
19426 functions.
19427 (mips_expand_builtin_direct): Use create_output_operand and
19428 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
19429 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
19430 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
19431
69d52339
IR
194322011-03-27 Ira Rosen <ira.rosen@linaro.org>
19433
19434 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
19435 function.
19436 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
19437
ba5e9aca
EB
194382011-03-26 Eric Botcazou <ebotcazou@adacore.com>
19439
19440 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
19441 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
19442 basic blocks and call commit_edge_insertions directly.
19443 (fixup_abnormal_edges): Move from here to...
19444 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
19445 on the edges and return whether some have actually been inserted.
19446 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
19447 compensation code.
19448
5d369d58
AB
194492011-03-26 Andrey Belevantsev <abel@ispras.ru>
19450
19451 PR rtl-optimization/48144
19452 * sel-sched-ir.c (merge_history_vect): Factor out from ...
19453 (merge_expr_data): ... here.
19454 (av_set_intersect): Rename to av_set_code_motion_filter.
19455 Update all callers. Call merge_history_vect when an expression
19456 is found in both sets.
19457 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
19458
f082c000
AM
194592011-03-26 Alan Modra <amodra@gmail.com>
19460
19461 * config/rs6000/predicates.md (word_offset_memref_op): Handle
19462 cmodel medium addresses.
19463 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
19464 64-bit gpr loads and stores.
19465 (rs6000_secondary_reload_ppc64): New function.
19466 * config/rs6000/rs6000-protos.h: Declare it.
19467 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
19468
8ac5e12e
AM
194692011-03-26 Alan Modra <amodra@gmail.com>
19470
19471 PR target/47487
19472 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
19473 GNU Go in traceback table.
19474
c2654ded
RH
194752011-03-25 Richard Henderson <rth@redhat.com>
19476
19477 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
19478 if there are exactly 6 operands.
19479 (set_storage_via_setmem): Similarly.
19480
ba78087b
KT
194812011-03-25 Kai Tietz <ktietz@redhat.com>
19482
19483 * collect2.c (write_c_file_stat): Handle backslash
19484 as right-hand directory separator.
19485 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
19486 checking just for slash.
19487 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
19488 instead of checking for trailing slash.
19489 * gcc.c (record_temp_file): Use filename_cmp instead
19490 of strcmp.
19491 (do_spec_1): Likewise.
19492 (replace_outfile_spec_function): Likewise.
19493 (is_directory): Use filename_ncmp instead of strncmp.
19494 (print_multilib_info): Likewise.
19495 * gcov.c (find_source): Use filename_cmp instead
19496 instead of strcmp.
19497 (make_gcov_file_name): Fix order of slash/backslash
19498 checks.
19499 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
19500 (add_standard_paths): Likewise.
19501 * mips-tfile.c (saber_stop): Handle backslash.
19502 * prefix.c (update_path): Use filename_ncmp instead of
19503 strncmp.
19504 * profile.c (output_location): Use filename_cmp instead
19505 of strcmp.
19506 * read-md.c (handle_toplevel_file): Handle backslash.
19507 * tlink.c (frob_extension): Likewise.
19508 * tree-cfg.c (same_line_p): Use filename_cmp instead of
19509 strcmp.
19510 * tree-dump.c (dequeue_and_dump): Handle backslash.
19511 * tree.c (get_file_function_name): Likewise.
19512 * gengtype.c (read_input_list): Likewise.
19513 (get_file_realbasename): Likewise.
19514 (get_output_file_with_visibility): Use filename_cmp
19515 instead of strcmp.
19516
75f6ec9a
RS
195172011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
19518
19519 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
19520 case to VFPv1.
19521
6c4e2997
NF
195222011-03-25 Nathan Froyd <froydnj@codesourcery.com>
19523
19524 * fold-const.c (expr_location_or): New function.
19525 (fold_truth_not_expr): Call it.
19526
0edf1bb2
JL
195272011-03-25 Jeff Law <law@redhat.com>
19528
19529 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
19530 va_end.
19531 * c-family/c-common.c (def_fn_type): Likewise.
19532 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
19533 * emit-rtl.c (gen_rtvec): Likewise.
19534 * lto/lto-lang.c (def_fn_type): Likewise.
19535
fdc2de95
RG
195362011-03-25 Richard Guenther <rguenther@suse.de>
19537
19538 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
19539 also generate copies.
19540 (fini_copy_prop): Handle constant values properly.
19541
21385db0
JJ
195422011-03-25 Jakub Jelinek <jakub@redhat.com>
19543
19544 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
19545 mode size instead of bitsize with DWARF2_ADDR_SIZE.
19546 (hash_loc_operands, compare_loc_operands): Handle
19547 DW_OP_GNU_entry_value.
19548
6510e8bb
KT
195492011-03-25 Kai Tietz <ktietz@redhat.com>
19550
19551 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
19552 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
19553 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
19554 comment and use macro TARGET_64BIT_MS_ABI instead.
19555 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
19556 and change default behavior for 32-bit MS_ABI.
19557 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
19558 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
19559 32-bit, too.
19560 (ix86_cfun_abi): Likewise.
19561 (ix86_maybe_switch_abi): Adjust comment.
19562 (init_cumulative_args): Check for bit-ness in MS_ABI case.
19563 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
19564 instead of checking for SYSV_ABI.
19565 (ix86_nsaved_sseregs): Likewise.
19566 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
19567 to 16 bytes.
19568 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
19569 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
19570 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
19571 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
19572 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
19573
34019e28
RG
195742011-03-25 Richard Guenther <rguenther@suse.de>
19575
19576 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
19577 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
19578 (verify_gimple): Remove.
19579 * tree-cfg.c (verify_gimple_call): Merge verification
19580 from verify_stmts.
19581 (verify_gimple_phi): Merge verification from verify_stmts.
19582 (verify_gimple_label): New function.
19583 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
19584 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
19585 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
19586 (verify_stmts): Rename to verify_gimple_in_cfg.
19587 (verify_gimple_in_cfg): New function.
19588 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
19589 * tree-ssa.c (verify_ssa): Likewise.
19590 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
19591
605896f5
RG
195922011-03-25 Richard Guenther <rguenther@suse.de>
19593
19594 * passes.c (init_optimization_passes): Add FRE pass after
19595 early SRA.
19596
7baa7c13
BS
195972011-03-25 Bernd Schmidt <bernds@codesourcery.com>
19598 Andrew Stubbs <ams@codesourcery.com>
19599
19600 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
19601 for Cortex-A8.
19602 (arm_movdi_vfp_cortexa8): New pattern.
19603 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
19604 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
19605 instructions when tuning for Cortex-A8. Set attribute "arch".
19606 * config/arm/arm.md: Move include arm-tune.md up a bit.
19607 (define_attr "arch"): Add "onlya8" and "nota8" values.
19608 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
19609
45dbce1b
NF
196102011-03-25 Nathan Froyd <froydnj@codesourcery.com>
19611
4ff08abf 19612 PR bootstrap/48282
45dbce1b
NF
19613 Revert:
19614 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
19615
19616 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
19617 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
19618 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
19619 * passes.c (init_optimization_passes): Move
19620 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
19621
ac9a30ae
KT
196222011-03-25 Kai Tietz <ktietz@redhat.com>
19623
19624 * c-typeck.c (comptypes_internal): Replace target
19625 hook call of comp_type_attributes by version in tree.c file.
19626 * gimple.c (gimple_types_compatible_p_1): Likewise.
19627 * tree-ssa.c (useless_type_conversion_p): Likewise.
19628 * tree.c (build_type_attribute_qual_variant): Likewise.
19629 (attribute_value_equal): New static helper function.
19630 (comp_type_attributes): New function.
19631 (merge_attributes): Use attribute_value_equal for comparison.
19632 (attribute_list_contained): Likewise.
19633 * tree.h (comp_type_attributes): New prototype.
19634
afdac116
RG
196352011-03-25 Richard Guenther <rguenther@suse.de>
19636
19637 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
19638 of complex types at -O0.
19639 (verify_gimple_assign_binary): Likewise.
19640 (verify_gimple_assign_ternary): Likewise.
19641
ec6165f8
MW
196422011-03-24 Mark Wielaard <mjw@redhat.com>
19643
19644 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
19645 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
19646
2a5ac39a
MW
196472011-03-24 Mark Wielaard <mjw@redhat.com>
19648
19649 PR debug/48041
19650 * dwarf2out.c (output_abbrev_section): Only write table when
19651 abbrev_die_table_in_use > 1.
19652
e533b2a4
RH
196532011-02-24 Richard Henderson <rth@redhat.com>
19654
19655 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
19656 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
19657 (alpha_expand_unaligned_load_words): Use extql.
19658 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
19659 (emit_insxl): Handle all modes for consistency.
19660
0b2a7367
RH
196612011-02-24 Richard Henderson <rth@redhat.com>
19662
19663 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
19664 (alpha_expand_unaligned_load): Likewise.
19665 (alpha_expand_unaligned_store): Likewise.
19666 (alpha_expand_unaligned_load_words): Likewise.
19667 (alpha_expand_unaligned_store_words): Likewise.
19668 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
19669 (alpha_split_lock_test_and_set_12): Likewise.
19670 (print_operand, alpha_fold_builtin_extxx): Likewise.
19671 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
19672 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
19673 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
19674 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
19675 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
19676 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
19677 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
19678 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
19679 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
19680 (extwl, extll, extql): Similarly.
19681 (inswh, inslh, insqh): Similarly.
19682 (mskbl, mskwl, mskll, mskql): Similarly.
19683 (mskwh, msklh, mskqh): Similarly.
19684
315b2bef
RH
196852011-02-24 Richard Henderson <rth@redhat.com>
19686
19687 * config/alpha/alpha.md (attribute isa): Add er, ner.
19688 (attribute enabled): Handle them.
19689 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
19690
67102517
RH
196912011-02-24 Richard Henderson <rth@redhat.com>
19692
19693 * config/alpha/alpha.md (attribute isa): Add vms.
19694 (attribute enabled): Handle it.
19695 (*movsf): Merge *movsf_{nofix,fix,nofp}.
19696 (*movdf): Merge *movdf_{nofix,fix,nofp}.
19697 (*movtf): Rename from *movtf_internal for consistency.
19698 (*movsi): Merge with *movsi_nt_vms.
19699 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
19700 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
19701 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
19702 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
19703
6aba5cb4
RH
197042011-02-24 Richard Henderson <rth@redhat.com>
19705
19706 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
19707 (extendqisi2, extendhisi2): Likewise.
19708 (extendqidi2): Simplify BWX/non-BWX expansions.
19709 (extendhidi2): Similarly.
19710
bdfb351b
RH
197112011-02-24 Richard Henderson <rth@redhat.com>
19712
19713 * config/alpha/alpha.md (attribute isa): New.
19714 (attribute enabled): New.
19715 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
19716 (zero_extendqisi2, zero_extendqidi2): Similarly.
19717 (zero_extendhisi2, zero_extendhidi2): Similarly.
19718 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
19719
6abe71eb
RH
197202011-02-24 Richard Henderson <rth@redhat.com>
19721
19722 * config/alpha/predicates.md (input_operand): Revert last change;
19723 update comment to mention 32-bit VMS rather than Windows.
19724
7114321e
NF
197252011-03-24 Nathan Froyd <froydnj@codesourcery.com>
19726
19727 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
19728 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
19729 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
19730 * passes.c (init_optimization_passes): Move
19731 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
19732
c8679567
EB
197332011-03-24 Eric Botcazou <ebotcazou@adacore.com>
19734
19735 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
19736
27173058
UB
197372011-03-24 Uros Bizjak <ubizjak@gmail.com>
19738
19739 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
19740 correctly.
19741
6f0c9f06
JJ
197422011-03-24 Jakub Jelinek <jakub@redhat.com>
19743
19744 PR debug/48204
19745 * simplify-rtx.c (simplify_const_unary_operation): Call
19746 real_convert when changing mode class with FLOAT_EXTEND.
19747
662666e5
NC
197482011-03-24 Nick Clifton <nickc@redhat.com>
19749
19750 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
19751 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
19752 * config/rx/rx.c (rx_option_override): Set align_jumps,
19753 align_loops and align_labels if not set by the user.
19754 (rx_align_for_label): New function.
19755 (rx_max_skip_for_label): New function.
19756 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
19757 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
19758 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
19759 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
19760 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
19761
2b99b2b8
RS
197622011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
19763
19764 PR rtl-optimization/48263
19765 * optabs.c (expand_binop_directly): Reinstate convert_modes code
19766 and original commutative_p handling. Use maybe_gen_insn.
19767
ccecd6ea
AK
197682011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19769
19770 * reload.c (find_reloads_subreg_address): Add address_reloaded
19771 parameter and return true there if the full address has been
19772 reloaded.
19773 (find_reloads_toplev): Pass address_reloaded flag.
19774 (find_reloads_address_1): Don't use address_reloaded parameter.
19775
67295642
JL
197762011-03-24 Jeff Law <law@redhat.com>
19777
19778 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
19779 unused variable "ann".
19780 (remove_unused_locals): Likewise.
19781
19782 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
19783 statement.
19784
19785 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
19786 after it is freed.
19787
212aa74f
AK
197882011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19789
19790 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
19791 for invalid symbolic addresses.
19792 (s390_secondary_reload): Don't use s390_check_symref_alignment for
19793 larl operands.
19794
fe784e0d
EB
197952011-03-24 Eric Botcazou <ebotcazou@adacore.com>
19796
19797 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
19798 the argument in calls to fold_truth_not_expr.
19799
63ee8641
NF
198002011-03-24 Nathan Froyd <froydnj@codesourcery.com>
19801
19802 * tree.c (record_node_allocation_statistics): New function.
19803 (make_node_stat, copy_node_stat, build_string): Call it.
19804 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
19805 (build1_stat, build_omp_clause): Likewise.
19806
61be2a1c
RS
198072011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
19808
19809 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
19810 last commit.
19811
a881aaa7
RG
198122011-03-24 Richard Guenther <rguenther@suse.de>
19813
19814 PR tree-optimization/48271
19815 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
19816 blocks that still exist.
19817
dbaa912c
RG
198182011-03-24 Richard Guenther <rguenther@suse.de>
19819
19820 PR tree-optimization/48270
19821 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
19822 not free datarefs before ddrs.
19823
1d60cc55
EB
198242011-03-24 Eric Botcazou <ebotcazou@adacore.com>
19825
19826 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
19827 from the address built for a reference with variable offset.
19828
c78dd519
UB
198292011-03-24 Uros Bizjak <ubizjak@gmail.com>
19830
19831 PR target/48237
19832 * config/i386/i386.md (*movdf_internal_rex64): Do not split
19833 alternatives that can be handled with movq or movabsq insn.
19834 (*movdf_internal): Disable for !TARGET_64BIT.
19835 (*movdf_internal_nointeger): Ditto.
19836 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
19837
b25b9e8f
NF
198382011-03-24 Nathan Froyd <froydnj@codesourcery.com>
19839
19840 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
19841 (FUNCTION_ARG_ADVANCE): Likewise.
19842 * tm.texi.in: Change references to them to hook references.
19843 * tm.texi: Regenerate.
c78dd519 19844 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
19845 (default_function_incoming_arg): Likewise.
19846 (default_function_arg_advance): Likewise.
c78dd519 19847 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
19848 (function_arg_advance): Likewise.
19849 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
19850
190b2187
RG
198512011-03-24 Richard Guenther <rguenther@suse.de>
19852
19853 PR middle-end/48269
19854 * tree-object-size.c (addr_object_size): Do not double-account
19855 for MEM_REF offsets.
19856
a183b5c7
DN
198572011-03-24 Diego Novillo <dnovillo@google.com>
19858
19859 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 19860 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
19861 (lto_input_data_block): Move from lto-opts.c. Make extern.
19862 Update all users.
19863 (lto_input_string): Rename from input_string. Make extern.
19864 Update all users.
19865 * lto-streamer-out.c (lto_output_string_with_length): Rename from
19866 output_string_with_length.
19867 Output 0 to indicate a non-NULL string. Update all callers to
19868 not emit 0.
19869 (lto_output_string): Rename from output_string. Make extern.
19870 Update all users.
19871 (lto_output_decl_state_streams): Make extern.
19872 (lto_output_decl_state_refs): Make extern.
19873 * lto-streamer.h (lto_input_string): Declare.
19874 (lto_input_data_block): Declare.
19875 (lto_output_string): Declare.
19876 (lto_output_string_with_length): Declare.
19877 (lto_output_decl_state_streams): Declare.
19878 (lto_output_decl_state_refs): Declare.
19879
cfef45c8
RG
198802011-03-24 Richard Guenther <rguenther@suse.de>
19881
19882 PR tree-optimization/46562
19883 * tree.c (build_invariant_address): New function.
19884 * tree.h (build_invariant_address): Declare.
19885 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
19886 a renamed function moved ...
19887 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
19888 Take valueization callback parameter.
19889 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
19890 * gimple-fold.h: New file.
19891 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
19892 (ccp_fold, fold_const_aggregate_ref,
19893 fold_ctor_reference, fold_nonarray_ctor_reference,
19894 fold_array_ctor_reference, fold_string_cst_ctor_reference,
19895 get_base_constructor): Move ...
19896 * gimple-fold.c: ... here.
19897 (gimple_fold_stmt_to_constant_1): New function
19898 split out from ccp_fold. Take a valueization callback parameter.
19899 Valueize all operands.
19900 (gimple_fold_stmt_to_constant): New wrapper function.
19901 (fold_const_aggregate_ref_1): New function split out from
19902 fold_const_aggregate_ref. Take a valueization callback parameter.
19903 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
19904 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
19905 invariant POINTER_PLUS_EXPRs to invariant form.
19906 (vn_valueize): New function.
19907 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
19908 * tree-vrp.c (vrp_valueize): New function.
19909 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
19910 to fold statements to constants.
19911 * tree-ssa-pre.c (eliminate): Properly guard propagation of
19912 function declarations.
19913 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
19914 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
19915
5e0a7e40
RS
199162011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
19917
19918 * config/h8300/predicates.md (jump_address_operand): Fix register
19919 mode check.
19920
bfe068c3
IR
199212011-03-24 Ira Rosen <ira.rosen@linaro.org>
19922
19923 * doc/invoke.texi (max-stores-to-sink): Document.
19924 * params.h (MAX_STORES_TO_SINK): Define.
19925 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
19926 if either vectorization or if-conversion is disabled.
19927 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
19928 tree-vect-data-refs.c vect_equal_offsets.
19929 (dr_equal_offsets_p): New function.
19930 (find_data_references_in_bb): Remove static.
19931 * tree-data-ref.h (find_data_references_in_bb): Declare.
19932 (dr_equal_offsets_p): Likewise.
19933 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
19934 (vect_drs_dependent_in_basic_block): Update calls to
19935 vect_equal_offsets.
19936 (vect_check_interleaving): Likewise.
19937 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
19938 (cond_if_else_store_replacement): Rename to...
19939 (cond_if_else_store_replacement_1): ... this. Change arguments and
19940 documentation.
19941 (cond_if_else_store_replacement): New function.
19942 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
19943 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
19944
4908b0bf
CLT
199452011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
19946
19947 PR target/46934
19948 * config/arm/arm.md (casesi): Use the gen_int_mode() function
19949 to subtract lower bound instead of GEN_INT().
19950
2be478a2
JW
199512011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
19952
19953 PR other/48179
19954 PR other/48221
19955 PR other/48234
19956 * doc/extend.texi (Alignment): Move section to match order in TOC.
19957 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
19958 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
19959
0c617be4
JL
199602011-03-23 Jeff Law <law@redhat.com>
19961
19962 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
19963 before removing the edge.
19964
19965 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
19966 it may have been freed by redirect_branch_edge or
19967 redirect_edge_succ_nodup.
19968
58da96fe
RG
199692011-03-23 Richard Guenther <rguenther@suse.de>
19970
c78dd519 19971 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
19972 (check_va_list_escapes): Likewise.
19973 (check_all_va_list_escapes): Likewise.
19974
b8beb4d1
RG
199752011-03-23 Richard Guenther <rguenther@suse.de>
19976
19977 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
19978 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
19979 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
19980 (alias.o): Likewise.
19981 (ipa-type-escape.o): Remove.
19982 (ipa-struct-reorg.o): Likewise.
19983 (GTFILES): Remove ipa-struct-reorg.c.
19984 * alias.c: Do not include ipa-type-escape.h.
19985 * tree-ssa-alias.c: Likewise.
19986 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
19987 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
19988 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
19989 and ipa-type-escape passes.
19990 * tree-pass.h (pass_ipa_type_escape): Remove.
19991 (pass_ipa_struct_reorg): Likewise.
19992 * ipa-struct-reorg.h: Remove.
19993 * ipa-struct-reorg.c: Likewise.
19994 * ipa-type-escape.h: Likewise.
19995 * ipa-type-escape.c: Likewise.
19996 * doc/invoke.texi (-fipa-struct-reorg): Remove.
19997 (--param struct-reorg-cold-struct-ratio): Likewise.
19998 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
19999 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
20000 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
20001
f137aa63
AK
200022011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20003
20004 * config/s390/2084.md: Enable all insn reservations also for z9_ec
20005 cpu attribute value.
20006 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
20007 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
20008 * config/s390/s390.c (processor_flags_table): New constant array.
20009 (s390_handle_arch_option): Remove.
20010 (s390_handle_option): Remove s390_handle_arch_option invocations
20011 and OPT_mwarn_framesize_ handling.
20012 (s390_option_override): Remove s390_handle_arch_option invocation.
20013 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
20014 warnings.
20015 * config/s390/s390.md (cpu attribute): Add z9_ec value.
20016 * config/s390/s390.opt (s390_tune, s390_arch)
20017 (march=): Replace s390_arch_option enum and values with
20018 processor_type. Set variable name to s390_arch. Set
20019 initialization value.
20020 (mtune=): Replace s390_arch_option with processor_type. Set
20021 variable name to s390_tune. Set initialization value.
20022
bf90208f
JB
200232011-03-23 Julian Brown <julian@codesourcery.com>
20024
20025 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
20026 accesses which are not naturally aligned.
20027
3460fdf3
RS
200282011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
20029
20030 PR target/47553
20031 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
20032
a5c7d693
RS
200332011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
20034
20035 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
20036 parameter from "int" to "enum insn_code".
20037 (expand_operand_type): New enum.
20038 (expand_operand): New structure.
20039 (create_expand_operand): New function.
20040 (create_fixed_operand, create_output_operand): Likewise
20041 (create_input_operand, create_convert_operand_to): Likewise.
20042 (create_convert_operand_from, create_address_operand): Likewise.
20043 (create_integer_operand): Likewise.
20044 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
20045 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
20046 (expand_insn, expand_jump_insn): Likewise.
20047 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
20048 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
20049 (expand_movstr, expand_builtin___clear_cache): Likewise.
20050 (expand_builtin_lock_release): Likewise.
20051 * explow.c (allocate_dynamic_stack_space): Likewise.
20052 (probe_stack_range): Likewise. Allow check_stack to FAIL,
20053 and use the default handling in that case.
20054 * expmed.c (check_predicate_volatile_ok): Delete.
20055 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
20056 (emit_cstore): Likewise.
20057 * expr.c (emit_block_move_via_movmem): Likewise.
20058 (set_storage_via_setmem, expand_assignment): Likewise.
20059 (emit_storent_insn, try_casesi): Likewise.
20060 (emit_single_push_insn): Likewise. Allow the expansion to fail.
20061 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
20062 (expand_vec_shift_expr, expand_binop_directly): Likewise.
20063 (expand_twoval_unop, expand_twoval_binop): Likewise.
20064 (expand_unop_direct, emit_indirect_jump): Likewise.
20065 (emit_conditional_move, vector_compare_rtx): Likewise.
20066 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
20067 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
20068 (expand_sync_lock_test_and_set): Likewise.
20069 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
20070 (emit_unop_insn): Likewise.
20071 (expand_copysign_absneg): Change icode to an insn_code.
20072 (create_convert_operand_from_type): New function.
20073 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
20074 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
20075 (expand_insn, expand_jump_insn): Likewise.
20076 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
20077 than const_int_operand for operand 2.
20078
78fadbab
AK
200792011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20080
20081 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
20082 if possible.
20083
5f02387d
NF
200842011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20085
20086 * emit-rtl.c (emit_pattern_before_noloc): New function.
20087 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
20088 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
20089 (emit_pattern_after_noloc): New function.
20090 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
20091 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
20092
fdf3e18a
NF
200932011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20094
20095 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
20096 (__ffsDI2): Likewise.
20097
42d085c1
RH
200982011-03-22 Richard Henderson <rth@redhat.com>
20099
20100 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
20101 of !TARGET_ABI_OPEN_VMS.
20102 (alpha_trampoline_init, alpha_start_function): Likewise.
20103 (alpha_expand_epilogue, alpha_file_start): Likewise.
20104 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
20105 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
20106 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
20107 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
20108 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
20109
cabbe12a
JM
201102011-03-22 Joseph Myers <joseph@codesourcery.com>
20111
20112 * config/s390/s390-opts.h: New.
20113 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
20114 s390_arch_flags, s390_warn_framesize, s390_stack_size,
20115 s390_stack_guard): Remove.
20116 (s390_handle_arch_option): Return void. Take enum
20117 s390_arch_option value instead of string and searching array.
20118 (s390_handle_option): Don't assert that global structures are in
20119 use. Access variables via opts pointer. Use error_at. Don't use
20120 sscanf for -mstack-guard= or -mstack-size=. Update call to
20121 s390_handle_arch_option.
20122 (s390_option_override): Update call to s390_handle_arch_option.
20123 (s390_emit_prologue): Use %d format for s390_stack_size in
20124 diagnostic. Use %wd for HOST_WIDE_INT.
20125 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
20126 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
20127 * config/s390/s390.opt (config/s390/s390-opts.h): New
20128 HeaderInclude entry.
20129 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
20130 s390_arch_flags, s390_warn_framesize): New Variable entries.
20131 (s390_arch_option): New Enum and EnumValue entries.
20132 (march=): Use Enum instead of Var.
20133 (mstack-guard=, mstack-size=): Use UInteger and Var.
20134 (mtune=): Use Enum.
20135
05b12036
JM
201362011-03-22 Joseph Myers <joseph@codesourcery.com>
20137
20138 * config/score/score.c (score_handle_option): Don't assert that
20139 global structures are in use. Access target_flags via opts
20140 pointer. Use value of -march= option to determine target_flags
20141 settings.
20142 * config/score/score.opt (march=): Use Enum.
20143 (score_arch): New Enum and EnumValue entries.
20144
dd51e35a
JM
201452011-03-22 Joseph Myers <joseph@codesourcery.com>
20146
20147 * config/mep/mep.c (option_mtiny_specified): Remove.
20148 (mep_option_override): Move register handling for -mivc2 from
20149 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
20150 instead of option_mtiny_specified.
20151 (mep_handle_option): Access target_flags via opts pointer. Don't
20152 assert that global structures are in use. Defer part of -mivc2
20153 handling and move it to mep_option_override.
20154 * config/mep/mep.opt (IVC2): New Mask entry.
20155 (mivc2): Use Var and Defer instead of Mask.
20156
4a8d3d91
JM
201572011-03-22 Joseph Myers <joseph@codesourcery.com>
20158
20159 * config/v850/v850-opts.h: New.
20160 * config/v850/v850.c (small_memory): Replace with
20161 small_memory_physical_max array. Make that array static const.
20162 (v850_handle_memory_option): Take integer value of argument. Take
20163 gcc_options pointer, option text and location. Return void.
20164 Update for changes to small memory structures.
20165 (v850_handle_option): Access target_flags via opts pointer. Don't
20166 assert that global structures are in use. Update calls to
20167 v850_handle_memory_option.
c78dd519
UB
20168 (v850_encode_data_area): Update references to small memory settings.
20169 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
20170 (enum small_memory_type): Move to v850-opts.h.
20171 * config/v850/v850.opt (config/v850/v850-opts.h): New
20172 HeaderInclude entry.
20173 (small_memory_max): New Variable entry.
20174 (msda): Replace by pair of options msda= and msda-. Use UInteger.
20175 (mtda, mzda): Likewise.
20176
117fdbfa
JM
201772011-03-22 Joseph Myers <joseph@codesourcery.com>
20178
20179 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
20180 pointer. Don't assert that global structures are in use.
20181
d715091c
JM
201822011-03-22 Joseph Myers <joseph@codesourcery.com>
20183
20184 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
20185 via opts pointer. Don't assert that global structures are in use.
20186
1bb721dc
JM
201872011-03-22 Joseph Myers <joseph@codesourcery.com>
20188
20189 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
20190 (munix=93): Use Var.
20191 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
20192 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
20193 * config/pa/pa-opts.h: New.
20194 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
20195 (pa_handle_option): Don't assert that global structures are in
20196 use. Access target_flags via opts pointer. Don't handle
20197 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
20198 OPT_munix_98 here.
20199 (pa_option_override): Handle deferred OPT_mfixed_range_.
20200
cd8d8754
JM
202012011-03-22 Joseph Myers <joseph@codesourcery.com>
20202
20203 * config/mn10300/mn10300-opts.h: New.
20204 * config/mn10300/mn10300.c (mn10300_processor,
20205 mn10300_tune_string): Remove.
20206 (mn10300_handle_option): Don't assert that global structures are
20207 in use. Access mn10300_processor via opts pointer. Don't handle
20208 OPT_mtune_ here.
20209 * config/mn10300/mn10300.h (enum processor_type): Move to
20210 mn10300-opts.h.
20211 (mn10300_processor): Remove.
20212 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
20213 HeaderInclude entry.
20214 (mn10300_processor): New Variable entry.
20215 (mtune=): Use Var.
20216
24e6e6b1
JM
202172011-03-22 Joseph Myers <joseph@codesourcery.com>
20218
20219 * config/microblaze/microblaze.c: Don't include opts.h.
20220 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
20221 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
20222 (mno-clearbss): Use Var and Warn.
20223
8a784afb
JM
202242011-03-22 Joseph Myers <joseph@codesourcery.com>
20225
20226 * config/m32r/m32r-opts.h: New.
20227 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
20228 (m32r_handle_option): Don't assert that global structures are in
20229 use. Access target_flags and m32r_cache_flush_func via opts
20230 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
20231 OPT_mno_flush_trap here.
20232 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
20233 include of m32r-opts.h.
20234 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
20235 HeaderInclude entry.
20236 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
20237 (mmodel=): Use Enum and Var.
20238 (m32r_model): New Enum and EnumValue entries.
20239 (mno-flush-trap): Use Var.
20240 (msdata=): Use Enum and Var.
20241 (m32r_sdata): New Enum and EnumValue entries.
20242
bbfc9a8c
JM
202432011-03-22 Joseph Myers <joseph@codesourcery.com>
20244
20245 * config/m32c/m32c.c: Don't include opts.h.
20246 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
20247 m32c_handle_option): Remove.
20248 (m32c_option_override): Check global_options_set.x_target_memregs
20249 instead of target_memregs_set.
20250 * config/m32c/m32c.h (target_memregs): Remove.
20251 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
20252 variable.
20253
e24b8335
JM
202542011-03-22 Joseph Myers <joseph@codesourcery.com>
20255
20256 * config/iq2000/iq2000-opts.h: New.
20257 * config/iq2000/iq2000.c: Don't include opts.h.
20258 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 20259 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
20260 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
20261 HeaderInclude entry.
20262 (iq2000_tune): New Variable entry.
20263 (march=): Add comment. Use Enum.
20264 (iq2000_arch): New Enum and EnumValue entries.
20265 (mcpu=): Use Enum and Var.
20266 (iq2000_tune): New Enum and EnumValue entries.
20267
e6cc0c98
JM
202682011-03-22 Joseph Myers <joseph@codesourcery.com>
20269
20270 * config/ia64/ia64-opts.h: New.
20271 * config/ia64/ia64.c (ia64_tune): Remove.
20272 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
20273 here. Use error_at.
20274 (ia64_option_override): Handle deferred OPT_mfixed_range_.
20275 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
20276 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
20277 HeaderInclude entry.
20278 (ia64_tune): New Variable entry.
20279 (mfixed-range=): Use Defer and Var.
20280 (mtune=): Use Enum and Var.
20281 (ia64_tune): New Enum and EnumValue entries.
20282
db25893c
JM
202832011-03-22 Joseph Myers <joseph@codesourcery.com>
20284
20285 * config/frv/frv-opts.h: New.
20286 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
20287 frv-opts.h.
20288 (frv_cpu_type): Remove.
20289 * config/frv/frv.c: Don't include opts.h.
20290 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 20291 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
20292 (frv_cpu_type): New Variable entry.
20293 (frv_cpu): New Enum and EnumValue entries.
20294
6c223f5d
JM
202952011-03-22 Joseph Myers <joseph@codesourcery.com>
20296
20297 * config/cris/cris.c (cris_handle_option): Access target_flags via
20298 opts pointer. Don't assert that global structures are in use.
20299 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
20300 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
20301
bbd399cf
JM
203022011-03-22 Joseph Myers <joseph@codesourcery.com>
20303
20304 * config/bfin/bfin-opts.h: New.
20305 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
20306 bfin_si_revision, bfin_workarounds): Remove.
20307 (bfin_cpus): Make static const.
20308 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
20309 not bfin_lib_id_given.
20310 (bfin_handle_option): Don't set bfin_lib_id_given. Access
20311 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 20312 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
20313 * config/bfin/bfin.h: Include bfin-opts.h.
20314 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
20315 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
20316 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
20317 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
20318 entries.
20319
5e1b4d5a
JM
203202011-03-22 Joseph Myers <joseph@codesourcery.com>
20321
20322 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
20323 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
20324 or -msoft-float here.
20325 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
20326 -msoft-float and -mhard-float.
c78dd519 20327 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
20328 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
20329 msoft-float.
20330 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
20331 -msoft-float.
20332 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
20333 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
20334 not mhard-float.
20335 (LIBGCC_SPEC): Don't handle -msoft-float.
20336 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
20337 -mhard-float.
20338 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
20339 msoft-float.
20340 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
20341 -mfloat-abi=*, not -msoft-float and -mhard-float.
20342 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
20343 -msoft-float.
20344 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
20345 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
20346 mhard-float and msoft-float.
20347 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
20348 mfloat-abi=soft in comments, not mhard-float and msoft-float.
20349 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
20350 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
20351 mhard-float.
20352 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
20353 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
20354 msoft-float.
20355 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
20356 not mhard-float.
20357 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
20358 not msoft-float.
20359
800d1de1
RH
203602011-03-22 Richard Henderson <rth@redhat.com>
20361
20362 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
20363 TARGET_ABI_WINDOWS_NT.
20364 (alpha_output_function_end_prologue): Likewise.
20365 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
20366 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20367 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
20368 (trap, *movsi_nt_vms): Likewise.
20369 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
20370 (*tablejump_osf_nt_internal): Remove.
20371 * config/alpha/predicates.md (input_operand): Only test Pmode.
20372
c59ddd2b
JM
203732011-03-22 Joseph Myers <joseph@codesourcery.com>
20374
20375 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
20376 via opts pointer. Use error_at. Don't assert that global
20377 structures are in use.
20378
1333f97f
JM
203792011-03-22 Joseph Myers <joseph@codesourcery.com>
20380
20381 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
20382 (ix86_handle_option): Access ix86_isa_flags and
20383 ix86_isa_flags_explicit via opts pointer. Don't assert that
20384 global structures are in use.
20385 (ix86_function_specific_save, ix86_function_specific_restore):
20386 Update ix86_isa_flags_explicit field name.
c78dd519 20387 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
20388 (ix86_isa_flags_explicit): Rename TargetSave entry to
20389 x_ix86_isa_flags_explicit.
20390
75db85d8
RH
203912011-03-22 Richard Henderson <rth@redhat.com>
20392
20393 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
20394 (alpha_option_override, direct_return): Likewise.
20395 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
20396 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
20397 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
20398 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
20399 (alpha_expand_epilogue, alpha_end_function): Likewise.
20400 (alpha_init_libfuncs): Likewise.
20401 (struct machine_function): Remove unicosmk members.
20402 (print_operand) ['t']: Remove.
20403 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
20404 unicosmk_output_module_name, unicosmk_output_common,
20405 current_section_align, unicosmk_output_text_section_asm_op,
20406 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
20407 unicosmk_section_type_flags, unicosmk_unique_section,
20408 unicosmk_asm_named_section, unicosmk_insert_attributes,
20409 unicosmk_output_align, unicosmk_defer_case_vector,
20410 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
20411 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
20412 unicosmk_output_ssib, unicosmk_add_call_info_word,
20413 unicosmk_extern_head, unicosmk_output_default_externs,
20414 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
20415 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
20416 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
20417 * config/alpha/alpha-protos.h: Update.
20418 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
20419 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
20420 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
20421 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
20422 (*mulsi_se, mulvsi3): Likewise.
20423 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
20424 (*divmodsi_internal, call, call_value, realign): Likewise.
20425 (moddi3, umoddi3): Likewise; remove duplicate expander.
20426 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
20427 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
20428 (*movdi_nofix): Remove r/U alternative.
20429 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
20430 * config/alpha/constraints.md ("U"): Remove.
20431 * config/alpha/predicates.md (call_operand"): Don't test
20432 TARGET_ABI_UNICOSMK.
20433
96e45421
JM
204342011-03-22 Joseph Myers <joseph@codesourcery.com>
20435
20436 * target.def (handle_option): Take gcc_options and
20437 cl_decoded_option pointers and location_t.
20438 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
20439 * doc/tm.texi: Regenerate.
20440 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
20441 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
20442 * lto-opts.c (lto_reissue_options): Generate option structure for
20443 targetm.handle_option call.
20444 * opts.c (target_handle_option): Update call to
20445 targetm.handle_option. Remove assertions about values now passed
20446 down to hook.
20447 * targhooks.c (default_target_handle_option): New.
20448 * targhooks.h (default_target_handle_option): Declare.
20449 * config/alpha/alpha.c: Include opts.h.
20450 (alpha_handle_option): Update to new hook interface.
20451 * config/arm/arm.c: Include opts.h.
20452 (arm_handle_option): Update to new hook interface.
20453 * config/arm/t-arm (arm.o): Update dependencies.
20454 * config/bfin/bfin.c: Include opts.h.
20455 (bfin_handle_option): Update to new hook interface.
20456 * config/cris/cris.c: Include opts.h.
20457 (cris_handle_option): Update to new hook interface.
20458 * config/frv/frv.c: Include opts.h.
20459 (frv_handle_option): Update to new hook interface.
20460 * config/i386/i386.c: Include opts.h.
20461 (ix86_handle_option): Update to new hook interface.
20462 (ix86_valid_target_attribute_inner_p): Generate option structure
20463 for call to ix86_handle_option.
20464 * config/i386/t-i386 (i386.o): Update dependencies.
20465 * config/ia64/ia64.c: Include opts.h.
20466 (ia64_handle_option): Update to new hook interface.
20467 * config/ia64/t-ia64 (ia64.o): Update dependencies.
20468 * config/iq2000/iq2000.c: Include opts.h.
20469 (iq2000_handle_option): Update to new hook interface.
20470 * config/m32c/m32c.c: Include opts.h.
20471 (m32c_handle_option): Update to new hook interface.
20472 * config/m32r/m32r.c: Include opts.h.
20473 (m32r_handle_option): Update to new hook interface.
20474 * config/m68k/m68k.c: Include opts.h.
20475 (m68k_handle_option): Update to new hook interface.
20476 * config/mep/mep.c: Include opts.h.
20477 (mep_handle_option): Update to new hook interface.
20478 * config/microblaze/microblaze.c: Include opts.h.
20479 (microblaze_handle_option): Update to new hook interface.
20480 * config/mips/mips.c: Include opts.h.
20481 (mips_handle_option): Update to new hook interface.
20482 * config/mn10300/mn10300.c: Include opts.h.
20483 (mn10300_handle_option): Update to new hook interface.
20484 * config/pa/pa.c: Include opts.h.
20485 (pa_handle_option): Update to new hook interface.
20486 * config/pdp11/pdp11.c: Include opts.h.
20487 (pdp11_handle_option): Update to new hook interface.
20488 * config/rs6000/rs6000.c: Include opts.h.
20489 (rs6000_handle_option): Update to new hook interface.
20490 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
20491 * config/rx/rx.c: Include opts.h.
20492 (rx_handle_option): Update to new hook interface.
20493 * config/s390/s390.c: Include opts.h.
20494 (s390_handle_option): Update to new hook interface.
20495 * config/score/score.c: Include opts.h.
20496 (score_handle_option): Update to new hook interface.
20497 * config/sh/sh.c: Include opts.h.
20498 (sh_handle_option): Update to new hook interface.
20499 * config/sparc/sparc.c: Include opts.h.
20500 (sparc_handle_option): Update to new hook interface.
20501 * config/v850/v850.c: Include opts.h.
20502 (v850_handle_option): Update to new hook interface.
20503
66017846
JM
205042011-03-22 Joseph Myers <joseph@codesourcery.com>
20505
20506 * gcc.c (driver_unknown_option_callback): Only permit and save
20507 unknown -Wno- options.
20508 (driver_wrong_lang_callback): Save options directly instead of via
20509 driver_unknown_option_callback.
20510
e8b97ccd
EB
205112011-03-22 Eric Botcazou <ebotcazou@adacore.com>
20512
20513 * combine.c (simplify_set): Try harder to find the best CC mode when
20514 simplifying a nested COMPARE on the RHS.
20515
ebb9f8b0
JM
205162011-03-22 Joseph Myers <joseph@codesourcery.com>
20517
20518 * config/alpha/gnu.h: Remove.
20519 * config/arc: Remove directory.
20520 * config/arm/netbsd.h: Remove.
20521 * config/arm/t-pe: Remove.
20522 * config/crx: Remove directory.
20523 * config/i386/netbsd.h: Remove.
20524 * config/m68hc11: Remove directory.
20525 * config/m68k/uclinux-oldabi.h: Remove.
20526 * config/mcore/mcore-pe.h: Remove.
20527 * config/mcore/t-mcore-pe: Remove.
20528 * config/netbsd-aout.h: Remove.
20529 * config/rs6000/gnu.h: Remove.
20530 * config/sh/sh-symbian.h: Remove.
20531 * config/sh/symbian-base.c: Remove.
20532 * config/sh/symbian-c.c: Remove.
20533 * config/sh/symbian-cxx.c: Remove.
20534 * config/sh/symbian-post.h: Remove.
20535 * config/sh/symbian-pre.h: Remove.
20536 * config/sh/t-symbian: Remove.
20537 * config/svr3.h: Remove.
20538 * config/vax/netbsd.h: Remove.
20539 * config.build: Don't handle i[34567]86-*-pe.
20540 * config.gcc: Remove handling of deprecations for most deprecated
20541 targets.
20542 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
20543 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
20544 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
20545 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
20546 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
20547 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
20548 Remove cases.
20549 * config.host: Don't handle i[34567]86-*-pe.
20550 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
20551 (ASM_SPEC32): Don't handle -mcall-gnu.
20552 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
20553 -mcall-gnu.
20554 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
20555 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
20556 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
20557 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
20558 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
20559 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
20560 conditional on SYMBIAN.
20561 * configure.ac: Don't handle powerpc*-*-gnu*.
20562 * configure: Regenerate.
20563 * doc/extend.texi (interrupt attribute): Don't mention CRX.
20564 * doc/install-old.texi (m6811, m6812): Don't mention.
20565 * doc/install.texi (arc-*-elf*): Don't document multilib option.
20566 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
20567 (m68k-uclinuxoldabi): Don't mention.
20568 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
20569 Remove.
20570 (-mcall-gnu): Remove.
20571 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
20572 families): Remove constraint documentation.
20573
999a7d80
MS
205742011-03-22 Marius Strobl <marius@FreeBSD.org>
20575
20576 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
20577 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
20578 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
20579
45540bcf
MM
205802011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20581
20582 PR target/48226
20583 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
20584 vector when peeking at the next token for vector, don't expand the
20585 keywords.
20586
980a0ff4
GJL
205872011-03-21 Georg-Johann Lay <avr@gjlay.de>
20588
20589 * config/avr/avr-protos.h (expand_epilogue): Change prototype
20590 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
20591 * config/avr/avr.c (init_cumulative_args)
20592 (avr_function_arg_advance): Use it.
20593 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
20594 sibcall epilogues.
20595 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
20596 (avr_function_ok_for_sibcall): ...this new function.
20597 (avr_lookup_function_attribute1): New static Function.
20598 (avr_naked_function_p, interrupt_function_p)
20599 (signal_function_p, avr_OS_task_function_p)
20600 (avr_OS_main_function_p): Use it.
20601 * config/avr/avr.md ("sibcall", "sibcall_value")
20602 ("sibcall_epilogue"): New expander.
20603 ("*call_insn", "*call_value_insn"): New insn.
20604 ("call_insn", "call_value_insn"): Remove
20605 ("call", "call_value", "epilogue"): Change expander to handle
20606 sibling calls.
20607
49168734
NC
206082011-03-21 Nick Clifton <nickc@redhat.com>
20609
20610 * doc/invoke.texi (Overall Options): Move closing brace to end of
20611 options list.
20612 (Optimization Options): Add missing @gol.
20613 (Directory Options): Likewise.
20614 (i386 and x86-64 Options): Likewise.
20615 (RS6000 and PowerPC Options): Likewise.
20616 (i386 and x86-64 Windows Options): Likewise.
20617 (V850 Options): Add text missing from descriptions.
20618
bdfe906f
RH
206192011-03-22 Richard Henderson <rth@redhat.com>
20620
20621 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
20622 (avr_incoming_return_addr_rtx): New.
20623 (emit_push_byte): New.
20624 (expand_prologue): Use it. Remove incorrect dwarf annotation for
20625 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
20626 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
20627 (emit_pop_byte): New.
20628 (expand_epilogue): Use it. Pop frame pointer by bytes.
20629 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
20630 (INCOMING_RETURN_ADDR_RTX): New.
20631 (INCOMING_FRAME_SP_OFFSET): New.
20632 (ARG_POINTER_CFA_OFFSET): New.
20633 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
20634 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
20635 (pophi): Remove.
20636
d090a5aa
RH
20637 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
20638
fdf3e18a
NF
206392011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20640
20641 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
20642 (FUNCTION_ARG_ADVANCE): Likewise.
20643 * tm.texi.in: Change references to them to hook references.
20644 * tm.texi: Regenerate.
20645 * targhooks.c (default_function_arg): Eliminate check for target
20646 macro.
20647 (default_function_incoming_arg): Likewise.
20648 (default_function_arg_advance): Likewise.
c78dd519 20649 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
20650 (function_arg_advance): Likewise.
20651 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
20652
009d3fcf
NF
206532011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20654
20655 * tree.c (build_call_1): New function.
20656 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
20657
7bec30e1
RG
206582011-03-22 Richard Guenther <rguenther@suse.de>
20659
20660 PR tree-optimization/48228
20661 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
20662 for single-arg PHIs.
20663
0b7e851b
AB
206642011-03-22 Andrey Belevantsev <abel@ispras.ru>
20665
20666 PR rtl-optimization/48143
20667 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
20668 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
20669 sse2_cvtps2pd): Likewise.
20670
d89afca5
AK
206712011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20672
20673 * recog.c (canonicalize_change_group): Use validate_unshare_change.
20674
f471fe72
RG
206752011-03-22 Richard Guenther <rguenther@suse.de>
20676
20677 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
20678 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
20679 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
20680 and REALIGN_LOAD_EXPR.
20681 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
20682 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
20683 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
20684 DOT_PROD_EXPR case ...
20685 (expand_expr_real_2): ... here.
20686 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
20687 and REALIGN_LOAD_EXPR.
20688 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
20689 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
20690 (vect_create_epilog_for_reduction): Likewise.
20691 (vectorizable_reduction): Likewise.
20692 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
20693 * tree-vect-stmts.c (vectorizable_load): Likewise.
20694
f2f81d57
EB
206952011-03-22 Eric Botcazou <ebotcazou@adacore.com>
20696
20697 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
20698
ab081dd6
AK
206992011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20700
20701 * config/s390/s390.c (s390_delegitimize_address): Fix offset
20702 handling for PLTOFF/GOTOFF.
20703
6fd5332b
NC
207042011-03-22 Nick Clifton <nickc@redhat.com>
20705
20706 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
20707 trailing backslash from the end of the macro definition.
20708
01841ac0
AK
207092011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20710
20711 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
20712 and PLT unspecs.
20713
2ef6ce06
RS
207142011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
20715
20716 * expr.h (prepare_operand): Move to...
20717 * optabs.h (prepare_operand): ...here and change the insn code
20718 parameter from "int" to "enum insn_code".
20719 (insn_operand_matches): Declare.
20720 * expr.c (init_expr_target): Use insn_operand_matches.
20721 (compress_float_constant): Likewise.
20722 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
20723 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
20724 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
20725 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
20726 Likewise.
2ef6ce06
RS
20727 (gen_cond_trap): Likewise.
20728 (prepare_operand): Likewise. Change icode to an insn_code.
20729 (insn_operand_matches): New function.
20730 * reload.c (find_reloads_address_1): Use insn_operand_matches.
20731 * reload1.c (gen_reload): Likewise.
20732 * targhooks.c (default_secondary_reload): Likewise.
20733
9e43ad68
UB
207342011-03-21 Uros Bizjak <ubizjak@gmail.com>
20735
9a96da32
UB
20736 * config/alpha/alpha.md (unspec): New define_c_enum.
20737 (unspecv): Ditto.
20738
207392011-03-21 Uros Bizjak <ubizjak@gmail.com>
20740
20741 PR debug/48214
9e43ad68
UB
20742 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
20743 between a call and its CALL_ARG_LOCATION note.
20744
31408f60
EB
207452011-03-21 Eric Botcazou <ebotcazou@adacore.com>
20746
20747 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
20748
207492011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
20750
20751 PR c/42544
20752 PR c/48197
20753 * c-common.c (shorten_compare): If primopN is first sign-extended
20754 to opN and then zero-extended to result type, set primopN to opN.
20755
9dfd55f5
DJ
207562011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
20757
20758 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
20759 for barrier handlers.
20760
f3c33d9d
MM
207612011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20762
20763 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
20764 UNSPEC constants to be in the unspec enumeration, and redefine
20765 all UNSPECV constants to be in the unspecv enumeration, so that
20766 dumps print which unspec/unspec_volatile this is.
20767 * config/rs6000/vector.md (UNSPEC_*): Ditto.
20768 * config/rs6000/paired.md (UNSPEC_*): Ditto.
20769 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
20770 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
20771 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
20772
20773 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
20774 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
20775 UNSPECV_LWSYNC, since these are used as unspec_volatile.
20776 * config/rs6000/sync.md (isync, lwsync): Ditto.
20777
ac43f774
RG
207782011-03-21 Richard Guenther <rguenther@suse.de>
20779
20780 * params.def (lto-min-partition): Fix typo.
20781
411cdbd8
RG
207822011-03-21 Richard Guenther <rguenther@suse.de>
20783
20784 PR c/47939
20785 * c-decl.c (grokdeclarator): Drop to the main variant only
20786 for array types. Drop flag_gen_aux_info check.
20787
1cd9e416
RG
207882011-03-21 Richard Guenther <rguenther@suse.de>
20789
20790 PR translation/47911
20791 * params.def (lto-partitions): Fix typo.
20792 (lto-min-partition): Fix wording.
20793
ada5ad67
AT
207942011-03-21 Andreas Tobler <andreast@fgznet.ch>
20795
20796 * config/rs6000/t-freebsd: Remove duplication from file.
20797
f9613c9a
RG
207982011-03-21 Richard Guenther <rguenther@suse.de>
20799
20800 PR middle-end/47661
20801 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
20802
9bfbc1eb
RG
208032011-03-21 Richard Guenther <rguenther@suse.de>
20804
20805 PR lto/48210
20806 * params.def (lto-partitions): Require at least 1 partition.
20807
a2268084
RO
208082011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20809
20810 * gthr-solaris.h: Remove.
20811 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
20812 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
20813 (LIB_SPEC): Likewise.
20814 * config/sol2.opt (threads): Remove.
9e43ad68 20815 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
20816 (sparc*-*-solaris2*): Likewise.
20817 * configure.ac (enable_threads): Enable solaris support.
20818 * configure: Regenerate.
9e43ad68 20819 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
20820 * doc/install.texi (Configuration, --enable-threads=lib): Remove
20821 solaris.
20822
c43d9a1b
RO
208232011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20824
20825 * config.gcc: Obsolete *-*-solaris2.8*.
20826 * doc/install.texi (Specific, *-*-solaris2*): Document it.
20827
084239f4
RO
208282011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20829
20830 PR bootstrap/48135
20831 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
20832 reference. Solaris 8 perl works.
20833
64cadbe7
RO
208342011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20835
20836 PR bootstrap/48135
20837 * doc/install.texi (Prerequisites): Move jar etc. up.
20838 Explain support library version requirements.
20839
eb975109
RO
208402011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20841
20842 PR bootstrap/48135
20843 * doc/install.texi (Prerequisites): Move Perl to build
20844 requirements. Always necessary on Solaris 2 with Sun ld.
20845
8a509ffd
RO
208462011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20847
20848 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
20849 binutils 2.21.
20850 (Specific, i?86-*-solaris2.[89]): Likewise.
20851 (Specific, i?86-*-solaris2.10): Likewise.
20852 (Specific, mips-sgi-irix6): Likewise.
20853 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
20854 Update for binutils 2.21.
20855
8fbc58a1
RO
208562011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20857
20858 * configure.ac (gcc_cv_lto_plugin): Fix typo.
20859 Allow -fuse-linker-plugin for non-default plugin linker.
20860 * configure: Regenerate.
20861
7e84ad0b
NP
208622011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
20863
20864 PR bootstrap/48167
20865 * gengtype.c (files_rules): Added rule for cp/parser.h.
20866
2f36e14b
JJ
208672011-03-21 Jakub Jelinek <jakub@redhat.com>
20868
20869 PR target/48213
20870 * config/s390/s390.c (s390_delegitimize_address): Don't call
20871 lowpart_subreg if orig_x has BLKmode.
20872
62d784f7
KT
208732011-03-21 Kai Tietz <ktietz@redhat.com>
20874
20875 PR target/12171
9e43ad68
UB
20876 * doc/plugins.texi: Adjust documentation for plugin register_callback.
20877 * tree.h (attribute_spec): Add new member affects_type_identity.
20878 * attribs.c (empty_attribute_table): Adjust attribute_spec
20879 initializers.
62d784f7
KT
20880 * config/alpha/alpha.c: Likewise.
20881 * config/arc/arc.c: Likewise.
20882 * config/arm/arm.c: Likewise.
20883 * config/avr/avr.c: Likewise.
20884 * config/bfin/bfin.c: Likewise.
20885 * config/crx/crx.c: Likewise.
20886 * config/darwin.h: Likewise.
20887 * config/h8300/h8300.c: Likewise.
20888 * config/i386/cygming.h: Likewise.
20889 * config/i386/i386.c: Likewise.
20890 * config/ia64/ia64.c: Likewise.
20891 * config/m32c/m32c.c: Likewise.
20892 * config/m32r/m32r.c: Likewise.
20893 * config/m68hc11/m68hc11.c: Likewise.
20894 * config/m68k/m68k.c: Likewise.
20895 * config/mcore/mcore.c: Likewise.
20896 * config/mep/mep.c: Likewise.
20897 * config/microblaze/microblaze.c: Likewise.
20898 * config/mips/mips.c: Likewise.
20899 * config/rs6000/rs6000.c: Likewise.
20900 * config/rx/rx.c: Likewise.
20901 * config/sh/sh.c: Likewise.
20902 * config/sol2.h: Likewise.
20903 * config/sparc/sparc.c: Likewise.
20904 * config/spu/spu.c: Likewise.
20905 * config/stormy16/stormy16.c: Likewise.
20906 * config/v850/v850.c: Likewise.
20907
54833ec0
CLT
209082011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
20909
20910 * simplify-rtx.c (simplify_binary_operation_1): Handle
20911 (xor (and A B) C) case when B and C are both constants.
20912
14a41392
MX
209132011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
20914
20915 * tree-dfa.c (add_referenced_var): Fix typo in comment.
20916
806c3492
EB
209172011-03-20 Eric Botcazou <ebotcazou@adacore.com>
20918
20919 PR bootstrap/48168
20920 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
20921
65e0a0f3
JJ
209222011-03-20 Jakub Jelinek <jakub@redhat.com>
20923
20924 PR rtl-optimization/48156
20925 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
20926 assume df and df_lr are not NULL.
20927
b6a75dda
RR
209282011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20929
20930 PR debug/48023
20931 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
20932 between a call and its CALL_ARG_LOCATION note.
20933
5969b52d
KK
209342011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
20935
20936 PR debug/48178
20937 * config/sh/sh.c (find_barrier): Don't emit a constant pool
20938 between a call and its corresponding CALL_ARG_LOCATION note.
20939
f773c2bd
AS
209402011-03-19 Anatoly Sokolov <aesok@post.ru>
20941
20942 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
20943 instead of loop. Use HARD_REGISTER_NUM_P predicate.
20944 * haifa-sched.c (setup_ref_regs): Ditto.
20945 * caller-save.c (add_used_regs_1): Ditto.
20946 * dse.c (look_for_hardregs): Ditto.
20947 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
20948 * sched-rgn.c (check_live_1): Ditto.
20949
8bf872f9
JM
209502011-03-18 Joseph Myers <joseph@codesourcery.com>
20951
20952 * c-decl.c (diagnose_mismatched_decls): Give an error for
20953 redefining a typedef with variably modified type.
20954
ff8e2159
JM
209552011-03-18 Joseph Myers <joseph@codesourcery.com>
20956
20957 * c-decl.c (grokfield): Don't allow typedefs for structures or
20958 unions with no tag by default.
20959 * doc/extend.texi (Unnamed Fields): Update.
20960
16cc4440
UB
209612011-03-18 Uros Bizjak <ubizjak@gmail.com>
20962
20963 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
20964 Rewrite using indirect functions.
20965 (lwp_slwpcb): Ditto.
20966 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
20967 (avx_vinsertf128<mode>): Ditto.
20968
e101e12e
AK
209692011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20970
20971 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
20972 unspecs.
20973
4627c7fb
AK
209742011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20975
20976 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 20977 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 20978
2d36b47f
MK
209792011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
20980
20981 PR rtl-optimization/48170
20982 * gcse.c (hoist_code): Remove bogus asserts.
20983
2a3d7659
JL
209842011-03-18 Georg-Johann Lay <avr@gjlay.de>
20985
20986 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
20987 computation for prologue/epilogue.
20988
34c3ef05
RO
209892011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20990
20991 * Makefile.in (check-consistency): Remove.
20992
81f2b976
JJ
209932011-03-18 Jakub Jelinek <jakub@redhat.com>
20994
20995 PR debug/48176
20996 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
20997 arange_table_in_use is 0, but either text_section_used or
20998 cold_text_section_used is true. Don't call it if
20999 !info_section_emitted.
21000
68fd7765
AS
210012011-03-18 Anatoly Sokolov <aesok@post.ru>
21002
21003 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
21004 FUNCTION_VALUE_REGNO_P): Remove.
21005 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
21006 Remove.
21007 * config/avr/avr.c (avr_ret_register): Make static inline.
21008 (avr_function_value_regno_p): New function.
21009 (avr_libcall_value): Make static. Add 'func' argument.
21010 (avr_function_value): Make static. Rename 'func' argument to
21011 'fn_decl_or_type', forward it to avr_libcall_value. Call
21012 avr_ret_register function instead of RET_REGISTER macro.
b8bc3a43 21013 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
68fd7765 21014
b4ef8aac
JM
210152011-03-18 Jason Merrill <jason@redhat.com>
21016
21017 PR c++/23372
21018 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
21019
09a52fc3
RG
210202011-03-18 Richard Guenther <rguenther@suse.de>
21021
21022 * doc/install.texi (--enable-gold): Remove.
21023 (--with-plugin-ld): Document.
21024 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
21025
2a3d7659 210262011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
21027
21028 PR middle-end/47790
21029 * expr.c (optimize_bitfield_assignment_op): Revamp to work
21030 again after expansion changes.
21031
2abbb0fe
CLT
210322011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
21033
21034 * combine.c (try_combine): Do simplification only call of
21035 subst() on i2 even when i1 is present. Update comments.
21036
2efd0aa6
KK
210372011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
21038
21039 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
21040 and UNSPEC_PCREL_SYMOFF.
21041
30a49b23
AK
210422011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21043
21044 * config/s390/s390.md: Use define_c_enum for the unspec constant
21045 definitions.
21046
419e1853
JJ
210472011-03-18 Richard Henderson <rth@redhat.com>
21048 Jakub Jelinek <jakub@redhat.com>
21049
21050 PR bootstrap/48161
21051 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
21052 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
21053
24da2019
AS
210542011-03-17 Anatoly Sokolov <aesok@post.ru>
21055
21056 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21057 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
21058 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
21059 Change return type to bool.
21060 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21061
a82ff31f
JJ
210622011-03-17 Jakub Jelinek <jakub@redhat.com>
21063
8b29c87a
JJ
21064 PR debug/48163
21065 * var-tracking.c (prepare_call_arguments): If CALL target
21066 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
21067 pc instead of looking it up using cselib_lookup and use
21068 Pmode for it if x has VOIDmode.
21069 * dwarf2out.c (gen_subprogram_die): If also both first and
21070 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
21071
a82ff31f
JJ
21072 PR debug/48163
21073 * function.c (assign_parms): For data.passed_pointer parms
21074 use MEM of data.entry_parm instead of data.entry_parm itself
21075 as DECL_INCOMING_RTL.
21076 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
21077 also when passed and declared mode is the same, DECL_RTL
21078 is a MEM with pseudo as address and DECL_INCOMING_RTL is
21079 a MEM too.
21080
82ce305c
JL
210812011-03-16 Jeff Law <law@redhat.com>
21082
21083 PR rtl-optimization/37273
21084 * ira-costs.c (scan_one_insn): Detect constants living in memory and
21085 handle them like argument loads from stack slots. Do not double
21086 count memory for memory constants and argument loads from stack slots.
21087
fe58e02b
L
210882011-03-17 H.J. Lu <hongjiu.lu@intel.com>
21089
21090 PR debug/48160
21091 * var-tracking.c (prepare_call_arguments): Check SUBREG.
21092
6fc4dbc7
L
210932011-03-17 H.J. Lu <hongjiu.lu@intel.com>
21094
21095 PR target/48171
21096 * config/i386/i386.opt: Add Save to -mavx and -mfma.
21097
db3ed0b3
JJ
210982011-03-17 Jakub Jelinek <jakub@redhat.com>
21099
8054a389
JJ
21100 PR bootstrap/48153
21101 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
21102 if dwarf_strict.
21103 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
21104 Clear call_arg_locations and call_arg_loc_last always.
21105
db3ed0b3
JJ
21106 PR middle-end/48152
21107 * var-tracking.c (prepare_call_arguments): If argument needs to be
21108 passed by reference, adjust argtype and mode.
21109
1bce4ff3
RG
211102011-03-17 Richard Guenther <rguenther@suse.de>
21111
21112 PR middle-end/48134
21113 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
21114 a value make sure to fold the statement.
21115
7c71147d
CLT
211162011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
21117
21118 PR target/43872
21119 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
21120 return condition with !cfun->calls_alloca.
21121
0e1ee172
RG
211222011-03-17 Richard Guenther <rguenther@suse.de>
21123
21124 PR bootstrap/48148
21125 * lto-cgraph.c (input_overwrite_node): Clear the abstract
21126 origin for decls in other ltrans units.
21127 (input_varpool_node): Likewise.
21128
f8bce518
RG
211292011-03-17 Richard Guenther <rguenther@suse.de>
21130
21131 PR middle-end/48165
21132 * tree-object-size.c (compute_object_offset): Properly return
21133 the offset operand of MEM_REFs as sizetype.
21134
1b6fa860
JJ
211352011-03-17 Jakub Jelinek <jakub@redhat.com>
21136
dabd47e7
JJ
21137 PR rtl-optimization/48141
21138 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
21139 * dse.c: Include params.h.
21140 (active_local_stores_len): New variable.
21141 (add_wild_read, dse_step1): Clear it when setting active_local_stores
21142 to NULL.
21143 (record_store, check_mem_read_rtx): Decrease it when removing
21144 from the chain.
21145 (scan_insn): Likewise. Increase it when adding to chain, if it
21146 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
21147 set active_local_stores to NULL before the addition.
21148 * Makefile.in (dse.o): Depend on $(PARAMS_H).
21149
1b6fa860
JJ
21150 PR rtl-optimization/48141
21151 * dse.c (record_store): If no positions are needed in an insn
21152 that cannot be deleted, at least unchain it from active_local_stores.
21153
7b5cb7d6
DS
211542011-03-16 Dodji Seketeli <dodji@redhat.com>
21155
21156 PR debug/47510
21157 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
21158 (lookup_type_die_strip_naming_typedef): ... here.
21159 (get_context_die): Use it.
21160 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
21161 the anonymous struct named by the naming typedef.
21162
585e9d9d
L
211632011-03-16 H.J. Lu <hongjiu.lu@intel.com>
21164
21165 PR target/48154
21166 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
21167 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
21168
6261ab0e
JL
211692011-03-16 Jeff Law <law@redhat.com>
21170
21171 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 21172 check for operands of conditional. Allow type to be a pointer.
6261ab0e 21173
0b0081ec
RG
211742011-03-16 Richard Guenther <rguenther@suse.de>
21175
21176 PR tree-optimization/48149
21177 * fold-const.c (fold_binary_loc): Fold
21178 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
21179
64a3d647
RG
211802011-03-16 Richard Guenther <rguenther@suse.de>
21181
21182 PR tree-optimization/26134
21183 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
21184 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
21185 (non_rewritable_mem_ref_base): Handle complex type component
21186 accesses, constrain offsets for vector and complex extracts
21187 more properly.
21188
ef13324e
RG
211892011-03-16 Richard Guenther <rguenther@suse.de>
21190
21191 PR tree-optimization/48146
21192 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
21193 operands avoiding the need for renaming.
21194
f0eddb90
RG
211952011-03-16 Richard Guenther <rguenther@suse.de>
21196
21197 * gimple-fold.c (maybe_fold_reference): Open-code relevant
21198 constant folding. Move MEM_REF canonicalization first.
21199 Rely on fold_const_aggregate_ref for initializer folding.
21200 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
21201
e42348b8
JJ
212022011-03-16 Jakub Jelinek <jakub@redhat.com>
21203
29f10e71
JJ
21204 PR middle-end/48136
21205 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
21206 arg0/arg1 or their arguments are always fold converted to matching
21207 types.
21208
e42348b8
JJ
21209 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
21210 to nargs.
21211
55b46574
RO
212122011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21213
21214 PR lto/46944
21215 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
21216 Handle in-tree gold.
21217 (ld_vers): Extract binutils version for gold.
21218 (gcc_cv_ld_hidden): Handle gold here.
21219 (gcc_cv_lto_plugin): Determine level of linker plugin support.
21220 * configure: Regenerate.
21221 * config.in: Regenerate.
21222 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
21223 -fuse-linker-plugin otherwise.
21224 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
21225 (LINK_COMMAND_SPEC): Use it.
21226 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
21227
2b1c5433
JJ
212282011-03-16 Jakub Jelinek <jakub@redhat.com>
21229
c2969d8e
JJ
21230 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
21231 * calls.c: Remove debug.h include.
21232 (emit_call_1): Don't call virtual_call_token debug hook.
21233 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
21234 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
21235 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
21236 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
21237 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
21238 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
21239 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
21240 dwarf2out_virtual_call): Remove.
21241 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
21242 copy_call_info and virtual_call hooks.
21243 (dwarf2out_init): Don't initialize vcall_insn_table,
21244 debug_dcall_section and debug_vcall_section.
21245 (prune_unused_types): Don't mark nodes from dcall_table.
21246 (dwarf2out_finish): Don't output dcall or vcall tables.
21247 * final.c (final_scan_insn): Don't call direct_call or
21248 virtual_call debug hooks.
21249 * debug.h (struct gcc_debug_hooks): Remove direct_call,
21250 virtual_call_token, copy_call_info and virtual_call hooks.
21251 (debug_nothing_uid): Remove prototype.
21252 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
21253 copy_call_info and virtual_call hooks.
21254 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21255 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
21256 * debug.c (do_nothing_debug_hooks): Likewise.
21257 (debug_nothing_uid): Remove.
21258 * doc/invoke.texi (-fenable-icf-debug): Remove.
21259 * common.opt (-fenable-icf-debug): Likewise.
21260
325f5379
JJ
21261 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
21262 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
21263 call's MEM. Handle functions returning aggregate through a hidden
21264 first pointer. For virtual calls add clobbered pc to call arguments
21265 chain.
21266 * dwarf2out.c (gen_subprogram_die): Emit
21267 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
21268 can't be emitted.
21269
a58a8e4b
JJ
21270 PR debug/45882
21271 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
21272 * rtl.h (ENTRY_VALUE_EXP): Define.
21273 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
21274 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
21275 * print-rtl.c (print_rtx): Likewise.
21276 * gengtype.c (adjust_field_rtx_def): Likewise.
21277 * var-tracking.c (vt_add_function_parameter): Adjust
21278 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
21279 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
21280 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
21281 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
21282 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
21283
2b1c5433
JJ
21284 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
21285 Call var_location debug hook even on CALL_INSNs.
21286 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
21287 * rtl.def (ENTRY_VALUE): New.
21288 * dwarf2out.c: Include cfglayout.h.
21289 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
21290 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
21291 (struct call_arg_loc_node): New type.
21292 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
21293 tail_call_site_count): New variables.
21294 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
21295 DW_TAG_GNU_call_site_parameter.
21296 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
21297 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
21298 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
21299 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
21300 and DW_AT_GNU_all_source_call_sites.
21301 (mem_loc_descriptor): Handle ENTRY_VALUE.
21302 (add_src_coords_attributes): Don't add enything if
21303 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
21304 (dwarf2out_abstract_function): Save and clear call_arg_location,
21305 call_site_count and tail_call_site_count around dwarf2out_decl call.
21306 (gen_call_site_die): New function.
21307 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
21308 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
21309 (dwarf2out_function_decl): Clear call_arg_locations,
21310 call_arg_loc_last, set call_site_count and tail_call_site_count
21311 to -1 and free block_map.
21312 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
21313 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
21314 followed by any real instructions.
21315 (dwarf2out_begin_function): Set call_site_count and
21316 tail_call_site_count to 0.
21317 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
21318 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
21319 attempt to force a DIE for it and worst case remove the attribute.
21320 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
21321 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
21322 the decl itself.
21323 * var-tracking.c: Include tm_p.h.
21324 (vt_stack_adjustments): For calls call note_register_arguments.
21325 (argument_reg_set): New variable.
21326 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
21327 ensure the VALUE is resolved.
21328 (call_arguments): New variable.
21329 (prepare_call_arguments): New function.
21330 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
21331 (struct expand_loc_callback_data): Add ignore_cur_loc field.
21332 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
21333 always use the best expression.
21334 (vt_expand_loc): Add ignore_cur_loc argument.
21335 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
21336 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
21337 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
21338 note for all calls.
21339 (vt_add_function_parameter): Use cselib_lookup_from_insn.
21340 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
21341 argument. Don't call cselib_preserve_only_values and
21342 cselib_reset_table.
21343 (note_register_arguments): New function.
21344 (vt_initialize): Compute argument_reg_set. Call
21345 vt_add_function_parameters before processing basic blocks instead of
21346 afterwards. For calls call prepare_call_arguments before calling
21347 cselib_process_insn.
21348 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
21349 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
21350 (var-tracking.o): Depend on $(TM_P_H).
21351 * cfglayout.h (insn_scope): New prototype.
21352 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
21353 * cfglayout.c (insn_scope): No longer static.
21354 * insn-notes.def (CALL_ARG_LOCATION): New.
21355 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
21356 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
21357 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
21358 nothing for DECL_EXTERNAL BLOCK_VARS.
21359
9ef13bd0
AM
213602011-03-16 Alan Modra <amodra@gmail.com>
21361
21362 PR target/45844
21363 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21364 create invalid offset address for vsx splat insn.
21365 * config/rs6000/predicates.md (splat_input_operand): New.
21366 * config/rs6000/vsx.md (vsx_splat_*): Use it.
21367
56b67510
XDL
213682011-03-15 Xinliang David Li <davidxl@google.com>
21369
21370 PR c/47837
21371 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
21372 (normalize_preds): New function.
21373 (is_use_properly_guarded): Normalize def predicates.
21374
80fffdef
RR
213752011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21376
732f37c6 21377 PR target/46788
80fffdef
RR
21378 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
21379 in the output template.
21380
930672ad
RG
213812011-03-15 Richard Guenther <rguenther@suse.de>
21382
21383 PR middle-end/47650
21384 * tree-pretty-print.c (dump_function_declaration): Properly
21385 dump unprototyped and varargs function types.
21386
c7ee7b45
RG
213872011-03-15 Richard Guenther <rguenther@suse.de>
21388
21389 PR tree-optimization/13954
21390 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
21391 and friends.
21392
b2ad5e37
RG
213932011-03-15 Richard Guenther <rguenther@suse.de>
21394
21395 PR tree-optimization/48037
21396 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
21397 selects into BIT_FIELD_REFs.
21398 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
21399 vector select.
21400
7ee93d4e
JJ
214012011-03-15 Jakub Jelinek <jakub@redhat.com>
21402
21403 PR tree-optimization/48129
21404 * builtins.c (fold_builtin_snprintf): Convert to type of
21405 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
21406 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
21407
e106efc7
RG
214082011-03-15 Richard Guenther <rguenther@suse.de>
21409
21410 PR tree-optimization/41490
21411 * tree-ssa-dce.c (propagate_necessity): Handle returns without
21412 value but with VUSE.
21413 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
21414 return statements.
21415 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
21416 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
21417 * tree-tailcall.c (find_tail_calls): Ignore returns.
21418
17dea42f
RG
214192011-03-15 Richard Guenther <rguenther@suse.de>
21420
21421 PR middle-end/48031
21422 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
21423 or variable-indexed array accesses when in gimple form.
21424
01c77a60
RG
214252011-03-15 Richard Guenther <rguenther@suse.de>
21426
16cc4440 21427 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 21428
77b0791e
AM
214292011-03-15 Alan Modra <amodra@gmail.com>
21430
21431 PR target/48032
21432 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
21433 presume symbol_refs without a symbol_ref_decl are suitably
21434 aligned, nor other trees we may see here. Handle anchor symbols.
21435 (legitimate_constant_pool_address_p): Comment. Add mode param.
21436 Check cmodel=medium addresses. Adjust all calls.
21437 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
21438 creating cmodel=medium optimized access to locals.
21439 * config/rs6000/constraints.md (R): Pass QImode to
21440 legitimate_constant_pool_address_p.
21441 * config/rs6000/predicates.md (input_operand): Pass mode to
21442 legitimate_constant_pool_address_p.
21443 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
21444 Update prototype.
21445
35f61ba4
MM
214462011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21447
21448 PR target/48053
21449 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
21450 64-bit constants being loaded into registers other than GPRs such
21451 as loading 0 into a VSX register.
21452
07332e6d
RO
214532011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21454
16cc4440 21455 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 21456
de888d90
JJ
214572011-03-14 Jakub Jelinek <jakub@redhat.com>
21458
ba3ceb2d
JJ
21459 PR middle-end/47917
21460 * builtins.c (fold_builtin_snprintf): New function.
21461 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
21462 (fold_builtin_4): Likewise.
21463
2e64f8b8
JJ
21464 PR middle-end/38878
21465 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
21466 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
21467 and C - X == X also strip nops from +/-/p+ operand.
21468 When optimizing -X == C, fold C to arg0's type.
21469
de888d90
JJ
21470 PR debug/47946
21471 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
21472 emit it as add_AT_int instead of add_AT_unsigned.
21473
214742011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
21475
21476 * unwind-dw2.c: Include sys/sdt.h if it exists.
21477 (_Unwind_DebugHook): Use STAP_PROBE2.
21478 * config.in, configure: Rebuild.
21479 * configure.ac: Check for sys/sdt.h.
21480
d34abfd2
UB
214812011-03-14 Uros Bizjak <ubizjak@gmail.com>
21482
21483 * config/i386/i386.md (ROUND_FLOOR): New constant.
21484 (ROUND_CEIL): Ditto.
21485 (ROUND_TRUNC): Ditto.
21486 (ROUND_MXCSR): Ditto.
21487 (ROUND_NO_EXC): Ditto.
21488 (rint<mode>2): Use new defines instead of numerical constants.
21489 (floor<mode>2): Ditto.
21490 (ceil<mode>2): Ditto.
21491 (btrunc<mode>2): Ditto.
21492 * config/i386/i386-builtin-types.def: Define ROUND function type
21493 aliases.
21494 * config/i386/i386.c (enum ix86_builtins): Add
21495 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
21496 (struct builtin_description): Add
21497 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
21498 (ix86_expand_sse_round): New static function.
21499 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
21500 function types.
21501 (ix86_builtin_vectorized_function): Handle
21502 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
21503
87f9e23d
TT
215042011-03-14 Tom Tromey <tromey@redhat.com>
21505
21506 * c-parser.c (c_parser_asm_string_literal): Clear
21507 warn_overlength_strings.
21508
b3ab9ea2
TT
215092011-03-14 Tom Tromey <tromey@redhat.com>
21510
21511 * c-parser.c (disable_extension_diagnostics): Save
21512 warn_overlength_strings.
21513 (restore_extension_diagnostics): Restore warn_overlength_strings.
21514
6bd73dd8
JJ
215152011-03-14 Jakub Jelinek <jakub@redhat.com>
21516
21517 * BASE-VER: Change to 4.7.0.
21518
7f4d6e1b
RG
215192011-03-14 Richard Guenther <rguenther@suse.de>
21520
21521 PR middle-end/48098
21522 * tree.c (build_vector_from_val): Adjust assert to requirements
21523 and reality.
21524
c6104ef1
JJ
215252011-03-14 Jakub Jelinek <jakub@redhat.com>
21526
21527 PR bootstrap/48102
d34abfd2 21528 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 21529
dfa95e19
AT
215302011-03-14 Andreas Tobler <andreast@fgznet.ch>
21531
f60c2554 21532 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
21533 terms of target_flags_explicit. Adjust copyright year.
21534
21535 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
21536 * config/rs6000/t-freebsd: New file. Add override for
21537 LIB2FUNCS_EXTRA.
21538
bb322018
CD
215392011-03-13 Chris Demetriou <cgd@google.com>
21540
21541 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
21542 (-fno-diagnostics-show-option): this, to reflect current default.
21543 (-Werror=): Update text about -fno-diagnostics-show-option.
21544
12b1c80b
PB
215452011-03-12 Peter Bergner <bergner@vnet.ibm.com>
21546
21547 PR target/48053
21548 * config/rs6000/predicates.md (easy_vector_constant_add_self,
21549 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
21550 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
21551 mode is not V2DImode or V2DFmode.
21552 (vspltis_constant): Do not handle V2DImode and V2DFmode.
21553 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
21554 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
21555 registers to 0.
21556 (movdi_internal64): Likewise.
21557
57d598f7
SP
215582011-03-12 Sebastian Pop <sebastian.pop@amd.com>
21559
21560 PR tree-optimization/47127
21561 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
21562 parameter.
21563 (set_cloog_options): Same.
21564 (scop_to_clast): Same.
21565 (print_clast_stmt): Do not call cloog_state_malloc and
21566 cloog_state_free.
21567 (print_generated_program): Same.
21568 (gloog): Same.
21569 * graphite-clast-to-gimple.h (cloog_state): Declared.
21570 (scop_to_clast): Adjust declaration.
21571 * graphite.c (cloog_state): Defined here.
21572 (graphite_initialize): Call cloog_state_malloc.
21573 (graphite_finalize): Call cloog_state_free.
21574
f231b5ff
JM
215752011-03-11 Jason Merrill <jason@redhat.com>
21576
21577 * attribs.c (lookup_attribute_spec): Take const_tree.
21578 * tree.h: Adjust.
21579
6a4e2bd5
JM
215802011-03-11 Joseph Myers <joseph@codesourcery.com>
21581
21582 * config/sparc/sparc.c (sparc_option_override): Use
21583 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
21584
a758fd67
RG
215852011-03-11 Richard Guenther <rguenther@suse.de>
21586
21587 PR tree-optimization/48067
21588 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
21589 multiplication result will be only used once on the target
21590 stmt.
21591
03dfda54
RG
215922011-03-11 Richard Guenther <rguenther@suse.de>
21593
21594 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
21595
5f11a50a
RG
215962011-03-11 Richard Guenther <rguenther@suse.de>
21597
21598 PR lto/48073
21599 * tree.c (find_decls_types_r): Do not walk types only reachable
21600 from IDENTIFIER_NODEs.
21601
4074f163
JJ
216022011-03-11 Jakub Jelinek <jakub@redhat.com>
21603
21604 PR middle-end/48044
21605 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
21606 all vnode->force_output nodes as needed.
21607
30f7cdcd
JM
216082011-03-11 Jason Merrill <jason@redhat.com>
21609
21610 PR c++/48069
21611 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
21612 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
21613
62ecfeb8
MJ
216142011-03-11 Martin Jambor <mjambor@suse.cz>
21615
21616 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
21617 cgraph_node.
21618
e89e03ab
JJ
216192011-03-11 Jakub Jelinek <jakub@redhat.com>
21620
21621 PR tree-optimization/48063
21622 * ipa-inline.c (cgraph_decide_inlining): Don't try to
21623 inline functions called once if !tree_can_inline_p (node->callers).
21624
efbe978b 216252011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 21626
efbe978b
EB
21627 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
21628 extra_objs.
9d6193a7
CL
21629 * config/score/score3.c: Delete.
21630 * config/score/score3.h: Delete.
21631 * config/score/mul-div.S: Delete.
21632 * config/score/sfp-machine.h: Add new file.
21633 * config/score/constraints.md: Add new file.
21634 * config/score/t-score-softfp: Add new file.
efbe978b 21635 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
21636 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
21637 (score7_extra_constraint): Delete.
efbe978b 21638 (score7_option_override): Remove unused code.
9d6193a7
CL
21639 * config/score/score.c: Remove score3 and score5 define and code.
21640 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 21641 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
21642 * config/score/score.opt: Remove score3 and score5 options.
21643
5de27cca
JDA
216442011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21645
21646 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
21647 when _HPUX_SOURCE is defined.
21648 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
21649
18d92053
JM
216502011-03-10 Jason Merrill <jason@redhat.com>
21651
21652 PR c++/48029
21653 * stor-layout.c (layout_type): Don't set structural equality
21654 on arrays of incomplete type.
21655 * tree.c (type_hash_eq): Handle comparing them properly.
21656
67a2f76d
JJ
216572011-03-10 Jakub Jelinek <jakub@redhat.com>
21658
21659 PR debug/48043
18d92053 21660 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
21661 result mode matches original rtl mode.
21662
d845b2f9
NC
216632011-03-10 Nick Clifton <nickc@redhat.com>
21664
21665 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 21666 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 21667
db7ec035
JJ
216682011-03-09 Jakub Jelinek <jakub@redhat.com>
21669
21670 PR rtl-optimization/47866
21671 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
21672 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
21673 if target wasn't scalar.
21674 * function.c (assign_stack_temp_for_type): Assert that neither
21675 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
21676 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
21677 macro.
21678 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
21679
5d304e47
AK
216802011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21681
21682 * config/s390/s390-protos.h (s390_label_align): New prototype.
21683 * config/s390/s390.c (s390_label_align): New function.
21684 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
21685
93b826f0
MM
216862011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
21687
21688 PR target/47755
21689 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
21690 V2DI/V2DF constants. Only all 0's or all 1's are easy.
21691 (output_vec_const_move): Ditto.
21692
ef78aed6
AS
216932011-03-08 Anatoly Sokolov <aesok@post.ru>
21694
21695 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
21696 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
21697 * config/mips/mips.c (mips_preferred_reload_class): Make static.
21698 Change 'rclass' argument and result type to reg_class_t.
21699 (TARGET_PREFERRED_RELOAD_CLASS): Define.
21700
5f892aa0
GJL
217012011-03-08 Georg-Johann Lay <avr@gjlay.de>
21702
9e43ad68
UB
21703 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
21704 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
21705 (TARGET_MEMORY_MOVE_COST): Define.
21706 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 21707
32bd2409
JJ
217082011-03-08 Jakub Jelinek <jakub@redhat.com>
21709
530a4800
JJ
21710 PR debug/47881
21711 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
21712 removed anything.
21713
32bd2409
JJ
21714 PR tree-optimization/48022
21715 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
21716 for EQ/NE_EXPR.
21717
c7148991
JJ
217182011-03-07 Jakub Jelinek <jakub@redhat.com>
21719
21720 PR debug/47991
21721 * var-tracking.c (find_use_val): Return NULL for
21722 cui->sets && cui->store_p BLKmode MEMs.
21723
43070a6e
AS
217242011-03-07 Anatoly Sokolov <aesok@post.ru>
21725
21726 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
21727 Remove.
21728 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
21729 xstormy16_print_operand_address): Remove.
21730 * config/stormy16/stormy16.c (xstormy16_print_operand,
21731 xstormy16_print_operand_address): Make static.
21732 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21733
efbe978b 217342011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
21735
21736 PR target/47862
21737 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
21738 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
21739 before definition.
21740
cec8ac0b
ZD
217412011-03-07 Zdenek Dvorak <ook@ucw.cz>
21742
21743 PR bootstrap/48000
21744 * cfgloopmanip.c (fix_bb_placements): Return immediately
21745 if FROM is BASE_LOOP's header.
21746
59527282
PW
217472011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
21748
21749 * gimplify.c (gimplify_function_tree): Fix building calls
21750 to __builtin_return_address.
21751
617718f7
AM
217522011-03-07 Alan Modra <amodra@gmail.com>
21753
21754 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
21755 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
21756 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
21757 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
21758 return_mode args.
21759 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
21760 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
21761 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
21762 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
21763 * config/rs6000/rs6000.c
21764 (rs6000_elf_end_indicate_exec_stack): Rename to..
21765 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
21766 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
21767 (rs6000_file_start): ..here.
21768 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
21769 file scope variables.
21770 (call_ABI_of_interest): New function.
21771 (init_cumulative_args): Set above vars when function return value
21772 is a float, vector, or small struct.
21773 (rs6000_function_arg_advance_1): Likewise for function args.
21774 (rs6000_va_start): Set rs6000_passes_float if variable arg function
21775 references float args.
21776
38528d50
MX
217772011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
21778
21779 * doc/cfg.texi: Remove "See" before @ref.
21780 * doc/invoke.texi: Likewise.
21781
f42cf4f4
JM
217822011-03-05 Jason Merrill <jason@redhat.com>
21783
21784 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
21785
804a304d
AG
217862011-03-05 Anthony Green <green@moxielogic.com>
21787
21788 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
21789
634ee309
ZD
217902011-03-05 Zdenek Dvorak <ook@ucw.cz>
21791
21792 PR rtl-optimization/47899
21793 * cfgloopmanip.c (fix_bb_placements): Fix first argument
21794 to flow_loop_nested_p when moving the loop upward.
21795
6fe471c8
RE
217962011-03-05 Richard Earnshaw <rearnsha@arm.com>
21797
21798 PR target/47719
21799 * arm.md (movhi_insn_arch4): Accept any immediate constant.
21800
cc58ceee
JJ
218012011-03-05 Jakub Jelinek <jakub@redhat.com>
21802
21803 PR tree-optimization/47967
21804 * ipa-cp.c (build_const_val): Return NULL instead of creating
21805 VIEW_CONVERT_EXPR for mismatching sizes.
21806 (ipcp_create_replace_map): Return NULL if build_const_val failed.
21807 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
21808 give up on versioning.
21809
ea868305
AM
218102011-03-05 Alan Modra <amodra@gmail.com>
21811
21812 PR target/47986
21813 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
21814 full cmodel medium/large lo_sum + high addresses.
21815
bc6ce334
AK
218162011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21817
21818 * config/s390/s390.c (s390_decompose_address): Reject non-literal
21819 pool references in UNSPEC_LTREL_OFFSET.
21820
87e7b310
JH
218212011-03-04 Jan Hubicka <jh@suse.cz>
21822
21823 PR lto/47497
21824 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
21825 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
21826 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
21827 Add node pointers.
87e7b310
JH
21828 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
21829 cgraph_add_thunk): Add node pointers.
21830 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
21831 associated to right node.
21832 (input_node): Update use of cgraph_same_body_alias
21833 and cgraph_add_thunk.
21834
d9c64246
CF
218352011-03-04 Changpeng Fang <changpeng.fang@amd.com>
21836
21837 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
21838 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
21839 modes when the flag -mprefer-avx128 is on.
d9c64246 21840
08707076
RS
218412011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
21842
21843 * dwarf2out.c (compare_loc_operands): Fix address handling.
21844
52517c81
AM
218452011-03-04 Alan Modra <amodra@gmail.com>
21846
21847 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
21848
b147c5b9
RG
218492011-03-04 Richard Guenther <rguenther@suse.de>
21850
21851 PR middle-end/47968
21852 * expmed.c (extract_bit_field_1): Prefer vector modes that
21853 vec_extract patterns can handle.
21854
8750672f
RG
218552011-03-04 Richard Guenther <rguenther@suse.de>
21856
21857 PR middle-end/47975
21858 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
21859
9eac0f2a
RH
218602011-03-04 Richard Henderson <rth@redhat.com>
21861
21862 * explow.c (emit_stack_save): Remove 'after' parameter.
21863 (emit_stack_restore): Likewise.
21864 * expr.h: Update to match.
21865 * builtins.c, calls.c, stmt.c: Likewise.
21866 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
21867 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
21868 * function.c (expand_function_end): Insert the emit_stack_save
21869 sequence before parm_birth_insn instead of after.
21870
dfee1406
UB
218712011-03-03 Uros Bizjak <ubizjak@gmail.com>
21872
21873 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
21874 (ssse3_pmaddubsw128): Ditto.
21875 (ssse3_pmaddubsw): Ditto.
21876
f1d4c3de
SE
218772011-03-03 Steve Ellcey <sje@cup.hp.com>
21878
21879 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
21880
71f3a3f5
JJ
218812011-03-03 Jakub Jelinek <jakub@redhat.com>
21882
423ed416
JJ
21883 PR c/47963
21884 * gimplify.c (omp_add_variable): Only call omp_notice_variable
21885 on TYPE_SIZE_UNIT if it is a DECL.
21886
71f3a3f5
JJ
21887 PR debug/47283
21888 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
21889 first operand is not is_gimple_mem_ref_addr, try to fold it.
21890 If the operand still isn't is_gimple_mem_ref_addr, clear
21891 MEM_EXPR on op0.
21892
4b1a5c0d
RG
218932011-03-03 Richard Guenther <rguenther@suse.de>
21894
21895 PR middle-end/47283
21896 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
21897 match comment.
21898 (refs_may_alias_p_1): For release branches return true if
21899 we are confused by our input.
21900
b46616fd
AK
219012011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21902
21903 * config/s390/s390.c (s390_function_value): Rename to ...
21904 (s390_function_and_libcall_value): ... this.
21905 (s390_function_value): New function.
21906 (s390_libcall_value): New function.
dfee1406 21907 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
21908 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
21909 target macro definitions.
21910 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
21911
46d8fabb
JM
219122011-03-02 Joseph Myers <joseph@codesourcery.com>
21913
21914 * config/i386/freebsd64.h (CC1_SPEC): Define.
21915 * config/i386/linux64.h (CC1_SPEC): Define.
21916 * config/i386/x86-64.h (CC1_SPEC): Don't define.
21917
6b1ce545
AS
219182011-03-02 Anatoly Sokolov <aesok@post.ru>
21919
21920 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
21921 Remove.
21922 * config/stormy16/stormy16.c: Include reload.h.
21923 (xstormy16_memory_move_cost): New function.
21924 (TARGET_MEMORY_MOVE_COST): Define.
21925
34161e98
RS
219262011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
21927
21928 PR rtl-optimization/47925
21929 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
21930 with side effects. Remove the more-specific check for volatile asms.
21931
f60a97cf
AM
219322011-03-02 Alan Modra <amodra@gmail.com>
21933
21934 PR target/47935
21935 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
21936 toc relative addresses for valid offsets.
21937
f2ca11ca
RG
219382011-03-01 Richard Guenther <rguenther@suse.de>
21939
21940 PR tree-optimization/47890
21941 * tree-vect-loop.c (get_initial_def_for_induction): Set
21942 related stmt properly.
21943
7a00d9ea
RG
219442011-03-01 Richard Guenther <rguenther@suse.de>
21945
21946 PR lto/47924
21947 * lto-streamer.c (lto_record_common_node): Also register
21948 the canonical type.
21949
06c7edcc
RG
219502011-03-01 Richard Guenther <rguenther@suse.de>
21951
21952 PR lto/46911
21953 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
21954 Do not stream DECL_ABSTRACT_ORIGIN.
21955 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
21956 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
21957 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
21958 Do not stream DECL_ABSTRACT_ORIGIN.
21959 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
21960 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
21961
998871e9
AS
219622011-02-28 Anatoly Sokolov <aesok@post.ru>
21963
21964 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
21965 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 21966 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
21967 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
21968 Add 'outgoing' argument.
21969 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
21970 function.
21971 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21972 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21973
94369251
KT
219742011-02-28 Kai Tietz <kai.tietz@onevision.com>
21975
21976 PR debug/28047
21977 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
21978 (lookup_filename): Likewise.
b2e2ea67 21979 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 21980
80a832cd
JJ
219812011-02-28 Bernd Schmidt <bernds@codesourcery.com>
21982 Jakub Jelinek <jakub@redhat.com>
21983
21984 PR middle-end/47893
21985 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
21986 (assign_stack_local_1): Change last argument type to int.
21987 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
21988 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 21989 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
21990 (assign_stack_local): Adjust caller.
21991 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
21992 of assign_stack_local, pass 0 as last argument.
21993 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
21994 callers.
21995
1b500976
JJ
219962011-02-28 Jakub Jelinek <jakub@redhat.com>
21997
f61c6f34
JJ
21998 PR debug/47283
21999 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
22000 Use target address_mode and pointer_mode hooks instead of hardcoded
22001 Pmode and ptr_mode. Handle some simple cases of extending if
22002 POINTERS_EXTEND_UNSIGNED < 0.
22003 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
22004 Call convert_debug_memory_address.
22005 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
22006 convert_debug_memory_address.
22007
1b500976
JJ
22008 PR middle-end/46790
22009 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
22010 * configure: Regenerated.
22011 * config.in: Regenerated.
22012 * varasm.c (default_function_section): Return NULL
b2e2ea67 22013 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 22014
2f2935b6
MJ
220152011-02-28 Martin Jambor <mjambor@suse.cz>
22016
22017 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
22018 the description to match the printed values.
22019
474086eb
RG
220202011-02-28 Richard Guenther <rguenther@suse.de>
22021
22022 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
22023 of the copied scope tree.
22024
15bf6f3a
RW
220252011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22026
22027 * doc/extend.texi (Function Attributes): Avoid deeply (and
22028 wrongly) nested tables.
22029
f6b439c9
JJ
220302011-02-27 Jakub Jelinek <jakub@redhat.com>
22031
22032 PR middle-end/47903
22033 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
22034 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
22035 r isn't op0 nor op1.
22036
1d8ca2c7
GJL
220372011-02-23 Georg-Johann Lay <avr@gjlay.de>
22038
22039 * config/avr/avr.md: Remove magic comment for emacs.
22040
593fca4b
GJL
220412011-02-23 Georg-Johann Lay <avr@gjlay.de>
22042
22043 PR target/45261
22044 * config/avr/avr.c (avr_option_override): Use error on bad options.
22045 (avr_help): New function.
22046 (TARGET_HELP): Define.
22047
6609216e
GJL
220482011-02-22 Georg-Johann Lay <avr@gjlay.de>
22049
22050 PR target/42240
22051 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
22052 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
22053
03d458af
GP
220542011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
22055
22056 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
22057 (ARM Options): Ditto.
22058 (i386 and x86-64 Options): Ditto.
22059 (RX Options): Ditto.
22060 (SPARC Options): Ditto.
22061
1c379b78
TC
220622011-02-26 Tijl Coosemans <tijl@coosemans.org>
22063
22064 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
22065 FreeBSD 6 and later. Generally use cpu generic.
22066
d5ed058c 220672011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 22068
d5ed058c
GP
22069 * doc/cpp.texi: Update copyright years.
22070
509d65dd 220712011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 22072
509d65dd 22073 PR target/46898
308d39cd
SB
22074 * config/lm32/lm32.md (ashrsi3): Added needed variable.
22075
509d65dd 220762011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 22077
509d65dd 22078 PR target/46898
308d39cd
SB
22079 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
22080 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
22081 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
22082 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 22083 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
22084 (gen_int_relational): Move declarations to start of function.
22085
822ba6d7
EB
220862011-02-25 Eric Botcazou <ebotcazou@adacore.com>
22087
22088 PR tree-optimization/45470
22089 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
22090 can throw internally only.
22091 * tree-vect-stmts.c (vectorizable_call): Likewise.
22092
ef795fc2
AS
220932011-02-24 Anatoly Sokolov <aesok@post.ru>
22094
22095 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
22096 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
22097 * config/stormy16/stormy16-protos.h
22098 (xstormy16_preferred_reload_class): Remove.
22099 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
22100 static. Change 'rclass' argument and return type to reg_class_t.
22101 (TARGET_PREFERRED_RELOAD_CLASS,
22102 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
22103
1c3277ee
RG
221042011-02-24 Richard Guenther <rguenther@suse.de>
22105
22106 * lto-streamer-in.c (input_bb): Do not find referenced vars
22107 in debug statements.
22108
67e18edb
JM
221092011-02-23 Jason Merrill <jason@redhat.com>
22110
22111 * common.opt (fabi-version): Document v5 and v6.
22112
b14fad9d
RG
221132011-02-23 Richard Guenther <rguenther@suse.de>
22114
22115 PR tree-optimization/47849
22116 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
22117
7fcf46f5
JZ
221182011-02-23 Jie Zhang <jie@codesourcery.com>
22119
22120 * opts-common.c (decode_cmdline_option): Print empty string
22121 argument as "" in decoded->orig_option_with_args_text.
22122 * gcc.c (execute): Print empty string argument as ""
22123 in the verbose output.
22124 (do_spec_1): Keep empty string argument.
22125
f85b70fd
NF
221262011-02-23 Nathan Froyd <froydnj@codesourcery.com>
22127
22128 * config.gcc: Declare score-* and crx-* obsolete.
22129
b152a615
JZ
221302011-02-23 Jie Zhang <jie@codesourcery.com>
22131
22132 PR rtl-optimization/47763
22133 * web.c (web_main): Ignore naked clobber when replacing register.
22134
bb6e77bc
AS
221352011-02-22 Anatoly Sokolov <aesok@post.ru>
22136
22137 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
22138 Remove.
22139
68bf6491
SP
221402011-02-22 Sebastian Pop <sebastian.pop@amd.com>
22141
22142 PR doc/47848
22143 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
22144
88ee1fc7
MS
221452011-02-22 Mike Stump <mikestump@comcast.net>
22146
22147 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
22148 assembler.
22149 * configure: Regenerate.
22150
6042d1dd
CLT
221512011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
22152
22153 PR rtl-optimization/46002
22154 * ira-color.c (update_copy_costs): Change class intersection
22155 test to reg_class_contents[] test of 'hard_regno'.
22156
7de97f9e
JM
221572011-02-21 Joseph Myers <joseph@codesourcery.com>
22158
22159 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
22160 than Driver option.
22161 * config/hpux11.opt (mt): Likewise.
22162 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
22163 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
22164 * config/vax/elf.opt (mno-asm-pic): Likewise.
22165 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
22166
d1d46f9f
MS
221672011-02-21 Mike Stump <mikestump@comcast.net>
22168
22169 PR target/47822
22170 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
22171 tree so we can get save the type.
22172 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
22173 for CFString instead of trying to use past the end of the builtins.
22174 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
22175 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
22176 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
22177 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
22178 Rename to darwin_builtin_cfstring.
22179 (darwin_init_cfstring_builtins): Return the built type.
22180
23e0d930
UB
221812011-02-21 Uros Bizjak <ubizjak@gmail.com>
22182
22183 PR target/47840
22184 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
22185 (_mm256_insert_epi64): Use _mm_insert_epi64.
22186
192997cf
AS
221872011-02-21 Anatoly Sokolov <aesok@post.ru>
22188
22189 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22190 * config/stormy16/stormy16-protos.h
22191 (xstormy16_mode_dependent_address_p): Remove.
22192 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
22193 Make static. Change return type to bool. Change argument type to
22194 const_rtx. Remove dead code.
22195 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22196
e292d003
RG
221972011-02-21 Richard Guenther <rguenther@suse.de>
22198
22199 PR lto/47820
22200 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
22201 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
22202 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
22203 TUs context.
23e0d930 22204 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
22205 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
22206
77f846e9
RG
222072011-02-20 Richard Guenther <rguenther@suse.de>
22208
22209 PR lto/47822
22210 * tree.c (free_lang_data_in_decl): Clean builtins from
22211 the TU decl BLOCK_VARS.
23e0d930 22212
b2cddfc8
AO
222132011-02-19 Alexandre Oliva <aoliva@redhat.com>
22214
22215 PR debug/47620
22216 PR debug/47630
22217 * haifa-sched.c (fix_tick_ready): Skip tick computation
22218 for debug insns.
22219
becf4c11
RG
222202011-02-19 Richard Guenther <rguenther@suse.de>
22221
22222 PR lto/47647
22223 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
22224 Remove lazy BLOCK_VARS streaming.
22225 (lto_input_ts_block_tree_pointers): Likewise.
22226 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
22227
27f98305
JM
222282011-02-19 Joseph Myers <joseph@codesourcery.com>
22229
22230 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
22231
064bf3f4
JM
222322011-02-19 Joseph Myers <joseph@codesourcery.com>
22233
22234 * config/i386/biarch32.h, config/i386/mach.h,
22235 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
22236
9215ddc3
JJ
222372011-02-19 Jakub Jelinek <jakub@redhat.com>
22238
22239 PR target/47800
22240 * config/i386/i386.md (peephole2 for shift and plus): Use
22241 operands[1] original mode in the first insn.
22242
8b021004
MS
222432011-02-18 Mike Stump <mikestump@comcast.net>
22244
65ded153 22245 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 22246
f84ae14c
JH
222472011-02-18 Jan Hubicka <jh@suse.cz>
22248
22249 PR middle-end/47788
65ded153
EB
22250 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
22251 to zero when the function is not inlinable at all.
f84ae14c 22252
eddabc80
JDA
222532011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22254
22255 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
22256 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
22257 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
22258 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
22259 * config/pa/t-pa64: Likewise.
22260 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
22261
ca3da783
JJ
222622011-02-18 Jakub Jelinek <jakub@redhat.com>
22263
22264 PR driver/47787
22265 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
22266
430aa868
JDA
222672011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22268
22269 PR target/47792
22270 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
22271
4bf7ff7e
AS
222722011-02-18 Anatoly Sokolov <aesok@post.ru>
22273
22274 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
22275 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
22276 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
22277 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22278 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
22279 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
22280 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
22281 m32r_load_postinc_p, m32r_store_preinc_predec_p,
22282 m32r_legitimate_address_p): New functions.
22283 * config/m32r/constraints.md (constraint "S"): Don't use
22284 STORE_PREINC_PREDEC_P.
22285 (constraint "U"): Don't use LOAD_POSTINC_P.
22286
7efcf910
CLT
222872011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
22288
22289 PR rtl-optimization/46178
22290 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
22291 compute ira_hard_regno_cover_class[].
22292
237d6259
RG
222932011-02-18 Richard Guenther <rguenther@suse.de>
22294
22295 PR lto/47798
22296 * lto-streamer.h (lto_global_var_decls): Declare.
22297 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
22298 statics for global var processing.
22299
12d80acc
RG
223002011-02-18 Richard Guenther <rguenther@suse.de>
22301
22302 PR tree-optimization/47737
22303 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
22304 edge dominance check.
22305
abfea58d
JJ
223062011-02-18 Jakub Jelinek <jakub@redhat.com>
22307
22308 PR debug/47780
22309 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
22310 avoid invalid rtx sharing.
22311
f73c8882
GP
223122011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
22313
22314 * doc/cpp.texi (Obsolete Features): Add background on the
22315 origin of assertions.
22316
d764a8e6
IS
223172011-02-17 Iain Sandoe <iains@gcc.gnu.org>
22318
22319 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 22320 objc_abi == 2.
d764a8e6
IS
22321 * config/darwin.c (output_objc_section_asm_op): Added support for
22322 ABI v1 and v2.
22323 (is_objc_metadata): New.
22324 (darwin_objc2_section): New.
22325 (darwin_objc1_section): New.
22326 (machopic_select_section): Added support for ABI v1 and v2.
22327 (darwin_emit_objc_zeroed): New.
22328 (darwin_output_aligned_bss): Detect objc metadata and treat it
22329 appropriately.
22330 (darwin_asm_output_aligned_decl_common): Same.
22331 (darwin_asm_output_aligned_decl_local): Same.
22332 * config/darwin-sections.def: Updated for ABI v1 and v2.
22333 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
22334 compiling Objective-C code for the NeXT runtime, default to using
22335 ABI version 0 for 32-bit, and version 2 for 64-bit.
22336
0a8134ca
JM
223372011-02-17 Joseph Myers <joseph@codesourcery.com>
22338
22339 * common.opt (optimize_fast): New Variable.
22340 * opts.c (default_options_optimization): Use opts->x_optimize_fast
22341 instead of local variable ofast.
22342
0a256240
NP
223432011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
22344
22345 * doc/invoke.texi (fobjc-abi-version): Documented.
22346 (fobjc-nilcheck): Documented.
22347 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
22348 version.
22349
fa381cb2
JM
223502011-02-17 Joseph Myers <joseph@codesourcery.com>
22351
22352 PR driver/47390
22353 * common.opt (export-dynamic): New Driver option.
22354 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
22355
5437eaa6
JM
223562011-02-17 Joseph Myers <joseph@codesourcery.com>
22357
22358 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
22359
bb7e6d55
AO
223602011-02-17 Alexandre Oliva <aoliva@redhat.com>
22361 Jan Hubicka <jh@suse.cz>
22362
22363 PR debug/47106
22364 PR debug/47402
22365 * cfgexpand.c (account_used_vars_for_block): Remove.
22366 (estimated_stack_frame_size): Use referenced vars.
22367 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
22368 that were referenced in the original function. Test src_fn
22369 rather than cfun. Drop redundant get_var_ann.
22370 (setup_one_parameter): Drop redundant get_var_ann.
22371 (declare_return_variable): Likewise.
22372 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
22373 (copy_arguments_for_versioning): Drop redundant get_var_ann.
22374 * ipa-inline.c (compute_inline_parameters): Do not compute
22375 disregard_inline_limits here.
bb7e6d55
AO
22376 (compute_inlinable_for_current, pass_inlinable): New.
22377 (pass_inline_parameters): Require PROP_referenced_vars.
22378 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 22379 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
22380 (cgraph_analyze_function): Set .disregard_inline_limits.
22381 * tree-sra.c (convert_callers): Compute inliner parameters
22382 only for functions already in SSA form.
22383
f181a8a7
JM
223842011-02-17 Joseph Myers <joseph@codesourcery.com>
22385
22386 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
22387 -mlittle-endian-data.
22388
c6869789
JM
223892011-02-17 Joseph Myers <joseph@codesourcery.com>
22390
22391 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
22392 -mno-fpu, not -fpu and -no-fpu.
22393 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
22394 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
22395
fbf4bfd3
UB
223962011-02-17 Uros Bizjak <ubizjak@gmail.com>
22397
22398 PR target/43653
22399 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
22400 input reload with PLUS RTX.
22401
70be5dc7
JM
224022011-02-16 Joseph Myers <joseph@codesourcery.com>
22403
22404 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
22405 of InverseVar(MDMX).
22406
30b1646e
JM
224072011-02-16 Joseph Myers <joseph@codesourcery.com>
22408
22409 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
22410 --m4-340.
22411
ab7b71e9
JM
224122011-02-16 Joseph Myers <joseph@codesourcery.com>
22413
22414 * config/mn10300/mn10300.opt (mno-crt0): New.
22415
466f3f08
JM
224162011-02-16 Joseph Myers <joseph@codesourcery.com>
22417
22418 * config/m68k/uclinux.opt (static-libc): New Driver option.
22419
8226cd7b
JM
224202011-02-16 Joseph Myers <joseph@codesourcery.com>
22421
22422 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
22423
45cab1d7
JM
224242011-02-16 Joseph Myers <joseph@codesourcery.com>
22425
22426 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
22427 %{muser-extend-enabled}.
22428
65aab64f
RG
224292011-02-16 Richard Guenther <rguenther@suse.de>
22430
22431 PR tree-optimization/47738
22432 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
22433 the TODO from tree_predictive_commoning.
22434
fc2fa4fb
JL
224352011-02-15 Jeff Law <law@redhat.com>
22436
22437 Revert
22438 2011-01-25 Jeff Law <law@redhat.com>
22439
22440 PR rtl-optimization/37273
22441 * ira-costs.c (scan_one_insn): Detect constants living in memory and
22442 handle them like argument loads from stack slots. Do not double
22443 count memory for memory constants and argument loads from stack slots.
22444
e3a69bb4
MM
224452011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
22446
22447 PR target/47755
22448 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
22449 mode for vector constants. Remove code that checks for TImode.
22450
de650422
AO
224512011-02-15 Alexandre Oliva <aoliva@redhat.com>
22452
22453 PR debug/47106
22454 PR debug/47402
22455 * cgraph.h (compute_inline_parameters): Return void.
22456 * ipa-inline.c (compute_inline_parameters): Adjust.
22457
30925d94
AO
224582011-02-15 Alexandre Oliva <aoliva@redhat.com>
22459
22460 PR debug/47106
22461 PR debug/47402
22462 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
22463 rather than decl.
22464 * cfgexpand.c (estimated_stack_frame_size): Likewise.
22465 * ipa-inline.c (compute_inline_parameters): Adjust.
22466
1b9a784a
AO
224672011-02-15 Alexandre Oliva <aoliva@redhat.com>
22468
22469 PR debug/47106
22470 PR debug/47402
22471 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
22472 Adjust all users. Pass FN to...
22473 * tree-flow-inline.h (first_referenced_var): ... this. Add
22474 fn argument.
22475 * ipa-struct-reorg.c: Adjust.
22476 * tree-dfa.c: Adjust.
22477 * tree-into-ssa.c: Adjust.
22478 * tree-sra.c: Adjust.
22479 * tree-ssa-alias.c: Adjust.
22480 * tree-ssa-live.c: Adjust.
22481 * tree-ssa.c: Adjust.
22482 * tree-ssanames.c: Adjust.
22483 * tree-tailcall.c: Adjust.
22484
27c6b086
AO
224852011-02-15 Alexandre Oliva <aoliva@redhat.com>
22486
22487 PR debug/47106
22488 PR debug/47402
22489 * tree-flow.h (referenced_var_lookup): Add fn parameter.
22490 Adjust all callers.
22491 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
22492 * tree-flow-inline.h: Adjust.
22493 * gimple-pretty-print.c: Adjust.
22494 * tree-into-ssa.c: Adjust.
22495 * tree-ssa.c: Adjust.
22496 * cfgexpand.c: Adjust.
22497
679e8183
NF
224982011-02-15 Nathan Froyd <froydnj@codesourcery.com>
22499
fbf4bfd3
UB
22500 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
22501 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22502 (EXTRA_CONSTRAINT): Delete.
22503 * config/iq2000/constraints.md: New file.
22504 * config/iq2000/iq2000.md: Include it.
679e8183
NF
22505 (define_insn ""): Delete.
22506 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
22507 unsupported constraint letters from patterns.
22508 (call_value, call_value_internal1): Likewise.
22509 (call_value_multiple_internal1): Likewise.
22510
a45d420a
NC
225112011-02-15 Nick Clifton <nickc@redhat.com>
22512
22513 * config/mn10300/mn10300.c: Include tm-constrs.h.
22514 (struct liw_data): New data structure describing an LIW candidate
22515 instruction.
22516 (extract_bundle): Use struct liw_data. Allow small integer
22517 operands for some instructions.
22518 (check_liw_constraints): Use struct liw_data. Remove swapped
22519 parameter. Add comments describing the checks. Fix bug when
22520 assigning the source of liw1 to the source of liw2.
22521 (liw_candidate): Delete. Code moved into extract_bundle.
22522 (mn10300_bundle_liw): Use struct liw_data. Check constraints
22523 before swapping.
22524 * config/mn10300/predicates.md (liw_operand): New predicate.
22525 Allows registers and small integer constants.
22526 * config/mn10300/constraints.md (O): New constraint. Accetps
22527 integers in the range -8 to +7 inclusive.
22528 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
22529 for moving a small integer into a register. Give this alternative
22530 LIW attributes.
22531 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
22532 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
22533 using the J,K,L and M constraints,
22534 (liw): Remove SI mode on second operands to allow for HI and QI
22535 mode values.
22536 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
22537 instruction.
22538
48feba28
RG
225392011-02-15 Richard Guenther <rguenther@suse.de>
22540
22541 PR tree-optimization/47743
22542 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
22543 for a non-type-compatible VN lookup bail out.
22544
ad1c1eeb
NF
225452011-02-15 Nathan Froyd <froydnj@codesourcery.com>
22546
22547 * config/fr30/constraints.md: New file.
22548 * config/fr30/fr30.md: Include it.
22549 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
22550 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22551 (EXTRA_CONSTRAINT): Delete.
22552
49ac143d
NF
225532011-02-15 Nathan Froyd <froydnj@codesourcery.com>
22554
22555 * config/frv/constraints.md: New file.
22556 * config/frv/predicates.md: Include it.
22557 * config/frv/frv.c (reg_class_from_letter): Delete.
22558 (frv_option_override): Don't initialize it.
22559 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
22560 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
22561 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
22562 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
22563 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
22564 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22565 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
22566 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
22567 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
22568 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
22569 (REG_CLASS_FROM_CONSTRAINT): Delete.
22570
c95f9494
JJ
225712011-02-15 Jakub Jelinek <jakub@redhat.com>
22572
22573 PR middle-end/47581
22574 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
22575 if frame size is 0 in a leaf function.
22576
13aed611
RO
225772011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22578
22579 PR pch/14940
22580 * config/alpha/host-osf.c: New file.
22581 * config/alpha/x-osf: New file.
22582 * config.host (alpha*-dec-osf*): Use it.
22583
b09c3081
AS
225842011-02-14 Anatoly Sokolov <aesok@post.ru>
22585
22586 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22587 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
22588 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
22589 (rx_mode_dependent_address_p): ...this. Make static. Change argument
22590 type to const_rtx.
22591 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22592
d634083b
NF
225932011-02-14 Nathan Froyd <froydnj@codesourcery.com>
22594
22595 * config/stormy16/constraints.md: New file.
22596 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
22597 Use satisfies_constraint_Q and satisfies_constraint_R.
22598 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
22599 Delete.
22600 (xstormy16_legitiamte_address_p): Declare.
22601 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
22602 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22603 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 22604 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
22605 Un-staticize.
22606 (xstormy16_extra_constraint_p): Delete.
22607
c7dd803e
EB
226082011-02-14 Eric Botcazou <ebotcazou@adacore.com>
22609
22610 PR tree-optimization/46494
22611 * loop-unroll.c (split_edge_and_insert): Adjust comment.
22612 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
22613 (pass_rtl_loop_done): Add TODO_verify_flow.
22614 * fwprop.c (pass_rtl_fwprop): Likewise.
22615 * modulo-sched.c (pass_sms): Likewise.
22616 * tree-ssa-dom.c (pass_dominator): Likewise.
22617 * tree-ssa-loop-ch.c (pass_ch): Likewise.
22618 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
22619 (pass_tree_loop_done): Likewise.
22620 * tree-ssa-pre.c (execute_pre): Likewise.
22621 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
22622 * tree-ssa-sink.c (pass_sink_code): Likewise.
22623 * tree-vrp.c (pass_vrp): Likewise.
22624
c6150df6
NF
226252011-02-14 Nathan Froyd <froydnj@codesourcery.com>
22626
c7dd803e
EB
22627 * config/v850/constraints.md: New file.
22628 * config/v850/v850.md: Include it.
22629 * config/v850/predicates.md (reg_or_0_operand): Use
22630 satisfies_constraint_G.
22631 (special_symbolref_operand): Use satisfies_constraint_K.
22632 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
22633 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
22634 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
22635 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
22636 (EXTRA_CONSTRAINT): Delete.
22637 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
22638 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
22639 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 22640
30dd1ea3
AS
226412011-02-14 Anatoly Sokolov <aesok@post.ru>
22642
22643 PR target/47696
22644 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
22645 description.
22646
944f4bb3
NF
226472011-02-14 Nathan Froyd <froydnj@codesourcery.com>
22648
22649 * config/mcore/constraints.md: New file.
22650 * config/mcore/mcore.md: Include it.
22651 * config/mcore/mcore.c (reg_class_from_letter): Delete.
22652 * config/mcore/mcore.h (reg_class_from_letter): Delete.
22653 (REG_CLASS_FROM_LETTER): Delete.
22654 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
22655 insn_const_int_ok_for_constraint.
22656 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
22657 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
22658 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22659 (EXTRA_CONSTRAINT): Delete.
22660
ad56a54c
RO
226612011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22662
22663 PR ada/41929
22664 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
22665 (IS_SIGHANDLER): Define.
22666 (sparc64_is_sighandler): New function, split off from
22667 sparc64_fallback_frame_state.
22668 (sparc_is_sighandler): New function, split off from
22669 sparc_fallback_frame_state.
22670 (sparc64_fallback_frame_state): Merge with ...
22671 (sparc_fallback_frame_state): ... this into ...
22672 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
22673 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
22674 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
22675 stack instead of hardcoded offsets.
ad56a54c 22676
fbf4bfd3 226772011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
22678
22679 PR target/45808
22680 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
22681
029c8f3e
RW
226822011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22683
22684 * configure: Regenerate.
22685
a016dc83
JM
226862011-02-12 Joseph Myers <joseph@codesourcery.com>
22687
22688 PR driver/45731
22689 * gcc.c (asm_options): Correct spec matching --target-help.
22690
8957a0ec
MJ
226912011-02-12 Martin Jambor <mjambor@suse.cz>
22692
22693 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
22694 to gimple call error.
22695
6ef828bc
MS
226962011-02-12 Mike Stump <mikestump@comcast.net>
22697
22698 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
22699 comments in backslash regions.
22700
a4015be5
MS
227012011-02-12 Mike Stump <mikestump@comcast.net>
22702 Jakub Jelinek <jakub@redhat.com>
22703 Iain Sandoe <iains@gcc.gnu.org>
22704
22705 PR target/47324
22706 * dwarf2out.c (output_cfa_loc): When required, apply the
22707 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
22708 (output_loc_sequence): Likewise.
22709 (output_loc_operands_raw): Likewise.
22710 (output_loc_sequence_raw): Likewise.
22711 (output_cfa_loc): Likewise.
22712 (output_loc_list): Suppress register number adjustment when
22713 calling output_loc_sequence()
22714 (output_die): Likewise.
22715
5378dda2
AS
227162011-02-12 Anatoly Sokolov <aesok@post.ru>
22717
22718 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
22719 Remove macros.
22720 * config/xtensa/xtensa.c (xtensa_register_move_cost,
22721 xtensa_memory_move_cost): New functions.
22722 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
22723
f3d533d3
AO
227242011-02-12 Alexandre Oliva <aoliva@redhat.com>
22725
22726 PR lto/47225
22727 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
22728 in the current directory.
22729 * configure: Rebuilt.
22730
9d53403c
IS
227312011-02-12 Iain Sandoe <iains@gcc.gnu.org>
22732
22733 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 22734 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
22735 correct indents of the preceding block.
22736
a350a6c8
IS
227372011-02-12 Iain Sandoe <iains@gcc.gnu.org>
22738
22739 * gcc.c (driver_handle_option): Concatenate the argument to -F with
22740 the switch.
22741
bab79a40
JM
227422011-02-11 Joseph Myers <joseph@codesourcery.com>
22743
22744 * common.opt (nostartfiles): New Driver option.
22745
1bbc6693
XDL
227462011-02-11 Xinliang David Li <davidxl@google.com>
22747
22748 PR tree-optimization/47707
22749 * tree-chrec.c (convert_affine_scev): Keep type precision.
22750
1da7d8c0
EB
227512011-02-11 Eric Botcazou <ebotcazou@adacore.com>
22752
22753 PR tree-optimization/47420
22754 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
22755
227562011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
22757
22758 PR rtl-optimization/47614
22759 * rtl.h (check_for_inc_dec): Declare.
22760 * dse.c (check_for_inc_dec): Externalize...
22761 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
22762 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
22763
4df47bca
JM
227642011-02-11 Joseph Myers <joseph@codesourcery.com>
22765
22766 PR driver/47678
22767 * gcc.c (main): Do not compile inputs if there were errors in
22768 option handling.
22769 * opts-common.c (read_cmdline_option): Check for wrong language
22770 after other error checks.
22771
61502ca8
NF
227722011-02-11 Nathan Froyd <froydnj@codesourcery.com>
22773
22774 * cgraph.c: Fix comment typos.
22775 * cgraph.h: Likewise.
22776 * cgraphunit.c: Likewise.
22777 * ipa-cp.c: Likewise.
22778 * ipa-inline.c: Likewise.
22779 * ipa-prop.c: Likewise.
22780 * ipa-pure-const.c: Likewise.
22781 * ipa-ref.c: Likewise.
22782 * ipa-reference.c: Likewise.
22783
b63f974e
JJ
227842011-02-11 Jakub Jelinek <jakub@redhat.com>
22785
d50c5e0c
JJ
22786 PR debug/47684
22787 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 22788
6dd2a13c
RO
227892011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22790
22791 PR testsuite/47400
22792 * doc/sourcebuild.texi (Require Support): Document
22793 dg-require-ascii-locale.
22794
4a087ccf
MX
227952011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
22796
22797 * doc/lto.texi (Write summary): Fix missing parentheses.
22798
a4403164
DD
227992011-02-10 DJ Delorie <dj@redhat.com>
22800
22801 * config/m32c/m32c.c (m32c_option_override): Disable
22802 -fcombine-stack-adjustments until flag value tracking and compare
22803 optimization can be rewritten.
22804
4fac45bd
PB
228052011-02-10 Peter Bergner <bergner@vnet.ibm.com>
22806
22807 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
22808 PROCESSOR_POWER7.
22809 (PROCESSOR_DEFAULT64): Likewise.
22810
72602cd1
RH
228112011-02-10 Richard Henderson <rth@redhat.com>
22812
22813 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
22814 change from 2011-02-03.
22815 * config/rx/rx.c (flags_from_code): Likewise.
22816 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
22817 is valid, n/pz otherwise.
22818 (rx_select_cc_mode): Return CCmode if Y is not zero.
22819
ea57f573
RG
228202011-02-10 Richard Guenther <rguenther@suse.de>
22821
ea4c3e65 22822 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 22823
92b1d23b
RG
228242011-02-10 Richard Guenther <rguenther@suse.de>
22825
22826 PR tree-optimization/47677
22827 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
22828
525a2d06
JJ
228292011-02-10 Jakub Jelinek <jakub@redhat.com>
22830
22831 PR target/47665
22832 * combine.c (make_compound_operation): Only change shifts into
22833 multiplication for SCALAR_INT_MODE_P.
22834
06c969bd
JZ
228352011-02-10 Jie Zhang <jie@codesourcery.com>
22836
22837 PR testsuite/47622
22838 Revert
22839 2011-02-05 Jie Zhang <jie@codesourcery.com>
22840 PR debug/42631
22841 * web.c (entry_register): Don't clobber the number of the
22842 first uninitialized reference in used[].
22843
282ec48e
RG
228442011-02-09 Richard Guenther <rguenther@suse.de>
22845
22846 PR tree-optimization/47664
22847 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
22848 all edges again.
22849
df98c3e8
DE
228502011-02-09 David Edelsohn <dje.gcc@gmail.com>
22851
d0f21cd6
DE
22852 PR target/46481
22853 PR target/47032
df98c3e8
DE
22854 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
22855 PROCESSOR_POWER7.
22856 (PROCESSOR_DEFAULT64): Same.
22857 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
22858
67b6839f
RO
228592011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22860
22861 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
22862
4fd73214
MJ
228632011-02-09 Martin Jambor <mjambor@suse.cz>
22864
22865 PR middle-end/45505
22866 * tree-sra.c (struct access): New flags grp_scalar_read and
22867 grp_scalar_write. Changed description of assignment read and write
22868 flags.
22869 (dump_access): Dump new flags, reorder all of them.
22870 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
22871 to detect multiple scalar reads.
22872 (analyze_access_subtree): Use the new scalar read write flags instead
22873 of the old flags. Adjusted comments.
22874
91140cd3
DD
228752011-02-08 DJ Delorie <dj@redhat.com>
22876
22877 PR target/47548
22878 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
22879 patterns.
22880
4254bbfe
JM
228812011-02-08 Joseph Myers <joseph@codesourcery.com>
22882
22883 * config/m68k/uclinux.opt: New.
22884 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
22885
f1fda84e
JM
228862011-02-08 Joseph Myers <joseph@codesourcery.com>
22887
22888 * config/cris/elf.opt (sim): New Driver option.
22889
4933ae74
JM
228902011-02-08 Joseph Myers <joseph@codesourcery.com>
22891
22892 * config/xtensa/elf.opt: New.
22893 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
22894
4ad70280
JM
228952011-02-08 Joseph Myers <joseph@codesourcery.com>
22896
22897 * config/vax/elf.opt: New.
22898 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
22899
20893707
JM
229002011-02-08 Joseph Myers <joseph@codesourcery.com>
22901
22902 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
22903
b8e7038e
JM
229042011-02-08 Joseph Myers <joseph@codesourcery.com>
22905
22906 * config/gnu-user.opt: New.
22907 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
22908 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
22909 *-*-uclinux*): Use gnu-user.opt.
22910
e1c5225a
TS
229112011-02-08 Thomas Schwinge <thomas@schwinge.name>
22912
22913 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
22914 * config/i386/gnu.h (CPP_SPEC): Likewise.
22915
5e46b0c6
ILT
229162011-02-08 Ian Lance Taylor <iant@google.com>
22917
22918 * common.opt (fcx-limited-range): Add SetByCombined flag.
22919 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
22920 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
22921 (fassociative-math, freciprocal-math): Likewise.
22922 (funsafe-math-optimizations): Likewise.
22923 * opth-gen.awk: Handle SetByCombined.
22924 * optc-gen.awk: Likewise.
ea4c3e65 22925 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
22926 (set_unsafe_math_optimizations_flags): Likewise.
22927 * doc/options.texi (Option properties): Document SetByCombined.
22928
32243d46
JM
229292011-02-08 Joseph Myers <joseph@codesourcery.com>
22930
22931 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
22932 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
22933 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
22934 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
22935 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
22936
479c1fb3
SP
229372011-02-08 Sebastian Pop <sebastian.pop@amd.com>
22938
22939 PR tree-optimization/46834
22940 PR tree-optimization/46994
22941 PR tree-optimization/46995
22942 * graphite-sese-to-poly.c (used_outside_reduction): New.
22943 (detect_commutative_reduction): Call used_outside_reduction.
22944 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
22945 translate_scalar_reduction_to_array only when at least one
22946 loop-phi/close-phi tuple has been detected.
22947
3865a06f
RG
229482011-02-08 Richard Guenther <rguenther@suse.de>
22949
22950 PR middle-end/47639
22951 * tree-vect-generic.c (expand_vector_operations_1): Update
22952 stmts here ...
22953 (expand_vector_operations): ... not here. Cleanup EH info
22954 and the CFG if required.
22955
62902f3f
RG
229562011-02-08 Richard Guenther <rguenther@suse.de>
22957
22958 PR tree-optimization/47641
22959 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
22960 require type compatibility.
22961
0efb9d64
AK
229622011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22963
22964 * gimple-low.c (lower_function_body): Don't remove the location of
22965 the return statement here.
22966 (lower_gimple_return): Do it here instead but only if the return
22967 statement is actually used twice.
22968
034b8ae4
RG
229692011-02-08 Richard Guenther <rguenther@suse.de>
22970
22971 PR tree-optimization/47632
22972 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
22973 unused up_to_stmt parameter, return whether cfg-cleanup is
22974 necessary, remove EH info properly.
22975 (forward_propagate_into_gimple_cond): Adjust caller.
22976 (forward_propagate_into_cond): Likewise.
22977 (forward_propagate_comparison): Likewise.
22978 (tree_ssa_forward_propagate_single_use_vars): Make
22979 forward_propagate_comparison case similar to the two others.
22980
298362c8
NC
229812011-02-08 Nick Clifton <nickc@redhat.com>
22982
22983 * config/mn10300/mn10300.opt (mliw): New command line option.
22984 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
22985 (liw_bundling): New automaton.
22986 (liw): New attribute.
22987 (liw_op): New attribute.
22988 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
22989 (movsi_internal): Add LIW attributes.
22990 (andsi3): Likewise.
22991 (iorsi3): Likewise.
22992 (xorsi3): Likewise.
22993 (addsi3): Separate register and immediate alternatives.
22994 Add LIW attributes.
22995 (subsi3): Likewise.
22996 (cmpsi): Likewise.
22997 (aslsi3): Likewise.
22998 (lshrsi3): Likewise.
22999 (ashrsi3): Likewise.
23000 (liw): New pattern.
23001 * config/mn10300/mn10300.c (liw_op_names): New
23002 (mn10300_print_operand): Handle 'W' operand descriptor.
23003 (extract_bundle): New function.
23004 (check_liw_constraints): New function.
23005 (liw_candidate): New function.
23006 (mn10300_bundle_liw): New function.
23007 (mn10300_reorg): New function.
23008 (TARGET_MACHINE_DEPENDENT_REORG): Define.
23009 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
23010 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
23011 __LIW__ or __NO_LIW__.
23012 * doc/invoke.texi: Describe the -mliw command line option.
23013
90488014
JDA
230142011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23015
23016 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
23017 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
23018 pthread_mutex_unlock): Remove.
23019 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
23020 * config/pa/t-pa64: Likewise.
23021 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
23022 shared libc if not linking against libpthread.
23023 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
23024
689ff841
IS
230252011-02-07 Iain Sandoe <iains@gcc.gnu.org>
23026
23027 PR target/47558
23028 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
23029 on 10.6 and later to ensure that we always use the unwinder from
23030 the system. Only add -no_compact_unwind when tarteting darwin
23031 10.6 or later.
23032
821014aa
SE
230332011-02-07 Steve Ellcey <sje@cup.hp.com>
23034
23035 PR target/46997
23036 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
23037 (vec_interleave_lowv2sf): Ditto.
23038 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
23039 (vec_extract_oddv2sf): Ditto.
23040
41cf94fb
MS
230412011-02-07 Mike Stump <mikestump@comcast.net>
23042
62dea57d 23043 PR target/42333
41cf94fb
MS
23044 Add __ieee_divdc3 entry point.
23045 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
23046 entry point.
23047 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
23048 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
23049 * config/darwin.c (darwin_rename_builtins): Add.
23050 * config/darwin-protos.h (darwin_rename_builtins): Add.
23051
ee09a3dd
MM
230522011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
23053
23054 PR target/47636
23055 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
23056 for the condition.
23057
83296cd0
MS
230582011-02-07 Mike Stump <mikestump@comcast.net>
23059
ea4c3e65 23060 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 23061
0f4e946f
DC
230622011-02-07 Denis Chertykov <chertykov@gmail.com>
23063
23064 PR target/47534
23065 * config/avr/libgcc.S (exit): Move .endfunc
23066
1ec87690
RG
230672011-02-07 Richard Guenther <rguenther@suse.de>
23068
23069 PR tree-optimization/47615
23070 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
23071 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
23072 (run_scc_vn): Initialize it.
23073 (visit_reference_op_load): Use it.
23074 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
23075
b46ae6da
UW
230762011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23077
23078 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
23079 DImode trapping arithmetic libfuncs.
23080
c0aae19c
RG
230812011-02-07 Richard Guenther <rguenther@suse.de>
23082
23083 PR tree-optimization/47621
23084 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
23085 two duplicates ...
23086 (execute_update_addresses_taken): ... here. Make it more
23087 conservative in what we accept.
23088
295d926b
JM
230892011-02-06 Joseph Myers <joseph@codesourcery.com>
23090
23091 * config/sparc/freebsd.h (ASM_SPEC): Define.
23092 * config/sparc/vxworks.h (ASM_SPEC): Define.
23093
bdeb2471
JM
230942011-02-06 Joseph Myers <joseph@codesourcery.com>
23095
23096 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
23097
d5d3781a
SB
230982011-02-06 Steven Bosscher <steven@gcc.gnu.org>
23099
23100 * doc/invoke.texi: Remove reference to compiler internals from
23101 user documentation.
23102
23103 * reg-notes.def: Remove REG_VALUE_PROFILE.
23104 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
23105
c42c09fc
JJ
231062011-02-05 Jakub Jelinek <jakub@redhat.com>
23107
23108 PR middle-end/47610
23109 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 23110 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 23111
beea2755
JZ
231122011-02-05 Jie Zhang <jie@codesourcery.com>
23113
23114 PR debug/42631
23115 * web.c (entry_register): Don't clobber the number of the
23116 first uninitialized reference in used[].
23117
a130584a
SP
231182011-02-04 Sebastian Pop <sebastian.pop@amd.com>
23119
23120 PR tree-optimization/46194
23121 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
23122 (build_classic_dist_vector_1): Do not represent classic distance
23123 vectors when the access functions are variating in different loops.
23124
962101ac
JM
231252011-02-04 Joseph Myers <joseph@codesourcery.com>
23126
23127 * config/mips/iris6.opt: New.
23128 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
23129
55eaaa5b
RH
231302011-02-04 Richard Henderson <rth@redhat.com>
23131 Steve Ellcey <sje@cup.hp.com>
23132
23133 PR target/46997
23134 * config/ia64/predicates.md (mux1_brcst_element): New.
23135 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
23136 * config/ia64/ia64.c (ia64_unpack_assemble): New.
23137 (ia64_unpack_sign): New.
23138 (ia64_expand_unpack): Rewrite using new routines.
23139 (ia64_expand_widen_sum): Ditto.
23140 (ia64_expand_dot_prod_v8qi): Ditto.
23141 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
23142 routines, add endian check.
23143 (pmpy2_even): Rename from pmpy2_r, add endian check.
23144 (pmpy2_odd): Rename from pmpy2_l, add endian check.
23145 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
23146 (vec_widen_smult_hi_v4hi): Ditto.
23147 (vec_widen_umult_lo_v4hi): Ditto.
23148 (vec_widen_umult_hi_v4hi): Ditto.
23149 (mulv2si3): Change endian checks.
23150 (sdot_prodv4hi): Rewrite with new calls.
23151 (udot_prodv4hi): New.
23152 (vec_pack_ssat_v4hi): Add endian check.
23153 (vec_pack_usat_v4hi): Ditto.
23154 (vec_pack_ssat_v2si): Ditto.
23155 (max1_even): Rename from max1_r, add endian check.
23156 (max1_odd): Rename from max1_l, add endian check.
23157 (*mux1_rev): Format change.
23158 (*mux1_mix): Ditto.
23159 (*mux1_shuf): Ditto.
23160 (*mux1_alt): Ditto.
23161 (*mux1_brcst_v8qi): Use new predicate.
23162 (vec_extract_evenv8qi): Remove endian check.
23163 (vec_extract_oddv8qi): Ditto.
23164 (vec_interleave_lowv4hi): Format change.
23165 (vec_interleave_highv4hi): Ditto.
23166 (mix2_even): Rename from mix2_r, add endian check.
23167 (mix2_odd): Rename from mux2_l, add endian check.
23168 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
23169 (vec_extract_evenodd_helper): Format change.
23170 (vec_extract_evenv4hi): Remove endian check.
23171 (vec_extract_oddv4hi): Remove endian check.
23172 (vec_interleave_lowv2si): Format change.
23173 (vec_interleave_highv2si): Format change.
23174 (vec_initv2si): Remove endian check.
23175 (vecinit_v2si): Add endian check.
23176 (reduc_splus_v2sf): Add endian check.
23177 (reduc_smax_v2sf): Ditto.
23178 (reduc_smin_v2sf): Ditto.
23179 (vec_initv2sf): Remove endian check.
23180 (fpack): Add endian check.
23181 (fswap): Add endian check.
23182 (vec_interleave_highv2sf): Add endian check.
23183 (vec_interleave_lowv2sf): Add endian check.
23184 (fmix_lr): Add endian check.
23185 (vec_setv2sf): Format change.
23186 (*vec_extractv2sf_0_be): Use shift to extract operand.
23187 (*vec_extractv2sf_1_be): New.
23188 (vec_pack_trunc_v4hi): Add endian check.
23189 (vec_pack_trunc_v2si): Format change.
23190
dcde5957
JJ
231912011-02-04 Jakub Jelinek <jakub@redhat.com>
23192
23193 PR inline-asm/23200
23194 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 23195 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
23196 (stmt_is_replaceable_p): New function.
23197 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
23198 callers.
23199 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
23200 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
23201 SSA_NAME_DEF_STMT.
23202 * tree-flow.h (stmt_is_replaceable_p): New prototype.
23203
a64a8e5a
JM
232042011-02-04 Joseph Myers <joseph@codesourcery.com>
23205
23206 * config/rs6000/xilinx.opt: New.
23207 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
23208
4da2ed2f
JM
232092011-02-04 Joseph Myers <joseph@codesourcery.com>
23210
23211 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
23212
a6e508f9
AS
232132011-02-03 Anatoly Sokolov <aesok@post.ru>
23214
23215 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
23216 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
23217 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
23218 secondary_reload_info, xtensa_secondary_reload): Remove.
23219 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
23220 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
23221 (xtensa_preferred_reload_class): Make static. Change return and
23222 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
23223 Use CONST_DOUBLE_P predicate.
23224 (xtensa_preferred_output_reload_class): New function.
23225 (xtensa_secondary_reload): Make static.
23226
82dc0de3
JM
232272011-02-03 Joseph Myers <joseph@codesourcery.com>
23228
23229 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
23230 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
23231 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
23232
7fece979
JJ
232332011-02-03 Jakub Jelinek <jakub@redhat.com>
23234
23235 PR middle-end/31490
23236 * output.h (SECTION_RELRO): Define.
23237 (SECTION_MACH_DEP): Adjust.
23238 (get_variable_section): New prototype.
23239 * varpool.c (varpool_finalize_named_section_flags): New function.
23240 (varpool_assemble_pending_decls): Call it.
23241 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
23242 * cgraphunit.c (cgraph_output_in_order): Call
23243 varpool_finalize_named_section_flags.
23244 * varasm.c (get_section): Allow section flags conflicts between
23245 relro and read-only sections if the section hasn't been declared yet.
23246 Set SECTION_OVERRIDE after diagnosing section type conflict.
23247 (get_variable_section): No longer static.
23248 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
23249 readonly sections that need relocations.
23250 (decl_readonly_section_1): New function.
23251 (decl_readonly_section): Use it.
23252
23253 Revert:
509d65dd 23254 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
23255 Steve Ellcey <sje@cup.hp.com>
23256
23257 PR middle-end/31490
23258 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
23259 if section attribute used.
23260
d18d5478
JJ
232612011-02-03 Jakub Jelinek <jakub@redhat.com>
23262
23263 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
23264 * config/darwin.c (SECTION_NO_ANCHOR): Define.
23265 (darwin_init_sections): Remove assertion.
23266
6479ed4b
NC
232672011-02-03 Nick Clifton <nickc@redhat.com>
23268
23269 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
23270 lt and ge.
38be4072 23271 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
23272 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
23273 instead of "n" and "pz".
23274 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
23275 CC_FLAG_S.
23276
89843f5d
JJ
232772011-02-03 Jakub Jelinek <jakub@redhat.com>
23278
65450d64
JJ
23279 PR target/47312
23280 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
23281 fma, expand FMA_EXPR as fma{,f,l} call.
23282
7d58701c
JJ
23283 PR lto/47274
23284 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
23285 copy them into a unsigned char variable and pass address of it to
23286 lto_output_data_stream.
23287
89843f5d
JJ
23288 PR target/47564
23289 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
23290 around backend_init_target and lang_dependent_init_target calls.
23291 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
23292 (verify_cgraph_node): Don't call set_cfun here. Use
23293 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
23294 Set error_found for incorrectly represented calls to thunks.
23295
4deef538
AO
232962011-02-03 Alexandre Oliva <aoliva@redhat.com>
23297
23298 PR debug/43092
23299 PR rtl-optimization/43494
23300 * rtl.h (for_each_inc_dec_fn): New type.
23301 (for_each_inc_dec): Declare.
23302 * rtlanal.c (struct for_each_inc_dec_ops): New type.
23303 (for_each_inc_dec_find_inc_dec): New fn.
23304 (for_each_inc_dec_find_mem): New fn.
23305 (for_each_inc_dec): New fn.
23306 * dse.c (struct insn_size): Remove.
23307 (replace_inc_dec, replace_inc_dec_mem): Remove.
23308 (emit_inc_dec_insn_before): New fn.
23309 (check_for_inc_dec): Use it, along with for_each_inc_dec.
23310 (canon_address): Pass mem modes to cselib_lookup.
23311 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
23312 (cselib_lookup_from_insn): Likewise.
23313 (cselib_subst_to_values): Likewise.
23314 * cselib.c (find_slot_memmode): New var.
23315 (cselib_find_slot): New fn. Use it instead of
23316 htab_find_slot_with_hash everywhere.
23317 (entry_and_rtx_equal_p): Use find_slot_memmode.
23318 (autoinc_split): New fn.
23319 (rtx_equal_for_cselib_p): Rename and implement in terms of...
23320 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
23321 Deal with autoinc. Special-case recursion into MEMs.
23322 (cselib_hash_rtx): Likewise.
23323 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
23324 address and MEM modes.
23325 (cselib_subst_to_values): Add memmode, pass it on.
23326 Deal with autoinc.
23327 (cselib_lookup): Add memmode argument, pass it on.
23328 (cselib_lookup_from_insn): Add memmode.
23329 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
23330 (struct cselib_record_autoinc_data): New.
23331 (cselib_record_autoinc_cb): New fn.
23332 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
23333 mode to cselib_lookup. Reset autoinced REGs here instead of...
23334 (cselib_process_insn): ... here.
23335 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
23336 to cselib_lookup.
23337 (add_uses): Likewise, also to cselib_subst_to_values.
23338 (add_stores): Likewise.
276e0224 23339 * sched-deps.c (add_insn_mem_dependence): Pass mode to
4deef538
AO
23340 cselib_subst_to_values.
23341 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
23342 * gcse.c (do_local_cprop): Adjusted.
23343 * postreload.c (reload_cse_simplify_set): Adjusted.
23344 (reload_cse_simplify_operands): Adjusted.
23345 * sel-sched-dump (debug_mem_addr_value): Pass mode.
23346
1551d44a
AO
233472011-02-03 Alexandre Oliva <aoliva@redhat.com>
23348
23349 PR tree-optimization/45122
23350 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
23351 unsafe assumptions when there's more than one loop exit.
23352
c9485473
MM
233532011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23354
23355 PR target/47272
23356 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23357 Document using vector double with the load/store builtins, and
23358 that the load/store builtins always use Altivec instructions.
23359
23360 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
23361 to use altivec memory instructions, even on VSX.
23362 (vector_altivec_store_<mode>): Ditto.
23363
23364 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
23365 function.
23366
23367 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23368 V2DF, V2DI support to load/store overloaded builtins.
23369
23370 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
23371 altivec load/store builtins for V2DF/V2DI types.
23372
23373 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23374 set avoid indexed addresses on power6 if -maltivec.
23375 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
23376 vector_altivec_load/vector_altivec_store builtins.
23377 (altivec_expand_st_builtin): Ditto.
23378 (altivec_expand_builtin): Add VSX memory builtins.
23379 (rs6000_init_builtins): Add V2DI types to internal types.
23380 (altivec_init_builtins): Add support for V2DF/V2DI altivec
23381 load/store builtins.
23382 (rs6000_address_for_altivec): Insure memory address is appropriate
23383 for Altivec.
23384
23385 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
23386 vec_vsx_ld and vec_vsx_st.
23387 (vsx_store_<mode>): Ditto.
23388
23389 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
23390 variables to hold long long types for VSX vector memory builtins.
23391 (RS6000_BTI_unsigned_long_long): Ditto.
23392 (long_long_integer_type_internal_node): Ditti.
23393 (long_long_unsigned_type_internal_node): Ditti.
23394
23395 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
23396 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
23397 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
23398
23399 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
23400 short cuts.
23401 (vec_vsx_st): Ditto.
23402
b24d1acf
JM
234032011-02-02 Joseph Myers <joseph@codesourcery.com>
23404
23405 * config/pa/pa-hpux10.opt: New.
23406 * config/hpux11.opt (pthread): New Driver option.
23407 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
23408 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
23409
aa18dd0f
JM
234102011-02-02 Joseph Myers <joseph@codesourcery.com>
23411
23412 * config/ia64/vms.opt: New.
23413 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
23414
28fc3eee
MM
234152011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
23416
23417 PR target/47580
23418 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
23419 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
23420 generator functions.
23421 (vsx_floatuns<VSi><mode>2): Ditto.
23422 (vsx_fix_trunc<mode><VSi>2): Ditto.
23423 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
23424
b5838b1f
JM
234252011-02-02 Joseph Myers <joseph@codesourcery.com>
23426
23427 * config/i386/djgpp.opt (posix): New Driver option.
23428
0db8fa89
GP
234292011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
23430
23431 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
23432 Move to the unsupported targets list.
23433
9cd4f22a
PB
234342011-02-02 Peter Bergner <bergner@vnet.ibm.com>
23435
23436 PR rtl-optimization/47525
23437 * df-scan.c: Update copyright years.
23438 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
23439 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
23440
9ed8059c
RO
234412011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23442
23443 * config/i386/sysv4.h (TARGET_VERSION): Remove.
23444 (SUBTARGET_RETURN_IN_MEMORY): Remove.
23445 (ASM_OUTPUT_ASCII): Remove.
23446 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
23447
2a737389
JL
234482011-02-02 Jeff Law <law@redhat.com>
23449
23450 PR middle-end/47543
23451 * reload.c (find_reloads_address): Handle reg+d address where both
23452 components are invalid by reloading the entire address.
23453
9dac82c4
SP
234542011-02-02 Sebastian Pop <sebastian.pop@amd.com>
23455 Richard Guenther <rguenther@suse.de>
23456
23457 PR tree-optimization/40979
23458 PR bootstrap/47044
23459 * passes.c (init_optimization_passes): After LIM call copy_prop
23460 and DCE to clean up.
23461 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
23462
14dd9aab
SP
234632011-02-02 Sebastian Pop <sebastian.pop@amd.com>
23464
23465 PR tree-optimization/47576
23466 PR tree-optimization/47555
23467 * doc/invoke.texi (scev-max-expr-complexity): Documented.
23468 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
23469 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
23470 * tree-scalar-evolution.c (follow_ssa_edge): Use
23471 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
23472
5cbf5c20
RG
234732011-02-02 Richard Guenther <rguenther@suse.de>
23474
23475 PR tree-optimization/47566
23476 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
23477
83d70792
AO
234782011-02-02 Alexandre Oliva <aoliva@redhat.com>
23479
e829c321
AO
23480 PR debug/47106
23481 PR debug/47402
23482 * tree-inline.c (declare_return_variable): Remove unused caller
23483 variable.
23484
83d70792
AO
23485 PR debug/47106
23486 PR debug/47402
23487 * tree-flow-inline.h (clear_is_used, is_used_p): New.
23488 * cfgexpand.c (account_used_vars_for_block): Use them.
23489 * tree-nrv.c (tree_nrv): Likewise.
23490 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
23491 (dump_scope_block): Likewise.
23492 (remove_unused_locals): Likewise.
23493
aaa2ac93
AO
23494 PR debug/47106
23495 PR debug/47402
23496 * tree-inline.c (declare_return_variable): Add result decl to
23497 local decls only once.
23498 * gimple-low.c (record_vars_into): Mark newly-created variables
23499 as referenced.
23500
a59d15cf
AO
235012011-02-02 Alexandre Oliva <aoliva@redhat.com>
23502
23503 PR debug/47498
23504 PR debug/47501
23505 PR debug/45136
23506 PR debug/45130
23507 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
23508 debug insns.
23509 (no_real_insns_p, schedule_block, set_priorities): Drop special
23510 treatment of boundary debug insns.
38be4072 23511 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
23512 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
23513 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
23514 (BOUNDARY_DEBUG_INSN_P): Likewise.
23515 (SCHEDULE_DEBUG_INSN_P): Likewise.
23516 * sched-rgn.c (init_ready_list): Drop special treatment of
23517 boundary debug insns.
23518 * final.c (rest_of_clean_state): Clear notes' BB.
23519
6fc2f091
JM
235202011-02-01 Joseph Myers <joseph@codesourcery.com>
23521
23522 * config/openbsd.opt (assert=): New Driver option.
23523
fc523387
JM
235242011-02-01 Joseph Myers <joseph@codesourcery.com>
23525
23526 * config/i386/nto.opt: New.
23527 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
23528
6d9821e5
JM
235292011-02-01 Joseph Myers <joseph@codesourcery.com>
23530
23531 * config/i386/netware.opt: New.
23532 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
23533
cef932d4
JM
235342011-02-01 Joseph Myers <joseph@codesourcery.com>
23535
23536 * config/interix.opt (posix): New Driver option.
23537
22843acd
DD
235382011-02-01 DJ Delorie <dj@redhat.com>
23539
56490b74
DD
23540 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
23541
22843acd
DD
23542 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
23543 class for A0/A1.
23544
199c8f2f
SP
235452011-02-01 Sebastian Pop <sebastian.pop@amd.com>
23546
23547 PR tree-optimization/47561
23548 * toplev.c (process_options): Print the Graphite flags. Add
23549 flag_loop_flatten to the list of options requiring Graphite.
23550
926bcf22
JM
235512011-02-01 Joseph Myers <joseph@codesourcery.com>
23552
23553 * config/i386/cygming.opt (posix): New Driver option.
23554
59793c51
JM
235552011-02-01 Joseph Myers <joseph@codesourcery.com>
23556
23557 * config/arm/vxworks.opt: New.
23558 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
23559
183c38a4
JM
235602011-02-01 Joseph Myers <joseph@codesourcery.com>
23561
23562 * config/alpha/elf.opt: New.
23563 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
23564 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
23565
9939e416
RG
235662011-02-01 Richard Guenther <rguenther@suse.de>
23567
23568 PR tree-optimization/47559
23569 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
23570 store-motion on references that can throw.
23571
4a3c9687
BS
235722011-02-01 Bernd Schmidt <bernds@codesourcery.com>
23573
23574 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
23575 * tree-pass.h (TDF_CSELIB): New macro.
23576 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
23577 cselib_lookup): Check for it rather than for TDF_DETAILS.
23578
dd3b31fb
L
235792011-02-01 H.J. Lu <hongjiu.lu@intel.com>
23580
23581 PR driver/47547
23582 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
23583 is HOST_BIT_BUCKET.
23584
23585 * opts.c (finish_options): Don't add x_aux_base_name if it is
23586 HOST_BIT_BUCKET.
23587
34c1de79
RG
235882011-02-01 Richard Guenther <rguenther@suse.de>
23589
23590 PR tree-optimization/47555
23591 Revert
23592 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
23593
23594 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
23595
dd2804d2
SB
235962011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
23597
23598 PR gcc/46692
23599 * config/lm32/t-lm32: Add multilib for all CPU options.
23600
3fd3b156
RG
236012011-02-01 Richard Guenther <rguenther@suse.de>
23602
23603 PR tree-optimization/47541
23604 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
23605 sure to have a field at offset zero.
23606
f16072b6
JM
236072011-01-31 Joseph Myers <joseph@codesourcery.com>
23608
23609 * config/arc/arc.opt (EB, EL): New Driver options.
23610
6456cf2e
JM
236112011-01-31 Joseph Myers <joseph@codesourcery.com>
23612
23613 * config/alpha/osf5.opt: New.
23614 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
23615
cdde6ab4
JM
236162011-01-31 Joseph Myers <joseph@codesourcery.com>
23617
23618 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
23619
7633415c
SP
236202011-01-31 Sebastian Pop <sebastian.pop@amd.com>
23621
23622 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
23623 -floop-interchange.
23624 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
23625 is an alias of -floop-interchange and that it requires the
23626 Graphite infrastructure.
23627 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
23628 flag_loop_interchange based on the value of flag_tree_loop_linear.
23629
0425d6f5
JJ
236302011-01-31 Jakub Jelinek <jakub@redhat.com>
23631 Richard Guenther <rguenther@suse.de>
23632
23633 PR tree-optimization/47538
23634 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
23635 type instead of r1type, except for comparisons. For right
23636 shifts and comparisons punt if there are mismatches in
23637 sizetype vs. non-sizetype types.
23638
500b16c3
RO
236392011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23640
23641 * doc/sourcebuild.texi (Effective-Target Keywords): Document
23642 avx_runtime.
23643
e279edb0
RO
236442011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23645
23646 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
23647 version number.
23648 * configure: Regenerate.
23649
c6092243
RO
236502011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23651
23652 * configure.ac (gcc_cv_ld_static_option): Define.
23653 (gcc_cv_ld_dynamic_option): Define.
23654 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
23655 instead.
23656 (HAVE_LD_STATIC_DYNAMIC): Update message.
23657 (LD_STATIC_OPTION): Define.
23658 (LD_DYNAMIC_OPTION): Define.
23659 * configure: Regenerate.
23660 * config.in: Regenerate.
23661 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
23662 HAVE_LD_STATIC_DYNAMIC]: Use them.
23663
d7862be3
NC
236642011-01-31 Nick Clifton <nickc@redhat.com>
23665
23666 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
23667 registers inside interrupt handlers if the handler is not a leaf
23668 function.
23669
ba4ec0e0
NC
236702011-01-31 Nick Clifton <nickc@redhat.com>
23671
23672 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
23673 reg_renumber returning an INVALID_REGNUM.
23674
29a63921
AO
236752011-01-31 Alexandre Oliva <aoliva@redhat.com>
23676
23677 PR libgcj/44341
23678 * doc/install.texi: Document host options discarded when cross
23679 configuring target libraries.
23680
ef591d3f
AO
236812011-01-31 Alexandre Oliva <aoliva@redhat.com>
23682
23683 Reverted:
23684 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
23685 PR debug/45136
23686 PR debug/45130
23687 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
23688 debug insns.
23689 (no_real_insns_p, schedule_block, set_priorities): Drop special
23690 treatment of boundary debug insns.
38be4072 23691 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
23692 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
23693 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
23694 (BOUNDARY_DEBUG_INSN_P): Likewise.
23695 (SCHEDULE_DEBUG_INSN_P): Likewise.
23696 * sched-rgn.c (init_ready_list): Drop special treatment of
23697 boundary debug insns.
23698 * final.c (rest_of_clean-state): Clear notes' BB.
23699
61052244
AM
237002011-01-31 Alan Modra <amodra@gmail.com>
23701
23702 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
23703 toc relative expressions as we do in print_operand_address.
23704
c4c8962b
KH
237052011-01-30 Kazu Hirata <kazu@codesourcery.com>
23706
23707 * doc/extend.texi: Follow spelling conventions.
23708 * doc/invoke.texi: Fix a typo.
23709
e543b94c
JM
237102011-01-30 Joseph Myers <joseph@codesourcery.com>
23711
23712 * config/hpux11.opt: New.
23713 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
23714 ia64*-*-hpux*): Use hpux11.opt.
23715
509d65dd 237162011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
23717
23718 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
23719 to tmake_file.
23720
7be03a0e
GP
237212011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
23722
23723 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
23724 support sites.
23725
419d1d37
GP
237262011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
23727
b596ed64
GP
23728 * doc/install.texi (Binaries): Remove outdated reference for
23729 Motorola 68HC11/68HC12 downloads.
23730
237312011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 23732
419d1d37
GP
23733 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
23734 Drepper's paper.
23735
4406d0e9
JW
237362011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
23737
23738 PR bootstrap/47147
23739 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
23740 used by NetBSD.
23741
38be4072 237422011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
23743
23744 * value-prof.c (check_counter): Corrected error message.
23745
0cd98787
JZ
237462011-01-29 Jie Zhang <jie@codesourcery.com>
23747
23748 * config/arm/arm.c (arm_legitimize_reload_address): New.
23749 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
23750 arm_legitimize_reload_address.
38be4072 23751 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 23752
9b798ac5
ILT
237532011-01-28 Ian Lance Taylor <iant@google.com>
23754
23755 * godump.c (go_define): Ignore macros whose definitions include
23756 two adjacent operands.
23757
591e29d9
JJ
237582011-01-28 Jakub Jelinek <jakub@redhat.com>
23759
23760 PR target/42894
23761 * varasm.c (force_const_mem): Store copy of x in desc->constant
23762 instead of x itself.
23763 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
23764 itself into REG_EQUAL note.
23765
62dcc44a
JM
237662011-01-28 Joseph Myers <joseph@codesourcery.com>
23767
23768 * config/freebsd.opt (posix, rdynamic): New Driver options.
23769
c9f58b9a
RO
237702011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23771
23772 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
23773 -Bstatic/-Bdynamic.
23774 * configure: Regenerate.
23775
5f02b9db
JM
237762011-01-27 Joseph Myers <joseph@codesourcery.com>
23777
23778 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
23779 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
23780
5df97412
AS
237812011-01-27 Anatoly Sokolov <aesok@post.ru>
23782
23783 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
23784 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
23785 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
23786 (s390_preferred_reload_class): Make static. Change return and
23787 'rclass' argument type to reg_class_t.
23788
779d4b91
JH
237892011-01-27 Jan Hubicka <jh@suse.cz>
23790
23791 PR middle-end/46949
23792 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
23793 (process_function_and_variable_attributes): Check defined weakrefs.
23794
e80b21ed
MJ
237952011-01-27 Martin Jambor <mjambor@suse.cz>
23796
23797 PR tree-optimization/47228
23798 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
23799 build_ref_for_offset.
23800
6dcc4f31
UW
238012011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23802
23803 * config/spu/spu-elf.h (ASM_SPEC): Remove.
23804
509d65dd 238052011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
23806
23807 PR rtl-optimization/46856
23808 * postreload.c (reload_combine_recognize_const_pattern): Do not
23809 separate cc0 setter and user on cc0 targets.
23810
04af8788
NP
238112011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
23812
23813 PR c/43082
23814 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
23815 passed a VOID_TYPE expression, immediately emit an error and
23816 return error_mark_node.
23817
f7a60085
JL
238182011-01-26 Jeff Law <law@redhat.com>
23819
23820 PR rtl-optimization/47464
23821 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
23822 rather than may_trap_p as needed.
23823
5c2917ec
DD
238242011-01-26 DJ Delorie <dj@redhat.com>
23825
23826 PR rtl-optimization/46878
23827 * combine.c (insn_a_feeds_b): Check for the implicit cc0
23828 setter/user dependency as well.
23829
bef16e87
EB
238302011-01-26 Eric Botcazou <ebotcazou@adacore.com>
23831
23832 PR rtl-optimization/44469
23833 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
23834 after removing trivially dead basic blocks.
23835
c75d884b
JM
238362011-01-26 Joseph Myers <joseph@codesourcery.com>
23837
23838 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
23839 * config/frv/frv.h (LINK_SPEC): Likewise.
23840 * config/i386/netware.h (LINK_SPEC): Likewise.
23841 * config/m68k/linux.h (ASM_SPEC): Likewise.
23842 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
23843 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
23844 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23845 * config/sparc/linux.h (ASM_SPEC): Likewise.
23846 * config/sparc/linux64.h (ASM_SPEC): Likewise.
23847 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23848
d3153553
JM
238492011-01-26 Joseph Myers <joseph@codesourcery.com>
23850
23851 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
23852 * config/frv/frv.h (ASM_SPEC): Likewise.
23853 * config/m68k/linux.h (ASM_SPEC): Likewise.
23854 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
23855 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
23856 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23857 * config/sparc/linux.h (ASM_SPEC): Likewise.
23858 * config/sparc/linux64.h (ASM_SPEC): Likewise.
23859 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23860
b89b1e9d
JM
238612011-01-26 Joseph Myers <joseph@codesourcery.com>
23862
23863 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
23864 * config/frv/frv.h (LINK_SPEC): Likewise.
23865 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
23866
12eb1a9c
JM
238672011-01-26 Joseph Myers <joseph@codesourcery.com>
23868
23869 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
23870 * config/frv/frv.h (ASM_SPEC): Likewise.
23871 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
23872 * config/m68k/linux.h (ASM_SPEC): Likewise.
23873 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
23874 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
23875 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23876 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
23877 * config/sparc/linux.h (ASM_SPEC): Likewise.
23878 * config/sparc/linux64.h (ASM_SPEC): Likewise.
23879 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23880 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
23881
e435f098
SE
238822011-01-26 Steve Ellcey <sje@cup.hp.com>
23883
23884 PR target/46997
23885 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
23886 (*mux2): Ditto.
23887 (vec_extract_evenodd_help): Ditto.
23888 (vec_extract_evenv4hi): Ditto.
23889 (vec_extract_oddv4hi): Ditto.
23890 (vec_interleave_lowv2si): Ditto.
23891 (vec_interleave_highv2si): Ditto.
23892 (vec_extract_evenv2si): Ditto.
23893 (vec_extract_oddv2si: Ditto.
23894 (vec_pack_trunc_v2si): Ditto.
23895
34f0eee0
JH
238962011-01-22 Jan Hubicka <jh@suse.cz>
23897
23898 PR target/47237
23899 * cgraph.h (cgraph_local_info): New field can_change_signature.
23900 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
23901 signature can change.
23902 (ipcp_estimate_growth): Call sequence simplify only if calle signature
23903 can change.
23904 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
23905 (cgraph_function_versioning): We can not change signature of functions
23906 that don't allow that.
23907 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
23908 (lto_input_node): Likewise.
38be4072
UB
23909 * ipa-inline.c (compute_inline_parameters): Compute
23910 local.can_change_signature.
34f0eee0 23911 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
23912 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
23913 functions that can not change signature.
34f0eee0 23914 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
23915 init_cumulative_args): Do not use local calling conventions
23916 for functions that can not change signature.
34f0eee0 23917
980ca891
JH
239182011-01-22 Jan Hubicka <jh@suse.cz>
23919
23920 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
23921
768e3c60
RG
239222011-01-26 Richard Guenther <rguenther@suse.de>
23923
23924 PR tree-optimization/47190
61052244
AM
23925 * cgraphunit.c (process_common_attributes): New function.
23926 (process_function_and_variable_attributes): Use it.
768e3c60 23927
21d6a1c7
RG
239282011-01-26 Richard Guenther <rguenther@suse.de>
23929
23930 PR lto/47423
23931 * cgraphbuild.c (record_eh_tables): Record reference to personality
23932 function.
23933
48bb58b1
AO
239342011-01-26 Alexandre Oliva <aoliva@redhat.com>
23935
23936 PR debug/45454
23937 * sel-sched.c (moveup_expr): Don't let debug insns prevent
23938 non-debug insns from moving up.
23939
58c741a6
DK
239402011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
23941
23942 PR target/40125
23943 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
23944 t-dlldir{,-x} fragment for build and add it to tmake_file.
23945 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
23946 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
23947 * config/i386/t-dlldir: New file.
23948 (SHLIB_DLLDIR): Define.
23949 * config/i386/t-dlldir-x: New file.
23950 (SHLIB_DLLDIR): Define.
23951 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
23952 (SHLIB_INSTALL): Use it.
23953
bff99262
CLT
239542011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
23955
23956 PR target/47246
23957 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
23958 lower bound of the allowed Thumb-2 coprocessor load/store
23959 index range to -256. Add explaining comment.
23960
82c03907
ILT
239612011-01-25 Ian Lance Taylor <iant@google.com>
23962
23963 * godump.c (go_define): Improve lexing of macro expansion to only
23964 accept expressions which match Go spec.
23965
47ea1edf
DK
239662011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
23967
d4dba752 23968 PR c++/43601
47ea1edf
DK
23969 * tree.c (handle_dll_attribute): Handle it.
23970 * doc/extend.texi (@item dllexport): Mention it.
23971 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
23972
744f0946
ILT
239732011-01-25 Ian Lance Taylor <iant@google.com>
23974
23975 PR tree-optimization/26854
23976 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
23977 (decl_jump_unsafe): Move higher in file, with no other change.
23978 (bind): Set has_jump_unsafe_decl if appropriate.
23979 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
23980 (check_earlier_gotos): Likewise.
23981 (c_check_switch_jump_warnings): Likewise.
23982
5734f2b3
JW
239832011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
23984
23985 * doc/invoke.texi (Warning Options): Add missing hyphen.
23986 (-fprofile-dir): Minor grammatical fixes.
23987 (-fbranch-probabilities): Likewise.
23988
9bdbdcef
AO
239892011-01-25 Alexandre Oliva <aoliva@redhat.com>
23990
23991 PR debug/45136
23992 PR debug/45130
23993 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
23994 debug insns.
23995 (no_real_insns_p, schedule_block, set_priorities): Drop special
23996 treatment of boundary debug insns.
38be4072 23997 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
23998 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
23999 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
24000 (BOUNDARY_DEBUG_INSN_P): Likewise.
24001 (SCHEDULE_DEBUG_INSN_P): Likewise.
24002 * sched-rgn.c (init_ready_list): Drop special treatment of
24003 boundary debug insns.
24004 * final.c (rest_of_clean-state): Clear notes' BB.
24005
b305e3da
SP
240062011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24007
24008 * Makefile.in (LAMBDA_H): Removed.
24009 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
24010 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
24011 lambda-trans.o, and tree-loop-linear.o.
24012 (lto-symtab.o): Remove dependence on LAMBDA_H.
24013 (tree-loop-linear.o): Remove rule.
24014 (lambda-mat.o): Same.
24015 (lambda-trans.o): Same.
24016 (lambda-code.o): Same.
24017 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
24018 (tree-vect-slp.o): Same.
24019 * hwint.h (gcd): Moved here.
24020 (least_common_multiple): Same.
24021 * lambda-code.c: Removed.
24022 * lambda-mat.c: Removed.
24023 * lambda-trans.c: Removed.
24024 * lambda.h: Removed.
24025 * tree-loop-linear.c: Removed.
24026 * lto-symtab.c: Do not include lambda.h.
24027 * omega.c (gcd): Removed.
24028 * passes.c (init_optimization_passes): Remove pass_linear_transform.
24029 * tree-data-ref.c (print_lambda_vector): Moved here.
24030 (lambda_vector_copy): Same.
24031 (lambda_matrix_copy): Same.
24032 (lambda_matrix_id): Same.
24033 (lambda_vector_first_nz): Same.
24034 (lambda_matrix_row_add): Same.
24035 (lambda_matrix_row_exchange): Same.
24036 (lambda_vector_mult_const): Same.
24037 (lambda_vector_negate): Same.
24038 (lambda_matrix_row_negate): Same.
24039 (lambda_vector_equal): Same.
24040 (lambda_matrix_right_hermite): Same.
24041 * tree-data-ref.h: Do not include lambda.h.
24042 (lambda_vector): Moved here.
24043 (lambda_matrix): Same.
24044 (dependence_level): Same.
24045 (lambda_transform_legal_p): Removed declaration.
24046 (lambda_collect_parameters): Same.
24047 (lambda_compute_access_matrices): Same.
24048 (lambda_vector_gcd): Same.
24049 (lambda_vector_new): Same.
24050 (lambda_vector_clear): Same.
24051 (lambda_vector_lexico_pos): Same.
24052 (lambda_vector_zerop): Same.
24053 (lambda_matrix_new): Same.
24054 * tree-flow.h (least_common_multiple): Removed declaration.
24055 * tree-parloops.c (lambda_trans_matrix): Moved here.
24056 (LTM_MATRIX): Same.
24057 (LTM_ROWSIZE): Same.
24058 (LTM_COLSIZE): Same.
24059 (LTM_DENOMINATOR): Same.
24060 (lambda_trans_matrix_new): Same.
24061 (lambda_matrix_vector_mult): Same.
24062 (lambda_transform_legal_p): Same.
24063 * tree-pass.h (pass_linear_transform): Removed declaration.
24064 * tree-ssa-loop.c (tree_linear_transform): Removed.
24065 (gate_tree_linear_transform): Removed.
24066 (pass_linear_transform): Removed.
24067 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
24068 flag_loop_interchange.
24069
6bdfdb96
JJ
240702011-01-25 Jakub Jelinek <jakub@redhat.com>
24071
24072 PR tree-optimization/47265
24073 PR tree-optimization/47443
24074 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
24075 if name still has some uses.
24076
e4cba915
MJ
240772011-01-25 Martin Jambor <mjambor@suse.cz>
24078
24079 PR tree-optimization/47382
24080 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
24081 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
24082
509d65dd 240832011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
24084
24085 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
24086 sjlj_except_unwind_info.
24087
194313e2
RG
240882011-01-25 Richard Guenther <rguenther@suse.de>
24089
24090 PR tree-optimization/47426
24091 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
24092 visible functions results escape.
24093
147a0bcf
JJ
240942011-01-25 Jakub Jelinek <jakub@redhat.com>
24095
24096 PR target/45701
24097 * config/arm/arm.c (any_sibcall_uses_r3): New function.
24098 (arm_get_frame_offsets): Use it.
24099
db963b52
SP
241002011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24101 Jakub Jelinek <jakub@redhat.com>
24102
24103 PR tree-optimization/47271
24104 * tree-if-conv.c (bb_postdominates_preds): New.
24105 (if_convertible_bb_p): Call bb_postdominates_preds.
24106 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
24107 (predicate_scalar_phi): Call bb_postdominates_preds.
24108
bcddd3b9
NC
241092011-01-25 Nick Clifton <nickc@redhat.com>
24110
24111 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
24112 * config/rx/rx.c (rx_function_value): Likewise.
24113 (rx_promote_function_mode): Likewise.
24114 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
24115 in order to make it legitimate.
38be4072
UB
24116 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
24117 make sure that the first operand is the same as the result register.
bcddd3b9
NC
24118 (addsi3_unspec): Delete.
24119 (subdi3): Do not accept immediate operands.
24120 (subdi3_internal): Likewise.
24121
7e6cb022
JL
241222011-01-25 Jeff Law <law@redhat.com>
24123
24124 PR rtl-optimization/37273
24125 * ira-costs.c (scan_one_insn): Detect constants living in memory and
24126 handle them like argument loads from stack slots. Do not double
24127 count memory for memory constants and argument loads from stack slots.
24128
9ffa621e
JJ
241292011-01-25 Jakub Jelinek <jakub@redhat.com>
24130
24131 PR tree-optimization/47427
24132 PR tree-optimization/47428
24133 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
24134 coalesce if the new root var would be TREE_READONLY.
24135
5bd6e652
RG
241362011-01-25 Richard Guenther <rguenther@suse.de>
24137
24138 PR middle-end/47414
24139 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
24140 correct type for TBAA.
24141
7c48ea69
SP
241422011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24143
24144 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
24145 (close_phi_written_to_memory): Call for_each_index with
24146 dr_indices_valid_in_loop.
24147
38013f25
SP
241482011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24149
24150 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
24151 when it is initialized.
24152
5c640e29
SP
241532011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24154
24155 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
24156 call to graphite_find_data_references_in_stmt.
24157 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
24158 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
24159 call to graphite_find_data_references_in_stmt.
24160 (analyze_drs_in_stmts): Same.
24161 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
24162 in which the scalar analysis of indices is performed.
24163 (create_data_ref): Same. Update call to dr_analyze_indices.
24164 (find_data_references_in_stmt): Update call to create_data_ref.
24165 (graphite_find_data_references_in_stmt): Same.
24166 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
24167 declaration.
24168 (create_data_ref): Same.
24169 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
24170 call to create_data_ref.
24171
ac53c069
SP
241722011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24173
24174 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 24175 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 24176
3d17df15
SP
241772011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24178
24179 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
24180 VAR_DECL, PARM_DECL, and RESULT_DECL.
24181
c513da01
SP
241822011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24183
24184 * graphite-dependences.c (reduction_dr_1): Allow several reductions
24185 in a reduction PBB.
24186 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
24187 that have already been marked as PBB_IS_REDUCTION.
24188
3a292d59
SP
241892011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24190
24191 * graphite-scop-detection.c (same_close_phi_node): New.
24192 (remove_duplicate_close_phi): New.
24193 (make_close_phi_nodes_unique): New.
24194 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
24195
ba858447
SP
241962011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24197
24198 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
24199 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
24200 of both data references to be the same.
24201
8d865c56
SP
242022011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24203
38be4072
UB
24204 * graphite-dependences.c (build_lexicographical_constraint): Remove
24205 the gdim parameter.
24206 (build_lexicographical_constraint): Adjust call to
24207 ppl_powerset_is_empty.
8d865c56
SP
24208 (dependence_polyhedron): Same.
24209 (graphite_legal_transform_dr): Same.
24210 (graphite_carried_dependence_level_k): Same.
38be4072
UB
24211 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
24212 parameter.
8d865c56
SP
24213 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
24214
50034a36
SP
242152011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24216
24217 * graphite-sese-to-poly.c
24218 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
24219 (close_phi_written_to_memory): New.
24220 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
24221 and unshare_expr.
24222
0deada9e
SP
242232011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24224
24225 * doc/install.texi: Update the expected version number of PPL to 0.11.
24226 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
24227 #if PPL_VERSION_MINOR < 11.
24228
d7d3d6af
SP
242292011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24230
24231 * graphite-dependences.c: Include graphite-cloog-util.h.
24232 (new_poly_ddr): Inlined into dependence_polyhedron.
24233 (free_poly_ddr): Moved close by new_poly_ddr.
24234 (dependence_polyhedron_1): Renamed dependence_polyhedron.
24235 Early return NULL when ppl_powerset_is_empty returns true.
24236 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
24237 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
24238 (graphite_legal_transform_dr): Call new_poly_ddr.
24239 (graphite_carried_dependence_level_k): Same.
24240 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
24241 (dot_transformed_deps_stmt_1): Removed.
24242 (dot_deps_stmt_1): Call dot_deps_stmt_2.
24243 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
24244 (dot_deps_1): Call dot_deps_2.
24245 * Makefile.in (graphite-dependences.o): Add missing dependence on
24246 graphite-cloog-util.h.
24247
28c5db57
SP
242482011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24249
24250 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
24251 (build_lexicographical_constraint): Same.
24252 (dependence_polyhedron_1): Same.
24253 (graphite_legal_transform_dr): Same.
24254 (graphite_carried_dependence_level_k): Same.
24255 * graphite-ppl.c (ppl_powerset_is_empty): New.
24256 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
24257 * tree-data-ref.c (dump_data_reference): Print the basic block index.
24258
5168d98f
SP
242592011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24260
24261 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
24262 the "a followed by b" relation and document it.
24263
4a40293a
SP
242642011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24265
24266 * graphite-dependences.c (build_lexicographical_constraint): Stop the
24267 iteration when the bag of constraints is empty.
24268
271fb6fa
SP
242692011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24270
24271 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
24272
92d23680
SP
242732011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24274
24275 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
24276 nest and two loop depths as parameters.
24277 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
24278 lst_perfect_nestify.
24279
2f51deff
SP
242802011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24281
24282 * graphite-dependences.c (print_pddr): Call
24283 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
24284
07f3593c
SP
242852011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24286
24287 * graphite-ppl.c (debug_gmp_value): New.
24288 * graphite-ppl.h (debug_gmp_value): Declared.
24289
3fae6099
TG
242902011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
24291
24292 * doc/install.texi: Document availability of cloog-0.16.
24293
1c3ba85b
SP
242942011-01-25 Vladimir Kargov <kargov@gmail.com>
24295
24296 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
24297 invalid postdominance info.
24298
e8ba94fc
JH
242992011-01-24 Jan Hubicka <jh@suse.cz>
24300
24301 PR c/21659
24302 * doc/extend.texi (weak pragma): Drop claim that it must
24303 appear before definition.
24304 * varasm.c (merge_weak, declare_weak): Only sanity check
24305 that DECL is not output at a time it is declared weak.
24306
2b6e2d13
KZ
243072011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
24308
24309 * machmode.def: Fixed comments.
1c3ba85b 24310
9841210f
KT
243112011-01-24 Kai Tietz <kai.tietz@onevision.com>
24312
24313 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
24314
243152011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
24316
24317 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 24318 WORDS_BIG_ENDIAN.
e046112d 24319
a6c5070a
L
243202011-01-24 H.J. Lu <hongjiu.lu@intel.com>
24321
24322 PR target/46519
24323 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
24324 (block_info): Add scanned and prev.
24325 (move_or_delete_vzeroupper_2): Return if the basic block
24326 has been scanned and the upper 128bit state is unchanged
24327 from the last scan.
24328 (move_or_delete_vzeroupper_1): Return true if the exit
24329 state is changed.
24330 (move_or_delete_vzeroupper): Visit basic blocks using the
24331 work-list based algorithm based on vt_find_locations in
24332 var-tracking.c.
24333
24334 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
24335
a40d79d7
NC
243362011-01-24 Nick Clifton <nickc@redhat.com>
24337
24338 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
24339 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
24340 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
24341 then define __v850e1__.
24342 * doc/invoke.texi: Document -mv850es.
24343
440eb8de
RH
243442011-01-24 Richard Henderson <rth@redhat.com>
24345
24346 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
24347 compound unordered comparisons.
24348 * config/rx/rx.c (rx_split_fp_compare): Remove.
24349 * config/rx/rx-protos.h: Update.
24350 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
24351 (cbranchsf4): Don't call rx_split_fp_compare.
24352 (*cbranchsf4): Use rx_split_cbranch.
24353 (*cmpsf): Don't accept "i" constraint.
24354 (*conditional_branch): Only valid after reload.
24355 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
24356
3ff79f99
MM
243572011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
24358
24359 PR target/47385
24360 * config/rs6000/altivec.md (vector constant splitters): Add
24361 support for creating vector single precision constants if -mvsx is
24362 used and we would create the constant using Altivec primitives.
24363
ff3d9d08
BS
243642011-01-23 Bernd Schmidt <bernds@codesourcery.com>
24365 Richard Sandiford <rdsandiford@googlemail.com>
24366
24367 PR rtl-optimization/47166
24368 * reload1.c (emit_reload_insns): Disable the spill_reg_store
24369 mechanism for PRE_MODIFY and POST_MODIFY.
24370 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
24371 reloadreg.
24372
7fcaf152
AS
243732011-01-23 Andreas Schwab <schwab@linux-m68k.org>
24374
8788adb6 24375 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 24376
d09b58c4
JH
243772011-01-22 Jan Hubicka <jh@suse.cz>
24378
24379 PR lto/47333
24380 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
24381
e8ff8c5a
JH
243822011-01-22 Jan Hubicka <jh@suse.cz>
24383
24384 PR tree-optimization/43884
24385 PR lto/44334
8788adb6 24386 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
24387 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
24388
ccaed3ba
AS
243892011-01-22 Anatoly Sokolov <aesok@post.ru>
24390
24391 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
24392 * config/s390/s390.c (s390_register_move_cost,
24393 s390_memory_move_cost): New.
24394 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
24395
0cecee06
UW
243962011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24397
24398 PR middle-end/47401
24399 * except.c (sjlj_assign_call_site_values): Move setting the
24400 crtl->uses_eh_lsda flag to ...
24401 (sjlj_mark_call_sites): ... here.
24402 (sjlj_emit_function_enter): Support NULL dispatch label.
24403 (sjlj_build_landing_pads): In a function with no landing pads
24404 that still has must-not-throw regions, generate code to register
24405 a personality function with empty LSDA.
24406
e692f276
RH
244072011-01-21 Richard Henderson <rth@redhat.com>
24408
1b7ae0b7
RH
24409 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
24410
3843787f
RH
24411 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
24412
e692f276
RH
24413 * compare-elim.c: New file.
24414 * Makefile.in (OBJS-common): Add it.
24415 (compare-elim.o): New.
24416 * common.opt (fcompare-elim): New.
24417 * opts.c (default_options_table): Add OPT_fcompare_elim.
24418 * tree-pass.h (pass_compare_elim_after_reload): New.
24419 * passes.c (init_optimization_passes): Add it.
24420 * recog.h: Protect against re-inclusion.
24421 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
24422 * doc/invoke.texi (-fcompare-elim): Document it.
24423 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
24424 * doc/tm.texi: Rebuild.
24425
9a7c2050
NC
244262011-01-22 Nick Clifton <nickc@redhat.com>
24427
24428 * config/rx/rx.md (cstoresf4): Pass comparison operator to
24429 rx_split_fp_compare.
24430
15ba5696
NC
244312011-01-22 Nick Clifton <nickc@redhat.com>
24432
24433 * config/rx/rx.md (UNSPEC_CONST): New.
24434 (deallocate_and_return): Wrap the amount popped off the stack in
24435 an UNSPEC_CONST in order to stop it being rejected by
24436 -mmax-constant-size.
24437 (pop_and_return): Add a "(return)" rtx.
24438 (call): Drop the immediate operand.
24439 (call_internal): Likewise.
24440 (call_value): Likewise.
24441 (call_value_internal): Likewise.
24442 (sibcall_internal): Likewise.
24443 (sibcall_value_internal): Likewise.
24444 (sibcall): Likewise. Generate an explicit call using
24445 sibcall_internal.
24446 (sibcall_value): Likewise.
24447 (mov<>): FAIL if a constant operand is not legitimate.
24448 (addsi3_unpsec): New pattern.
9a7c2050 24449
38be4072 24450 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
24451 (ok_for_max_constant): New function.
24452 (gen_safe_add): New function.
24453 (rx_expand_prologue): Use gen_safe_add.
24454 (rx_expand_epilogue): Likewise.
24455 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
24456 UNSPEC CONSTs.
24457
caaf13d3
JL
244582011-01-21 Jeff Law <law@redhat.com>
24459
24460 PR tree-optimization/47053
24461 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
24462 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
24463 statements are deleted.
24464 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
24465 is nonempty, then purge dead edges and cleanup the CFG.
24466
12c30f2f
AO
244672011-01-21 Alexandre Oliva <aoliva@redhat.com>
24468
24469 PR debug/47402
24470 Temporarily revert:
24471 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
24472 PR debug/47106
24473 * tree-dfa.c (create_var_ann): Mark variable as used.
24474
7360d2ac
JJ
244752011-01-21 Jakub Jelinek <jakub@redhat.com>
24476
aaa52a96
JJ
24477 PR middle-end/45566
24478 * except.c (convert_to_eh_region_ranges): Emit queued no-region
24479 notes from other section in hot/cold partitioning even if
24480 last_action is -3. Increment call_site_base.
24481
7360d2ac
JJ
24482 PR rtl-optimization/47366
24483 * fwprop.c (forward_propagate_into): Return bool. If
24484 any changes are made, -fnon-call-exceptions is used and
24485 REG_EH_REGION note is present, call purge_dead_edges
24486 and return true if it purged anything.
24487 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
24488 any EH edges were purged.
24489
e90b336f
JL
244902011-01-21 Jeff Law <law@redhat.com>
24491
24492 PR rtl-optimization/41619
24493 * caller-save.c (setup_save_areas): Break out code to determine
24494 which hard regs are live across calls by examining the reload chains
24495 so that it is always used.
24496 Eliminate code which checked REG_N_CALLS_CROSSED.
24497
3ffe07e1
JJ
244982011-01-21 Jakub Jelinek <jakub@redhat.com>
24499
24500 PR tree-optimization/47355
24501 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
24502 NOP has non-debug uses beyond PHIs in new_bb.
24503
1c7d0b34
AO
245042011-01-21 Alexandre Oliva <aoliva@redhat.com>
24505
24506 PR debug/47106
24507 * cfgexpand.c (account_used_vars_for_block): Only account vars
24508 that are annotated as used.
24509 (estimated_stack_frame_size): Don't set TREE_USED.
24510 * tree-dfa.c (create_var_ann): Mark variable as used.
24511
f99cc488
RG
245122011-01-21 Richard Guenther <rguenther@suse.de>
24513
24514 PR middle-end/47395
24515 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
24516
3bc27de7
RG
245172011-01-21 Richard Guenther <rguenther@suse.de>
24518
24519 PR tree-optimization/47365
24520 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
24521 (vn_reference_lookup_pieces): Adjust.
24522 (vn_reference_lookup): Likewise.
24523 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
24524 (vn_reference_lookup_3): Only look through kills if in
24525 VN_WALKREWRITE mode.
24526 (vn_reference_lookup_pieces): Adjust.
24527 (vn_reference_lookup): Likewise.
24528 (visit_reference_op_load): Likewise.
24529 (visit_reference_op_store): Likewise.
24530 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
24531 (compute_avail): Likewise.
24532 (eliminate): Likewise.
24533
d8debb1d
JJ
245342011-01-21 Jakub Jelinek <jakub@redhat.com>
24535
24536 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
24537 DECL_IGNORED_P non-reg vars if they are used.
24538
3a2df831
JJ
24539 PR tree-optimization/47391
24540 * varpool.c (const_value_known_p): Return false if
24541 decl is volatile.
24542
1dd584a2
KT
245432011-01-21 Kai Tietz <kai.tietz@onevision.com>
24544
24545 PR bootstrap/47215
24546 * config/i386/i386.c (ix86_local_alignment): Handle
24547 case for va_list_type_node is nil.
24548 (ix86_canonical_va_list_type): Likewise.
24549
7f9f095e
AM
245502011-01-21 Alan Modra <amodra@gmail.com>
24551
24552 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
24553 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
24554
837b01f6
RR
245552011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24556
24557 * config/arm/arm.md (define_attr type): Rename f_load
24558 and f_store to f_fpa_load and f_fpa_store. Update.
24559 (write_conflict): Deal with rename fallout.
24560 (*push_fp_multi): Likewise.
24561 * config/arm/fpa.md (f_load): Use f_fpa_load.
24562 (f_store): Use f_fpa_store.
24563 (*movsf_fpa): Likewise.
24564 (*movdf_fpa): Likewise.
24565 (*movxf_fpa): Likewise.
24566 (*thumb2_movsf_fpa): Likewise.
24567 (*thumb2_movdf_fpa): Likewise.
24568 (*thumb2_movxf_fpa): Likewise.
24569 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
24570 f_loadd and f_stored.
24571 (*thumb2_movdi_vfp): Likewise.
24572 (*thumb2_movsf_vfp): Fix attribute to f_loads.
24573 (*thumb2_movsi_vfp): Likewise.
24574 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
24575 Use f_loads instead of f_load.
24576 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
24577
a1a79768
AS
245782011-01-20 Anatoly Sokolov <aesok@post.ru>
24579
24580 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24581 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
24582 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24583 (xtensa_mode_dependent_address_p): New function.
24584 (constantpool_address_p): Make static. Change return type to bool.
24585 Change argument type to const_rtx. Use CONST_INT_P predicate.
24586
427f6cec
AO
245872011-01-20 Alexandre Oliva <aoliva@redhat.com>
24588
24589 PR debug/46583
24590 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
24591
583ac69c
JJ
245922011-01-20 Jakub Jelinek <jakub@redhat.com>
24593
24594 PR debug/47283
24595 * cfgexpand.c (expand_debug_expr): Instead of generating
24596 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
24597 etc. handling.
24598
93e452ed
RG
245992011-01-20 Richard Guenther <rguenther@suse.de>
24600
24601 PR middle-end/47370
24602 * tree-inline.c (remap_gimple_op_r): Recurse manually for
24603 the pointer operand of MEM_REFs.
24604
28fc44f3
JJ
246052011-01-20 Jakub Jelinek <jakub@redhat.com>
24606
24607 PR tree-optimization/46130
24608 * ipa-split.c (consider_split): If return_bb contains non-virtual
24609 PHIs other than for retval or if split_function would not adjust it,
24610 refuse to split.
24611
ddd268f2
RG
246122011-01-20 Richard Guenther <rguenther@suse.de>
24613
24614 PR tree-optimization/47167
24615 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
24616 Revert previous change, only avoid enumeral type changes.
24617
882020aa
MS
246182011-01-19 Mike Stump <mikestump@comcast.net>
24619
24620 * doc/tm.texi.in (BRANCH_COST): Englishify.
24621 * doc/tm.texi (BRANCH_COST): Likewise.
24622
7edb6247
DS
246232011-01-19 Dodji Seketeli <dodji@redhat.com>
24624
24625 PR c++/47291
24626 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
24627 (gen_scheduled_generic_parms_dies): New functions.
24628 (gen_struct_or_union_type_die): Schedule template parameters DIEs
24629 generation for the end of CU compilation.
24630 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 24631
23d5ed5d
AO
246322011-01-19 Alexandre Oliva <aoliva@redhat.com>
24633
24634 PR debug/46240
24635 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
24636 debug bind stmt on merge edges.
24637
37d6a488
AO
246382011-01-19 Alexandre Oliva <aoliva@redhat.com>
24639
24640 PR debug/47079
24641 PR debug/46724
24642 * function.c (instantiate_expr): Instantiate incoming rtl of
24643 implicit arguments, and recurse on VALUE_EXPRs.
24644 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
24645 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
24646
689f2c82
AO
246472011-01-19 Alexandre Oliva <aoliva@redhat.com>
24648
24649 * c-parser.c (c_parser_for_statement): Initialize
24650 collection_expression.
24651
03029de4
JM
246522011-01-19 Joseph Myers <joseph@codesourcery.com>
24653
24654 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
24655
3e03217e
JM
246562011-01-19 Joseph Myers <joseph@codesourcery.com>
24657
24658 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
24659 (LINK_SHLIB_SPEC): Don't use %(link_path).
24660 (SUBTARGET_EXTRA_SPECS): Remove link_path.
24661
5bbe9b3f
JM
246622011-01-19 Joseph Myers <joseph@codesourcery.com>
24663
24664 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
24665 (NO_SHARED_LIB_SUPPORT): Remove.
24666 (LINK_SHLIB_SPEC): Remove one conditional definition.
24667
368e0b39
JM
246682011-01-19 Joseph Myers <joseph@codesourcery.com>
24669
24670 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
24671 %{call_shared}.
24672 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
24673 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
24674 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
24675 %{call_shared} and conditionals on these options not being passed.
24676 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
24677 %{call_shared}.
24678
ed7656f6
JJ
246792011-01-19 Jakub Jelinek <jakub@redhat.com>
24680
68457901
JJ
24681 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
24682 simplify.
24683
ed7656f6
JJ
24684 * ipa-split.c: Spelling fixes.
24685
e0d1958f
RH
246862011-01-19 Richard Henderson <rth@redhat.com>
24687
24688 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
24689 (*mulsi3): Likewise.
24690
27098b6b
RH
24691 * longlong.h [__mn10300__] (count_leading_zeros): New.
24692 [__mn10300__] (umul_ppmm, smul_ppmm): New.
24693 [__mn10300__] (add_ssaaaa, subddmmss): New.
24694 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
24695 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
24696
d6be7c36
UW
246972011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24698
24699 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
24700
b1efde2a
RH
247012011-01-19 Richard Henderson <rth@redhat.com>
24702
44217823
RH
24703 * config/mn10300/mn10300.md (addsi3_flags): New.
24704 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
24705 (subsi3_flags, subc_internal, subdi3): New.
24706 (subdi3_internal, *subdi3_degenerate): New.
24707 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
24708
37a185d7
RH
24709 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
24710 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
24711 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
24712 * config/mn10300/mn10300-protos.h: Update.
24713 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
24714 (return_ret): Likewise. Rename from return_internal_regs.
24715 (return_internal): Remove.
24716
040c5757
RH
24717 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
24718 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
24719 (mn10300_legitimate_constant_p): Likewise.
24720 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
24721 (mn10300_frame_size): New.
24722 (mn10300_expand_prologue): Use it.
24723 (mn10300_expand_epilogue): Likewise.
24724 (mn10300_initial_offset): Likewise.
24725 * config/mn10300/mn10300-protos.h: Update.
24726 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
24727 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
24728 (prologue, epilogue, return_internal): Tidy output code.
24729 (mn10300_store_multiple_operation, return): Likewise.
24730 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
24731 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
24732 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
24733 (load_pic, am33_load_pic): New.
24734 (mn10300_load_pic0, mn10300_load_pic1): New.
24735
bad41521
RH
24736 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
24737 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
24738 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
24739 (cc_flags_for_mode, cc_flags_for_code): New.
24740 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
24741 overflow flag is not valid. Validate that the flags we need
24742 for the comparison are valid.
24743 (mn10300_output_cmp): Remove.
24744 (mn10300_output_add): New.
24745 (mn10300_select_cc_mode): Use cc_flags_for_code.
24746 (mn10300_split_cbranch): New.
24747 (mn10300_match_ccmode): New.
24748 (mn10300_split_and_operand_count): New.
24749 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
24750 to the function.
24751 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
24752 (addsi3): ... here. Use mn10300_output_add.
24753 (*addsi3_flags): New.
24754 (*am33_subsi3, *mn10300_subsi3): Merge...
24755 (subsi3): ... here. Use attribute isa.
24756 (*subsi3_flags): New.
24757 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
24758 when possible.
24759 (*am33_andsi3, *mn10300_andsi3): Merge...
24760 (andsi3): ... here.
24761 (*andsi3_flags): New.
24762 (andsi3 splitters): New.
24763 (*am33_iorsi3, *mn10300_iorsi3): Merge...
24764 (iorsi3): ... here.
24765 (*iorsi3_flags): New.
24766 (*am33_xorsi3, *mn10300_xorsi3): Merge...
24767 (xorsi3): ... here.
24768 (*xorsi3_flags): New.
24769 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
24770 (one_cmplsi2): ... here.
24771 (*one_cmplsi2_flags): New.
24772 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
24773 instead of "dax" in constraints. Use mn10300_split_cbranch.
24774 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
24775 use matching constraints to eliminate a self-comparison.
24776 (*integer_conditional_branch): Rename from integer_conditional_branch.
24777 Use int_mode_flags to match CC_REG.
24778 (*cbranchsi4_btst, *btstsi): New.
24779 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
24780 mn10300_split_cbranch.
24781 (*am33_cmpsf): Rename from am33_cmpsf.
24782 (*float_conditional_branch): Rename from float_conditional_branch.
24783 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
24784 (zero_extendqisi2): ... here.
24785 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
24786 (zero_extendhisi2): ... here.
24787 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
24788 (extendqisi2): ... here.
24789 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
24790 (extendhisi2): ... here.
24791 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
24792 (ashlsi3): ... here.
24793 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
24794 (lshrsi3): ... here.
24795 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
24796 (ashrsi3): ... here.
24797 (consecutive add peephole): Remove.
24798 * config/mn10300/predicates.md (label_ref_operand): New.
24799 (int_mode_flags): New.
24800 (CCZN_comparison_operator): New.
24801
9efb4993
RH
24802 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
24803 (throughput_42_latency_43): New reservation.
24804 (mulsidi3, umulsidi3): New expanders.
24805 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
24806 the MDR register to allocation; separately allocate the low and
24807 high parts of the DImode result.
24808 (umulsidi3_internal): Similarly.
24809 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
24810 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
24811 (udivsi3, umodsi3): Remove.
24812 (udivmodsi4, divmodsi4): New expanders.
24813 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
24814 (*divmodsi4): Simiarly.
24815 (ext_internal): New.
24816
c25a21f5
RH
24817 * config/mn10300/constraints.md ("z"): New constraint.
24818 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
24819 (FIXED_REGISTERS): Don't fix MDR.
24820 (CALL_USED_REGSITERS): Reformat nicely.
24821 (REG_ALLOC_ORDER): Add MDR.
24822 (enum regclass): Add MDR_REGS.
24823 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
24824 (IRA_COVER_CLASSES): Add MDR_REGS.
24825 (REGNO_REG_CLASS): Handle MDR_REG.
24826 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
24827 (mn10300_register_move_cost): Likewise.
24828 * config/mn10300/mn10300.md (MDR_REG): New.
24829 (*movsi_internal): Handle moves to/from MDR_REGS.
24830
36846b26
RH
24831 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
24832 POST_MODIFY.
24833 (mn10300_secondary_reload): Tidy combination reload classes.
24834 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
24835 addresses for AM33. Allow symbolic offsets for reg+imm.
24836 (mn10300_regno_in_class_p): New.
24837 (mn10300_legitimize_reload_address): New.
24838 * config/mn10300/mn10300.h (enum reg_class): Remove
24839 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
24840 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
24841 SP_OR_GENERAL_REGS.
24842 (REG_CLASS_NAMES): Update to match.
24843 (REG_CLASS_CONTENTS): Likewise.
24844 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
24845 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
24846 (REGNO_IN_RANGE_P): Remove.
24847 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
24848 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
24849 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
24850 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
24851 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
24852 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
24853 (REGNO_GENERAL_P): New.
24854 (HAVE_POST_MODIFY_DISP): New.
24855 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
24856 (LEGITIMIZE_RELOAD_ADDRESS): New.
24857 * config/mn10300/mn10300-protos.h: Update.
24858
8b119bb6
RH
24859 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
24860 DATA_REGS for AM33 stack-pointer destination.
24861 (mn10300_preferred_output_reload_class): Likewise.
24862 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
24863 into a form appropriate for ...
24864 (TARGET_SECONDARY_RELOAD): New.
24865 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
24866 * config/mn10300/mn10300-protos.h: Update.
24867 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
24868 reload_insi; use the "A" constraint for the scratch; handle AM33
24869 moves of sp to non-address registers.
24870
b1efde2a
RH
24871 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
24872 (*movqi_internal): ... here.
24873 (*am33_movhi, *mn10300_movhi): Merge into...
24874 (*movhi_internal): ... here.
24875 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
24876 as the source/destination of moves from/to SP.
24877 (movsf): Only allow for AM33-2.
1c3ba85b 24878 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
24879 any integer constant constraint. Only allow for AM33-2. Tidy
24880 all of the alternative outputs.
24881 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
24882 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
24883 for MN103.
24884 (udivsi3, umodsi3): New patterns for MN103 only.
24885
b899fd78
JR
248862011-01-19 Joern Rennecke <amylaar@spamcop.net>
24887
24888 * doc/tm.texi.in: Spell out that a lack of register class unions
24889 can lead to ICEs.
24890 * doc/tm.texi: Regenerate.
24891
afaaa67d
JJ
248922011-01-19 Jakub Jelinek <jakub@redhat.com>
24893
2e0642cd
JJ
24894 PR rtl-optimization/47337
24895 * dce.c (check_argument_store): New function.
24896 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
24897
afaaa67d
JJ
24898 PR tree-optimization/47290
24899 * tree-eh.c (infinite_empty_loop_p): New function.
24900 (cleanup_empty_eh): Use it.
24901
d2cd871f
SE
249022011-01-18 Steve Ellcey <sje@cup.hp.com>
24903
24904 PR target/46997
24905 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
24906 (a64_expand_widen_sum): Ditto.
24907 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
24908 (vec_extract_evenodd_help): Ditto.
24909 (vec_extract_evenv4hi): Ditto.
24910 (vec_extract_oddv4hi): Ditto.
24911 (vec_extract_evenv2si): Ditto.
24912 (vec_extract_oddv2si): Ditto.
24913 (vec_extract_evenv2sf): Ditto.
24914 (vec_extract_oddv2sf): Ditto.
24915 (vec_pack_trunc_v4hi: Ditto.
24916 (vec_pack_trunc_v2si): Ditto.
24917 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
24918 (vec_interleave_highv8qi): Ditto.
24919 (mix1_r): Ditto.
24920 (vec_extract_oddv8qi): Ditto.
24921 (vec_interleave_lowv4hi): Ditto.
24922 (vec_interleave_highv4hi): Ditto.
24923 (vec_interleave_lowv2si): Ditto.
24924 (vec_interleave_highv2si): Ditto.
24925
41a1208a
JDA
249262011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24927
24928 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
24929 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
24930 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
24931 (pa_c_mode_for_suffix): New.
24932 (TARGET_EXPAND_BUILTIN): Define.
24933 (TARGET_C_MODE_FOR_SUFFIX): Define.
24934 (pa_builtins): Define.
24935 (pa_init_builtins): Register __float128 type and init new support
24936 builtins.
24937 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
24938 * config/pa/quadlib.c (_U_Qfcopysign): New.
24939
1ecad98e
EB
249402011-01-18 Eric Botcazou <ebotcazou@adacore.com>
24941
24942 PR middle-end/46894
24943 * explow.c (allocate_dynamic_stack_space): Do not assume more than
24944 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
24945 are defined.
24946
d4f2460a
UW
249472011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24948
24949 PR tree-optimization/47179
24950 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
24951 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
24952
4994da65
RG
249532011-01-18 Richard Guenther <rguenther@suse.de>
24954
24955 PR rtl-optimization/47216
24956 * emit-rtl.c: Include tree-flow.h.
24957 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
24958 of replicating it with different semantics.
24959 * Makefile.in (emit-rtl.o): Adjust.
24960
1eb458d1
RR
249612011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24962
38be4072 24963 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 24964 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 24965
e7ef91dc
JJ
249662011-01-18 Jakub Jelinek <jakub@redhat.com>
24967
24968 PR rtl-optimization/47299
24969 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 24970 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
24971 * expmed.c (expand_widening_mult): Don't try to optimize constant
24972 multiplication if op0 has VOIDmode. Convert op1 constant to mode
24973 before using it.
24974
535b7874
RW
249752011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24976
24977 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
24978 spacing after 'e.g.', typos, comma, hyphenation.
24979
27bf36f3
RH
249802011-01-17 Richard Henderson <rth@redhat.com>
24981
8a5b5449
RH
24982 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
24983 (rx_restricted_mem_operand): New.
24984 (rx_shift_operand): Use register_operand.
24985 (rx_source_operand, rx_compare_operand): Likewise.
24986 * config/rx/rx.md (addsi3_flags): New expander.
24987 (adddi3): Rewrite as expander.
24988 (adc_internal, *adc_flags, adddi3_internal): New patterns.
24989 (subsi3_flags): New expander.
24990 (subdi3): Rewrite as expander.
24991 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
24992
784f69be
RH
24993 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
24994 (rx_init_builtins): Remove sat builtin.
24995 (rx_expand_builtin): Likewise.
24996 * config/rx/rx.md (ssaddsi3): New.
24997 (*sat): Rename from sat. Represent the CC_REG input.
24998
f033541c
RH
24999 * config/rx/predicates.md (rshift_operator): New.
25000 * config/rx/rx.c (rx_expand_insv): Remove.
25001 * config/rx/rx-protos.h: Update.
25002 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
25003 operand to the canonical position.
25004 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
25005 (*bitclr, *bitclr_in_memory): Similarly.
25006 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
25007 (insv): Retain the zero_extract in the expansion.
25008
34fee389
RH
25009 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
25010 (bswaphi2, bitinvert, revw): Likewise.
25011
265c835f
RH
25012 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
25013 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
25014 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
25015 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
25016 (bitset, bitset_in_memory): Likewise.
25017 (bitinvert, bitinvert_in_memory): Likewise.
25018 (bitclr, bitclr_in_memory): Likewise.
25019 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
25020 (rx_strend, rx_cmpstrn): Likewise.
25021 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
25022 (bitop peep2 patterns): Remove.
25023
b4d83be3
RH
25024 * config/rx/rx.c (rx_match_ccmode): New.
25025 * config/rx/rx-protos.h: Update.
25026 * config/rx/rx.md (abssi2): Clobber, don't set flags.
25027 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
25028 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
25029 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
25030 (fix_truncsfsi2, floatsisf2): Likewise.
25031 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
25032 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
25033 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
25034 (*subsi3_flags, *xorsi3_flags): New.
25035
d0acb939
RH
25036 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
25037
c06fc3d9
RH
25038 * config/rx/rx.c (rx_print_operand): Remove workaround for
25039 unsplit comparison operations.
25040
2882702b
RH
25041 * config/rx/rx.md (movsicc): Split after reload.
25042 (*movsicc): Merge *movsieq and *movsine via match_operator.
25043 (*stcc): New pattern.
25044
6f7310f2
RH
25045 * config/rx/rx.c (rx_float_compare_mode): Remove.
25046 * config/rx/rx.h (rx_float_compare_mode): Remove.
25047 * config/rx/rx.md (cstoresi4): Split after reload.
25048 (*sccc): New pattern.
25049
e963cb1a
RH
25050 * config/rx/predicates.md (label_ref_operand): New.
25051 (rx_z_comparison_operator): New.
25052 (rx_zs_comparison_operator): New.
25053 (rx_fp_comparison_operator): New.
25054 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
25055 Validate that the flags are set properly for the comparison.
25056 (rx_gen_cond_branch_template): Remove.
25057 (rx_cc_modes_compatible): Remove.
25058 (mode_from_flags): New.
25059 (flags_from_code): Rename from flags_needed_for_conditional.
25060 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
25061 (rx_select_cc_mode): Likewise.
25062 (rx_split_fp_compare): New.
25063 (rx_split_cbranch): New.
25064 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
25065 (*cbranchsi4): Use match_operator and rx_split_cbranch.
25066 (*cbranchsf4): Similarly.
25067 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
25068 match_operator and rx_split_cbranch.
25069 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
25070 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
25071 (*cmpsi): Rename from cmpsi.
25072 (*tstsi): Rename from tstsi.
25073 (*cmpsf): Rename from cmpsf; use CC_Fmode.
25074 (*conditional_branch): Rename from conditional_branch.
25075 (*reveresed_conditional_branch): Remove.
25076 (b<code>): Remove expander.
25077 * config/rx/rx-protos.h: Update.
25078
af530bb4
RH
25079 * config/rx/rx.c (rx_compare_redundant): Remove.
25080 * config/rx/rx.md (cmpsi): Don't use it.
25081 * config/rx/rx-protos.h: Update.
25082
27bf36f3
RH
25083 * config/rx/rx-modes.def (CC_F): New mode.
25084 * config/rx/rx.c (rx_select_cc_mode): New.
25085 * config/rx/rx.h (SELECT_CC_MODE): Use it.
25086 * config/rx/rx-protos.h: Update.
25087
d7fde127
RH
250882011-01-17 Richard Henderson <rth@redhat.com>
25089
25090 * except.c (dump_eh_tree): Fix stray ; after for statement.
25091
6ff38230
RG
250922011-01-17 Richard Guenther <rguenther@suse.de>
25093
25094 PR tree-optimization/47313
25095 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
25096 handling before copying the body. Properly deal with
25097 by-reference result in SSA form.
25098
114ce554
ILT
250992011-01-17 Ian Lance Taylor <iant@google.com>
25100
bf5cd92b 25101 PR target/47219
114ce554
ILT
25102 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
25103 (struct_value_alias_set): Don't define.
25104 (sparc_option_override): Don't set sparc_sr_alias_set and
25105 struct_value_alias_set.
25106 (save_or_restore_regs): Use gen_frame_mem rather than calling
25107 set_mem_alias_set.
25108 (sparc_struct_value_rtx): Likewise.
25109
98c6d93c
L
251102011-01-17 H.J. Lu <hongjiu.lu@intel.com>
25111
25112 PR target/47318
7a81008b 25113 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
25114 (_mm_maskstore_pd): Likewise.
25115 (_mm_maskload_ps): Likewise.
25116 (_mm_maskstore_ps): Likewise.
25117 (_mm256_maskload_pd): Change mask to __m256i.
25118 (_mm256_maskstore_pd): Likewise.
25119 (_mm256_maskload_ps): Likewise.
25120 (_mm256_maskstore_ps): Likewise.
25121
25122 * config/i386/i386-builtin-types.def: Updated.
25123 (ix86_expand_special_args_builtin): Likewise.
25124
25125 * config/i386/i386.c (bdesc_special_args): Update
25126 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
25127 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
25128 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
25129 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
25130
25131 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
25132 Use <avxpermvecmode> on mask register.
25133 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
25134
b9361af2 251352011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
25136 Michael Haubenwallner <michael.haubenwallner@salomon.at>
25137 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
25138
25139 PR target/46655
25140 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
25141 if <= USHRT_MAX in 32-bit mode.
25142
b7ae9eb5
RW
251432011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25144
25145 * doc/install.texi (Configuration, Specific): Wrap long
25146 lines in examples. Allow line wrapping in long options
25147 and URLs where beneficial for PDF output.
25148
4377fad9
RS
251492011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
25150
25151 * config/mips/mips.c (mips_classify_symbol): Don't return
25152 SYMBOL_PC_RELATIVE for nonlocal labels.
25153
55959ffa 251542011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 25155
55959ffa
EB
25156 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
25157
251582011-01-15 Jan Hubicka <jh@suse.cz>
25159
25160 PR tree-optimization/47276
be46831f
JH
25161 * ipa.c (function_and_variable_visibility): Do not try to mark alias
25162 declarations as needed.
25163
05842ff5
MJ
251642011-01-15 Martin Jambor <mjambor@suse.cz>
25165
25166 * common.opt (fdevirtualize): New flag.
25167 * doc/invoke.texi (Option Summary): Document it.
25168 * opts.c (default_options_table): Add devirtualize flag.
25169 * ipa-prop.c (detect_type_change): Return immediately if
25170 devirtualize flag is not set.
25171 (detect_type_change_ssa): Likewise.
25172 (compute_known_type_jump_func): Likewise.
25173 (ipa_analyze_virtual_call_uses): Likewise.
25174
f65cf2b7
MJ
251752011-01-14 Martin Jambor <mjambor@suse.cz>
25176
25177 PR tree-optimization/45934
25178 PR tree-optimization/46302
25179 * ipa-prop.c (type_change_info): New type.
25180 (stmt_may_be_vtbl_ptr_store): New function.
25181 (check_stmt_for_type_change): Likewise.
25182 (detect_type_change): Likewise.
25183 (detect_type_change_ssa): Likewise.
25184 (compute_complex_assign_jump_func): Check for dynamic type change.
25185 (compute_complex_ancestor_jump_func): Likewise.
25186 (compute_known_type_jump_func): Likewise.
25187 (compute_scalar_jump_functions): Likewise.
25188 (ipa_analyze_virtual_call_uses): Likewise.
25189 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
25190
eb5bb0fd
JM
251912011-01-14 Joseph Myers <joseph@codesourcery.com>
25192
25193 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
25194 * config/i386/i386.opt (msse5): New Alias.
25195
f2060fbe
JM
251962011-01-14 Joseph Myers <joseph@codesourcery.com>
25197
25198 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
25199 * config/sparc/linux64.h (CC1_SPEC): Likewise.
25200 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
25201 * config/sparc/sparc.h (CC1_SPEC): Likewise.
25202
3a7b4385
JM
252032011-01-14 Joseph Myers <joseph@codesourcery.com>
25204
25205 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
25206 -mcpu options.
25207 * config/sparc/linux64.h (CC1_SPEC): Likewise.
25208 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
25209 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
25210 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
25211 Likewise.
25212 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
25213
a7b778f8
JM
252142011-01-14 Joseph Myers <joseph@codesourcery.com>
25215
38be4072 25216 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 25217
a7edae0a
MS
252182011-01-14 Mike Stump <mikestump@comcast.net>
25219
25220 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
25221 * config/fr30/fr30.md: Likweise
25222 (movsi_push): Likewise.
25223 (movsi_pop): Likewise.
25224 (enter_func): Likewise.
25225 * config/moxie/moxie.md (movsi_push): Likewise.
25226 (movsi_pop): Likewise.
25227
cbabf03f
JM
252282011-01-14 Joseph Myers <joseph@codesourcery.com>
25229
25230 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
25231 %{no_archive} %{exact_version}.
25232 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
25233 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
25234 %{no_archive} %{exact_version}.
25235 * config/mips/openbsd.h (LINK_SPEC): Likewise.
25236 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
25237 * config/mips/vxworks.h: Likewise.
25238
438da41a
JM
252392011-01-14 Joseph Myers <joseph@codesourcery.com>
25240
38be4072 25241 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 25242
da290a42
JM
252432011-01-14 Joseph Myers <joseph@codesourcery.com>
25244
25245 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
25246 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
25247
8989d00e
JM
252482011-01-14 Joseph Myers <joseph@codesourcery.com>
25249
25250 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
25251 -nodefaultlib.
25252
a3010a69
JM
252532011-01-14 Joseph Myers <joseph@codesourcery.com>
25254
25255 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
25256 for mcpu not cpu.
25257 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
25258 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
25259 not cpu.
25260 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
25261 Don't handle -shlib.
25262
e7f2f537
JM
252632011-01-14 Joseph Myers <joseph@codesourcery.com>
25264
25265 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
25266 (CC1_SPEC): Don't handle -profile.
25267
34830bfd
JM
252682011-01-14 Joseph Myers <joseph@codesourcery.com>
25269
25270 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
25271 * config/mips/mips.h (CC1_SPEC): Likewise.
25272
b2d36e74
JM
252732011-01-14 Joseph Myers <joseph@codesourcery.com>
25274
25275 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
25276 * config/mips/mips.h (CC1_SPEC): Likewise.
25277
dabadc52
JM
252782011-01-14 Joseph Myers <joseph@codesourcery.com>
25279
25280 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
25281 * config/m32r/linux.h (LINK_SPEC): Likewise.
25282 * config/mips/linux.h (LINK_SPEC): Likewise.
25283 * config/mips/linux64.h (LINK_SPEC): Likewise.
25284 * config/sparc/linux.h (LINK_SPEC): Likewise.
25285 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
25286 LINK_SPEC): Likewise.
25287 * config/xtensa/linux.h (LINK_SPEC): Likewise.
25288
43ee6785
JM
252892011-01-14 Joseph Myers <joseph@codesourcery.com>
25290
25291 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
25292 %{version:-v}.
25293 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
25294
45e79dfd
JM
252952011-01-14 Joseph Myers <joseph@codesourcery.com>
25296
25297 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
25298 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
25299
37e9e71d
JM
253002011-01-14 Joseph Myers <joseph@codesourcery.com>
25301
25302 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
25303
bb127cd8
RO
253042011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25305
25306 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
25307 supports -Bstatic/-Bdynamic.
25308 * configure: Regenerate.
25309
89a012ea 253102011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 25311 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
25312
25313 PR target/46037
25314 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
25315 when checking debug_info_level. Test write_symbols instead of
25316 debug_hooks->var_location when setting flag_var_tracking_uninit.
25317
7352c013
RG
253182011-01-14 Richard Guenther <rguenther@suse.de>
25319
25320 PR tree-optimization/47179
25321 * target.def (ref_may_alias_errno): New target hook.
25322 * targhooks.h (default_ref_may_alias_errno): Declare.
25323 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
25324 (default_ref_may_alias_errno): New function.
25325 * target.h (struct ao_ref_s): Declare.
25326 * tree-ssa-alias.c: Include target.h.
25327 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
25328 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
25329 (targhooks.o): Likewise.
25330 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
25331 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
25332
9a6c9288
RG
253332011-01-14 Richard Guenther <rguenther@suse.de>
25334
25335 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
25336
0fdb0d27
RG
253372011-01-14 Richard Guenther <rguenther@suse.de>
25338
25339 PR tree-optimization/47280
25340 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
25341 return CFG changes.
25342 (tree_ssa_forward_propagate_single_use_vars): Deal with
25343 CFG changes from associate_plusminus.
25344
8f66db3b
RG
253452011-01-14 Richard Guenther <rguenther@suse.de>
25346
25347 PR middle-end/47281
25348 Revert
25349 2011-01-11 Richard Guenther <rguenther@suse.de>
25350
280d9630
EB
25351 PR tree-optimization/46076
25352 * tree-ssa.c (useless_type_conversion_p): Conversions from
25353 unprototyped to empty argument list function types are useless.
8f66db3b 25354
6c0c92e6
RG
253552011-01-14 Richard Guenther <rguenther@suse.de>
25356
25357 PR tree-optimization/47286
280d9630 25358 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 25359
db09f943
MJ
253602011-01-14 Martin Jambor <mjambor@suse.cz>
25361
25362 PR middle-end/46823
25363 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
25364
dde8a3a4
AS
253652011-01-13 Anatoly Sokolov <aesok@post.ru>
25366
25367 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
25368 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25369 * config/xtensa/xtensa.c (xtensa_libcall_value,
25370 xtensa_function_value_regno_p): New functions.
25371 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25372
a2b63a20
KT
253732011-01-13 Kai Tietz <kai.tietz@onevision.com>
25374
25375 PR c++/47213
25376 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
25377 PE specific hook.
25378 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
25379 New function prototype.
25380 * config/i386/winnt.c (i386_pe_assemble_visibility):
25381 Warn only if attribute was specified by user.
25382
b41f0b34
MM
253832011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
25384
25385 PR target/47251
25386 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
25387 floating point.
25388 (floatunsdidf2_fcfidu): Ditto.
25389
3f3c098d
AK
253902011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25391
25392 * config/s390/s390.c (print_operand_address): Replace 'error' with
25393 'output_operand_lossage'.
25394 (print_operand): Likewise.
25395
29fa95ed
JL
253962011-01-13 Jeff Law <law@redhat.com>
25397
280d9630 25398 PR rtl-optimization/39077
29fa95ed
JL
25399 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
25400 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
25401 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
25402 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
25403 * gcse.c (prune_insertions_deletions): New function.
25404 (compute_pre_data): Use it.
25405
71d12276
DS
254062011-01-13 Dodji Seketeli <dodji@redhat.com>
25407
25408 PR debug/PR46973
25409 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
25410 static function.
61052244 25411 (prune_unused_types_mark): Use it.
71d12276 25412
9b0f04e7
AB
254132011-01-13 Andrey Belevantsev <abel@ispras.ru>
25414
25415 PR rtl-optimization/45352
1c3ba85b 25416 * sel-sched.c: Update copyright years.
9b0f04e7 25417 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 25418 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 25419
d6a3e264
RH
254202011-01-12 Richard Henderson <rth@redhat.com>
25421
a49b692a
RH
25422 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
25423 (TARGET_MD_ASM_CLOBBERS): New.
25424
126b1483
RH
25425 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
25426 (TARGET_DELEGITIMIZE_ADDRESS): New.
25427
f3d9d2e0
RH
25428 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
25429 (clzsi2, *bsch): New patterns.
25430
d84760c9
RH
25431 * config/mn10300/mn10300.md (INT): New mode iterator.
25432 (*mov<INT>_clr): New pattern, and peep2 to generate it.
25433
ec815d65
RH
25434 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
25435 flag_split_wide_types.
25436
d6a3e264
RH
25437 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
25438 (mn10300_trampoline_init): Rewrite without a template, an immediate
25439 load and a direct branch.
25440 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
25441
0f8ab434
AS
254422011-01-12 Anatoly Sokolov <aesok@post.ru>
25443
25444 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25445 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
25446 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
25447 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25448
d8a24b65
KT
254492011-01-12 Kai Tietz <kai.tietz@onevision.com>
25450
25451 PR debug/47209
25452 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
25453 of type.
25454
56e22cab
JH
254552011-01-12 Jan Hubicka <jh@suse.cz>
25456
25457 PR driver/47244
25458 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
25459 (PLUGIN_COND_CLOSE): New macro.
25460 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
25461
4b18b3c2
RG
254622011-01-12 Richard Guenther <rguenther@suse.de>
25463
25464 PR lto/47259
25465 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
25466 register variables in a MEM_REF.
25467
8e38461c
JM
254682011-01-12 Joseph Myers <joseph@codesourcery.com>
25469
25470 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
25471 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
25472 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
25473 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
25474 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
25475 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
25476 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
25477 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
25478 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
25479 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
25480 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
25481 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
25482 * config/gnu-user.h: New. Copied from linux.h.
25483 (LINUX_TARGET_STARTFILE_SPEC): Rename to
25484 GNU_USER_TARGET_STARTFILE_SPEC.
25485 (LINUX_TARGET_ENDFILE_SPEC): Rename to
25486 GNU_USER_TARGET_ENDFILE_SPEC.
25487 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
25488 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
25489 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
25490 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
25491 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
25492 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
25493 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
25494 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
25495 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
25496 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
25497 * config/arm/linux-eabi.h (CC1_SPEC): Use
25498 GNU_USER_TARGET_CC1_SPEC.
25499 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
25500 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
25501 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
25502 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
25503 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
25504 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
25505 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
25506 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
25507
a570fc16
RG
255082011-01-12 Richard Guenther <rguenther@suse.de>
25509
25510 PR other/46946
25511 * doc/invoke.texi (ffast-math): Document it is turned on
25512 with -Ofast.
25513
b0223c3e
JH
255142011-01-12 Jan Hubicka <jh@suse.cz>
25515
25516 PR tree-optimization/47233
ca1e00b3
EB
25517 * opts.c (common_handle_option): Disable ipa-reference with profile
25518 feedback.
b0223c3e 25519
1c3ba85b 255202011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
25521
25522 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
25523 error message.
25524
d853ee42
NP
255252011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
25526
25527 * c-parser.c (c_lex_one_token): Updated and reindented some
25528 comments. No changes in code.
25529
4053a5a0
ILT
255302011-01-11 Ian Lance Taylor <iant@google.com>
25531
25532 * godump.c (go_output_var): Don't output the variable if there is
25533 already a type with the same name.
25534
fa3e04d2
ILT
255352011-01-11 Ian Lance Taylor <iant@google.com>
25536
25537 * godump.c (go_format_type): Don't generate float80.
25538
885fe07c
RH
255392011-01-11 Richard Henderson <rth@redhat.com>
25540
72d6e3c5
RH
25541 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
25542 declaration. Rewrite for both speed and size.
25543 (mn10300_address_cost_1): Remove.
25544 (mn10300_register_move_cost): New.
25545 (mn10300_memory_move_cost): New.
25546 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
25547 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
25548 extensions, shifts, BSWAP, CLZ.
25549 (mn10300_wide_const_load_uses_clr): Remove.
25550 (TARGET_REGISTER_MOVE_COST): New.
25551 (TARGET_MEMORY_MOVE_COST): New.
25552 * config/mn10300/mn10300-protos.h: Update.
25553 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
25554
df37c023
RH
25555 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
25556 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
25557 * config/mn10300/mn10300-protos.h: Update.
25558 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
25559 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
25560 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
25561 (*test_int_bitfield, *test_byte_bitfield): Remove.
25562 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 25563 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 25564
85a337b5
RH
25565 * config/mn10300/constraints.md ("c"): Rename from "A".
25566 ("A", "D"): New constraint letters.
25567 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
25568 (fmssf4, fnmasf4, fnmssf4): Likewise.
25569
a5c727e3
RH
25570 * config/mn10300/mn10300.md (isa): New attribute.
25571 (enabled): New attribute.
25572
0d9e23f4
RH
25573 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
25574 (abssf2, negsf2): Define only for hardware fp.
25575 (sqrtsf2): Reformat.
25576 (addsf3, subsf3, mulsf3): Merge expander and insn.
25577
c157b3f0
RH
25578 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
25579 (DEBUGGER_AUTO_OFFSET): Remove.
25580 (DEBUGGER_ARG_OFFSET): Remove.
25581
cc909bba
RH
25582 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
25583 Emit register stores with the same offsets as the hardware.
25584 (mn10300_store_multiple_operation): Don't check that the register
25585 save offsets are monotonic.
25586 * config/mn10300/mn10300-protos.h: Update.
25587
e3b5c2f3
RH
25588 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
25589
885fe07c
RH
25590 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
25591 in terms of the value on the stack, not the MDR register.
25592
6e701822
JH
255932011-01-11 Jan Hubicka <jh@suse.cz>
25594
25595 PR lto/45721
25596 PR lto/45375
25597 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
25598 (symbol_alias_set_destroy, symbol_alias_set_contains,
25599 propagate_aliases_backward): Declare.
25600 * lto-streamer-out.c (struct sets): New sturcture.
25601 (trivally_defined_alias): New function.
25602 (output_alias_pair_p): Rewrite.
25603 (output_unreferenced_globals): Fix output of alias pairs.
25604 (produce_symtab): Likewise.
25605 * ipa.c (function_and_variable_visibility): Set weak alias destination
25606 as needed in lto.
25607 * varasm.c (symbol_alias_set_t): Remove.
25608 (symbol_alias_set_destroy): Export.
25609 (propagate_aliases_forward, propagate_aliases_backward): New functions
25610 based on ...
25611 (compute_visible_aliases): ... this one; remove.
25612 (trivially_visible_alias): New
25613 (trivially_defined_alias): New.
25614 (remove_unreachable_alias_pairs): Rewrite.
25615 (finish_aliases_1): Reorganize code checking if alias is defined.
25616 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
25617 in LTO mode.
25618
1b248907
RG
256192011-01-11 Richard Guenther <rguenther@suse.de>
25620
25621 PR tree-optimization/46076
25622 * tree-ssa.c (useless_type_conversion_p): Conversions from
25623 unprototyped to empty argument list function types are useless.
25624
b1923f0a
RG
256252011-01-11 Richard Guenther <rguenther@suse.de>
25626
25627 PR middle-end/45235
25628 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
25629 volatile MEMs as MEM_READONLY_P.
25630
e98965af
RG
256312011-01-11 Richard Guenther <rguenther@suse.de>
25632
25633 PR tree-optimization/47239
25634 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
25635
9f9ca914
JL
256362011-01-11 Jeff Law <law@redhat.com>
25637
1ee3ea05 25638 PR tree-optimization/47086
9f9ca914
JL
25639 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
25640 IVs from statements that might throw.
25641
345fdcb7
JH
256422011-01-10 Jan Hubicka <jh@suse.cz>
25643
25644 PR lto/45375
25645 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
25646
c459c97b
JH
256472011-01-10 Jan Hubicka <jh@suse.cz>
25648
25649 PR lto/45375
25650 * profile.c (read_profile_edge_counts): Ignore profile inconistency
25651 when correcting profile.
25652
06c9eb51
JH
256532011-01-10 Jan Hubicka <jh@suse.cz>
25654
25655 PR lto/46083
25656 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
25657 DECL_FINI_PRIORITY.
25658 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
25659 Restore DECL_FINI_PRIORITY.
25660
ae9fd815
RW
256612011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25662
25663 * doc/gimple.texi: Fix quoting of multi-word return values in
25664 @deftypefn statements. Ensure presence of return value. Wrap
25665 overlong @deftypefn lines.
25666 (is_gimple_operand, is_gimple_min_invariant_address): Remove
25667 descriptions of removed functions.
25668 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
25669 of multi-word return value in @deftypefn statement.
25670
0ecb4a7c
RW
256712011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25672
25673 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
25674 (Conditional Expressions, Logical Operators)
25675 (Statement and operand traversals): Do not indent smallexample
25676 code. Fix duplicate function argument in example.
25677
2e5e346d
JL
256782011-01-10 Jeff Law <law@redhat.com>
25679
1ee3ea05 25680 PR tree-optimization/47141
2e5e346d
JL
25681 * ipa-split.c (split_function): Handle case where we are
25682 returning a value and the return block has a virtual operand phi.
25683
cf9712cc
JH
256842011-01-10 Jan Hubicka <jh@suse.cz>
25685
1c3ba85b 25686 PR tree-optimization/47234
cf9712cc
JH
25687 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
25688 (pass_feedback_split_functions): Declare.
25689 * passes.c (init_optimization_passes): Add ipa-split as subpass of
25690 tree-profile.
25691 * ipa-split.c (gate_split_functions): Update comments; disable
25692 split-functions for profile_arc_flag and branch_probabilities.
25693 (gate_feedback_split_functions): New function.
25694 (execute_feedback_split_functions): New function.
25695 (pass_feedback_split_functions): New global var.
25696
94cd932c
L
256972011-01-10 H.J. Lu <hongjiu.lu@intel.com>
25698
25699 PR lto/46760
25700 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
25701 calling gimple_call_set_cannot_inline.
25702
fbbfcaf1
IS
257032011-01-10 Iain Sandoe <iains@gcc.gnu.org>
25704
25705 * config/darwin-sections.def: Remove unused section.
25706
d06865bf
DK
257072011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
25708
25709 PR c++/47218
25710 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
25711
96bbfbac
NP
257122011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
25713
25714 PR objc/47232
25715 * c-parser.c (c_parser_declaration_or_fndef): Improved
25716 error message.
25717
1ba6516f
KT
257182011-01-09 Kai Tietz <kai.tietz@onevision.com>
25719
25720 * config/i386/winnt.c (i386_pe_start_function): Make sure
25721 to switch back to function's section.
25722
0c5d770e
IS
257232011-01-09 Iain Sandoe <iains@gcc.gnu.org>
25724
25725 PR gcc/46902
25726 PR testsuite/46912
25727 * plugin.c: Move include of dlfcn.h from here...
25728 * system.h: ... to here.
25729
257302011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
25731
25732 * doc/cpp.texi (C++ Named Operators): Fix markup for header
25733 file name.
25734 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
25735 two extra empty pages in PDF output.
25736
046608a3
NP
257372011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
25738
25739 PR objc/47078
25740 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
25741 for error recovery purposes behave as if it was not specified so
25742 that the default type is usd.
25743
8cb114b9
JH
257442011-01-07 Jan Hubicka <jh@suse.cz>
25745
25746 PR tree-optmization/46469
25747 * ipa.c (function_and_variable_visibility): Clear needed flags on
25748 nodes with external decls; handle weakrefs merging correctly.
25749
b294a75e
JM
257502011-01-07 Joseph Myers <joseph@codesourcery.com>
25751
25752 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
25753 not false.
25754
96bdf9b4
JH
257552011-01-07 Jan Hubicka <jh@suse.cz>
25756
f60c2554 25757 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
25758 and no longer claim that gold is required for linker plugin.
25759 * configure: Regenerate.
25760 * gcc.c (PLUGIN_COND): New macro.
25761 (LINK_COMMAND_SPEC): Use it.
25762 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
25763 * config.in (HAVE_LTO_PLUGIN): New.
25764 * configure.ac (--with-lto-plugin): New parameter; autodetect
25765 HAVE_LTO_PLUGIN.
25766
17afc0fe
JH
257672011-01-07 Jan Hubicka <jh@suse.cz>
25768
25769 PR tree-optimization/46367
25770 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
25771 when we can update original.
25772 (cgraph_mark_inline_edge): Sanity check.
25773 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
25774
d4c48c0f
UW
257752011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25776
25777 * config/spu/spu.h (ASM_COMMENT_START): Define.
25778
96f5b137
L
257792011-01-07 H.J. Lu <hongjiu.lu@intel.com>
25780
25781 PR driver/42445
25782 * gcc.c (%>S): New.
25783 (SWITCH_KEEP_FOR_GCC): Likewise.
25784 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
25785 (do_spec_1): Handle "%>".
25786
25787 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
25788
c6a8f6de
JJ
257892011-01-07 Jakub Jelinek <jakub@redhat.com>
25790
c21bbd7a
JJ
25791 PR target/47201
25792 * config/i386/i386.c (ix86_delegitimize_address): If
25793 simplify_gen_subreg fails, return orig_x.
25794
c6a8f6de
JJ
25795 PR bootstrap/47187
25796 * value-prof.c (gimple_stringop_fixed_value): Handle
25797 lhs of the call properly.
25798
fe95fbf9
JH
257992011-01-07 Jan Hubicka <jh@suse.cz>
25800
25801 PR lto/45375
25802 * lto-opt.c (lto_reissue_options): Set flag_shlib.
25803
14d11d40
IS
258042011-01-07 Iain Sandoe <iains@gcc.gnu.org>
25805
72e961c8
EB
25806 * target.def (function_switched_text_sections): New hook.
25807 * doc/tm.texi: Regenerated.
25808 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 25809 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
25810 (final_scan_insn): Call function_switched_text_sections when a
25811 mid-function section change occurs.
14d11d40 25812 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
25813 * config/darwin-protos.h (darwin_function_switched_text_sections):
25814 Likewise.
14d11d40 25815 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 25816 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 25817
0b764288
IS
258182011-01-07 Iain Sandoe <iains@gcc.gnu.org>
25819
25820 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
25821 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
25822 the secondary code fragment when outputting for DWARF == 2.
25823
2ac6bb04
AS
258242011-01-07 Anatoly Sokolov <aesok@post.ru>
25825
25826 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25827 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
25828 Remove.
25829 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
25830 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25831
9f82de11
EB
258322011-01-06 Eric Botcazou <ebotcazou@adacore.com>
25833
25834 PR debug/46704
280d9630
EB
25835 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
25836 when it is not empty.
9f82de11
EB
25837
258382011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 25839
1ed72abf 25840 Bobcat Enablement
14b52538 25841 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 25842 (case ${target}): Add btver1.
14b52538 25843 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 25844 -march=native recognize btver1 processors.
14b52538 25845 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 25846 btver1 def_and_undef
14b52538 25847 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
25848 btver1 cost table.
25849 (m_BTVER1): New definition.
25850 (m_AMD_MULTIPLE): Includes m_BTVER1.
25851 (initial_ix86_tune_features): Add btver1 tune.
25852 (processor_target_table): Add btver1 entry.
25853 (static const char *const cpu_names): Add btver1 entry.
25854 (software_prefetching_beneficial_p): Add btver1.
25855 (ix86_option_override_internal): Add btver1 instruction sets.
25856 (ix86_issue_rate): Add btver1.
25857 (ix86_adjust_cost): Add btver1.
14b52538 25858 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
25859 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
25860 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
25861 * config/i386/i386.md (define_attr "cpu"): Add btver1.
25862
e1a973d8
RO
258632011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25864
25865 PR target/43309
25866 * config/i386/i386.c (legitimize_tls_address)
25867 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
25868 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
25869 (tls_initial_exec_64_sun): New pattern.
25870
c73f67c5
GP
258712011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
25872
25873 * doc/invoke.texi (Overall Options): Improve wording and markup
25874 of the description of -wrapper.
25875
bc4c6f9c
JM
258762011-01-06 Joseph Myers <joseph@codesourcery.com>
25877
25878 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
25879 rdynamic, threads): New Driver options.
25880
adb75db0
RO
258812011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25882
25883 PR target/38118
25884 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
25885 if coming from .tdata.
25886 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
25887
402c1cb4
JH
258882011-01-06 Jan Hubicka <jh@suse.cz>
25889
25890 PR lto/47188
25891 * collect2.c (main): Do not enable LTOmode when plugin is active.
25892
a4da6485
RO
258932011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25894
25895 PR other/45915
25896 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
25897 --version output if supported.
25898 * configure: Regenerate.
25899
028dbdf4
JM
259002011-01-06 Joseph Myers <joseph@codesourcery.com>
25901
25902 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
25903 Driver options.
25904
dfe776dd
JJ
259052011-01-06 Jakub Jelinek <jakub@redhat.com>
25906
25907 PR c/47150
25908 * c-convert.c (convert): When converting a complex expression
25909 other than COMPLEX_EXPR to a different complex type, ensure
25910 c_save_expr is called instead of save_expr, unless in_late_binary_op.
25911 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
25912 when converting COMPLEX_TYPE.
25913
210dedfe
IR
259142011-01-06 Ira Rosen <irar@il.ibm.com>
25915
25916 PR tree-optimization/47139
25917 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
25918 only the last reduction value is used outside the loop. Update
25919 documentation.
25920
cd33a412
JM
259212011-01-05 Joseph Myers <joseph@codesourcery.com>
25922
25923 * config/rtems.opt: New.
25924 * config.gcc (*-*-rtems*): Use rtems.opt.
25925
819edd94
CF
259262011-01-05 Changpeng Fang <changpeng.fang@amd.com>
25927
25928 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
25929 processors do not support 3DNow instructions.
25930
dc242c4a
UW
259312011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25932
25933 * config/spu/spu.c (spu_option_override): Set parameter
25934 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
25935
be286227
JH
259362011-01-05 Jan Hubicka <jh@suse.cz>
25937
25938 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
25939 at the command line.
25940
644e637f
MJ
259412011-01-05 Martin Jambor <mjambor@suse.cz>
25942
25943 PR lto/47162
25944 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
25945 deltas on streamed outgoing edges.
25946 (output_node_opt_summary): Output info for outgoing edges only when
25947 the node is in new parameter set.
25948 (output_cgraph_opt_summary): New parameter set, passed to the two
25949 aforementioned functions. Update its forward declaration and its
25950 callee too.
25951
7bd11157
TT
259522011-01-05 Tom Tromey <tromey@redhat.com>
25953
25954 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
25955 operator to c_finish_omp_atomic.
25956 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
25957 (build_unary_op): Update.
25958 (build_modify_expr): Update.
25959 (build_asm_expr): Update.
25960
f626b979
UW
259612011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25962
25963 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
25964 newly inserted insns.
25965 (pad_bb): Likewise.
25966 (spu_emit_branch_hint): Likewise.
25967 (insert_hbrp_for_ilb_runout): Likewise.
25968 (spu_machine_dependent_reorg): Call df_finish_pass after
25969 schedule_insns returns.
25970
4c825c02
UW
259712011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25972
25973 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
25974
5e9fba51
EB
259752011-01-05 Eric Botcazou <ebotcazou@adacore.com>
25976
25977 PR tree-optimization/47005
25978 * tree-sra.c (struct access): Add 'non_addressable' bit.
25979 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
25980 (decide_one_param_reduction): Return 0 if the parameter is passed by
25981 reference and one of the accesses in the group is non_addressable.
25982
3ebb5ca6
EB
259832011-01-04 Eric Botcazou <ebotcazou@adacore.com>
25984
25985 PR tree-optimization/47056
25986 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
25987 (mark_load): Likewise. Handle FUNCTION_DECL specially.
25988 (mark_store): Likewise. Pass STMT to ipa_record_reference.
25989
d5d4d14e
EB
259902011-01-04 Eric Botcazou <ebotcazou@adacore.com>
25991
25992 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
25993 initializer. Skip view conversions from aggregate types.
25994
d996ef70
KT
259952011-01-04 Kai Tietz <kai.tietz@onevision.com>
25996
25997 PR bootstrap/47055
25998 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
25999
509d65dd 260002011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
26001
26002 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
26003 obvious typo.
26004
55c623b5
UW
260052011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26006
26007 * function.c (thread_prologue_and_epilogue_insns): Do not crash
26008 on empty epilogue sequences.
26009
b98d6b35
JM
260102011-01-04 Joseph Myers <joseph@codesourcery.com>
26011
26012 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
26013 non-static): New Driver options.
26014
a0d43bac
JZ
260152011-01-04 Jie Zhang <jie@codesourcery.com>
26016
26017 PR driver/47137
26018 * gcc.c (default_compilers[]): Set combinable field to 0
26019 for all assembly languages.
26020
2b18eb32
MX
260212011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
26022
26023 * config/mips/loongson3a.md: New file.
26024 * config/mips/mips.md: Include loongson3a.md.
26025 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
26026 TUNE_LOONGSON_3A.
26027
42a48c4f
EB
260282011-01-03 Eric Botcazou <ebotcazou@adacore.com>
26029
26030 PR middle-end/47017
26031 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
26032 instead of convert_memory_address_addr_space on the base expression.
26033
9c1732c4
UW
260342011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26035
26036 * config/spu/spu.c (spu_option_override): Update error text
26037 for bad -march= / -mtune= values.
26038
aa474365
UW
260392011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26040
26041 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
26042 if branch-hint optimization will be performed.
26043
9766135b
JJ
260442011-01-03 Jakub Jelinek <jakub@redhat.com>
26045
371556ee
JJ
26046 PR tree-optimization/47148
26047 * ipa-split.c (split_function): Convert arguments to
26048 DECL_ARG_TYPE if possible.
26049
1ac12fa2
JJ
26050 PR tree-optimization/47155
26051 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
26052 when computing uns.
26053
9766135b
JJ
26054 PR rtl-optimization/47157
26055 * combine.c (try_combine): If undobuf.other_insn becomes
26056 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
26057 and set *new_direct_jump_p too.
26058
f4a2e571
SP
260592011-01-03 Sebastian Pop <sebastian.pop@amd.com>
26060
26061 PR tree-optimization/47021
26062 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
26063
9f8e43c0
JJ
260642011-01-03 Jakub Jelinek <jakub@redhat.com>
26065
26066 * gcc.c (process_command): Update copyright notice dates.
26067 * gcov.c (print_version): Likewise.
26068 * gcov-dump.c (print_version): Likewise.
26069 * mips-tfile.c (main): Likewise.
26070 * mips-tdump.c (main): Likewise.
26071
1a2e38f3
MJ
260722011-01-03 Martin Jambor <mjambor@suse.cz>
26073
26074 PR tree-optimization/46801
26075 * tree-sra.c (type_internals_preclude_sra_p): Check whether
26076 aggregate fields start at byte boundary instead of the bit-field flag.
26077
56b721c5
L
260782011-01-03 H.J. Lu <hongjiu.lu@intel.com>
26079
26080 PR driver/47137
26081 * gcc.c (main): Revert revision 168407.
26082
839d549b
MJ
260832011-01-03 Martin Jambor <mjambor@suse.cz>
26084
26085 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
26086
4ce99a20 260872011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
26088
26089 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
26090 vector optab to expand vector/scalar shift, update gimple to vector.
26091
76df0ae6
MJ
260922011-01-03 Martin Jambor <mjambor@suse.cz>
26093
26094 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
26095 a thunk.
26096
ce47fda3
MJ
260972011-01-03 Martin Jambor <mjambor@suse.cz>
26098
26099 PR tree-optimization/46984
26100 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
26101 HOST_WIDE_INT.
26102 (cgraph_create_indirect_edge): Fixed line length.
26103 (cgraph_indirect_call_info): Declare.
26104 (cgraph_make_edge_direct) Update declaration.
26105 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
26106 (cgraph_create_indirect_edge): Use it.
26107 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
26108 callees.
26109 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
26110 the new thunk_delta representation.
26111 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
26112 HOST_WIDE_INT.
26113 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
26114 (ipa_read_indirect_edge_info): Likewise.
26115 * lto-cgraph.c (output_edge_opt_summary): New function.
26116 (output_node_opt_summary): Call it on all outgoing edges.
26117 (input_edge_opt_summary): New function.
26118 (input_node_opt_summary): Call it on all outgoing edges.
26119
1e67fa1f
L
261202011-01-02 H.J. Lu <hongjiu.lu@intel.com>
26121
26122 PR driver/47137
26123 * gcc.c (main): Don't check have_o when settting combine_inputs.
26124
6656b2ac
EB
261252011-01-02 Eric Botcazou <ebotcazou@adacore.com>
26126
26127 * regrename.c: Add general comment describing the pass.
26128 (struct du_head): Remove 'length' field.
26129 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
26130 (regrename_optimize): Do not sort chains. Rework comments, add others.
26131 Force renaming to the preferred class (if any) in the first pass and do
26132 not consider registers that belong to it in the second pass.
26133 (create_new_chain): Do not set 'length' field.
26134 (scan_rtx_reg): Likewise.
26135
bc470c24
JJ
261362011-01-02 Jakub Jelinek <jakub@redhat.com>
26137
4e996296
JJ
26138 PR tree-optimization/47140
26139 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
26140 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
26141 to bit_value_binop.
26142
bc470c24 26143 PR rtl-optimization/47028
6656b2ac
EB
26144 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
26145 parm_birth_insn instead of at the beginning of first bb.
bc470c24 26146
5af62fcd 261472011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
26148
26149 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
26150 Remove the word "see" before "@pxref".
26151 * doc/rtl.texi: Remove the word "see" before "@pxref".
26152
0e20c89f
JH
261532011-01-01 Jan Hubicka <jh@suse.cz>
26154
6656b2ac
EB
26155 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
26156 memory.
0e20c89f 26157
220e83ca
KT
261582011-01-01 Kai Tietz <kai.tietz@onevision.com>
26159
26160 PR target/38662
6656b2ac 26161 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 26162
ad41bd84 26163\f
797103eb 26164Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
26165
26166Copying and distribution of this file, with or without modification,
26167are permitted in any medium without royalty provided the copyright
26168notice and this notice are preserved.