]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
i386.c (ix86_binary_operator_ok): Use satisfies_constraint_L.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
2
3 * config/i386/i386.c (ix86_binary_operator_ok): Use
4 satisfies_constraint_L.
5
6 2011-08-20 Uros Bizjak <ubizjak@gmail.com>
7 Michael Matz <matz@suse.de>
8
9 * config/i386/i386.c (ix86_expand_round_sse4): Expand as
10 trunc (a + copysign (nextafter (0.5, 0.0), a)).
11
12 2011-08-20 Anatoly Sokolov <aesok@post.ru>
13
14 * doc/tm.texi.in (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
15 * doc/tm.texi: Regenerate.
16 * targhooks.c (default_preferred_output_reload_class): Don't use
17 PREFERRED_OUTPUT_RELOAD_CLASS macro.
18 * system.h (PREFERRED_OUTPUT_RELOAD_CLASS): Poison.
19
20 2011-08-20 Jakub Jelinek <jakub@redhat.com>
21
22 PR tree-optimization/48739
23 * tree-ssa.c: Include cfgloop.h.
24 (execute_update_addresses_taken): When updating ssa, if in loop closed
25 SSA form, call rewrite_into_loop_closed_ssa instead of update_ssa.
26 * Makefile.in (tree-ssa.o): Depend on $(CFGLOOP_H).
27
28 2011-08-19 Vladimir Makarov <vmakarov@redhat.com>
29
30 PR rtl-optimization/49936
31 * ira.c (ira_init_register_move_cost): Ignore too small subclasses
32 for calculation of max register move costs.
33
34 2011-08-19 Joseph Myers <joseph@codesourcery.com>
35
36 * c-parser.c (c_parser_postfix_expression): Convert operands of
37 __builtin_complex to their semantic types.
38
39 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
40
41 PR middle-end/49721
42 * explow.c (convert_memory_address_addr_space): Also permute the
43 conversion and addition of constant for zero-extend.
44
45 2011-08-19 Joseph Myers <joseph@codesourcery.com>
46
47 * c-parser.c (c_parser_postfix_expression): Handle RID_BUILTIN_COMPLEX.
48 * doc/extend.texi (__builtin_complex): Document.
49
50 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
51
52 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Handle constants
53 beyond conversions.
54 (convert_mult_to_widen): Convert constant inputs to the right type.
55 (convert_plusminus_to_widen): Don't automatically reject inputs that
56 are not an SSA_NAME.
57 Convert constant inputs to the right type.
58
59 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
60
61 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Convert add_rhs
62 to the correct type.
63
64 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
65
66 * tree-ssa-math-opts.c (convert_mult_to_widen): Better handle
67 unsigned inputs of different modes.
68 (convert_plusminus_to_widen): Likewise.
69
70 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
71
72 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): Add new argument
73 'type'.
74 Use 'type' from caller, not inferred from 'rhs'.
75 Don't reject non-conversion statements. Do return lhs in this case.
76 (is_widening_mult_p): Add new argument 'type'.
77 Use 'type' from caller, not inferred from 'stmt'.
78 Pass type to is_widening_mult_rhs_p.
79 (convert_mult_to_widen): Pass type to is_widening_mult_p.
80 (convert_plusminus_to_widen): Likewise.
81
82 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
83
84 * tree-ssa-math-opts.c (is_widening_mult_p): Remove FIXME.
85 Ensure the the larger type is the first operand.
86
87 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
88
89 * tree-ssa-math-opts.c (convert_mult_to_widen): Convert
90 unsupported unsigned multiplies to signed.
91 (convert_plusminus_to_widen): Likewise.
92
93 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
94
95 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Permit a single
96 conversion statement separating multiply-and-accumulate.
97
98 2011-08-19 Richard Guenther <rguenther@suse.de>
99
100 PR tree-optimization/50067
101 * tree-data-ref.c (dr_analyze_indices): Simplify, strip MEM_REF
102 offset only if we accounted for it.
103
104 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
105
106 * config/arm/arm.md (maddhidi4): Remove '*' from name.
107 * expr.c (expand_expr_real_2): Use find_widening_optab_handler.
108 * optabs.c (find_widening_optab_handler_and_mode): New function.
109 (expand_widen_pattern_expr): Use find_widening_optab_handler.
110 (expand_binop_directly): Likewise.
111 (expand_binop): Likewise.
112 * optabs.h (find_widening_optab_handler): New macro define.
113 (find_widening_optab_handler_and_mode): New prototype.
114 * tree-cfg.c (verify_gimple_assign_binary): Adjust WIDEN_MULT_EXPR
115 type precision rules.
116 (verify_gimple_assign_ternary): Likewise for WIDEN_MULT_PLUS_EXPR.
117 * tree-ssa-math-opts.c (build_and_insert_cast): New function.
118 (is_widening_mult_rhs_p): Allow widening by more than one mode.
119 Explicitly disallow mis-matched input types.
120 (convert_mult_to_widen): Use find_widening_optab_handler, and cast
121 input types to fit the new handler.
122 (convert_plusminus_to_widen): Likewise.
123
124 2011-08-19 Andrew Stubbs <ams@codesourcery.com>
125
126 * expr.c (expand_expr_real_2): Use widening_optab_handler.
127 * genopinit.c (optabs): Use set_widening_optab_handler for $N.
128 (gen_insn): $N now means $a must be wider than $b, not consecutive.
129 * optabs.c (widened_mode): New function.
130 (expand_widen_pattern_expr): Use widening_optab_handler.
131 (expand_binop_directly): Likewise.
132 (expand_binop): Likewise.
133 * optabs.h (widening_optab_handlers): New struct.
134 (optab_d): New member, 'widening'.
135 (widening_optab_handler): New function.
136 (set_widening_optab_handler): New function.
137 * tree-ssa-math-opts.c (convert_mult_to_widen): Use
138 widening_optab_handler.
139 (convert_plusminus_to_widen): Likewise.
140
141 2011-08-19 Joseph Myers <joseph@codesourcery.com>
142
143 * c-decl.c (grokdeclarator): Diagnose _Noreturn for non-C1X if
144 pedantic.
145 * c-parser.c (c_parser_declspecs): Include _Noreturn in syntax comment.
146 * ginclude/stdnoreturn.h (noreturn): Don't define for C++.
147
148 2011-08-19 Joseph Myers <joseph@codesourcery.com>
149
150 * opth-gen.awk: Do not declare target save/restore structures and
151 functions if IN_RTS defined.
152
153 2011-08-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
154
155 PR target/49437
156 * config/arm/arm.c (arm_output_epilogue): Properly handle epilogue
157 when stack was realigned in interrupt handler prologue.
158
159 2011-08-18 Joseph Myers <joseph@codesourcery.com>
160
161 * c-decl.c (shadow_tag_warned): Check for _Noreturn.
162 (quals_from_declspecs): Assert _Noreturn not present.
163 (grokdeclarator): Handle _Noreturn.
164 (build_null_declspecs): Initialize noreturn_p.
165 (declspecs_add_scspec): Handle RID_NORETURN.
166 * c-parser.c (c_token_starts_declspecs, c_parser_declspecs)
167 (c_parser_attributes): Handle RID_NORETURN.
168 * c-tree.h (struct c_declspecs): Add noreturn_p.
169 * ginclude/stdnoreturn.h: New.
170 * Makefile.in (USER_H): Add stdnoreturn.h.
171
172 2011-08-18 Kirill Yukhin <kirill.yukhin@intel.com>
173
174 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX2_SET): New.
175 (OPTION_MASK_ISA_AVX_UNSET): Update.
176 (OPTION_MASK_ISA_AVX2_UNSET): New.
177 (ix86_handle_option): Handle OPT_mavx2 case.
178 * config/i386/cpuid.h (bit_AVX2): New.
179 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
180 AVX2 feature.
181 * config/i386/i386-c.c (ix86_target_macros_internal):
182 Conditionally define __AVX2__.
183 * config/i386/i386.c (ix86_option_override_internal): Define PTA_AVX2.
184 Define "core-avx2" processor alias. Handle avx2 option.
185 (ix86_valid_target_attribute_inner_p): Handle avx2 option.
186 * config/i386/i386.h (TARGET_AVX2): New.
187 * config/i386/i386.opt (mavx2): New.
188 * doc/invoke.texi: Document -mavx2.
189
190 2011-08-18 Vladimir Makarov <vmakarov@redhat.com>
191
192 PR rtl-optimization/49890
193 * ira-costs.c (setup_regno_cost_classes_by_aclass): Don't exclude
194 subclasses of class which is superset of a pressure class.
195
196 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
197 Igor Zamyatin <igor.zamyatin@intel.com>
198
199 * config/i386/i386-c.c (ix86_target_macros_internal): Replace int
200 with HOST_WIDE_INT for isa_flag.
201 (ix86_pragma_target_parse): Replace int with HOST_WIDE_INT for
202 isa variables.
203
204 * config/i386/i386.c (ix86_target_string): Replace int with
205 HOST_WIDE_INT for isa. Use HOST_WIDE_INT_PRINT to print isa.
206 (ix86_target_opts): Replace int with HOST_WIDE_INT on mask.
207 (pta_flags): Removed.
208 (PTA_XXX): Redefined as (HOST_WIDE_INT_1 << X).
209 (pta): Use HOST_WIDE_INT on flags.
210 (builtin_isa): Use HOST_WIDE_INT on isa.
211 (ix86_add_new_builtins): Likewise.
212 (def_builtin): Use HOST_WIDE_INT on mask.
213 (def_builtin_const): Likewise.
214 (builtin_description): Likewise.
215
216 * config/i386/i386.opt (ix86_isa_flags): Replace int with
217 HOST_WIDE_INT.
218 (ix86_isa_flags_explicit): Likewise.
219 (x_ix86_isa_flags_explicit): Likewise.
220
221 2011-08-17 Vladimir Makarov <vmakarov@redhat.com>
222
223 PR rtl-optimization/50107
224 * ira-int.h (ira_hard_reg_not_in_set_p): Remove.
225 (ira_hard_reg_in_set_p): New.
226
227 * ira-color.c (calculate_saved_nregs): New.
228 (assign_hard_reg): Use it. Set up allocated_hard_reg_p for all
229 hard regs.
230 (allocno_reload_assign, fast_allocation): Use
231 ira_hard_reg_set_intersection_p instead of
232 ira_hard_reg_not_in_set_p.
233
234 * ira.c (setup_reg_renumber): Use
235 ira_hard_reg_set_intersection_p instead of
236 ira_hard_reg_not_in_set_p.
237 (setup_allocno_assignment_flags, calculate_allocation_cost): Use
238 ira_hard_reg_in_set_p instead of ira_hard_reg_not_in_set_p.
239
240 * ira-costs.c (ira_tune_allocno_costs): Use
241 ira_hard_reg_set_intersection_p instead of
242 ira_hard_reg_not_in_set_p.
243
244 2011-08-18 H.J. Lu <hongjiu.lu@intel.com>
245 Igor Zamyatin <igor.zamyatin@intel.com>
246
247 * hwint.h (HOST_WIDE_INT_1): New.
248
249 * opt-functions.awk (switch_bit_fields): Initialize the
250 host_wide_int field.
251 (host_wide_int_var_name): New.
252 (var_type_struct): Check and return HOST_WIDE_INT.
253
254 * opt-read.awk: Handle HOST_WIDE_INT for "Variable".
255
256 * optc-save-gen.awk: Support HOST_WIDE_INT on var_target_other.
257
258 * opth-gen.awk: Use HOST_WIDE_INT_1 on HOST_WIDE_INT. Properly
259 check masks for HOST_WIDE_INT.
260
261 * opts-common.c (set_option): Support HOST_WIDE_INT flag_var.
262 (option_enabled): Likewise.
263 (get_option_state): Likewise.
264
265 * opts.h (cl_option): Add cl_host_wide_int. Change var_value
266 to HOST_WIDE_INT.
267
268 2011-08-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
269 Marc Glisse <marc.glisse@normalesup.org>
270
271 PR libstdc++-v3/1773
272 * target.def (decl_mangling_context): New C++ hook.
273 * doc/tm.texi: Regenerate.
274 * config/sol2-cxx.c, config/sol2-stubs.c: New files.
275 * config/sol2-protos.h: Group by source file.
276 (solaris_cxx_decl_mangling_context): Declare.
277 * config/sol2.h (TARGET_CXX_DECL_MANGLING_CONTEXT): Define.
278 * config/t-sol2 (sol2-cxx.o, sol2-stubs.o): New targets.
279 Use $<.
280 * config.gcc (*-*-solaris2*): Add sol2-cxx.o to cxx_target_objs.
281 Add sol2-stubs.o to extra_objs.
282
283 2011-08-18 Jakub Jelinek <jakub@redhat.com>
284
285 PR target/50009
286 * stor-layout.c (update_alignment_for_field): Don't ICE on
287 packed flexible array members if ms_bitfield_layout_p.
288
289 PR target/50092
290 * config/i386/i386.c (assign_386_stack_local): Call validize_mem
291 on the result before returning it.
292
293 PR debug/50017
294 * tree-vect-stmts.c (vect_finish_stmt_generation): If gsi_stmt (*gsi)
295 is a debug stmt, use location of the first non-debug stmt after it.
296
297 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
298
299 * config/arm/arm.c (arm_rtx_costs_1): Don't modify the costs of SET.
300 (arm_size_rtx_costs): Likewise.
301
302 2011-08-18 Richard Guenther <rguenther@suse.de>
303
304 * tree.h (tree_int_cst_msb): Remove.
305 * tree.c (tree_int_cst_msb): Likewise.
306 (tree_int_cst_sign_bit): Move from ...
307 * tree-ssa-loop-ivopts.c (tree_int_cst_sign_bit): ... here.
308
309 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
310
311 * doc/tm.texi.in (TARGET_RTX_COSTS): Add an opno paramter.
312 * doc/tm.texi: Regenerate.
313 * target.def (rtx_costs): Add an opno parameter.
314 * hooks.h (hook_bool_rtx_int_int_intp_bool_false): Replace with...
315 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
316 * hooks.c (hook_bool_rtx_int_int_intp_bool_false): Replace with...
317 (hook_bool_rtx_int_int_int_intp_bool_false): ...this.
318 * cse.c (COST_IN): Add an opno parameter.
319 (notreg_cost): Likewise. Update call to rtx_cost.
320 (COST, fold_rtx): Update accordingly.
321 * dojump.c (prefer_and_bit_test): Update call to rtx_cost.
322 * expmed.c (emit_store_flag): Likewise.
323 * optabs.c (avoid_expensive_constant): Add an opno parameter.
324 Update call to rtx_cost.
325 (expand_binop_directly, expand_binop): Likewise.
326 (expand_twoval_binop, prepare_cmp_insn): Likewise.
327 * rtl.h (rtx_cost, get_full_rtx_cost): Add opno parameters.
328 (set_src_cost, get_full_set_src_cost): Update accordingly.
329 * rtlanal.c (rtx_cost): Add an opno parameter. Update call
330 to target hook.
331 (get_full_rtx_cost): Add an opno paramter. Update calls to rtx_cost.
332 (default_adress_cost): Update calls to rtx_cost.
333
334 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs)
335 (arm_slowmul_rtx_costs): Adjust calls to rtx_cost.
336 (arm_rtx_costs): Add an opno parameter.
337 * config/alpha/alpha.c (alpha_rtx_costs): Add an opno parameter and
338 adjust any recursive rtx-cost calls.
339 * config/avr/avr.c (avr_operand_rtx_cost, avr_rtx_costs): Likewise.
340 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
341 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
342 * config/cris/cris.c (cris_rtx_costs): Likewise.
343 * config/frv/frv.c (frv_rtx_costs): Likewise.
344 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
345 * config/i386/i386.c (ix86_rtx_costs): Likewise.
346 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
347 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
348 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
349 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
350 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
351 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
352 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
353 * config/mep/mep.c (mep_rtx_cost): Likewise.
354 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
355 * config/mips/mips.c (mips_binary_cost): Update call to rtx_cost.
356 (mips_zero_extend_cost): Add an opno parameter.
357 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
358 * config/mn10300/mn10300.c (mn10300_address_cost): Update call
359 to rtx_cost.
360 (mn10300_rtx_costs): Add an opno parameter and adjust any recursive
361 rtx-cost calls.
362 * config/pa/pa.c (hppa_rtx_costs): Likewise.
363 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
364 * config/picochip/picochip.c (picochip_rtx_costs): Likewise.
365 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
366 (rs6000_debug_rtx_costs): Likewise.
367 * config/s390/s390.c (s390_rtx_costs): Likewise.
368 * config/score/score-protos.h (score_rtx_costs): Likewise.
369 * config/score/score.c (score_rtx_costs): Likewise.
370 * config/sh/sh.c (andcosts): Update call to rtx_cost.
371 (sh_rtx_costs): Add an opno parameter.
372 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
373 * config/spu/spu.c (spu_rtx_costs): Likewise.
374 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
375 * config/v850/v850.c (v850_rtx_costs): Likewise.
376 * config/vax/vax.c (vax_rtx_costs): Likewise.
377 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
378
379 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
380
381 * rtl.h (set_src_cost, get_full_set_src_cost): New functions.
382 * auto-inc-dec.c (attempt_change): Use set_src_cost instead of
383 rtx_cost.
384 * calls.c (precompute_register_parameters): Likewise.
385 * combine.c (expand_compound_operation, make_extraction): Likewise.
386 (force_to_mode, distribute_and_simplify_rtx): Likewise.
387 * dse.c (find_shift_sequence): Likewise.
388 * expmed.c (init_expmed, expand_mult, expand_smod_pow2): Likewise.
389 * expr.c (compress_float_constant): Likewise.
390 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
391 * gcse.c (want_to_gcse_p): Likewise.
392 * ifcvt.c (noce_try_sign_mask): Likewise.
393 * loop-doloop.c (doloop_optimize): Likewise.
394 * loop-invariant.c (create_new_invariant): Likewise.
395 * optabs.c (avoid_expensive_constant): Likewise.
396 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands)
397 (try_replace_in_use, reload_cse_move2add): Likewise.
398 * reload1.c (calculate_elim_costs_all_insns): Likewise.
399 (note_reg_elim_costly): Likewise.
400 * rtlanal.c (insn_rtx_cost): Likewise.
401 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
402 * stmt.c (lshift_cheap_p): Likewise.
403 * tree-ssa-loop-ivopts.c (seq_cost, computation_cost): Likewise.
404 * config/avr/avr.c (final_prescan_insn): Likewise.
405 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
406 * config/mips/mips.c (mips_binary_cost, mips_rtx_costs): Likewise.
407
408 2011-08-18 Richard Sandiford <richard.sandiford@linaro.org>
409
410 * rtl.h (set_rtx_cost, get_full_set_rtx_cost): New functions.
411 * auto-inc-dec.c (attempt_change): Use set_rtx_cost.
412 * cfgloopanal.c (seq_cost): Likewise.
413 * loop-invariant.c (create_new_invariant): Likewise.
414 * postreload.c (move2add_use_add2_insn, move2add_use_add3_insn)
415 (reload_cse_move2add): Use get_full_set_rtx_cost.
416
417 2011-08-18 Richard Guenther <rguenther@suse.de>
418
419 * expr.c (get_inner_reference): Fix typo in last change.
420
421 2011-08-18 Paolo Carlini <paolo.carlini@oracle.com>
422 Joseph Myers <joseph@codesourcery.com>
423
424 PR tree-optimization/49963
425 * hwint.c (absu_hwi): Define.
426 * hwint.h (absu_hwi): Declare.
427 * fold-const.c (fold_plusminus_mult_expr): Use absu_hwi instead
428 of abs_hwi.
429 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
430 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
431
432 2011-08-18 Richard Guenther <rguenther@suse.de>
433
434 * expr.c (get_inner_reference): Sign-extend the constant
435 twos-complement offset before doing arbitrary precision
436 arithmetic on it.
437 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
438 (get_constraint_for_1): Pass the offset of a MEM_REF unchanged
439 to get_constraint_for_ptr_offset.
440
441 2011-08-17 Kaz Kojima <kkojima@gcc.gnu.org>
442
443 PR target/50068
444 * config/sh/sh.c (sh_output_mi_thunk): Don't call dbr_schedule.
445
446 2011-08-17 Richard Guenther <rguenther@suse.de>
447
448 * tree.h (convert_to_ptrofftype_loc): New function.
449 (convert_to_ptrofftype): Define.
450 * builtins.c (expand_builtin_bzero): Use size_type_node.
451 (fold_builtin_bzero): Likewise.
452 (std_gimplify_va_arg_expr): Build the BIT_AND_EXPR on the pointer.
453 * c-typeck.c (build_unary_op): Use convert_to_ptrofftype_loc.
454 * cgraphunit.c (thunk_adjust): Use fold_build_pointer_plus_loc.
455 (cgraph_redirect_edge_call_stmt_to_callee): Use size_int.
456 * expr.c (expand_expr_addr_expr_1): Use fold_build_pointer_plus.
457 * fold-const.c (build_range_check): Negate using the original type.
458 (fold_unary_loc): Use fold_build_pointer_plus_loc.
459 * gimple-fold.c (gimple_adjust_this_by_delta): Use
460 convert_to_ptrofftype.
461 * gimplify.c (gimplify_self_mod_expr): Likewise.
462 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Likewise.
463 (graphite_create_new_loop_guard): Likewise.
464 * graphite-sese-to-poly.c (my_long_long): Remove.
465 (scop_ivs_can_be_represented): Adjust.
466 * tree-cfg.c (verify_gimple_assign_unary): Use ptrofftype_p.
467 * tree-chrec.c (chrec_fold_plus_1): Use fold_build_pointer_plus.
468 * tree-loop-distribution.c (build_size_arg_loc): Use
469 size_type_node.
470 (generate_memset_zero): Simplify.
471 * tree-mudflap.c: Use fold_convert, not convert.
472 * tree-predcom.c (suitable_reference_p): Expand DR_OFFSET in
473 its own type.
474 (determine_offset): Likewise for DR_STEP.
475 (valid_initializer_p): Likewise.
476 * tree-profile.c (prepare_instrumented_value): Convert the pointer
477 to an integer type of same size.
478 * tree-scalar-evolution.c (interpret_rhs_expr): Do not refer
479 to sizetype without need.
480 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
481 * tree-ssa-loop-ivopts.c (find_bivs): Use convert_to_ptrofftype.
482 * tree-ssa-loop-manip.c (create_iv): Likewise.
483 (determine_exit_conditions): Adjust comment.
484 * tree-ssa-pre.c (create_expression_by_pieces): Use
485 convert_to_ptrofftype.
486 * tree-ssa-structalias.c (get_constraint_for_1): Likewise.
487 * varasm.c (array_size_for_constructor): Compute using double_ints.
488
489 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
490
491 * config/spu/spu.c (spu_emit_branch_or_set): Avoid reverse tests
492 when generating an integer result where possible. Short-cut
493 comparison against 0 also for QImode.
494
495 2011-08-16 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
496
497 * config/spu/spu.h (LEGITIMIZE_RELOAD_ADDRESS): New macro.
498 * config/spu/spu-protos.h (spu_legitimize_reload_address): Add
499 prototype.
500 * config/spu/spu.c (spu_legitimize_reload_address): New function.
501 (spu_legitimate_address_p): Do not check displacement if the base
502 is an eliminable stack register.
503
504 2011-08-16 Anatoly Sokolov <aesok@post.ru>
505
506 * config/m32c/m32c.h (PREFERRED_RELOAD_CLASS,
507 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
508 * config/m32c/m32c-protos.h (m32c_preferred_reload_class,
509 m32c_preferred_output_reload_class): Remove.
510 * config/m32c/m32c.c (m32c_preferred_reload_class): Make static.
511 Change rclass argument and return types to reg_class_t. Use
512 reg_class_subset_p instead of class_sizes.
513 (m32c_preferred_output_reload_class): Make static. Change rclass
514 argument and return types to reg_class_t.
515 (TARGET_PREFERRED_RELOAD_CLASS,
516 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
517
518 2011-08-16 Kai Tietz <ktietz@redhat.com>
519
520 * config/i386/mingw32.h (GOMP_SELF_SPEC): Add -pthread option.
521
522 2011-08-16 Richard GUenther <rguenther@suse.de>
523
524 PR tree-optimization/50082
525 * tree-ssa-forwprop.c (combine_cond_expr_cond): Handle overflow
526 warnings here, instead of ...
527 (ssa_forward_propagate_and_combine): ... here.
528 (forward_propagate_into_comparison_1): Adjust.
529 (forward_propagate_into_comparison): Likewise.
530 (forward_propagate_into_gimple_cond): Likewise.
531 (forward_propagate_into_cond): Likewise.
532
533 2011-08-16 Andreas Schwab <schwab@redhat.com>
534
535 * ggc.h (ggc_alloc_rtvec_sized): Use ggc_alloc_zone_rtvec_def
536 instead of ggc_alloc_zone_vec_rtvec_def.
537
538 2011-08-16 Richard Guenther <rguenther@suse.de>
539
540 * tree.h (ptrofftype_p): New helper function.
541 * tree-cfg.c (verify_expr): Use ptrofftype_p for POINTER_PLUS_EXPR
542 offset verification.
543 (verify_gimple_assign_binary): Likewise.
544 * tree.c (build2_stat): Likewise.
545 * tree-chrec.c (chrec_fold_plus_poly_poly): Likewise.
546 (reset_evolution_in_loop): Likewise.
547 * tree-chrec.h (build_polynomial_chrec): Likewise.
548
549 2011-08-16 Liang Wang <lwang1@marvell.com>
550
551 * ggc.h (ggc_alloc_rtvec_sized): Change arguments of
552 ggc_alloc_zone_vec_rtvec_def.
553
554 2011-08-16 Richard Guenther <rguenther@suse.de>
555
556 * tree-vrp.c (extract_range_from_multiplicative_op_1): New
557 helper factored out from ...
558 (extract_range_from_binary_expr_1): ... here. Re-structure
559 to not glob handling too different tree codes.
560
561 2011-08-15 Richard Henderson <rth@redhat.com>
562
563 PR middle-end/50006
564 * explow.c (allocate_dynamic_stack_space): Move suppress_reg_args_size
565 setting out to include allocate_stack named pattern as well.
566 * builtins.c (expand_builtin_apply): Add ARG_SIZE 0 note.
567 * stmt.c (expand_stack_restore): Likewise.
568
569 2011-08-15 Richard Guenther <rguenther@suse.de>
570
571 PR middle-end/50082
572 * fold-const.c (maybe_canonicalize_comparison_1): Properly
573 convert the modified operand to the other operand type.
574 (fold_comparison): Call maybe_canonicalize_comparison_1 with
575 useless conversions stripped from comparison operands.
576
577 2011-08-15 Richard Guenther <rguenther@suse.de>
578
579 * tree-vrp.c (value_range_nonnegative_p): Fix anti-range case.
580 (extract_range_from_unary_expr_1): Restructure.
581
582 2011-08-15 Richard Guenther <rguenther@suse.de>
583
584 PR tree-optimization/50058
585 * tree-ssa-sccvn.c (vn_reference_lookup_3): Relax aggregate
586 copy matching.
587
588 2011-08-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
589
590 PR target/50022
591 * config/arm/arm.c (output_move_double): Add 2 parameters
592 to count the number of insns emitted and whether to emit or not.
593 Use the flag to decide when to emit and count number of instructions
594 that will be emitted.
595 Handle case where output_move_double might be called for calculating
596 lengths with an invalid constant.
597 (arm_count_output_move_double_insns): Define.
598 * config/arm/arm-protos.h (arm_count_output_move_double_insns): Declare.
599 (output_move_double): Adjust prototype.
600 * config/arm/vfp.md ("*movdi_vfp"): Adjust call to
601 output_move_double.
602 ("*movdi_vfp_cortexa8"): Likewise and add attribute
603 for ce_count.
604 * config/arm/arm.md ("*arm_movdi"): Adjust call to output_move_double.
605 ("*movdf_soft_insn"): Likewise.
606 * config/arm/cirrus.md ("*cirrus_arm_movdi"): Likewise.
607 ("*cirrus_thumb2_movdi"): Likewise.
608 ("*thumb2_cirrus_movdf_hard_insn"): Likewise.
609 ("*cirrus_movdf_hard_insn"): Likewise.
610 * config/arm/neon.md (*neon_mov<mode> VD): Likewise.
611 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Likewise.
612 ("mov<mode>_internal VMMX"): Likewise.
613 * config/arm/fpa.md (*movdf_fpa, *thumb2_movdf_fpa): Likewise.
614
615 2011-08-14 Uros Bizjak <ubizjak@gmail.com>
616
617 * config/i386/i386.c (ix86_expand_round_sse4): New function.
618 * config/i386/i386-protos.h (ix86_expand_round_sse4): New prototype.
619 * config/i386/i386.md (round<mode>2): Use ix86_expand_round_sse4
620 for TARGET_ROUND.
621
622 (rint<mode>2): Simplify TARGET_ROUND check.
623 (floor<mode>2): Ditto.
624 (ceil<mode>2): Ditto.
625 (btrunc<mode>2): Ditto.
626
627 2011-08-14 Anatoly Sokolov <aesok@post.ru>
628
629 * config/mmix/mmix.c (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Redefine
630 as mmix_preferred_output_reload_class.
631
632 2011-08-14 Georg-Johann Lay <avr@gjlay.de>
633
634 * PR target/49903
635 * config/avr/avr.md (UNSPEC_IDENTITY): New c_enum.
636 (branch_unspec): New insn.
637 (branch): Beauty farm.
638 * config/avr/avr.c (compare_condition): Use JUMP_P. Test SET_SRC
639 to be IF_THEN_ELSE.
640 (avr_compare_pattern, avr_reorg_remove_redundant_compare):
641 New static functions.
642 (avr_reorg): Use them. Use next_real_insn instead of NEXT_INSN.
643 Use CONST_INT_P. Beauty.
644
645 2011-08-12 Richard Henderson <rth@redhat.com>
646
647 PR rtl-opt/49994
648 * sched-init.h (struct deps_desc): Add sched_before_next_jump.
649 * sched-deps.c (init_deps): Clear it.
650 (deps_analyze_insn): Consume it.
651 (sched_analyze_insn): Fill it.
652
653 2011-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
654
655 PR target/48328
656 * config/arm/arm.h (CASE_VECTOR_SHORTEN_MODE): Fix distance
657 for tbh instructions.
658
659 2011-08-12 Diego Novillo <dnovillo@google.com>
660
661 * data-streamer.h (streamer_write_zero): Rename from output_zero.
662 (streamer_write_uhwi): Rename from lto_output_uleb128.
663 (streamer_write_hwi): Rename from output_sleb128.
664 (streamer_write_string): Rename from lto_output_string.
665 (streamer_string_index): Rename from lto_string_index.
666 (streamer_write_string_with_length): Rename from
667 lto_output_string_with_length.
668 (streamer_write_uhwi_stream): Rename from lto_output_uleb128_stream.
669 (streamer_write_hwi_stream): Rename from lto_output_sleb128_stream.
670 (streamer_read_string): Rename from lto_input_string.
671 (streamer_read_indexed_string): Rename from input_string_internal.
672 (streamer_read_uhwi): Rename from lto_input_uleb128.
673 (streamer_read_hwi): Rename from lto_input_sleb128.
674 (streamer_write_hwi_in_range): Rename from lto_output_int_in_range.
675 (streamer_read_hwi_in_range): Rename from lto_input_int_in_range.
676 (streamer_write_enum): Rename from lto_output_enum.
677 (streamer_read_enum): Rename from lto_input_enum.
678 (streamer_write_record_start): Rename from output_record_start.
679 (streamer_read_record_start): Rename from input_record_start.
680 (streamer_write_bitpack): Rename from lto_output_bitpack.
681 (streamer_read_bitpack): Rename from lto_input_bitpack.
682 (streamer_write_char_stream): Rename from lto_output_1_stream.
683 (streamer_read_uchar): Rename from lto_input_1_unsigned.
684 * tree-streamer.h (streamer_cache_d): Rename from lto_streamer_cache_d.
685 (streamer_handle_as_builtin_p): Rename from lto_stream_as_builtin_p.
686 (streamer_read_string_cst): Rename from input_string_cst.
687 (streamer_read_chain): Rename from lto_input_chain.
688 (streamer_alloc_tree): Rename from lto_materialize_tree.
689 (streamer_read_tree_body): Rename from lto_input_tree_pointers.
690 (streamer_get_pickled_tree): Rename from lto_get_pickled_tree.
691 (streamer_get_builtin_tree): Rename from lto_get_builtin_tree.
692 (streamer_read_integer_cst): Rename from lto_input_integer_cst.
693 (streamer_read_tree_bitfields): Rename from tree_read_bitfields.
694 (streamer_write_chain): Rename from lto_output_chain.
695 (streamer_write_tree_header): Rename from lto_output_tree_header.
696 (streamer_pack_tree_bitfields): Rename from pack_value_fields.
697 (streamer_write_tree_body): Rename from lto_output_tree_pointers.
698 (streamer_write_integer_cst): Rename from lto_output_integer_cst.
699 (streamer_write_builtin): Rename from lto_output_builtin_tree.
700 (streamer_check_handled_ts_structures): Rename from
701 check_handled_ts_structures.
702 (streamer_tree_cache_insert): Rename from lto_streamer_cache_insert.
703 (streamer_tree_cache_insert_at): Rename from
704 lto_streamer_cache_insert_at.
705 (streamer_tree_cache_append): Rename from lto_streamer_cache_append.
706 (streamer_tree_cache_lookup): Rename from lto_streamer_cache_lookup.
707 (streamer_tree_cache_get): Rename from lto_streamer_cache_get.
708 (streamer_tree_cache_create): Rename from lto_streamer_cache_create.
709 (streamer_tree_cache_delete): Rename from lto_streamer_cache_delete.
710 * tree-streamer-out.c (write_string_cst): Rename from output_string_cst.
711 (write_identifier): Rename from output_identifier.
712 (write_ts_common_tree_pointers): Rename from
713 lto_output_ts_common_tree_pointers.
714 (write_ts_vector_tree_pointers): Rename from
715 lto_output_ts_vector_tree_pointers.
716 (write_ts_complex_tree_pointers): Rename from
717 lto_output_ts_complex_tree_pointers.
718 (write_ts_decl_minimal_tree_pointers): Rename from
719 lto_output_ts_decl_minimal_tree_pointers.
720 (write_ts_decl_common_tree_pointers): Rename from
721 lto_output_ts_decl_common_tree_pointers.
722 (write_ts_decl_non_common_tree_pointers): Rename from
723 lto_output_ts_decl_non_common_tree_pointers.
724 (write_ts_decl_with_vis_tree_pointers): Rename from
725 lto_output_ts_decl_with_vis_tree_pointers.
726 (write_ts_field_decl_tree_pointers): Rename from
727 lto_output_ts_field_decl_tree_pointers.
728 (write_ts_function_decl_tree_pointers): Rename from
729 lto_output_ts_function_decl_tree_pointers.
730 (write_ts_type_common_tree_pointers): Rename from
731 lto_output_ts_type_common_tree_pointers.
732 (write_ts_type_non_common_tree_pointers): Rename from
733 lto_output_ts_type_non_common_tree_pointers.
734 (write_ts_list_tree_pointers): Rename from
735 lto_output_ts_list_tree_pointers.
736 (write_ts_vec_tree_pointers): Rename from
737 lto_output_ts_vec_tree_pointers.
738 (write_ts_exp_tree_pointers): Rename from
739 lto_output_ts_exp_tree_pointers.
740 (write_ts_block_tree_pointers): Rename from
741 lto_output_ts_block_tree_pointers.
742 (write_ts_binfo_tree_pointers): Rename from
743 lto_output_ts_binfo_tree_pointers.
744 (write_ts_constructor_tree_pointers): Rename from
745 lto_output_ts_constructor_tree_pointers.
746 (write_ts_target_option): Rename from lto_output_ts_target_option.
747 (write_ts_translation_unit_decl_tree_pointers): Rename from
748 lto_output_ts_translation_unit_decl_tree_pointers.
749 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
750 Rename from lto_streamer_cache_add_to_node_array.
751 (streamer_tree_cache_insert_1): Rename from lto_streamer_cache_insert_1.
752 (record_common_node): Rename from lto_record_common_node.
753
754 * streamer-hooks.h (bitpack_d, lto_streamer_cache_d): Remove forward
755 declarations.
756 * data-streamer-in.c (lto_input_widest_uint_uleb128): Remove unused
757 function.
758 * data-streamer-out.c (lto_output_widest_uint_uleb128_stream): Remove
759 unused function.
760 * Makefile.in (lto-section-out.o): Add dependency on DATA_STREAMER_H.
761 (ipa-reference.o): Likewise.
762 * lto-section-out.c: Include data-streamer.h.
763 * ipa-reference.c: Include data-streamer.h.
764
765 2011-08-12 Nick Clifton <nickc@redhat.com>
766
767 * builtins.c (expand_builtin_memcmp): Do not use cmpstrnsi pattern.
768 * doc/md.texi (cmpstrn): Note that the comparison stops if both
769 fetched bytes are zero.
770 (cmpstr): Likewise.
771 (cmpmem): Note that the comparison does not stop if both of the
772 fetched bytes are zero.
773
774 2011-08-12 Uros Bizjak <ubizjak@gmail.com>
775
776 * builtins.def (BUILT_IN_ICEIL{,F,L}, BUILT_IN_IFLOOR{,F,L}
777 BUILT_IN_IRINT{,F,L}, BUILT_IN_IROUND{,F,L}: New builtin definitions.
778 * convert.c (convert_to_integer): Convert to BUILT_IN_ICEIL,
779 BUILT_IN_IFLOOR, BUILT_IN_IRINT or BUILT_INT_IROUND when converting
780 to integer_type_node.
781 * fold-const.c (tree_call_nonnegative_warnv_p): Handle BUILT_IN_ICEIL,
782 BUILT_IN_IFLOOR, BUILT_IN_IRINT and BUILT_INT_IROUND.
783 * builtins.c (expand_builtin_in): Ditto.
784 (mathfn_built_in_1): Ditto.
785 (expand_builtin_int_roundingfn): Handle BUILT_IN_ICEIL and
786 BUILT_IN_IFLOOR.
787 (expand_builtin_int_roundingfn_2): Handle BUILT_IN_IRINT and
788 BUILT_IN_IROUND.
789 (fold_fixed_mathfn): Canonicalize BUILT_IN_ICEIL, BUILTIN_IN_IFLOOR
790 BUILT_IN_IRINT and BUILT_IN_IROUND to BUILT_IN_LCEIL,
791 BUILTIN_IN_LFLOOR, BUILT_IN_LRINT and BUILT_IN_LROUND on ILP32 targets.
792
793 2011-08-12 Richard Guenther <rguenther@suse.de>
794
795 * tree-vrp.c (extract_range_from_unary_expr_1): Implement -X as 0 - X.
796
797 2011-08-12 Romain Geissler <romain.geissler@gmail.com>
798
799 * Makefile.in (PLUGIN_HEADERS): Add C_TREE_H.
800
801 2011-08-12 Richard Sandiford <rdsandiford@googlemail.com>
802
803 * config/arm/arm.c (get_label_padding): New function.
804 (create_fix_barrier, arm_reorg): Use it.
805
806 2011-08-11 Uros Bizjak <ubizjak@gmail.com>
807
808 PR target/49781
809 * config/i386/i386.md (*lea_5_zext): New.
810 (*lea_6_zext): Ditto.
811 * config/i386/predicates.md (const_32bit_mask): New predicate.
812 (lea_address_operand): Reject AND.
813 * config/i386/i386.c (ix86_decompose_address): Allow Dimode AND with
814 const_32bit_mask immediate.
815 (ix86_print_operand_address): Handle AND.
816 (memory_address_length): Ditto.
817
818 2011-08-11 Romain Geissler <romain.geissler@gmail.com>
819 Brian Hackett <bhackett1024@gmail.com>
820
821 * plugin.def: Add event for finish_decl.
822 * plugin.c (register_callback, invoke_plugin_callbacks): Same.
823 * c-decl.c (finish_decl): Invoke callbacks on above event.
824 * doc/plugins.texi: Document above event.
825
826 2011-08-11 Richard Guenther <rguenther@suse.de>
827
828 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid redundant
829 lookups, make looking through aggregate copies stronger.
830
831 2011-08-11 Richard Henderson <rth@redhat.com>
832
833 PR bootstrap/50018
834 * expr.c (fixup_args_size_notes): Accept and ignore normal calls.
835
836 2011-08-11 Richard Guenther <rguenther@suse.de>
837
838 * lto-cgraph.c (input_node): Use DECL_BUILT_IN.
839 * tree-vrp.c (stmt_interesting_for_vrp): Likewise.
840 (vrp_visit_stmt): Likewise.
841
842 2011-08-11 Richard Guenther <rguenther@suse.de>
843
844 PR middle-end/50040
845 * gimplify.c (gimplify_modify_expr_complex_part): Mark the
846 load of the other piece with TREE_NO_WARNING.
847 * tree-flow.h (warn_uninit): Adjust prototype.
848 * tree-ssa.c (warn_uninit): Take uninitialized SSA name,
849 the base variable and the expression that is used separately.
850 Properly query all TREE_NO_WARNING flags.
851 (struct walk_data): Remove.
852 (warn_uninitialized_var): Likewise.
853 (warn_uninitialized_vars): Do not walk gimple pieces but simply
854 look at all SSA uses of the statement. Handle unused memory
855 separately.
856 * tree-ssa-uninit.c (warn_uninitialized_phi): Adjust.
857
858 2011-08-11 Kazuhiro Inaoka <kazuhiro.inaoka.ud@renesas.com>
859
860 * config/rx/rx.md (movsicc): Allow register to register transfers.
861 (*movsicc): Likewise.
862 (*stcc): Restrict this pattern to EQ and NE compares.
863 (*stcc_reg): New pattern. Works for any comparison but only for
864 register transfers.
865
866 2011-08-11 Diego Novillo <dnovillo@google.com>
867
868 * tree-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers):
869 Call stream_write_tree instead of output_record_start.
870 (lto_output_ts_binfo_tree_pointers): Likewise.
871
872 * streamer-hooks.h (stream_write_tree): Move from tree-streamer.h.
873 Convert it to a macro.
874 (stream_read_tree): Likewise.
875
876 * lto-streamer.h (lto_stream_as_builtin_p): Move ...
877 * tree-streamer.h (lto_stream_as_builtin_p): ... here.
878
879 * lto-streamer-in.c (lto_read_tree): Call lto_streamer_cache_append
880 and tree_read_bitfields.
881 * lto-streamer-out.c (lto_is_streamable): Move from lto-streamer.c
882 (lto_write_tree): Call it.
883 * lto-streamer.c (lto_is_streamable): Move to lto-streamer-out.c
884 * streamer-hooks.h (struct streamer_hooks): Remove fields
885 name, is_streamable and alloc_tree. Update all users.
886 * tree-streamer-in.c (tree_read_bitfields): Factor out of ...
887 (lto_materialize_tree): ... here.
888 Handle CALL_EXPR codes.
889 Remove call to lto_streamer_cache_append.
890 * tree-streamer-out.c (lto_output_tree_header): Handle CALL_EXPR nodes.
891 * tree-streamer.h (tree_read_bitfields): Declare.
892
893 * Makefile.in (TREE_STREAMER_H): Add STREAMER_HOOKS_H.
894 (gimple-streamer-in.o): Add dependency on TREE_STREAMER_H.
895 * tree-streamer.h (stream_read_tree): New. Replace all calls
896 to lto_input_tree with it.
897 (stream_write_tree): New. Replace all calls to lto_output_tree,
898 lto_output_tree_ref and lto_output_tree_or_ref with it.
899 * lto-streamer-in.c (lto_read_tree): Inline code from
900 lto_streamer_read_tree.
901 (lto_input_tree): Move from tree-streamer-in.c.
902 * lto-streamer-out.c (lto_output_tree_ref): Make static.
903 Remove handling of NULL values for EXPR.
904 Do not handle EXPRs that are not indexable.
905 (lto_write_tree): Move from tree-streamer-out.c.
906 Inline lto_streamer_write_tree.
907 (lto_output_tree): Move from tree-streamer-out.c.
908 If REF_P is true and EXPR is indexable, call lto_output_tree_ref.
909 * lto-streamer.c (lto_record_common_node): Move to tree-streamer.c.
910 (lto_preload_common_nodes): Likewise.
911 Remove assertions and adjustments for nodes
912 main_identifier_node, ptrdiff_type_node and fileptr_type_node.
913 (lto_streamer_hooks_init): Set streamer_hooks.write_tree to
914 lto_output_tree and streamer_hooks.read_tree to lto_input_tree.
915 * lto-streamer.h (lto_input_tree): Declare.
916 (lto_output_tree_ref): Remove.
917 * streamer-hooks.h (struct streamer_hooks): Remove fields
918 preload_common_nodes, indexable_with_decls_p,
919 pack_value_fields, unpack_value_fields and output_tree_header.
920 Update all users.
921 * tree-streamer-in.c (lto_materialize_tree): Make extern.
922 (lto_input_tree_pointers): Likewise.
923 (lto_read_tree): Move to lto-streamer-in.c.
924 (lto_input_integer_cst): Make extern.
925 (lto_get_pickled_tree): Likewise.
926 (lto_get_builtin_tree): Likewise.
927 (lto_input_tree): Move to lto-streamer-in.c.
928 * tree-streamer-out.c (pack_value_fields): Make extern.
929 (lto_output_tree_or_ref): Remove. Replace all callers with
930 calls to stream_write_tree.
931 (lto_output_builtin_tree): Make extern.
932 (lto_streamer_write_tree): Inline into lto_write_tree.
933 (lto_output_tree_pointers): Make extern.
934 (lto_output_tree_header): Likewise.
935 (lto_output_integer_cst): Likewise.
936 (lto_write_tree): Move to lto-streamer-out.c.
937 (lto_output_tree): Likewise.
938 * tree-streamer.c (lto_record_common_node): Move from lto-streamer.c
939 (preload_common_nodes): Likewise.
940 (lto_streamer_cache_create): Call it.
941 * tree-streamer.h: Include streamer-hooks.h.
942 (stream_write_tree): New.
943 (stream_read_tree): New.
944 (lto_input_tree): Remove.
945 (lto_materialize_tree): Declare.
946 (lto_input_tree_pointers): Declare.
947 (lto_get_pickled_tree): Declare.
948 (lto_get_builtin_tree): Declare.
949 (lto_input_integer_cst): Declare.
950 (lto_output_tree_header): Declare.
951 (pack_value_fields): Declare.
952 (lto_output_tree_pointers): Declare.
953 (lto_output_integer_cst): Declare.
954 (lto_output_builtin_tree): Declare.
955
956 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
957
958 * sel-sched-ir.c (has_dependence_note_reg_use): Call ds_full_merge
959 only if producer writes to the register given by regno.
960
961 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
962 Alexander Monakov <amonakov@ispras.ru>
963
964 * sched-deps.c (sched_get_condition_with_rev): Rename to ...
965 (sched_get_condition_with_rev_uncached): ... this. Factor out
966 condition caching logic into ...
967 (sched_get_condition_with_rev): ... this. Reimplement. Do not
968 attempt to use cache for instructions with zero luid.
969 (sched_analyze_insn): Use INSN_CACHED_COND instead of INSN_COND.
970 * sched-int.h (INSN_COND): Rename to INSN_CACHED_COND.
971
972 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
973
974 * sel-sched-ir.c (get_seqno_of_a_pred): Rename to
975 get_seqno_for_a_jump. Update the caller.
976 (get_seqno_by_succs): New. Use it ...
977 (get_seqno_for_a_jump): ... here to find a seqno if looking at
978 predecessors was not sufficient.
979 (get_seqno_by_preds): Include head in iteration range, exclude insn.
980
981 2011-08-11 Dmitry Melnik <dm@ispras.ru>
982
983 * sel-sched-ir.c (invalidate_av_set): Remove the assert.
984
985 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
986
987 * sel-sched-ir.h (register_unavailable_p): Declare.
988 * sel-sched-ir.c (register_unavailable_p): New. Use it...
989 (set_unavailable_target_for_expr): ... here to properly test
990 availability of a register.
991 (speculate_expr): Ditto.
992 * sel-sched.c (substitute_reg_in_expr): Ditto.
993 (av_set_could_be_blocked_by_bookkeeping_p): Ditto.
994
995 2011-08-11 Sergey Grechanik <mouseentity@ispras.ru>
996
997 * sel-sched.c (verify_target_availability): Fix usage of
998 hard_regno_nregs.
999
1000 2011-08-11 Dmitry Melnik <dm@ispras.ru>
1001
1002 * sel-sched-ir.c (init_global_and_expr_for_insn): Forbid copying of
1003 recognized by cannot_copy_insn_p hook and volatile instructions.
1004
1005 2011-08-11 Dmitry Melnik <dm@ispras.ru>
1006
1007 * sel-sched-ir.c (merge_expr_data): Take maximum spec.
1008
1009 2011-08-11 Richard Sandiford <richard.sandiford@linaro.org>
1010
1011 * doc/md.texi (define_bypass): Say that the instruction names can
1012 be filename-style globs.
1013 * Makefile.in (FNMATCH_H): Define.
1014 (build/genattrtab.o, build/genautomata.o): Depend on $(FNMATCH_H).
1015 * genattrtab.c: Include fnmatch.h.
1016 (bypass_list): Change field name from "insn" to "pattern".
1017 (gen_bypass_1): Update accordingly.
1018 (process_bypasses): Use fnmatch to check for matches between
1019 insn reservations and define_bypasses.
1020 * genautomata.c: Include fnmatch.h.
1021 (bypass_decl): Rename in_insn_name and out_insn_name to in_pattern
1022 and out_pattern respectively.
1023 (gen_bypass, insert_bypass): Update accordingly.
1024 (for_each_matching_insn, process_bypass_2, process_bypass_1)
1025 (process_bypass): New functions.
1026 (process_decls): Use process_bypass. Update after field name changes.
1027
1028 2011-08-11 Georg-Johann Lay <avr@gjlay.de>
1029
1030 PR target/49687
1031 * config/avr/avr.md (smulqi3_highpart): New insn.
1032 (umulqi3_highpart): New insn.
1033 (*subqi3.ashiftrt7): New insn.
1034 (smulhi3_highpart): New expander.
1035 (umulhi3_highpart): Nex expander.
1036 (*smulhi3_highpart_call): New insn.
1037 (*umulhi3_highpart_call): New insn.
1038 (extend_u): New code attribute.
1039 (extend_prefix): Rename code attribute to extend_su.
1040 * config/avr/avr.c (avr_rtx_costs): Report costs of highpart of
1041 widening QI/HI multiply.
1042
1043 2011-08-11 Ira Rosen <ira.rosen@linaro.org>
1044
1045 PR tree-optimization/50039
1046 * tree-vect-patterns.c (vect_operation_fits_smaller_type): Check
1047 that DEF_STMT has a stmt_vec_info.
1048
1049 2011-08-10 Richard Guenther <rguenther@suse.de>
1050
1051 * tree.h (can_trust_pointer_alignment): Remove.
1052 * builtins.c (can_trust_pointer_alignment): Remove.
1053
1054 2011-08-10 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1055
1056 * c-typeck.c (scalar_to_vector): New function. Try scalar to
1057 vector conversion.
1058 (stv_conv): New enum for scalar_to_vector return type.
1059 (build_binary_op): Adjust.
1060 * doc/extend.texi: Description of scalar to vector expansion.
1061
1062 2011-08-10 Richard Guenther <rguenther@suse.de>
1063
1064 * tree.h (get_pointer_alignment): Remove max-align argument.
1065 (get_object_alignment): Likewise.
1066 * builtins.c (get_object_alignment_1): Adjust.
1067 (get_object_alignment): Remove max-align argument.
1068 (get_pointer_alignment): Likewise.
1069 (expand_builtin_strlen): Adjust.
1070 (expand_builtin_memcpy): Likewise.
1071 (expand_builtin_mempcpy_args): Likewise.
1072 (expand_builtin_strncpy): Likewise.
1073 (expand_builtin_memset_args): Likewise.
1074 (expand_builtin_memcmp): Likewise.
1075 (expand_builtin_strcmp): Likewise.
1076 (expand_builtin_strncmp): Likewise.
1077 (get_builtin_sync_mem): Likewise.
1078 (fold_builtin_memset): Likewise.
1079 (fold_builtin_memory_op): Likewise.
1080 (expand_builtin_memory_chk): Likewise.
1081 * emit-rtl.c (get_mem_align_offset): Likewise.
1082 (set_mem_attributes_minus_bitpos): Likewise.
1083 * expr.c (expand_assignment): Likewise.
1084 (expand_expr_real_1): Likewise.
1085 * tree-sra.c (tree_non_mode_aligned_mem_p): Likewise.
1086 * tree-ssa-forwprop.c (simplify_builtin_call): Likewise.
1087 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Likewise.
1088 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
1089 * value-prof.c (gimple_stringops_transform): Likewise.
1090
1091 2011-08-10 Paulo J. Matos <paulo.matos@csr.com>
1092
1093 * doc/tm.texi.in (CLASS_MAX_NREGS): Fix typo.
1094 * doc/tm.texi: Regenerate.
1095
1096 2011-08-10 Georg-Johann Lay <avr@gjlay.de>
1097
1098 PR target/29560
1099 * config/avr/avr.md (*ashlhiqi3): New insn-and-split.
1100 (*ashl<extend_prefix>qihiqi3): New insn-and-splits.
1101 (*ashl<extend_prefix>qihiqi3.mem): New insn-and-splits.
1102 Add peephole2 to map ashlhi3 to ashlqi3 if high part of
1103 shift target is unused.
1104
1105 2011-08-10 Richard Guenther <rguenther@suse.de>
1106
1107 PR tree-optimization/49937
1108 * tree-ssa-ccp.c (get_value_from_alignment): Re-implement
1109 using get_object_alignment_1.
1110
1111 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
1112
1113 * config/i386/i386.c (ix86_emit_i387_round): New function.
1114 * config/i386/i386-protos.h (ix86_emit_i387_round): Declare.
1115 * config/i386/i386.md (round<mode>2): Use X87MODEF mode iterator.
1116 Use ix86_emit_i387_round to expand round function for i387 math.
1117 (lround<X87MODEF:mode><SWI248x:mode>2): Use X87MODEF mode iterator.
1118 Use ix86_emit_i387_round to expand {l,ll}round function for i387 math.
1119
1120 2011-08-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1121
1122 * config/sync.c: Move to ../libgcc.
1123 * Makefile.in (libgcc.mvars): Remove LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS.
1124 * config/mips/t-libgcc-mips16 (LIBGCC_SYNC, LIBGCC_SYNC_CFLAGS):
1125 Remove.
1126
1127 2011-08-09 Anatoly Sokolov <aesok@post.ru>
1128
1129 * config/mmix/mmix.h (REGISTER_MOVE_COST): Remove macro.
1130 * config/mmix/mmix-protos.h (mmix_register_move_cost): Remove.
1131 * config/mmix/mmix.c (mmix_register_move_cost): Make static.
1132 Change 'from' and 'to' arguments type to reg_class_t.
1133 (TARGET_REGISTER_MOVE_COST): Define.
1134
1135 2011-08-09 Vladimir Makarov <vmakarov@redhat.com>
1136
1137 PR target/50026
1138 Revert:
1139 PR rtl-optimization/49990
1140 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
1141 ignore classes which can not change mode.
1142 (find_costs_and_classes): Ditto.
1143
1144 2011-08-09 Richard Guenther <rguenther@suse.de>
1145
1146 * tree-vrp.c (zero_nonzero_bits_from_vr): Also return precise
1147 information for ranges with only negative values.
1148 (extract_range_from_binary_expr_1): Adjust BIT_IOR_EXPR and
1149 BIT_AND_EXPR handling to handle ranges with negative values.
1150
1151 2011-08-09 Kirill Yukhin <kirill.yukhin@intel.com>
1152
1153 * config/i386/i386.c: Remove traling spaces.
1154 * config/i386/sse.md: Likewise.
1155 (*fma_fmadd_<mode>): Fix insn alternative 1 mnemonic.
1156 (*fma_fmsub_<mode>): Likewise.
1157 (*fma_fnmadd_<mode>): Likewise.
1158 (*fma_fnmsub_<mode>): Likewise.
1159
1160 2011-08-09 Nick Clifton <nickc@redhat.com>
1161
1162 * config/rx/rx.md: Disable extender peepholes at -O3.
1163
1164 2011-08-09 Uros Bizjak <ubizjak@gmail.com>
1165
1166 PR target/49781
1167 * config/i386/i386.md (reload_noff_load): New.
1168 (reload_noff_store): Ditto.
1169 * config/i386/i386.c (ix86_secondary_reload): Use
1170 CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
1171 double-word moves from/to non-offsetable addresses instead of
1172 generating XMM temporary.
1173
1174 2011-08-09 Anatoly Sokolov <aesok@post.ru>
1175
1176 * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
1177
1178 2011-08-09 Ira Rosen <ira.rosen@linaro.org>
1179
1180 PR tree-optimization/50014
1181 * tree-vect-loop.c (vectorizable_reduction): Get def type before
1182 calling vect_get_vec_def_for_stmt_copy ().
1183
1184 2011-08-08 Vladimir Makarov <vmakarov@redhat.com>
1185
1186 PR rtl-optimization/49990
1187 * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
1188 ignore classes which can not change mode.
1189 (find_costs_and_classes): Ditto.
1190
1191 2011-08-08 Richard Henderson <rth@redhat.com>
1192
1193 PR middle-end/49990
1194 * config/i386/i386.c (ix86_expand_prologue): Call
1195 for SEH target gen_prologue_use instead of gen_blockage
1196 at prologue's end.
1197
1198 2011-08-08 Martin Jambor <mjambor@suse.cz>
1199
1200 PR middle-end/49923
1201 * tree-sra.c (access_precludes_ipa_sra_p): Also check access
1202 memory alignment.
1203
1204 2011-08-08 Diego Novillo <dnovillo@google.com>
1205
1206 * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
1207 (DATA_STREAMER_H): New.
1208 (GIMPLE_STREAMER_H): New.
1209 (TREE_STREAMER_H): New.
1210 (STREAMER_HOOKS_H): New.
1211 (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
1212 gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
1213 tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
1214 (data-streamer.o): New.
1215 (data-streamer-in.o): New.
1216 (data-streamer-out.o): New.
1217 (gimple-streamer-in.o): New.
1218 (gimple-streamer-out.o): New.
1219 (streamer-hooks.o): New.
1220 (tree-streamer.o): New.
1221 (tree-streamer-in.o): New.
1222 (tree-streamer-out.o): New.
1223 (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
1224 (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
1225 GIMPLE_STREAMER_H and TREE_STREAMER_H.
1226 (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
1227 GIMPLE_STREAMER_H and TREE_STREAMER_H.
1228 (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
1229 (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
1230 (ipa-inline-analysis.o): Likewise.
1231 (ipa-pure-const.o): Likewise.
1232 * data-streamer-in.c: New.
1233 * data-streamer-out.c: New.
1234 * data-streamer.c: New.
1235 * data-streamer.h: New.
1236 * gimple-streamer-in.c: New.
1237 * gimple-streamer-out.c: New.
1238 * gimple-streamer.h: New.
1239 * ipa-inline-analysis.c: Include data-streamer.h.
1240 * ipa-prop.c: Include data-streamer.h.
1241 * ipa-pure-const.c: Include data-streamer.h.
1242 * lto-cgraph.c: Include data-streamer.h.
1243 * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
1244 (lto_input_widest_uint_uleb128): Likewise.
1245 (lto_input_sleb128): Likewise.
1246 (bp_unpack_var_len_unsigned): Likewise.
1247 (bp_unpack_var_len_int): Likewise.
1248 * lto-section-out.c (lto_output_uleb128_stream): Move to
1249 data-streamer-out.c.
1250 (lto_output_widest_uint_uleb128_stream): Likewise.
1251 (lto_output_sleb128_stream): Likewise.
1252 (bp_pack_var_len_unsigned): Likewise.
1253 (bp_pack_var_len_int): Likewise.
1254 * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
1255 (struct string_slot): Remove. Update all users.
1256 (lto_tag_check_set): Make extern.
1257 (lto_tag_check_range): Move to lto-streamer.h.
1258 (lto_tag_check): Likewise.
1259 (hash_string_slot_node): Remove. Update all users.
1260 (eq_string_slot_node): Remove. Update all users.
1261 (string_for_index): Move to data-streamer-in.c
1262 (input_string_internal): Likewise.
1263 (input_string_cst): Move to tree-streamer-in.c.
1264 (input_identifier): Likewise.
1265 (lto_input_string): Move to data-streamer-in.c
1266 (input_record_start): Move to data-streamer.h
1267 (canon_file_name): Use new definition of struct string_slot
1268 from data-streamer.h. Set S_SLOT.LEN.
1269 (lto_input_location): Make extern.
1270 (lto_input_chain): Move to tree-streamer-in.c.
1271 (lto_init_eh): Make extern.
1272 (input_phi): Move to gimple-streamer-in.c.
1273 (input_gimple_stmt): Likewise.
1274 (input_bb): Likewise.
1275 (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
1276 (unpack_ts_real_cst_value_fields): Likewise.
1277 (unpack_ts_fixed_cst_value_fields): Likewise.
1278 (unpack_ts_decl_common_value_fields): Likewise.
1279 (unpack_ts_decl_wrtl_value_fields): Likewise.
1280 (unpack_ts_decl_with_vis_value_fields): Likewise.
1281 (unpack_ts_function_decl_value_fields): Likewise.
1282 (unpack_ts_type_common_value_fields): Likewise.
1283 (unpack_ts_block_value_fields): Likewise.
1284 (unpack_ts_translation_unit_decl_value_fields): Likewise.
1285 (unpack_value_fields): Likewise.
1286 (lto_materialize_tree): Likewise.
1287 (lto_input_ts_common_tree_pointers): Likewise.
1288 (lto_input_ts_vector_tree_pointers): Likewise.
1289 (lto_input_ts_complex_tree_pointers): Likewise.
1290 (lto_input_ts_decl_minimal_tree_pointers): Likewise.
1291 (lto_input_ts_decl_common_tree_pointers): Likewise.
1292 (lto_input_ts_decl_non_common_tree_pointers): Likewise.
1293 (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
1294 (lto_input_ts_field_decl_tree_pointers): Likewise.
1295 (lto_input_ts_function_decl_tree_pointers): Likewise.
1296 (lto_input_ts_type_common_tree_pointers): Likewise.
1297 (lto_input_ts_type_non_common_tree_pointers): Likewise.
1298 (lto_input_ts_list_tree_pointers): Likewise.
1299 (lto_input_ts_vec_tree_pointers): Likewise.
1300 (lto_input_ts_exp_tree_pointers): Likewise.
1301 (lto_input_ts_block_tree_pointers): Likewise.
1302 (lto_input_ts_binfo_tree_pointers): Likewise.
1303 (lto_input_ts_constructor_tree_pointers): Likewise.
1304 (lto_input_ts_target_option): Likewise.
1305 (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
1306 (lto_input_tree_pointers): Likewise.
1307 (lto_get_pickled_tree): Likewise.
1308 (lto_get_builtin_tree): Likewise.
1309 (lto_read_tree): Likewise.
1310 (lto_input_integer_cst): Likewise.
1311 (lto_input_tree): Likewise.
1312 * lto-streamer-out.c: Include data-streamer.h,
1313 gimple-streamer.h and streamer-hooks.h.
1314 (struct string_slot): Move to data-streamer.h.
1315 (hash_string_slot_node): Likewise.
1316 (eq_string_slot_node): Likewise.
1317 (lto_string_index): Move to data-streamer-out.c.
1318 (lto_output_string_with_length): Likewise.
1319 (lto_output_string): Likewise.
1320 (output_string_cst): Move to tree-streamer-out.c.
1321 (output_identifier): Likewise.
1322 (output_zero): Move to data-streamer-out.c
1323 (output_uleb128): Likewise.
1324 (output_sleb128): Likewise.
1325 (output_record_start): Move to data-streamer.h
1326 (pack_ts_base_value_fields): Move to tree-streamer-out.c.
1327 (pack_ts_real_cst_value_fields): Likewise.
1328 (pack_ts_fixed_cst_value_fields): Likewise.
1329 (pack_ts_decl_common_value_fields): Likewise.
1330 (pack_ts_decl_wrtl_value_fields): Likewise.
1331 (pack_ts_decl_with_vis_value_fields): Likewise.
1332 (pack_ts_function_decl_value_fields): Likewise.
1333 (pack_ts_type_common_value_fields): Likewise.
1334 (pack_ts_block_value_fields): Likewise.
1335 (pack_ts_translation_unit_decl_value_fields): Likewise.
1336 (pack_value_fields): Likewise.
1337 (lto_output_chain): Likewise.
1338 (lto_output_ts_common_tree_pointers): Likewise.
1339 (lto_output_ts_vector_tree_pointers): Likewise.
1340 (lto_output_ts_complex_tree_pointers): Likewise.
1341 (lto_output_ts_decl_minimal_tree_pointers): Likewise.
1342 (lto_output_ts_decl_common_tree_pointers): Likewise.
1343 (lto_output_ts_decl_non_common_tree_pointers): Likewise.
1344 (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
1345 (lto_output_ts_field_decl_tree_pointers): Likewise.
1346 (lto_output_ts_function_decl_tree_pointers): Likewise.
1347 (lto_output_ts_type_common_tree_pointers): Likewise.
1348 (lto_output_ts_type_non_common_tree_pointers): Likewise.
1349 (lto_output_ts_list_tree_pointers): Likewise.
1350 (lto_output_ts_vec_tree_pointers): Likewise.
1351 (lto_output_ts_exp_tree_pointers): Likewise.
1352 (lto_output_ts_block_tree_pointers): Likewise.
1353 (lto_output_ts_binfo_tree_pointers): Likewise.
1354 (lto_output_ts_constructor_tree_pointers): Likewise.
1355 (lto_output_ts_target_option): Likewise.
1356 (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
1357 (lto_output_tree_pointers): Likewise.
1358 (lto_output_tree_header): Likewise.
1359 (lto_output_builtin_tree): Likewise.
1360 (lto_write_tree): Likewise.
1361 (lto_output_integer_cst): Likewise.
1362 (lto_output_tree): Likewise.
1363 (output_phi): Move to gimple-streamer-out.c.
1364 (output_gimple_stmt): Likewise.
1365 (output_bb): Likewise.
1366 * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
1367 (streamer_hooks): Move to streamer-hooks.c.
1368 (check_handled_ts_structures): Move to tree-streamer.c
1369 (lto_streamer_cache_add_to_node_array): Likewise.
1370 (lto_streamer_cache_insert_1): Likewise.
1371 (lto_streamer_cache_insert): Likewise.
1372 (lto_streamer_cache_insert_at): Likewise.
1373 (lto_streamer_cache_append): Likewise.
1374 (lto_streamer_cache_lookup): Likewise.
1375 (lto_streamer_cache_get): Likewise.
1376 (lto_record_common_node): Likewise.
1377 (lto_preload_common_nodes): Likewise.
1378 (lto_streamer_cache_create): Likewise.
1379 (lto_streamer_cache_delete): Likewise.
1380 (streamer_hooks_init): Move to streamer-hooks.c.
1381 * lto-streamer.h: Include diagnostic.h
1382 (struct output_block, struct lto_input_block,
1383 struct data_in, struct bitpack_d): Remove forward declarations.
1384 (struct bitpack_d): Move to data-streamer.h.
1385 (struct lto_streamer_cache_d): Move to tree-streamer.h.
1386 (struct streamer_hooks): Move to streamer-hooks.h.
1387 (bp_pack_var_len_unsigned): Move to data-streamer.h.
1388 (bp_pack_var_len_int): Likewise.
1389 (bp_unpack_var_len_unsigned): Likewise.
1390 (bp_unpack_var_len_int): Likewise.
1391 (lto_input_location): Declare.
1392 (lto_tag_check_set): Declare.
1393 (lto_init_eh): Declare.
1394 (lto_output_tree_ref): Declare.
1395 (lto_output_location): Declare.
1396 (bitpack_create): Move to data-streamer.h.
1397 (bp_pack_value): Likewise.
1398 (lto_output_bitpack): Likewise.
1399 (lto_input_bitpack): Likewise.
1400 (bp_unpack_value): Likewise.
1401 (lto_output_1_stream): Likewise.
1402 (lto_input_1_unsigned): Likewise.
1403 (lto_output_int_in_range): Likewise.
1404 (lto_input_int_in_range): Likewise.
1405 (bp_pack_int_in_range): Likewise.
1406 (bp_unpack_int_in_range): Likewise.
1407 (lto_output_enum): Likewise.
1408 (lto_input_enum): Likewise.
1409 (bp_pack_enum): Likewise.
1410 (bp_unpack_enum): Likewise.
1411 * streamer-hooks.c: New.
1412 * streamer-hooks.h: New.
1413 * tree-streamer-in.c: New.
1414 * tree-streamer-out.c: New.
1415 * tree-streamer.c: New.
1416 * tree-streamer.h: New.
1417
1418 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1419
1420 * gthr-posix95.h: Remove.
1421 * gthr.h [_PTHREADS95]: Remove.
1422 * configure.ac (enable_threads): Remove posix95.
1423 * configure: Regenerate.
1424 * doc/install.texi (Configuration, --enable-threads): Remove posix95.
1425
1426 2011-08-08 Uros Bizjak <ubizjak@gmail.com>
1427
1428 PR target/49781
1429 * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
1430 SImode addresses.
1431 (ix86_print_operand_address): Handle zero-extended addresses.
1432 (memory_address_length): Add length of addr32 prefix for
1433 zero-extended addresses.
1434 (ix86_secondary_reload): Handle moves to/from double-word general
1435 registers from/to zero-extended addresses.
1436 * config/i386/predicates.md (lea_address_operand): Reject
1437 zero-extended operands.
1438
1439 2011-08-08 H.J. Lu <hongjiu.lu@intel.com>
1440
1441 PR other/48007
1442 * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
1443
1444 * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
1445 (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
1446
1447 * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
1448 (_Unwind_Context_Reg_Val): Likewise.
1449 (_Unwind_Get_Unwind_Word): Likewise.
1450 (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
1451 (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
1452 (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
1453 for EXTENDED_CONTEXT_BIT.
1454 (__frame_state_for): Likewise.
1455 (uw_init_context_1): Likewise.
1456 (_Unwind_GetGR): Updated.
1457 (_Unwind_SetGR): Likewise.
1458 (_Unwind_GetGRPtr): Likewise.
1459 (_Unwind_SetGRPtr): Likewise.
1460 (_Unwind_SetGRValue): Likewise.
1461 (_Unwind_GRByValue): Likewise.
1462 (uw_install_context_1): Likewise.
1463
1464 * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
1465 ASSUME_EXTENDED_UNWIND_CONTEXT.
1466 * doc/tm.texi: Regenerated.
1467
1468 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1469
1470 * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
1471
1472 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1473
1474 * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
1475 Linux/GNU-specific.
1476 (DEC Alpha Options, -mtune): Likewise.
1477 (MIPS Options, -march): native is supported on IRIX.
1478
1479 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1480
1481 * config/sparc/driver-sparc.c: New file.
1482 * config/sparc/x-sparc: New file.
1483 * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
1484 * config/sparc/sparc.opt (native): New value for enum processor_type.
1485 * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
1486 * config/sparc/sparc.c (sparc_option_override): Abort if
1487 PROCESSOR_NATIVE gets here.
1488 * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
1489 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
1490 DRIVER_SELF_SPECS): Define.
1491 * doc/invoke.texi (SPARC Options, -mcpu): Document native.
1492 (SPARC Options, -mtune): Likewise.
1493 * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
1494 Substitute result.
1495 * configure: Regenerate.
1496 * Makefile.in (EXTRA_GCC_LIBS): Set.
1497 (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
1498 (cpp$(exeext)): Likewise.
1499
1500 2011-08-08 Richard Guenther <rguenther@suse.de>
1501
1502 * tree-vrp.c (extract_range_from_unary_expr_1): New function,
1503 split out from ...
1504 (extract_range_from_unary_expr): ... here. Handle BIT_NOT_EXPR
1505 by composition.
1506
1507 2011-08-08 Mikael Pettersson <mikpe@it.uu.se>
1508
1509 PR tree-optimization/50005
1510 * ipa-inline-analysis (remap_predicate): Add cast to
1511 silence signed/unsigned comparison warning.
1512
1513 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
1514
1515 * modulo-sched.c (get_sched_window): Use a table for the debug output.
1516 Print the current ii.
1517 (sms_schedule_by_order): Reduce whitespace in dump line.
1518
1519 2011-08-08 Richard Sandiford <richard.sandiford@linaro.org>
1520
1521 * modulo-sched.c (get_sched_window): Use just one loop for predecessors
1522 and one loop for successors. Fix upper bound of memory range.
1523
1524 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
1525
1526 PR target/50001
1527 * config/alpha/alpha.c (alpha_instantiate_decls): New function.
1528 (TARGET_INSTANTIATE_DECLS): New define.
1529
1530 2011-08-06 Paolo Bonzini <bonzini@gnu.org>
1531 Mikael Morin <mikael.morin@sfr.fr>
1532
1533 * Makefile.in (INCLUDES_FOR_TARGET): New.
1534 (LIBGCC2_CFLAGS): Use it.
1535 (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
1536
1537 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
1538
1539 * config/i386/i386.c (ix86_compute_frame_layout): Simplify
1540 frame->save_regs_using_mov calculation.
1541
1542 2011-08-06 Uros Bizjak <ubizjak@gmail.com>
1543
1544 * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
1545 * config/i386/sse.md (castmode): New mode attribute.
1546 (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
1547 avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
1548
1549 2011-08-05 Jan Hubicka <jh@suse.cz>
1550
1551 PR middle-end/49494
1552 * ipa-inline-analysis.c (remap_predicate): Add bounds check.
1553
1554 2011-08-05 Jan Hubicka <jh@suse.cz>
1555
1556 PR middle-end/49500
1557 * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
1558 handle aliases.
1559 (create_emultls_var):New function.
1560 (ipa_lower_emutls): Handle aliases correctly.
1561
1562 2011-08-05 Jan Hubicka <jh@suse.cz>
1563
1564 PR middle-end/49735
1565 * ipa-inline.c (recursive_inlining): Look through aliases.
1566
1567 2011-08-05 Jason Merrill <jason@redhat.com>
1568
1569 * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
1570 declarations to beginning of function.
1571
1572 2011-08-05 Bernd Schmidt <bernds@codesourcery.com>
1573
1574 PR rtl-optimization/49900
1575 * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
1576 ensure basic blocks stay in the same order.
1577
1578 2011-08-05 Aldy Hernandez <aldyh@redhat.com>
1579
1580 * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
1581 store_bit_field.
1582 (s390_expand_atomic): Same.
1583
1584 2011-08-05 Richard Henderson <rth@redhat.com>
1585
1586 PR rtl-opt/49977
1587 * dwarf2cfi.c (scan_insn_after): Split out of ...
1588 (scan_trace): ... here. Correctly place notes wrt sequences.
1589
1590 2011-08-05 Kaz Kojima <kkojima@gcc.gnu.org>
1591 Richard Henderson <rth@redhat.com>
1592
1593 PR rtl-opt/49982
1594 * expr.c (fixup_args_size_notes): Look through no-op moves.
1595
1596 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
1597
1598 * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
1599 of "m" for operand 0. Add type and mode attribute.
1600 (*pushxf_nointeger"): Use "<" constraint for operand 0.
1601 (*pushdf_rex64): New pattern, split out of *pushdf. Use "m"
1602 constraint instead of "o" for opreand 1.
1603 (*pushdf): Disable for TARGET_64BIT. Correct mode attribute.
1604 (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
1605 operand 0, alternative 4.
1606 (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
1607
1608 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
1609
1610 * config/i386/predicates.md (lea_address_operand): Rename from
1611 no_seg_address_operand.
1612 * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
1613 (*lea_1_zext): Ditto.
1614 (*lea_2): Ditto.
1615 (*lea_2_zext): Ditto.
1616
1617 2011-08-05 Uros Bizjak <ubizjak@gmail.com>
1618
1619 * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
1620 parts.base and parts.index.
1621 * config/i386/predicates.md (aligned_operand): Ditto.
1622 (cmpxchg8b_pic_memory_operand): Ditto.
1623
1624 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1625
1626 * config/soft-fp: Move to ../libgcc.
1627 * Makefile.in (SFP_MACHINE): Remove.
1628 (libgcc-support): Remove $(SFP_MACHINE) dependency.
1629 * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
1630 * config/arm/t-arm-softfp: Move to
1631 ../libgcc/config/arm/t-softfp.
1632 * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
1633 * config/c6x/t-c6x-softfp: Remove.
1634 * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
1635 * config/i386/t-fprules-softfp: Move to
1636 ../libgcc/config/t-softfp-tf.
1637 * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
1638 * config/ia64/t-fprules-softfp: Remove.
1639 * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
1640 * config/lm32/t-fprules-softfp: Remove.
1641 * config/moxie/sfp-machine.h: Remove.
1642 * config/moxie/t-moxie-softfp: Remove.
1643 * config/rs6000/darwin-ldouble-format: Move to
1644 ../libgcc/config/rs6000/ibm-ldouble-format.
1645 * config/rs6000/darwin-ldouble.c: Move to
1646 ../libgcc/config/rs6000/ibm-ldouble.c
1647 * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
1648 * config/rs6000/libgcc-ppc64.ver: Likewise.
1649 * config/rs6000/sfp-machine.h: Likewise.
1650 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
1651 $(srcdir)/config/rs6000/libgcc-ppc64.ver.
1652 (LIB2FUNCS_EXTRA): Remove.
1653 (TARGET_LIBGCC2_CFLAGS): Remove.
1654 * config/rs6000/t-aix52: Likewise
1655 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
1656 $(srcdir)/config/rs6000/darwin-ldouble.c.
1657 (SHLIB_MAPFILES): Remove.
1658 * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
1659 $(srcdir)/config/rs6000/darwin-ldouble.c.
1660 * config/rs6000/t-fprules-softfp: Move to
1661 ../libgcc/config/t-softfp-sfdf.
1662 * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
1663 * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
1664 * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
1665 $(srcdir)/config/rs6000/darwin-ldouble.c.
1666 * config/score/sfp-machine.h: Move to ../libgcc/config/score.
1667 * config/score/t-score-softfp: Remove.
1668 * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
1669 soft-fp/t-softfp from tmake_file.
1670 (arm*-*-uclinux*): Likewise.
1671 (arm*-*-ecos-elf): Likewise.
1672 (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
1673 (arm*-*-rtems*): Likewise.
1674 (arm*-*-elf): Likewise.
1675 (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
1676 tmake_file.
1677 (moxie-*-uclinux*): Likewise.
1678 (moxie-*-rtems*): Likewise.
1679 (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
1680 tmake_file.
1681 (lm32-*-rtems*): Likewise.
1682 (lm32-*-uclinux*): Likewise.
1683 (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
1684 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
1685 (powerpc-*-linux*, powerpc64-*-linux*): Remove
1686 rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
1687 (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
1688 tmake_file.
1689 (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
1690 tmake_file.
1691 (tic6x-*-uclinux): Likewise.
1692 (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
1693 soft-fp/t-softfp from tmake_file.
1694 (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
1695 (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
1696 (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
1697 (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
1698 (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
1699
1700 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1701
1702 * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
1703 (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
1704 (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
1705 TPBIT, TPBIT_FUNCS.
1706 * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
1707 * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
1708 Remove.
1709 * config/arm/t-vxworks: Likewise.
1710 * config/arm/t-wince-pe: Likewise.
1711 * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
1712 * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1713 * config/bfin/t-bfin-elf: Likewise.
1714 * config/bfin/t-bfin-linux: Likewise.
1715 * config/bfin/t-bfin-uclinux: Likewise.
1716 * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
1717 Remove.
1718 * config/fr30/t-fr30: Likewise.
1719 * config/frv/t-frv: Likewise.
1720 * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
1721 * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1722 * config/m32c/t-m32c: Likewise.
1723 * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
1724 * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1725 * config/mcore/t-mcore: Likewise.
1726 * config/mep/t-mep: Likewise.
1727 * config/microblaze/t-microblaze: Likewise.
1728 * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
1729 * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1730 * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
1731 * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1732 * config/mn10300/t-linux: Remove.
1733 * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1734 * config/pdp11/t-pdp11: Likewise.
1735 * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
1736 * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
1737 * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1738 (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
1739 * config/rs6000/t-aix52: Likewise.
1740 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
1741 $(srcdir)/config/rs6000/ppc64-fp.c.
1742 * config/rs6000/t-fprules-fpbit: Remove.
1743 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
1744 * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1745 * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
1746 * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1747 * config/sparc/t-elf: Likewise.
1748 * config/sparc/t-leon: Likewise.
1749 * config/sparc/t-leon3: Likewise.
1750 * config/spu/t-spu-elf: Likewise.
1751 (DPBIT_FUNCS): Remove.
1752 * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
1753 * config/v850/t-v850: Likewise.
1754 * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
1755 (avr-*-*): Likewise.
1756 (h8300-*-rtems*): Set libgcc_tm_file.
1757 (h8300-*-elf*): Likewise.
1758 (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
1759 tmake_file.
1760 (powerpc-*-eabisim*): Likewise.
1761 (powerpc-*-elf*): Likewise.
1762 (powerpc-*-eabialtivec*): Likewise.
1763 (powerpc-xilinx-eabi*): Likewise.
1764 (powerpc-*-eabi*): Likewise.
1765 (powerpc-*-rtems*): Likewise.
1766 (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
1767 (powerpcle-*-elf*): Likewise.
1768 (powerpcle-*-eabisim*): Likewise.
1769 (powerpcle-*-eabi*): Likewise.
1770 (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
1771 (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
1772 * doc/fragments.texi (Target Fragment, Floating Point Emulation):
1773 Remove.
1774
1775 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1776
1777 * Makefile.in (UNWIND_H): Remove.
1778 (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
1779 ../libgcc/Makefile.in.
1780 (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
1781 (LIBUNWINDDEP): Remove.
1782 (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
1783 (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
1784 LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
1785 (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
1786 Don't copy $(UNWIND_H).
1787 * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
1788 * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
1789 * aclocal.m4: Regenerate.
1790 * configure: Regenerate.
1791 * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
1792 unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
1793 unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
1794 unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
1795 * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
1796 * config/arm/libunwind.S, config/arm/pr-support.c,
1797 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
1798 ../libgcc/config/arm.
1799 * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
1800 * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
1801 * config/frv/t-frv ($(T)frvbegin$(objext)): Use
1802 $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
1803 ($(T)frvend$(objext)): Likewise.
1804 * config/ia64/t-glibc (LIB2ADDEH): Remove.
1805 * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
1806 * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
1807 config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
1808 ../libgcc/config/ia64.
1809 * config/ia64/t-hpux (LIB2ADDEH): Remove.
1810 * config/ia64/t-ia64 (LIB2ADDEH): Remove.
1811 * config/ia64/t-vms (LIB2ADDEH): Remove.
1812 * config/ia64/vms.h (UNW_IVMS_MODE,
1813 MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
1814 * config/picochip/t-picochip (LIB2ADDEH): Remove.
1815 * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
1816 * config/rs6000/t-darwin (LIB2ADDEH): Remove.
1817 * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
1818 * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
1819 $(srcdir)/../libgcc to refer to unwinder sources.
1820 * config/spu/t-spu-elf (LIB2ADDEH): Remove.
1821 * config/t-darwin (LIB2ADDEH): Remove.
1822 * config/t-freebsd (LIB2ADDEH): Remove.
1823 * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
1824 * config/t-libunwind-elf: Move to ../libgcc/config.
1825 * config/t-linux (LIB2ADDEH): Remove.
1826 * config/t-sol2 (LIB2ADDEH): Remove.
1827 * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
1828 * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
1829
1830 2011-08-05 H.J. Lu <hongjiu.lu@intel.com>
1831
1832 * config/i386/i386.c (processor_alias_table): Add core-avx-i.
1833
1834 * doc/invoke.texi: Document core-avx-i.
1835
1836 2011-08-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1837
1838 * tsystem.h (CONST_CAST2, CONST_CAST): Define.
1839
1840 2011-08-05 Ira Rosen <ira.rosen@linaro.org>
1841
1842 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
1843 result of multiple results reduction when extracting the final
1844 value using scalar code.
1845
1846 2011-08-05 Richard Guenther <rguenther@suse.de>
1847
1848 PR tree-optimization/49984
1849 * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
1850
1851 2011-08-05 Richard Guenther <rguenther@suse.de>
1852
1853 * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
1854 return true for constant integer ranges.
1855 (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
1856 BIT_IOR_EXPR handling.
1857
1858 2011-08-04 Kai Tietz <ktietz@redhat.com>
1859
1860 * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
1861 ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
1862
1863 2011-08-04 Ira Rosen <ira.rosen@linaro.org>
1864
1865 * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
1866 pattern def statement, and its access macro.
1867 (NUM_PATTERNS): Set to 5.
1868 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
1869 pattern def statement.
1870 (vect_transform_loop): Likewise.
1871 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
1872 function vect_recog_over_widening_pattern ().
1873 (vect_operation_fits_smaller_type): New function.
1874 (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
1875 Likewise.
1876 (vect_pattern_recog_1): Move the code that marks pattern
1877 statements to vect_mark_pattern_stmts (), and call it. Update
1878 documentation.
1879 * tree-vect-stmts.c (vect_supportable_shift): New function.
1880 (vect_analyze_stmt): Handle pattern def statement.
1881 (new_stmt_vec_info): Initialize pattern def statement.
1882
1883 2011-08-04 Richard Henderson <rth@redhat.com>
1884
1885 PR target/49964
1886 * config/i386/i386.c (ix86_expand_call): Don't create nested
1887 PARALLELs for TARGET_VZEROUPPER.
1888 (ix86_split_call_vzeroupper): Fix extraction of the original call.
1889 * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
1890 recognize nested PARALLELs.
1891 (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
1892 *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
1893 *sibcall_value_pop_vzeroupper): Likewise.
1894
1895 2011-08-04 Richard Henderson <rth@redhat.com>
1896
1897 PR middle-end/49968
1898 * calls.c (expand_call): Use fixup_args_size_notes for
1899 emit_stack_restore.
1900 * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
1901 in non-standard modes.
1902
1903 2011-08-04 Jakub Jelinek <jakub@redhat.com>
1904
1905 * gcc.c (self_spec): New variable.
1906 (static_specs): Add self_spec.
1907 (main): Call do_self_spec on "self_spec" specs after reading
1908 user specs files. Move compare_debug handling right after that.
1909
1910 2011-08-04 Richard Guenther <rguenther@suse.de>
1911
1912 * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
1913 (value_range_nonnegative_p): New function.
1914 (ssa_name_nonnegative_p): Use it.
1915 (value_range_constant_singleton): New function.
1916 (op_with_constant_singleton_value_range): Use it.
1917 (extract_range_from_binary_expr_1): New function, split out from ...
1918 (extract_range_from_binary_expr): ... this. Remove fallback
1919 constant folding done here.
1920
1921 2011-08-04 Richard Guenther <rguenther@suse.de>
1922
1923 PR tree-optimization/49806
1924 * tree-vrp.c (op_with_boolean_value_range_p): New function.
1925 (simplify_truth_ops_using_ranges): Simplify. Allow inserting
1926 a new statement for a final conversion to bool.
1927
1928 2011-08-04 Romain Geissler <romain.geissler@gmail.com>
1929
1930 * gengtype-state.c: Include "bconfig.h" if
1931 GENERATOR_FILE is defined, "config.h" otherwise.
1932 * gengtype.c: Likewise.
1933 * gengtype-lex.l: Likewise.
1934 * gengtype-parse.c: Likewise.
1935 * Makefile.in (gengtype-lex.o-warn): New variable.
1936 (plugin_resourcesdir): Likewise.
1937 (plugin_bindir): Likewise.
1938 (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
1939 (MOSTLYCLEANFILES): Add gengtype$(exeext).
1940 (native): Depend on gengtype$(exeext) is $enable_plugin
1941 is set to "yes".
1942 (gtype.state): Depend on s-gtype. Use temporary file.
1943 (gengtype-lex.o): New rule.
1944 (gengtype-parse.o): Likewise.
1945 (gengtype-state.o): Likewise.
1946 (gengtype$(exeext)): Likewise.
1947 (install-gengtype): Likewise.
1948 (gengtype.o): Likewise.
1949 (build/gengtype.o): Depend on version.h.
1950 (build/gengtype-state): Depend on double-int.h, version.h,
1951 $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
1952 (install-plugin): Depend on install-gengtype.
1953
1954 2011-08-04 Jakub Jelinek <jakub@redhat.com>
1955
1956 PR middle-end/49905
1957 * tree.h (init_attributes): New prototype.
1958 * attribs.c (init_attributes): No longer static.
1959
1960 2011-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1961
1962 * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
1963 maybe_suffix.
1964
1965 2011-08-03 David Li <davidxl@google.com>
1966
1967 * tree-optimize.c (execute_fixup_cfg): Fix up entry
1968 outgoing edge counts after inlining.
1969
1970 2011-08-03 David Li <davidxl@google.com>
1971
1972 * profile.c (compute_branch_probabilities): Compute
1973 function frequency after profile annotation.
1974
1975 2011-08-04 Alan Modra <amodra@gmail.com>
1976
1977 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
1978 use_backchain_to_restore_sp initialisation.
1979 (rs6000_legitimate_offset_address_p): Simplify offset test.
1980
1981 2011-08-03 Richard Henderson <rth@redhat.com>
1982
1983 * config/spu/spu.md: Use define_c_enum instead of define_constants.
1984 (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
1985 (UNSPECV_NOP): New.
1986
1987 2011-08-03 Richard Henderson <rth@redhat.com>
1988
1989 PR target/34888
1990 * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
1991
1992 2011-08-03 Jakub Jelinek <jakub@redhat.com>
1993
1994 PR tree-optimization/49948
1995 * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
1996
1997 2011-08-03 Anatoly Sokolov <aesok@post.ru>
1998
1999 * config/m32c/m32c.c (class_sizes): Remove.
2000 (reduce_class): Change arguments and return type to reg_class_t.
2001 Change type cc var to HARD_REG_SET. Change type best var to
2002 reg_class_t. Change type best_size var to unsigned int. Remove
2003 initialization class_sizes var. Use reg_class_size array instead
2004 of class_sizes. Use reg_class_contents array instead
2005 of class_contents.
2006
2007 2011-08-03 Richard Guenther <rguenther@suse.de>
2008
2009 PR middle-end/49958
2010 * fold-const.c (fold_binary_loc): Only associate
2011 (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
2012 overflow wraps.
2013
2014 2011-08-03 Alan Modra <amodra@gmail.com>
2015
2016 PR rtl-optimization/49941
2017 * jump.c (mark_jump_label): Comment.
2018 (mark_jump_label_1): Set JUMP_LABEL for return jumps.
2019 * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
2020 (mark_used_flags): Don't mark RETURN.
2021
2022 2011-08-03 Richard Guenther <rguenther@suse.de>
2023
2024 PR tree-optimization/49938
2025 * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
2026 deal with a POLYNOMIAL_CHREC.
2027
2028 2011-08-03 Revital Eres <revital.eres@linaro.org>
2029
2030 * modulo-sched.c (calculate_stage_count,
2031 calculate_must_precede_follow, get_sched_window,
2032 try_scheduling_node_in_cycle, remove_node_from_ps): Add
2033 declaration.
2034 (update_node_sched_params, set_must_precede_follow, optimize_sc):
2035 New functions.
2036 (reset_sched_times): Call update_node_sched_params.
2037 (sms_schedule): Call optimize_sc.
2038 (get_sched_window): Change function arguments.
2039 (sms_schedule_by_order): Update call to get_sched_window.
2040 Call set_must_precede_follow.
2041 (calculate_stage_count): Add function argument.
2042
2043 2011-08-02 Richard Henderson <rth@redhat.com>
2044
2045 PR target/49864
2046 PR target/49879
2047 * reg-notes.def (REG_ARGS_SIZE): New.
2048 * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
2049 (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
2050 * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
2051 different stack levels.
2052 * combine-stack-adj.c (adjust_frame_related_expr): Remove.
2053 (maybe_move_args_size_note): New.
2054 (combine_stack_adjustments_for_block): Use it.
2055 * combine.c (distribute_notes): Place REG_ARGS_SIZE.
2056 * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
2057 (dw_trace_info): Add beg_true_args_size, end_true_args_size,
2058 beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
2059 (cur_cfa): New.
2060 (queued_args_size): Remove.
2061 (add_cfi_args_size): Assert size is non-negative.
2062 (stack_adjust_offset, dwarf2out_args_size): Remove.
2063 (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
2064 (notice_args_size, notice_eh_throw): New.
2065 (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
2066 (dwarf2out_frame_debug_adjust_cfa): Likewise.
2067 (dwarf2out_frame_debug_cfa_offset): Likewise.
2068 (dwarf2out_frame_debug_expr): Likewise. Don't stack_adjust_offset.
2069 (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
2070 (change_cfi_row): Don't emit args_size.
2071 (maybe_record_trace_start_abnormal): Split out from ...
2072 (maybe_record_trace_start): Here. Set args_size_undefined.
2073 (create_trace_edges): Update to match.
2074 (scan_trace): Handle REG_ARGS_SIZE.
2075 (connect_traces): Connect args_size between EH insns.
2076 * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
2077 * explow.c (suppress_reg_args_size): New.
2078 (adjust_stack_1): Split out from ...
2079 (adjust_stack): ... here.
2080 (anti_adjust_stack): Use it.
2081 (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
2082 * expr.c (mem_autoinc_base): New.
2083 (fixup_args_size_notes): New.
2084 (emit_single_push_insn_1): Rename from emit_single_push_insn.
2085 (emit_single_push_insn): New. Generate REG_ARGS_SIZE.
2086 * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
2087 * reload1.c (reload_as_needed): Likewise.
2088 * rtl.h (fixup_args_size_notes): Declare.
2089
2090 2011-08-02 Paolo Carlini <paolo.carlini@oracle.com>
2091
2092 PR bootstrap/49914
2093 * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
2094 of abs.
2095 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2096 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
2097
2098 2011-08-02 Richard Henderson <rth@redhat.com>
2099
2100 * config/h8300/h8300.c (push, pop): Return the insn.
2101 (h8300_swap_into_er6): Generate correct unwind info.
2102 (h8300_swap_out_of_er6): Likewise.
2103 * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
2104 complex cfa expression.
2105 (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
2106
2107 2011-08-02 H.J. Lu <hongjiu.lu@intel.com>
2108
2109 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
2110
2111 2011-08-02 Richard Henderson <rth@redhat.com>
2112
2113 PR target/49878
2114 * config/h8300/h8300.c (h8300_move_ok): New.
2115 * config/h8300/h8300-protos.h: Declare it.
2116 * config/h8300/h8300.md (P): New mode iterator.
2117 (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
2118 (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
2119 (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
2120 (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
2121 (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
2122 and pushqi1_h8300hs_normal; use PRE_MODIFY and
2123 register_no_sp_elim_operand.
2124 (*pushhi1_h8300hs_<P>): Similarly.
2125 (pushqi1, pushhi1, pushhi1_h8300): Remove.
2126 * config/h8300/predicates.md (register_no_sp_elim_operand): New.
2127
2128 2011-08-02 Richard Henderson <rth@redhat.com>
2129
2130 PR target/49881
2131 * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
2132
2133 2011-08-02 Jakub Jelinek <jakub@redhat.com>
2134
2135 * c-parser.c (enum c_parser_prec): New enum, moved from within
2136 c_parser_binary_expression.
2137 (c_parser_binary_expression): Add PREC argument. Stop parsing
2138 if operator has lower or equal precedence than PREC.
2139 (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
2140 callers.
2141 (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
2142 Adjust c_finish_omp_atomic caller.
2143 (c_parser_omp_taskyield): New function.
2144 (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
2145 (c_parser_omp_clause_name): Handle final and mergeable clauses.
2146 (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
2147 functions.
2148 (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
2149 and PRAGMA_OMP_CLAUSE_MERGEABLE.
2150 (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
2151 (c_parser_omp_clause_reduction): Handle min and max.
2152 * c-typeck.c (c_finish_omp_clauses): Don't complain about
2153 const qualified predetermined vars in firstprivate clause.
2154 andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2155 Handle MIN_EXPR and MAX_EXPR.
2156 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
2157 and OMP_CLAUSE_MERGEABLE.
2158 (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
2159 and OMP_ATOMIC_CAPTURE_NEW.
2160 * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
2161 OMP_CLAUSE_MERGEABLE.
2162 (omp_clause_code_name): Likewise.
2163 (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2164 * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
2165 and OMP_CLAUSE_MERGEABLE.
2166 (OMP_CLAUSE_FINAL_EXPR): Define.
2167 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
2168 OMP_CLAUSE_MERGEABLE.
2169 (expand_task_call): Likewise.
2170 (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
2171 (expand_omp_atomic_fetch_op): Handle cases where old or new
2172 value is needed afterwards.
2173 (expand_omp_atomic): Call expand_omp_atomic_load resp.
2174 expand_omp_atomic_store.
2175 * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
2176 OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
2177 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
2178 OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2179 * tree-nested.c (convert_nonlocal_omp_clauses,
2180 convert_local_omp_clauses): Likewise.
2181 * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
2182 OMP_ATOMIC_CAPTURE_NEW): New.
2183 * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
2184 (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
2185 New inlines.
2186 * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
2187 * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
2188 OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
2189
2190 2011-08-02 Kai Tietz <ktietz@redhat.com>
2191
2192 * gimple.c (canonicalize_cond_expr_cond): Handle cast from
2193 boolean-type.
2194 (ssa_forward_propagate_and_combine): Interprete result of
2195 forward_propagate_comparison.
2196 * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
2197 boolean-typed operands for comparisons.
2198
2199 2011-08-02 Georg-Johann Lay <avr@gjlay.de>
2200
2201 * config/avr/libgcc.S: Gather related function in the
2202 same input section.
2203 (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
2204 __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
2205 references.
2206 (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
2207 __udivmodsi4, __divmodsi4, __prologue_saves__,
2208 __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
2209 __do_copy_data, __do_clear_bss, __do_global_ctors,
2210 __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
2211
2212 2011-08-02 Uros Bizjak <ubizjak@gmail.com>
2213
2214 PR target/47766
2215 * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
2216 (stack_protect_test): The pattern compares ptr_mode value.
2217
2218 2011-08-02 Alan Modra <amodra@gmail.com>
2219
2220 * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
2221 note for save_LR_around_toc_setup sequence.
2222
2223 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2224
2225 * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
2226
2227 2011-08-01 Sebastian Pop <sebastian.pop@amd.com>
2228 Joseph Myers <joseph@codesourcery.com>
2229
2230 * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
2231 * hwint.c: Include diagnostic-core.h.
2232 (abs_hwi): New.
2233 (gcd): Moved here...
2234 (pos_mul_hwi): New.
2235 (mul_hwi): New.
2236 (least_common_multiple): Moved here...
2237 * hwint.h (gcd): ... from here.
2238 (least_common_multiple): ... from here.
2239 (HOST_WIDE_INT_MIN): New.
2240 (HOST_WIDE_INT_MAX): New.
2241 (abs_hwi): Declared.
2242 (gcd): Declared.
2243 (pos_mul_hwi): Declared.
2244 (mul_hwi): Declared.
2245 (least_common_multiple): Declared.
2246 * omega.c (check_pos_mul): Removed.
2247 (check_mul): Removed.
2248 (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
2249 mul_hwi instead of check_mul.
2250
2251 2011-08-01 Richard Henderson <rth@redhat.com>
2252
2253 PR target/49881
2254 * config/avr/avr.h (PUSH_ROUNDING): New.
2255 * config/avr/avr.md (pushqi1): Rename from *pushqi.
2256 (*pushhi, *pushsi, *pushsf): Remove.
2257 (MPUSH): New mode iterator.
2258 (push<MPUSH>1): New expander.
2259
2260 2011-08-01 Anatoly Sokolov <aesok@post.ru>
2261
2262 * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
2263 PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
2264 * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
2265 mmix_preferred_output_reload_class): Remove.
2266 * config/mmix/mmix.c (mmix_preferred_reload_class,
2267 mmix_preferred_output_reload_class): Make static. Change rclass
2268 argument and return type to reg_class_t.
2269 (TARGET_PREFERRED_RELOAD_CLASS,
2270 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2271
2272 2011-08-01 Joern Rennecke <joern.rennecke@embecosm.com>
2273
2274 * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
2275 handling.
2276
2277 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2278
2279 PR target/47766
2280 * config/i386/i386.md (PTR): New.
2281 (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
2282 (stack_protect_test): Likewise.
2283 (stack_protect_set_<mode>): Replace ":P" with ":PTR".
2284 (stack_tls_protect_set_<mode>): Likewise.
2285 (stack_tls_protect_test_<mode>): Likewise.
2286
2287 2011-08-01 Uros Bizjak <ubizjak@gmail.com>
2288
2289 PR target/49927
2290 * config/i386/i386.c (ix86_address_subreg_operand): New.
2291 (ix86_decompose_address): Use ix86_address_subreg_operand.
2292 (ix86_legitimate_address_p): Do not assert that subregs satisfy
2293 register_no_elim_operand in DImode.
2294
2295 2011-08-01 Ira Rosen <ira.rosen@linaro.org>
2296
2297 PR tree-optimization/49926
2298 * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
2299 in a chain doesn't have uses both inside and outside the loop.
2300
2301 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
2302
2303 * config/avr/avr.h (mcu_type_s): Add errata_skip field.
2304 * config/avr/avr-devices.c (avr_mcu_types): Use it.
2305 * config/avr/avr-mcus.def (AVR_MCU): Use it.
2306 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
2307 define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
2308 * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
2309 Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
2310 to detect if XJMP must not be skipped.
2311
2312 2011-08-02 Alan Modra <amodra@gmail.com>
2313
2314 * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
2315 Delete.
2316 * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
2317 (rs6000_emit_prologue): Don't prematurely return when
2318 TARGET_SINGLE_PIC_BASE. Don't emit eh_frame info in
2319 save_toc_in_prologue case.
2320 (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
2321 calls_alloca.
2322
2323 2011-08-01 Georg-Johann Lay <avr@gjlay.de>
2324
2325 * config/avr/avr-devices.c: Delete SVN property svn:executable.
2326 * config/avr/predicates.md: Ditto.
2327 * config/avr/driver-avr.c: Ditto.
2328 * config/avr/genopt.sh: Set SVN property svn:executable to *.
2329
2330 2011-08-01 H.J. Lu <hongjiu.lu@intel.com>
2331
2332 * calls.c (emit_library_call_value_1): Declare size only if
2333 BLOCK_REG_PADDING is defined.
2334
2335 2011-08-01 Kirill Yukhin <kirill.yukhin@intel.com>
2336
2337 PR target/49547
2338 * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
2339 (x86_64-*-*): Likewise.
2340 * config/i386/i386.opt (mlzcnt): New.
2341 * config/i386/abmintrin.h: File removed.
2342 (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
2343 * config/i386/lzcntintrin.h: ... here. New file.
2344 (__lzcnt): Rename to ...
2345 (__lzcnt32): ... this.
2346 * config/i386/bmiintrin.h (head): Update copyright year.
2347 (__lzcnt_u16): Removed.
2348 (__lzcnt_u32): Likewise.
2349 (__lzcnt_u64): Likewise.
2350 * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
2351 is defined, remove abmintrin.h.
2352 * config/i386/cpuid.h (bit_LZCNT): New.
2353 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2354 LZCNT feature.
2355 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2356 __LZCNT__ if needed.
2357 * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
2358 (ix86_option_override_internal): Handle LZCNT option.
2359 (ix86_valid_target_attribute_inner_p): Likewise.
2360 (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
2361 * config/i386/i386.h (TARGET_LZCNT): New.
2362 (CLZ_DEFINED_VALUE_AT_ZERO): Update.
2363 * config/i386/i386.md (clz<mode>2): Update insn constraint.
2364 (clz<mode>2_lzcnt): Likewise.
2365 * doc/invoke.texi: Mention -mlzcnt option.
2366 * doc/extend.texi: Likewise.
2367
2368 2011-08-01 Julian Brown <julian@codesourcery.com>
2369
2370 * configure.ac (fixed-point): Add ARM support.
2371 * configure: Regenerate.
2372 * config/arm/arm.c (arm_fixed_mode_set): New struct.
2373 (arm_set_fixed_optab_libfunc): New.
2374 (arm_set_fixed_conv_libfunc): New.
2375 (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
2376 ARM-specific names.
2377 (aapcs_libcall_value): Return sub-word-size fixed-point libcall
2378 return values in SImode.
2379 (arm_return_in_msb): Return fixed-point types in the msb.
2380 (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
2381 upwards.
2382 (arm_scalar_mode_supported_p): Support fixed-point modes.
2383 (arm_vector_mode_supported_p): Support vector fixed-point modes.
2384 * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
2385 (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
2386 (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
2387 (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
2388 * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
2389 New mode iterators.
2390 (qaddsub_suf): New mode attribute.
2391 * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
2392 vector modes.
2393 * config/arm/predicates.md (sat_shift_operator): New predicate.
2394 * config/arm/arm-fixed.md: New.
2395 * config/arm/arm.md: Include arm-fixed.md.
2396 * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
2397
2398 2011-08-01 Julian Brown <julian@codesourcery.com>
2399
2400 * calls.c (emit_library_call_value_1): Support padding for libcall
2401 arguments and return values.
2402 * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
2403 downwards in big-endian mode.
2404
2405 2011-08-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2406
2407 PR debug/49887
2408 * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
2409 * config/sol2-protos.h: Likewise.
2410 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
2411 solaris_code_end.
2412 * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
2413 * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
2414 solaris_file_end.
2415 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
2416
2417 2011-08-01 Julian Brown <julian@codesourcery.com>
2418
2419 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
2420
2421 2011-08-01 Julian Brown <julian@codesourcery.com>
2422
2423 * final.c (output_addr_const): Print fixed-point constants as
2424 decimal not hex.
2425
2426 2011-08-01 Richard Guenther <rguenther@suse.de>
2427
2428 * stor-layout.c (initialize_sizetypes): Properly sign-extend
2429 bitsiztype TYPE_MAX_VALUE.
2430
2431 2011-08-01 Julian Brown <julian@codesourcery.com>
2432
2433 * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
2434 comparison helpers.
2435
2436 2011-07-31 Richard Henderson <rth@redhat.com>
2437
2438 * config/h8300/crti.asm: Add flags to .section directive.
2439 * config/h8300/crtn.asm: Likewise.
2440
2441 2011-07-31 Richard Henderson <rth@redhat.com>
2442
2443 * stor-layout.c (initialize_sizetypes): Handle unsigned short.
2444 * tree.c (build_common_tree_nodes): Likewise.
2445
2446 2011-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
2447
2448 PR target/49880
2449 * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
2450 (divsi3_i1): Likewise.
2451
2452 2011-07-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2453
2454 PR tree-optimization/49749
2455 * tree-ssa-reassoc.c (get_rank): New forward declaration.
2456 (PHI_LOOP_BIAS): New macro.
2457 (phi_rank): New function.
2458 (loop_carried_phi): Likewise.
2459 (propagate_rank): Likewise.
2460 (get_rank): Add calls to phi_rank and propagate_rank.
2461
2462 2011-07-31 H.J. Lu <hongjiu.lu@intel.com>
2463
2464 * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
2465 of TARGET_64BIT.
2466 (PTRDIFF_TYPE): Likewise.
2467
2468 2011-07-31 Uros Bizjak <ubizjak@gmail.com>
2469
2470 PR target/49920
2471 * config/i386/i386.md (strset): Do not expand strset_singleop
2472 when %eax or $edi are fixed.
2473 (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
2474 (*strsetsi_1): Ditto.
2475 (*strsethi_1): Ditto.
2476 (*strsetqi_1): Ditto.
2477 (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
2478 (*rep_stossi): Ditto.
2479 (*rep_stosqi): Ditto.
2480 (*strlenqi_1): Ditto.
2481 (cmpstrnsi): Also fail when %ecx is fixed.
2482 (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
2483 (*cmpstrnqi_1): Ditto.
2484 (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
2485 (*strmovsi_1): Ditto.
2486 (*strmovhi_1): Ditto.
2487 (*strmovqi_1): Ditto.
2488 (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
2489 (*rep_movsi): Ditto.
2490 (*rep_movqi): Ditto.
2491
2492 2011-07-31 Mikael Pettersson <mikpe@it.uu.se>
2493
2494 PR target/47908
2495 * config/m68k/m68k.c (m68k_override_options_after_change): New function.
2496 Disable instruction scheduling for non-ColdFire targets.
2497 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2498
2499 2011-07-31 Revital Eres <revital.eres@linaro.org>
2500
2501 * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
2502 of anti-dep edge from a branch.
2503 (add_cross_iteration_register_deps): Create anti-dep edge from
2504 a branch.
2505
2506 2011-07-31 Revital Eres <revital.eres@linaro.org>
2507
2508 * modulo-sched.c: Change comment.
2509 (reset_sched_times): Fix print message.
2510 (print_partial_schedule): Add print info.
2511
2512 2011-07-31 Tom de Vries <tom@codesourcery.com>
2513
2514 PR middle-end/43513
2515 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
2516 get_object_alignment and TYPE_ALIGN.
2517
2518 2011-07-30 Tom de Vries <tom@codesourcery.com>
2519
2520 PR middle-end/43513
2521 * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
2522 (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
2523
2524 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2525
2526 * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
2527 <sys/sbd.h>.
2528 (cpu_types): New array.
2529 (cputype): New function.
2530 (host_detect_local_cpu): Only define buf, f if !__sgi__.
2531 Use scaninvent instead of /proc/cpuinfo if __sgi__.
2532 * config.host: Also use driver-native.o, mips/x-native on
2533 mips-sgi-irix*.
2534 * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
2535 (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
2536 (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
2537
2538 2011-07-29 Jakub Jelinek <jakub@redhat.com>
2539
2540 PR middle-end/49897
2541 PR middle-end/49898
2542 * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
2543 in nested parallel and outer is a gimple_reg, mark it as addressable
2544 and set its bit in task_shared_vars bitmap too.
2545
2546 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
2547
2548 * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
2549
2550 2011-07-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2551
2552 * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
2553 IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
2554 (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
2555 AMASK_LOCKPFTCHOK): Define.
2556 (host_detect_local_cpu): Remove buf, f, cpu_names.
2557 Define cpu_types, implver, amask.
2558 Use __builtin_alpha_implver, __builtin_alpha_amask to determine
2559 native CPU.
2560 * config.host: Also use driver-alpha.o, alpha/x-alpha on
2561 alpha*-dec-osf*.
2562 * config/alpha/osf5.h [__alpha__ || __alpha]
2563 (host_detect_local_cpu): Declare.
2564 (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
2565 (DRIVER_SELF_SPECS): Define.
2566
2567 2011-07-29 Uros Bizjak <ubizjak@gmail.com>
2568
2569 PR target/47715
2570 * config/i386/i386.md (*load_tp_x32): New.
2571 (*load_tp_x32_zext): Ditto.
2572 (*add_tp_x32): Ditto.
2573 (*add_tp_x32_zext): Ditto.
2574 (*load_tp_<mode>): Disable for TARGET_X32 targets.
2575 (*add_tp_<mode>): Ditto.
2576 * config/i386/i386.c (get_thread_pointer): Load thread pointer in
2577 ptr_mode and convert to Pmode if needed.
2578
2579 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
2580
2581 PR target/49687
2582 * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
2583 muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
2584 *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
2585 Add X to register footprint: Clobber r26/r27.
2586
2587 2011-07-29 Richard Guenther <rguenther@suse.de>
2588
2589 * builtins.c (fold_builtin_signbit): Build the comparison
2590 with a proper type.
2591
2592 2011-07-29 Richard Guenther <rguenther@suse.de>
2593
2594 PR tree-optimization/49893
2595 * tree-predcom.c (suitable_reference_p): Volatile references
2596 are not suitable.
2597
2598 2011-07-29 Georg-Johann Lay <avr@gjlay.de>
2599
2600 PR target/49313
2601 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
2602 (__ctzsi2): Result for 0 may be undefined.
2603 (__ctzhi2): Result for 0 may be undefined.
2604 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
2605 (__popcountsi2): Ditto. And don't clobber r26.
2606 (__popcountdi2): Ditto. And don't clobber r27.
2607 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
2608 (parityhi2): New expand.
2609 (paritysi2): New expand.
2610 (popcounthi2): New expand.
2611 (popcountsi2): New expand.
2612 (clzhi2): New expand.
2613 (clzsi2): New expand.
2614 (ctzhi2): New expand.
2615 (ctzsi2): New expand.
2616 (ffshi2): New expand.
2617 (ffssi2): New expand.
2618 (copysignsf3): New insn.
2619 (bswapsi2): New expand.
2620 (*parityhi2.libgcc): New insn.
2621 (*parityqihi2.libgcc): New insn.
2622 (*paritysihi2.libgcc): New insn.
2623 (*popcounthi2.libgcc): New insn.
2624 (*popcountsi2.libgcc): New insn.
2625 (*popcountqi2.libgcc): New insn.
2626 (*popcountqihi2.libgcc): New insn-and-split.
2627 (*clzhi2.libgcc): New insn.
2628 (*clzsihi2.libgcc): New insn.
2629 (*ctzhi2.libgcc): New insn.
2630 (*ctzsihi2.libgcc): New insn.
2631 (*ffshi2.libgcc): New insn.
2632 (*ffssihi2.libgcc): New insn.
2633 (*bswapsi2.libgcc): New insn.
2634
2635 2011-07-29 Richard Guenther <rguenther@suse.de>
2636
2637 * tree-vrp.c (get_value_range): Only set parameter default
2638 definitions to varying, leave others at undefined.
2639 (extract_range_from_binary_expr): Fix undefined handling.
2640 (vrp_visit_phi_node): Handle merged undefined state.
2641
2642 2011-07-29 Wei Guozhi <carrot@google.com>
2643
2644 PR rtl-optimization/49799
2645 * combine.c (make_compound_operation): Check if the bit field is valid
2646 before change it to bit field extraction.
2647
2648 2011-07-29 Bernd Schmidt <bernds@codesourcery.com>
2649
2650 PR rtl-optimization/49891
2651 * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
2652 newly created returnjumps.
2653
2654 2011-07-28 DJ Delorie <dj@redhat.com>
2655
2656 * expr.c (expand_expr_addr_expr_1): Detect a user request for a
2657 local frame in a naked function, and produce a suitable error for
2658 that specific case.
2659
2660 * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
2661 registers to be reloaded in HI classes when the target is HI.
2662
2663 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
2664
2665 * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
2666 bound_one, bound_two.
2667
2668 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
2669
2670 PR middle-end/48648
2671 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
2672 CLAST assignments.
2673 (translate_clast): Same.
2674 (translate_clast_assignment): New.
2675
2676 2011-07-28 Sebastian Pop <sebastian.pop@amd.com>
2677
2678 PR tree-optimization/49876
2679 * sese.c (rename_uses): Do not return false on gloog_error: set
2680 the new_expr to integer_zero_node and continue code generation.
2681 (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
2682
2683 2011-07-28 Jakub Jelinek <jakub@redhat.com>
2684
2685 PR debug/49846
2686 * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
2687 arguments also check if they aren't initialized with a MODE_INT
2688 mode of the same size.
2689
2690 2011-07-28 Aldy Hernandez <aldyh@redhat.com>
2691
2692 * expr.c (get_bit_range): Handle *MEM_REF's.
2693
2694 2011-07-28 Bernd Schmidt <bernds@codesourcery.com>
2695
2696 * rtlanal.c (tablejump_p): False for returns.
2697 * reorg.c (first_active_target_insn): New static function.
2698 (find_end_label): Set JUMP_LABEL for a new returnjump.
2699 (optimize_skip, get_jump_flags, rare_destination,
2700 mostly_true_jump, get_branch_condition,
2701 steal_delay_list_from_target, own_thread_p,
2702 fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
2703 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
2704 dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
2705 * jump.c (delete_related_insns): Likewise.
2706 (jump_to_label_p): New function.
2707 (redirect_target): New static function.
2708 (redirect_exp_1): Use it. Adjust to handle ret_rtx in JUMP_LABELS.
2709 (redirect_jump_1): Assert that the new label is nonnull.
2710 (redirect_jump): Likewise.
2711 (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
2712 * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
2713 exit block.
2714 (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE. All callers
2715 changed. Ensure that the right label is passed to redirect_jump.
2716 * function.c (emit_return_into_block,
2717 thread_prologue_and_epilogue_insns): Ensure new returnjumps have
2718 ret_rtx in their JUMP_LABEL.
2719 * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
2720 * emit-rtl.c (skip_consecutive_labels): Allow the caller to
2721 pass ret_rtx as label.
2722 * cfglayout.c (fixup_reorder_chain): Use
2723 force_nonfallthru_and_redirect rather than force_nonfallthru.
2724 (duplicate_insn_chain): Copy JUMP_LABELs for returns.
2725 * rtl.h (ANY_RETURN_P): New macro.
2726 (jump_to_label_p): Declare.
2727 * resource.c (find_dead_or_set_registers): Handle ret_rtx in
2728 JUMP_LABELs.
2729 (mark_target_live_regs): Likewise.
2730 * basic-block.h (force_nonfallthru_and_redirect): Declare.
2731 * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
2732 * config/alpha/alpha.c (alpha_tablejump_addr_vec,
2733 alpha_tablejump_best_label): Remove functions.
2734 * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
2735 alpha_tablejump_best_label): Remove declarations.
2736 * config/sh/sh.c (barrier_align, split_branches): Adjust for
2737 ret_rtx in JUMP_LABELs.
2738 * config/arm/arm.c (is_jump_table): Likewise.
2739
2740 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
2741
2742 * config/i386/predicates.md (pic_32bit_opreand): Do not define as
2743 special predicate. Remove explicit mode checks.
2744
2745 2011-07-28 Jakub Jelinek <jakub@redhat.com>
2746
2747 * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
2748 DW_AT_data_member_location containing just DW_OP_plus_uconst.
2749
2750 PR debug/49871
2751 * dwarf2out.c (size_of_die, value_format, output_die): Use
2752 DW_FORM_udata instead of DW_FORM_data[48] for
2753 dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
2754
2755 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2756
2757 * config/i386/i386.md (*tls_global_dynamic_64): Update
2758 length attribute.
2759
2760 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
2761
2762 PR target/47715
2763 * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
2764 tls_symbolic_operand check. Update code sequence for TARGET_X32.
2765 (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
2766 (tls_dynamic_gnu2_64): Ditto.
2767 (*tls_dynamic_gnu2_lea_64): Ditto.
2768 (*tls_dynamic_gnu2_call_64): Ditto.
2769 (*tls_dynamic_gnu2_combine_64): Ditto.
2770
2771 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2772
2773 * config.gcc: Set need_64bit_hwint to yes for x86 targets.
2774
2775 2011-07-28 H.J. Lu <hongjiu.lu@intel.com>
2776
2777 PR target/47364
2778 * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
2779
2780 2011-07-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2781
2782 * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
2783 before the core constraints. Adjust attributes.
2784 ("*thumb2_movdf_vfp"): Likewise.
2785
2786 2011-07-28 Kai Tietz <ktietz@redhat.com>
2787
2788 * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
2789 (simplify_truth_ops_using_ranges): Likewise.
2790 (build_assert_expr_for): Likewise.
2791 (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
2792 and handle BIT_NOT_EXPR for truth-operation.
2793
2794 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
2795
2796 PR target/49313
2797 Undo r176835 from trunk
2798 2011-07-27 Georg-Johann Lay
2799
2800 2011-07-28 Georg-Johann Lay <avr@gjlay.de>
2801
2802 PR target/49687
2803 * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
2804 Add _muluhisi3, _mulshisi3, _usmulhisi3.
2805 * config/avr/libgcc.S (__mulsi3): Rewrite.
2806 (__mulhisi3): Rewrite.
2807 (__umulhisi3): Rewrite.
2808 (__usmulhisi3): New.
2809 (__muluhisi3): New.
2810 (__mulshisi3): New.
2811 (__mulohisi3): New.
2812 (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
2813 declare.
2814 * config/avr/predicates.md (pseudo_register_operand): Rewrite.
2815 (pseudo_register_or_const_int_operand): New.
2816 (combine_pseudo_register_operand): New.
2817 (u16_operand): New.
2818 (s16_operand): New.
2819 (o16_operand): New.
2820 * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
2821 * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
2822 (any_extend, any_extend2): New code iterators.
2823 (extend_prefix): New code attribute.
2824 (mulsi3): Rewrite. Turn insn to expander.
2825 (mulhisi3): Ditto.
2826 (umulhisi3): Ditto.
2827 (usmulhisi3): New expander.
2828 (*mulsi3): New insn-and-split.
2829 (mulu<mode>si3): New insn-and-split.
2830 (muls<mode>si3): New insn-and-split.
2831 (mulohisi3): New insn-and-split.
2832 (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
2833 *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
2834 *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
2835 *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
2836 insn-and-split.
2837 (*mulsi3_call): Rewrite.
2838 (*mulhisi3_call): Rewrite.
2839 (*umulhisi3_call): Rewrite.
2840 (*usmulhisi3_call): New insn.
2841 (*muluhisi3_call): New insn.
2842 (*mulshisi3_call): New insn.
2843 (*mulohisi3_call): New insn.
2844 (extendqihi2): Use combine_pseudo_register_operand as predicate
2845 for operand 1.
2846 (extendqisi2): Ditto.
2847 (zero_extendqihi2): Ditto.
2848 (zero_extendqisi2): Ditto.
2849 (zero_extendhisi2): Ditto.
2850 (extendhisi2): Ditto. Don't early-clobber operand 0.
2851
2852 2011-07-28 Uros Bizjak <ubizjak@gmail.com>
2853
2854 * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
2855
2856 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
2857
2858 PR tree-optimization/49471
2859 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
2860 iv only when the largest type is unsigned. Do not call
2861 lang_hooks.types.type_for_size.
2862
2863 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
2864
2865 PR middle-end/45450
2866 * graphite-poly.c (apply_poly_transforms): Disable legality check
2867 after an openscop read.
2868
2869 2011-07-27 Sebastian Pop <sebastian.pop@amd.com>
2870
2871 PR middle-end/47691
2872 * graphite-clast-to-gimple.c (translate_clast_user): Update use of
2873 copy_bb_and_scalar_dependences.
2874 * sese.c (rename_uses): Do not call gcc_assert. Set gloog_error.
2875 (graphite_copy_stmts_from_block): Update call to rename_uses.
2876 (copy_bb_and_scalar_dependences): Update call to
2877 graphite_copy_stmts_from_block.
2878 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
2879
2880 2011-07-27 Georg-Johann Lay <avr@gjlay.de>
2881
2882 PR target/49313
2883 * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
2884 (__ctzsi2): Result for 0 may be undefined.
2885 (__ctzhi2): Result for 0 may be undefined.
2886 (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
2887 (__popcountsi2): Ditto. And don't clobber r26.
2888 (__popcountdi2): Ditto. And don't clobber r27.
2889 * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
2890 (parityhi2): New expand.
2891 (paritysi2): New expand.
2892 (popcounthi2): New expand.
2893 (popcountsi2): New expand.
2894 (clzhi2): New expand.
2895 (clzsi2): New expand.
2896 (ctzhi2): New expand.
2897 (ctzsi2): New expand.
2898 (ffshi2): New expand.
2899 (ffssi2): New expand.
2900 (copysignsf3): New insn.
2901 (bswapsi2): New expand.
2902 (*parityhi2.libgcc): New insn.
2903 (*parityqihi2.libgcc): New insn.
2904 (*paritysihi2.libgcc): New insn.
2905 (*popcounthi2.libgcc): New insn.
2906 (*popcountsi2.libgcc): New insn.
2907 (*popcountqi2.libgcc): New insn.
2908 (*popcountqihi2.libgcc): New insn-and-split.
2909 (*clzhi2.libgcc): New insn.
2910 (*clzsihi2.libgcc): New insn.
2911 (*ctzhi2.libgcc): New insn.
2912 (*ctzsihi2.libgcc): New insn.
2913 (*ffshi2.libgcc): New insn.
2914 (*ffssihi2.libgcc): New insn.
2915 (*bswapsi2.libgcc): New insn.
2916
2917 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
2918
2919 * config/i386/i386.c (ix86_expand_move): Do not explicitly check
2920 the mode of symbolic_opreand RTXes.
2921
2922 2011-07-27 Uros Bizjak <ubizjak@gmail.com>
2923
2924 * config/i386/predicates.md (x86_64_movabs_operand): Return false
2925 for pic_32bit_operand RTXes.
2926 * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
2927 in DImode.
2928
2929 2011-07-27 Kai Tietz <ktietz@redhat.com>
2930
2931 * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
2932 for 32-bit, too.
2933 (ix86_handle_abi_attribute): Allow function attributes
2934 ms_abi/sysv_abi in 32-bit mode, too.
2935 * doc/extend.texi: Adjust attribute documentation.
2936
2937 * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
2938 expression handling.
2939 (and_var_with_comparison_1): Likewise.
2940
2941 2011-07-27 Aldy Hernandez <aldyh@redhat.com>
2942
2943 * params.h (ALLOW_STORE_DATA_RACES): New.
2944 * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
2945 * Makefile.in (expr.o): Depend on PARAMS_H.
2946 * machmode.h (get_best_mode): Add argument.
2947 * fold-const.c (optimize_bit_field_compare): Add argument to
2948 get_best_mode.
2949 (fold_truthop): Same.
2950 * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
2951 * expr.c (emit_group_store): Same.
2952 (copy_blkmode_from_reg): Same.
2953 (write_complex_part): Same.
2954 (optimize_bitfield_assignment_op): Add argument.
2955 Add argument to get_best_mode.
2956 (get_bit_range): New.
2957 (expand_assignment): Calculate maxbits and pass it down accordingly.
2958 (store_field): New argument.
2959 (expand_expr_real_2): New argument to store_field. Include params.h.
2960 * expr.h (store_bit_field): New argument.
2961 * stor-layout.c (get_best_mode): Restrict mode expansion by taking
2962 into account maxbits.
2963 * calls.c (store_unaligned_arguments_into_pseudos): New argument
2964 to store_bit_field.
2965 * expmed.c (store_bit_field_1): New argument. Use it.
2966 (store_bit_field): Same.
2967 (store_fixed_bit_field): Same.
2968 (store_split_bit_field): Same.
2969 (extract_bit_field_1): Pass new argument to get_best_mode.
2970 (extract_bit_field): Same.
2971 * stmt.c (store_bit_field): Pass new argument to store_bit_field.
2972 * doc/invoke.texi: Document parameter allow-store-data-races.
2973
2974 2011-07-27 Jakub Jelinek <jakub@redhat.com>
2975
2976 * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
2977
2978 2011-07-27 Kai Tietz <ktietz@redhat.com>
2979
2980 * tree-vrp.c (extract_range_from_binary_expr): Remove
2981 TRUTH-binary cases and add new bitwise-cases.
2982 (extract_range_from_assignment): Likewise.
2983 (register_edge_assert_for_1): Likeiwise.
2984 (register_edge_assert_for): Likewise.
2985 (simplify_truth_ops_using_ranges): Likewise.
2986 (simplify_stmt_using_ranges): Likewise.
2987
2988 2011-07-26 H.J. Lu <hongjiu.lu@intel.com>
2989
2990 PR target/47372
2991 * config/i386/i386.c (ix86_delegitimize_address): Call
2992 simplify_gen_subreg for PIC with mode of x only if modes of
2993 x and orig_x are different.
2994
2995 2011-07-26 Jakub Jelinek <jakub@redhat.com>
2996
2997 * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
2998 to GC allocated copy of the string.
2999 (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
3000 before .debug_line, not after it.
3001
3002 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3003
3004 PR middle-end/47046
3005 * tree-chrec.h (evolution_function_is_affine_p): Recursively call
3006 evolution_function_is_affine_p on CHREC_RIGHT.
3007
3008 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3009
3010 * tree-data-ref.c (max_stmt_executions_tree): Do not call
3011 lang_hooks.types.type_for_size.
3012
3013 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3014
3015 PR middle-end/47653
3016 * graphite-scop-detection.c (graphite_can_represent_loop): Discard
3017 loops using wrapping semantics.
3018
3019 2011-07-26 Sebastian Pop <sebastian.pop@amd.com>
3020
3021 PR middle-end/48805
3022 * tree-scalar-evolution.c (instantiate_scev_r): Return
3023 chrec_dont_know for ADDR_EXPR.
3024
3025 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
3026 H.J. Lu <hongjiu.lu@intel.com>
3027
3028 PR target/47369
3029 PR target/49853
3030 * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
3031 if legitimize_tls_address returned operand in wrong mode. Allow
3032 SImode and DImode symbolic operand for PIC. Call convert_to_mode
3033 if legitimize_pic_address returned operand in wrong mode.
3034
3035 2011-07-26 Martin Jambor <mjambor@suse.cz>
3036
3037 * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
3038 return false for invariants.
3039
3040 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
3041
3042 * config/i386/i386.md (add->lea splitter): Implement using SWI
3043 mode iterator. Change operand 2 predicate to <nonmemory_operand>.
3044 (add->lea zext splitter): Change operand 2 predicate to
3045 x86_64_nonmemory_operand.
3046
3047 2011-07-26 Richard Guenther <rguenther@suse.de>
3048
3049 * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
3050 frequency makes everything hot.
3051
3052 2011-07-26 Richard Guenther <rguenther@suse.de>
3053
3054 PR tree-optimization/49840
3055 * tree-vrp.c (range_fits_type_p): Properly handle full
3056 double-int precision.
3057
3058 2011-07-26 Martin Jambor <mjambor@suse.cz>
3059
3060 PR bootstrap/49786
3061 * ipa-cp.c (update_profiling_info): Avoid overflow when updating
3062 counts.
3063 (update_specialized_profile): Likewise.
3064
3065 2011-07-26 Uros Bizjak <ubizjak@gmail.com>
3066 H.J. Lu <hongjiu.lu@intel.com>
3067
3068 PR target/47381
3069 PR target/49832
3070 PR target/49833
3071 * config/i386/i386.md (i): Change SImode attribute to "e".
3072 (g): Change SImode attribute to "rme".
3073 (di): Change SImode attribute to "nF".
3074 (general_operand): Change SImode attribute to x86_64_general_operand.
3075 (general_szext_operand): Change SImode attribute to
3076 x86_64_szext_general_operand.
3077 (immediate_operand): Change SImode attribute to
3078 x86_64_immediate_operand.
3079 (nonmemory_operand): Change SImode attribute to
3080 x86_64_nonmemory_operand.
3081 (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
3082 (*movsi_internal): Ditto. Use "e" constraint in alternative 2.
3083 (*lea_1): Use SWI48 mode iterator.
3084 (*lea_1_zext): New insn pattern.
3085 (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
3086 (*bt<mode>): Ditto.
3087 (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
3088 Update operand constraints.
3089 (addsi_1_zext): Ditto.
3090 (*add<mode>2): Ditto.
3091 (*addsi_3_zext): Ditto.
3092 (*subsi_1_zext): Ditto.
3093 (*subsi_2_zext): Ditto.
3094 (*subsi_3_zext): Ditto.
3095 (*addsi3_carry_zext): Ditto.
3096 (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
3097 (*mulsi3_1_zext): Ditto.
3098 (*andsi_1): Ditto.
3099 (*andsi_1_zext): Ditto.
3100 (*andsi_2_zext): Ditto.
3101 (*<any_or:code>si_1_zext): Ditto.
3102 (*<any_or:code>si_2_zext): Ditto.
3103 (*test<mode>_1): Use <general_operand> predicate for operand 1.
3104 (*and<mode>_2): Ditto.
3105 (mov<mode>cc): Use <general_operand> predicate for operands 1 and 2.
3106 (add->lea splitter): Check operand modes in insn constraint. Extend
3107 operands less than SImode wide to SImode.
3108 (add->lea zext splitter): Do not extend input operands to DImode.
3109 (*lea_general_1): Handle only QImode and HImode operands.
3110 (*lea_general_2): Ditto.
3111 (*lea_general_3): Ditto.
3112 (*lea_general_1_zext): Remove.
3113 (*lea_general_2_zext): Ditto.
3114 (*lea_general_3_zext): Ditto.
3115 (*lea_general_4): Check operand modes in insn constraint. Extend
3116 operands less than SImode wide to SImode.
3117 (ashift->lea splitter): Ditto.
3118 * config/i386/i386.c (ix86_print_operand_address): Print address
3119 registers with 'q' modifier on 64bit targets.
3120 * config/i386/predicates.md (pic_32bit_opreand): Define as special
3121 predicate. Reject non-SI and non-DI modes.
3122
3123 2011-07-25 Andrew Pinski <apinski@cavium.com>
3124
3125 PR tree-opt/49671
3126 * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
3127 TREE_THIS_NOTRAP into the inner most MEM_REF.
3128 Always copy TREE_THIS_VOLATILE.
3129 * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
3130 arguments are not volatile references.
3131
3132 2011-07-25 Richard Henderson <rth@redhat.com>
3133
3134 * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
3135 * final.c (final_scan_insn): Don't test for it.
3136 (rest_of_clean_state): Likewise.
3137
3138 2011-07-25 Richard Henderson <rth@redhat.com>
3139
3140 PR debug/49841
3141 * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
3142 (emit_frame_save): Likewise.
3143 (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
3144 insn onto a dummy blockage insn after the join label.
3145
3146 2011-07-25 Richard Henderson <rth@redhat.com>
3147
3148 * dwarf2cfi.c (dw_trace_info): Add ID member.
3149 (get_trace_index): Remove. Change users to use ID member.
3150 (before_next_cfi_note): New.
3151 (connect_traces): Remove unreachable traces before the main loop.
3152 Look across one trace and generate remember/restore_state if needed.
3153
3154 2011-07-25 Richard Henderson <rth@redhat.com>
3155
3156 * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
3157
3158 2011-07-25 Joern Rennecke <joern.rennecke@embecosm.com>
3159
3160 * genattr.c (write_upcase, gen_attr <enum definition writing>):
3161 Move to ...
3162 * genattr-common.c ... here.
3163 (main): Call gen_attr.
3164 * optc-gen.awk: Make generated program include insn-attr-common.h .
3165 * Makefile.in (oprions.o): Depend on insn-attr-common.h
3166
3167 2011-07-25 Anatoly Sokolov <aesok@post.ru>
3168
3169 * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3170 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
3171 * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
3172 m32c_print_operand, m32c_print_operand_address): Remove.
3173 * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
3174 Change return type to bool. Change argument type to bool.
3175 (m32c_print_operand, m32c_print_operand_address): Make static.
3176 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
3177 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3178
3179 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3180
3181 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
3182 attributes): Document mmap.
3183
3184 2011-07-25 Anatoly Sokolov <aesok@post.ru>
3185
3186 * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3187 PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
3188 * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
3189 mmix_print_operand, mmix_print_operand_address): Remove.
3190 * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
3191 Change return type to bool. Change argument type to bool.
3192 (mmix_print_operand, mmix_print_operand_address): Make static.
3193 (mmix_intval, mmix_output_condition): Change 'x' argument type
3194 to const_rtx.
3195 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
3196 TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
3197
3198 2011-07-25 Georg-Johann Lay <avr@gjlay.de>
3199
3200 PR target/39386
3201 * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
3202 shift counter for x << x and x >> x shifts.
3203
3204 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3205
3206 PR target/47124
3207 * config.gcc: Reject *-*-solaris2 configuration.
3208
3209 2011-07-25 Richard Sandiford <richard.sandiford@linaro.org>
3210
3211 PR tree-optimization/49809
3212 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
3213 gimple_get_lhs instead of gimple_assign_lhs.
3214
3215 2011-07-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3216
3217 * system.h [__cplusplus]: Wrap C function declarations in extern "C".
3218
3219 2011-07-25 Richard Guenther <rguenther@suse.de>
3220
3221 PR tree-optimization/49822
3222 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
3223 more. Make sure to preserve stmts with side-effects. Properly
3224 handle virtual defs, follow a longer def chain.
3225
3226 2011-07-22 Romain Geissler <romain.geissler@gmail.com>
3227
3228 PR plugins/45348
3229 PR plugins/48425
3230 PR plugins/46577
3231 * Makefile.in: Do not flatten c-family directory when installing
3232 plugin headers.
3233
3234 2011-07-25 Eric Botcazou <ebotcazou@adacore.com>
3235
3236 * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
3237 original nodes if we are dealing with virtual clones.
3238
3239 2011-07-25 Bernd Schmidt <bernds@codesourcery.com>
3240
3241 * common/config/c6x/c6x-common.c: New file.
3242
3243 2011-07-25 Roman Zhuykov <zhroma@ispras.ru>
3244
3245 * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
3246
3247 2011-07-25 Richard Guenther <rguenther@suse.de>
3248
3249 PR tree-optimization/49715
3250 * tree-vrp.c: Include expr.h and optabs.h.
3251 (range_fits_type_): New function.
3252 (simplify_float_conversion_using_ranges): Likewise.
3253 (simplify_stmt_using_ranges): Call it.
3254 * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
3255 * optabs.c (can_float_p): Export.
3256 * optabs.h (can_float_p): Declare.
3257
3258 2011-07-25 Richard Guenther <rguenther@suse.de>
3259
3260 * tree-vrp.c (num_vr_values, values_propagated): New global vars.
3261 (get_value_range): For out-of-range SSA names or names created
3262 after propagation return a read-only varying range.
3263 (dump_all_value_ranges): Adjust.
3264 (vrp_initialize): Likewise.
3265 (vrp_finalize): Likewise.
3266
3267 2011-07-24 Richard Henderson <rth@redhat.com>
3268
3269 PR debug/49831
3270 * dwarf2cfi.c (connect_traces): Allow unvisited traces. Skip
3271 them entirely.
3272
3273 2011-07-24 Richard Henderson <rth@redhat.com>
3274
3275 PR debug/49825
3276 * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
3277 (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
3278
3279 2011-07-24 Richard Henderson <rth@redhat.com>
3280
3281 PR debug/49827
3282 * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
3283
3284 2011-07-24 Richard Henderson <rth@redhat.com>
3285
3286 * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
3287 Zero args_size for abnormal edges. Adjust all callers.
3288
3289 2011-07-24 Richard Henderson <rth@redhat.com>
3290
3291 PR debug/49825
3292 * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
3293
3294 2011-07-24 H.J. Lu <hongjiu.lu@intel.com>
3295
3296 PR bootstrap/49835
3297 * collect2.c (demangle_flag): Removed.
3298
3299 2011-07-24 Sandra Loosemore <sandra@codesourcery.com>
3300
3301 * configure.ac (demangler_in_ld): Default to yes.
3302 * configure: Regenerated.
3303 * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
3304 mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
3305 --no-demangle options straight through to ld. When
3306 HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
3307 way that has the intended effect on Windows.
3308
3309 2011-07-23 Richard Henderson <rth@redhat.com>
3310
3311 * dwarf2cfi.c: Include basic-block.h.
3312 (dw_label_info): Remove.
3313 (trace_work_list, trace_index): New.
3314 (remember_row, emit_cfa_remember): Remove.
3315 (dw_trace_info_hash, dw_trace_info_eq): New.
3316 (get_trace_index, get_trace_info): New.
3317 (save_point_p): New.
3318 (free_cfi_row): Remove.
3319 (add_cfi): Do not emit DW_CFA_remember_state.
3320 (cfa_row_equal_p): New.
3321 (barrier_args_size): Remove.
3322 (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
3323 (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
3324 (maybe_record_trace_start, create_trace_edges, scan_trace): New.
3325 (dwarf2out_cfi_begin_epilogue): Remove.
3326 (dwarf2out_frame_debug_restore_state): Remove.
3327 (connect_traces, create_pseudo_cfg): New.
3328 (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
3329 * Makefile.in (dwarf2cfi.o): Update.
3330
3331 2011-07-23 Richard Henderson <rth@redhat.com>
3332
3333 * dwarf2cfi.c (dw_trace_info): New.
3334 (dw_label_info): New.
3335 (cie_return_save): New.
3336 (cur_trace): New.
3337 (queued_args_size): Rename from args_size. Update all users.
3338 (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
3339 (def_cfa_1): Use cur_trace instead of cfa_*.
3340 (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
3341 (clobbers_queued_reg_save, reg_saved_in): Likewise.
3342 (dwarf2out_frame_debug_expr): Likewise.
3343 (create_cie_data): Split out from ...
3344 (execute_dwarf2_frame): ... here. Initialize cur_trace.
3345
3346 2011-07-23 Richard Henderson <rth@redhat.com>
3347
3348 * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
3349 Update all users to match.
3350 (execute_dwarf2_frame): Free reg_saved_in_data.
3351
3352 2011-07-23 Richard Henderson <rth@redhat.com>
3353
3354 * dwarf2cfi.c (queued_reg_save): Reorder for packing. Don't GTY.
3355 (queued_reg_saves): Don't GTY. Change to a VEC.
3356 (queue_reg_save): Update to match.
3357 (dwarf2out_flush_queued_reg_saves): Likewise.
3358 (clobbers_queued_reg_save): Likewise.
3359 (reg_saved_in): Likewise.
3360 (execute_dwarf2_frame): Free queued_reg_saves.
3361
3362 2011-07-23 Richard Henderson <rth@redhat.com>
3363
3364 * dwarf2cfi.c (dw_cfi_row_ref): Remove. Update all users.
3365
3366 2011-07-23 Richard Henderson <rth@redhat.com>
3367
3368 * dwarf2cfi.c (add_cfi_args_size): Split out from...
3369 (dwarf2out_args_size): ... here.
3370 (add_cfi_restore): Split out from ...
3371 (dwarf2out_frame_debug_cfa_restore): ... here.
3372 (def_cfa_0): Split out from ...
3373 (def_cfa_1): ... here.
3374 (cfi_oprnd_equal_p, cfi_equal_p): New.
3375 (change_cfi_row): New.
3376 (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
3377 (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
3378 (output_cfis): Remove.
3379 * dwarf2out.c (output_fde): Simplify output_cfi loop.
3380 (dwarf2out_switch_text_section): Don't call output_cfis.
3381 (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
3382 * dwarf2out.h: Update decls.
3383 (enum dw_val_class): Add dw_val_class_none.
3384
3385 2011-07-23 Richard Henderson <rth@redhat.com>
3386
3387 * dwarf2cfi.c (update_row_reg_save): New.
3388 (dwarf2out_frame_debug_cfa_expression): Use it.
3389 (dwarf2out_frame_debug_cfa_restore): Likewise.
3390 (reg_save): Likewise. Do not emit DW_CFA_same_value.
3391
3392 2011-07-23 Richard Henderson <rth@redhat.com>
3393
3394 * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn. Update all users.
3395
3396 2011-07-23 Richard Henderson <rth@redhat.com>
3397
3398 * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
3399 (cie_cfi_row): New.
3400 (new_cfi_row, copy_cfi_row, free_cfi_row): New.
3401 (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
3402 (cur_row, remember_row): New.
3403 (def_cfa_1): Use cur_row instead of the old_* variables.
3404 (dwarf2out_frame_debug_restore_state): Similarly.
3405 (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
3406 (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
3407 (dwarf2out_frame_debug_adjust_cfa): Likewise.
3408 (dwarf2out_frame_debug_cfa_offset): Likewise.
3409 (dwarf2out_frame_debug_expr): Likewise.
3410 (execute_dwarf2_frame): Set up cur_row.
3411 * dwarf2out.h (struct cfa_loc): Mark for GTY.
3412
3413 2011-07-23 Richard Henderson <rth@redhat.com>
3414
3415 * basic-block.h (EDGE_PRESERVE): New.
3416 (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
3417 * bb-reorder.c: Include except.h.
3418 (fix_up_crossing_landing_pad): New.
3419 (find_rarely_executed_basic_blocks_and_crossing_edges): Place
3420 landing pads in the right partition. Duplicate as necessary.
3421 (partition_hot_cold_basic_blocks): Fix up DF info after
3422 duplicating landing pads.
3423 * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
3424 * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
3425 is set properly. Validate that EH edges are not CROSSING.
3426 * except.c (expand_dw2_landing_pad_for_region): Split out from ...
3427 (dw2_build_landing_pads): ... here.
3428 (convert_to_eh_region_ranges): Remove code to fixup crossing
3429 landing pads.
3430 * except.h (expand_dw2_landing_pad_for_region): Declare.
3431 * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
3432
3433 2011-07-23 Richard Earnshaw <rearnsha@arm.com>
3434
3435 PR target/49816
3436 * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
3437
3438 2011-07-22 Jason Merrill <jason@redhat.com>
3439
3440 * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
3441
3442 2011-07-22 Richard Henderson <rth@redhat.com>
3443
3444 * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
3445
3446 2011-07-22 Richard Henderson <rth@redhat.com>
3447
3448 * jump.c (maybe_propagate_label_ref): Split out of...
3449 (mark_all_labels): ... here. Do not attempt label_ref
3450 propagation while in cfglayout mode.
3451
3452 2011-07-22 Jakub Jelinek <jakub@redhat.com>
3453
3454 * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
3455 (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
3456 (dwarf_attr_name): Handle DW_AT_GNU_macros.
3457 (dwarf2out_define): If the vector is empty and
3458 lineno is 0, emit a dummy entry first.
3459 (dwarf2out_undef): Likewise. Remove redundant semicolon.
3460 (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
3461 optimize_macinfo_range): New functions.
3462 (output_macinfo): Use them. If !dwarf_strict and .debug_str is
3463 mergeable, optimize longer strings using
3464 DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
3465 optimize longer sequences of define/undef ops from headers
3466 using DW_MACRO_GNU_transparent_include. For !dwarf_strict
3467 emit a section headers.
3468 (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
3469 and macinfo_section_label to DEBUG_MACRO_SECTION
3470 resp. DEBUG_MACRO_SECTION_LABEL.
3471 (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
3472 instead of DW_AT_macro_info.
3473
3474 PR other/32998
3475 * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
3476 options.
3477 * dwarf2out.c: Include opts.h.
3478 (dchar_p): New typedef. Define heap VEC for it.
3479 (producer_string): New variable.
3480 (gen_producer_string): New function.
3481 (gen_compile_unit_die): Use it.
3482 (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
3483 * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
3484 * doc/invoke.texi: Document -grecord-gcc-switches and
3485 -gno-record-gcc-switches, add a -grecord-gcc-switches reference
3486 to -frecord-gcc-switches description.
3487
3488 2011-07-22 Jason Merrill <jason@redhat.com>
3489
3490 PR c++/30112
3491 * c-decl.c (c_linkage_bindings): Define.
3492
3493 2011-07-22 Eric Botcazou <ebotcazou@adacore.com>
3494
3495 PR debug/49815
3496 * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
3497
3498 2011-07-22 H.J. Lu <hongjiu.lu@intel.com>
3499
3500 * config/i386/i386.c (ix86_option_override_internal): Disallow
3501 MS ABI in x32 mode.
3502 (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
3503 only for TARGET_LP64.
3504 (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
3505
3506 2011-07-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3507
3508 * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
3509 avoid warnings when GCC is built with a C++ compiler.
3510
3511 2011-07-22 Martin Jambor <mjambor@suse.cz>
3512
3513 PR lto/49796
3514 * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
3515 if decl node is in another partition, call cgraph_get_node only once.
3516
3517 2011-07-22 Uros Bizjak <ubizjak@gmail.com>
3518
3519 * config.gcc (x86_64-*-linux*): Set
3520 default_gnu_indirect_function to yes.
3521
3522 2011-07-22 Richard Guenther <rguenther@suse.de>
3523
3524 PR tree-optimization/45819
3525 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
3526 preserve volatile and notrap flags.
3527
3528 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3529 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3530
3531 PR bootstrap/49794
3532 * configure.ac: Test AM_ICONV with CXX.
3533 * configure: Regenerate.
3534 * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
3535
3536 2011-07-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3537
3538 PR bootstrap/49797
3539 * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
3540 (set_cloog_options): Use it.
3541
3542 2011-07-22 Jakub Jelinek <jakub@redhat.com>
3543
3544 PR c++/49756
3545 * gcc.c (main): Call stack_limit_increase (64MB).
3546 * toplev.c (toplev_main): Likewise.
3547
3548 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
3549
3550 * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
3551 instead of force_reg.
3552
3553 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
3554
3555 * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
3556 needed and use force_reg after convert.
3557 (ix86_expand_call): Likewise.
3558 (ix86_expand_special_args_builtin): Likewise.
3559 (ix86_expand_builtin): Likewise.
3560
3561 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3562
3563 PR middle-end/47654
3564 PR middle-end/49649
3565 * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
3566 in parameter. Initialize v1 and v2 based on the values returned
3567 by clast_name_to_lb_ub.
3568 (type_for_clast_red): Pass v1 and v2 in parameter, and set their
3569 values.
3570 (type_for_clast_bin): Same.
3571 (type_for_clast_expr): Same.
3572 (type_for_clast_eq): Update calls to type_for_clast_expr.
3573 (type_for_clast_for): Same.
3574 (build_iv_mapping): Same.
3575 * graphite-ppl.h (value_min): New.
3576
3577 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3578
3579 * graphite-clast-to-gimple.c (type_for_interval): Generate signed
3580 types whenever possible.
3581
3582 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3583
3584 * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
3585 and ub fields.
3586 (new_clast_name_index): Add lb and ub parameters.
3587 (free_clast_name_index): New.
3588 (clast_name_to_lb_ub): New.
3589 (save_clast_name_index): Add lb and ub parameters.
3590 (compute_bounds_for_param): New.
3591 (type_for_level): Removed.
3592 (type_for_clast_for): Removed level parameter. Do not call
3593 type_for_level.
3594 (graphite_create_new_loop): Store the lb and ub for the clast_name
3595 of the iterator of the loop that has been generated.
3596 (graphite_create_new_loop_guard): Remove parameter level.
3597 (create_params_index): Store the lb and ub of each parameter.
3598 (gloog): Use free_clast_name_index. Pass to create_params_index
3599 the current scop.
3600
3601 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3602
3603 * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
3604 (max_precision_type): Inline max_signed_precision_type.
3605 (type_for_clast_red): Use max_precision_type.
3606 (type_for_clast_bin): Same.
3607 (type_for_clast_for): Same.
3608
3609 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3610
3611 * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
3612 type_for_interval.
3613 (gcc_type_for_value): Renamed type_for_value.
3614 (gcc_type_for_clast_term): Renamed type_for_clast_term.
3615 (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
3616 (gcc_type_for_clast_red): Renamed type_for_clast_red.
3617 (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
3618 (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
3619 (graphite_translate_clast_equation): Update calls.
3620 (compute_type_for_level): Renamed type_for_level.
3621 (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
3622 (build_iv_mapping): Update calls.
3623 (graphite_create_new_loop_guard): Same.
3624
3625 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3626
3627 * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
3628 comment.
3629
3630 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3631
3632 * graphite-clast-to-gimple.c (struct ivs_params): New.
3633 (clast_name_to_gcc): Use ivs_params to pass around parameters.
3634 (clast_to_gcc_expression): Same.
3635 (clast_to_gcc_expression_red): Same.
3636 (gcc_type_for_clast_term): Same.
3637 (gcc_type_for_clast_expr): Same.
3638 (gcc_type_for_clast_red): Same.
3639 (gcc_type_for_clast_bin): Same.
3640 (gcc_type_for_clast_eq): Same.
3641 (graphite_translate_clast_equation): Same.
3642 (graphite_create_guard_cond_expr): Same.
3643 (graphite_create_new_guard): Same.
3644 (graphite_create_new_loop): Same.
3645 (build_iv_mapping): Same.
3646 (translate_clast_user): Same.
3647 (graphite_create_new_loop_guard): Same.
3648 (translate_clast): Same.
3649 (translate_clast_for_loop): Same.
3650 (translate_clast_for): Same.
3651 (translate_clast_guard): Same.
3652 (initialize_cloog_names): Fix typo.
3653 (gloog): Initialize an ivs_params struct, pass it to translate_clast.
3654
3655 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3656
3657 * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
3658 (new_clast_name_index): Add level parameter.
3659 (clast_name_to_level): New.
3660 (save_clast_name_index): Add level parameter.
3661 (newivs_to_depth_to_newiv): Removed.
3662 (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
3663 (graphite_create_new_loop): Add level parameter. Pass level to
3664 save_clast_name_index.
3665 (translate_clast_for_loop): Pass level to graphite_create_new_loop.
3666 (create_params_index): Pass level to save_clast_name_index.
3667
3668 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3669
3670 * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
3671 recompute type, lb, and ub. Get them from...
3672 (graphite_create_new_loop_guard): ...here. Pass in parameter
3673 pointers to type, lb, and ub.
3674 (translate_clast_for_loop): Update function calls.
3675 (translate_clast_for): Same.
3676
3677 2011-07-21 Sebastian Pop <sebastian.pop@amd.com>
3678
3679 * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
3680 psct_dynamic_dim.
3681 (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
3682 (gcc_type_for_iv_of_clast_loop): Update use of level.
3683 (gloog): Start counting nesting level from 0.
3684 * graphite-clast-to-gimple.h (get_scattering_level): Removed.
3685 * graphite-dependences.c (graphite_carried_dependence_level_k): Call
3686 psct_dynamic_dim on level.
3687
3688 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
3689
3690 * config/i386/i386.c (ix86_legitimize_address): Convert to
3691 Pmode if needed.
3692
3693 2011-07-21 H.J. Lu <hongjiu.lu@intel.com>
3694
3695 * config/i386/i386.c (function_value_64): Always return pointers
3696 in Pmode.
3697 (ix86_promote_function_mode): New.
3698 (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
3699
3700 2011-07-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3701
3702 PR tree-optimization/49749
3703 * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
3704 remove no-longer-used maxrank variable.
3705
3706 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
3707
3708 * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
3709
3710 2011-07-21 Jason Merrill <jason@redhat.com>
3711
3712 * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
3713 * recog.h (struct insn_data_d): Check it instead of
3714 HAVE_DESIGNATED_INITIALIZERS.
3715 * genoutput.c (output_insn_data): Likewise.
3716
3717 2011-07-21 Richard Guenther <rguenther@suse.de>
3718
3719 PR tree-optimization/49770
3720 * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
3721 valueized any operand. Renamed from ...
3722 (valueize_refs): ... this. New wrapper around valueize_refs_1.
3723 (valueize_shared_reference_ops_from_ref): Return whether we
3724 valueized any operand.
3725 (vn_reference_lookup): Only when we valueized any operand
3726 use the valueized reference for alias analysis. Do not preserve
3727 the original reference tree in this case.
3728
3729 2011-07-21 Uros Bizjak <ubizjak@gmail.com>
3730
3731 * config/i386/i386.c (ix86_decompose_address): Reject all but
3732 register operands and subregs of DImode hard registers in index.
3733
3734 2011-07-21 Kai Tietz <ktietz@redhat.com>
3735
3736 * fold-const.c (fold_unary_loc): Preserve indirect
3737 comparison cast to none-boolean type.
3738 * tree-ssa.c (useless_type_conversion_p): Preserve cast
3739 from/to boolean-type.
3740 * gimplify.c (gimple_boolify): Handle boolification of comparisons.
3741 (gimplify_expr): Boolifiy non aggregate-typed comparisons.
3742 * tree-cfg.c (verify_gimple_comparison): Check result
3743 type of comparison expression.
3744 * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
3745 of condition result and disallow type-cast sinking into comparison.
3746
3747 2011-07-21 Richard Guenther <rguenther@suse.de>
3748
3749 * tree-ssa-forwprop.c (combine_conversions): Return whether
3750 we have to run cfg-cleanup. Properly remove dead stmts.
3751 (ssa_forward_propagate_and_combine): Adjust.
3752
3753 2011-07-21 Richard Sandiford <richard.sandiford@linaro.org>
3754
3755 * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
3756
3757 2011-07-21 Kai Tietz <ktietz@redhat.com>
3758
3759 * tree-ssa-propagate.c (substitute_and_fold): Use
3760 do_dce flag to deside, if BB's statements are scanned
3761 in last to first, or first to last order.
3762
3763 2011-07-21 Georg-Johann Lay <avr@gjlay.de>
3764
3765 * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
3766
3767 2011-07-20 H.J. Lu <hongjiu.lu@intel.com>
3768 Uros Bizjak <ubizjak@gmail.com>
3769 Richard Henderson <rth@redhat.com>
3770
3771 * config/i386/constraints.md (w): New.
3772
3773 * config/i386/i386.c (ix86_output_addr_vec_elt): Check
3774 TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
3775
3776 * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
3777 instead of TARGET_64BIT.
3778
3779 * config/i386/i386.md (indirect_jump): Replace
3780 nonimmediate_operand with indirect_branch_operand.
3781 (*indirect_jump): Likewise. Replace constraint "m" with "w".
3782 (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
3783 Convert operand 0 to Pmode for x32 if not PIC.
3784 (*tablejump_1): Replace nonimmediate_operand with
3785 indirect_branch_operand. Replace constraint "m" with "w".
3786 (*call_vzeroupper): Replace constraint "m" with "w".
3787 (*call): Likewise.
3788 (*call_rex64_ms_sysv_vzeroupper): Likewise.
3789 (*call_rex64_ms_sysv): Likewise.
3790 (*call_value_vzeroupper): Likewise.
3791 (*call_value): Likewise.
3792 (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
3793 (*call_value_rex64_ms_sysv): Likewise.
3794 (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
3795
3796 * config/i386/predicates.md (indirect_branch_operand): New.
3797 (call_insn_operand): Support x32.
3798
3799 2011-07-20 Michael Eager <eager@eagercon.com>
3800
3801 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
3802
3803 2011-07-20 Richard Henderson <rth@redhat.com>
3804
3805 * cfg.c (dump_bb_info): Dump basic_block->flags.
3806 * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
3807
3808 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
3809
3810 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
3811 of DImode hard registers in index.
3812 (ix86_legitimate_address_p): Allow subregs of base and index to span
3813 more than a word. Assert that subregs of base and index satisfy
3814 register_no_elim_operand predicates. Reject addresses where
3815 base and index have different modes.
3816
3817 2011-07-20 Robert Millan <rmh@gnu.org>
3818
3819 * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
3820
3821 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3822
3823 * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
3824 removing now-unnecessary assignment.
3825
3826 2011-07-20 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3827
3828 * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
3829 memory address space to the type's address space.
3830
3831 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
3832
3833 PR target/36467
3834 PR target/49687
3835 * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
3836 and expand appropriately if there is a CONST_INT in operand2.
3837 (usmulqihi3): New insn.
3838 (*sumulqihi3): New insn.
3839 (*osmulqihi3): New insn.
3840 (*oumulqihi3): New insn.
3841 (*muluqihi3.uconst): New insn_and_split.
3842 (*muluqihi3.sconst): New insn_and_split.
3843 (*mulsqihi3.sconst): New insn_and_split.
3844 (*mulsqihi3.uconst): New insn_and_split.
3845 (*mulsqihi3.oconst): New insn_and_split.
3846 (*ashifthi3.signx.const): New insn_and_split.
3847 (*ashifthi3.signx.const7): New insn_and_split.
3848 (*ashifthi3.zerox.const): New insn_and_split.
3849 (mulsqihi3): New insn.
3850 (muluqihi3): New insn.
3851 (muloqihi3): New insn.
3852 * config/avr/predicates.md (const_2_to_7_operand): New.
3853 (const_2_to_6_operand): New.
3854 (u8_operand): New.
3855 (s8_operand): New.
3856 (o8_operand): New.
3857 (s9_operand): New.
3858 (register_or_s9_operand): New.
3859
3860 2011-07-20 Kai Tietz <ktietz@redhat.com>
3861
3862 * builtins.c (fold_builtin_expect): See through the cast
3863 from truthvalue_type_node to long.
3864
3865 2011-07-20 Michael Meissner <meissner@linux.vnet.ibm.com>
3866
3867 * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
3868 where we can use them from the standard and altivec instruction
3869 sets, instead of always using the 3 operand VSX forms that require
3870 the destination to overlap one of the inputs.
3871 (vsx_fms*): Ditto.
3872 (vsx_fnma*): Ditto.
3873 (vsx_fnms*): Ditto.
3874
3875 * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
3876 for DF types.
3877 (fmsdf4_fpr): Ditto.
3878 (nfmadf4_fpr): Ditto.
3879 (nfmsdf4_fpr): Ditto.
3880
3881 2011-07-20 Sandra Loosemore <sandra@codesourcery.com>
3882
3883 * genrecog.c (make_insn_sequence): Correct position numbering
3884 when filtering out match_scratch and match_dup.
3885
3886 2011-07-20 Richard Guenther <rguenther@suse.de>
3887
3888 * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
3889 against already removed statements.
3890 (forward_propagate_into_comparison): Remove dead defining stmts.
3891 (forward_propagate_into_gimple_cond): Likewise.
3892 (forward_propagate_into_cond): Simplify.
3893 (ssa_forward_propagate_and_combine): Handle changed cfg from
3894 forward_propagate_into_comparison.
3895 * tree-ssa-phiopt.c (conditional_replacement): Use proper
3896 locations for newly built statements.
3897
3898 2011-07-20 Georg-Johann Lay <avr@gjlay.de>
3899
3900 * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
3901
3902 2011-07-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3903
3904 * config/s390/s390.c (s390_class_max_nregs): Fix return type.
3905 * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
3906
3907 2011-07-20 Richard Guenther <rguenther@suse.de>
3908
3909 PR middle-end/18908
3910 * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
3911 * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
3912 ADDR_EXPR folding. Canonicalize X ^ ~0 as ~X.
3913
3914 2011-07-20 Vladimir Makarov <vmakarov@redhat.com>
3915
3916 * config/frv/frv.c (frv_register_move_cost): Define explicitly
3917 costs for subclasses of GR_REGS.
3918
3919 2011-07-20 Uros Bizjak <ubizjak@gmail.com>
3920
3921 PR target/49780
3922 * config/i386/predicates.md (no_seg_addres_operand): No more special.
3923 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
3924 of DImode hard registers in base.
3925 (ix86_legitimate_address_p): Allow SImode and DImode base and index
3926 registers.
3927
3928 2011-07-20 Richard Guenther <rguenther@suse.de>
3929
3930 * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
3931 (unify_nodes): Deal with that.
3932 (solve_graph): Likewise.
3933
3934 2011-07-20 Chung-Lin Tang <cltang@codesourcery.com>
3935
3936 * config/arm/arm.c (arm_canonicalize_comparison): Add case to
3937 canonicalize left operand from ZERO_EXTEND to AND.
3938
3939 2011-07-20 Anatoly Sokolov <aesok@post.ru>
3940
3941 * target.def (class_max_nregs): New hook.
3942 * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
3943 * doc/tm.texi: Regenerate.
3944 * targhooks.c (default_class_max_nregs): New function.
3945 * targhooks.h (default_class_max_nregs): Declare.
3946 * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
3947 x_ira_reg_class_min_nregs arrays to unsigned char.
3948 * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
3949 hook instead of CLASS_MAX_NREGS macro.
3950 * reginfo.c (restore_register_info): Ditto.
3951 * ira-conflicts.c (process_regs_for_copy): Use
3952 ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
3953 Change type rclass and aclass vars to reg_class_t.
3954 * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
3955 array instead of CLASS_MAX_NREGS macro. Change type rclass var to
3956 reg_class_t.
3957 * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
3958 Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
3959
3960 * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
3961 * config/i386/i386.c (ix86_class_max_nregs): New function.
3962 (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
3963 instead of CLASS_MAX_NREGS macro.
3964 (TARGET_CLASS_MAX_NREGS): Define.
3965 * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
3966 * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
3967 * config/avr/avr.c (class_max_nregs): Remove function.
3968 * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
3969 * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
3970 * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
3971 * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
3972 * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
3973 * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
3974 * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
3975 * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
3976 * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
3977 * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
3978 * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
3979 * config/score/score.h (CLASS_MAX_NREGS): Remove.
3980 * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
3981 * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
3982 * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
3983
3984 2011-07-19 Eric Botcazou <ebotcazou@adacore.com>
3985
3986 * cif-code.def (OVERWRITABLE): Fix typo and move around.
3987 (TARGET_OPTIMIZATION_MISMATCH): Delete.
3988 (EH_PERSONALITY): Fix typo.
3989 (NON_CALL_EXCEPTIONS): Fix message.
3990 (OPTIMIZATION_MISMATCH): Adjust message.
3991 * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
3992
3993 2011-07-19 Ian Lance Taylor <iant@google.com>
3994
3995 * doc/install.texi (Configuration): Document
3996 --enable-build-poststage1-with-cxx.
3997
3998 2011-07-19 Robert Millan <rmh@gnu.org>
3999
4000 * config/mips/gnu-user.h: Copy from linux.h. Update comments.
4001 (GLIBC_DYNAMIC_LINKER): Remove.
4002
4003 * config/mips/gnu-user64.h: Copy from linux64.h. Update comments.
4004 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
4005 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
4006 (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
4007 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
4008 GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
4009
4010 * config/mips/linux.h: Remove everything except for ...
4011 (GLIBC_DYNAMIC_LINKER): ... this macro.
4012
4013 * config/mips/linux64.h: Remove everything except for ...
4014 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
4015 (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
4016 (BIONIC_DYNAMIC_LINKERN32): ... these macros.
4017 (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
4018 (GNU_USER_LINK_EMULATIONN32): New macros.
4019
4020 * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
4021 Use the new headers.
4022
4023 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4024
4025 * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
4026 Add offset_known_p and size_known_p fields.
4027 (MEM_OFFSET_KNOWN_P): Update accordingly.
4028 (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
4029 * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
4030 (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
4031 (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
4032 (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
4033 (init_emit_regs): Likewise.
4034
4035 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4036
4037 * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
4038 (MEM_OFFSET): Change from returning an rtx to returning a
4039 HOST_WIDE_INT.
4040 * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
4041 (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
4042 * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
4043 (clear_mem_offset): Declare.
4044 * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
4045 MEM_OFFSET_KNOWN_P to test whether the offset is known, and
4046 MEM_OFFSET to get a HOST_WIDE_INT offset.
4047 (nonoverlapping_memrefs_p): Likewise. Adjust calls to...
4048 (adjust_offset_for_component_ref): Take a bool "known_p"
4049 parameter and a HOST_WIDE_INT "offset" parameter.
4050 * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
4051 Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
4052 than an rtx. Use clear_mem_offset to clear the offset.
4053 * cfgcleanup.c (merge_memattrs): Likewise.
4054 * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
4055 * function.c (assign_parm_find_stack_rtl): Likewise.
4056 (assign_parm_setup_stack): Likewise.
4057 * print-rtl.c (print_rtx): Likewise.
4058 * reload.c (find_reloads_subreg_address): Likewise.
4059 * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
4060 * var-tracking.c (INT_MEM_OFFSET): Likewise.
4061 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
4062 (get_mem_align_offset): Likewise.
4063 (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
4064 (clear_mem_offset): New function.
4065 * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
4066 offset rather than an rtx. Assume both the expressio and offset
4067 are available.
4068 (r10k_needs_protection_p_1): Update accordingly, checking the
4069 expression and offset availability here instead.
4070
4071 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4072
4073 * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
4074 (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
4075 * rtl.h (MEM_SIZE_KNOWN_P): New macro.
4076 (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
4077 * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
4078 (clear_mem_size): Declare.
4079 * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
4080 (clear_mem_size): New function.
4081 * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
4082 MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
4083 to get a HOST_WIDE_INT size. Adjust calls to set_mem_size,
4084 passing a HOST_WIDE_INT rather than an rtx. Use clear_mem_size
4085 to clear the size.
4086 (nonoverlapping_memrefs_p): Likewise.
4087 * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
4088 (expand_builtin_init_trampoline): Likewise.
4089 * calls.c (compute_argument_addresses): Likewise.
4090 * cfgcleanup.c (merge_memattrs): Likewise.
4091 * dce.c (find_call_stack_args): Likewise.
4092 * dse.c (record_store, scan_insn): Likewise.
4093 * dwarf2out.c (dw_sra_loc_expr): Likewise.
4094 * expr.c (emit_block_move_hints): Likewise.
4095 * function.c (assign_parm_find_stack_rtl): Likewise.
4096 * print-rtl.c (print_rtx): Likewise.
4097 * reload.c (find_reloads_subreg_address): Likewise.
4098 * rtlanal.c (may_trap_p_1): Likewise.
4099 * var-tracking.c (track_expr_p): Likewise.
4100 * varasm.c (assemble_trampoline_template): Likewise.
4101 * config/arm/arm.c (arm_print_operand): Likewise.
4102 * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
4103 * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
4104 (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
4105 (expand_constant_setmem_prologue): Likewise.
4106 * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
4107 * config/rs6000/rs6000.c (expand_block_move): Likewise.
4108 (adjacent_mem_locations): Likewise.
4109 * config/s390/s390.c (s390_expand_setmem): Likewise.
4110 (s390_expand_insv): Likewise.
4111 * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
4112 (*extendqi<mode>2_short_displ): Likewise.
4113 * config/sh/sh.c (expand_block_move): Likewise.
4114 * config/sh/sh.md (extv, extzv): Likewise.
4115
4116 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4117
4118 * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
4119 (mem_attrs_htab_eq): ...here.
4120 (find_mem_attrs): Replace with...
4121 (set_mem_attrs): ...this function. Take a mem_attrs structure
4122 rather than individual fields.
4123 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
4124 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
4125 (set_mem_size, change_address, adjust_address_1, offset_address)
4126 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
4127 Update accordingly.
4128
4129 2011-07-19 Richard Sandiford <rdsandiford@googlemail.com>
4130
4131 * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
4132 (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
4133 Provide a dummy definition of MEM_ADDR_SPACE for generators.
4134 (target_rtl): Add x_mode_mem_attrs.
4135 (mode_mem_attrs): New macro.
4136 (get_mem_attrs): New function.
4137 * emit-rtl.c (get_mem_attrs): Rename to...
4138 (find_mem_attrs): ...this.
4139 (set_mem_attributes_minus_bitpos, set_mem_alias_set)
4140 (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
4141 (set_mem_size, change_address, adjust_address_1, offset_address)
4142 (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
4143 Update accordingly.
4144 (init_emit_regs): Initialize mode_mem_attrs.
4145
4146 2011-07-19 Richard Guenther <rguenther@suse.de>
4147
4148 * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
4149 TRUTH_*_EXPR handling.
4150 * tree-ssa-operands.c (get_expr_operands): Likewise.
4151 * tree-ssa-pre.c (fully_constant_expression): Likewise.
4152 * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
4153 Likewise.
4154 (is_and_or_or): Likewise.
4155 (is_norm_cond_subset_of): Likewise.
4156
4157 2011-07-19 Richard Guenther <rguenther@suse.de>
4158
4159 * tree.h (fold_build_pointer_plus_loc): New helper function.
4160 (fold_build_pointer_plus_hwi_loc): Likewise.
4161 (fold_build_pointer_plus): Define.
4162 (fold_build_pointer_plus_hwi): Likewise.
4163 * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
4164 (fold_builtin_memory_op): Likewise.
4165 (fold_builtin_stpcpy): Likewise.
4166 (fold_builtin_memchr): Likewise.
4167 (fold_builtin_strstr): Likewise.
4168 (fold_builtin_strchr): Likewise.
4169 (fold_builtin_strrchr): Likewise.
4170 (fold_builtin_strpbrk): Likewise.
4171 (fold_builtin_strcat): Likewise.
4172 (expand_builtin_memory_chk): Likewise.
4173 (fold_builtin_memory_chk): Likewise.
4174 * c-typeck.c (build_unary_op): Likewise.
4175 * cgraphunit.c (thunk_adjust): Likewise.
4176 * fold-const.c (build_range_check): Likewise.
4177 (fold_binary_loc): Likewise.
4178 * omp-low.c (extract_omp_for_data): Likewise.
4179 (expand_omp_for_generic): Likewise.
4180 (expand_omp_for_static_nochunk): Likewise.
4181 (expand_omp_for_static_chunk): Likewise.
4182 * tree-affine.c (add_elt_to_tree): Likewise.
4183 * tree-data-ref.c (split_constant_offset_1): Likewise.
4184 * tree-loop-distribution.c (generate_memset_zero): Likewise.
4185 * tree-mudflap.c (mf_xform_derefs_1): Likewise.
4186 * tree-predcom.c (ref_at_iteration): Likewise.
4187 * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
4188 (add_to_parts): Likewise.
4189 (create_mem_ref): Likewise.
4190 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
4191 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
4192 (number_of_iterations_le): Likewise.
4193 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
4194 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4195 (vect_create_addr_base_for_vector_ref): Likewise.
4196 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
4197 (vect_create_cond_for_alias_checks): Likewise.
4198 * tree-vrp.c (extract_range_from_assert): Likewise.
4199 * config/alpha/alpha.c (alpha_va_start): Likewise.
4200 (alpha_gimplify_va_arg_1): Likewise.
4201 * config/i386/i386.c (ix86_va_start): Likewise.
4202 (ix86_gimplify_va_arg): Likewise.
4203 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
4204 * config/mep/mep.c (mep_expand_va_start): Likewise.
4205 (mep_gimplify_va_arg_expr): Likewise.
4206 * config/mips/mips.c (mips_va_start): Likewise.
4207 (mips_gimplify_va_arg_expr): Likewise.
4208 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
4209 * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
4210 (rs6000_gimplify_va_arg): Likewise.
4211 * config/s390/s390.c (s390_va_start): Likewise.
4212 (s390_gimplify_va_arg): Likewise.
4213 * config/sh/sh.c (sh_va_start): Likewise.
4214 (sh_gimplify_va_arg_expr): Likewise.
4215 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
4216 * config/spu/spu.c (spu_va_start): Likewise.
4217 (spu_gimplify_va_arg_expr): Likewise.
4218 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
4219 Likewise.
4220 (xstormy16_gimplify_va_arg_expr): Likewise.
4221 * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
4222 (xtensa_gimplify_va_arg_expr): Likewise.
4223
4224 2011-07-19 Richard Guenther <rguenther@suse.de>
4225
4226 * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
4227 (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
4228 handling.
4229
4230 PR middle-end/18908
4231 * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
4232 result of BIT_*_EXPR to bitfield precision.
4233
4234 2011-07-19 Richard Sandiford <richard.sandiford@linaro.org>
4235
4236 PR tree-optimization/49742
4237 * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
4238 as a potential write.
4239
4240 2011-07-19 Richard Guenther <rguenther@suse.de>
4241
4242 * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
4243 * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
4244 (forward_propagate_comparison): Simplify, remove obsolete code.
4245
4246 2011-07-19 Richard Guenther <rguenther@suse.de>
4247
4248 * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
4249 BIT_XOR_EXPR, same as the RTL expander does.
4250 * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
4251 (verify_gimple_assign_unary): Likewise.
4252 * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
4253 * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
4254 BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
4255
4256 2011-07-19 Jakub Jelinek <jakub@redhat.com>
4257
4258 PR tree-optimization/49768
4259 * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
4260 if offset is smaller than bitoffset, but offset+size is bigger
4261 than bitoffset.
4262
4263 2011-07-19 Ira Rosen <ira.rosen@linaro.org>
4264
4265 PR tree-optimization/49771
4266 * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
4267 zero step, set segment length to the size of the data-ref's type.
4268
4269 2011-07-18 Martin Jambor <mjambor@suse.cz>
4270
4271 * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
4272 comments.
4273 (ipcp_values_pool): Declare.
4274 (ipcp_sources_pool): Likewise.
4275 (ipcp_lattice): Changed to forward declaration.
4276 (ipa_param_descriptor): Removed fields ipcp_lattice, types and
4277 cannot_devirtualize.
4278 (ipa_node_params): New fields descriptors, lattices, known_vals,
4279 clone_for_all_contexts and node dead, removed fields params and
4280 count_scale.
4281 (ipa_set_param_count): Removed.
4282 (ipa_get_param_count): Made to work with descriptors vector.
4283 (ipa_get_param): Updated.
4284 (ipa_param_cannot_devirtualize_p): Removed.
4285 (ipa_param_types_vec_empty): Likewise.
4286 (ipa_set_param_used): New function.
4287 (ipa_get_param_used): Updated to use descriptors vector.
4288 (ipa_func_list): Removed.
4289 (ipa_init_func_list): Removed declaration.
4290 (ipa_push_func_to_list_1): Likewise.
4291 (ipa_pop_func_from_list): Likewise.
4292 (ipa_push_func_to_list): Removed.
4293 (ipa_lattice_from_jfunc): Remove declaration.
4294 (ipa_get_jf_pass_through_result): Declare.
4295 (ipa_get_jf_ancestor_result): Likewise.
4296 (ipa_value_from_jfunc): Likewise.
4297 (ipa_get_lattice): Update.
4298 (ipa_lat_is_single_const): New function.
4299 * ipa-prop.c (ipa_push_func_to_list_1): Removed.
4300 (ipa_init_func_list): Likewise.
4301 (ipa_pop_func_from_list): Likewise.
4302 (ipa_get_param_decl_index): Fix coding style.
4303 (count_formal_params): Removed.
4304 (count_formal_params_1): Renamed to count_formal_params.
4305 (ipa_populate_param_decls): Update to use descriptors vector.
4306 (ipa_initialize_node_params): Likewise.
4307 (visit_ref_for_mod_analysis): Use ipa_set_param_used.
4308 (ipa_analyze_params_uses): Likewise.
4309 (ipa_free_node_params_substructures): Likewise and free also lattices
4310 and known values.
4311 (duplicate_array): Removed.
4312 (ipa_edge_duplication_hook): Add the new edge to the list of edge
4313 clones.
4314 (ipa_node_duplication_hook): Update to use new lattices.
4315 (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
4316 (ipa_free_all_structures_after_iinln): Likewise.
4317 (ipa_write_node_info): Update to use new lattices.
4318 (ipa_read_node_info): Likewise.
4319 (ipa_get_jf_pass_through_result): New function.
4320 (ipa_get_jf_ancestor_result): Likewise.
4321 (ipa_value_from_jfunc): Likewise.
4322 (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
4323 * ipa-cp.c: Reimplemented.
4324 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
4325 (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
4326 (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
4327 * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
4328 * doc/invoke.texi (devirt-type-list-size): Removed description.
4329 (ipa-cp-value-list-size): Added description.
4330
4331 2011-07-18 Richard Henderson <rth@redhat.com>
4332
4333 * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
4334 before calling create_basic_block.
4335
4336 2011-07-18 Jakub Jelinek <jakub@redhat.com>
4337
4338 PR middle-end/49675
4339 * tree.c (build_common_builtin_nodes): Register
4340 __builtin_return_address, __cyg_profile_func_enter
4341 and __cyg_profile_func_exit.
4342
4343 2011-07-18 Richard Henderson <rth@redhat.com>
4344
4345 * bb-reorder.c (emit_barrier_after_bb): Split out of ...
4346 (add_labels_and_missing_jumps): ... here.
4347 (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
4348
4349 2011-07-18 Uros Bizjak <ubizjak@gmail.com>
4350
4351 PR target/47744
4352 * config/i386/i386.c (ix86_decompose_address): Allow only subregs
4353 of DImode hard registers in PLUS address chains.
4354
4355 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4356
4357 PR bootstrap/49769
4358 * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
4359 (alpha*-*-freebsd*): Likewise.
4360 (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
4361 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
4362 i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
4363 crtprec80.o, crtfastmath.o to extra_parts for all targets.
4364 (ia64*-*-elf*): Remove extra_parts.
4365 (sparc-*-linux*): Add crtfastmath.o to extra_parts.
4366 (sparc64-*-linux*): Likewise.
4367 (sparc64-*-freebsd*): Likewise.
4368
4369 Revert:
4370 * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
4371 (ia64*-*-linux*): Likewise.
4372 (mips64*-*-linux*): Likewise.
4373 (mips*-*-linux*): Likewise.
4374
4375 2011-07-18 David Edelsohn <dje.gcc@gmail.com>
4376
4377 * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
4378
4379 2011-07-18 Richard Guenther <rguenther@suse.de>
4380
4381 * gimplify.c (gimplify_expr): Use input_location, not saved_location
4382 when building new trees.
4383
4384 2011-07-18 Richard Guenther <rguenther@suse.de>
4385
4386 * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
4387 expansion result to bitfield precision if required.
4388
4389 2011-07-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4390
4391 * config.gcc (i[3456x]86-*-netware*): Remove.
4392
4393 * gthr-nks.h: Remove.
4394 * configure.ac (enable_threads): Remove nks.
4395 * configure: Regenerate.
4396
4397 * config/i386/i386.c (ix86_encode_section_info): Remove netware
4398 reference.
4399 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
4400 <netware.h> reference.
4401
4402 * config/i386/netware-libgcc.c,
4403 gcc/config/i386/netware-libgcc.def,
4404 gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
4405 gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
4406 gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
4407 gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
4408
4409 * doc/extend.texi (Function Attributes,
4410 callee_pop_aggregate_return): Remove i?86-netware reference.
4411 * doc/install.texi (Configuration, --enable-threads): Remove nks.
4412
4413 2011-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4414
4415 PR target/49746
4416 Revert:
4417 2010-12-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4418
4419 * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
4420 patterns.
4421
4422 2011-07-17 Eric Botcazou <ebotcazou@adacore.com>
4423
4424 PR middle-end/49732
4425 * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
4426
4427 2011-07-16 Matthias Klose <doko@ubuntu.com>
4428
4429 * doc/install.texi: Document --enable-static-libjava.
4430
4431 2011-07-15 Richard Henderson <rth@redhat.com>
4432
4433 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
4434 Replace all three arguments by returning a VEC of edges.
4435 (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
4436 pointers and counts.
4437 (fix_edges_for_rarely_executed_code): Merge ...
4438 (rest_of_handle_partition_blocks): ... into...
4439 (partition_hot_cold_basic_blocks): ... here. Return todo items if
4440 any work was performed.
4441 (pass_partition_blocks): Clear todo_flags_finish.
4442
4443 2011-07-15 Paolo Carlini <paolo.carlini@oracle.com>
4444 Jakub Jelinek <jakub@redhat.com>
4445 Jonathan Wakely <jwakely.gcc@gmail.com>
4446
4447 PR libstdc++/49745
4448 * gthr-posix.h: Do not include <unistd.h> unconditionally; use
4449 _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
4450
4451 2011-07-15 Jason Merrill <jason@redhat.com>
4452
4453 PR testsuite/49741
4454 * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
4455 rather than --tool_opts.
4456
4457 2011-07-15 Basile Starynkevitch <basile@starynkevitch.net>
4458
4459 * doc/plugins.texi (Building GCC plugins): gengtype needs its
4460 corresponding gtype.state.
4461
4462 2011-07-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4463
4464 PR target/49723
4465 * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
4466
4467 2011-07-15 Eric Botcazou <ebotcazou@adacore.com>
4468
4469 PR target/48220
4470 * doc/md.texi (Standard Names): Document window_save.
4471 * cfgexpand.c (expand_debug_parm_decl): New function extracted from
4472 expand_debug_expr and expand_debug_source_expr. If the target has
4473 a window_save instruction, adjust the ENTRY_VALUE_EXP.
4474 (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
4475 SSA_NAME_VAR is a parameter.
4476 (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
4477 * var-tracking.c (parm_reg_t): New type and associated vector type.
4478 (windowed_parm_regs): New variable.
4479 (adjust_insn): If the target has a window_save instruction and this
4480 is the instruction, make its effect on parameter registers explicit.
4481 (next_non_note_insn_var_location): New function.
4482 (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
4483 (vt_add_function_parameter): If the target has a window_save insn,
4484 adjust the incoming RTL and record that in windowed_parm_regs.
4485 (vt_finalize): Free windowed_parm_regs.
4486
4487 2011-07-15 Bernd Schmidt <bernds@codesourcery.com>
4488
4489 * doc/invoke.texi (C6X Options): New section.
4490 * doc/md.texi (TI C6X family): New section.
4491 * config.gcc: Handle tic6x, in particular tic6x-*-elf and
4492 tic6x-*-uclinux.
4493 * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
4494 count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
4495 Provide C6X definitions.
4496 * config/c6x/c6x.md: New file.
4497 * config/c6x/constraints.md: New file.
4498 * config/c6x/predicates.md: New file.
4499 * config/c6x/c6x-sched.md.in: New file.
4500 * config/c6x/c6x-sched.md: New file.
4501 * config/c6x/gensched.sh: New file.
4502 * config/c6x/c6x-mult.md.in: New file.
4503 * config/c6x/genmult.sh: New file.
4504 * config/c6x/c6x-mult.md: New file.
4505 * config/c6x/sync.md: New file.
4506 * config/c6x/c6x-protos.h: New file.
4507 * config/c6x/sfp-machine.h: New file.
4508 * config/c6x/c6x.c: New file.
4509 * config/c6x/c6x.h: New file.
4510 * config/c6x/crti.s: New file.
4511 * config/c6x/crtn.s: New file.
4512 * config/c6x/lib1funcs.asm: New file.
4513 * config/c6x/c6x-modes.def: New file.
4514 * config/c6x/genopt.sh: New file.
4515 * config/c6x/c6x.opt: New file.
4516 * config/c6x/c6x-tables.opt: New file.
4517 * config/c6x/c6x-opts.h: New file.
4518 * config/c6x/c6x-isas.def: New file.
4519 * config/c6x/elf.h: New file.
4520 * config/c6x/elf-common.h: New file.
4521 * config/c6x/uclinux-elf.h: New file.
4522 * config/c6x/t-c6x: New file.
4523 * config/c6x/t-c6x-elf: New file.
4524 * config/c6x/t-c6x-uclinux: New file.
4525 * config/c6x/t-c6x-softfp: New file.
4526 * config/c6x/gtd.c: New file.
4527 * config/c6x/gtf.c: New file.
4528 * config/c6x/ltd.c: New file.
4529 * config/c6x/ltf.c: New file.
4530 * config/c6x/ged.c: New file.
4531 * config/c6x/gef.c: New file.
4532 * config/c6x/led.c: New file.
4533 * config/c6x/lef.c: New file.
4534 * config/c6x/eqd.c: New file.
4535 * config/c6x/eqf.c: New file.
4536 * config/c6x/libgcc-c6xeabi.ver: New file.
4537
4538 Revert
4539 2003-07-10 Eric Botcazou <ebotcazou@libertysurf.fr>
4540 PR rtl-optimization/11320
4541 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
4542 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
4543 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
4544 current_sched_info->compute_jump_reg_dependencies. Record which
4545 registers are used and which registers are set by the jump.
4546 Clear deps->reg_conditional_sets after a barrier.
4547 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
4548 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
4549 (init_deps): Initialize reg_conditional_sets.
4550 (free_deps): Clear reg_conditional_sets.
4551 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
4552 Mark registers live on entry of the fallthrough block and conditionally
4553 set as set by the jump. Mark registers live on entry of non-fallthrough
4554 blocks as used by the jump.
4555 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
4556 Mark new parameters as unused.
4557
4558 2011-07-14 Andrew Pinski <pinskia@gmail.com>
4559
4560 PR tree-opt/49309
4561 * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
4562 Use fold_build2_loc instead of build2.
4563 Use the correct type for the new tree.
4564
4565 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
4566
4567 PR rtl-optimization/11320
4568 * config/ia64/ia64.md (load_symptr_low): Show a MEM.
4569 * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
4570
4571 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
4572
4573 PR target/49487
4574 * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
4575 of REG.
4576 (*rotw<mode>): Use const_int_operand for operand2.
4577 Use match_scatch for operand3.
4578 (*rotb<mode>): Ditto
4579 * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
4580
4581 2011-07-14 Richard Guenther <rguenther@suse.de>
4582
4583 PR tree-optimization/49651
4584 * tree-ssa-structalias.c (get_constraint_for_1): Properly
4585 handle dereferences with subvariables.
4586
4587 2011-07-14 Richard Guenther <rguenther@suse.de>
4588
4589 * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
4590 (fold_stmt_1): Do it here directly on gimple and as a first thing.
4591
4592 2011-07-14 Richard Guenther <rguenther@suse.de>
4593
4594 * fold-const.c (fold_binary_loc): Convert the !bool_var result,
4595 not bool_var when folding bool_var != 1 or bool_var == 0.
4596
4597 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
4598
4599 * haifa-sched.c (schedule_insns): Remove outdated comment.
4600 (schedule_block): When computing a known value for TODO_SPEC,
4601 just set it rather than using logical operations.
4602 (try_ready): Likewise. Use a local variable rather than a
4603 pointer to TODO_SPEC. Reorder an if statement to move the
4604 easy case to the then block.
4605 * sched-deps.c (dep_spec_p): New static function.
4606 (update_dep): Use it to decide whether to call
4607 change_spec_dep_to_hard.
4608 (get_back_and_forw_lists): Use it.
4609 (sd_resolve_dep): Likewise.
4610 (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
4611 (haifa_note_mem_dep): Likewise.
4612 (check_dep): Likewise.
4613 (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
4614 (sched_free_deps): Free in two passes.
4615
4616 2011-07-14 Richard Sandiford <richard.sandiford@linaro.org>
4617
4618 PR middle-end/49736
4619 * expr.c (all_zeros_p): Undo bogus part of last change.
4620
4621 2011-07-14 Matthias Klose <doko@ubuntu.com>
4622
4623 * doc/extend.texi (optimize attribute): Fix typo.
4624
4625 2011-07-14 Richard Guenther <rguenther@suse.de>
4626
4627 * gimplify.c (gimplify_expr): Only do required conversions.
4628
4629 2011-07-14 Georg-Johann Lay <avr@gjlay.de>
4630
4631 PR target/43746
4632 * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
4633 i.e. use default_elf_select_section.
4634 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
4635 (READONLY_DATA_SECTION_ASM_OP): Remove.
4636 (TARGET_ASM_NAMED_SECTION): Move from here...
4637 * config/avr/avr.c: ...to here.
4638 (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
4639 (avr_asm_named_section): Make static.
4640
4641 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4642
4643 PR bootstrap/49739
4644 * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
4645 and crtfastmath.o for Linux/x86.
4646
4647 2011-07-14 Bernd Schmidt <bernds@codesourcery.com>
4648
4649 * haifa-sched.c: Include "hashtab.h"
4650 (sched_no_dce): New global variable.
4651 (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
4652 SHADOW_P): New macros.
4653 (last_clock_var, cycle_issued_insns): Move declarations.
4654 (must_backtrack): New static variable.
4655 (struct delay_pair): New structure.
4656 (delay_htab, delay_htab_i2): New static variables.
4657 (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
4658 record_delay_slot_pair, pair_delay, add_delay_dependencies): New
4659 functions.
4660 (dep_cost_1): If delay pairs exist, try to look up the insns and
4661 use the correct pair delay if we find them.
4662 (rank-for_schedule): Tweak priority for insns that must be scheduled
4663 soon to avoid backtracking.
4664 (queue_insn): Detect conditions which force backtracking.
4665 (ready_add): Likewise.
4666 (struct sched_block_state): Add member shadows_only_p.
4667 (struct haifa_save_data): New structure.
4668 (backtrack_queue): New static variable.
4669 (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
4670 unschedule_insns_until, restore_last_backtrack_point,
4671 free_topmost_backtrack_point, free_backtrack_queue,
4672 estimate_insn_tick, estimate_shadow_tick): New functions.
4673 (prune_ready_list): New arg shadows_only_p. All callers changed.
4674 If true, remove everything that isn't SHADOW_P. Look up delay
4675 pairs and estimate ticks to avoid scheduling the first insn too early.
4676 (verify_shadows): New function.
4677 (schedule_block): Add machinery to enable backtracking.
4678 (sched_init): Take sched_no_dce into account when setting
4679 DF_LR_RUN_DCE.
4680 (free_delay_pairs): New function.
4681 (init_h_i_d): Initialize INSN_EXACT_TICK.
4682 * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
4683 * sched-deps.c (sd_unresolve_dep): New function.
4684 * sched-int. (struct haifa_sched_info): New fields save_state
4685 and restore_state.
4686 (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
4687 feeds_backtrack_insn and shadow_p.
4688 (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
4689 (sched_no_dce): Declare variable.
4690 (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
4691 sd_unresolve_dep): Declare functions.
4692 * modulo-sched.c (sms_sched_info): Clear the two new fields.
4693 * sched-rgn.c (rgn_const_sched_info): Likewise.
4694 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
4695 * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
4696 (ebb_sched_info): Add them for the two new fields.
4697 (add_deps_for_risky_insns): Call add_delay_dependencies.
4698
4699 2011-07-13 Michael Meissner <meissner@linux.vnet.ibm.com>
4700
4701 * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
4702 Rename -mr11.
4703 * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
4704 (rs6000_call_indirect_aix): Ditto.
4705 * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
4706 (call_indirect_aix<ptrsize>_internal): Ditto.
4707 (call_indirect_aix<ptrsize>_nor11): Ditto.
4708 (call_indirect_aix<ptrsize>_internal2): Ditto.
4709 (call_value_indirect_aix<ptrsize>): Ditto.
4710 (call_value_indirect_aix<ptrsize>_internal): Ditto.
4711 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
4712 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
4713 * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
4714
4715 2011-07-13 Jason Merrill <jason@redhat.com>
4716
4717 * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
4718
4719 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4720
4721 * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
4722 * config/spu/spu.md ("clrsb<mode>2"): New expander.
4723
4724 2011-07-13 Thomas Schwinge <thomas@schwinge.name>
4725
4726 * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
4727 * configure: Regenerate.
4728
4729 2011-07-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4730
4731 * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
4732 (asm_file_start): Remove.
4733 (spu_machine_dependent_reorg): Call compute_bb_for_insn and
4734 free_bb_for_insn around code that modifies insns before
4735 restarting df analysis.
4736
4737 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4738
4739 PR target/49541
4740 * config/sol2.h (LIB_SPEC): Simplify. Move LIB_THREAD_LDFLAGS_SPEC ...
4741 (LINK_SPEC): ... here.
4742
4743 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
4744
4745 * haifa-sched.c (struct sched_block_state): New.
4746 (schedule_block): Move some local variables into such a structure.
4747
4748 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4749
4750 * config/i386/crtprec.c: Move to ../libgcc/config/i386.
4751 * config/i386/t-crtpc: Remove.
4752 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
4753 * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
4754 tmake_file.
4755 (x86_64-*-darwin*): Likewise.
4756 (i[34567]86-*-linux*): Likewise.
4757 (x86_64-*-linux*): Likewise.
4758
4759 * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
4760 Handle -mpc32, -mpc64, -mpc80.
4761
4762 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4763
4764 * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
4765 * config/alpha/t-crtfm: Remove.
4766 * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
4767 * config/i386/t-crtfm: Remove.
4768 * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
4769 * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
4770 * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
4771 * config/sparc/t-crtfm: Remove.
4772
4773 * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
4774 (alpha*-*-freebsd*): Likewise.
4775 (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
4776 (x86_64-*-darwin*): Likewise.
4777 (i[34567]86-*-linux*): Likewise.
4778 (x86_64-*-linux*): Likewise.
4779 (x86_64-*-mingw*): Likewise.
4780 (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
4781 (ia64*-*-freebsd*): Likewise.
4782 (ia64*-*-linux*): Likewise.
4783 (mips64*-*-linux*): Likewise.
4784 (mips*-*-linux*): Likewise.
4785 (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
4786 (sparc64-*-linux*): Likewise.
4787 (sparc64-*-freebsd*): Likewise.
4788
4789 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4790
4791 * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
4792 * config/darwin-crt3.c: Move to ../libgcc/config.
4793 * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
4794 ($(T)crt3$(objext)): Remove.
4795 * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
4796 ($(T)crt2$(objext)): Remove.
4797 * config.gcc (powerpc-*-darwin*): Remove extra_parts.
4798 (powerpc64-*-darwin*): Likewise.
4799
4800 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
4801
4802 * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
4803
4804 * config/i386/i386.md (*addsi_1_zext): Renamed to ...
4805 (addsi_1_zext): This.
4806
4807 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
4808
4809 * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
4810 * doc/tm.texi: Regenerate.
4811 * target.def (mergeable_rodata_prefix): New defhookpod.
4812 * varasm.c (mergeable_string_section, mergeable_constant_section):
4813 Use it. Allocate name with alloca.
4814
4815 2011-07-13 H.J. Lu <hongjiu.lu@intel.com>
4816
4817 * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
4818
4819 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
4820
4821 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
4822 overlap check.
4823
4824 2011-07-13 Richard Sandiford <richard.sandiford@linaro.org>
4825
4826 * tree.h (categorize_ctor_elements): Remove comment. Fix long line.
4827 (count_type_elements): Delete.
4828 (complete_ctor_at_level_p): Declare.
4829 * expr.c (flexible_array_member_p): New function, split out from...
4830 (count_type_elements): ...here. Make static. Replace allow_flexarr
4831 parameter with for_ctor_p. When for_ctor_p is true, return the
4832 number of elements that should appear in the top-level constructor,
4833 otherwise return an estimate of the number of scalars.
4834 (categorize_ctor_elements): Replace p_must_clear with p_complete.
4835 (categorize_ctor_elements_1): Likewise. Use complete_ctor_at_level_p.
4836 (complete_ctor_at_level_p): New function, borrowing union logic
4837 from old categorize_ctor_elements_1.
4838 (mostly_zeros_p): Return true if the constructor is not complete.
4839 (all_zeros_p): Update call to categorize_ctor_elements.
4840 * gimplify.c (gimplify_init_constructor): Update call to
4841 categorize_ctor_elements. Don't call count_type_elements.
4842 Unconditionally prevent clearing for variable-sized types,
4843 otherwise rely on categorize_ctor_elements to detect
4844 incomplete initializers.
4845
4846 2011-07-13 Richard Guenther <rguenther@suse.de>
4847
4848 * tree-vrp.c (simplify_conversion_using_ranges): Make sure
4849 the final type is integral.
4850
4851 2011-07-13 Bernd Schmidt <bernds@codesourcery.com>
4852
4853 * sched-int.h (struct _dep): Add member cost.
4854 (DEP_COST, UNKNOWN_DEP_COST): New macros.
4855 * sched-deps.c (init_dep_1): Initialize DEP_COST.
4856 * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
4857 (sched_change_pattern): Reset it for dependent insns.
4858
4859 2011-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4860
4861 * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
4862 ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
4863 * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
4864 * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
4865 (CRT0_S, MCRT0_S): Remove.
4866 ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
4867 Remove.
4868 (s-crt0): Remove.
4869 * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
4870
4871 2011-07-12 Eric Botcazou <ebotcazou@adacore.com>
4872
4873 * cse.c (insert_with_costs): Put semi-colon after empty loop body
4874 on the next line.
4875 * emit-rtl.c (push_to_sequence): Likewise.
4876 * haifa-sched.c (max_issue): Likewise.
4877 * matrix-reorg.c (add_allocation_site): Likewise.
4878 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
4879 * reload.c (alternative_allows_const_pool_ref): Likewise.
4880 * sched-rgn.c (rgn_add_block): Likewise.
4881 (rgn_fix_recovery_cfg): Likewise.
4882 * tree.c (attribute_list_contained): Likewise.
4883
4884 2011-07-12 Uros Bizjak <ubizjak@gmail.com>
4885
4886 * config/i386/i386.c: Tidy processor feature bitmasks.
4887 (m_P4_NOCONA): New.
4888
4889 2011-07-12 Andrew Pinski <pinskia@gmail.com>
4890
4891 PR rtl-opt/49474
4892 * cprop.c (find_implicit_sets): Correct the condition.
4893
4894 2011-07-12 Richard Henderson <rth@redhat.com>
4895
4896 PR target/49713
4897 * dwarf2out.h (dwarf_frame_regnum): Remove.
4898 * dwarf2out.c (based_loc_descr): Revert last change. Initialize regno
4899 earlier from DWARF_FRAME_REGNUM. Never use dbx_reg_number.
4900 * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
4901 (execute_dwarf2_frame): Initialize them.
4902 (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
4903 users of the macros with the variables.
4904 (expand_builtin_dwarf_sp_column): Revert last change.
4905 (expand_builtin_init_dwarf_reg_sizes): Likewise. Compute the
4906 result of DWARF_FRAME_REGNUM into a local variable.
4907
4908 2011-07-12 Richard Henderson <rth@redhat.com>
4909
4910 PR target/49714
4911 * config/i386/i386.c (x86_output_mi_thunk): Use
4912 machopic_indirect_call_target instead of machopic_indirection_name
4913 directly.
4914
4915 2011-07-12 Laurent GUERBY <laurent@guerby.net>
4916 Eric Botcazou <ebotcazou@adacore.com>
4917
4918 * prefix.h: Wrap up in extern "C" block.
4919
4920 2011-07-12 Harsha Jagasia <harsha.jagasia@amd.com>
4921
4922 AMD bdver2 Enablement
4923 * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
4924 (case ${target}): Add bdver2.
4925 * config/i386/driver-i386.c (host_detect_local_cpu): Let
4926 -march=native recognize bdver2 processors.
4927 * config/i386/i386-c.c (ix86_target_macros_internal): Add
4928 bdver2 def_and_undef
4929 * config/i386/i386.c (struct processor_costs bdver2_cost): New
4930 bdver2 cost table.
4931 (m_BDVER2): New definition.
4932 (m_AMD_MULTIPLE): Includes m_BDVER2.
4933 (initial_ix86_tune_features): Add bdver2 tuning.
4934 (processor_target_table): Add bdver2 entry.
4935 (static const char *const cpu_names): Add bdver2 entry.
4936 (ix86_option_override_internal): Add bdver2 instruction sets.
4937 (ix86_issue_rate): Add bdver2.
4938 (ix86_adjust_cost): Add bdver2.
4939 (has_dispatch): Add bdver2.
4940 * config/i386/i386.h (TARGET_BDVER2): New definition.
4941 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
4942 (enum processor_type): Add PROCESSOR_BDVER2.
4943 * config/i386/i386.md (define_attr "cpu"): Add bdver2.
4944 * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
4945 description.
4946
4947 2011-07-12 Richard Henderson <rth@redhat.com>
4948
4949 PR target/49714
4950 * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
4951 destination address in memory on some paths.
4952
4953 2011-07-12 Bernd Schmidt <bernds@codesourcery.com>
4954
4955 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
4956 TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
4957 (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
4958 * function.c (locate_and_pad_parm): Take it into account.
4959 * target.def (function_arg_round_boundary): New hook.
4960 * targhooks.c (default_function_arg_round_boundary): New function.
4961 * targhooks.h (default_function_arg_round_boundary): Declare.
4962 * doc/tm.texi: Regenerate.
4963
4964 2011-07-12 Richard Guenther <rguenther@suse.de>
4965
4966 * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
4967 Do not perform no-op changes.
4968
4969 2011-07-12 Richard Sandiford <richard.sandiford@linaro.org>
4970
4971 * config/arm/predicates.md (neon_struct_operand): Make a normal
4972 predicate.
4973 (neon_struct_or_register_operand): New predicate.
4974 * config/arm/neon.md (movmisalign<mode>): Replace predicates
4975 with neon_struct_or_register_operand.
4976 (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
4977 neon_struct_operand instead of memory_operand.
4978
4979 2011-07-12 Martin Jambor <mjambor@suse.cz>
4980
4981 * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
4982 * cgraph.c (cgraph_get_node_or_alias): Removed.
4983 (change_decl_assembler_name): Changed all calls to
4984 cgraph_get_node_or_alias to a call to cgraph_get_node.
4985 (cgraph_make_decl_local): Likewise.
4986 * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
4987 * varasm.c (default_binds_local_p_1): Likewise.
4988 (decl_binds_to_current_def_p): Likewise.
4989
4990 2011-07-12 Jakub Jelinek <jakub@redhat.com>
4991
4992 PR tree-optimization/49712
4993 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
4994
4995 2011-07-11 Bernd Schmidt <bernds@codesourcery.com>
4996
4997 * genautomata.c (add_arc): Return void. All callers changed.
4998 (make_automaton): Remove dead code.
4999
5000 2011-07-11 Richard Henderson <rth@redhat.com>
5001
5002 * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
5003 (DW_FRAME_POINTER_REGNUM): New.
5004 (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
5005 (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
5006 (dwf_regno): New.
5007 (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
5008 dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
5009 dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
5010 Use it.
5011 * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
5012 * dwarf2out.h (dwarf_frame_regnum): New.
5013 (struct cfa_loc): Document the domain of the reg member.
5014
5015 2011-07-11 Uros Bizjak <ubizjak@gmail.com>
5016
5017 * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
5018 Use offset everywhere. Always assert that offset <= TRAMPOLINE_SIZE.
5019
5020 2011-07-11 Jakub Jelinek <jakub@redhat.com>
5021
5022 PR debug/49676
5023 * dwarf2out.c (int_shift_loc_descriptor): New function.
5024 (int_loc_descriptor): If shorter, emit i as
5025 (i >> shift), shift, DW_OP_shl for suitable shift value.
5026 Similarly, try to optimize large negative values using
5027 DW_OP_neg of a positive value if shorter.
5028 (size_of_int_shift_loc_descriptor): New function.
5029 (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
5030 changes.
5031 (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
5032 that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
5033 DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
5034 is shorter.
5035 (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
5036 addend as added DW_OP_plus if it is shorter.
5037
5038 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5039
5040 * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
5041 (DTORS_SECTION_ASM_OP): Define.
5042
5043 2011-07-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5044
5045 * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
5046 * config/t-dfprules: Move to ../libgcc/config.
5047 * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
5048 i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
5049 i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
5050 (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
5051 Likewise.
5052 (i[34567]86-*-cygwin*): Likewise.
5053 (i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
5054 (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
5055 * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
5056 (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
5057 D64PBIT_FUNCS, D128PBIT_FUNCS.
5058
5059 2011-07-11 Richard Guenther <rguenther@suse.de>
5060
5061 * tree-vrp.c (simplify_conversion_using_ranges): Manually
5062 translate the source value-range through the conversion chain.
5063
5064 2011-07-11 Richard Sandiford <richard.sandiford@linaro.org>
5065
5066 * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
5067
5068 2011-07-11 Arthur Loiret <aloiret@debian.org>
5069
5070 * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
5071 a bi-arch compiler defaulting to 31-bit. In this case:
5072 (tmake_file): Add s390/t-linux64.
5073 * doc/install.texi: Add s390-linux to the list of targets supporting
5074 --enable-targets=all.
5075
5076 2011-07-11 Arthur Loiret <aloiret@debian.org>
5077 Matthias Klose <doko@debian.org>
5078
5079 * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
5080 a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
5081 (tm_file): Add mips/linux64.h.
5082 (tmake_file): Add mips/t-linux64.
5083 (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
5084 * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
5085 instead of hardcoded mabi=n32.
5086 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
5087 tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
5088 convention.
5089
5090 2011-07-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5091
5092 * passes.c (init_optimization_passes): Add invariant motion pass
5093 after induction variable optimization.
5094
5095 2011-07-11 Georg-Johann Lay <avr@gjlay.de>
5096
5097 PR target/39633
5098 * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
5099 offsets 1..5 set cc0 in a usable way.
5100
5101 2011-07-11 Romain Geissler <romain.geissler@gmail.com>
5102
5103 * tree.h (call_expr_arg): Remove.
5104 (call_expr_argp): Likewise.
5105
5106 2011-07-11 Eric Botcazou <ebotcazou@adacore.com>
5107
5108 * config/sparc/sparc.md (save_register_window_1): Rename to...
5109 (window_save): ...this.
5110 * config/sparc/sparc.c (emit_save_register_window): Rename to...
5111 (emit_window_save): ...this.
5112 (sparc_expand_prologue): Adjust to above renaming.
5113
5114 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
5115
5116 * config/i386/i386.c (ix86_trampoline_init): Use movl instead
5117 of movabs for x32.
5118
5119 2011-07-10 Richard Henderson <rth@redhat.com>
5120
5121 * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
5122 run final, instead of emitting text directly.
5123
5124 2011-07-10 H.J. Lu <hongjiu.lu@intel.com>
5125
5126 * config/i386/i386.c (ix86_option_override_internal): Turn on
5127 OPTION_MASK_ISA_64BIT for TARGET_X32. Only allow small and
5128 small PIC models for TARGET_X32.
5129
5130 2011-07-10 Hans-Peter Nilsson <hp@axis.com>
5131
5132 PR target/49684
5133 * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
5134 $(LIBGCC2_CFLAGS).
5135
5136 PR bootstrap/49680
5137 * config/cris/cris.c (cris_asm_output_case_end): Robustify against
5138 stray notes and debug insns by using prev_nonnote_nondebug_insn
5139 instead of PREV_INSN.
5140
5141 2011-07-09 Richard Henderson <rth@redhat.com>
5142
5143 * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
5144 DWARF_TYPE_SIGNATURE_SIZE): Move from ...
5145 * dwarf2out.c: ... here.
5146 (output_all_cfis): Remove.
5147 (dwarf2out_switch_text_section): Use output_cfis directly.
5148 (size_of_locs): Export.
5149 (output_loc_sequence, output_loc_sequence_raw): Export.
5150 (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
5151 output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
5152 output_cfa_loc_raw): Move to ...
5153 * dwarfcfi.c: ... here.
5154 * dwarf2out.h: Update decls.
5155
5156 2011-07-09 Richard Henderson <rth@redhat.com>
5157
5158 * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
5159 DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
5160 * dwarf2cfi.c: ... here.
5161 (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
5162 (DWARF_ROUND, DWARF_CIE_ID): Remove.
5163 * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
5164 (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
5165 (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
5166
5167 2011-07-09 Richard Henderson <rth@redhat.com>
5168
5169 * dwarf2cfi.c (cie_return_save): New.
5170 (queue_reg_save): Use compare_reg_or_pc.
5171 (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
5172 (dwarf2out_frame_debug_expr): Likewise.
5173 (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
5174 (initial_return_save): Likewise.
5175 (execute_dwarf2_frame): Save and restore initial return save from
5176 the cie to the fde.
5177 * config/mips/mips.c (mips_frame_set): Remove special case for
5178 DWARF_FRAME_RETURN_COLUMN.
5179
5180 2011-07-09 Richard Henderson <rth@redhat.com>
5181
5182 * dwarf2cfi.c (lookup_cfa): Remove.
5183 (execute_dwarf2_frame): Assert queues are empty on entry.
5184 Setup initial cfa directly, not via lookup_cfa.
5185 Don't clear args_size state here.
5186
5187 2011-07-09 Richard Henderson <rth@redhat.com>
5188
5189 * dwarf2cfi.c (add_cfi_vec): New.
5190 (add_cfi): Rename from add_fde_cfi. Add the element to add_cfi_vec.
5191 (def_cfa_1, reg_save): Remove for_cie argument. Update all callers.
5192 (execute_dwarf2_frame): Set add_cfi_vec.
5193
5194 2011-07-09 Richard Henderson <rth@redhat.com>
5195
5196 * defaults.h (ASM_COMMENT_START): Move here...
5197 * dwarf2asm.c: ... from here.
5198 * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
5199 * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
5200 * varasm.c: Likewise.
5201
5202 2011-07-09 Richard Henderson <rth@redhat.com>
5203
5204 PR debug/49686
5205 * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
5206 (create_cfi_notes): ... do it here instead.
5207
5208 2011-07-09 Jakub Jelinek <jakub@redhat.com>
5209
5210 PR debug/49676
5211 * dwarf2out.c (size_of_int_loc_descriptor): New function.
5212 (address_of_int_loc_descriptor): Use it.
5213 (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
5214
5215 2011-07-09 Richard Henderson <rth@redhat.com>
5216
5217 * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
5218 (prologue, epilogue): New.
5219 (return, *rts): New.
5220 (blockage, setd, seti): New.
5221 * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
5222 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
5223 (pdp11_saved_regno): New.
5224 (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
5225 generate rtl instead of text.
5226 (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
5227 (pdp11_sp_frame_offset): Export. Use pdp11_saved_regno.
5228 * config/pdp11/pdp11-protos.h: Update.
5229
5230 2011-07-09 Richard Henderson <rth@redhat.com>
5231
5232 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
5233 try to insert an rtl prologue here.
5234 (rs6000_output_function_epilogue): Similarly.
5235 * config/rs6000/rs6000.md (prologue): Emit a barrier to
5236 satisfy !TARGET_SCHED_PROLOG.
5237 (epilogue, sibcall_epilogue): Likewise.
5238
5239 2011-07-09 Eric Botcazou <ebotcazou@adacore.com>
5240
5241 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
5242 (FP_REG_P): Delete.
5243 (IN_OR_GLOBAL_P): Likewise.
5244
5245 2011-07-08 Jason Merrill <jason@redhat.com>
5246
5247 PR c++/45437
5248 * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
5249 compound assignment.
5250
5251 * cgraph.c (cgraph_add_to_same_comdat_group): New.
5252 * cgraph.h: Declare it.
5253 * ipa.c (function_and_variable_visibility): Make sure thunks
5254 have the right visibility.
5255
5256 2011-07-08 Richard Henderson <rth@redhat.com>
5257
5258 PR bootstrap/49680
5259 * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
5260 any tablejump vector.
5261
5262 PR bootstrap/49680
5263 * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
5264 end of the prologue.
5265
5266 2011-07-08 Jakub Jelinek <jakub@redhat.com>
5267
5268 PR target/49621
5269 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
5270 CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
5271 * config/rs6000/vector.md (vector_select_<mode>,
5272 vector_select_<mode>_uns): Change second operand of NE to
5273 CONST0_RTX (<MODE>mode) instead of const0_rtx.
5274 * config/rs6000/altivec.md (*altivec_vsel<mode>,
5275 *altivec_vsel<mode>_uns): Expect second operand of NE to be
5276 zero_constant of the corresponding vector mode.
5277 * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
5278 Likewise.
5279
5280 2011-07-08 Sebastian Pop <sebastian.pop@amd.com>
5281
5282 * graphite-dependences.c (build_alias_set_powerset): Remove
5283 continue from loop, add one more assert.
5284
5285 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
5286
5287 PR target/46779
5288 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
5289 In particular, allow 8-bit values in r28 and r29.
5290 (avr_hard_regno_scratch_ok): Disallow any register that might be
5291 part of the frame pointer.
5292 (avr_hard_regno_rename_ok): Same.
5293 (avr_legitimate_address_p): Don't allow SUBREGs.
5294
5295 2011-07-08 Julian Brown <julian@codesourcery.com>
5296
5297 * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
5298 big-endian mode.
5299 (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
5300 (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
5301 (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
5302 (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
5303 (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
5304 (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
5305 (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
5306 registers in big-endian mode.
5307
5308 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
5309
5310 * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
5311 in terms of another.
5312 (write_attr_value): Write a cast if necessary.
5313
5314 * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
5315 * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
5316 (REG_WORDS_BIG_ENDIAN): Document.
5317 * doc/tm.texi: Regenerate.
5318 * reload.c (operands_match_p): Take it into account.
5319 (reload_adjust_reg_for_mode): Likewise.
5320 * rtlanal.c (subreg_get_info): Likewise.
5321
5322 2011-07-08 Richard Guenther <rguenther@suse.de>
5323
5324 * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
5325 folding.
5326
5327 2011-07-08 Kai Tietz <ktietz@redhat.com>
5328
5329 * fold-const.c (fold_truth_andor): Factored out truth_andor
5330 label from fold_binary as function.
5331 (fold_binary_loc): Replace truth_andor lable
5332 by function fold_truth_andor.
5333
5334 2011-07-08 Kirill Yukhin <kirill.yukhin@intel.com>
5335
5336 PR middle-end/49519
5337 * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
5338 check if address is stored in register. If so - give up.
5339 (check_sibcall_argument_overlap_1): Do not perform check of
5340 overlapping when it is call to address.
5341
5342 2011-07-08 Georg-Johann Lay <avr@gjlay.de>
5343
5344 * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
5345 of magic '31'.
5346
5347 2011-07-08 Bernd Schmidt <bernds@codesourcery.com>
5348
5349 * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
5350 GET_MODE_BITSIZE where appropriate.
5351 (widen_leading, expand_parity, expand_ctz, expand_ffs,
5352 expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
5353 expand_float, expand_fix): Likewise.
5354 * expr.c (convert_move, convert_modes, expand_expr_real_2,
5355 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
5356 * stor-layout.c (get_mode_bounds): Likewise.
5357 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
5358 Likewise.
5359 * convert.c (convert_to_integer): Likewise.
5360 * expmed.c (expand_shift_1): Likewise.
5361
5362 * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
5363 a bitsize.
5364
5365 * optabs.c (expand_binop): Tighten conditions for doubleword
5366 expansions.
5367 (widen_bswap): Assert that mode bitsize and precision are the same.
5368 * stor-layout.c (get_best_mode): Skip modes that have lower
5369 precision than bitsize.
5370 * recog.c (simplify_while_replacing): Assert that bitsize and
5371 precision are the same.
5372
5373 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5374
5375 * Makefile.in (LIBGCOV): Remove.
5376 (libgcc.mvars): Remove LIBGCOV.
5377 * libgov.c: Move to ../libgcc.
5378
5379 2011-07-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5380
5381 * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
5382
5383 2011-07-08 Martin Jambor <mjambor@suse.cz>
5384
5385 * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
5386 is too big for total scalarization.
5387
5388 2011-07-07 Richard Henderson <rth@redhat.com>
5389
5390 * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
5391 (DBX_DEBUGGING_INFO): Undef.
5392
5393 2011-07-07 Richard Henderson <rth@redhat.com>
5394
5395 * dwarf2out.c (output_cfi_directive): Export. Add FILE parameter.
5396 Handle some opcodes specially for debugging.
5397 * print-rtl.c: Include dwarf2out.h
5398 (print_rtx): Handle NOTE_INSN_CFI.
5399 * Makefile.in (print-rtl.o): Update.
5400
5401 2011-07-07 Richard Henderson <rth@redhat.com>
5402
5403 * tree-pass.h (pass_dwarf2_frame): Declare.
5404 * passes.c (init_optimization_passes): Add it.
5405 * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
5406 (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
5407 make static, do not call add_cfis_to_fde.
5408 (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
5409 dwarf2out_frame_init): Merge into...
5410 (execute_dwarf2_frame): ... here. New function.
5411 (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean. Change
5412 saved_do_cfi_asm to a tri-state variable.
5413 (gate_dwarf2_frame, pass_dwarf2_frame): New.
5414 * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
5415 if it has yet to be done. Don't call dwarf2cfi_function_init.
5416 * dwarf2out.h, debug.h: Update decls.
5417 * final.c (final_start_function): Don't call
5418 dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
5419 * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
5420 * toplev.c (lang_dependent_init): Likewise.
5421
5422 2011-07-07 Richard Henderson <rth@redhat.com>
5423
5424 * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
5425 FDE_TABLE_INCREMENT): Replace with...
5426 (fde_vec): ... this, a new vector.
5427 (current_fde): Remove. Replace all users with cfun->fde.
5428 (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
5429 (size_of_aranges, dwarf2out_finish): Likewise.
5430 (dwarf2out_alloc_current_fde): Break out from ...
5431 (dwarf2out_begin_prologue): ... here.
5432 (dwarf2out_frame_init): Remove.
5433 * dwarf2cfi.c: Update all users of current_fde.
5434 (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
5435 * dwarf2out.h: Update decls.
5436 (dw_fde_node): Add fde_index member.
5437 * function.h (struct function): Add fde member.
5438
5439 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5440 Richard Henderson <rth@redhat.com>
5441
5442 * dwarf2cfi.c (add_cfi): Remove.
5443 (dwarf2out_cfi_label): Remove force argument. Only generate the
5444 label name.
5445 (add_fde_cfi): Simplify the different code paths.
5446 (add_cie_cfi): New.
5447 (old_cfa, old_cfa_remember): New.
5448 (def_cfa_1, reg_save): Remove label, add for_cie parameter.
5449 (last_reg_save_label): Remove.
5450 (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
5451 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
5452 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
5453 dwarf2out_frame_debug_cfa_expression,
5454 dwarf2out_frame_debug_cfa_restore,
5455 dwarf2out_frame_debug_cfa_window_save,
5456 dwarf2out_frame_debug_expr): Remove label parameter.
5457 (cfi_label_required_p, add_cfis_to_fde): New.
5458 (dwarf2out_frame_debug_after_prologue): New.
5459 (dwarf2cfi_frame_init): Initialize old_cfa.
5460 (dwarf2out_frame_debug_restore_state): Likewise.
5461 * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
5462 (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
5463 * final.c (final_start_function): Call
5464 dwarf2out_frame_debug_after_prologue.
5465
5466 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5467 Richard Henderson <rth@redhat.com>
5468
5469 * dwarf2cfi.c (cfi_insn): New.
5470 (dwarf2out_cfi_label): Don't emit cfi label here.
5471 (add_fde_cfi): Create a NOTE_INSN_CFI.
5472 (dwarf2out_frame_debug): Setup cfi_insn.
5473 (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
5474 (dwarf2out_cfi_begin_epilogue): Make static.
5475 (dwarf2out_frame_debug_restore_state): Make static.
5476 * dwarf2out.c (output_cfi_directive): Make static.
5477 (dwarf2out_emit_cfi): New.
5478 * dwarf2out.h: Update.
5479 * final.c (final): Remove CFI notes.
5480 (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
5481 dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
5482 Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
5483 * insn-notes.def (NOTE_INSN_CFI): New.
5484 (NOTE_INSN_CFI_LABEL): New.
5485 * rtl.h (union rtunion_def): Add rt_cfi member.
5486 (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
5487
5488 2011-07-07 Richard Henderson <rth@redhat.com>
5489
5490 * dwarf2cfi.c: New file.
5491 * Makefile.in (OBJS): Add it.
5492 (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
5493 * gengtype.c (open_base_files): Include dwarf2out.h.
5494 * coretypes.h (enum var_init_status): Move from ...
5495 * rtl.h: ... here.
5496 * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
5497 dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
5498 expand_builtin_dwarf_sp_column, init_return_column_size,
5499 expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
5500 dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
5501 lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
5502 old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
5503 stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
5504 compute_barrier_args_size, dwarf2out_args_size,
5505 dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
5506 queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
5507 compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
5508 queue_reg_save, dwarf2out_flush_queued_reg_saves,
5509 clobbers_queued_reg_save, reg_saved_in, cfa_temp,
5510 dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
5511 dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
5512 dwarf2out_frame_debug_cfa_expression,
5513 dwarf2out_frame_debug_cfa_restore,
5514 dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
5515 dwarf2out_frame_debug, dwarf2out_frame_debug_init,
5516 dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
5517 get_cfa_from_loc_descr): Move to dwarf2cfi.c.
5518 (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
5519 dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
5520 dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
5521 dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
5522 dw_loc_descr_node): Move to dwarf2out.h.
5523 (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
5524 mem_loc_descriptor): Export.
5525 (build_cfa_aligned_loc): Export. Take CFA as a parameter.
5526 (dwarf2out_frame_init): Extract CIE generation code to
5527 dwarf2cfi_frame_init.
5528
5529 2011-07-07 Eric Botcazou <ebotcazou@adacore.com>
5530
5531 PR target/49660
5532 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
5533 MASK_V8PLUS, remove commented out flag and reorder.
5534
5535 2011-07-07 Jakub Jelinek <jakub@redhat.com>
5536
5537 PR c/49644
5538 * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
5539 one non-complex and one complex argument, call c_save_expr on both
5540 operands.
5541
5542 2011-07-07 Martin Jambor <mjambor@suse.cz>
5543
5544 PR middle-end/49495
5545 * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
5546 (verify_cgraph_node): Some functinality moved to
5547 verify_edge_corresponds_to_fndecl, call it.
5548
5549 2011-07-07 Joseph Myers <joseph@codesourcery.com>
5550
5551 * config.gcc (*local*): Remove.
5552 * doc/install-old.texi: Don't mention local configurations.
5553
5554 2011-07-07 Jakub Jelinek <jakub@redhat.com>
5555
5556 PR debug/49522
5557 * df-problems.c (dead_debug_reset): Remove dead_debug_uses
5558 referencing debug insns that have been reset.
5559 (dead_debug_insert_before): Don't assert reg is non-NULL,
5560 instead return immediately if it is NULL.
5561
5562 2011-07-07 Joseph Myers <joseph@codesourcery.com>
5563
5564 * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
5565
5566 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5567
5568 * hw-doloop.c: New file.
5569 * hw-doloop.h: New file.
5570 * Makefile.in (OBJS): Add hw-doloop.o.
5571 (hw-doloop.o): New rule.
5572 ($(obj_out_file)): Add hw-doloop.h dependency.
5573 * config/bfin/bfin.c: Include "hw-doloop.h".
5574 (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
5575 (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
5576 (hwloop_optimize): Renamed from bfin_optimize_loop. Argument
5577 type changed to hwloop_info. Return bool, true if the loop was
5578 successfully optimized. Remove code that was moved to
5579 hw-doloop.c, and adjust other parts.
5580 (hwloop_fail): New static function, containing parts that used
5581 to be in bfin_optimize_loop.
5582 (bfin_discover_loop, bfin_discover_loops, free_loops,
5583 bfin_reorder_loops): Remove.
5584 (hwloop_pattern_reg): New static function.
5585 (bfin_doloop_hooks): New variable.
5586 (bfin_reorg_loops): Remove most code, call reorg_loops.
5587 * config/bfin/bfin.md (doloop_end splitter): Also enable if
5588 loop counter is a memory_operand.
5589
5590 2011-07-07 H.J. Lu <hongjiu.lu@intel.com>
5591
5592 * config.gcc: Support --with-multilib-list for x86 Linux targets.
5593
5594 * configure.ac: Mention x86-64 for --with-multilib-list.
5595 * configure: Regenerated.
5596
5597 * config/i386/gnu-user64.h (SPEC_64): Support x32.
5598 (SPEC_32): Likewise.
5599 (ASM_SPEC): Likewise.
5600 (LINK_SPEC): Likewise.
5601 (TARGET_THREAD_SSP_OFFSET): Likewise.
5602 (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
5603 (SPEC_X32): New.
5604
5605 * config/i386/i386.h (TARGET_X32): New.
5606 (TARGET_LP64): New.
5607 (LONG_TYPE_SIZE): Likewise.
5608 (POINTER_SIZE): Likewise.
5609 (POINTERS_EXTEND_UNSIGNED): Likewise.
5610 (OPT_ARCH64): Support x32.
5611 (OPT_ARCH32): Likewise.
5612
5613 * config/i386/i386.opt (mx32): New.
5614
5615 * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
5616 (GLIBC_DYNAMIC_LINKERX32): Likewise.
5617 * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
5618 (GLIBC_DYNAMIC_LINKERX32): Likewise.
5619
5620 * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
5621 (BIONIC_DYNAMIC_LINKERX32): Likewise.
5622 (GNU_USER_DYNAMIC_LINKERX32): Likewise.
5623
5624 * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
5625
5626 * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
5627
5628 * doc/invoke.texi: Document -mx32.
5629
5630 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
5631
5632 * doc/invoke.texi (mwords-little-endian): Deprecate.
5633 * config/arm/arm.opt (mwords-little-endian): Likewise.
5634 * config/arm/arm.c (arm_option_override): Warn about the deprecation
5635 of -mwords-little-endian.
5636
5637 2011-07-07 Richard Sandiford <richard.sandiford@linaro.org>
5638
5639 * reload1.c (choose_reload_regs): Use mode sizes to check whether
5640 an old reload register completely defines the required value.
5641
5642 2011-07-07 Richard Guenther <rguenther@suse.de>
5643
5644 * fold-const.c (fold_unary_loc): Do not strip sign-changes
5645 for NEGATE_EXPR.
5646
5647 2011-07-07 Richard Guenther <rguenther@suse.de>
5648
5649 * tree-vrp.c (simplify_conversion_using_ranges): New function.
5650 (simplify_stmt_using_ranges): Call it.
5651
5652 2011-07-07 Kai Tietz <ktietz@redhat.com>
5653
5654 * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
5655 (lookup_logical_inverted_value): Likewise.
5656 (simplify_bitwise_binary_1): Likewise.
5657 (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
5658
5659 2011-07-07 Joseph Myers <joseph@codesourcery.com>
5660
5661 * gcc.c (%[Spec]): Don't document.
5662 (struct spec_list): Update comment.
5663 (do_spec_1): Don't handle %[Spec].
5664 * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
5665
5666 2011-07-07 Joseph Myers <joseph@codesourcery.com>
5667
5668 * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
5669 default based on TARGET_ASM_NAMED_SECTION.
5670 * common/common-target.def (have_named_sections): Default to true.
5671 * common/config/default-common.c: Don't include tm.h.
5672 * common/config/picochip/picochip-common.c
5673 (TARGET_HAVE_NAMED_SECTIONS): Don't define.
5674 * common/config/m32c/m32c-common.c: Remove.
5675 * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
5676 * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5677 * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5678 * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5679 * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5680 * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5681 * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
5682
5683 2011-07-07 Jakub Jelinek <jakub@redhat.com>
5684
5685 PR middle-end/49640
5686 * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
5687 and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
5688
5689 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5690
5691 PR libmudflap/49550
5692 * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
5693
5694 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5695
5696 PR target/39150
5697 * configure.ac (gcc_cv_as_hidden): Also accept
5698 x86_64-*-solaris2.1[0-9]*.
5699 (gcc_cv_as_cfi_directive): Likewise.
5700 (gcc_cv_as_comdat_group_group): Likewise.
5701 (set_have_as_tls): Likewise.
5702 * configure: Regenerate.
5703 * config.gcc (i[34567]86-*-solaris2*): Also handle
5704 x86_64-*-solaris2.1[0-9]*.
5705 * config.host (i[34567]86-*-solaris2*): Likewise.
5706 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
5707 * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
5708 [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
5709 (TARGET_LD_EMULATION): Use it.
5710 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
5711 (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
5712 * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
5713 (ASM_CPU64_DEFAULT_SPEC): Define.
5714 (ASM_CPU_SPEC): Use %(asm_cpu_default).
5715 (ASM_SPEC): Redefine.
5716 (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
5717 * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
5718 * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
5719 (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
5720 configuration.
5721 (Specific, x86_64-*-solaris2.1[0-9]*): Document.
5722
5723 2011-07-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5724
5725 * config/sol2.h (ASM_SPEC): Split into ...
5726 (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
5727 * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
5728 * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
5729 (ASM_SPEC): Use ASM_SPEC_BASE.
5730 * config/sparc/sol2.h (ASM_SPEC): Redefine.
5731
5732 2011-07-07 Georg-Johann Lay <avr@gjlay.de>
5733
5734 * config/avr/avr.md (*reload_insi): Change predicate #1 to
5735 const_int_operand. Ditto for peep2 producing this insn.
5736 Add argument to output_reload_insisf call.
5737 (*movsi,*movsf): Add argument to output_movsisf call.
5738 (*reload_insf): New insn and new peep2 to produce it.
5739 * config/avr/avr-protos.h (output_movsisf): Change prototype.
5740 (output_reload_insisf): Change prototype.
5741 * config/avr/avr.c (avr_asm_len): New function.
5742 (output_reload_insisf): Rewrite.
5743 (output_movsisf): Change prototype. output_reload_insisf for
5744 all CONST_INT and CONST_DOUBLE. ALlow moving 0.0f to memory.
5745 (adjust_insn_length): Add argument to output_movsisf and
5746 output_reload_insisf call.
5747
5748 2011-07-07 Bernd Schmidt <bernds@codesourcery.com>
5749
5750 * emit-rtl.c (paradoxical_subreg_p): New function.
5751 * rtl.h (paradoxical_subreg_p): Declare.
5752 * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
5753 apply_distributive_law, simplify_comparison, simplify_set): Use it.
5754 * cse.c (record_jump_cond, cse_insn): Likewise.
5755 * expr.c (force_operand): Likewise.
5756 * rtlanal.c (num_sign_bit_copies1): Likewise.
5757 * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
5758 * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
5759 (push_reload): Use precision to check for paradoxical subregs.
5760 * expmed.c (extract_bit_field_1): Likewise.
5761
5762 * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
5763 * combine.c (set_nonzero_bits_and_sign_copies): Use it.
5764 (find_split-point, combine_simplify_rtx, simplify_if_then_else,
5765 simplify_set, simplify_logical, expand_compound_operation,
5766 make_extraction, force_to_mode, if_then_else_cond, extended_count,
5767 try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
5768 record_value_for_reg): Likewise.
5769 * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
5770 * simplify-rtx. c (simplify_unary_operation_1,
5771 simplify_binary_operation_1, simplify_const_relational_operation):
5772 Likewise.
5773
5774 * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
5775 instead of GET_MODE_BITSIZE where appropriate.
5776 * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
5777 num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
5778 init_num_sign_bit_copies_in_rep): Likewise.
5779 * cse.c (fold_rtx, cse_insn): Likewise.
5780 * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
5781 * simplify-rtx.c (simplify_unary_operation_1,
5782 simplify_const_unary_operation, simplify_binary_operation_1,
5783 simplify_const_binary_operation, simplify_ternary_operation,
5784 simplify_const_relational_operation, simplify_subreg): Likewise.
5785 * combine.c (try_combine, find_split_point, combine_simplify_rtx,
5786 simplify_if_then_else, simplify_set, expand_compound_operation,
5787 expand_field_assignment, make_extraction, if_then_else_cond,
5788 make_compound_operation, force_to_mode, make_field_assignment,
5789 reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
5790 extended_count, try_widen_shift_mode, simplify_shift_const_1,
5791 simplify_comparison, record_promoted_value, simplify_compare_const,
5792 record_dead_and_set_regs_1): Likewise.
5793
5794 Revert:
5795 * simplify-rtx.c (simplify_const_binary_operation): Use the
5796 shift_truncation_mask hook instead of performing modulo by width.
5797 Compare against mode precision, not bitsize.
5798 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
5799 Use shift_truncation_mask instead of constructing the value manually.
5800
5801 2011-07-06 Michael Meissner <meissner@linux.vnet.ibm.com>
5802
5803 * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
5804 declaration.
5805 (rs6000_save_toc_in_prologue_p): Ditto.
5806
5807 * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
5808 up the static chain (r11) during indirect function calls.
5809 (-msave-toc-indirect): New undocumented debug switch.
5810
5811 * config/rs6000/rs6000.c (struct machine_function): Add
5812 save_toc_in_prologue field to note whether the prologue needs to
5813 save the TOC value in the reserved stack location.
5814 (rs6000_emit_prologue): Use TOC_REGNUM instead of 2. If we need
5815 to save the TOC in the prologue, do so.
5816 (rs6000_trampoline_init): Don't allow creating AIX style
5817 trampolines if -mno-r11 is in effect.
5818 (rs6000_call_indirect_aix): New function to create AIX style
5819 indirect calls, adding support for -mno-r11 to suppress loading
5820 the static chain, and saving the TOC in the prologue instead of
5821 the call body.
5822 (rs6000_save_toc_in_prologue_p): Return true if we are saving the
5823 TOC in the prologue.
5824
5825 * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
5826 register numbers.
5827 (TOC_REGNUM): Ditto.
5828 (STATIC_CHAIN_REGNUM): Ditto.
5829 (ARG_POINTER_REGNUM): Ditto.
5830 (SFP_REGNO): Delete, unused.
5831 (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
5832 function descriptor offsets.
5833 (TOC_SAVE_OFFSET_64BIT): Ditto.
5834 (AIX_FUNC_DESC_TOC_32BIT): Ditto.
5835 (AIX_FUNC_DESC_TOC_64BIT): Ditto.
5836 (AIX_FUNC_DESC_SC_32BIT): Ditto.
5837 (AIX_FUNC_DESC_SC_64BIT): Ditto.
5838 (ptrload): New mode attribute for the appropriate load of a pointer.
5839 (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
5840 (call_indirect_aix64): Ditto.
5841 (call_value_indirect_aix32): Ditto.
5842 (call_value_indirect_aix64): Ditto.
5843 (call_indirect_nonlocal_aix32_internal): Ditto.
5844 (call_indirect_nonlocal_aix32): Ditto.
5845 (call_indirect_nonlocal_aix64_internal): Ditto.
5846 (call_indirect_nonlocal_aix64): Ditto.
5847 (call): Rewrite AIX indirect function calls. Add support for
5848 eliminating the static chain, and for moving the save of the TOC
5849 to the function prologue.
5850 (call_value): Ditto.
5851 (call_indirect_aix<ptrsize>): Ditto.
5852 (call_indirect_aix<ptrsize>_internal): Ditto.
5853 (call_indirect_aix<ptrsize>_internal2): Ditto.
5854 (call_indirect_aix<ptrsize>_nor11): Ditto.
5855 (call_value_indirect_aix<ptrsize>): Ditto.
5856 (call_value_indirect_aix<ptrsize>_internal): Ditto.
5857 (call_value_indirect_aix<ptrsize>_internal2): Ditto.
5858 (call_value_indirect_aix<ptrsize>_nor11): Ditto.
5859 (call_nonlocal_aix32): Relocate in the rs6000.md file.
5860 (call_nonlocal_aix64): Ditto.
5861
5862 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
5863 -mno-r11 documentation.
5864
5865 2011-07-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5866
5867 PR other/49658
5868 * doc/extend.texi (Compound Literals): Fix typo.
5869
5870 2011-07-06 James Greenhalgh <james.greenhalgh@arm.com>
5871
5872 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
5873
5874 2011-07-06 Basile Starynkevitch <basile@starynkevitch.net>
5875
5876 * configure.ac (plugin-version.h): Generate
5877 GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
5878 GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
5879 macros.
5880
5881 * configure: Regenerate.
5882
5883 * doc/plugins.texi (Building GCC plugins): Mention
5884 GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
5885
5886 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
5887
5888 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
5889 * combine.c (make_extraction, gen_lowpart_or_truncate,
5890 apply_distributive_law, simplify_comparison,
5891 reg_truncated_to_mode, record_truncated_value): Use it.
5892 * cse.c (notreg_cost): Likewise.
5893 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
5894 * expr.c (convert_move, convert_modes): Likewise.
5895 * optabs.c (expand_binop, expand_unop): Likewise.
5896 * postreload.c (move2add_last_label): Likewise.
5897 * regmove.c (optimize_reg_copy_3): Likewise.
5898 * rtlhooks.c (gen_lowpart_general): Likewise.
5899 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
5900
5901 2011-07-06 Joseph Myers <joseph@codesourcery.com>
5902
5903 * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
5904
5905 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
5906
5907 * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
5908 * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
5909 (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
5910 (simplify_const_unary_operation, simplify_binary_operation_1,
5911 simplify_const_binary_operation, simplify_const_relational_operation):
5912 Use them. Use GET_MODE_MASK for masking and sign-extensions.
5913 * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
5914 combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
5915 simplify_shift_const_1, simplify_comparison): Likewise.
5916 * expr.c (convert_modes): Likewise.
5917 * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
5918 * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
5919 * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
5920
5921 * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
5922
5923 2011-07-06 Richard Guenther <rguenther@suse.de>
5924
5925 PR tree-optimization/49645
5926 * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
5927 register variables.
5928 * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
5929 in type qualification here ...
5930 (copy_reference_ops_from_ref): ... not here.
5931 (vn_reference_lookup_3): ... or here.
5932 (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
5933 (vn_reference_lookup): Do the lookup with a valueized ao-ref.
5934
5935 2011-07-06 Ian Lance Taylor <iant@google.com>
5936
5937 * doc/install.texi (Configuration): It's
5938 --enable-gnu-indirect-function, not --enable-indirect-function.
5939
5940 2011-07-06 Bernd Schmidt <bernds@codesourcery.com>
5941
5942 * simplify-rtx.c (simplify_const_binary_operation): Use the
5943 shift_truncation_mask hook instead of performing modulo by width.
5944 Compare against mode precision, not bitsize.
5945 * combine.c (combine_simplify_rtx, simplify_shift_const_1):
5946 Use shift_truncation_mask instead of constructing the value manually.
5947
5948 2011-07-06 H.J. Lu <hongjiu.lu@intel.com>
5949
5950 PR middle-end/47383
5951 * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
5952 address computation and convert to address_mode if needed.
5953
5954 2011-07-06 Richard Guenther <rguenther@suse.de>
5955
5956 * tree.c (build_common_tree_nodes_2): Merge with
5957 build_common_tree_nodes.
5958 * tree.h (build_common_tree_nodes): Adjust prototype.
5959 (build_common_tree_nodes_2): Remove.
5960 * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
5961 * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
5962
5963 2011-07-05 Jakub Jelinek <jakub@redhat.com>
5964
5965 PR tree-optimization/49618
5966 * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
5967 t recurse on the decl.
5968 <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
5969 return true if expr isn't known to be defined in current
5970 TU or some other LTO partition.
5971
5972 2011-07-05 Michael Meissner <meissner@linux.vnet.ibm.com>
5973
5974 * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
5975 override CASE_VALUES_THRESHOLD.
5976
5977 * stmt.c (toplevel): Include params.h.
5978 (case_values_threshold): Use the --param case-values-threshold
5979 value if non-zero, otherwise use machine dependent value.
5980 (expand_case): Use case_values_threshold.
5981
5982 * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
5983
5984 * doc/invoke.texi (--param case-values-threshold): Document.
5985
5986 2011-07-05 Richard Henderson <rth@redhat.com>
5987
5988 * dwarf2out.c (dwarf2out_cfi_label): Make static.
5989 (dwarf2out_flush_queued_reg_saves): Make static.
5990 (dwarf2out_reg_save): Remove.
5991 (dwarf2out_return_save): Remove.
5992 (dwarf2out_return_reg): Remove.
5993 (dwarf2out_reg_save_reg): Remove.
5994 (dwarf2out_def_cfa): Merge into ...
5995 (dwarf2out_frame_init): ... here.
5996 * dwarf2out.h, tree.h: Remove declarations as necessary.
5997
5998 2011-07-05 Richard Henderson <rth@redhat.com>
5999
6000 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
6001 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
6002 (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
6003 the alloc insn.
6004
6005 * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
6006 (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
6007 (process_epilogue): Don't call dwarf2out_def_cfa.
6008
6009 * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
6010 indicate the return address save.
6011 (process_cfa_register): Likewise.
6012
6013 * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
6014 (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
6015
6016 * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
6017 for ar.pfs save at alloc insn.
6018
6019 2011-07-05 Richard Henderson <rth@redhat.com>
6020
6021 * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
6022 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
6023 (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
6024 stack pointer save.
6025 (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
6026 (arm_unwind_emit): Walk REG_NOTES for unwinding notes. Emit
6027 proper unwind info for a REG_CFA_REGISTER save of stack pointer.
6028 * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
6029
6030 2011-07-05 Richard Henderson <rth@redhat.com>
6031
6032 * config/vax/vax.md (define_c_enum unspecv): New. Define the
6033 VUNSPEC_* constants here instead of via define_constants.
6034 (VUNSPEC_PEM): New constant.
6035 (procedure_entry_mask): New insn.
6036 (prologue): New expander.
6037 * config/vax/vax.c (vax_add_reg_cfa_offset): New.
6038 (vax_expand_prologue): Rename from vax_output_function_prologue;
6039 emit rtl instead of text.
6040 (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
6041 (print_operand): Add 'x' prefix.
6042
6043 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
6044
6045 PR middle-end/47715
6046 * calls.c (precompute_register_parameters): Promote the function
6047 argument before checking non-legitimate constant.
6048
6049 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6050
6051 PR tree-optimization/47654
6052 * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
6053 (lst_do_strip_mine_loop): Return an int.
6054 (lst_do_strip_mine): Same.
6055 (scop_do_strip_mine): Same.
6056 (scop_do_block): Loop blocking should strip-mine at least two loops.
6057 * graphite-interchange.c (lst_interchange_select_outer): Return an int.
6058 (scop_do_interchange): Same.
6059 * graphite-poly.h (scop_do_interchange): Update declaration.
6060 (scop_do_strip_mine): Same.
6061
6062 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6063
6064 * graphite-clast-to-gimple.c (precision_for_value): Removed.
6065 (precision_for_interval): Removed.
6066 (gcc_type_for_interval): Use mpz_sizeinbase.
6067
6068 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6069
6070 * graphite-ppl.h (value_max): Correct computation of max.
6071
6072 2011-07-05 Sebastian Pop <sebastian.pop@amd.com>
6073
6074 * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
6075
6076 2011-07-05 Richard Guenther <rguenther@suse.de>
6077
6078 * c-decl.c (c_init_decl_processing): Defer building common
6079 tree nodes to c_common_nodes_and_builtins.
6080
6081 2011-07-05 Razya Ladelsky <razya@il.ibm.com>
6082
6083 PR tree-optimization/49580
6084 * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
6085 the loop's number of iterations.
6086 * tree-parloops.c (transform_to_exit_first_loop): Add the
6087 handling of the loop's number of iterations before the call
6088 to gimple_duplicate_sese_tail.
6089 Insert the stmt caclculating the new rhs of the loop's
6090 condition stmt to the preheader instead of iters_bb.
6091
6092 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
6093
6094 PR rtl-optimization/47449
6095 * fwprop.c (forward_propagate_subreg): Don't propagate hard
6096 register nor zero/sign extended hard register.
6097
6098 2011-07-05 Richard Guenther <rguenther@suse.de>
6099
6100 PR tree-optimization/49518
6101 PR tree-optimization/49628
6102 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
6103 irrelevant and invariant data-references.
6104 (vect_analyze_data_ref_access): For invariant loads clear the
6105 group association.
6106
6107 2011-07-04 Jakub Jelinek <jakub@redhat.com>
6108
6109 PR rtl-optimization/49619
6110 * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
6111 pass VOIDmode as op0_mode to recursive call, and return temp even
6112 when different from tor, just if it is not IOR of the original
6113 PLUS arguments.
6114
6115 PR rtl-optimization/49472
6116 * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
6117 negating MULT, negate the second operand instead of first.
6118 (simplify_binary_operation_1) <case MULT>: If one operand is
6119 a NEG and the other is MULT, don't attempt to optimize by negation
6120 of the MULT operand if it only moves the NEG operation around.
6121
6122 PR debug/49602
6123 * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
6124 get_current_def return value if it can't be trusted to be
6125 the current value of the variable in the current bb.
6126
6127 2011-07-04 Uros Bizjak <ubizjak@gmail.com>
6128
6129 PR target/49600
6130 * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
6131 general register to memory for !TARGET_INTER_UNIT_MOVES.
6132
6133 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
6134
6135 PR target/44643
6136 * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
6137 instead of TREE_READONLY.
6138
6139 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
6140
6141 * doc/extend.texi (AVR Built-in Functions): Update documentation
6142 of __builtin_avr_fmul*.
6143 * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
6144 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
6145 * config/avr/avr.md (fmul): Rename to fmul_insn.
6146 (fmuls): Rename to fmuls_insn.
6147 (fmulsu): Rename to fmulsu_insn.
6148 (fmul,fmuls,fmulsu): New expander.
6149 (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
6150 * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
6151 * config/avr/libgcc.S (__fmul): New function.
6152 (__fmuls): New function.
6153 (__fmulsu,__fmulsu_exit): New function.
6154
6155 2011-07-04 Richard Guenther <rguenther@suse.de>
6156
6157 PR tree-optimization/49615
6158 * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
6159 basic-block index check.
6160
6161 2011-07-04 Georg-Johann Lay <avr@gjlay.de>
6162
6163 * longlong.h (count_leading_zeros, count_trailing_zeros,
6164 COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
6165 resp. 64.
6166
6167 2011-07-03 Ira Rosen <ira.rosen@linaro.org>
6168
6169 PR tree-optimization/49610
6170 * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
6171 a basic block.
6172
6173 2011-07-02 Eric Botcazou <ebotcazou@adacore.com>
6174 Olivier Hainque <hainque@adacore.com>
6175 Nicolas Setton <setton@adacore.com>
6176
6177 * tree.h (TYPE_ARTIFICIAL): New flag.
6178 * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
6179 the DIE of the type if it is artificial.
6180 (gen_array_type_die): Likewise.
6181 (gen_enumeration_type_die): Likewise.
6182 (gen_struct_or_union_type_die): Likewise.
6183 * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
6184 * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
6185
6186 2011-07-01 Jakub Jelinek <jakub@redhat.com>
6187
6188 * tree-object-size.c (pass_through_call): Handle
6189 BUILT_IN_ASSUME_ALIGNED.
6190
6191 2011-07-01 Martin Jambor <mjambor@suse.cz>
6192
6193 * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
6194
6195 2011-07-01 H.J. Lu <hongjiu.lu@intel.com>
6196
6197 PR middle-end/48016
6198 * explow.c (update_nonlocal_goto_save_area): Use proper mode
6199 for stack save area.
6200 * function.c (expand_function_start): Likewise.
6201
6202 2011-07-01 Richard Guenther <rguenther@suse.de>
6203
6204 PR middle-end/49596
6205 * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
6206 may have unknown refs.
6207
6208 2011-07-01 Kai Tietz <ktietz@redhat.com>
6209
6210 * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
6211
6212 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6213
6214 * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
6215 * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
6216 (Specific, mips-sgi-irix6): Likewise.
6217
6218 2011-07-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6219
6220 PR libmudflap/49549
6221 * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
6222
6223 2011-07-01 Jakub Jelinek <jakub@redhat.com>
6224
6225 * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
6226 [idx]= and [idx1 ... idx2]= before initializers if needed for
6227 array initializers.
6228
6229 2011-07-01 Chen Liqin <liqin.gcc@gmail.com>
6230
6231 * config.gcc (score-*-elf): Remove score7.o.
6232 * config/score/t-score-elf: Likewise.
6233 * config/score/score.c: Merge score7 to score.c and
6234 remove forwarding functions.
6235 * config/score/score7.c: Deleted.
6236 * config/score/score7.h: Deleted.
6237
6238 2011-07-01 Richard Guenther <rguenther@suse.de>
6239
6240 PR tree-optimization/49603
6241 * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
6242
6243 2011-06-30 Martin Jambor <mjambor@suse.cz>
6244
6245 * tree-sra.c (struct access): Rename total_scalarization to
6246 grp_total_scalarization
6247 (completely_scalarize_var): New function.
6248 (sort_and_splice_var_accesses): Set total_scalarization in the
6249 representative access.
6250 (analyze_access_subtree): Propagate total scalarization accross the
6251 tree, no holes in totally scalarized trees, simplify coverage
6252 computation.
6253 (analyze_all_variable_accesses): Call completely_scalarize_var instead
6254 of completely_scalarize_record.
6255
6256 2011-06-30 Richard Henderson <rth@redhat.com>
6257
6258 * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
6259 (TARGET_DEEP_BRANCH_PREDICTION): Remove.
6260 * config/i386/i386.c: Don't include dwarf2out.h.
6261 (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
6262 (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
6263 all code dead thereafter. Don't do dwarf2out_flush_queued_reg_saves.
6264 (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
6265 (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
6266
6267 2011-06-30 Richard Henderson <rth@redhat.com>
6268
6269 * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
6270 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
6271 * final.c (final_scan_insn): Look for it, and invoke
6272 dwarf2out_frame_debug before the insn if found.
6273
6274 2011-06-30 Richard Henderson <rth@redhat.com>
6275
6276 * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
6277 as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
6278
6279 2011-06-30 Richard Henderson <rth@redhat.com>
6280
6281 * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
6282 Define a vector of this type.
6283 (regs_saved_in_regs): Use a VEC.
6284 (num_regs_saved_in_regs): Remove.
6285 (compare_reg_or_pc): New.
6286 (record_reg_saved_in_reg): Split out from...
6287 (dwarf2out_flush_queued_reg_saves): ... here.
6288 (clobbers_queued_reg_save): Update for VEC.
6289 (reg_saved_in): Likewise.
6290 (dwarf2out_frame_debug_init): Likewise.
6291 (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
6292 (dwarf2out_frame_debug_cfa_register): Likewise.
6293
6294 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
6295
6296 PR tree-optimization/49572
6297 * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
6298 type of the RHS instead of that of the LHS for the expression type.
6299
6300 2011-06-30 Eric Botcazou <ebotcazou@adacore.com>
6301
6302 * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
6303 unconditionally.
6304
6305 2011-06-30 Richard Guenther <rguenther@suse.de>
6306
6307 * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
6308 * tree-ssa-structalias.c (create_variable_info_for): Do not
6309 add initial constraints for non-var-decls. Properly handle
6310 globals in other ltrans partitions.
6311 (intra_create_variable_infos): Manually create constraints for
6312 the fake no-alias parameter.
6313 (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
6314 and assert there are no clones.
6315
6316 2011-06-30 Richard Guenther <rguenther@suse.de>
6317
6318 PR tree-optimization/46787
6319 * tree-data-ref.c (dr_address_invariant_p): Remove.
6320 (find_data_references_in_stmt): Invariant accesses are ok now.
6321 * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
6322 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
6323 invariant loads.
6324
6325 2011-06-30 Martin Jambor <mjambor@suse.cz>
6326
6327 PR tree-optimization/49094
6328 * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
6329 (build_accesses_from_assign): Use it.
6330
6331 2011-06-30 Jakub Jelinek <jakub@redhat.com>
6332
6333 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
6334 handling of BUILT_IN_ASSUME_ALIGNED.
6335
6336 PR debug/49364
6337 * dwarf2out.c (output_abbrev_section): Don't return early
6338 if abbrev_die_table_in_use is 1.
6339 (dwarf2out_finish): Instead don't call output_abbrev_section
6340 nor emit abbrev_section_label in that case.
6341
6342 2011-06-30 Nick Clifton <nickc@redhat.com>
6343
6344 * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
6345 for the V850E.
6346
6347 2011-06-30 Jakub Jelinek <jakub@redhat.com>
6348
6349 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
6350 handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
6351
6352 2011-06-30 Ira Rosen <ira.rosen@linaro.org>
6353
6354 * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
6355 both pattern and original statements if necessary.
6356 (vect_transform_loop): Likewise.
6357 * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
6358 * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
6359 Mark the pattern statement only if the original statement doesn't
6360 have its own uses.
6361 (process_use): Call vect_mark_relevant with additional parameter.
6362 (vect_mark_stmts_to_be_vectorized): Likewise.
6363 (vect_get_vec_def_for_operand): Use vectorized pattern statement.
6364 (vect_analyze_stmt): Handle both pattern and original statements
6365 if necessary.
6366 (vect_transform_stmt): Don't store vectorized pattern statement
6367 in the original statement.
6368 (vect_is_simple_use_1): Use related pattern statement only if the
6369 original statement is irrelevant.
6370 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
6371
6372 2011-06-29 Changpeng Fang <changpeng.fang@amd.com>
6373
6374 * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
6375 option.
6376 * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
6377 entry.
6378 (TARGET_AVX128_OPTIMAL): New definition.
6379 * config/i386/i386.c (initial_ix86_tune_features): Initialize
6380 X86_TUNE_AVX128_OPTIMAL entry.
6381 (ix86_option_override_internal): Enable the generation
6382 of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
6383 (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
6384 (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
6385
6386 2011-06-29 Eric Botcazou <ebotcazou@adacore.com>
6387
6388 PR tree-optimization/49539
6389 * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
6390 names by means of stmt_references_abnormal_ssa_name.
6391 (associate_plusminus): Call can_propagate_from before propagating
6392 from definition statements.
6393 (ssa_forward_propagate_and_combine): Remove superfluous newline.
6394
6395 2011-06-29 Richard Guenther <rguenther@suse.de>
6396
6397 * doc/invoke.texi: Document -scev dump modifier.
6398 * tree-pass.h (TDF_SCEV): New dump flag.
6399 * tree-dump.c (dump_option_value_in): Add scev.
6400 * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
6401 * tree-scalar-evolution.c: Likewise.
6402
6403 2011-06-29 Nathan Sidwell <nathan@codesourcery.com>
6404
6405 * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
6406 (cxa_type_match): Correct declaration.
6407 (__gnu_unwind_pr_common): Reconstruct additional indirection
6408 when __cxa_type_match returns succeeded_with_ptr_to_base.
6409
6410 2011-06-29 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6411
6412 PR rtl-optimization/49114
6413 * reload.c (struct replacement): Remove SUBREG_LOC member.
6414 (push_reload): Do not set it.
6415 (push_replacement): Likewise.
6416 (subst_reload): Remove dead code.
6417 (copy_replacements): Remove assertion.
6418 (copy_replacements_1): Do not handle SUBREG_LOC.
6419 (move_replacements): Likewise.
6420 (find_replacement): Remove dead code. Use reload_adjust_reg_for_mode.
6421 Detect subregs via recursive descent instead of via SUBREG_LOC.
6422
6423 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
6424
6425 * config/avr/avr.c (avr_encode_section_info): Dispatch to
6426 default_encode_section_info.
6427
6428 2011-06-29 Richard Sandiford <richard.sandiford@linaro.org>
6429
6430 PR tree-optimization/49545
6431 * builtins.c (get_object_alignment_1): Update function comment.
6432 Do not use DECL_ALIGN for functions, but test
6433 TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
6434 * fold-const.c (get_pointer_modulus_and_residue): Don't check
6435 for functions here.
6436 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
6437
6438 2011-06-29 Jakub Jelinek <jakub@redhat.com>
6439
6440 PR debug/49567
6441 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
6442 non-MODE_INT modes instead of asserting the mode has MODE_INT class.
6443
6444 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
6445
6446 PR target/34734
6447 * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
6448 about uninitialized data attributed 'progmem' from here...
6449 (avr_encode_section_info): ...to this new function.
6450 (TARGET_ENCODE_SECTION_INFO): New define.
6451 (avr_section_type_flags): For data in ".progmem.data", remove
6452 section flag SECTION_WRITE.
6453
6454 2011-06-29 Georg-Johann Lay <avr@gjlay.de>
6455
6456 * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
6457 _xmulhisi3_exit.
6458 * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
6459 (__mulhisi3): Optimize if have MUL*. Use XJMP instead of rjmp.
6460 (__umulhisi3): Ditto.
6461 * config/avr/avr.md (mulhisi3): New insn expender.
6462 (umulhisi3): New insn expender.
6463 (*mulhisi3_call): New insn.
6464 (*umulhisi3_call): New insn.
6465
6466 2011-06-28 Joseph Myers <joseph@codesourcery.com>
6467
6468 * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
6469
6470 2011-06-28 Richard Henderson <rth@redhat.com>
6471
6472 * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop. Delete
6473 all code and arguments that handled pushes. Update all callers.
6474
6475 2011-06-28 Richard Henderson <rth@redhat.com>
6476
6477 * config/arm/arm.c (arm_output_function_prologue): Don't call
6478 thumb1_output_function_prologue.
6479 (arm_expand_prologue): Avoid dead store.
6480 (number_of_first_bit_set): Use ctz_hwi.
6481 (thumb1_emit_multi_reg_push): New.
6482 (thumb1_expand_prologue): Merge thumb1_output_function_prologue
6483 to emit the entire prologue as rtl.
6484 (thumb1_output_interwork): Split out from
6485 thumb1_output_function_prologue.
6486 (thumb1_output_function_prologue): Remove.
6487 (arm_attr_length_push_multi): Handle thumb1.
6488 * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
6489 (prologue_thumb1_interwork): New.
6490 (*push_multi): Allow thumb1; use push_mult_memory_operand.
6491 * config/arm/predicates.md (push_mult_memory_operand): New.
6492
6493 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
6494
6495 * config/sparc/sync.md (*stbar): Delete.
6496 (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
6497
6498 2011-06-28 Eric Botcazou <ebotcazou@adacore.com>
6499
6500 * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
6501
6502 2011-06-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6503
6504 * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
6505 (TARGET_64BIT_DEFAULT): Define.
6506 * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
6507 of tm_file.
6508 * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
6509
6510 2011-06-28 Joseph Myers <joseph@codesourcery.com>
6511
6512 * common.opt (in_lto_p): New Variable entry.
6513 * flags.h (in_lto_p): Move to common.opt.
6514 * gcc.c: Include params.h.
6515 (set_option_handlers): Also use common_handle_option and
6516 target_handle_option.
6517 (main): Call global_init_params, finish_params and init_options_struct.
6518 * opts.c (debug_type_names): Move from toplev.c.
6519 (print_filtered_help): Access quiet_flag through opts pointer.
6520 (common_handle_option): Return early in the driver for some options.
6521 Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
6522 opts pointer.
6523 * toplev.c (in_lto_p): Move to common.opt.
6524 (debug_type_names): Move to opts.c.
6525 * Makefile.in (OBJS): Remove opts.o.
6526 (OBJS-libcommon-target): Add opts.o.
6527 (gcc.o): Update dependencies.
6528
6529 2011-06-28 Kai Tietz <ktietz@redhat.com>
6530
6531 * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
6532
6533 2011-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6534
6535 * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
6536 with '=' constraint modifier.
6537 (*divdf3_vfp): Likewise.
6538 ("*mulsf3_vfp"): Likewise.
6539 ("*muldf3_vfp"): Likewise.
6540 ("*mulsf3negsf_vfp"): Likewise.
6541 ("*muldf3negdf_vfp"): Likewise.
6542
6543 2011-06-28 Nick Clifton <nickc@redhat.com>
6544
6545 * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
6546 relaxation when performing an incremental link.
6547
6548 2011-06-28 Kai Tietz <ktietz@redhat.com>
6549
6550 * tree-ssa-math-opts.c (execute_optimize_bswap): Search
6551 within BB from last to first.
6552
6553 2011-06-28 Joseph Myers <joseph@codesourcery.com>
6554
6555 * genattr-common.c: New. Based on genattr.c.
6556 * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
6557 (MOSTLYCLEANFILES): Add insn-attr-common.h.
6558 (opts.o): Update dependencies.
6559 (.PRECIOUS): Add insn-attr-common.h.
6560 (simple_rtl_generated_h): Add insn-attr-common.h.
6561 (build/genattr-common.o): New.
6562 (genprogrtl): Add attr-common.
6563 * genattr.c (main): Include insn-attr-common.h. Don't generate
6564 definitions of DELAY_SLOTS or INSN_SCHEDULING.
6565 * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
6566
6567 2011-06-28 Georg-Johann Lay <avr@gjlay.de>
6568
6569 * config.gcc (tm_file): Add elfos.h and avr/elf.h for
6570 avr-*-* and avr-*-rtems* targets.
6571
6572 * config/avr/elf.h: New file.
6573 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
6574 (TARGET_ASM_SELECT_SECTION): Define.
6575 (INIT_SECTION_ASM_OP): Undefine.
6576 (FINI_SECTION_ASM_OP): Undefine.
6577 (READONLY_DATA_SECTION_ASM_OP): Undefine.
6578 (PCC_BITFIELD_TYPE_MATTERS): Undefine.
6579 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
6580 * config/avr/avr.h:
6581 (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
6582 (TARGET_ASM_NAMED_SECTION): Move to elf.h.
6583 (MAX_OFILE_ALIGNMENT): Move to elf.h.
6584 (STRING_LIMIT): Move to elf.h.
6585 (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
6586 (ASM_DECLARE_OBJECT_NAME): Remove.
6587 (ESCAPES): Remove.
6588 (ASM_OUTPUT_SKIP): Remove.
6589 (DWARF2_DEBUGGING_INFO): Remove.
6590 (OBJECT_FORMAT_ELF): Remove.
6591 (USER_LABEL_PREFIX): Remove.
6592 (ASM_OUTPUT_EXTERNAL): Remove.
6593 (ASM_OUTPUT_ASCII): Remove.
6594 (TYPE_ASM_OP): Remove.
6595 (SIZE_ASM_OP): Remove.
6596 (WEAK_ASM_OP): Remove.
6597 (STRING_ASM_OP): Remove.
6598 (SET_ASM_OP): Remove.
6599 (ASM_WEAKEN_LABEL): Remove.
6600 (TYPE_OPERAND_FMT): Remove.
6601 (ASM_DECLARE_FUNCTION_SIZE): Remove.
6602 (ASM_FINISH_DECLARE_OBJECT): Remove.
6603 (NO_DOLLAR_IN_LABEL): Remove.
6604 (ASM_GENERATE_INTERNAL_LABEL): Remove.
6605 (ASM_OUTPUT_CASE_LABEL): Remove.
6606 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
6607 ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
6608 (gas_output_ascii): Remove.
6609 (gas_output_limited_string): Remove.
6610 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
6611 * config/avr/avr-protos.h
6612 (gas_output_ascii): Remove prototye.
6613 (gas_output_limited_string): Remove prototype.
6614
6615 2011-06-27 Richard Earnshaw <rearnsha@arm.com>
6616
6617 PR target/48637
6618 * arm.c (arm_print_operand): Allow sym+offset. Don't abort on invalid
6619 asm operands.
6620
6621 2011-06-27 Jan Hubicka <jh@suse.cz>
6622
6623 * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
6624 node instead of references in node.
6625
6626 2011-06-27 Richard Henderson <rth@redhat.com>
6627
6628 * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
6629 * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
6630 inside ifdef.
6631
6632 2011-06-27 Jakub Jelinek <jakub@redhat.com>
6633
6634 * c-decl.c (union lang_tree_node): Use it in chain_next expression.
6635
6636 * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
6637 * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
6638 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
6639 find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
6640 * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
6641 (evaluate_stmt, execute_fold_all_builtins): Handle
6642 BUILT_IN_ASSUME_ALIGNED.
6643 * tree-ssa-dce.c (propagate_necessity): Likewise.
6644 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
6645 call_may_clobber_ref_p_1): Likewise.
6646 * builtins.c (is_simple_builtin, expand_builtin): Likewise.
6647 (expand_builtin_assume_aligned): New function.
6648 * doc/extend.texi (__builtin_assume_aligned): Document.
6649
6650 PR debug/49544
6651 * cselib.c (promote_debug_loc): If cselib_preserve_constants
6652 and l has two DEBUG_INSN owned locs instead of just one, adjust
6653 the second location's setting_insn too.
6654
6655 2011-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6656
6657 PR libmudflap/38738
6658 * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
6659
6660 2011-06-27 Nick Clifton <nickc@redhat.com>
6661
6662 * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
6663 bit position of highest bit set into a count of the high zero bits.
6664
6665 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
6666
6667 * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
6668
6669 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
6670
6671 PR lto/48492
6672 * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
6673 to a NULL parent.
6674
6675 2011-06-27 Richard Guenther <rguenther@suse.de>
6676
6677 PR tree-optimization/49394
6678 * passes.c (execute_one_pass): Restore current_pass after
6679 applying IPA transforms.
6680
6681 2011-06-27 Kai Tietz <ktietz@redhat.com>
6682
6683 * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
6684 out of type precision after operation.
6685 (find_bswap): Take for limit value the integer auto-promotion
6686 into account.
6687
6688 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
6689
6690 * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
6691 forward scan as well.
6692
6693 2011-06-27 Tristan Gingold <gingold@adacore.com>
6694
6695 PR target/44241
6696 * config/vms/vms-protos.h: New file.
6697 * config/vms/vms-crtlmap.map: New file.
6698 * config/vms/vms.c: New file.
6699 * config/vms/make-crtlmap.awk: New file.
6700 * config/vms/vms-crtl.h: File removed.
6701 * config/vms/vms-crtl-64.h: File removed.
6702 * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
6703 * config/alpha/vms64.h: Do not include vms-crtl-64.h
6704 * config/alpha/alpha.c (alpha_init_builtins): Remove code to
6705 clear some builtins on VMS. Calls vms_patch_builtins.
6706 (avms_asm_output_external): Remove.
6707 * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
6708 (struct crtl_name_spec): Remove
6709 (DO_CTRL_NAMES): Remove.
6710 * config/ia64/vms.h (struct crtl_name_spec): Remove
6711 (DO_CTRL_NAMES): Remove.
6712 * config/ia64/ia64.c (alpha_init_builtins): Remove code to
6713 clear some builtins on VMS. Calls vms_patch_builtins.
6714 (ia64_asm_output_external): Remove DO_CRTL_NAME.
6715 * config/ia64/vms64.h: Do not include vms-crtl-64.h
6716 * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
6717
6718 2011-06-27 Tristan Gingold <gingold@adacore.com>
6719
6720 * config/alpha/alpha.c (alpha_end_function): Always generate .end
6721 directive on VMS.
6722
6723 2011-06-27 Eric Botcazou <ebotcazou@adacore.com>
6724
6725 * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
6726 the function receives nonlocal gotos.
6727
6728 2011-06-27 Richard Guenther <rguenther@suse.de>
6729
6730 PR tree-optimization/49536
6731 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
6732 For non-scalar inner types use a scalar type according to
6733 the scalar inner mode.
6734
6735 2011-06-27 Richard Guenther <rguenther@suse.de>
6736
6737 PR tree-optimization/49365
6738 * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
6739
6740 2011-06-27 Richard Guenther <rguenther@suse.de>
6741
6742 PR tree-optimization/49169
6743 * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
6744 the alignment of function decls.
6745
6746 2011-06-26 Iain Sandoe <iains@gcc.gnu.org>
6747
6748 PR target/47997
6749 * config/darwin.c (darwin_mergeable_string_section): Place string
6750 constants in '.cstring' rather than '.const' when CF/NSStrings are
6751 active.
6752
6753 2011-06-26 Eric Botcazou <ebotcazou@adacore.com>
6754
6755 * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
6756 (emit_save_register_window): Likewise.
6757 (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
6758 (sparc_flat_expand_prologue): Add comment. Always emit blockage.
6759 Swap back %o7/%i7 in register naming.
6760
6761 2011-06-25 Iain Sandoe <iains@gcc.gnu.org>
6762
6763 PR driver/49371
6764 * config/darwin.c (darwin_override_options): Improve warning when
6765 mdynamic-no-pic is given together with fPIC/fpic, also warn when it
6766 is given with fpie/fPIE.
6767 * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
6768 * config/darwin9.h (PIE_SPEC): New.
6769
6770 2011-06-25 Basile Starynkevitch <basile@starynkevitch.net>
6771
6772 * timevar.c (timevar_print): Increase width for display of timevar
6773 name.
6774
6775 2011-06-24 Jakub Jelinek <jakub@redhat.com>
6776
6777 PR c++/46400
6778 * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
6779 instead of TYPE_CHAIN for chain_next for types.
6780
6781 2011-06-24 Richard Henderson <rth@redhat.com>
6782
6783 * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
6784 (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
6785 * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
6786 (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
6787 (sparc_flat_expand_prologue): Emit individual instructions
6788 instead of one of the above.
6789
6790 2011-06-24 Easwaran Raman <eraman@google.com>
6791
6792 PR rtl-optimization/49429
6793 PR target/49454
6794 * expr.c (emit_block_move_hints): Mark MEM_EXPR(x) and
6795 MEM_EXPR(y) addressable if emit_block_move_via_libcall is
6796 used to copy y into x.
6797 * calls.c (initialize_argument_information): Mark
6798 an argument addressable if it is passed by invisible reference.
6799 (emit_library_call_value_1): Mark MEM_EXPR (val) addressable
6800 if it is passed by reference.
6801
6802 2011-06-24 H.J. Lu <hongjiu.lu@intel.com>
6803
6804 PR rtl-optimization/49504
6805 * rtlanal.c (nonzero_bits1): Properly handle addition or
6806 subtraction of a pointer in Pmode if pointers extend unsigned.
6807 (num_sign_bit_copies1): Likewise.
6808
6809 2011-06-24 Martin Jambor <mjambor@suse.cz>
6810
6811 PR tree-optimizations/49516
6812 * tree-sra.c (sra_modify_assign): Choose the safe path for
6813 aggregate copies if we also did scalar replacements.
6814
6815 2011-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6816
6817 PR target/49335
6818 * config/arm/predicates.md (add_operator): New.
6819 * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
6820
6821 2011-06-24 Andi Kleen <ak@linux.intel.com>
6822
6823 * tree-sra.c (type_internals_preclude_sra_p): Add msg
6824 parameter. Split up ifs and report reason in *msg.
6825 (reject): Add.
6826 (find_var_candiate): Add msg variable.
6827 Split up ifs and report reason to reject.
6828 (find_param_candidates): Add msg variable.
6829 Pass msg to type_internals_preclude_sra_p.
6830
6831 2011-06-23 Jeff Law <law@redhat.com>
6832
6833 PR middle-end/48770
6834 * reload.h (reload): Change to return a bool.
6835 * ira.c (ira): If requested by reload, run a fast DCE pass after
6836 reload has completed. Fix comment typo.
6837 * reload1.c (need_dce): New file scoped static.
6838 (reload): Set reload_completed here. Return whether or not a DCE
6839 pass after reload is needed.
6840 (delete_dead_insn): Set need_dce as needed.
6841
6842 PR middle-end/49465
6843 * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
6844 to detect threading through joiner block. If there was already
6845 an edge to the new target, then do not change the PHI nodes.
6846
6847 2011-06-23 Jakub Jelinek <jakub@redhat.com>
6848
6849 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
6850 get_pointer_alignment to see if base isn't sufficiently aligned.
6851
6852 2011-06-23 Jan Hubicka <jh@suse.cz>
6853
6854 PR tree-optimize/49373
6855 * tree-pass.h (all_late_ipa_passes): Declare.
6856 * cgraphunit.c (init_lowered_empty_function): Fix properties.
6857 (cgraph_optimize): Execute late passes; remove unreachable funcions
6858 after materialization.
6859 * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
6860 LTOing.
6861 * passes.c (all_late_ipa_passes): Declare.
6862 (dump_passes, register_pass): Handle late ipa passes.
6863 (init_optimization_passes): Move ipa_pta to late passes; schedule
6864 fixup_cfg at beggining of all_passes.
6865 (apply_ipa_transforms): New function.
6866 (execute_one_pass): When doing simple ipa pass, apply all transforms.
6867
6868 2011-06-23 Joseph Myers <joseph@codesourcery.com>
6869
6870 * params.c: Include common/common-target.h. Don't include tm.h.
6871 (lang_independent_params): Move from toplev.c.
6872 (global_init_params): New.
6873 * params.h (global_init_params): Declare.
6874 * target.def (default_params): Move to common-target.def.
6875 * toplev.c (lang_independent_options): Remove.
6876 (lang_independent_params): Move to params.c.
6877 (general_init): Use global_init_params.
6878 * common/common-target.def (option_default_params): Move from
6879 target.def.
6880 * common/config/ia64/ia64-common.c: Include params.h.
6881 (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6882 from ia64.c.
6883 * common/config/rs6000/rs6000-common.c: Include params.h.
6884 (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6885 from rs6000.c.
6886 * common/config/sh/sh-common.c: Include params.h.
6887 (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6888 from sh.c.
6889 * common/config/spu/spu-common.c: Include params.h.
6890 (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
6891 from spu.c.
6892 * config/ia64/ia64.c (ia64_option_default_params,
6893 TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
6894 * config/rs6000/rs6000.c (rs6000_option_default_params,
6895 TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
6896 * config/sh/sh.c (sh_option_default_params,
6897 TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
6898 * config/spu/spu.c (spu_option_default_params,
6899 TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
6900 * Makefile.in (OBJS): Remove params.o.
6901 (OBJS-libcommon-target): Add params.o.
6902 (params.o, $(common_out_object_file)): Update dependencies.
6903 * doc/tm.texi: Regenerate.
6904
6905 2011-06-23 Alan Modra <amodra@gmail.com>
6906
6907 PR bootstrap/49383
6908 * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
6909 invocation for 2011-06-09 changes.
6910
6911 2011-06-22 Jakub Jelinek <jakub@redhat.com>
6912
6913 PR libgomp/49490
6914 * omp-low.c (expand_omp_for_static_nochunk): Only
6915 use n ceil/ nthreads size for the first n % nthreads threads in the
6916 team instead of all threads except for the last few ones which
6917 get less work or none at all.
6918
6919 PR debug/49496
6920 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
6921 uses.
6922
6923 2011-06-22 Richard Guenther <rguenther@suse.de>
6924
6925 PR tree-optimization/49493
6926 * tree-ssa-structalias.c (get_constraint_for_ssa_var):
6927 Refer to the alias target of variables.
6928 (associate_varinfo_to_alias_1): Remove.
6929 (ipa_pta_execute): Do not associate aliases with anything.
6930 * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
6931 (cgraph_function_node): Likewise.
6932 (cgraph_function_or_thunk_node): Likewise.
6933 (varpool_variable_node): Likewise.
6934
6935 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
6936
6937 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
6938 * config.gcc (arm*-*-linux*): Default to gnu tls.
6939 (arm*-*-*): Add --with-tls option.
6940 (all_defaults): Add 'tls'.
6941
6942 2011-06-22 Richard Henderson <rth@redhat.com>
6943
6944 * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
6945 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
6946 (dwarf2out_frame_debug_cfa_window_save): Rename from
6947 dwarf2out_window_save; make static.
6948 * tree.h (dwarf2out_window_save): Don't declare.
6949
6950 * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
6951 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
6952 (emit_save_register_window): Rename from gen_save_register_window;
6953 emit the insn and add REG_CFA_* notes.
6954 (sparc_expand_prologue): Update to match.
6955 * config/sparc/sparc.md (save_register_window_1): Simplify from
6956 save_register_window<P:mode>.
6957
6958 2011-06-22 H.J. Lu <hongjiu.lu@intel.com>
6959
6960 PR target/49497
6961 * config/i386/i386.md (*lea_general_2): Always allow SImode.
6962 (*lea_general_2_zext): Likewise.
6963 (imul to lea peepholes): Use const359_operand and check
6964 TARGET_PARTIAL_REG_STALL.
6965
6966 * config/i386/predicates.md (const359_operand): New.
6967
6968 2011-06-22 Michael Matz <matz@suse.de>
6969
6970 * cgraphunit.c (assemble_thunk): Use correct return type.
6971
6972 2011-06-22 Dmitry Plotnikov <dplotnikov@ispras.ru>
6973 Dmitry Melnik <dm@ispras.ru>
6974
6975 * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
6976 (neon_output_shift_immediate): Ditto.
6977 * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
6978 prototype.
6979 (neon_output_shift_immediate): Ditto.
6980 * config/arm/neon.md (vashl<mode>3): Modified constraint.
6981 (vashr<mode>3_imm): New insn pattern.
6982 (vlshr<mode>3_imm): Ditto.
6983 (vashr<mode>3): Modified constraint.
6984 (vlshr<mode>3): Ditto.
6985 * config/arm/predicates.md (imm_for_neon_lshift_operand): New
6986 predicate.
6987 (imm_for_neon_rshift_operand): Ditto.
6988 (imm_lshift_or_reg_neon): Ditto.
6989 (imm_rshift_or_reg_neon): Ditto.
6990
6991 * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
6992
6993 2011-06-22 Jakub Jelinek <jakub@redhat.com>
6994
6995 * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
6996 builtin calls even if likelyvalue is not CONSTANT.
6997 Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
6998 Return get_value_for_expr of first operand
6999 for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
7000 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7001 BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
7002 their non-checking counterparts.
7003 (call_may_clobber_ref_p_1): Likewise.
7004 (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
7005 like their non-checking counterparts.
7006 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
7007 Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
7008 like their non-checking counterparts.
7009 (find_func_clobbers): Likewise.
7010 * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
7011 like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
7012
7013 * dwarf2out.c (size_of_loc_descr, output_loc_operands,
7014 mark_base_types, hash_loc_operands, compare_loc_operands): Allow
7015 DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
7016 of base type reference as argument.
7017 (resolve_addr_in_expr): Likewise. Fix keep computation.
7018 (convert_descriptor_to_signed): Renamed to...
7019 (convert_descriptor_to_mode): ... this. For wider types convert to
7020 unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
7021 (typed_binop): New function.
7022 (scompare_loc_descriptor, ucompare_loc_descriptor,
7023 minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
7024 default to unsigned type instead of signed.
7025
7026 PR debug/47858
7027 * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
7028 (gimple_build_debug_source_bind_stat): New prototype.
7029 (gimple_build_debug_source_bind): Define.
7030 (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
7031 gimple_debug_source_bind_get_value,
7032 gimple_debug_source_bind_get_value_ptr,
7033 gimple_debug_source_bind_set_var,
7034 gimple_debug_source_bind_set_value): New inlines.
7035 * gimple.c (gimple_build_debug_source_bind_stat): New function.
7036 * gimple-pretty-print.c (dump_gimple_debug): Handle
7037 GIMPLE_DEBUG_SOURCE_BIND.
7038 * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
7039 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
7040 * tree-parloops.c (eliminate_local_variables,
7041 separate_decls_in_region): Likewise.
7042 (separate_decls_in_region_debug): Renamed from
7043 separate_decls_in_region_debug_bind. Handle
7044 gimple_debug_source_bind_p.
7045 * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
7046 prototypes.
7047 (DECL_HAS_DEBUG_ARGS_P): Define.
7048 (struct tree_function_decl): Add has_debug_args_flag field.
7049 * tree.c (debug_args_for_decl): New variable.
7050 (decl_debug_args_lookup, decl_debug_args_insert): New functions.
7051 * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
7052 (rewrite_debug_stmt_uses): New function.
7053 (rewrite_stmt): Use it to rewrite debug stmt uses.
7054 * rtl.def (DEBUG_PARAMETER_REF): New.
7055 * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
7056 * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
7057 DEBUG_PARAMETER_REF.
7058 * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
7059 * print-rtl.c (print_rtx): Likewise.
7060 * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
7061 SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
7062 debug stmts in the first bb.
7063 * tree-inline.c (remap_ssa_name): If remapping default def
7064 of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
7065 a source bind debug stmt.
7066 (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
7067 (maybe_move_debug_stmts_to_successors): Likewise.
7068 (copy_debug_stmt): Likewise. Avoid shadowing a variable.
7069 (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
7070 debug args vector from old_decl to new_decl.
7071 * ipa-prop.c (ipa_modify_call_arguments): For optimized away
7072 or modified parameters, add debug bind stmts before call
7073 setting DEBUG_EXPR_DECL which is remembered in debug args vector.
7074 * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
7075 on DECL_DEBUG_EXPRs from debug args vector.
7076 (expand_debug_source_expr): New function.
7077 (expand_debug_locations): Use it for source bind insns.
7078 (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
7079 * var-tracking.c (prepare_call_arguments): Add debug args
7080 to call_arguments if any.
7081 * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
7082 output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
7083 compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
7084 (get_ref_die_offset, parameter_ref_descriptor): New functions.
7085 (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
7086 (gen_subprogram_die): Handle parameters identified by
7087 DEBUG_PARAMETER_REF.
7088
7089 2011-06-22 Nathan Sidwell <nathan@codesourcery.com>
7090
7091 * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
7092 * doc/install.texi (Configuration): Document --with-tls.
7093 * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
7094 (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
7095 (arm_tls_descseq_addr): New.
7096 (legitimize_tls_address): Add tlsdesc support.
7097 (arm_cannot_copy_insn_p): Check for tlscall.
7098 (arm_emit_tls_decoration): Likewise.
7099 * config/arm/arm.h (TARGET_GNU2_TLS): New.
7100 (OPTION_DEFAULT_SPECS): Add with-tls support.
7101 * config/arm/arm.md (R1_REGNUM): Define.
7102 (tlscall): New.
7103 * config/arm/arm.opt (tls_type): New enumeration type and values.
7104 (mtls-dialect): New switch.
7105 * config/arm/arm-opts.h (enum tls_type): New.
7106
7107 2011-06-21 Nicola Pero <nicola.pero@meta-innovation.com>
7108
7109 * attribs.c (register_attribute): Added assert to check that all
7110 attribute specs are registered with a name that is not empty and
7111 does not start with '_'.
7112 (decl_attributes): Avoid the lookup of the "naked" attribute spec
7113 if the function has no attributes.
7114 * tree.c (is_attribute_with_length_p): Removed.
7115 (is_attribute_p): Removed.
7116 (private_is_attribute_p): New.
7117 (private_lookup_attribute): New.
7118 (lookup_attribute): Removed.
7119 (lookup_ident_attribute): New.
7120 (remove_attribute): Require the first argument to be in the form
7121 'text', not '__text__'. Updated asserts.
7122 (merge_attributes): Use lookup_ident_attributes instead of
7123 lookup_attribute.
7124 (merge_dllimport_decl_attributes): Use remove_attribute.
7125 (attribute_list_contained): Likewise.
7126 (attribute_list_equal): Immediately return 1 if the arguments are
7127 identical pointers.
7128 * tree.h (is_attribute_p): Made inline. Return a 'bool', not an
7129 'int'. Require the first argument to be in the form 'text', not
7130 '__text__'. Require the second argument to be an identifier.
7131 (lookup_attribute): Made inline. Require the first argument to be
7132 in the form 'text', not '__text__'.
7133 (private_is_attribute_p, private_lookup_attribute): New.
7134 Updated comments.
7135
7136 2011-06-21 Andrew MacLeod <amacleod@redhat.com>
7137
7138 * builtins.c: Add sync_ or SYNC__ to builtin names.
7139 * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
7140 * omp-low.c: Add sync_ or SYNC__ to builtin names.
7141
7142 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
7143
7144 PR target/33049
7145 * config/avr/avr.md (extzv): New expander.
7146 (*extzv): New insn.
7147 (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
7148 * config/avr/constraints.md (C04): New constraint.
7149 * doc/md.texi (Machine Constraints): Document it.
7150
7151 2011-06-21 Jakub Jelinek <jakub@redhat.com>
7152
7153 PR middle-end/49489
7154 * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
7155 unsignedp argument instead of 1 for clrsb_optab.
7156 (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
7157 and < 2 * HOST_BITS_PER_WIDE_INT. Optimize BUILT_IN_CLRSB*.
7158 (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
7159 * optabs.c (widen_leading): Call widen_operand and expand_unop
7160 with 0 as unsignedp argument instead of 1 for clrsb_optab.
7161 (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
7162
7163 2011-06-21 Georg-Johann Lay <avr@gjlay.de>
7164
7165 * config/avr/avr.md (*jcindirect_jump): Fix build warning.
7166
7167 2011-06-21 Bernd Schmidt <bernds@codesourcery.com>
7168
7169 * gensupport.c (add_define_attr): New static function.
7170 (is_predicable): Allow multi-alternative lists for the "predicable"
7171 attribute.
7172 (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
7173 (process_one_cond_exec): Call alter_attrs_for_insn.
7174 * doc/md.texi (Defining Attributes): Mention some standard names.
7175 (Conditional Execution): Update documentation for "predicable".
7176
7177 * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
7178 __builtin_clrsbll): Document.
7179 * doc/rtl.texi (clrsb): New entry.
7180 * optabs.c (widen_leading): Renamed from widen_clz. New argument
7181 UNOPTAB. All callers changed. Use UNOPTAB instead of clz_optab.
7182 (expand_unop): Handle clrsb_optab.
7183 (init_optabs): Initialize it.
7184 * optabs.h (enum optab_index): New entry OTI_clrsb.
7185 (clrsb_optab): Define.
7186 * genopinit.c (optabs): Add an entry for it.
7187 * builtins.c (expand_builtin): Handle clrsb builtin functions.
7188 * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
7189 BUILT_IN_CLRSBLL): New.
7190 * rtl.def (CLRSB): New code.
7191 * dwarf2out.c (mem_loc_descriptor): Handle it.
7192 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
7193 Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
7194 and popcount.
7195 * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
7196 * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
7197 (__ctzDI2): Move declaration.
7198 * config/bfin/bfin.md (clrsbsi2): New expander.
7199 (signbitssi2): Use the CLRSB rtx.
7200 (clrsbhi2): Renamed from signbitshi2. Use the CLRSB rtx.
7201 * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
7202
7203 2011-06-21 Richard Guenther <rguenther@suse.de>
7204
7205 * ipa-inline-transform.c (inline_transform): Fix previous change.
7206
7207 2011-06-21 Ira Rosen <ira.rosen@linaro.org>
7208
7209 PR tree-optimization/49478
7210 * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
7211 with constant operand.
7212
7213 2011-06-21 Richard Guenther <rguenther@suse.de>
7214
7215 * ipa-inline-transform.c (inline_transform): Fix typo.
7216
7217 2011-06-21 Richard Guenther <rguenther@suse.de>
7218
7219 PR tree-optimization/49483
7220 * tree-vect-stmts.c (vectorizable_assignment): Also handle
7221 VIEW_CONVERT_EXPR conversions.
7222
7223 2011-06-21 Joseph Myers <joseph@codesourcery.com>
7224
7225 * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
7226 * config/avr/avr-tables.opt: New file (generated).
7227 * config.gcc (avr-*-*): Use avr/avr-tables.opt.
7228 * config/avr/avr-devices.c (avr_mcu_types): Move contents to
7229 avr-mcus.def.
7230 * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
7231 (avr_option_override): Don't process -mmcu= argument here. Set
7232 avr_current_device using avr_mcu_index.
7233 (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
7234 * config/avr/avr.opt (mmcu=): Use Enum.
7235 * config/avr/t-avr (avr-devices.o): Update dependencies.
7236 ($(srcdir)/config/avr/avr-tables.opt): New.
7237 * target.def (help): Remove.
7238 * doc/tm.texi.in (TARGET_HELP): Remove.
7239 * doc/tm.texi: Regenerate.
7240 * opts.c: Don't include target.h.
7241 (common_handle_option): Don't call targetm.help.
7242 * system.h (TARGET_HELP): Poison.
7243 * Makefile.in (opts.o): Update dependencies.
7244
7245 2011-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7246
7247 * config/usegld.h: New file.
7248 * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
7249 (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
7250 (LIB_SPEC): Likewise. Search /lib.
7251 (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
7252 (RDYNAMIC_SPEC): Handle GNU ld.
7253 [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
7254 Define.
7255 (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
7256 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
7257 [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
7258 (STACK_CHECK_STATIC_BUILTIN): Define.
7259 * config/sol2.opt (compat-bsd): Remove.
7260 * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
7261 * config/sol2-bi.h: New file.
7262 * config/sol2-gld.h: Remove.
7263 * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
7264 (NO_DBX_BNSYM_ENSYM): Remove.
7265 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
7266 (STACK_CHECK_STATIC_BUILTIN): Remove.
7267 Test USE_GLD instead of TARGET_GNU_LD.
7268 * config/i386/sol2-10.h: Rename to ...
7269 * config/i386/sol2-bi.h .. this.
7270 (SUBTARGET_EXTRA_SPECS): Redefine.
7271 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
7272 (MULTILIB_DEFAULTS): Remove.
7273 (DEFAULT_ARCH32_P): Define.
7274 (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
7275 (ARCH64_SUBDIR): Define.
7276 Test USE_GLD instead of TARGET_GNU_LD.
7277 (I386_EMULATION): Rename to ...
7278 (ARCH32_EMULATION): ... this.
7279 (X86_64_EMULATION): Rename to ...
7280 (ARCH64_EMULATION): ... this.
7281 (TARGET_LD_EMULATION): Remove.
7282 (LINK_ARCH_SPEC): Remove.
7283 * config/i386/sol2-gas.h: Remove.
7284 * config/i386/t-sol2-10: Rename to ...
7285 * config/i386/t-sol2-64: ... this.
7286 * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
7287 (AS_SPARC64_FLAG): Define.
7288 (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
7289 (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
7290 depending on TARGET_CPU_DEFAULT.
7291 (CPP_CPU_SPEC): Redefine.
7292 (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
7293 (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
7294 (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
7295 (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
7296 ASM_ARCH_DEFAULT_SPEC): Redefine.
7297 (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
7298 LINK_ARCH_DEFAULT_SPEC.
7299 [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
7300 [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
7301 (ARCH64_SUBDIR): Define.
7302 (LINK_ARCH64_SPEC): Redefine.
7303 (CC1_SPEC): Redefine.
7304 (OPTION_DEFAULT_SPECS): Redefine.
7305 (MULTILIB_DEFAULTS): Define.
7306 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
7307 [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
7308 [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
7309 (NO_DBX_BNSYM_ENSYM): Remove.
7310 (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
7311 (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
7312 (TARGET_ASM_NAMED_SECTION): Likewise.
7313 (STACK_CHECK_STATIC_BUILTIN): Remove.
7314 * config/sparc/sol2-bi.h: Remove.
7315 * config/sparc/sol2-gas-bi.h: Remove.
7316 * config/sparc/sol2-gas.h: Remove.
7317 * config/sparc/sol2-gld-bi.h: Remove.
7318 * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
7319 common parts ...
7320 (*-*-solaris2*): ... here.
7321
7322 2011-06-21 Christian Bruel <christian.bruel@st.com>
7323
7324 PR other/43564
7325 * ipa-inline.c (can_inline_edge_p): Check
7326 !DECL_DISREGARD_INLINE_LIMITS.
7327
7328 2011-06-21 Christian Bruel <christian.bruel@st.com>
7329
7330 PR middle-end/49139
7331 * cgraphunit.c (process_function_and_variable_attributes): warn when
7332 always_inline functions that are not inline.
7333 * ipa-inline-transform.c (inline_transform): Always call
7334 optimize_inline.
7335 * tree-inline.c (tree_inlinable_function_p): Use error instead
7336 of sorry.
7337 (expand_call_inline): Likewise.
7338
7339 2011-06-21 Jakub Jelinek <jakub@redhat.com>
7340
7341 * Makefile.in (dg_target_exps): Set.
7342 (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
7343 instead of 7, try to divide it more evenly.
7344
7345 2011-06-20 Changpeng Fang <changpeng.fang@amd.com>
7346
7347 PR target/49089
7348 * config/i386/i386.c (avx256_split_unaligned_load): New definition.
7349 (avx256_split_unaligned_store): New definition.
7350 (ix86_option_override_internal): Enable avx256 unaligned load/store
7351 splitting only when avx256_split_unaligned_load/store is set.
7352
7353 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
7354
7355 * regrename.c (scan_rtx_reg): Handle the case where we write to an
7356 open chain in a smaller mode without failing the entire block.
7357
7358 2011-06-21 Alan Modra <amodra@gmail.com>
7359
7360 * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
7361 CONST high part large-toc address.
7362 (rs6000_tls_referenced_p): Make static.
7363 * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
7364
7365 2011-06-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7366
7367 PR target/49385
7368 * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
7369 one of the operands is a register.
7370
7371 2011-06-20 Kai Tietz <ktietz@redhat.com>
7372
7373 * fold-const.c (fold_binary_loc): Add missing folding for truth-not
7374 operations in combination with binary and.
7375
7376 2011-06-20 Bernd Schmidt <bernds@codesourcery.com>
7377
7378 * regrename.c (do_replace): Don't update notes.
7379
7380 2011-06-20 Alan Modra <amodra@gmail.com>
7381
7382 * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
7383 of toc-relative address in CONST.
7384 (rs6000_delegitimize_address): Recognize changed address.
7385 (rs6000_legitimize_reload_address): Likewise.
7386 (rs6000_emit_move): Don't force these constants to memory.
7387 * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
7388 toc-relative address in CONST.
7389 (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
7390 (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
7391
7392 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
7393
7394 * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
7395 (count_trailing_zeros): Likewise.
7396
7397 2011-06-18 H.J. Lu <hongjiu.lu@intel.com>
7398
7399 PR other/49325
7400 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
7401 .init_array can be used with .ctors on targets.
7402 * configure: Regenerated.
7403
7404 2011-06-18 Eric Botcazou <ebotcazou@adacore.com>
7405
7406 * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
7407 if the element type is volatile.
7408
7409 2011-06-18 Jan Hubicka <jh@suse.cz>
7410
7411 * lto-symtab.c (lto_varpool_replace_node): Remove code handling
7412 extra name aliases.
7413 (lto_symtab_resolve_can_prevail_p): Likewise.
7414 (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
7415 * cgraphbuild.c (record_reference): Remove extra body alias code.
7416 (mark_load): Likewise.
7417 (mark_store): Likewise.
7418 * cgraph.h (varpool_node): Remove extra_name filed;
7419 add alias_of and extraname_alias.
7420 (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
7421 (varpool_alias_aliased_node): New inline function.
7422 (varpool_variable_node): New function.
7423 * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
7424 * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
7425 * lto-cgraph.c (lto_output_varpool_node): Update streaming.
7426 (input_varpool_node): Likewise.
7427 * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
7428 (varpool_externally_visible_p): Remove extra body alias code.
7429 (function_and_variable_visibility): Likewise.
7430 * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
7431 (ipa_pta_execute): Use it.
7432 * varpool.c (varpool_remove_node): Remove extra name alias code.
7433 (varpool_mark_needed_node): Likewise.
7434 (varpool_analyze_pending_decls): Analyze aliases.
7435 (assemble_aliases): New functoin.
7436 (varpool_assemble_decl): Use it.
7437 (varpool_create_variable_alias): New function.
7438 (varpool_extra_name_alias): Rewrite.
7439 (varpool_for_node_and_aliases): New function.
7440
7441 2011-06-18 Jakub Jelinek <jakub@redhat.com>
7442
7443 PR target/49411
7444 * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
7445 last_arg_constant and last argument doesn't match its predicate,
7446 for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
7447 if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
7448 (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
7449 spelling of error message.
7450 * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
7451 vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
7452 const_0_to_255_operand instead of const_int_operand.
7453
7454 Revert:
7455 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
7456
7457 * config/i386/sse.md (blendbits): Remove mode attribute.
7458 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
7459 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
7460 Check integer value of operand 3 in insn constraint.
7461
7462 2011-06-17 Hans-Peter Nilsson <hp@axis.com>
7463
7464 PR rtl-optimization/48542
7465 * reload.c (find_equiv_reg): Stop looking when finding a
7466 setjmp-type call.
7467 * reload1.c (reload_as_needed): Invalidate all reload
7468 registers when crossing a setjmp-type call.
7469
7470 2011-06-16 Jeff Law <law@redhat.com>
7471
7472 * tree-ssa-threadupdate.c (struct redirection_data): New field
7473 intermediate_edge.
7474 (THREAD_TARGET2): Define.
7475 (redirection_data_eq): Also check that the intermediate edge is equal.
7476 (lookup_redirection_data): Drop useless argument. Extract the
7477 outgoing_edge and intermediate edge from E. Callers updated.
7478 (copy_phi_args, update_destination_phis): New functions.
7479 (fix_duplicate_block_edges): Likewise.
7480 (create_edge_and_update_destination_phis): Duplicate all the edges
7481 hung off e->aux. Use copy_phi_args.
7482 (create_duplicates): Use fix_duplicate_block_edges.
7483 (fixup_template_block): Likewise.
7484 (redirect_edges): If necessary, redirect the joiner block's incoming
7485 edge to the duplicate of the joiner block.
7486 (thread_block): Don't muck up loops when threading through a joiner
7487 block.
7488 (thread_through_loop_header): Handle threading through a joiner block.
7489 (mark_threaded_blocks, register_jump_thread): Likewise.
7490 * tree-flow.h (register_jump_thread): Add new argument. Callers
7491 updated.
7492 * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
7493 (thread_across_edge): Handle threading through a joiner block.
7494
7495 2011-06-16 Martin Jambor <mjambor@suse.cz>
7496
7497 PR tree-optimization/49343
7498 * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
7499 calculate offset, provide 2nd operand for the new COMPONENT_REF.
7500
7501 2011-06-16 Iain Sandoe <iains@gcc.gnu.org>
7502
7503 * config/darwin-protos.h (machopic_select_rtx_section): Move to
7504 inside RTX_CODE ifdef.
7505
7506 2011-06-16 Tom de Vries <tom@codesourcery.com>
7507
7508 PR target/45098
7509 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
7510 Disallow NULL pointer for pointer arithmetic.
7511
7512 2011-06-16 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7513
7514 PR target/49398
7515 Revert.
7516 2011-06-10 Wei Guozhi <carrot@google.com>
7517
7518 PR target/45335
7519 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
7520 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
7521 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
7522 related peephole2.
7523 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
7524 related peephole2.
7525 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
7526 (arm_legitimate_ldrd_p): New prototype.
7527 (arm_output_ldrd): New prototype.
7528 * config/arm/arm.c (arm_check_ldrd_operands): New function.
7529 (arm_legitimate_ldrd_p): New function.
7530 (arm_output_ldrd): New function.
7531
7532 2011-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
7533
7534 PR middle-end/46500
7535 * doc/tm.texi.in: Update Copyright date.
7536 * doc/tm.texi: Regenerate.
7537 * targhooks.c (default_setup_incoming_varargs): Replace
7538 CUMULATIVE_ARGS* argument type with cumulative_args_t.
7539 (default_pretend_outgoing_varargs_named): Likewise.
7540 (hook_pass_by_reference_must_pass_in_stack): Likewise.
7541 (hook_callee_copies_named): Likewise.
7542 (default_function_arg_advance): Likewise.
7543 (default_function_arg): Likewise.
7544 (default_function_incoming_arg): Likewise.
7545 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
7546 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
7547 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
7548 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7549 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
7550 * targhooks.h (default_setup_incoming_varargs): Likewise.
7551 (default_pretend_outgoing_varargs_named): Likewise.
7552 (hook_pass_by_reference_must_pass_in_stack): Likewise.
7553 (hook_callee_copies_named): Likewise.
7554 (default_function_arg_advance): Likewise.
7555 (default_function_arg): Likewise.
7556 (default_function_incoming_arg): Likewise.
7557 (hook_bool_CUMULATIVE_ARGS_false): Likewise.
7558 (hook_bool_CUMULATIVE_ARGS_true): Likewise.
7559 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
7560 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
7561 (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
7562 * target.def (pass_by_reference): Likewise.
7563 (setup_incoming_varargs, strict_argument_naming): Likewise.
7564 (pretend_outgoing_varargs_named, callee_copies): Likewise.
7565 (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
7566 (function_incoming_arg): Likewise.
7567 * target.h: Don't include "tm.h" .
7568 (cumulative_args_t): New typedef.
7569 [GCC_TM_H] (get_cumulative_args): New static inline function.
7570 [GCC_TM_H] (pack_cumulative_args): Likewise.
7571 * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
7572 argument type with cumulative_args_t.
7573 (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
7574 (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
7575 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
7576 (frv_arg_partial_bytes, frv_function_arg): Likewise.
7577 (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
7578 (frv_function_arg_1): Likewise.
7579 * config/s390/s390.c (s390_pass_by_reference): Likewise.
7580 (s390_function_arg_advance, s390_function_arg): Likewise.
7581 * config/m32c/m32c.c (m32c_function_arg): Likewise.
7582 (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
7583 (m32c_strict_argument_naming): Likewise.
7584 * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
7585 (spu_function_arg_advance): Likewise.
7586 (spu_setup_incoming_varargs): Likewise. Make static.
7587 * config/spu/spu-protos.h (spu_setup_incoming_varargs):
7588 Remove prototype.
7589 * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
7590 CUMULATIVE_ARGS* argument type with cumulative_args_t.
7591 (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
7592 (sparc_function_arg, sparc_function_incoming_arg): Likewise.
7593 (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
7594 * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
7595 (mep_pass_by_reference, mep_function_arg): Likewise.
7596 (mep_function_arg_advance): Likewise.
7597 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7598 (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
7599 (m32r_function_arg, m32r_function_arg_advance): Likewise.
7600 * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
7601 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
7602 (ix86_function_arg, ix86_pass_by_reference): Likewise.
7603 (ix86_setup_incoming_varargs): Likewise.
7604 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
7605 (sh_strict_argument_naming): Likewise.
7606 (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
7607 (sh_callee_copies, sh_arg_partial_bytes): Likewise.
7608 (sh_function_arg_advance, sh_function_arg): Likewise.
7609 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
7610 (pdp11_function_arg_advance): Likewise.
7611 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
7612 Likewise.
7613 (microblaze_function_arg, function_arg_partial_bytes): Likewise.
7614 * config/avr/avr.c (avr_function_arg): Likewise.
7615 (avr_function_arg_advance): Likewise.
7616 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
7617 (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
7618 (xtensa_function_arg_1): Likewise.
7619 * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
7620 Likewise.
7621 (xstormy16_function_arg): Likewise.
7622 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
7623 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
7624 (fr30_function_arg_advance): Likewise.
7625 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
7626 (lm32_function_arg, lm32_function_arg_advance): Likewise.
7627 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
7628 (moxie_function_arg, moxie_function_arg_advance): Likewise.
7629 (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
7630 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
7631 (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
7632 (cris_function_arg, cris_function_incoming_arg): Likewise.
7633 (cris_function_arg_advance, cris_function_arg_1): Likewise.
7634 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
7635 (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
7636 (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
7637 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
7638 (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
7639 (mn10300_arg_partial_bytes): Likewise.
7640 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
7641 (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
7642 (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
7643 (ia64_function_arg_1): Likewise.
7644 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
7645 (m68k_function_arg): Likewise.
7646 * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
7647 (rs6000_function_arg, setup_incoming_varargs): Likewise.
7648 (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
7649 * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
7650 (picochip_function_arg, picochip_incoming_function_arg): Likewise.
7651 (picochip_arg_advance): Likewise.
7652 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
7653 (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
7654 (mcore_function_arg_advance): Likewise.
7655 * config/score/score.c (score_pass_by_reference): Likewise.
7656 (score_function_arg_advance): Likewise.
7657 (score_arg_partial_bytes): Likewise. Make static.
7658 * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
7659 * config/arm/arm.c (arm_arg_partial_bytes): Replace
7660 CUMULATIVE_ARGS* argument type with cumulative_args_t.
7661 (arm_function_arg, arm_function_arg_advance): Likewise.
7662 (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
7663 * config/pa/pa.c (pa_pass_by_reference): Likewise.
7664 (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
7665 (pa_function_arg): Likewise.
7666 * config/mips/mips.c (mips_strict_argument_naming): Likewise.
7667 (mips_function_arg, mips_function_arg_advance): Likewise.
7668 (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
7669 (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
7670 * config/vax/vax.c (vax_function_arg): Likewise.
7671 (vax_function_arg_advance): Likewise.
7672 * config/h8300/h8300.c (h8300_function_arg): Likewise.
7673 (h8300_function_arg_advance): Likewise.
7674 * config/v850/v850.c (v850_pass_by_reference): Likewise.
7675 (v850_strict_argument_naming, v850_function_arg): Likewise.
7676 (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
7677 (v850_setup_incoming_varargs): Likewise.
7678 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
7679 (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
7680 (mmix_function_arg, mmix_pass_by_reference): Likewise.
7681 (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
7682 with const void *.
7683 * config/bfin/bfin.c (setup_incoming_varargs): Replace
7684 CUMULATIVE_ARGS* argument type with cumulative_args_t.
7685 (bfin_function_arg_advance, bfin_function_arg): Likewise.
7686 (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
7687 * calls.c (emit_call_1): Change type of args_so_far to
7688 cumulative_args_t. Changed all callers.
7689 (initialize_argument_information): Likewise.
7690 (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
7691 * dse.c (get_call_args): Likewise.
7692 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
7693 * function.c (pass_by_reference, reference_callee_copied): Likewise.
7694 (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
7695 New member args_so_far_v. Changed all users.
7696 * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
7697 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7698 * config/mips/mips.c (mips_output_args_xfer): Likewise.
7699 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
7700 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
7701 * config/microblaze/microblaze.c (microblaze_expand_prologue):
7702 Likewise.
7703 * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
7704 m32r_pass_by_reference.
7705
7706 2011-06-16 Ira Rosen <ira.rosen@linaro.org>
7707
7708 * tree-vectorizer.h (vect_recog_func_ptr): Change the first
7709 argument to be a VEC of statements.
7710 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
7711 assert that pattern statements have to have their vector type set.
7712 * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
7713 Change the first argument to be a VEC of statements. Update
7714 documentation.
7715 (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
7716 (vect_handle_widen_mult_by_const): New function.
7717 (vect_recog_widen_mult_pattern): Change the first argument to be a
7718 VEC of statements. Update documentation. Check that the constant is
7719 INTEGER_CST. Support multiplication by a constant that fits an
7720 intermediate type - call vect_handle_widen_mult_by_const.
7721 (vect_pattern_recog_1): Update vect_recog_func_ptr and its
7722 call. Handle additional pattern statements if necessary.
7723
7724 2011-06-16 Nick Clifton <nickc@redhat.com>
7725
7726 PR target/49427
7727 * config.gcc: Set cpu_type to v850 for any V850 architecture.
7728 (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
7729 md_file, extra_modes, out_file and extra_options are these are all
7730 deduced from cpu_type.
7731
7732 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
7733
7734 * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
7735 truncation mask to 63.
7736
7737 2011-06-16 Georg-Johann Lay <avr@gjlay.de>
7738
7739 PR target/49313
7740 PR target/29524
7741 * longlong.h: Add AVR support:
7742 (count_leading_zeros): New macro.
7743 (count_trailing_zeros): New macro.
7744 (COUNT_LEADING_ZEROS_0): New macro.
7745 * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
7746 _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
7747 _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
7748 _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
7749 (LIB2FUNCS_EXCLUDE): Add _clz.
7750 * config/avr/libgcc.S (XCALL): Move up in file.
7751 (XJMP): New C Macro.
7752 (DEFUN): New asm macro.
7753 (ENDF): New asm macro.
7754 (__ffssi2): New function.
7755 (__ffshi2): New function.
7756 (__loop_ffsqi2): New function.
7757 (__ctzsi2): New function.
7758 (__ctzhi2): New function.
7759 (__clzdi2): New function.
7760 (__clzsi2): New function.
7761 (__clzhi2): New function.
7762 (__paritydi2): New function.
7763 (__paritysi2): New function.
7764 (__parityhi2): New function.
7765 (__parityqi2): New function.
7766 (__popcounthi2): New function.
7767 (__popcountsi2): New function.
7768 (__popcountdi2): New function.
7769 (__popcountqi2): New function.
7770 (__bswapsi2): New function.
7771 (__bswapdi2): New function.
7772 (__ashldi3): New function.
7773 (__ashrdi3): New function.
7774 (__lshrdi3): New function.
7775 Fix suspicous lines.
7776
7777 2011-06-16 Richard Guenther <rguenther@suse.de>
7778
7779 * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
7780 the same as x != 0.
7781 * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
7782 to (bool) X & 1.
7783 * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
7784 equality compares against zero for the lower bit.
7785
7786 2011-06-16 Jakub Jelinek <jakub@redhat.com>
7787
7788 PR tree-optimization/49419
7789 * tree-vrp.c (execute_vrp): Call init_range_assertions
7790 before estimate_numbers_of_iterations, call
7791 free_number_of_iterations_estimates before calling
7792 remove_range_assertions.
7793
7794 2011-06-16 Revital Eres <revital.eres@linaro.org>
7795
7796 * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
7797 (struct partial_schedule): Add rows_length field.
7798 (verify_partial_schedule): Check rows_length.
7799 (ps_insert_empty_row): Handle rows_length.
7800 (create_partial_schedule): Likewise.
7801 (free_partial_schedule): Likewise.
7802 (reset_partial_schedule): Likewise.
7803 (create_ps_insn): Remove rest_count argument.
7804 (remove_node_from_ps): Update rows_length.
7805 (add_node_to_ps): Update rows_length and call create_ps_insn
7806 without passing row_rest_count.
7807 (rotate_partial_schedule): Update rows_length.
7808
7809 2011-06-16 Revital Eres <revital.eres@linaro.org>
7810
7811 * ddg.c (add_intra_loop_mem_dep): New function.
7812 (build_intra_loop_deps): Call it.
7813
7814 2011-06-13 Jeff Law <law@redhat.com>
7815
7816 * df-problems.c (df_lr_local_compute): Manually CSE
7817 PIC_OFFSET_TABLE_REGNUM.
7818 * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
7819 (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
7820
7821 2011-06-13 Jan Hubicka <jh@suse.cz>
7822
7823 * cgraphunit.c (handle_alias_pairs): New function.
7824 (cgraph_finalize_compilation_unit): Use it.
7825 * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
7826 as externally visible.
7827
7828 2011-06-15 Richard Guenther <rguenther@suse.de>
7829
7830 * expr.c (expand_expr_real_2): Reduce all integral types to
7831 bitfield precision.
7832 (expand_expr_real_1): Likewise.
7833
7834 2011-06-15 Martin Jambor <mjambor@suse.cz>
7835
7836 PR tree-optimization/48613
7837 * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
7838 ipa_node_params_vector is NULL.
7839
7840 2011-06-15 Jakub Jelinek <jakub@redhat.com>
7841
7842 PR debug/49382
7843 * dwarf2out.c (dw_loc_list_node): Add force field.
7844 (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
7845 location in the list, even if it is modified before first real insn.
7846 (output_loc_list): Emit empty ranges with force flag set.
7847 (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
7848
7849 2011-06-15 Alexander Monakov <amonakov@ispras.ru>
7850
7851 PR target/49349
7852 * sel-sched.c (find_place_for_bookkeeping): Add new parameter
7853 (fence_to_rewind). Use it to notice when bookkeeping will be placed
7854 above a fence. Update comments.
7855 (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
7856 placed just above it. Do not allow NULL place_to_insert.
7857
7858 2011-06-15 Ira Rosen <ira.rosen@linaro.org>
7859
7860 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
7861 (slpeel_tree_peel_loop_to_edge): Don't call
7862 remove_dead_stmts_from_loop.
7863 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
7864 remove irrelevant pattern statements. For irrelevant statements
7865 check if it is the last statement of a detected pattern, use
7866 corresponding pattern statement instead.
7867 (destroy_loop_vec_info): No need to remove pattern statements,
7868 only free stmt_vec_info.
7869 (vect_transform_loop): For irrelevant statements check if it is
7870 the last statement of a detected pattern, use corresponding
7871 pattern statement instead.
7872 * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
7873 pattern statements. Set basic block for the new statement.
7874 (vect_pattern_recog): Update documentation.
7875 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
7876 operands of pattern statements.
7877 (vectorizable_call): Fix printing. In case of a pattern statement
7878 use the lhs of the original statement when creating a dummy
7879 statement to replace the original call.
7880 (vect_analyze_stmt): For irrelevant statements check if it is
7881 the last statement of a detected pattern, use corresponding
7882 pattern statement instead.
7883 * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
7884 statements use gsi of the original statement.
7885
7886 2011-06-14 Joseph Myers <joseph@codesourcery.com>
7887
7888 * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
7889 common/common-target-def.h.
7890 * target.def (default_target_flags, handle_option,
7891 supports_split_stack, optimization_table, init_struct,
7892 except_unwind_info, unwind_tables_default, have_named_sections):
7893 Move to common/common-target.def.
7894 * target.h (enum opt_levels, struct default_options): Move to
7895 common/common-target.h.
7896 * targhooks.c (default_except_unwind_info,
7897 dwarf2_except_unwind_info, sjlj_except_unwind_info,
7898 default_target_handle_option, empty_optimization_table): Move to
7899 common/common-targhooks.c.
7900 * targhooks.h (default_except_unwind_info,
7901 dwarf2_except_unwind_info, sjlj_except_unwind_info,
7902 default_target_handle_option, empty_optimization_table): Move to
7903 common/common-targhooks.h.
7904 * common/common-target-def.h: Include common/common-targhooks.h.
7905 (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
7906 defined.
7907 * common/common-target.def (handle_option, option_init_struct,
7908 option_optimization_table, default_target_flags,
7909 except_unwind_info, supports_split_stack, unwind_tables_default,
7910 have_named_sections): Move from target.def.
7911 (HOOK_PREFIX): Undefine at end of file.
7912 * common/common-target.h: Include input.h.
7913 (enum opt_levels, struct default_options): Move from target.h.
7914 * common/common-targhooks.c, common/common-targhooks.h: New.
7915 * config.gcc (target_has_targetm_common): Default to yes.
7916 (moxie*): Set target_has_targetm_common=no.
7917 (hppa*-*-*): Don't set target_has_targetm_common=yes.
7918 * doc/tm.texi: Regenerate.
7919 * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
7920 (C_TARGET_DEF_H): Add common/common-targhooks.h.
7921 (GCC_OBJS): Remove vec.o.
7922 (OBJS): Remove hooks.o and vec.o.
7923 (OBJS-libcommon-target): Add vec.o, hooks.o and
7924 common/common-targhooks.o.
7925 (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
7926 tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
7927 expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
7928 cfglayout.o, $(out_object_file), $(common_out_object_file)):
7929 Update dependencies.
7930 (common/common-targhooks.o): New.
7931 * common/config/default-common.c: Include tm.h. Add FIXME comment.
7932 * common/config/pa/pa-common.c: Include more headers. Take
7933 copyright dates from pa.c.
7934 (pa_option_optimization_table, pa_handle_option,
7935 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
7936 TARGET_HANDLE_OPTION): Move from pa.c.
7937 * common/config/alpha/alpha-common.c,
7938 common/config/arm/arm-common.c, common/config/avr/avr-common.c,
7939 common/config/bfin/bfin-common.c,
7940 common/config/cris/cris-common.c,
7941 common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
7942 common/config/h8300/h8300-common.c,
7943 common/config/i386/i386-common.c,
7944 common/config/ia64/ia64-common.c,
7945 common/config/iq2000/iq2000-common.c,
7946 common/config/lm32/lm32-common.c,
7947 common/config/m32c/m32c-common.c,
7948 common/config/m32r/m32r-common.c,
7949 common/config/m68k/m68k-common.c,
7950 common/config/mcore/mcore-common.c,
7951 common/config/mep/mep-common.c,
7952 common/config/microblaze/microblaze-common.c,
7953 common/config/mips/mips-common.c,
7954 common/config/mmix/mmix-common.c,
7955 common/config/mn10300/mn10300-common.c,
7956 common/config/pdp11/pdp11-common.c,
7957 common/config/picochip/picochip-common.c,
7958 common/config/rs6000/rs6000-common.c,
7959 common/config/rx/rx-common.c, common/config/s390/s390-common.c,
7960 common/config/score/score-common.c, common/config/sh/sh-common.c,
7961 common/config/sparc/sparc-common.c,
7962 common/config/spu/spu-common.c, common/config/v850/v850-common.c,
7963 common/config/vax/vax-common.c,
7964 common/config/xstormy16/xstormy16-common.c,
7965 common/config/xtensa/xtensa-common.c: New.
7966 * config/alpha/alpha.c: Include common/common-target.h.
7967 (alpha_option_optimization_table, alpha_handle_option,
7968 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7969 TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
7970 * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
7971 * config/arm/arm.c (arm_option_optimization_table,
7972 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
7973 TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
7974 arm-common.c.
7975 * config/avr/avr.c (avr_option_optimization_table,
7976 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
7977 to avr-common.c.
7978 * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
7979 (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
7980 TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
7981 * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
7982 * config/cris/cris.c (cris_option_optimization_table,
7983 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
7984 TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
7985 cris-common.c.
7986 * config/fr30/fr30.c (fr30_option_optimization_table,
7987 TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
7988 to fr30-common.c.
7989 * config/frv/frv.c (frv_option_optimization_table,
7990 MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
7991 TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
7992 * config/h8300/h8300.c (h8300_option_optimization_table,
7993 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
7994 TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
7995 * config/i386/i386-protos.h (ix86_handle_option): Declare.
7996 * config/i386/i386.c: Include common/common-target.h.
7997 (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
7998 OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
7999 OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
8000 OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
8001 OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
8002 OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
8003 OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
8004 OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
8005 OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
8006 OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
8007 OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
8008 OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
8009 OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
8010 OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
8011 OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
8012 OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
8013 OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
8014 OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
8015 OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
8016 OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
8017 OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
8018 OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
8019 OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
8020 OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
8021 OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
8022 OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
8023 OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
8024 OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
8025 OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
8026 ix86_option_optimization_table, ix86_option_init_struct,
8027 ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
8028 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8029 TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
8030 i386-common.c.
8031 * config/i386/t-i386 (i386.o): Update dependencies.
8032 * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
8033 * config/ia64/ia64.c (ia64_option_optimization_table,
8034 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
8035 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8036 ia64_handle_option): Move to ia64-common.c.
8037 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
8038 TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
8039 * config/lm32/lm32.c (lm32_option_optimization_table,
8040 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
8041 to lm32-common.c.
8042 * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
8043 m32c-common.c.
8044 * config/m32r/m32r.c (m32r_option_optimization_table,
8045 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8046 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
8047 m32r_handle_option): Move to m32r-common.c.
8048 (m32r_memory_move_cost): Remove comment referring to
8049 TARGET_HANDLE_OPTION.
8050 * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
8051 Move to m68k-common.c.
8052 * config/mcore/mcore.c (mcore_option_optimization_table,
8053 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8054 TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
8055 * config/mep/mep.c (mep_option_optimization_table,
8056 mep_handle_option, TARGET_HANDLE_OPTION,
8057 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
8058 Move to mep-common.c.
8059 * config/microblaze/microblaze.c
8060 (microblaze_option_optimization_table,
8061 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
8062 TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
8063 * config/mips/mips.c (mips_handle_option,
8064 mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
8065 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
8066 mips-common.c.
8067 * config/mmix/mmix.c (mmix_option_optimization_table,
8068 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
8069 Move to mmix-common.c.
8070 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
8071 mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
8072 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8073 TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
8074 * config/pa/pa.c: Include common/common-target.h.
8075 (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
8076 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8077 pa_handle_option): Move to pa-common.c.
8078 (pa_option_override): Use targetm_common.except_unwind_info.
8079 (pa_asm_output_mi_thunk, pa_function_section): Use
8080 targetm_common.have_named_sections.
8081 * config/pdp11/pdp11.c (pdp11_option_optimization_table,
8082 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8083 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
8084 pdp11_handle_option, pdp11_option_init_struct): Move to
8085 pdp11-common.c.
8086 * config/picochip/picochip.c (picochip_option_optimization_table,
8087 TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
8088 TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
8089 * config/rs6000/rs6000.c: Include common/common-target.h.
8090 (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
8091 TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
8092 TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
8093 rs6000_handle_option): Move to rs6000-common.c.
8094 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8095 * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
8096 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8097 TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
8098 * config/s390/s390.c (processor_flags_table,
8099 s390_option_optimization_table, s390_option_init_struct,
8100 s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
8101 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
8102 TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
8103 * config/s390/s390.h (processor_flags_table): Declare.
8104 * config/score/score.c (score_option_optimization_table,
8105 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8106 TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
8107 score_handle_option): Move to score-common.c.
8108 * config/sh/sh.c (sh_option_optimization_table,
8109 TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
8110 TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
8111 sh_handle_option, sh_option_init_struct): Move to sh-common.c.
8112 * config/sparc/sparc.c: Include common/common-target.h.
8113 (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
8114 TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
8115 * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
8116 TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
8117 spu_option_init_struct): Move to spu-common.c.
8118 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
8119 TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
8120 * config/v850/v850.c (small_memory_physical_max,
8121 v850_handle_memory_optionn v850_handle_option,
8122 v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
8123 TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
8124 v850-common.c.
8125 * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
8126 * config/xtensa/xtensa.c (xtensa_option_optimization_table,
8127 TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
8128 Move to xtensa-common.c.
8129 * cfglayout.c: Include common/common-target.h.
8130 (fixup_reorder_chain): Use targetm_common.have_named_sections.
8131 * cfgrtl.c: Include common/common-target.h.
8132 (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
8133 targetm_common.have_named_sections.
8134 * dbxout.c: Include common/common-target.h.
8135 (dbxout_function_end): Use targetm_common.have_named_sections.
8136 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
8137 targetm_common.except_unwind_info.
8138 * dwarf2out.c: Include common/common-target.h.
8139 (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
8140 dwarf2out_begin_prologue, dwarf2out_frame_init,
8141 dwarf2out_frame_finish, dwarf2out_assembly_start): Use
8142 targetm_common.except_unwind_info.
8143 * except.c: Include common/common-target.h.
8144 (init_eh, finish_eh_generation,
8145 output_one_function_exception_table): Use
8146 targetm_common.except_unwind_info.
8147 (switch_to_exception_section): Use targetm_common.have_named_sections.
8148 * explow.c: Include common/common-target.h.
8149 * expr.c: Include common/common-target.h.
8150 (build_personality_function): Use targetm_common.except_unwind_info.
8151 * function.c: Include common/common-target.h.
8152 (expand_function_end): Use targetm_common.except_unwind_info.
8153 * haifa-sched.c: Include common/common-target.h.
8154 (sched_create_recovery_edges): Use targetm_common.have_named_sections.
8155 * lto-opts.c: Include common/common-target.h instead of target.h.
8156 (lto_reissue_options): Use targetm_common.handle_option.
8157 * opts.c: Include common/common-target.h.
8158 (target_handle_option): Use targetm_common.handle_option.
8159 (init_options_struct): Update comment referring to
8160 targetm.target_option.optimization. Use
8161 targetm_common.default_target_flags,
8162 targetm_common.unwind_tables_default and
8163 targetm_common.option_init_struct.
8164 (default_options_optimization): Use
8165 targetm_common.option_optimization_table.
8166 (finish_options): Use targetm_common.except_unwind_info,
8167 targetm_common.unwind_tables_default,
8168 targetm_common.have_named_sections and
8169 targetm_common.supports_split_stack.
8170 * toplev.c: Include common/common-target.h.
8171 (process_options): Use targetm_common.have_named_sections.
8172 * tree-tailcall.c: Include common/common-target.h.
8173 (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
8174 * tree.c: Include common/common-target.h.
8175 (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
8176 * varasm.c: Include common/common-target.h.
8177 (resolve_unique_section, hot_function_section,
8178 default_function_section): Use targetm_common.have_named_sections.
8179
8180 2011-06-14 Easwaran Raman <eraman@google.com>
8181
8182 PR rtl-optimization/44194
8183 * dse.c: Include tree-flow.h
8184 (insn_info): Add new field non_frame_wild_read.
8185 (group_info): Add new fields escaped_n and escaped_p.
8186 (kill_on_calls): New variable.
8187 (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
8188 (dse_step0): Initialize kill_on_calls.
8189 (can_escape): New function.
8190 (set_usage_bits): Add additional parameter; record information
8191 about escaped locations.
8192 (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
8193 (dse_step2_nospill): Set kill_on_calls based on
8194 group->escaped_n and group->escaped_n.
8195 (add_wild_read): Refactor into...
8196 (reset_active_stores): ... New function, and
8197 (free_read_records): ... New function.
8198 (add_non_frame_wild_read): New function.
8199 (scan_insn): Call add_non_frame_wild_read on non-const calls.
8200 (scan_reads_nospill): Handle instructions with non_frame_wild_read.
8201 (dse_step5_nospill): Call scan_reads_nospill for instructions
8202 marked as non_frame_wild_read.
8203 (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
8204
8205 2011-06-14 Joseph Myers <joseph@codesourcery.com>
8206
8207 * common/common-target-def.h, common/common-target.def,
8208 common/common-target.h, common/config/default-common.c,
8209 common/config/pa/pa-common.c: New files.
8210 * Makefile.in (common_out_file, common_out_object_file,
8211 COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
8212 (OBJS-libcommon-target): Include $(common_out_object_file).
8213 (prefix.o): Update dependencies.
8214 ($(common_out_object_file), common/common-target-hooks-def.h,
8215 s-common-target-hooks-def-h): New.
8216 (s-tm-texi): Also check timestamp on common-target.def.
8217 (build/genhooks.o): Update dependencies.
8218 * config.gcc (common_out_file, target_has_targetm_common): Define.
8219 * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
8220 TARGET_ALWAYS_STRIP_DOTDOT.
8221 * configure.ac (common_out_object_file): Define.
8222 (common_out_file, common_out_object_file): Substitute.
8223 (common): Create directory.
8224 * configure: Regenerate.
8225 * doc/tm.texi.in (targetm_common): Document.
8226 (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
8227 * doc/tm.texi: Regenerate.
8228 * genhooks.c (hook_array): Also include common/common-target.def.
8229 * prefix.c (tm.h): Don't include.
8230 (common/common-target.h): Include.
8231 (ALWAYS_STRIP_DOTDOT): Don't define.
8232 (update_path): Use targetm_common.always_strip_dotdot instead of
8233 ALWAYS_STRIP_DOTDOT.
8234 * system.h (ALWAYS_STRIP_DOTDOT): Poison.
8235
8236 2011-06-14 David Li <davidxl@google.com>
8237
8238 * passes.c (execute_function_todo): Remove TODO_dump_func.
8239 (execute_one_pass): Remove TODO_dump_func.
8240 (execute_function_dump): New function.
8241 * tree-vrp.c: Remove TODO_dump_func.
8242 * regrename.c: Remove TODO_dump_func.
8243 * fwprop.c: Remove TODO_dump_func.
8244 * tree-into-ssa.c: Remove TODO_dump_func.
8245 * tree-complex.c: Remove TODO_dump_func.
8246 * tracer.c: Remove TODO_dump_func.
8247 * tree-loop-distribution.c: Remove TODO_dump_func.
8248 * postreload-gcse.c: Remove TODO_dump_func.
8249 * postreload.c: Remove TODO_dump_func.
8250 * tree-ssa-loop-ch.c: Remove TODO_dump_func.
8251 * tree-tailcall.c: Remove TODO_dump_func.
8252 * ipa-cp.c: Remove TODO_dump_func.
8253 * final.c: Remove TODO_dump_func.
8254 * tree-emutls.c: Remove TODO_dump_func.
8255 * omp-low.c: Remove TODO_dump_func.
8256 * tree-ssa-dse.c: Remove TODO_dump_func.
8257 * tree-ssa-uncprop.c: Remove TODO_dump_func.
8258 * auto-inc-dec.c: Remove TODO_dump_func.
8259 * reorg.c: Remove TODO_dump_func.
8260 * tree-ssa-copyrename.c: Remove TODO_dump_func.
8261 * tree-ssa-ccp.c: Remove TODO_dump_func.
8262 * compare-elim.c: Remove TODO_dump_func.
8263 * mode-switching.c: Remove TODO_dump_func.
8264 * modulo-sched.c: Remove TODO_dump_func.
8265 * tree-call-cdce.c: Remove TODO_dump_func.
8266 * cse.c: Remove TODO_dump_func.
8267 * web.c: Remove TODO_dump_func.
8268 * tree-stdarg.c: Remove TODO_dump_func.
8269 * lto-streamer-out.c: Remove TODO_dump_func.
8270 * tree-ssa-math-opts.c: Remove TODO_dump_func.
8271 * tree-ssa-dom.c: Remove TODO_dump_func.
8272 * tree-nrv.c: Remove TODO_dump_func.
8273 * loop-init.c: Remove TODO_dump_func.
8274 * gimple-low.c: Remove TODO_dump_func.
8275 * ipa-inline.c: Remove TODO_dump_func.
8276 * tree-ssa-sink.c: Remove TODO_dump_func.
8277 * jump.c: Remove TODO_dump_func.
8278 * ifcvt.c: Remove TODO_dump_func.
8279 * tree-ssa-loop.c: Remove TODO_dump_func.
8280 * recog.c: Remove TODO_dump_func.
8281 * dse.c: Remove TODO_dump_func.
8282 * tree-ssa-ifcombine.c: Remove TODO_dump_func.
8283 * matrix-reorg.c: Remove TODO_dump_func.
8284 * tree-eh.c: Remove TODO_dump_func.
8285 * regmove.c: Remove TODO_dump_func.
8286 * function.c: Remove TODO_dump_func.
8287 * tree-vectorizer.c: Remove TODO_dump_func.
8288 * ipa-split.c: Remove TODO_dump_func.
8289 * gcse.c: Remove TODO_dump_func.
8290 * tree-if-conv.c: Remove TODO_dump_func.
8291 * init-regs.c: Remove TODO_dump_func.
8292 * tree-ssa-phiopt.c: Remove TODO_dump_func.
8293 * implicit-zee.c: Remove TODO_dump_func.
8294 * lower-subreg.c: Remove TODO_dump_func.
8295 * bt-load.c: Remove TODO_dump_func.
8296 * tree-dfa.c: Remove TODO_dump_func.
8297 * except.c: Remove TODO_dump_func.
8298 * emit-rtl.c: Remove TODO_dump_func.
8299 * store-motion.c: Remove TODO_dump_func.
8300 * cfgexpand.c: Remove TODO_dump_func.
8301 * tree-cfgcleanup.c: Remove TODO_dump_func.
8302 * cfgcleanup.c: Remove TODO_dump_func.
8303 * tree-ssa-pre.c: Remove TODO_dump_func.
8304 * tree-sra.c: Remove TODO_dump_func.
8305 * tree-mudflap.c: Remove TODO_dump_func.
8306 * tree-ssa-copy.c: Remove TODO_dump_func.
8307 * cfglayout.c: Remove TODO_dump_func.
8308 * tree-ssa-forwprop.c: Remove TODO_dump_func.
8309 * tree-ssa-dce.c: Remove TODO_dump_func.
8310 * ira.c: Remove TODO_dump_func.
8311 * tree-ssa.c: Remove TODO_dump_func.
8312 * integrate.c: Remove TODO_dump_func.
8313 * tree-optimize.c: Remove TODO_dump_func.
8314 * tree-ssa-phiprop.c: Remove TODO_dump_func.
8315 * tree-object-size.c: Remove TODO_dump_func.
8316 * combine.c: Remove TODO_dump_func.
8317 * bb-reorder.c: Remove TODO_dump_func.
8318 * cprop.c: Remove TODO_dump_func.
8319 * var-tracking.c: Remove TODO_dump_func.
8320 * tree-profile.c: Remove TODO_dump_func.
8321 * tree-vect-generic.c: Remove TODO_dump_func.
8322 * reg-stack.c: Remove TODO_dump_func.
8323 * sched-rgn.c: Remove TODO_dump_func.
8324 * tree-ssa-structalias.c: Remove TODO_dump_func.
8325 * tree-switch-conversion.c: Remove TODO_dump_func.
8326 * tree-cfg.c: Remove TODO_dump_func.
8327 * tree-ssa-reassoc.c: Remove TODO_dump_func.
8328 * combine-stack-adj.c: Remove TODO_dump_func.
8329 * dce.c: Remove TODO_dump_func.
8330 * tree-ssanames.c: Remove TODO_dump_func.
8331 * regcprop.c: Remove TODO_dump_func.
8332
8333 2011-06-14 H.J. Lu <hongjiu.lu@intel.com>
8334
8335 PR middle-end/47364
8336 * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
8337 and properly handle result not in Pmode.
8338
8339 2011-06-14 Robert Millan <rmh@gnu.org>
8340
8341 * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
8342 * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
8343 `config/linux.h'.
8344
8345 * config/i386/kfreebsd-gnu64.h: New file.
8346 * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
8347 with `i386/kfreebsd-gnu64.h'.
8348
8349 * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
8350 (GNU_USER_LINK_EMULATION64): New macros.
8351 * config/i386/gnu-user64.h (LINK_SPEC): Rely on
8352 `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
8353 of hardcoding `elf_i386' and `elf_x86_64'.
8354
8355 2011-06-14 Nick Clifton <nickc@redhat.com>
8356
8357 PR target/49403
8358 * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
8359
8360 PR target/49402
8361 * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
8362
8363 2011-06-14 Jakub Jelinek <jakub@redhat.com>
8364
8365 PR fortran/49103
8366 * tree.h (DECL_NONSHAREABLE): Define.
8367 (struct tree_decl_common): Change decl_common_unused to
8368 decl_nonshareable_flag.
8369 * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
8370 Ignore vars with DECL_NONSHAREABLE bit set.
8371 * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
8372 on stores to automatic aggregate vars.
8373
8374 PR rtl-optimization/49390
8375 Revert:
8376 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
8377
8378 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
8379 MEM_ALIAS_SET.
8380
8381 2011-06-14 Zdenek Dvorak <ook@ucw.cz>
8382 Tom de Vries <tom@codesourcery.com>
8383
8384 PR target/45098
8385 * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
8386 Document changed semantics.
8387 (max_stmt_executions, max_stmt_executions_int): Declare.
8388 * tree-data-ref.c (estimated_loop_iterations)
8389 (estimated_loop_iterations_int): Move functions...
8390 * tree-ssa-loop-niter.c (estimated_loop_iterations)
8391 (estimated_loop_iterations_int): here.
8392 (record_estimate): Change nb_iterations_upper_bound and
8393 nb_iterations_estimate semantics.
8394 (max_stmt_executions, max_stmt_executions_int): New function.
8395 * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
8396 (max_stmt_executions_tree): this.
8397 (analyze_miv_subscript): Use max_stmt_executions_tree instead of
8398 estimated_loop_iterations_tree.
8399 tree-ssa-loop-ivopts.c (avg_loop_niter): Use
8400 max_stmt_executions_int instead of estimated_loop_iterations_int.
8401 * predict.c (predict_loops): Idem.
8402 * tree-parloops.c (parallelize_loops): Idem.
8403 * tree-data-ref.c (analyze_siv_subscript_cst_affine)
8404 (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
8405 (init_omega_for_ddr_1): Idem.
8406 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
8407 (loop_prefetch_arrays): Idem
8408 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
8409 max_stmt_executions instead of estimated_loop_iterations.
8410 * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
8411 * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
8412 instead of nb_iterations_upper_bound.
8413
8414 2011-06-13 Jan Hubicka <jh@suse.cz>
8415
8416 * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
8417
8418 2011-06-14 Richard Henderson <rth@redhat.com>
8419
8420 PR debug/48459
8421 * dwarf2out.c (frame_pointer_fb_offset_valid): New.
8422 (based_loc_descr): Assert it's true.
8423 (compute_frame_pointer_to_fb_displacement): Set it, rather than
8424 aborting immediately.
8425
8426 2011-06-14 Sanjin Liu <scliu@faraday-tech.com>
8427 Mingfeng Wu <mingfeng@faraday-tech.com>
8428
8429 * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
8430
8431 2011-06-13 Jan Hubicka <jh@suse.cz>
8432
8433 * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
8434
8435 2011-06-13 Jan Hubicka <jh@suse.cz>
8436
8437 * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
8438 similarly to DECL_COMDAT.
8439 * cgraphunit.c (cgraph_analyze_function): Likewise.
8440 * ipa.c (function_and_variable_visibility): Likewise.
8441
8442 2011-06-13 Jan Hubicka <jh@suse.cz>
8443
8444 * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
8445 BINFO_VIRTUALS when streaming for ltrans unit.
8446
8447 2011-06-13 David Edelsohn <dje.gcc@gmail.com>
8448
8449 * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
8450 (movdi_internal64): Same.
8451
8452 2011-06-13 Edmar Wienskoski <edmar@freescale.com>
8453
8454 PR target/44618
8455 * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
8456 a set of similar patterns, where the MATCH_OPERAND for the function
8457 argument is replaced with individual references to hardware registers.
8458 (save_fpregs_<mode>): Ditto
8459 (restore_gpregs_<mode>): Ditto
8460 (return_and_restore_gpregs_<mode>): Ditto
8461 (return_and_restore_fpregs_<mode>): Ditto
8462 (return_and_restore_fpregs_aix_<mode>): Ditto
8463
8464 2011-06-13 Jan Hubicka <jh@suse.cz>
8465
8466 * ipa-utils.c (postorder_stack): New structure.
8467 (ipa_reverse_postorder): Handle aliases.
8468
8469 2011-06-13 Jan Hubicka <jh@suse.cz>
8470
8471 * ipa-inline.c (reset_edge_caches): Walk aliases.
8472 (update_caller_keys): Do not test inlinability of aliases.
8473 * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
8474 (do_estimate_growth): Fix typo.
8475
8476 2011-06-13 Jan Hubicka <jh@suse.cz>
8477
8478 * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
8479 (can_remove_node_now_p): ... here; handle same comdat groups.
8480 (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
8481 (inline_call): Update use of can_remove_node_now_p.
8482
8483 2011-06-13 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
8484
8485 * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
8486 condition to disallow non-identical memory locations.
8487 (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
8488 preference to bit manipulation instructions.
8489
8490 2011-06-13 Jan Hubicka <jh@suse.cz>
8491
8492 * cgraph.c (cgraph_for_node_thunks_and_aliases,
8493 cgraph_for_node_and_aliases): Fix thinko in recursive walking.
8494 (nonremovable_p): New function.
8495 (cgraph_can_remove_if_no_direct_calls_p): New function.
8496 (used_from_object_file_p): New functoin.
8497 (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
8498 references from aliases.
8499 * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
8500 * ipa-inline.c (check_caller_edge): New function.
8501 (want_inline_function_called_once_p): Use it; accept aliases called
8502 once, too.
8503 * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
8504
8505 2011-06-13 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8506
8507 PR target/48454
8508 * config/arm/neon.md (vec_pack_trunc): Set the lengths
8509 correctly for the case with Quad vectors.
8510
8511 2011-06-13 Jakub Jelinek <jakub@redhat.com>
8512 Ira Rosen <ira.rosen@linaro.org>
8513
8514 PR tree-optimization/49352
8515 * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
8516 all, make sure loop_use_stmt after the loop is a def stmt of a used
8517 SSA_NAME that is the only one defined inside of the loop. Don't
8518 check for COND_EXPR and GIMPLE_BINARY_RHS.
8519 (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
8520 check_reduction is true.
8521
8522 2011-06-11 Jan Hubicka <jh@suse.cz>
8523
8524 PR middle-end/49373
8525 * ipa.c (cgraph_externally_visible_p): Check resolution info.
8526
8527 2011-06-11 Jan Hubicka <jh@suse.cz>
8528
8529 PR middle-end/48836
8530 * ipa-inline-transform.c: Include tree-pass.h
8531 (inline_transform): Set TODO_update_ssa_only_virtuals.
8532 * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
8533
8534 2011-06-11 Jan Hubicka <jh@suse.cz>
8535
8536 PR middle-end/49378
8537 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
8538 aliases and thunks.
8539
8540 2011-06-12 Ira Rosen <ira.rosen@linaro.org>
8541
8542 * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
8543 Take number of iterations to peel into account for equally frequent
8544 misalignment values.
8545
8546 2011-06-11 Jan Hubicka <jh@suse.cz>
8547
8548 * lto-streamer-out.c (produce_symtab): Stream out the newly
8549 represented aliases.
8550
8551 2011-06-11 Jan Hubicka <jh@suse.cz>
8552
8553 * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
8554 varying args.
8555 (ipa_update_after_lto_read): Likewise.
8556 (ipa_write_node_info): Do not sream call_with_var_arguments.
8557 (ipa_read_node_info): Likewise.
8558
8559 2011-06-11 Jan Hubicka <jh@suse.cz>
8560
8561 * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
8562
8563 2011-06-11 Jan Hubicka <jh@suse.cz>
8564
8565 * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
8566 (lto_symtab_resolve_can_prevail_p): Likewise.
8567 (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
8568 * cgraph.c (same_body_aliases_done): New global var.
8569 (cgraph_same_body_alias_1): Rename to ...
8570 (cgraph_create_function_alias): ... this one; reorg to new
8571 representation.
8572 (cgraph_same_body_alias): Use cgraph_create_function_alias;
8573 record references when asked to.
8574 (cgraph_add_thunk): Fix formating.
8575 (cgraph_get_node): Kill same body alias code.
8576 (cgraph_node_for_asm): Likewise.
8577 (cgraph_remove_same_body_alias): Remove.
8578 (cgraph_remove_node): Kill same body alias code.
8579 (cgraph_mark_address_taken_node): Mark also the aliased function
8580 as having address taken.
8581 (dump_cgraph_node): Dump same body aliases.
8582 (cgraph_for_node_thunks_and_aliases): Update for new alias
8583 representation.
8584 (cgraph_for_node_and_aliases): Likewise.
8585 * cgraph.h (same_body): Kll pointer.
8586 (same_body_alias): Update comment.
8587 (same_body_aliases_done): Declare.
8588 (cgraph_remove_same_body_alias): Remove declaration.
8589 (cgraph_create_function_alias): Declare.
8590 (cgraph_process_same_body_aliases): Declare.
8591 (cgraph_function_with_gimple_body_p): Check for alias.
8592 (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
8593 (cgraph_alias_aliased_node): New function.
8594 (cgraph_function_node): Update for new aliases.
8595 (cgraph_function_or_thunk_node): Likewise.
8596 * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
8597 (inline_call): Remove dead aliases.
8598 * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
8599 name hack for same body aliases.
8600 (clone_of_p): Look through aliases.
8601 (verify_cgraph_node): Verify aliases.
8602 (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
8603 (cgraph_process_same_body_aliases): New function.
8604 (process_function_and_variable_attributes): Disable weakref warning on
8605 alias.
8606 (cgraph_analyze_functions): Handle aliases.
8607 (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
8608 (assemble_thunks): Rename to ...
8609 (assemble_thunks_and_aliases): ... this one; handle aliases, too.
8610 (cgraph_expand_function): Remove alias output code.
8611 (cgraph_output_in_order): Skip aliases.
8612 (cgraph_preserve_function_body_p): Aliases don't need preserving.
8613 * ipa-ref.c (ipa_ref_use_name): Add alias reference.
8614 (ipa_record_reference): Do not assert on alias references.
8615 (ipa_ref_has_aliases_p): New function.
8616 * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
8617 (ipa_ref_has_aliases_p): Declare.
8618 * lto-cgraph.c (lto_output_node): Handle aliases.
8619 (input_node): Likewise.
8620 * lto-streamer-out.c (lto_output): Skip aliases.
8621 (produce_symtab): Kill same_body_alias code.
8622 * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
8623 (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
8624 * ipa-inline.c (update_caller_keys): Walk aliases.
8625 (inline_small_functions): Fix thinko in previous patch.
8626 * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
8627 (function_and_variable_visibility): Do not walk same body aliases.
8628 * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
8629 (ipa_pta_execute): Use it.
8630
8631 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
8632
8633 * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
8634 (*vec_dupv2df): Rename from vec_dupv2df.
8635 (vec_dupv2df): New expander.
8636
8637 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
8638
8639 * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
8640
8641 2011-06-11 Uros Bizjak <ubizjak@gmail.com>
8642
8643 * config/i386/i386.md: Use default value in "isa" attribute.
8644 * config/i386/sse.md: Ditto.
8645 * config/i386/mmx.md: Ditto.
8646
8647 2011-06-10 Wei Guozhi <carrot@google.com>
8648
8649 PR target/45335
8650 * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
8651 stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
8652 (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
8653 related peephole2.
8654 (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
8655 related peephole2.
8656 * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
8657 (arm_legitimate_ldrd_p): New prototype.
8658 (arm_output_ldrd): New prototype.
8659 * config/arm/arm.c (arm_check_ldrd_operands): New function.
8660 (arm_legitimate_ldrd_p): New function.
8661 (arm_output_ldrd): New function.
8662
8663 2011-06-10 David Li <davidxl@google.com>
8664
8665 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
8666 * passes.c (passr_eq): New function.
8667 (create_pass_tab): New function.
8668 (pass_traverse): New function.
8669 (dump_one_pass): New function.
8670 (dump_pass_list): New function.
8671 (dump_passes): New function.
8672
8673 2011-06-10 Jan Hubicka <jh@suse.cz>
8674
8675 * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
8676 setting the nothrow flag.
8677 * ipa-reference.c (propagate): Skip aliases.
8678 * ipa-pure-const.c (propagate_pure_const): Skip aliases.
8679 (propagate_nothrow): Skip aliases; do not update cgraph.
8680 (local_pure_const): Do not update cgraph.
8681 * tree-profile.c (tree_profiling): Do fixup_cfg.
8682
8683 2011-06-10 Jan Hubicka <jh@suse.cz>
8684
8685 * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
8686 (cgraph_local_node_p): ... here; handle aliases.
8687 (has_addr_references_p): Break out from ...;
8688 (cgraph_remove_unreachable_nodes) ... here.
8689
8690 2011-06-10 Jan Hubicka <jh@suse.cz>
8691
8692 * opts.c (default_options): Enlist OPT_finline_functions_called_once.
8693 * common.opt (flag_inline_functions_called_once): Do not
8694 initialize to 1.
8695
8696 2011-06-10 Jan Hubicka <jh@suse.cz>
8697
8698 * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
8699 (ipcp_initialize_node_lattices): Do not deal with aliases;
8700 Do not try to propagate through thunks.
8701 (ipcp_change_tops_to_bottom): Do not deal with aliases.
8702
8703 2011-06-10 Jan Hubicka <jh@suse.cz>
8704
8705 * ipa-prop.c (ipa_write_node_info): Stream jump functions
8706 for indirect calls.
8707 (ipa_read_node_info): Likewise.
8708
8709 2011-06-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8710
8711 PR lto/49302
8712 * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
8713 (build_and_insert_call): Likewise.
8714 (build_and_insert_ref): New.
8715 (gimple_expand_builtin_pow): Minor cleanup.
8716 (gimple_expand_builtin_cabs): New.
8717 (execute_cse_sincos): Add case for BUILT_IN_CABS.
8718
8719 2011-06-10 Jan Hubicka <jh@suse.cz>
8720
8721 * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
8722 (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
8723 (ipcp_initialize_node_lattices): We don't propagate through an aliases.
8724 (ipcp_propagate_stage): Skip aliases when propagating.
8725 (ipcp_need_redirect_p): Skip aliases.
8726 (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
8727 collect_callers_of_node.
8728 * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
8729 for aliases.
8730 (ipa_compute_jump_functions): Look through aliases.
8731
8732 2011-06-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8733
8734 * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
8735
8736 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
8737
8738 * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
8739 Adjust comments.
8740 * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
8741
8742 2011-06-10 Jan Hubicka <jh@suse.cz>
8743
8744 * ipa-cp.c (ipcp_process_devirtualization_opportunities):
8745 Update call of gimple_get_virt_method_for_binfo.
8746 * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
8747 refuse_thunks parameter.
8748 (gimple_fold_call): Update.
8749 * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
8750
8751 2011-06-10 Jan Hubicka <jh@suse.cz>
8752
8753 * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
8754 (not_all_callers_have_enough_arguments_p): ... this one; turn into
8755 worker for cgraph_for_node_and_aliases.
8756 (convert_callers_for_node): Break out from ...
8757 (convert_callers): ... here.
8758 (modify_function): Use collect_callers_of_node.
8759 (ipa_early_sra): Use cgraph_for_node_and_aliases.
8760
8761 2011-06-10 Richard Guenther <rguenther@suse.de>
8762
8763 PR tree-optimization/49361
8764 * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
8765 when not already in gimple form.
8766
8767 2011-06-10 Richard Guenther <rguenther@suse.de>
8768
8769 PR bootstrap/49344
8770 * tree-ssa-math-opts.c (convert_mult_to_fma): Use
8771 FOR_EACH_PHI_OR_STMT_USE.
8772
8773 2011-06-10 Jan Hubicka <jh@suse.cz>
8774
8775 * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
8776 (clone_inlined_nodes): ... here.
8777 (inline_call): Use cgraph_function_or_thunk_node; redirect edge
8778 to real destination prior inlining.
8779 * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
8780 can_early_inline_edge_p, want_early_inline_function_p,
8781 want_early_inline_function_p, want_inline_small_function_p,
8782 want_inline_self_recursive_call_p, want_inline_function_called_once_p,
8783 edge_badness, update_all_callee_keys, lookup_recursive_calls,
8784 add_new_edges_to_heap, inline_small_functions, flatten_function,
8785 inline_always_inline_functions, early_inline_small_functions): Use
8786 cgraph_function_or_thunk_node.
8787 * ipa-inline-analysis.c (evaluate_conditions_for_edge,
8788 dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
8789 (do_estimate_edge_growth_1): Break out from ...
8790 (do_estimate_growth) ... here; walk aliases.
8791 (inline_generate_summary): Skip aliases.
8792
8793 2011-06-10 Richard Guenther <rguenther@suse.de>
8794
8795 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
8796 forward when combining, visit inserted stmts when a stmt was changed.
8797
8798 2011-06-10 Paolo Carlini <paolo.carlini@oracle.com>
8799
8800 * tree.h (error_operand_p): Add.
8801 * dbxout.c (dbxout_type_fields): Use the latter.
8802 * c-decl.c (add_stmt): Likewise.
8803 * gimplify.c (omp_add_variable, omp_notice_variable,
8804 gimplify_scan_omp_clauses): Likewise.
8805
8806 2011-06-10 Georg-Johann Lay <avr@gjlay.de>
8807
8808 * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
8809 when a value is actually passed in regs.
8810
8811 2011-06-10 Eric Botcazou <ebotcazou@adacore.com>
8812 Laurent Rougé <laurent.rouge@menta.fr>
8813
8814 * doc/invoke.texi (SPARC options): Add -mflat.
8815 * config/sparc/sparc.opt: Likewise.
8816 * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
8817 (sparc_flat_expand_prologue): Declare.
8818 (sparc_flat_expand_epilogue): Likewise.
8819 * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
8820 (CPP_ENDIAN_SPEC): Replace with...
8821 (CPP_OTHER_SPEC): ...this. Also handle -mflat and -msoft-float.
8822 (CPP_SPEC): Adjust to above change.
8823 (EXTRA_SPECS): Likewise.
8824 (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
8825 (INCOMING_REGNO): Likewise.
8826 (OUTGOING_REGNO): Likewise.
8827 (LOCAL_REGNO): Likewise.
8828 (SETUP_FRAME_ADDRESSES): Likewise.
8829 (FIXED_REGISTERS): Set 0 for %fp.
8830 (CALL_USED_REGISTERS): Likewise.
8831 (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
8832 (EXIT_IGNORE_STACK): Define to 1 unconditionally.
8833 (RETURN_ADDR_REGNUM): Define.
8834 (RETURN_ADDR_RTX): Use it.
8835 (INCOMING_RETURN_ADDR_REGNUM): Define.
8836 (INCOMING_RETURN_ADDR_RTX): Use it.
8837 (DWARF_FRAME_RETURN_COLUMN): Likewise.
8838 (EH_RETURN_REGNUM): Define.
8839 (EH_RETURN_STACKADJ_RTX): Use it.
8840 (EH_RETURN_HANDLER_RTX): Delete.
8841 (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
8842 * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
8843 Delete.
8844 (struct machine_function): Add frame_size, apparent_frame_size,
8845 frame_base_reg, frame_base_offset, n_global_fp_regs and
8846 save_local_in_regs_p fields.
8847 (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
8848 sparc_frame_base_offset, sparc_n_global_fp_regs,
8849 sparc_save_local_in_regs_p): New macros.
8850 (sparc_option_override): Error out if -fcall-saved-REG is specified
8851 for Out registers.
8852 (eligible_for_restore_insn): Fix formatting.
8853 (eligible_for_return_delay): Likewise. Add TARGET_FLAT handling.
8854 (eligible_for_sibcall_delay): Likewise.
8855 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
8856 (sparc_legitimate_address_p): Adjust to above change.
8857 (save_global_or_fp_reg_p): New predicate.
8858 (return_addr_reg_needed_p): Likewise.
8859 (save_local_or_in_reg_p): Likewise.
8860 (sparc_compute_frame_size): Use them. Add TARGET_FLAT handling.
8861 (SORR_SAVE, SORR_RESTORE): Delete.
8862 (sorr_pred_t): New typedef.
8863 (sorr_act_t): New enum.
8864 (save_or_restore_regs): Rename to...
8865 (emit_save_or_restore_regs): ...this. Change type of LOW and HIGH
8866 parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
8867 ACTION_TRUE and ACTION_FALSE parameters. Implement more general
8868 mechanism. Add CFI information for double-word saves in 32-bit mode.
8869 (emit_adjust_base_to_offset): New function extracted from...
8870 (emit_save_or_restore_regs): ...this. Rename the rest to...
8871 (emit_save_or_restore_regs_global_fp_regs): ...this.
8872 (emit_save_or_restore_regs_local_in_regs): New function.
8873 (gen_create_flat_frame_[123]): New functions.
8874 (sparc_expand_prologue): Use SIZE local variable. Adjust.
8875 (sparc_flat_expand_prologue): New function.
8876 (sparc_asm_function_prologue): Add TARGET_FLAT handling.
8877 (sparc_expand_epilogue): Use SIZE local variable. Adjust.
8878 (sparc_flat_expand_epilogue): New function.
8879 (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
8880 (output_return): Likewise.
8881 (output_sibcall): Likewise.
8882 (sparc_output_mi_thunk): Likewise.
8883 (sparc_frame_pointer_required): Likewise.
8884 (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
8885 function optimization.
8886 * config/sparc/sparc.md (flat): New attribute.
8887 (prologue): Add TARGET_FLAT handling.
8888 (save_register_window): Disable if TARGET_FLAT.
8889 (create_flat_frame_[123]): New patterns.
8890 (epilogue): Add TARGET_FLAT handling.
8891 (sibcall_epilogue): Likewise.
8892 (eh_return): New expander.
8893 (eh_return_internal): New insn and splitter.
8894 (return_internal): Add TARGET_FLAT handling.
8895 (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
8896 (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
8897 (nonlocal_goto): Add TARGET_FLAT handling.
8898 * config/sparc/t-elf: Add -mflat multilib.
8899 * config/sparc/t-leon: Likewise.
8900
8901 2011-06-10 Jan Hubicka <jh@suse.cz>
8902
8903 * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
8904 * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
8905 (self_recursive_p): Use cgraph_function_node.
8906 (propagate_pure_const): Likewise.
8907 (propagate_nothrow): Likewise.
8908 * ipa-reference.c (ipa_reference_get_not_read_global): Use
8909 cgraph_function_node.
8910 (propagate_bits): Likewise.
8911 (propagate): Likewise.
8912
8913 2011-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8914 Richard Earnshaw <rearnsha@arm.com>
8915
8916 * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
8917 * config/arm/vfp.md (*arm_movdi_vfp): Delete.
8918 (*thumb2_movdi_vfp): Delete.
8919 (*arm_movdi_vfp_cortexa8): Delete.
8920 (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
8921 (*movdi_vfp_cortexa8): Likewise.
8922
8923 2011-06-10 Richard Guenther <rguenther@suse.de>
8924
8925 * stor-layout.c (initialize_sizetypes): Give names to all
8926 sizetype kinds.
8927
8928 2011-06-10 Ira Rosen <ira.rosen@linaro.org>
8929
8930 PR tree-optimization/49318
8931 * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
8932 irrelevant pattern statements.
8933
8934 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
8935
8936 * system.h (SETJMP_VIA_SAVE_AREA): Poison.
8937
8938 PR bootstrap/49354
8939 * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
8940 to last assignment.
8941
8942 2011-06-09 Jan Hubicka <jh@suse.cz>
8943
8944 * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
8945 do not recompute reachable flag.
8946 (cgraph_finalize_function, cgraph_analyze_functions): Set
8947 redefined_extern_inline here.
8948
8949 2011-06-09 Jan Hubicka <jh@suse.cz>
8950
8951 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
8952 (cgraph_only_called_directly_p): ... this one; bring offline.
8953 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
8954 varpool_used_from_object_file_p): Drop names from the declaratoin.
8955 (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
8956 collect_callers_of_node): New.
8957 (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
8958 (cgraph_edge_recursive_p): Use cgraph_function_node.
8959 * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
8960 (cgraph_node_cannot_be_local_p_1): Break out from ...
8961 (cgraph_node_can_be_local_p): ... here; walk aliases.
8962 (cgraph_for_node_thunks_and_aliases): New function.
8963 (cgraph_for_node_and_aliases): New function.
8964 (cgraph_make_node_local_1): Break out from ...
8965 (cgraph_make_node_local) ... here; use
8966 cgraph_for_node_thunks_and_aliases.
8967 (cgraph_set_nothrow_flag_1): Break out from ...
8968 (cgraph_set_nothrow_flag) ... here;
8969 use cgraph_for_node_thunks_and_aliases.
8970 (cgraph_set_const_flag_1): Break out from ...
8971 (cgraph_set_const_flag) ... here;
8972 use cgraph_for_node_thunks_and_aliases.
8973 (cgraph_set_pure_flag_1): Break out from ...
8974 (cgraph_set_pure_flag) ... here;
8975 use cgraph_for_node_thunks_and_aliases.
8976 (cgraph_propagate_frequency_1): Break out from ...
8977 (cgraph_propagate_frequency) ... here; use
8978 cgraph_for_node_thunks_and_aliases.
8979 (cgraph_used_from_object_file_p): Do not care about aliases.
8980 (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
8981 New functions.
8982 (collect_callers_of_node_1, collect_callers_of_node): New functions.
8983
8984 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
8985
8986 PR rtl-optimization/49154
8987 * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
8988 (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
8989 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
8990 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
8991 * config/cris/cris.h (cris_register_move_cost): Remove
8992 !TARGET_V32 code. Tweak comments.
8993
8994 2011-06-09 Jan Hubicka <jh@suse.cz>
8995
8996 * cgraphbuild.c (record_eh_tables): Mark personality function as having
8997 address taken.
8998
8999 2011-06-10 Hans-Peter Nilsson <hp@axis.com>
9000
9001 PR rtl-optimization/49154
9002 * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
9003 is a matching slot in the hashtable, assign it to classes_ptr.
9004
9005 PR rtl-optimization/49154
9006 * doc/tm.texi.in (Register Classes): Document rule for the narrowest
9007 register classes.
9008 * doc/tm.texi: Regenerate.
9009
9010 2011-06-09 Kaz Kojima <kkojima@gcc.gnu.org>
9011
9012 PR target/49307
9013 * config/sh/sh.md (UNSPEC_CHKADD): New.
9014 (chk_guard_add): New define_insn_and_split.
9015 (symGOT_load): Use chk_guard_add instead of blockage.
9016
9017 2011-06-09 Kai Tietz <ktietz@redhat.com>
9018
9019 * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
9020
9021 2011-06-09 Eric Botcazou <ebotcazou@adacore.com>
9022
9023 * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
9024
9025 2011-06-09 Wei Guozhi <carrot@google.com>
9026
9027 PR target/46975
9028 * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
9029 (peephole2 for conditional move): Generate 16 bit instructions.
9030
9031 2011-06-09 Uros Bizjak <ubizjak@gmail.com>
9032
9033 * config/i386/i386.md (*movdi_internal_rex64): Merge
9034 alternatives 6 and 8.
9035
9036 2011-06-09 David Li <davidxl@google.com>
9037
9038 * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
9039 * passes.c (passr_eq): New function.
9040 (create_pass_tab): New function.
9041 (pass_traverse): New function.
9042 (dump_one_pass): New function.
9043 (dump_pass_list): New function.
9044 (dump_passes): New function.
9045
9046 2011-06-09 David Li <davidxl@google.com>
9047
9048 * tree-complex.c (tree_lower_complex): Gate cleanup.
9049 * tree-stdarg.c (check_all_va_list_escapes): Ditto.
9050 (execute_optimize_stdarg): Ditto.
9051 * tree-eh.c (execute_lower_eh_dispatch): Ditto.
9052 (execute_cleanup_eh_1): Ditto.
9053 (execute_cleanup_eh): Ditto.
9054 * gcse.c (gate_rtl_pre): Ditto.
9055 (execute_rtl_pre): Ditto.
9056 * except.c (finish_eh_generation): Ditto.
9057 (convert_to_eh_region_ranges): Ditto.
9058 * cprop.c (one_cprop_pass): Ditto.
9059
9060 2011-06-09 Bernd Schmidt <bernds@codesourcery.com>
9061
9062 PR target/48673
9063 * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
9064 in all basic blocks.
9065
9066 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9067
9068 * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
9069 (HAVE_ENABLE_EXECUTE_STACK): Define.
9070 * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
9071 (HAVE_ENABLE_EXECUTE_STACK): Define.
9072 * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
9073 (HAVE_ENABLE_EXECUTE_STACK): Define.
9074 * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
9075 (ENABLE_EXECUTE_STACK): Remove.
9076 (HAVE_ENABLE_EXECUTE_STACK): Define.
9077 [IN_LIBGCC2]: Don't include <windows.h>.
9078 * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
9079 (HAVE_ENABLE_EXECUTE_STACK): Define.
9080 * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
9081 (HAVE_ENABLE_EXECUTE_STACK): Define.
9082 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
9083 * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
9084 (HAVE_ENABLE_EXECUTE_STACK): Define.
9085 * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
9086 (HAVE_ENABLE_EXECUTE_STACK): Define.
9087 * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
9088 (HAVE_ENABLE_EXECUTE_STACK): Define.
9089 * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
9090 (HAVE_ENABLE_EXECUTE_STACK): Define.
9091 * config/alpha/alpha.c (alpha_trampoline_init): Test
9092 HAVE_ENABLE_EXECUTE_STACK.
9093 * config/i386/i386.c (ix86_trampoline_init): Likewise.
9094 * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
9095 (sparc64_initialize_trampoline): Likewise.
9096 * libgcc2.c [L_enable_execute_stack]: Remove.
9097 * system.h (ENABLE_EXECUTE_STACK): Poison.
9098 * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
9099 * doc/tm.texi: Regenerate.
9100 * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
9101
9102 2011-06-09 Jakub Jelinek <jakub@redhat.com>
9103
9104 PR middle-end/49308
9105 * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
9106 variable. After resetting and rescanning insn continue with previous
9107 statement.
9108
9109 2011-06-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9110
9111 * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
9112 (gcc_cv_ld_hidden): Likewise.
9113 * configure: Regenerate.
9114 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
9115 (ix86_stack_protect_fail): Mark unused.
9116 (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
9117 * config/rs6000/rs6000.c (rs6000_assemble_visibility)
9118 [TARGET_MACHO]: Don't define.
9119 (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
9120 (TARGET_STACK_PROTECT_FAIL): Likewise.
9121 (rs6000_stack_protect_fail): Mark unused.
9122 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
9123 USE_LINKONCE_INDIRECT. Don't emit .hidden expicitly.
9124
9125 2011-06-08 Andi Kleen <ak@linux.intel.com>
9126
9127 * varasm.c (get_section): Print location of other conflict
9128 for section conflicts.
9129
9130 2011-06-08 Andi Kleen <ak@linux.intel.com>
9131
9132 * config/i386/driver-i386.c (host_detect_local_cpu):
9133 Add model 0x2d Intel CPU.
9134
9135 2011-06-08 Andi Kleen <ak@linux.intel.com>
9136
9137 * reginfo.c (global_regs_decl): Add.
9138 (globalize_reg): Add decl parameter. Compute location. Pass location
9139 to warnings and add inform. Store decl in global_regs_decl.
9140 * rtl.h (globalize_reg): Update prototype.
9141 * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
9142
9143 2011-06-09 Mingjie Xing <mingjie.xing@gmail.com>
9144
9145 * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
9146
9147 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
9148
9149 PR target/49305
9150 * config/sh/predicates.md (general_movsrc_operand): Check
9151 mode for memory with indexed address for QI and HImode.
9152 (general_movdst_operand): Likewise.
9153
9154 2011-06-09 Nicola Pero <nicola.pero@meta-innovation.com>
9155
9156 * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
9157
9158 2011-06-08 Alexandre Oliva <aoliva@redhat.com>
9159
9160 * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
9161 (num_ssa_operands): Likewise.
9162 (op_iter_init_phiuse): Forward-declare.
9163 (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
9164
9165 2011-06-08 Nick Clifton <nickc@redhat.com>
9166
9167 * doc/invoke.texi (ARM Options): Update description of
9168 -mthumb-interwork.
9169
9170 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
9171
9172 * config/i386/driver-i386.c (host_detect_local_cpu): Support
9173 unknown Intel family 0x6 CPUs.
9174
9175 2011-06-08 Martin Jambor <mjambor@suse.cz>
9176
9177 * tree-sra.c (mark_rw_status): Removed.
9178 (analyze_access_subtree): New parameter parent instead of
9179 mark_read and mark_write, propagate from that.
9180
9181 2011-06-08 Julian Brown <julian@codesourcery.com>
9182
9183 * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
9184 for double-precision helper functions in hard-float mode if only
9185 single-precision arithmetic is supported in hardware.
9186
9187 2011-06-08 Alexander Monakov <amonakov@ispras.ru>
9188
9189 PR rtl-optimization/49303
9190 * sel-sched.c (move_op): Use correct type for 'res'. Verify that
9191 code_motion_path_driver returned 0 or 1.
9192 (sel_region_finish): Clear h_d_i_d.
9193
9194 2011-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
9195
9196 * config/sh/sh.c (prepare_move_operands): Set pic register
9197 appropriately for global and local dynamic tls models even
9198 if flag_pic is unset.
9199
9200 2011-06-07 Jason Merrill <jason@redhat.com>
9201
9202 * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
9203
9204 2011-06-07 Xinliang David Li <davidxl@google.com>
9205 * passes.c (enable_disable_pass): Handle assembler name.
9206 (is_pass_explicitly_enabled_or_disabled): Ditto.
9207
9208 2011-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9209
9210 PR tree-optimization/48497
9211 * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
9212
9213 2011-06-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9214
9215 PR tree-optimization/46728
9216 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
9217 to use gimple_val_nonnegative_real_p.
9218 * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
9219 * gimple.h (gimple_val_nonnegative_real_p): New declaration.
9220
9221 2011-06-07 H.J. Lu <hongjiu.lu@intel.com>
9222
9223 * config/i386/i386.md (*movsf_internal): Optimize AVX check.
9224
9225 2011-06-07 Sergey Grechanik <mouseentity@ispras.ru>
9226
9227 * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
9228 constant vectors.
9229
9230 2011-06-07 Richard Guenther <rguenther@suse.de>
9231
9232 * stor-layout.c (initialize_sizetypes): Initialize all
9233 sizetypes based on target definitions.
9234 (set_sizetype): Remove.
9235 * tree.c (build_common_tree_nodes): Do not call set_sizetype.
9236 * tree.h (set_sizetype): Remove.
9237
9238 2011-06-07 Nick Clifton <nickc@redhat.com>
9239
9240 * config.gcc: Unify V850 architecture options and add support for
9241 newer V850 architectures.
9242 * config/v850/t-v850e: Delete.
9243
9244 2011-06-07 Richard Guenther <rguenther@suse.de>
9245
9246 * tree.c (build_common_tree_nodes): Also initialize size_type_node.
9247 Call set_sizetype from here.
9248
9249 2011-06-07 Andrew Stubbs <ams@codesourcery.com>
9250
9251 * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
9252 (*maddhisi4tb, *maddhisi4tt): New define_insns.
9253
9254 2011-06-07 Bernd Schmidt <bernds@codesourcery.com>
9255 Andrew Stubbs <ams@codesourcery.com>
9256
9257 * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
9258 multiplies.
9259 * doc/md.texi (Canonicalization of Instructions): Document widening
9260 multiply canonicalization.
9261
9262 2011-06-07 Jakub Jelinek <jakub@redhat.com>
9263
9264 PR gcov-profile/49299
9265 * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
9266
9267 2011-06-07 Ira Rosen <ira.rosen@linaro.org>
9268
9269 * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
9270 a pointer.
9271 * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
9272 vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
9273 vect_recog_pow_pattern): Likewise.
9274 (vect_pattern_recog_1): Remove declaration.
9275 (widened_name_p): Remove declaration. Add new argument to specify
9276 whether to check that both types are either signed or unsigned.
9277 (vect_recog_widen_mult_pattern): Update documentation. Handle
9278 unsigned patterns and multiplication by constants.
9279 (vect_pattern_recog_1): Update vect_recog_func references. Use
9280 statement information from the statement returned from pattern
9281 detection functions.
9282 (vect_pattern_recog): Update vect_recog_func reference.
9283 * tree-vect-stmts.c (vectorizable_type_promotion): For widening
9284 multiplication by a constant use the type of the other operand.
9285
9286 2011-06-06 Richard Sandiford <rdsandiford@googlemail.com>
9287
9288 PR rtl-optimization/49145
9289 * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
9290
9291 2011-06-06 Jakub Jelinek <jakub@redhat.com>
9292
9293 PR debug/49262
9294 * dwarf2out.c (native_encode_initializer): Decrement count in each
9295 iteration.
9296
9297 PR debug/49294
9298 * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
9299 non-MODE_INT modes.
9300
9301 PR c++/49264
9302 * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
9303 if stmt folded into nothing.
9304 * tree-inline.c (fold_marked_statements): If a builtin at the end of
9305 a bb folded into nothing, just update cgraph edges and move to next bb.
9306 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
9307 to be NULL. Don't compute count and frequency if new_call is NULL.
9308
9309 2011-06-04 Diego Novillo <dnovillo@google.com>
9310
9311 * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
9312 (cgraph.o): Likewise.
9313 (cgraphunit.o): Likewise.
9314 * cgraphunit.c: Include lto-streamer.h
9315 (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
9316 if LTO is enabled.
9317 * lto-streamer-in.c (unpack_value_fields): Call
9318 streamer_hooks.unpack_value_fields if set.
9319 (lto_materialize_tree): For unhandled nodes, first try to
9320 call lto_streamer_hooks.alloc_tree, if it exists.
9321 (lto_input_ts_decl_common_tree_pointers): Move reading of
9322 DECL_INITIAL to lto_streamer_read_tree.
9323 (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
9324 (lto_streamer_read_tree): New.
9325 (lto_reader_init): Rename from lto_init_reader.
9326 Move initialization code to lto/lto.c.
9327 * lto-streamer-out.c (pack_value_fields): Call
9328 streamer_hooks.pack_value_fields if set.
9329 (lto_output_tree_ref): For tree nodes that are not normally indexable,
9330 call streamer_hooks.indexable_with_decls_p before giving up.
9331 (lto_output_ts_decl_common_tree_pointers): Move handling
9332 for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
9333 (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
9334 lto_is_streamable. Call lto_streamer_hooks.output_tree_header if set.
9335 (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
9336 (lto_streamer_write_tree): New.
9337 (lto_output): Call lto_streamer_init directly.
9338 (lto_writer_init): Remove.
9339 * lto-streamer.c (streamer_hooks): New.
9340 (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
9341 instead of lto_preload_common_nodes.
9342 (lto_is_streamable): Move from lto-streamer.h
9343 (lto_streamer_hooks_init): New.
9344 (streamer_hooks): New.
9345 (streamer_hooks_init): New.
9346 * lto-streamer.h (struct output_block): Forward declare.
9347 (struct lto_input_block): Likewise.
9348 (struct data_in): Likewise.
9349 (struct bitpack_d): Likewise.
9350 (struct streamer_hooks): Declare.
9351 (streamer_hooks): Declare.
9352 (lto_streamer_hooks_init): Declare.
9353 (lto_streamer_write_tree): Declare.
9354 (lto_streamer_read_tree): Declare.
9355 (streamer_hooks_init): Declare.
9356 (lto_is_streamable): Move to lto-streamer.c
9357
9358 2011-06-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9359
9360 * longlong.h (smul_ppmm): The resulting register pair contains the
9361 higher order word first.
9362
9363 2011-06-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9364
9365 PR tree-optimization/46728
9366 * builtins.c (powi_table): Remove.
9367 (powi_lookup_cost): Remove.
9368 (powi_cost): Remove.
9369 (expand_powi_1): Remove.
9370 (expand_powi): Remove.
9371 (expand_builtin_pow_root): Remove.
9372 (expand_builtin_pow): Remove.
9373 (expand_builtin_powi): Eliminate handling of constant exponent.
9374 (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
9375
9376 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
9377
9378 * cprop.c (local_cprop_pass): Don't set changed for debug insns.
9379
9380 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
9381
9382 * dce.c (reset_unmarked_insns_debug_uses): New.
9383 (delete_unmarked_insns): Skip debug insns.
9384 (prescan_insns_for_dce): Likewise.
9385 (rest_of_handle_ud_dce): Reset debug uses of removed sets.
9386 * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
9387 active reg can be found.
9388 (subst_all_stack_regs_in_debug_insn): New. Reset debug insn then.
9389 (convert_regs_1): Use it.
9390
9391 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
9392
9393 * tree-pretty-print.c (dump_function_header): Add flags.
9394 Don't dump decl_uid with nouid.
9395 * tree-pretty-print.h (dump_function_header): Adjust.
9396 * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
9397 * passes.c (pass_init_dump_file): Pass dump_flags on.
9398 * tree-cfg.c (gimple_dump_cfg): Pass flags on.
9399
9400 2011-06-06 Alexandre Oliva <aoliva@redhat.com>
9401
9402 PR bootstrap/49270
9403 * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
9404
9405 2011-06-06 Mikael Pettersson <mikpe@it.uu.se>
9406
9407 PR tree-optimization/49243
9408 * calls.c (setjmp_call_p): Also check if fndecl has the
9409 returns_twice attribute.
9410
9411 2011-06-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9412
9413 * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
9414 -ffast-math etc.
9415
9416 2011-06-06 Richard Henderson <rth@redhat.com>
9417 Georg-Johann Lay <avr@gjlay.de>
9418
9419 PR target/42210
9420 * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
9421 New predicates.
9422 * config/avr/avr.md ("insv"): New insn expander.
9423 ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
9424 "*insv.not.io", "*insv.reg"): New insns.
9425
9426 2011-06-06 Hans-Peter Nilsson <hp@bitrange.com>
9427
9428 PR target/49285
9429 * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
9430 to nonimmediate_operand from memory_operand for the operand that is to
9431 be forced to memory by the expander. Lose the constraints.
9432
9433 2011-06-05 Eric Botcazou <ebotcazou@adacore.com>
9434
9435 * config/sparc/sparc.c (output_return): Fix thinko in the output of an
9436 EH return when delayed branches are disabled.
9437
9438 2011-06-05 Uros Bizjak <ubizjak@gmail.com>
9439
9440 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
9441 Remove MODE_TI handling. Remove SSE1 handling in attribute "mode"
9442 calculation.
9443 (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
9444 Simplify MODE_V1DF and MODE_V2SF handling.
9445 (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
9446 Simplify MODE_SF handling.
9447
9448 2011-06-04 Jan Hubicka <jh@suse.cz>
9449
9450 PR tree-optimization/48893
9451 PR tree-optimization/49091
9452 PR tree-optimization/49179
9453 * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
9454 Bounds check.
9455
9456 2011-06-04 Jan Hubicka <jh@suse.cz>
9457
9458 PR lto/48954
9459 * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
9460 bitmaps.
9461
9462 2011-06-04 Jonathan Wakely <jwakely.gcc@gmail.com>
9463
9464 * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
9465
9466 2011-06-04 Jakub Jelinek <jakub@redhat.com>
9467
9468 PR target/49281
9469 * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
9470 to be strictly smaller than 1 << shiftcount.
9471
9472 2011-06-04 Jan Hubicka <jh@suse.cz>
9473
9474 PR tree-optimize/48929
9475 * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
9476 of empty predicate.
9477
9478 2011-06-04 Alexandre Oliva <aoliva@redhat.com>
9479
9480 PR debug/48333
9481 * calls.c (emit_call_1): Prefer the __builtin declaration of
9482 builtin functions.
9483
9484 2011-06-03 Diego Novillo <dnovillo@google.com>
9485
9486 * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
9487 (lto_input_tree_pointers): Likewise.
9488 * lto-streamer-out.c (pack_value_fields): Likewise.
9489 (lto_output_tree_pointers): Likewise.
9490 * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
9491 and OPTIMIZATION_NODE.
9492
9493 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9494
9495 * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
9496 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
9497 * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
9498 * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
9499 * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
9500 * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
9501 * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
9502 * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
9503 * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
9504 * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
9505 * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
9506 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
9507 * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
9508 * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
9509 * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
9510 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
9511 * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
9512 * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
9513 * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
9514 * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
9515 * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
9516 * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
9517 * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
9518 * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
9519 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
9520 * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
9521 * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
9522 * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
9523 * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
9524 * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
9525 * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
9526 * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
9527 * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
9528 * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
9529 * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
9530 * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
9531 * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
9532 * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
9533 * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
9534 * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
9535 * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
9536 * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
9537 * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
9538 * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
9539 * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
9540 * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
9541 * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
9542 * system.h (MD_UNWIND_SUPPORT): Poison.
9543 * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
9544 * doc/tm.texi: Regenerate.
9545 * unwind-dw2.c: Include md-unwind-support.h instead of
9546 MD_UNWIND_SUPPORT.
9547 * config/ia64/unwind-ia64.c: Likewise.
9548 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
9549
9550 2011-06-03 Jack Howarth <howarth@bromo.med.uc.edu>
9551
9552 * varpool.c (varpool_extra_name_alias): Return NULL, not false.
9553
9554 2011-06-03 Richard Henderson <rth@redhat.com>
9555 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9556
9557 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
9558 (sigill_hdlr): Correct insn, insn size.
9559 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
9560
9561 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9562
9563 * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
9564 t-slibgcc-dummy.
9565 * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
9566 * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
9567 * config/mips/t-iris: Remove.
9568 * config/mips/t-irix6: New file.
9569 * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
9570
9571 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9572
9573 * Makefile.in (LIB2ADDEHDEP): Remove.
9574 * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
9575 * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
9576 * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
9577 * config/t-darwin (LIB2ADDEHDEP): Remove.
9578 * config/t-freebsd (LIB2ADDEHDEP): Remove.
9579 * config/t-linux (LIB2ADDEHDEP): Remove.
9580
9581 2011-06-03 Diego Novillo <dnovillo@google.com>
9582
9583 * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
9584 (lto_register_var_decl_in_symtab): Likewise.
9585 (lto_register_function_decl_in_symtab): Likewise.
9586 (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
9587 logic to uniquify_nodes.
9588
9589 2011-06-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9590
9591 * config/alpha/t-osf5: Remove.
9592 * config/alpha/t-osf-pthread: Remove.
9593 * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
9594 * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
9595
9596 2011-06-03 Julian Brown <julian@codesourcery.com>
9597
9598 * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
9599 (strongarm1110): Use strongarm tuning.
9600 * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
9601 * config/arm/arm.c (arm_strongarm_tune): New.
9602 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
9603 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
9604 (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
9605 setting, using previous defaults or 1 for Cortex-A5.
9606 (arm_option_override): Set max_insns_skipped from current tuning.
9607
9608 2011-06-03 Nathan Sidwell <nathan@codesourcery.com>
9609
9610 * doc/install.texi (Options specification): Document --with-specs.
9611
9612 2011-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9613
9614 * config/arm/neon.md (orndi3_neon): Actually split it.
9615
9616 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
9617
9618 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
9619 * var-tracking.c (reverse_op): Limite recurse depth to 5.
9620
9621 2011-06-02 Alexandre Oliva <aoliva@redhat.com>
9622
9623 PR debug/47590
9624 * target.def (delay_sched2, delay_vartrack): New.
9625 * doc/tm.texi.in: Update.
9626 * doc/tm.texi: Rebuild.
9627 * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
9628 * var-tracking.c (gate_handle_var_tracking): Likewise.
9629 * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
9630 (bfin_flag_var_tracking): Drop.
9631 (output_file_start): Don't save and override flag_var_tracking.
9632 (bfin_option_override): Ditto flag_schedule_insns_after_reload.
9633 (bfin_reorg): Test original variables.
9634 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
9635 * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
9636 (ia64_flag_var_tracking): Drop.
9637 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
9638 (ia64_file_start): Don't save and override flag_var_tracking.
9639 (ia64_override_options_after_change): Ditto
9640 flag_schedule_insns_after_reload.
9641 (ia64_reorg): Test original variables.
9642 * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
9643 (picochip_flag_var_tracking): Drop.
9644 (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
9645 (picochip_option_override): Don't save and override
9646 flag_schedule_insns_after_reload.
9647 (picochip_asm_file_start): Ditto flag_var_tracking.
9648 (picochip_reorg): Test original variables.
9649 * config/spu/spu.c (spu_flag_var_tracking): Drop.
9650 (TARGET_DELAY_VARTRACK): Define.
9651 (spu_var_tracking): New.
9652 (spu_machine_dependent_reorg): Call it.
9653 (asm_file_start): Don't save and override flag_var_tracking.
9654
9655 2011-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
9656
9657 PR target/49163
9658 * config/sh/predicates.md (general_movsrc_operand): Return 0
9659 for memory and memory subreg of which address is an invalid
9660 indexed address for QI and HImode.
9661 (general_movdst_operand): Likewise.
9662
9663 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
9664
9665 * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
9666 edges only, when there is a non-local label in the function.
9667 * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
9668
9669 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
9670
9671 * config/i386/constraints.md (Y3): New register constraint.
9672 * config/i386/sse.md (*vec_interleave_highv2df): Merge with
9673 *sse3_interleave_highv2df and *sse2_interleave_highv2df.
9674 (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
9675 *sse2_interleave_lowv2df.
9676
9677 2011-06-02 Julian Brown <julian@codesourcery.com>
9678
9679 * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
9680 * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
9681 (arm_cortex_a5_tune): New.
9682
9683 2011-06-02 Julian Brown <julian@codesourcery.com>
9684
9685 * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
9686 * config/arm/arm.c (arm_default_branch_cost): New.
9687 (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
9688 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
9689 (arm_fa726_tune): Set branch_cost field using
9690 arm_default_branch_cost.
9691 * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
9692 current_tune structure.
9693 * dojump.c (tm_p.h): Include file.
9694
9695 2011-06-02 Julian Brown <julian@codesourcery.com>
9696
9697 * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
9698 tuning.
9699 (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
9700 (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
9701 * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
9702 field.
9703 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
9704 (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
9705 (arm_fa726te_tune): Add prefer_constant_pool setting.
9706 (arm_v6t2_tune, arm_cortex_tune): New.
9707 * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
9708 prefer_constant_pool setting.
9709
9710 2011-06-02 Uros Bizjak <ubizjak@gmail.com>
9711
9712 * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
9713 switch statement.
9714 * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
9715 (*movdf_internal) <case 6,7,8>: Ditto.
9716
9717 * config/i386/constraints.md (Y4): New register constraint.
9718 * config/i386/sse.md (vec_set<mode>_0): Merge with
9719 *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
9720 (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
9721 *vec_extractv2di_1_sse.
9722 (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
9723 and *vec_concatv2di_rex64_sse.
9724
9725 2011-06-02 Stuart Henderson <shenders@gcc.gnu.org>
9726
9727 PR target/48807
9728 * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
9729 of cgraph_local_info for null before attempting to use it.
9730
9731 2011-06-02 Eric Botcazou <ebotcazou@adacore.com>
9732
9733 * function.h (struct stack_usage): Remove dynamic_alloc_count field.
9734 (current_function_dynamic_alloc_count): Delete.
9735 * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
9736 (expand_builtin_nonlocal_goto): Remove obsolete comment.
9737 (expand_builtin_update_setjmp_buf): Remove dead code.
9738 * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
9739 * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
9740 support.
9741 * function.c (instantiate_virtual_regs): Likewise.
9742 * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
9743 for a block with a single abnormal incoming edge.
9744 * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
9745 (SETJMP_VIA_SAVE_AREA): Delete.
9746 * config/sparc/sparc-protos.h (load_got_register): Declare.
9747 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
9748 (load_got_register): Make global.
9749 (sparc_frame_pointer_required): Add 'static'.
9750 (sparc_can_eliminate): Likewise. Call sparc_frame_pointer_required.
9751 (sparc_builtin_setjmp_frame_value): New function.
9752 * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
9753 (save_stack_nonlocal): New expander.
9754 (restore_stack_nonlocal): Likewise.
9755 (nonlocal_goto): Remove modes, adjust predicates and reimplement.
9756 (nonlocal_goto_internal): New insn.
9757 (goto_handler_and_restore): Delete.
9758 (builtin_setjmp_setup): Likewise.
9759 (do_builtin_setjmp_setup): Likewise.
9760 (setjmp): Likewise.
9761 (builtin_setjmp_receiver): New expander.
9762
9763 2011-06-01 David Li <davidxl@google.com>
9764
9765 PR middle-end/49261
9766 * tree-pretty-print.c (dump_function_header): Format cleanup.
9767
9768 2011-06-01 Kaz Kojima <kkojima@gcc.gnu.org>
9769
9770 PR target/49238
9771 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
9772 needed when original operands are used for msw_skip comparison.
9773
9774 2011-06-01 Jakub Jelinek <jakub@redhat.com>
9775
9776 PR debug/49250
9777 * var-tracking.c (add_uses, add_stores): Don't call
9778 cselib_subst_to_values on ENTRY_VALUE.
9779
9780 2011-06-01 Diego Novillo <dnovillo@google.com>
9781
9782 * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
9783 output_record_start with LTO_null instead of output_zero.
9784 (lto_output_ts_binfo_tree_pointers): Likewise.
9785 (lto_output_tree): Likewise.
9786 (output_eh_try_list): Likewise.
9787 (output_eh_region): Likewise.
9788 (output_eh_lp): Likewise.
9789 (output_eh_regions): Likewise.
9790 (output_bb): Likewise.
9791 (output_function): Likewise.
9792 (output_unreferenced_globals): Likewise.
9793 * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
9794 instead of NUM_TREE_CODES.
9795 (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
9796 (lto_output_int_in_range): Change << to >> when shifting VAL.
9797
9798 2011-06-01 Diego Novillo <dnovillo@google.com>
9799
9800 * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
9801 Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
9802
9803 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
9804
9805 PR target/45074
9806 * optabs.h (valid_multiword_target_p): Declare.
9807 * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
9808 doing multi-word operations.
9809 * optabs.c (expand_binop): Likewise.
9810 (expand_doubleword_bswap): Likewise.
9811 (expand_absneg_bit): Likewise.
9812 (expand_unop): Likewise.
9813 (expand_copysign_bit): Likewise.
9814 (multiword_target_p): New function.
9815
9816 2011-06-01 Richard Sandiford <rdsandiford@googlemail.com>
9817
9818 PR rtl-optimization/48830
9819 PR rtl-optimization/48808
9820 PR rtl-optimization/48792
9821 * reload.c (push_reload): Check contains_reg_of_mode.
9822 * reload1.c (strip_paradoxical_subreg): New function.
9823 (gen_reload_chain_without_interm_reg_p): Use it to handle
9824 paradoxical subregs.
9825 (emit_output_reload_insns, gen_reload): Likewise.
9826
9827 2011-06-01 David Li <davidxl@google.com>
9828
9829 * predict.c : Change pass name
9830 * ipa.c: Ditto.
9831 * dce.c: Ditto.
9832 * tree-profile.c: Ditto.
9833 * except.c: Ditto.
9834
9835 2011-06-01 David Li <davidxl@google.com>
9836
9837 * tree-pretty-print.c (dump_function_header): New function.
9838 * final.c (rest_of_clean_state): Use header dumper.
9839 * tree-cfg.c (gimple_dump_cfg): Use header dumper.
9840 * passes.c (pass_init_dump_file): Use header dumper.
9841
9842 2011-06-01 Jakub Jelinek <jakub@redhat.com>
9843
9844 * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
9845 ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
9846 popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
9847 New functions.
9848 (mem_loc_descriptor): Use them.
9849
9850 * var-tracking.c (create_entry_value): New function.
9851 (vt_add_function_parameter): Use it.
9852
9853 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9854
9855 * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
9856 Include <signal.h>, <ucontext.h>.
9857 (sigill_caught): Define.
9858 (sigill_hdlr): New function.
9859 (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
9860 insns can be executed.
9861 * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
9862 * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
9863
9864 2011-06-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9865
9866 * config/t-slibgcc-darwin: Move to ...
9867 * config/t-slibgcc-dummy: ... this. Clarify comments.
9868 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
9869 powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
9870 (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
9871 (i[34567]86-*-rtems*): Remove extra_parts. Use i386/t-rtems.
9872 Remove i386/t-crtstuff from tmake_file.
9873 (i[34567]86-*-solaris2*): Remove t-svr4,
9874 t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
9875 t-slibgcc-dummy.
9876 (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
9877 (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
9878 sparc/t-crtfm from tmake_file.
9879 (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
9880 t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
9881 Remove extra_parts.
9882 * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
9883 * config/i386/t-nwld (SHLIB_LINK): Remove.
9884 * config/i386/t-rtems-i386: Rename to ...
9885 * config/i386/t-rtems: ... this.
9886 ($(T)crti.o, $(T)crtn.o): Remove.
9887 (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
9888 (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
9889 (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
9890 * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
9891 EXTRA_MULTILIB_PARTS): Remove.
9892 * config/sparc/t-sol2-64: Likewise.
9893 * config/sparc/t-sol2: Remove.
9894 * config/sparc/t-crtin: Remove.
9895 * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
9896 * config/i386/gmon-sol2.c: Remove.
9897 * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
9898 * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
9899 * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
9900 * config/i386/sol2-gc1.asm: Remove.
9901 * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
9902 * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
9903 * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
9904 * config/t-slibgcc-sld: Remove.
9905
9906 2011-06-01 Jakub Jelinek <jakub@redhat.com>
9907
9908 * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
9909 base_type_for_mode with op_mode instead of mode.
9910
9911 2011-06-01 Paul Brook <paul@cpodesourcery.com>
9912
9913 * config/arm/arm-cores.def: Add cortex-r5. Add DIV flags to
9914 Cortex-A15.
9915 * config/arm/arm-tune.md: Regenerate.
9916 * config/arm/arm-tables.opt: Regenerate.
9917 * config/arm/arm.c (FL_DIV): Rename...
9918 (FL_THUMB_DIV): ... to this.
9919 (FL_ARM_DIV): Define.
9920 (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
9921 (arm_arch_hwdiv): Remove.
9922 (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
9923 (arm_issue_rate): Add cortexr5.
9924 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
9925 __ARM_ARCH_EXT_IDIV__.
9926 (TARGET_IDIV): Define.
9927 (arm_arch_hwdiv): Remove.
9928 (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
9929 * config/arm/arm.md (tune_cortexr4): Add cortexr5.
9930 (divsi3, udivsi3): New patterns.
9931 * config/arm/thumb2.md (divsi3, udivsi3): Remove.
9932 * doc/invoke.texi: Document ARM -mcpu=cortex-r5
9933
9934 2011-06-01 Martin Jambor <mjambor@suse.cz>
9935
9936 * ipa-utils.c (ipa_dfs_info): New field scc_no.
9937 * ipa-utils.c (searchc): Set scc_no.
9938
9939 2011-06-01 Martin Jambor <mjambor@suse.cz>
9940
9941 * ipa-utils.c (searchc_env): New field allow_overwritable.
9942 (searchc): do not ignore edges to overwritable nodes if indicated
9943 by env->allow_overwritable.
9944 (ipa_reduced_postorder): Set env.allow_overwritable.
9945
9946 2011-06-01 Richard Guenther <rguenther@suse.de>
9947
9948 * tree.c (free_lang_data): Do not reset boolean_type_node nor
9949 char_type_node.
9950 * lto-streamer.c (lto_record_common_node): Take node pointer,
9951 do not register types.
9952 (lto_preload_common_nodes): Explicitly skip preloading nodes
9953 that differ between frontends.
9954
9955 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
9956
9957 * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
9958 NON_FLOAT_REGS.
9959
9960 2011-05-31 Pat Haugen <pthaugen@us.ibm.com>
9961
9962 * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
9963 parameter value for dump. Dump cost on outermost call only.
9964 (rs6000_memory_move_cost): Dump cost on outermost call only.
9965
9966 2011-05-31 Jakub Jelinek <jakub@redhat.com>
9967
9968 * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
9969 DW_OP_GNU_convert ops.
9970
9971 * cselib.c (promote_debug_loc): Allow l->next non-NULL for
9972 cselib_preserve_constants.
9973 (cselib_lookup_1): If cselib_preserve_constants,
9974 a new VALUE is being created for REG and there is a VALUE for the
9975 same register in wider mode, add another loc with lowpart SUBREG of
9976 the wider VALUE.
9977 (cselib_subst_to_values): Handle ENTRY_VALUE.
9978 * var-tracking.c (replace_expr_with_values): Return NULL for
9979 ENTRY_VALUE too.
9980 * dwarf2out.c (convert_descriptor_to_signed): New function.
9981 (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
9982 instead of two shifts.
9983 (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
9984 the right mode if needed.
9985 (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
9986 (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
9987 convert_descriptor_to_signed.
9988 (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
9989 BSWAP, ROTATE, ROTATERT>: Handle these rtls.
9990
9991 PR target/48688
9992 * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
9993
9994 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
9995
9996 * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
9997 of X87MODEI12 and SWI48x instead of SSEMODEI24.
9998 (SWI248x): New mode iterator, rename from X87MODEI.
9999 (X87MODEI): Remove mode iterator.
10000 (X87MODEI12): Ditto.
10001 (SSEMODEI24): Ditto.
10002
10003 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
10004
10005 * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
10006 * doc/invoke.texi: Document max-vartrack-expr-depth.
10007 * var-tracking.c (EXPR_DEPTH): New.
10008 (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
10009
10010 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
10011
10012 * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
10013 * config/i386/sse.md: Add n to negated FMA pattern names.
10014
10015 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
10016
10017 * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
10018
10019 2011-05-31 Alexandre Oliva <aoliva@redhat.com>
10020
10021 * gengtype-state.c (read_state_params_structs): Initialize previous.
10022
10023 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
10024
10025 * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
10026 (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
10027
10028 2011-05-31 Uros Bizjak <ubizjak@gmail.com>
10029
10030 * config/i386/i386.md (*movtf_internal): Avoid allocating general
10031 registers. Penalize F*r->o alternative to prevent partial memory
10032 stalls. Slightly penalize *roF->*r alternative. Generate SSE
10033 CONST_DOUBLE immediates when optimizing function for size. Do not move
10034 CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
10035 (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
10036 (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
10037 (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
10038 alternatives.
10039 (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
10040
10041 (fp_register_operand splitters): Use fp_register_operand
10042 constraint. Do not use FP_REG_P in insn condition.
10043 (any_fp_register_operand splitters): Use any_fp_register_operand
10044 constraint. Do not use ANY_FP_REG_P in insn condition.
10045
10046 2011-05-31 Jan Hubicka <jh@suse.cz>
10047
10048 * cgraph.h (cgraph_inline_failed_t): Give enum a name
10049 * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
10050 (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
10051 (lto_output_edge): Use output_enum and var_len_unsigned.
10052 (lto_output_varpool_node): Likewise.
10053 (input_overwrite_node): Do not take resolution parameter;
10054 extract it from a bitpack.
10055 (input_node): Do not read resolution; use input_enum and
10056 var_len_unsigned.
10057 (input_varpool_node): Likewise.
10058 (input_edge): Likewise.
10059 (input_cgraph_1): Likewise.
10060
10061 2011-05-31 Richard Guenther <rguenther@suse.de>
10062
10063 * gimple.c (gimple_register_canonical_type): Do not register
10064 any types via gimple_register_type.
10065
10066 2011-05-31 Jan Hubicka <jh@suse.cz>
10067
10068 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
10069 of thunks.
10070
10071 2011-05-31 Jakub Jelinek <jakub@redhat.com>
10072
10073 PR rtl-optimization/49235
10074 * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
10075 (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
10076
10077 2011-05-31 Ira Rosen <ira.rosen@linaro.org>
10078
10079 PR tree-optimization/49093
10080 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
10081 data references.
10082
10083 2011-05-31 Dodji Seketeli <dodji@redhat.com>
10084
10085 PR debug/49047
10086 * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
10087 for concrete functions containing the code of cloned functions.
10088
10089 2011-05-31 Richard Guenther <rguenther@suse.de>
10090
10091 * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
10092 to ...
10093 (forward_propagate_into_comparison_1): ... this.
10094 (forward_propagate_comparison): Rename to ...
10095 (forward_propagate_into_comparison): ... this. Split out
10096 real forward propagation code to ...
10097 (forward_propagate_comparison): ... this.
10098 (forward_propagate_into_gimple_cond): Remove looping.
10099 (forward_propagate_into_cond): Likewise.
10100 (simplify_not_neg_expr): Return whether we have done something.
10101 (simplify_gimple_switch): Likewise.
10102 (tree_ssa_forward_propagate_single_use_vars): Rename to ...
10103 (ssa_forward_propagate_and_combine): ... this. Re-structure
10104 to do a forward forward-propagation walk on BBs and a backward
10105 stmt combining walk on BBs. Consistently re-scan changed statements.
10106 (pass_forwprop): Adjust.
10107
10108 2011-05-30 Ian Lance Taylor <iant@google.com>
10109
10110 * godump.c (go_format_type): Correct length of name added to
10111 obstack for anonymous field.
10112
10113 2011-05-30 Kaz Kojima <kkojima@gcc.gnu.org>
10114
10115 PR target/49186
10116 * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
10117 part of the second operand is 0.
10118
10119 2011-05-30 Uros Bizjak <ubizjak@gmail.com>
10120
10121 * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
10122 to prevent partial memory stalls. Do not move CONST_DOUBLEs directly
10123 to memory for !TARGET_MEMORY_MISMATCH_STALL.
10124 (*movdf_internal_rex64): Do not penalize F->r alternative.
10125 (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
10126 memory stalls. Generate SSE and x87 CONST_DOUBLE immediates only
10127 when optimizing function for size. Do not move CONST_DOUBLEs
10128 directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
10129 (FP move splitters): Merge {TF,XF,DF}mode splitters. Do not handle
10130 SUBREGs. Do not check for MEM_P operands in the insn condition,
10131 check for ANY_FP_REGNO_P instead.
10132 * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
10133 TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
10134 function for speed.
10135 * config/i386/i386.c (ix86_option_override_internal): Do not
10136 set TARGET_INTEGER_DFMODE_MOVES here.
10137
10138 2011-05-30 H.J. Lu <hongjiu.lu@intel.com>
10139
10140 PR target/49168
10141 * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
10142
10143 2011-05-30 Jakub Jelinek <jakub@redhat.com>
10144
10145 * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
10146 DW_TAG_rvalue_reference_type even for
10147 -gdwarf-4 -fno-debug-types-section.
10148
10149 2011-05-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10150
10151 PR tree-optimization/46728
10152 * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
10153 (build_and_insert_binop): New.
10154 (gimple_expand_builtin_pow): Reorder args for
10155 build_and_insert_call; use build_and_insert_binop; add more
10156 optimizations for fractional exponents.
10157
10158 2011-05-30 Nathan Froyd <froydnj@gcc.gnu.org>
10159
10160 PR bootstrap/49190
10161
10162 Revert:
10163 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
10164
10165 * tree.h (struct tree_identifier): Inherit from tree_typed, not
10166 tree_common.
10167 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
10168 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
10169 TS_BASE instead of TS_COMMON.
10170 * varasm.c (assemble_name): Remove assert.
10171
10172 2011-05-30 Richard Sandiford <rdsandiford@googlemail.com>
10173
10174 * config.gcc: Keep obselete list sorted.
10175
10176 2011-05-30 Jakub Jelinek <jakub@redhat.com>
10177 Eric Botcazou <ebotcazou@adacore.com>
10178
10179 * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
10180 crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
10181 there is a DRAP register and arg_pointer_rtx is the CFA pointer.
10182 (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
10183 (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
10184
10185 2011-05-30 Richard Guenther <rguenther@suse.de>
10186
10187 * gimple.c (gimple_types_compatible_p_1): Compare record
10188 and union type members properly.
10189
10190 2011-05-30 Richard Guenther <rguenther@suse.de>
10191
10192 PR tree-optimization/49210
10193 * ipa-split.c (split_function): Care for the case where the call
10194 result is not trivially convertible to the result holding variable.
10195
10196 2011-05-30 Richard Guenther <rguenther@suse.de>
10197
10198 PR tree-optimization/49218
10199 * tree-vrp.c (adjust_range_with_scev): Properly check whether
10200 overflow occured.
10201
10202 2011-05-30 Richard Guenther <rguenther@suse.de>
10203
10204 * tree-ssa-forwprop.c (forward_propagate_into_comparison):
10205 New function split out from ...
10206 (forward_propagate_into_gimple_cond): ... here. Adjust.
10207 (forward_propagate_into_cond): Likewise.
10208 (forward_propagate_comparison): Also propagate into
10209 comparisons on assignment RHS. Change return value to
10210 behave similar to forward_propagate_into_cond.
10211 (tree_ssa_forward_propagate_single_use_vars): Handle
10212 strict-overflow warnings properly for forward_propagate_comparison.
10213
10214 2011-05-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10215
10216 * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
10217 from plugin linker.
10218 * configure: Regenerate.
10219
10220 2011-05-30 Ira Rosen <ira.rosen@linaro.org>
10221
10222 PR tree-optimization/49199
10223 * tree-vect-loop.c (vect_is_slp_reduction): Check that the
10224 non-reduction operands are either defined in the loop or by induction.
10225
10226 2011-05-29 Xinliang David Li <davidxl@google.com>
10227
10228 * opts-global.c (handle_common_deferred_options): Handle new options.
10229 * passes.c (register_one_dump_file): Call register_pass_name.
10230 (execute_one_pass): Check explicit enable/disable flag.
10231 (passr_hash): New function.
10232 (passr_eq): Ditto.
10233 (register_pass_name): Ditto.
10234 (get_pass_by_name): Ditto.
10235 (pass_hash): Ditto.
10236 (pass_eq): Ditto.
10237 (enable_pass): Ditto.
10238 (disable_pass): Ditto.
10239 (is_pass_explicitly_enabled_or_disabled): Ditto.
10240
10241 2011-05-29 Uros Bizjak <ubizjak@gmail.com>
10242
10243 * config/i386/i386.md (*movoi_internal_avx): Use
10244 standard_sse_constant_opcode for alternative 0.
10245 (*movti_internal_sse): Ditto.
10246 (*movti_internal_rex64): Use standard_sse_constant_opcode for
10247 alternative 2.
10248 (*movdi_internal_rex64): Use standard_sse_constant_opcode for
10249 sselog1 type moves.
10250 (*movsi_internal): Ditto.
10251 (*movdi_internal): Ditto. Add ssecvt type moves.
10252
10253 2011-05-29 Eric Botcazou <ebotcazou@adacore.com>
10254
10255 PR target/48830
10256 * rtlanal.c (simplify_subreg_regno): Adjust comment.
10257
10258 2011-05-29 Jakub Jelinek <jakub@redhat.com>
10259
10260 PR rtl-optimization/49095
10261 * config/i386/predicates.md (plusminuslogic_operator): New predicate.
10262 * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
10263
10264 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
10265
10266 PR target/43995
10267 * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
10268 recurse_p argument. Only follow register copies if it is set,
10269 and prevent mips_find_pic_call_symbol from recursing.
10270 (mips_find_pic_call_symbol): Add a recurse_p argument.
10271 Pass it to mips_pic_call_symbol_from_set.
10272 (mips_annotate_pic_calls): Update accordingly.
10273
10274 2011-05-29 Richard Sandiford <rdsandiford@googlemail.com>
10275
10276 * emit-rtl.c (try_split): Use a loop to search for
10277 NOTE_INSN_CALL_ARG_LOCATIONs.
10278
10279 2011-05-29 Richard Guenther <rguenther@suse.de>
10280
10281 PR tree-optimization/49217
10282 * ipa-pure-const.c (propagate_pure_const): Fix typos.
10283
10284 2011-05-28 Jan Hubicka <jh@suse.cz>
10285
10286 * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
10287 length.
10288 (string_slot_free): Remove
10289 (create_output_block): Initialize obstack.
10290 (destroy_output_block): Free obstack.
10291 (lto_string_index): Add PERSISTENT parameter; do not duplicate
10292 the string unless it needs to be added into the hash.
10293 (lto_output_string_with_length): Add persistent attribute;
10294 handle NULL strings.
10295 (lto_output_string): Add PERSISTENT parameter.
10296 (output_string_cst, output_identifier): Simplify.
10297 (lto_output_location_bitpack): Update.
10298 (lto_output_builtin_tree): Update.
10299 * lto-streamer.h (struct output_block): Add obstack.
10300 (lto_output_string, lto_output_string_with_length): Remove
10301 declarations; functions are static now.
10302
10303 2011-05-28 Jan Hubicka <jh@suse.cz>
10304
10305 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
10306 pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
10307 pack_ts_function_decl_value_fields, lto_output_builtin_tree,
10308 output_cfg, output_gimple_stmt): Use enum and variable length i/o.
10309 * lto-streamer-in.c (input_cfg, input_gimple_stmt,
10310 unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
10311 unpack_ts_decl_with_vis_value_fields,
10312 unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
10313 lto_get_builtin_tree): Use enum and variable length i/o.
10314 * basic-block.h (profile_status_d): Add PROFILE_LAST.
10315 * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
10316 New functions.
10317 (bp_pack_enum, bp_unpack_enum): New macros.
10318
10319 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10320
10321 * genrecog.c: Remove redundant forward declarations.
10322
10323 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10324
10325 * config.gcc: Deprecate mips*-*-openbsd*.
10326
10327 2011-05-28 Richard Sandiford <rdsandiford@googlemail.com>
10328
10329 PR bootstrap/49195
10330 * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
10331 for match_op_dup.
10332
10333 2011-05-27 Andrew Pinski <pinskia@gmail.com>
10334
10335 PR middle-end/48981
10336 * gengtype.c (vec_prefix_type): New function.
10337 (note_def_vec): Use vec_prefix_type and change the length
10338 attribute to be based on the prefix.
10339 * vec.c: Include coretypes.h before vec.h.
10340 (struct vec_prefix): Remove.
10341 (vec_gc_p_reserve): Change the offsetof to sizeof.
10342 (vec_gc_p_reserve_exact): Likewise.
10343 (vec_heap_p_reserve): Likewise.
10344 (vec_heap_p_reserve_exact): Likewise.
10345 (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
10346 (vec_stack_p_reserve): Change the offsetof to sizeof.
10347 (vec_stack_p_reserve_exact): Likewise.
10348 * vec.h (struct vec_prefix): New struct definition.
10349 (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
10350 (VEC_T_GTY(T,B)): Likewise.
10351 (DEF_VEC_FUNC_P(T)): Use prefix field.
10352 (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
10353 (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
10354
10355 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10356
10357 PR tree-optimization/46728
10358 * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
10359 (powi_as_mults): Add gimple_set_location.
10360 (build_and_insert_call): New.
10361 (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
10362 0.5, 0.25, 0.75, 1./3., or 1./6.
10363
10364 2011-05-27 Alexander Monakov <amonakov@ispras.ru>
10365
10366 * doc/contrib.texi: Update copyright years.
10367 (Contributors): Add Zdenek Sojka.
10368
10369 2011-05-27 Nathan Froyd <froydnj@codesourcery.com>
10370
10371 * c-decl.c (c_push_function_context): Copy the current statement
10372 list stack.
10373 (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
10374 (finish_struct): Call building_stmt_list_p instead of checking
10375 cur_stmt_list.
10376 * c-parser.c (c_parser_postfix_expression): Likewise.
10377 * c-typeck.c (c_end_compound_stmt): Likewise.
10378 * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
10379 * tree-iterator.c (stmt_list_cache): Change to a VEC.
10380 (alloc_stmt_list): Adjust for stmt_list_cache's new type.
10381 (free_stmt_list): Likewise.
10382 * tree.h (struct tree_statement_list): Include typed_tree instead
10383 of tree_common.
10384 * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
10385 as TS_TYPED instead of TS_COMMON.
10386
10387 2011-05-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10388 Uros Bizjak <ubizjak@gmail.com>
10389
10390 * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
10391 (HAVE_AS_IX86_TLSGDPTL): Define.
10392 (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
10393 (HAVE_AS_IX86_TLSLDMPLT): Define.
10394 * configure: Regenerate.
10395 * config.in: Regenerate.
10396 * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
10397 * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
10398 TARGET_SUN_TLS, use @tlsgdplt or @plt.
10399 (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
10400 (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
10401 @tlsldmplt or @plt.
10402 (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
10403
10404 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
10405
10406 * sched-int.h (struct _haifa_deps_insn_data): New members cond
10407 and reverse_cond.
10408 (INSN_COND, INSN_REVERSE_COND): New macros.
10409 * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
10410 once.
10411 (sched_get_condition_with_rev): Cache the results, and look them up
10412 if possible.
10413 (sched_analyze_insn): Destroy INSN_COND of previous insns if they
10414 are clobbered by the current insn.
10415 * target.def (exposed_pipline): New sched data hook.
10416 * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
10417 * doc/tm.texi: Regenerate.
10418
10419 2011-05-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10420
10421 PR tree-optimization/49170
10422 * tree-ssa-math-opts.c (execute_cse_sincos): Add checks for
10423 sincos or cexp.
10424
10425 2011-05-27 Richard Guenther <rguenther@suse.de>
10426
10427 PR middle-end/49189
10428 * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
10429 of comparisons.
10430
10431 2011-05-27 Bernd Schmidt <bernds@codesourcery.com>
10432
10433 * haifa-sched.c (sched_scan_info): Remove.
10434 (schedule_block): Call sched_extend_luids rather than sched_init_luids
10435 with NULL args.
10436 (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
10437 Remove functions.
10438 (sched_scan): Remove.
10439 (sched_extend_luids): Renamed from luids_extend_insn and no longer
10440 static. All callers changed.
10441 (sched_init_insn_luid): Renamed from luids_init_insn and no longer
10442 static. All callers changed.
10443 (sched_init_luids): Remove all arguments except the first. All
10444 callers changed. Don't use sched_scan.
10445 (haifa_init_h_i_d): Likewise.
10446 (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
10447 manually rather than using sched_init_luids. Likewise with
10448 extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
10449 * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
10450 rather than sched_init_luids with NULL args.
10451 * sel-sched-ir.c (new_insns): Remove variable.
10452 (sched_scan): New static function, previously in haifa-sched.c. Remove
10453 all arguments but the first two; all callers changed.
10454 (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
10455 rather than sched_init_luids.
10456 (sel_init_bbs): Remove second argument. All callers changed.
10457 (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
10458 with NULL arguments.
10459 (create_insn_rtx_from_pattern): Likewise.
10460 * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
10461 * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
10462 (sched_init_insn_luid, sched_extend_luids): Declare.
10463 (sched_scan_info_def, sched_scan_info, sched_scan): Remove
10464 declarations.
10465
10466 2011-05-27 Richard Guenther <rguenther@suse.de>
10467
10468 PR middle-end/49177
10469 * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
10470 A CMP B ? (T) true : (T) false for non-integral types T again.
10471
10472 2011-05-27 Jan Hubicka <jh@suse.cz>
10473
10474 * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
10475 so 0 means NULL string.
10476 (lto_output_string_with_length): ... here.
10477 (lto_output_string, output_string_cst, output_identifier): Update
10478 handling of NULL strings.
10479 (lto_output_location_bitpack): New function.
10480 (lto_output_location): Use it.
10481 (lto_output_tree_ref): Use output_record_start.
10482 (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
10483 len values.
10484 * lto-streamer-in.c (string_for_index): Break out from ...; offset
10485 values by 1.
10486 (input_string_internal): ... here;
10487 (input_string_cst, input_identifier, lto_input_string): Update handling
10488 of NULL strings.
10489 (lto_input_location_bitpack): New function
10490 (lto_input_location): Use it.
10491 (unpack_ts_type_common_value_fields): Pack align & alias in var len
10492 values.
10493 * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
10494 bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
10495 (bp_pack_value): Sanity check the value range.
10496 * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
10497 New functions.
10498 * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
10499 New functions.
10500
10501 2011-05-27 Hariharan Sandanagobalane <hariharan@picochip.com>
10502
10503 * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
10504 call_arg_location instructions down the floor.
10505
10506 2011-05-26 Vladimir Makarov <vmakarov@redhat.com>
10507
10508 PR rtl-optimization/49154
10509 * ira.c (setup_pressure_classes): Process class without sublcasses
10510 as a candidate for pressure classes.
10511
10512 2011-05-26 Richard Sandiford <rdsandiford@googlemail.com>
10513
10514 PR rtl-optimization/48575
10515 * genrecog.c (position_type): New enum.
10516 (position): New structure.
10517 (decision): Use position structure instead of a string.
10518 (root_pos, peep2_insn_pos_list): New variables.
10519 (next_position, compare_positions): New functions.
10520 (new_decision): Use position structures instead of strings.
10521 (maybe_both_true): Likewise.
10522 (change_state): Likewise.
10523 (write_tree): Likewise.
10524 (make_insn_sequence): Likewise.
10525
10526 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
10527
10528 * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
10529 TS_BASE instead of TS_COMMON.
10530 (find_decls_types_r): Check for TS_TYPED structure before looking at
10531 TREE_TYPE.
10532 * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
10533 Add chain field.
10534 (BLOCK_CHAIN): Use new chain field.
10535
10536 2011-05-26 Pat Haugen <pthaugen@us.ibm.com>
10537
10538 * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
10539 moves expensive on Power7 also.
10540
10541 2011-05-26 Richard Guenther <rguenther@suse.de>
10542
10543 * fold-const.c (fold_unary_loc): Remove bogus code.
10544
10545 2011-05-26 Nathan Froyd <froydnj@codesourcery.com>
10546
10547 * tree.h (struct tree_identifier): Inherit from tree_typed, not
10548 tree_common.
10549 (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
10550 * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
10551 TS_BASE instead of TS_COMMON.
10552 * varasm.c (assemble_name): Remove assert.
10553
10554 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
10555
10556 * Makefile.in (srcdirify): Change order so that libgcc_objdir is
10557 substituted first.
10558 * libgcc-std.ver: Delete file.
10559
10560 2011-05-26 Richard Guenther <rguenther@suse.de>
10561
10562 PR tree-optimization/48702
10563 * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
10564 only when we know the base address is within bounds.
10565 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
10566 assume the base address of TARGET_MEM_REFs is in bounds.
10567
10568 2011-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10569
10570 PR target/49099
10571 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
10572 declaration in TARGET_SOLARIS.
10573
10574 2011-05-26 Hariharan Sandanagobalane <hariharan@picochip.com>
10575
10576 * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
10577 The instruction is then expanded explicitly.
10578 (supported_compare): Callable instruction.
10579 (compare): Likewise.
10580
10581 2011-05-26 Jakub Jelinek <jakub@redhat.com>
10582
10583 PR c++/49165
10584 * gimplify.c (shortcut_cond_r): Don't special case
10585 COND_EXPRs if they have void type on one of their arms.
10586
10587 2011-05-26 Bernd Schmidt <bernds@codesourcery.com>
10588
10589 * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
10590 to reduce duplication, and to achieve a slightly more logical order
10591 of operations.
10592
10593 2011-05-26 Jakub Jelinek <jakub@redhat.com>
10594
10595 PR tree-optimization/49161
10596 * tree-vrp.c (struct case_info): New type.
10597 (compare_case_labels): Sort case_info structs instead of
10598 trees, and not primarily by CASE_LABEL uids but by
10599 label_for_block indexes.
10600 (find_switch_asserts): Put case labels into struct case_info
10601 array instead of TREE_VEC, adjust sorting, compare label_for_block
10602 values instead of CASE_LABELs.
10603
10604 2011-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10605
10606 * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
10607 ("orndi3_neon"): Likewise.
10608 ("bic<mode>3_neon"): Likewise.
10609
10610 2011-05-26 Ira Rosen <ira.rosen@linaro.org>
10611
10612 PR tree-optimization/49038
10613 * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
10614 Ensure at least one epilogue iteration if required by data
10615 accesses with gaps.
10616 * tree-vectorizer.h (struct _loop_vec_info): Add new field
10617 to mark loops that require peeling for gaps.
10618 * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
10619 (vect_get_known_peeling_cost): Take peeling for gaps into
10620 account.
10621 (vect_transform_loop): Generate epilogue if required by data
10622 access with gaps.
10623 * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
10624 loop as requiring an epilogue if there are gaps in the end of
10625 the strided group.
10626
10627 2011-05-25 Ian Lance Taylor <iant@google.com>
10628
10629 * godump.c (go_format_type): Output the first field with a usable
10630 Go type, if any.
10631
10632 2011-05-25 Ian Lance Taylor <iant@google.com>
10633
10634 * godump.c (go_format_type): Check for invalid type names, pointer
10635 target types, and struct field types.
10636
10637 2011-05-25 Jason Merrill <jason@redhat.com>
10638
10639 * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
10640
10641 2011-05-25 Uros Bizjak <ubizjak@gmail.com>
10642
10643 * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
10644
10645 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
10646
10647 * config/i386/i386.md (*movqi_extv_1)): Put back
10648 "register_operand" check in "type" calculation.
10649 (*movqi_extzv_2): Likewise.
10650
10651 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
10652
10653 * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
10654
10655 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
10656
10657 PR bootstrap/49160
10658 * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
10659 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
10660 __divxc3, __divtc3): Wrap definitions in #ifndef.
10661
10662 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
10663
10664 PR target/49142
10665 * config/i386/i386.md (*movqi_extv_1_rex64): Remove
10666 "register_operand" check and replace q_regs_operand with
10667 QIreg_operand in "type" calculation.
10668 (*movqi_extv_1): Likewise.
10669 (*movqi_extzv_2_rex64): Likewise.
10670 (*movqi_extzv_2): Likewise.
10671
10672 * config/i386/predicates.md (QIreg_operand): New.
10673
10674 2011-05-25 Richard Guenther <rguenther@suse.de>
10675
10676 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
10677 type-based offset disambiguation, streamline MEM_REF and
10678 TARGET_MEM_REF handling.
10679
10680 2011-05-25 H.J. Lu <hongjiu.lu@intel.com>
10681
10682 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
10683 (bdesc_special_args): Add pause intrinsic.
10684
10685 * config/i386/i386.md (UNSPEC_PAUSE): New.
10686 (pause): Likewise.
10687 (*pause): Likewise.
10688 * config/i386/ia32intrin.h (__pause): Likewise.
10689
10690 * doc/extend.texi (X86 Built-in Functions): Add documentation for
10691 pause intrinsic.
10692
10693 2011-05-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10694
10695 PR tree-optimization/46728
10696 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
10697 (execute_cse_sincos): Add switch case for BUILT_IN_POW.
10698
10699 2011-05-25 Nathan Froyd <froydnj@codesourcery.com>
10700
10701 * tree.h (struct tree_exp): Inherit from struct tree_typed.
10702 * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
10703 instead of TS_COMMON.
10704
10705 2011-05-25 Bernd Schmidt <bernds@codesourcery.com>
10706
10707 * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
10708 LIBGCC2_GNU_PREFIX is defined.
10709 (__N): New macro.
10710 (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
10711 __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
10712 __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
10713 __clz_tab): Define using __N.
10714 (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
10715 COMPAT_SIMODE_TRAPPING_ARITHMETIC.
10716 * target.def (libfunc_gnu_prefix): New hook.
10717 * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
10718 (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
10719 * doc/tm.texi: Regenerate.
10720 * system.h (LIBGCC2_GNU_PREFIX): Poison.
10721 * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
10722 account.
10723 (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
10724 (init_optabs): Likewise for the bswap libfuncs.
10725 * tree.c (build_common_builtin_nodes): Likewise for complex multiply
10726 and divide.
10727 * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
10728 * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
10729 * libgcc-std.ver: Remove.
10730 * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
10731 * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
10732 libgcc-std.ver.
10733 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10734 * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
10735 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
10736 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
10737 * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
10738 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10739 * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
10740 * config/fixed-bit.h (FIXED_OP): Define differently depending on
10741 LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
10742 (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
10743
10744 2011-05-25 Jan Hubicka <jh@suse.cz>
10745
10746 * lto-streamer-out.c (output_record_start): Use lto_output_enum
10747 (lto_output_tree): Use output_record_start.
10748 * lto-streamer-in.c (input_record_start): Use lto_input_enum
10749 (lto_get_pickled_tree): Use input_record_start.
10750 * lto-section-in.c (lto_section_overrun): Turn into fatal error.
10751 (lto_value_range_error): New function.
10752 * lto-streamer.h (lto_value_range_error): Declare.
10753 (lto_output_int_in_range, lto_input_int_in_range): New functions.
10754 (lto_output_enum, lto_input_enum): New macros.
10755
10756 2011-05-25 Eric Botcazou <ebotcazou@adacore.com>
10757
10758 * common.opt (flag_stack_usage_info): New variable.
10759 (-Wstack-usage): New option.
10760 * doc/invoke.texi (Warning options): Document -Wstack-usage.
10761 * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
10762 <OPT_fstack_usage>: Likewise.
10763 * toplev.c (output_stack_usage): Handle -Wstack-usage.
10764 * calls.c (expand_call): Test flag_stack_usage_info variable instead
10765 of flag_stack_usage.
10766 (emit_library_call_value_1): Likewise.
10767 * explow.c (allocate_dynamic_stack_space): Likewise.
10768 * function.c (instantiate_virtual_regs ): Likewise.
10769 (prepare_function_start): Likewise.
10770 (rest_of_handle_thread_prologue_and_epilogue): Likewise.
10771 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
10772 * config/arm/arm.c (arm_expand_prologue): Likewise.
10773 (thumb1_expand_prologue): Likewise.
10774 * config/avr/avr.c (expand_prologue): Likewise.
10775 * config/i386/i386.c (ix86_expand_prologue): Likewise.
10776 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
10777 * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
10778 * config/mips/mips.c (mips_expand_prologue): Likewise.
10779 * config/pa/pa.c (hppa_expand_prologue): Likewise.
10780 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
10781 * config/s390/s390.c (s390_emit_prologue): Likewise.
10782 * config/sh/sh.c (sh_expand_prologue): Likewise.
10783 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
10784 * config/spu/spu.c (spu_expand_prologue): Likewise.
10785
10786 2011-05-25 Richard Guenther <rguenther@suse.de>
10787
10788 * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
10789 (gimple_canonical_types_compatible_p): Likewise.
10790
10791 2011-05-25 Jan Hubicka <jh@suse.cz>
10792
10793 PR middle-end/49062
10794 * ipa.c (function_and_variable_visibility): Only add to same
10795 comdat group list if DECL_ONE_ONLY.
10796
10797 2011-05-25 Andrey Belevantsev <abel@ispras.ru>
10798
10799 PR rtl-optimization/49014
10800 * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
10801
10802 2011-05-25 Jakub Jelinek <jakub@redhat.com>
10803
10804 PR target/49128
10805 * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
10806
10807 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
10808
10809 PR rtl-optimization/48757
10810 * ira-build.c (loop_with_eh_edge_p): Rename to
10811 loop_with_complex_edge_p, check edges on complexity, make function
10812 conditional.
10813 (mark_loops_for_removal): Make call of loop_with_complex_edge_p
10814 conditional.
10815
10816 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
10817
10818 * config/sparc/sparc.c (sparc_option_override): If not set by the user,
10819 force flag_ira_share_save_slots to 0.
10820
10821 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
10822
10823 * var-tracking.c (compute_cfa_pointer): Adjust head comment.
10824 (vt_initialize): Set PROLOGUE_BB unconditionally.
10825 Add block comment about CFA_BASE_RTX machinery.
10826 Reset FP_CFA_OFFSET to -1 on all invalid paths.
10827 Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
10828
10829 2011-05-24 Nicola Pero <nicola.pero@meta-innovation.com>
10830
10831 PR objc/48187
10832 * c-parser.c (c_parser_objc_class_instance_variables): More robust
10833 parsing of syntax error in ObjC instance variable lists. In
10834 particular, avoid an infinite loop if there is a stray ']'.
10835 Updated error message.
10836
10837 2011-05-24 Ian Lance Taylor <iant@google.com>
10838
10839 * godump.c (go_define): Don't accept a string immediately after
10840 another operand.
10841
10842 2011-05-24 Ian Lance Taylor <iant@google.com>
10843
10844 * godump.c (struct godump_container): Add invalid_hash field.
10845 (go_format_type): Return false if type is found in invalid_hash.
10846 (go_output_typedef): Add invalid type to invalid_hash.
10847 (go_finish): Create and delete invalid_hash.
10848
10849 2011-05-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10850
10851 PR tree-optimization/46728
10852 * tree-ssa-math-opts.c (powi_table): New.
10853 (powi_lookup_cost): New.
10854 (powi_cost): New.
10855 (powi_as_mults_1): New.
10856 (powi_as_mults): New.
10857 (gimple_expand_builtin_powi): New.
10858 (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
10859 (gate_cse_sincos): Remove sincos/cexp restriction.
10860
10861 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10862
10863 PR target/3746
10864 * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
10865 mips-tdump native.
10866 * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
10867 * mips-tdump.c: Likewise.
10868
10869 2011-05-24 H.J. Lu <hongjiu.lu@intel.com>
10870
10871 PR target/49128
10872 * config/i386/driver-i386.c (host_detect_local_cpu): Always
10873 add -mno-XXX. Handle FMA.
10874
10875 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
10876
10877 PR rtl-optimization/48633
10878 * ira-build.c (loop_with_eh_edge_p): New function.
10879 (mark_loops_for_removal): Use it.
10880
10881 2011-05-24 Vladimir Makarov <vmakarov@redhat.com>
10882
10883 PR rtl-optimization/48971
10884 * ira.c (setup_pressure_classes): Don't check register move cost
10885 for classes with one registers. Don't add pressure class if there
10886 is a pressure class with the same available hard registers.
10887 Check contains_reg_of_mode. Fix a typo in collecting
10888 temp_hard_regset. Ignore hard registers not belonging to a class.
10889
10890 2011-05-24 Uros Bizjak <ubizjak@gmail.com>
10891
10892 PR target/49133
10893 * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
10894
10895 2011-05-24 Eric Botcazou <ebotcazou@adacore.com>
10896 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10897
10898 PR gcov-profile/48845
10899 * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
10900
10901 2011-05-24 Richard Guenther <rguenther@suse.de>
10902
10903 * gimple.c (compare_type_names_p): Remove for_completion_p arg.
10904 (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
10905 (gimple_types_compatible_p_1): Adjust.
10906 (iterative_hash_canonical_type): Do not bother about complete vs.
10907 incomplete types.
10908 (gimple_canonical_types_compatible_p): Likewise.
10909
10910 2011-05-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10911
10912 * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
10913
10914 2011-05-24 Richard Guenther <rguenther@suse.de>
10915
10916 PR bootstrap/49078
10917 * gimple.c (gimple_register_canonical_type): Revert
10918 previous change.
10919 * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
10920 does not for a tree for the case where it matters. Cache
10921 pointer-type alias-sets.
10922
10923 2011-05-24 Joseph Myers <joseph@codesourcery.com>
10924
10925 * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
10926 (OBJS): Remove options.o, opts-common.o and prefix.o.
10927 (OBJS-libcommon-target): New.
10928 (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
10929 (BACKEND): Include libcommon-target.a.
10930 (MOSTLYCLEANFILES): Include libcommon-target.a.
10931 (libcommon-target.a): New.
10932 (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
10933 prefix.o.
10934
10935 2011-05-23 Joseph Myers <joseph@codesourcery.com>
10936
10937 * optc-save-gen.awk: New. Based on optc-gen.awk. Don't generate
10938 parts of output shared with the driver.
10939 * optc-gen.awk: Don't generate parts of output not shared with the
10940 driver.
10941 * opth-gen.awk: Remove GCC_DRIVER conditionals.
10942 * doc/options.texi (SourcerInclude): Mention options-save.c.
10943 * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
10944 (OBJS): Add options-save.o.
10945 (options-save.c, options-save.o): New.
10946 (options.o): Update dependencies.
10947 (gcc-options.o): Remove.
10948 (mostlyclean): Remove options-save.c.
10949
10950 2011-05-23 Jakub Jelinek <jakub@redhat.com>
10951
10952 PR debug/49032
10953 * dbxout.c: Include cgraph.h.
10954 (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
10955 and without value expr, return NULL if no varpool node exists for
10956 it or if it is not needed.
10957 * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
10958
10959 PR c/49120
10960 * c-decl.c (start_decl): Convert expr to void_type_node.
10961
10962 2011-05-23 Richard Sandiford <rdsandiford@googlemail.com>
10963
10964 PR rtl-optimization/48826
10965 * emit-rtl.c (try_split): When splitting a call that is followed
10966 by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
10967
10968 2011-05-23 Jakub Jelinek <jakub@redhat.com>
10969
10970 * cfgexpand.c (expand_debug_expr): For unused non-addressable
10971 parameters passed in memory prefer using DECL_INCOMING_RTL over
10972 the pseudos it will be copied into.
10973
10974 2011-05-23 H.J. Lu <hongjiu.lu@intel.com>
10975
10976 PR target/47315
10977 * config/i386/i386.c (ix86_option_override_internal): Save the
10978 initial options after checking vzeroupper.
10979
10980 2011-05-23 David Li <davidxl@google.com>
10981
10982 PR tree-optimization/48988
10983 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
10984 Initialize has_valid_pred for each pred chain.
10985
10986 2011-05-23 Richard Guenther <rguenther@suse.de>
10987
10988 * gimple.c (gimple_types_compatible_p_1): Always compare type names.
10989 (iterative_hash_gimple_type): Always hash type names.
10990
10991 2011-05-23 Nathan Froyd <froydnj@codesourcery.com>
10992
10993 * c-typeck.c (build_function_call_vec): Tweak call to
10994 check_function_arguments.
10995
10996 2011-05-23 Richard Guenther <rguenther@suse.de>
10997
10998 PR tree-optimization/49115
10999 * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
11000 is not necessarily carried out, do not claim it kills the ref.
11001 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
11002
11003 2011-05-23 Richard Guenther <rguenther@suse.de>
11004
11005 PR middle-end/15419
11006 * builtins.c (fold_builtin_memory_op): Be less restrictive about
11007 what pointer types we accept for folding.
11008
11009 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11010
11011 * gthr-gnat.c: Remove.
11012 * gthr-gnat.h: Remove.
11013 * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
11014 * config/t-freebsd (LIB2ADDEH): Likewise.
11015 * config/t-linux (LIB2ADDEH): Likewise.
11016 * config/t-sol2 (LIB2ADDEH): Likewise.
11017 * config/ia64/t-vms (LIB2ADDEH): Likewise.
11018 * configure.ac (target_thread_file): Remove gnat handling.
11019 * configure: Regenerate.
11020 * doc/install.texi (Configuration, --enable-threads): Remove gnat.
11021
11022 2011-05-23 Tristan Gingold <gingold@adacore.com>
11023 Eric Botcazou <ebotcazou@adacore.com>
11024
11025 * gcov.c (create_file_names): If no object directory is specified,
11026 keep the directory of the file.
11027
11028 2011-05-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11029
11030 * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
11031 * configure: Regenerate.
11032
11033 2011-05-23 Jakub Jelinek <jakub@redhat.com>
11034
11035 PR middle-end/48973
11036 * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
11037 failed and the comparison has a single bit signed type, use
11038 constm1_rtx instead of const1_rtx for true value.
11039 (do_store_flag): If ops->type is single bit signed type, disable
11040 signel bit test optimization and pass -1 instead of 1 as last
11041 parameter to emit_store_flag_force.
11042
11043 2011-05-23 Tom de Vries <tom@codesourcery.com>
11044
11045 PR target/45098
11046 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
11047 function.
11048 (infer_loop_bounds_from_undefined): Use new function.
11049
11050 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
11051
11052 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
11053 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
11054 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
11055 and -O0 otherwise.
11056 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
11057
11058 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11059
11060 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
11061 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
11062 returns true.
11063
11064 2011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
11065
11066 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
11067
11068 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11069
11070 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
11071 UNSPEC_MOVE_PIC pattern.
11072
11073 2011-05-22 Eric Botcazou <ebotcazou@adacore.com>
11074
11075 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
11076 (sparc-*-rtems*): Likewise.
11077 (sparc64-*-elf*): Likewise.
11078 (sparc64-*-rtems*): Likewise.
11079 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
11080 * config/sparc/t-crtin: New file.
11081 * config/sparc/t-sol2 (crti.o): Delete rule.
11082 (crtn.o): Likewise.
11083 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
11084 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
11085 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
11086 (ENDFILE_SPEC): Add crtn.o.
11087
11088 2011-05-22 Tom de Vries <tom@codesourcery.com>
11089
11090 PR middle-end/48689
11091 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
11092 CODE_CONTAINS_STRUCT (TS_COMMON).
11093
11094 2011-05-22 Jakub Jelinek <jakub@redhat.com>
11095
11096 PR middle-end/49029
11097 * expmed.c (extract_fixed_bit_field): Test whether target can be used
11098 only after deciding which mode to use.
11099
11100 2011-05-22 Tom de Vries <tom@codesourcery.com>
11101
11102 PR target/45098
11103 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
11104 for call to get_shiftadd_cost.
11105
11106 2011-05-22 Uros Bizjak <ubizjak@gmail.com>
11107
11108 PR target/49104
11109 * config/i386/cpuid.h (bit_MMXEXT): New define.
11110
11111 2011-05-22 Nick Clifton <nickc@redhat.com>
11112
11113 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
11114 initialisation of non-existant args[2] element. Use args[] array
11115 not arg[] array to pass arguments to build_function_type_list.
11116
11117 2011-05-22 Ira Rosen <ira.rosen@linaro.org>
11118
11119 PR tree-optimization/49087
11120 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
11121
11122 2011-05-21 Jason Merrill <jason@redhat.com>
11123
11124 PR c++/49092
11125 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
11126 static storage duration.
11127
11128 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
11129
11130 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
11131 frame pointer.
11132
11133 2011-05-21 Eric Botcazou <ebotcazou@adacore.com>
11134
11135 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
11136 false if there are call-saved registers here...
11137 (sparc_can_use_return_insn_p): ...but here instead.
11138 (save_or_restore_regs): Fix thinko.
11139 (sparc_expand_prologue): Use current_function_is_leaf.
11140 (sparc_frame_pointer_required): Likewise.
11141
11142 2011-05-21 Nick Clifton <nickc@redhat.com>
11143
11144 PR target/49098
11145 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
11146
11147 2011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
11148
11149 * gengtype.c (walk_type): Implemented "atomic" GTY option.
11150 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
11151
11152 2011-05-21 Joseph Myers <joseph@codesourcery.com>
11153
11154 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
11155 * optc-gen.awk: Move common code to opt-read.awk.
11156 * opth-gen.awk: Likewise.
11157 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
11158
11159 2011-05-20 Nathan Froyd <froydnj@codesourcery.com>
11160
11161 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
11162
11163 2011-05-20 Tom de Vries <tom@codesourcery.com>
11164
11165 PR target/45098
11166 * tree-ssa-loop-ivopts.c: Include expmed.h.
11167 (get_shiftadd_cost): New function.
11168 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
11169
11170 2011-05-20 Jakub Jelinek <jakub@redhat.com>
11171
11172 PR bootstrap/49086
11173 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
11174 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
11175
11176 2011-05-20 Joseph Myers <joseph@codesourcery.com>
11177
11178 * Makefile.in: Update comment referring to $(OBJS-common).
11179
11180 2011-05-20 Ian Lance Taylor <iant@google.com>
11181
11182 * godump.c (go_output_typedef): Put enum constants in the macro
11183 hash table to avoid duplicate Go const definitions.
11184
11185 2011-05-20 Joseph Myers <joseph@codesourcery.com>
11186
11187 * Makefile.in (LIBDEPS): Add libcommon.a.
11188 (LIBS): Likewise.
11189 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
11190 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
11191 pretty-print.o and version.o.
11192 (OBJS-libcommon): New.
11193 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
11194 (BACKEND): Add libcommon.a.
11195 (MOSTLYCLEANFILES): Likewise.
11196 (libcommon.a): New.
11197 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
11198 (cpp$(exeext)): Likewise.
11199 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
11200 pretty-print.o and input.o.
11201 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
11202 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
11203 (errors.o): Remove.
11204 (mips-tfile): Don't explicitly use version.o.
11205 (mips-tdump): Likewise.
11206 (gcov.o): Depend on $(DIAGNOSTIC_H).
11207 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
11208 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
11209 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
11210 * gcov-dump.c: Include intl.h and diagnostic.h.
11211 (main): Initialize diagnostics.
11212 * gcov.c: Include diagnostic.h.
11213 (fnotice): Remove.
11214 (main): Initialize diagnostics.
11215 * lto-wrapper.c: Include diagnostic.h.
11216 (main): Initialize diagnostics.
11217
11218 2011-05-20 Michael Matz <matz@suse.de>
11219
11220 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
11221
11222 2011-05-20 Michael Matz <matz@suse.de>
11223 Richard Guenther <rguenther@suse.de>
11224
11225 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
11226 use lto_streamer_cache_append directly instead of returning a VEC.
11227 (preload_common_node): Remove.
11228 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
11229 track seen nodes.
11230 (lto_streamer_cache_create): Call lto_preload_common_nodes.
11231
11232 2011-05-20 Richard Guenther <rguenther@suse.de>
11233
11234 PR tree-optimization/49079
11235 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
11236 MEM_REFs correctly for the trailing array access detection.
11237 Special case constants the same way as decls for overall size
11238 constraining.
11239
11240 2011-05-20 Uros Bizjak <ubizjak@gmail.com>
11241
11242 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
11243 argument expansion.
11244
11245 2011-05-20 Jakub Jelinek <jakub@redhat.com>
11246
11247 PR tree-optimization/49073
11248 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
11249 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
11250 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
11251
11252 2011-05-20 Richard Guenther <rguenther@suse.de>
11253
11254 PR middle-end/48849
11255 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
11256 of pointer types the same way the middle-end does.
11257
11258 2011-05-20 Richard Guenther <rguenther@suse.de>
11259
11260 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
11261 or pointer-to chains. Delay all fixup to uniquify_nodes.
11262
11263 2011-05-19 Quentin Neill <quentin.neill@amd.com>
11264
11265 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
11266 (fma4_fmaddsub): Likewise
11267
11268 2011-05-19 Jan Hubicka <jh@suse.cz>
11269
11270 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
11271 (GIMPLE_TYPE_PAIR_SIZE): New macro.
11272 (type_pair_cache): New static var.
11273 (lookup_type_pair): Use fixed sized custom hash; make inline.
11274 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
11275 calls of lookup_type_pair.
11276 (print_gimple_types_stats): Remove cache stats.
11277 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
11278 and gtc_ob.
11279
11280 2011-05-19 Uros Bizjak <ubizjak@gmail.com>
11281
11282 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
11283 when TARGET_RDRND is active.
11284 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
11285 Generate dummy SImode target register when target is NULL.
11286
11287 2011-05-19 Joseph Myers <joseph@codesourcery.com>
11288
11289 * config/arm/arm-fpus.def: New.
11290 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
11291 arm-fpus.def.
11292 * config/arm/arm-tables.opt: Regenerate.
11293 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
11294 (arm_option_override): Don't decode FPU name to string here.
11295 * config/arm/arm.opt (mfpu=): Use Enum.
11296 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
11297 Update dependencies.
11298
11299 2011-05-19 Joseph Myers <joseph@codesourcery.com>
11300
11301 * collect2.c: Include diagnostic.h.
11302 (fatal_perror, fatal, error, fancy_abort): Remove.
11303 (main): Set progname. Call xmalloc_set_program_name and
11304 diagnostic_initialize.
11305 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
11306 scan_libraries, resolve_lib_name): Call fatal_error instead of
11307 fatal and fatal_perror.
11308 * collect2.h (error, fatal, fatal_perror): Don't declare.
11309 * tlink.c: Include diagnostic-core.h.
11310 (recompile_files): Call fatal_error instead of fatal_perror.
11311 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
11312 pretty-print.o and input.o.
11313 (collect2.o, tlink.o): Update dependencies.
11314
11315 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11316
11317 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
11318
11319 2011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11320
11321 PR target/40483
11322 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
11323 COMDAT group syntax, both SPARC and x86 variants.
11324 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
11325 * configure: Regenerate.
11326 * config/sol2.h (TARGET_SOLARIS): Define.
11327 (PUSHSECTION_FORMAT): Remove.
11328 (SECTION_NAME_FORMAT): Define.
11329 * config/sol2.c: Include hashtab.h.
11330 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
11331 expansion, using SECTION_NAME_FORMAT.
11332 (solaris_comdat_htab): New variable.
11333 (struct comdat_entry): Define.
11334 (comdat_hash): New function.
11335 (comdat_eq): New function.
11336 (solaris_elf_asm_comdat_section): New function.
11337 (solaris_define_comdat_signature): New function.
11338 (solaris_code_end): New function.
11339 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
11340 (solaris_code_end): Declare.
11341 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
11342 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
11343 solaris_code_end.
11344 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
11345 Remove ATTRIBUTE_UNUSED.
11346 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
11347 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
11348 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
11349 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
11350 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
11351 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
11352 (PUSHSECTION_FORMAT): Remove.
11353 (SECTION_NAME_FORMAT): Redefine.
11354
11355 2011-05-19 Kai Tietz <ktietz@redhat.com>
11356
11357 * tree-cfg.c (verify_gimple_assign_binary): Barf on
11358 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
11359 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
11360
11361 2011-05-19 Anatoly Sokolov <aesok@post.ru>
11362 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11363
11364 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
11365
11366 2011-05-19 Richard Guenther <rguenther@suse.de>
11367
11368 PR middle-end/48985
11369 * tree-object-size.c (addr_object_size): If the pointed-to
11370 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
11371
11372 2011-05-19 Richard Guenther <rguenther@suse.de>
11373
11374 * gimple.c (gimple_types_compatible_p_1): Compare names of
11375 the types themselves.
11376 (iterative_hash_gimple_type): And hash them that way.
11377 (gimple_register_type_1): If we register a main variant properly
11378 initialize the leader to ourselves.
11379
11380 2011-05-19 Tom de Vries <tom@codesourcery.com>
11381
11382 PR target/45098
11383 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
11384 get_loop_invariant_expr_id.
11385 (get_loop_invariant_expr_id): Use get_expr_id.
11386 (parm_decl_cost): New function.
11387 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
11388 Improve bound cost estimation. Use different inv_expr_id for elim and
11389 express cases.
11390
11391 2011-05-19 Tom de Vries <tom@codesourcery.com>
11392
11393 PR target/45098
11394 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
11395 cost_base.cost == 0.
11396
11397 2011-05-18 H.J. Lu <hongjiu.lu@intel.com>
11398
11399 PR target/49002
11400 * config/i386/sse.md
11401 (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
11402 load cast.
11403
11404 2011-05-18 Jakub Jelinek <jakub@redhat.com>
11405
11406 PR tree-optimization/49039
11407 * tree-vrp.c (extract_range_from_binary_expr): For
11408 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
11409 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
11410
11411 2011-05-18 Tom de Vries <tom@codesourcery.com>
11412
11413 PR target/45098
11414 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
11415
11416 2011-05-18 Uros Bizjak <ubizjak@gmail.com>
11417
11418 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
11419 (*tls_global_dynamic_64): Ditto.
11420 (*tls_local_dynamic_base_32_gnu): Ditto.
11421 (*tls_local_dynamic_base_64): Ditto.
11422 (tls_initial_exec_64_sun): Ditto.
11423
11424 2011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
11425
11426 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
11427 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
11428 bf592-none.
11429 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
11430 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
11431 * config/bfin/bfin.c (bfin_cpus): Add bf592.
11432 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
11433 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
11434 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
11435 * config/bfin/elf.h (LIB_SPEC): Add bf592.
11436
11437 2011-05-18 Joseph Myers <joseph@codesourcery.com>
11438
11439 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
11440 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
11441 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
11442 target_thread_pointer, arm_structure_size_boundary, struct
11443 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
11444 struct abi_name, arm_all_abis): Remove.
11445 (arm_option_override) Don't process most enumerated option values here.
11446 Don't process target_fpe_name here. Work with integer not string for
11447 structure size boundary; use separate diagnostics for each case.
11448 * config/arm/arm.h (enum float_abi_type, enum
11449 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
11450 to arm-opts.h.
11451 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
11452 arm_structure_size_boundary): Remove.
11453 * config/arm/arm.opt (mabi=): Use Enum and Init.
11454 (arm_abi_type): New Enum and EnumValue entries.
11455 (mfloat-abi=): Use Enum and Init.
11456 (float_abi_type): New Enum and EnumValue entries.
11457 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
11458 (mfp16-format=): Use Enum and Init.
11459 (arm_fp16_format_type): New Enum and EnumValue entries.
11460 (mstructure-size-boundary=): Use UInteger and Init.
11461 (mtp=): Use Enum and Init.
11462 (arm_tp_type): New Enum and EnumValue entries.
11463
11464 2011-05-18 Richard Guenther <rguenther@suse.de>
11465
11466 PR tree-optimization/49018
11467 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
11468 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
11469 gimple_has_side_effects.
11470
11471 2011-05-18 Richard Guenther <rguenther@suse.de>
11472
11473 * gimple.c (gimple_register_type_1): New function, split out from ...
11474 (gimple_register_type): ... here. Avoid infinite recursion.
11475
11476 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
11477
11478 PR tree-optimization/41881
11479 * tree-vectorizer.h (struct _loop_vec_info): Add new field
11480 reduction_chains along with a macro for its access.
11481 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
11482 (destroy_loop_vec_info): Free reduction chains.
11483 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
11484 (vect_is_slp_reduction): New function.
11485 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
11486 (vect_create_epilog_for_reduction): Support SLP reduction chains.
11487 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
11488 definition types for reduction chains.
11489 (vect_supported_load_permutation_p): Don't allow permutations for
11490 reduction chains.
11491 (vect_analyze_slp_instance): Support reduction chains.
11492 (vect_analyze_slp): Try to build SLP instance from reduction chains.
11493 (vect_get_constant_vectors): Handle reduction chains.
11494 (vect_schedule_slp_instance): Mark the first statement of the
11495 reduction chain as reduction.
11496
11497 2011-05-18 Ira Rosen <ira.rosen@linaro.org>
11498
11499 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
11500 names for group elements access.
11501 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
11502 reduction chains as well. Remove data reference and interleaving
11503 related words from the fields names.
11504 * tree-vect-loop.c (vect_transform_loop): Use new names for group
11505 elements access.
11506 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
11507 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
11508 vect_update_interleaving_chain, vect_same_range_drs,
11509 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
11510 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
11511 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
11512 vect_analyze_group_access, vect_analyze_data_ref_access,
11513 vect_create_data_ref_ptr, vect_transform_strided_load,
11514 vect_record_strided_load_vectors): Likewise.
11515 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
11516 vect_model_load_cost, vectorizable_store, vectorizable_load,
11517 vect_remove_stores, new_stmt_vec_info): Likewise.
11518 * tree-vect-slp.c (vect_build_slp_tree,
11519 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
11520
11521 2011-05-18 Richard Guenther <rguenther@suse.de>
11522
11523 PR middle-end/48989
11524 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
11525 operand verification.
11526 (verify_gimple_assign_binary): Likewise.
11527 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
11528 to non-1-precision BOOLEAN_TYPEs.
11529
11530 2011-05-18 Tom de Vries <tom@codesourcery.com>
11531
11532 PR target/45098
11533 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
11534
11535 2011-05-18 Jakub Jelinek <jakub@redhat.com>
11536
11537 PR tree-optimization/49000
11538 * tree-ssa.c (execute_update_addresses_taken): Call
11539 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
11540 be rewritten and decl has been marked for renaming, reset
11541 the debug stmt.
11542
11543 2011-05-17 Joseph Myers <joseph@codesourcery.com>
11544
11545 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
11546 enum_opts_set when testing if attributes have set -mfpmath=.
11547
11548 2011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
11549
11550 * config/mips/mips.c (mips_handle_option): Remove unused variable.
11551
11552 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
11553
11554 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
11555 info->entry with 0
11556 * tree-inline.c (maybe_inline_call_in_expr): Initialize
11557 id.transform_lang_insert_block with NULL.
11558
11559 2011-05-17 Uros Bizjak <ubizjak@gmail.com>
11560
11561 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
11562 (output_fp_compare): Change args 3 and 4 to bool.
11563 (ix86_expand_call): Change arg 6 to bool.
11564 (ix86_attr_length_immediate_default): Change arg 2 to bool.
11565 (ix86_attr_length_vex_default): Change arg 3 to bool.
11566 * config/i386/i386.md: Update all uses.
11567 * config/i386/i386.c: Ditto.
11568 (ix86_flags_dependent): Change return type to bool.
11569
11570 2011-05-17 Richard Guenther <rguenther@suse.de>
11571
11572 * gimple.c (type_hash_pair_compare): Fix comparison.
11573
11574 2011-05-17 Richard Guenther <rguenther@suse.de>
11575
11576 * gimple.c (iterative_hash_gimple_type): Simplify singleton
11577 case some more, fix final hash value of the non-singleton case.
11578
11579 2011-05-17 Richard Guenther <rguenther@suse.de>
11580
11581 PR bootstrap/49013
11582 Revert
11583 2011-05-16 Richard Guenther <rguenther@suse.de>
11584
11585 * gimple.c (gimple_types_compatible_p_1): Use names of the
11586 type itself, not its main variant.
11587 (iterative_hash_gimple_type): Likewise.
11588
11589 2011-05-17 Richard Guenther <rguenther@suse.de>
11590
11591 * gimple.c (gimple_register_canonical_type): Use the main-variant
11592 leader for computing the canonical type.
11593
11594 2011-05-17 Nick Clifton <nickc@redhat.com>
11595
11596 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
11597 moves.
11598
11599 * config/rx/rx.md: Add peephole to remove redundant extensions
11600 after loads.
11601 (bitset_in_memory): Use rx_restricted_mem_operand.
11602 (bitinvert_in_memory): Likewise.
11603 (bitclr_in_memory): Likewise.
11604
11605 2011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
11606 Nick Clifton <nickc@redhat.com>
11607
11608 * config/rx/rx.md: Add peepholes to match a register move followed
11609 by a comparison of the moved register. Replace these with an
11610 addition of zero that does both actions in one instruction.
11611
11612 2011-05-17 Jakub Jelinek <jakub@redhat.com>
11613
11614 PR target/48986
11615 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
11616 predicate to allow CONST_INT.
11617 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
11618
11619 2011-05-16 Joseph Myers <joseph@codesourcery.com>
11620
11621 * opts-common.c (opt_enum_arg_to_value): New.
11622 * opts.h (opt_enum_arg_to_value): Declare.
11623 * config/i386/i386.opt (fpmath): Remove.
11624 (mfpmath=): Use Enum, Init and Save.
11625 (fpmath_unit): New Enum and EnumValue entries.
11626 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
11627 name for function fpmath state.
11628 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
11629 * config/i386/i386.c: Include diagnostic.h.
11630 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
11631 (ix86_target_string): Take enum fpmath_unit value instead of string.
11632 (ix86_debug_options): Update call to ix86_target_string.
11633 (ix86_option_override_internal): Don't process fpmath strings here.
11634 (x86_function_specific_save, ix86_function_specific_restore):
11635 Don't handle fpmath state specially.
11636 (ix86_function_specific_print): Pass fpmath state to
11637 ix86_target_string instead of printing in this function.
11638 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
11639 Handle enum attributes.
11640 (IX86_ATTR_ENUM, ix86_opt_enum): New.
11641 (ix86_valid_target_attribute_tree): Update option_strings
11642 handling. Handle fpmath as enum option.
11643 (ix86_can_inline_p): Update field names for function fpmath state.
11644 (ix86_expand_builtin): Update call to ix86_target_string.
11645 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
11646 (ix86_fpmath): Remove.
11647 * config/i386/t-i386 (i386.o): Update dependencies.
11648
11649 2011-05-16 Joseph Myers <joseph@codesourcery.com>
11650
11651 PR preprocessor/48677
11652 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
11653 from decoded_options[0], not from itself.
11654
11655 2011-05-16 Uros Bizjak <ubizjak@gmail.com>
11656
11657 * config/i386/constraints.md (z): New constraint.
11658 * config/i386/i386.c (c): New mode attribute.
11659 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
11660 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
11661 constraint for operand 0.
11662 (*call_vzeroupper): Ditto.
11663 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
11664 (*call_rex64_ms_sysv_vzeroupper): Ditto.
11665 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
11666 Use "lzm" constraint for operand 0.
11667 (*call_pop_vzeroupper): Ditto.
11668 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
11669 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
11670 constraint for operand 0.
11671 (*sibcall_vzeroupper): Ditto.
11672 (*sibcall_rex64_ms_sysv): Ditto.
11673 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
11674 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
11675 *sibcall_pop_1. Use "Uz" constraint for operand 0.
11676 (*sibcall_pop_vzeroupper): Ditto.
11677 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
11678 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
11679 mode iterator. Use "<c>zm" constraint for operand 1.
11680 (*call_value_vzeroupper): Ditto.
11681 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
11682 for operand 1.
11683 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
11684 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
11685 *call_value_pop_1. Use "lzm" constraint for operand 1.
11686 (*call_value_pop_vzeroupper): Ditto.
11687 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
11688 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
11689 mode iterator. Use "Uz" constraint for operand 1.
11690 (*sibcall_value_vzeroupper): Ditto.
11691 (*sibcall_value_rex64_ms_sysv): Ditto.
11692 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
11693 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
11694 constraint for operand 1.
11695 (*sibcall_value_pop_vzeroupper): Ditto.
11696 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
11697 and "z" constraint for operand 2.
11698 (*tls_global_dynamic_32_gnu): Ditto.
11699 (*tls_local_dynamic_base_32_gnu): Ditto.
11700 (*tls_local_dynamic_base_64): Ditto.
11701 (*tls_local_dynamic_32_once): Ditto.
11702 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
11703 Update all callers.
11704 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
11705
11706 2011-05-16 Richard Guenther <rguenther@suse.de>
11707
11708 * gimple.c (gimple_types_compatible_p_1): Use names of the
11709 type itself, not its main variant.
11710 (iterative_hash_gimple_type): Likewise.
11711
11712 2011-05-16 Richard Guenther <rguenther@suse.de>
11713
11714 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
11715 always visit pointer target and function result and argument types.
11716
11717 2011-05-16 Jason Merrill <jason@redhat.com>
11718
11719 PR c++/48999
11720 * tree-inline.c (copy_statement_list): Put back recursion.
11721
11722 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
11723
11724 PR target/27663
11725 PR target/41076
11726 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
11727 * config/avr/avr.md ("*ior<mode>qi.byte0",
11728 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
11729
11730 2011-05-16 Georg-Johann Lay <avr@gjlay.de>
11731
11732 PR target/45099
11733 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
11734 register is needed for a function argument.
11735
11736 2011-05-16 Richard Guenther <rguenther@suse.de>
11737
11738 * gimple.c (struct type_hash_pair): New type.
11739 (type_hash_pair_compare): New function.
11740 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
11741
11742 2011-05-16 Revital Eres <revital.eres@linaro.org>
11743
11744 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
11745
11746 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
11747
11748 * config/i386/i386.md (floating point move splitters): Fix
11749 usage of standard_80387_constant_p.
11750 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
11751
11752 2011-05-15 Uros Bizjak <ubizjak@gmail.com>
11753
11754 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
11755
11756 2011-05-14 Eric Botcazou <ebotcazou@adacore.com>
11757
11758 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
11759 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
11760 (tree_ssa_lim_finalize): Likewise.
11761
11762 2011-05-14 Uros Bizjak <ubizjak@gmail.com>
11763
11764 * config/i386/constraint.md (Yd, Yx): New register constraints.
11765 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
11766 Yd conditional register constraint.
11767 (*movtf_internal): Use standard_sse_constant_opcode.
11768 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
11769 Yx conditional register constraint.
11770 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
11771 Yd conditional register constraint. Use standard_sse_constant_p to
11772 check for valid SSE constants and call standard_sse_constant_opcode to
11773 output SSE insn.
11774 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
11775 constants and call standard_sse_constant_opcode to output SSE insn.
11776 * config/i386/i386.c (ix86_option_ovverride_internal): Set
11777 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
11778 optimize_size is set.
11779 (standard_sse_constant_opcode): Output conditional AVX insn templates.
11780
11781 2011-05-14 Tobias Burnus <burnus@net-b.de>
11782
11783 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
11784
11785 2011-05-13 Martin Jambor <mjambor@suse.cz>
11786
11787 * ipa-prop.c (ipa_cst_from_jfunc): New function.
11788 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
11789 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
11790 (evaluate_conditions_for_ipcp_clone): Removed.
11791 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
11792 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
11793 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
11794
11795 2011-05-13 Eric Botcazou <ebotcazou@adacore.com>
11796
11797 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
11798 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
11799 lieu of MAY_HAVE_DEBUG_STMTS.
11800 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
11801 debug statements if !MAY_HAVE_DEBUG_STMTS.
11802
11803 2011-05-13 Martin Thuresson <martint@google.com>
11804
11805 PR gcov-profile/47793
11806 * libgcov.c (gcov_exit): Support relative profile paths.
11807 * doc/invoke.texi (-fprofile-dir): Update for above change.
11808
11809 2011-05-13 Richard Guenther <rguenther@suse.de>
11810
11811 * gimple.c (gimple_canonical_types_compatible_p): Do not use
11812 type-pair caching, do not compare hashes.
11813
11814 2011-05-13 Nathan Froyd <froydnj@codesourcery.com>
11815
11816 PR middle-end/48965
11817 * tree-cfg.c (edge_to_cases_cleanup): Return true.
11818 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
11819
11820 2011-05-13 Kai Tietz <ktietz@redhat.com>
11821
11822 * gimplify.c (gimplify_expr): Make sure operand is boolified.
11823 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
11824 compatible type for TRUTH_NOT_EXPR.
11825
11826 2011-05-13 H.J. Lu <hongjiu.lu@intel.com>
11827
11828 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
11829 (ix86_hard_regno_mode_ok): Change return value to bool. Use
11830 can_create_pseudo_p ().
11831
11832 2011-05-13 Richard Guenther <rguenther@suse.de>
11833
11834 PR lto/48978
11835 * gimple.c (iterative_hash_gimple_type): Revert change in
11836 pointer target and function result and argument hashing.
11837
11838 2011-05-13 Uros Bizjak <ubizjak@gmail.com>
11839
11840 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
11841 (*movxf_internal_nointeger): Ditto.
11842 (*movdf_internal_rex64): Ditto.
11843 (*movdf_internal): Ditto.
11844 (*movdf_internal_nointeger): Ditto.
11845 (*movsf_internal): Ditto.
11846 (sincos splitters): Use can_create_pseudo ().
11847
11848 2011-05-13 Joseph Myers <joseph@codesourcery.com>
11849
11850 * config/i386/i386-opts.h: New.
11851 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
11852 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
11853 ix86_section_threshold): Remove.
11854 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
11855 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
11856 OPT_mbranch_cost_.
11857 (ix86_option_override_internal): Don't decode strings for options
11858 other than -march=, -mtune= and -mfpmath=. Don't allow for
11859 __attribute__ uses in remaining diagnostics for options with
11860 string arguments. Don't check for integer arguments being negative.
11861 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
11862 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
11863 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
11864 ix86_branch_cost, ix86_section_threshold): Remove.
11865 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
11866 HeaderInclude.
11867 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
11868 but not Var.
11869 (masm=): Use Enum and Init.
11870 (asm_dialect): New Enum and EnumValue entries.
11871 (mbranch-cost=): Use UInteger.
11872 (mlarge-data-threshold=): Use UInteger and Init.
11873 (mcmodel=): Use Enum and Init.
11874 (cmodel): New Enum and EnumValue entries.
11875 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
11876 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
11877 mregparm=): Use UInteger.
11878 (mstringop-strategy=): Use Enum and Init.
11879 (stringop_alg): New Enum and EnumValue entries.
11880 (mtls-dialect=): Use Enum and Init.
11881 (tls_dialect): New Enum and EnumValue entries.
11882 (mabi=): Use Enum and Init.
11883 (calling_abi): New Enum and EnumValue entries.
11884 (mveclibabi=): Use Enum and Init.
11885 (ix86_veclibabi): New Enum and EnumValue entries.
11886
11887 2011-05-13 Nick Clifton <nickc@redhat.com>
11888
11889 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
11890 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
11891
11892 2011-05-13 Kai Tietz <ktietz@redhat.com>
11893
11894 PR middle-end/48984
11895 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
11896 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
11897 (gimple_boolify): Check for cast for boolean_type_node instead for
11898 BOOLEAN_TYPE.
11899
11900 2011-05-13 Richard Guenther <rguenther@suse.de>
11901
11902 PR tree-optimization/48172
11903 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
11904 multiplying by number of iterations for equal step.
11905 (vect_create_cond_for_alias_checks): Likewise.
11906
11907 2011-05-13 Andreas Schwab <schwab@redhat.com>
11908
11909 * configure.ac: Use AS_HELP_STRING throughout.
11910 * configure: Regenerate.
11911
11912 2011-05-12 H.J. Lu <hongjiu.lu@intel.com>
11913
11914 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
11915 (ix86_emit_restore_regs_using_mov): Likewise.
11916 (ix86_emit_restore_sse_regs_using_mov): Likewise.
11917
11918 2011-05-12 Anatoly Sokolov <aesok@post.ru>
11919
11920 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
11921 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
11922 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
11923 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
11924 RTX_OK_FOR_OLO10_P): ...here.
11925 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
11926 SYMBOLIC_CONST.
11927
11928 2011-05-12 Kai Tietz <ktietz@redhat.com>
11929
11930 * gimplify.c (gimple_boolify): Re-boolify expression
11931 arguments even if expression type is of kind BOOLEAN_TYPE.
11932 (gimplify_boolean_expr): Removed.
11933 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
11934 and XOR. Additional take care that we keep expression's type.
11935 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
11936 of TRUTH_AND|OR|XOR_EXPR.
11937
11938 2011-05-12 Jakub Jelinek <jakub@redhat.com>
11939
11940 PR tree-optimization/48975
11941 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
11942 on all bbs here and free and clear ifc_bbs at the end.
11943
11944 2011-05-12 Richard Guenther <rguenther@suse.de>
11945
11946 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
11947 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
11948 until after simple checks.
11949 (gimple_types_compatible_p): Likewise.
11950 (iterative_hash_gimple_type): Always hash pointer targets
11951 and function return and argument types.
11952 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
11953 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
11954 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
11955 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
11956 completely in the simple compare section.
11957 (gimple_register_canonical_type): Query the cache again after
11958 registering.
11959
11960 2011-05-12 Richard Guenther <rguenther@suse.de>
11961
11962 PR tree-optimization/48172
11963 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
11964 the number of iterations from the segment size calculation.
11965 (vect_create_cond_for_alias_checks): Adjust.
11966
11967 2011-05-12 Jakub Jelinek <jakub@redhat.com>
11968
11969 PR debug/48967
11970 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
11971 if validate_subreg fails.
11972
11973 2011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
11974
11975 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
11976 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
11977 early.
11978
11979 2011-05-12 DJ Delorie <dj@redhat.com>
11980
11981 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
11982 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
11983 created builtin into rx_builtins array.
11984 (rx_builtin_decl): New function.
11985 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
11986
11987 2011-05-12 DJ Delorie <dj@redhat.com>
11988 Nick Clifton <nickc@redhat.com>
11989
11990 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
11991 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
11992 (rx_is_legitimate_address): Add pre-decrement and post-increment
11993 addressing in HImode and QImode. Fix test for out of range
11994 REG+INT addressing.
11995 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
11996 (rx_align_for_label): Test label before extracting its usage count.
11997 (rx_adjust_insn_lengths): Fix selection of insn codes.
11998 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
11999
12000 2011-05-11 Jason Merrill <jason@redhat.com>
12001
12002 * tree.c (type_hash_canon): Use struct tree_type_non_common.
12003
12004 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
12005
12006 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
12007 reindent the subsequent block.
12008
12009 2011-05-11 Satoru Takabayashi <satorux@google.com>
12010 Paul Pluzhnikov <ppluzhnikov@google.com>
12011
12012 * doc/install.texi (Configuration): Document --with-linker-hash-style.
12013 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
12014 * config.in: Add LINKER_HASH_STYLE.
12015 * configure.ac: Add --with-linker-hash-style.
12016 * configure: Regenerate.
12017
12018 2011-05-11 Richard Guenther <rguenther@suse.de>
12019
12020 PR middle-end/48964
12021 * gimple.c (iterative_hash_canonical_type): Fix typo.
12022
12023 2011-05-11 Uros Bizjak <ubizjak@gmail.com>
12024
12025 * config/i386/i386.c (legitimize_tls_address)
12026 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
12027 expanders directly for TARGET_GNU2_TLS. Determine pic and
12028 __tls_get_addr symbol reference here. Update call to
12029 gen_tls_global_dynamic_{32,64} for added arguments.
12030 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
12031 expanders directly for TARGET_GNU2_TLS. Determine
12032 __tls_get_addr symbol reference here. Update call to
12033 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
12034 unique UNSPEC REG_EQUIV to libcall block.
12035 (ix86_tls_get_addr): Declare static.
12036 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
12037 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
12038 Do not determine pic and __tls_get_addr symbol reference here. Do not
12039 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
12040 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
12041 (tls_global_dynamic_64): Add operand 2. Do not determine
12042 __tls_get_addr symbol reference here. Do not call
12043 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
12044 (tls_local_dynamic_base64): Ditto for operand 1.
12045
12046 2011-05-11 Eric Botcazou <ebotcazou@adacore.com>
12047
12048 * function.c (expand_function_start): Initialize stack_check_probe_note
12049 only if the generic stack checking mechanism is used.
12050
12051 2011-05-11 Richard Guenther <rguenther@suse.de>
12052
12053 PR tree-optimization/15256
12054 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
12055 (A & B) | C, combine (A op CST1) op CST2.
12056 (tree_ssa_forward_propagate_single_use_vars): Only bother to
12057 visit assigns that have uses.
12058
12059 2011-05-11 Nathan Froyd <froydnj@codesourcery.com>
12060
12061 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
12062 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
12063 (unpack_ts_type_common_value_fields): ...this. Update comment.
12064 (unpack_value_fields): Adjust for renaming.
12065 (lto_input_ts_type_tree_pointers): Split into...
12066 (lto_input_ts_type_common_tree_pointer): ...this and...
12067 (lto_input_ts_type_non_common_tree_pointers): ...this.
12068 (lto_input_tree_pointers): Adjust for above split.
12069 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
12070 (pack_ts_type_common_value_fields): ...this. Update comment.
12071 (lto_output_ts_type_tree_pointers): Split into...
12072 (lto_output_ts_type_common_tree_pointers): ...this and...
12073 (lto_output_ts_type_non_common_tree_pointers): ...this.
12074 (lto_output_tree_pointers): Adjust for above split.
12075 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
12076 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
12077 * stor-layout.c (vector_type_mode): Adjust location of mode field.
12078 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
12079 Define.
12080 (struct tree_type): Split into...
12081 (struct tree_type_common: ...this and...
12082 (struct tree_type_with_lang_specific): ...this and...
12083 (struct tree_type_non_common): ...this. Adjust accessor macros
12084 accordingly.
12085 (TYPE_VALUES_RAW): Define.
12086 (union tree_node): Update for above changes.
12087 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
12088 TS_TYPE_NON_COMMON.
12089 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
12090 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
12091 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
12092 * treestructu.def (TS_TYPE): Remove.
12093 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
12094 Define.
12095
12096 2011-05-11 Jakub Jelinek <jakub@redhat.com>
12097
12098 PR debug/48159
12099 * tree-ssa.c (reset_debug_uses): New function.
12100 * tree-flow.h (reset_debug_uses): New prototype.
12101 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
12102 * tree-loop-distribution.c (generate_loops_for_partition): Call
12103 reset_debug_uses on the stmts that will be removed. Keep around
12104 all debug stmts, don't count them as bits in partition bitmap.
12105 (generate_builtin): Don't count debug stmts or labels as bits in
12106 partition bitmap.
12107
12108 2011-05-11 Richard Guenther <rguenther@suse.de>
12109
12110 * gimple.c (gimple_type_hash_1): Merge with ...
12111 (gimple_type_hash): ... this.
12112 (gtc_visit): Remove mode parameter and simplify accordingly.
12113 (gimple_types_compatible_p_1): Likewise.
12114 (gimple_types_compatible_p): Likewise.
12115 (iterative_hash_gimple_type): Likewise.
12116 (visit): Likewise.
12117 (gimple_type_eq): Adjust.
12118
12119 2011-05-11 Revital Eres <revital.eres@linaro.org>
12120
12121 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
12122 enters the branch create an anti edge in the opposite direction
12123 to prevent the creation of reg-moves.
12124 * modulo-sched.c: Adjust comment to reflect the fact we are
12125 scheduling closing branch.
12126 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
12127 (stage_count): New field in struct partial_schedule.
12128 (calculate_stage_count): New function.
12129 (normalize_sched_times): Rename to reset_sched_times and handle
12130 incrementing the sched time of the nodes by a constant value
12131 passed as parameter.
12132 (duplicate_insns_of_cycles): Skip closing branch.
12133 (sms_schedule_by_order): Schedule closing branch.
12134 (ps_insn_find_column): Handle closing branch.
12135 (sms_schedule): Call reset_sched_times and adjust the code to
12136 support scheduling of the closing branch.
12137 (ps_insert_empty_row): Update calls to normalize_sched_times
12138 and rotate_partial_schedule functions.
12139
12140 2011-05-11 Richard Guenther <rguenther@suse.de>
12141
12142 PR middle-end/48953
12143 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
12144
12145 2011-05-11 Joseph Myers <joseph@codesourcery.com>
12146
12147 * opts.c (finish_options): Move warning settings from process_options.
12148 * toplev.c (process_options): Move warning settings to finish_options.
12149
12150 2011-05-11 Richard Guenther <rguenther@suse.de>
12151
12152 PR tree-optimization/18041
12153 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
12154 (simplify_bitwise_binary): ... this. Handle operand conversions
12155 by applying them to the result instead.
12156 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
12157
12158 2011-05-11 Richard Guenther <rguenther@suse.de>
12159
12160 * gimple.c (gimple_canonical_types_compatible_p): Split out
12161 from gimple_types_compatible_p and friends. Do not recurse
12162 to pointed-to types.
12163 (gimple_canonical_type_eq): Use it.
12164 (iterative_hash_canonical_type): Split out from
12165 iterative_hash_gimple_type and friends. Do not recurse
12166 to pointed-to types.
12167 (gimple_canonical_type_hash): Use it, allocate the hash here.
12168
12169 2011-05-11 Revital Eres <revital.eres@linaro.org>
12170
12171 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
12172 recognizing doloop.
12173
12174 2011-05-11 Revital Eres <revital.eres@linaro.org>
12175
12176 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
12177 instead of PREV_INSN.
12178
12179 2011-05-11 Revital Eres <revital.eres@linaro.org>
12180
12181 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
12182 * loop-doloop.c (doloop_condition_get): Likewise.
12183 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
12184 (doloop_end): New.
12185 * config/arm/arm.md (*addsi3_compare0): Remove "*".
12186
12187 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
12188
12189 * tree.def (CASE_LABEL_EXPR): Add an operand.
12190 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
12191
12192 2011-05-10 Joseph Myers <joseph@codesourcery.com>
12193
12194 * c-decl.c (c_override_global_bindings_to_false): Remove.
12195 (global_bindings_p): Don't check
12196 c_override_global_bindings_to_false.
12197 * c-tree.h (c_override_global_bindings_to_false): Remove.
12198 * c-typeck.c (composite_type): Don't set
12199 c_override_global_bindings_to_false.
12200
12201 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
12202
12203 PR target/48857, 48495
12204 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
12205 (VSX_MODE): Ditto.
12206 (VSX_MOVE_MODE): Ditto.
12207 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
12208 VSX vector types. Add V2DImode.
12209 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
12210 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
12211 (MODES_TIEABLE_P): Ditto.
12212
12213 * config/rs6000/rs6000.c (rs6000_emit_move): Use
12214 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
12215 VSX_VECTOR_MODE.
12216 (init_cumulative_args): Ditto.
12217 (rs6000_function_arg_boundary): Ditto.
12218 (rs6000_function_arg_advance_1): Ditto.
12219 (rs6000_function_arg): Ditto.
12220 (rs6000_function_ok_for_sibcall): Ditto.
12221 (emit_frame_save): Ditto.
12222 (rs6000_function_value): Ditto.
12223 (rs6000_libcall_value): Ditto.
12224
12225 2011-05-10 Joseph Myers <joseph@codesourcery.com>
12226
12227 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
12228 i386/darwin-lib.h to $libgcc_tm_file.
12229 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
12230
12231 2011-05-10 Joseph Myers <joseph@codesourcery.com>
12232
12233 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
12234
12235 2011-05-10 Joseph Myers <joseph@codesourcery.com>
12236
12237 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
12238 * config/rs6000/rs6000-tables.opt: New file (generated).
12239 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
12240 rs6000/rs6000-tables.opt to extra_options.
12241 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
12242 * config/rs6000/rs6000.c (rs6000_select): Remove.
12243 (processor_target_table): Move contents to rs6000-cpus.def.
12244 (darwin_rs6000_override_options): Check
12245 global_options_set.x_rs6000_cpu_index instead of
12246 rs6000_select[1].string.
12247 (rs6000_option_override_internal): Likewise.
12248 (rs6000_handle_option): Don't assert that global structures are in
12249 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
12250 (rs6000_default_cpu): New variable.
12251 (rs6000_file_start): Set it instead of local default_cpu. Check
12252 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
12253 global_options_set.x_rs6000_tune_index instead of rs6000_select.
12254 (rs6000_darwin_file_start): Check rs6000_default_cpu and
12255 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
12256 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
12257 rs6000_select): Remove.
12258 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
12259 Remove.
12260 (mcpu=, mtune=): Use Var, Init, Enum and Save.
12261 * config/rs6000/t-rs6000
12262 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
12263 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
12264 global_options_set.x_rs6000_cpu_index instead of
12265 rs6000_select[1].string.
12266 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
12267 global_options_set.x_rs6000_cpu_index instead of
12268 rs6000_select[1].string.
12269
12270 2011-05-10 Joseph Myers <joseph@codesourcery.com>
12271
12272 * config.gcc (libgcc_tm_file): Define instead of including files
12273 from ../../libgcc/config/ in tm_file.
12274 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
12275 * configure: Regenerate.
12276 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
12277 libgcc_tm.h, cs-libgcc_tm.h): New.
12278 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
12279 (clean): Remove libgcc_tm.h.
12280 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
12281 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
12282 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
12283
12284 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
12285
12286 PR target/48896
12287 * config/avr/avr.c (avr_ret_register): Return unsigned int
12288 instead of int.
12289 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
12290 it to avr_libcall_value.
12291 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
12292 expand_expr.
12293 (avr_expand_binop_builtin): Ditto.
12294 (avr_expand_unop_builtin): Ditto.
12295
12296 2011-05-10 DJ Delorie <dj@redhat.com>
12297
12298 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
12299 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
12300 * config/rx/rx.c (rx_align_for_label): Add label and
12301 uses_threshold parameters. Do not align when the label is not
12302 used enough.
12303 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
12304
12305 2011-05-10 Richard Guenther <rguenther@suse.de>
12306
12307 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
12308 a series of conversions and apply foldings similar to what
12309 fold-const does.
12310 (tree_ssa_forward_propagate_single_use_vars): Call it.
12311
12312 2011-05-10 Jakub Jelinek <jakub@redhat.com>
12313
12314 PR tree-optimization/48611
12315 PR tree-optimization/48794
12316 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
12317 referenced from RESX or EH_DISPATCH arguments.
12318
12319 PR debug/48928
12320 * dfp.c (decimal_to_decnumber): Handle conversion from
12321 dconst{1,2,m1,half}.
12322
12323 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
12324
12325 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
12326 for !flag_prefer_avx128.
12327 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
12328
12329 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
12330
12331 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
12332 (fold_ternary_loc): Use expr_location_or.
12333
12334 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
12335
12336 PR debug/48853
12337 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
12338 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
12339 Pmode and mem_mode is not VOIDmode.
12340
12341 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
12342
12343 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
12344 TYPE_QUAL_RESTRICT): Convert to enum.
12345
12346 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
12347
12348 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
12349 (const_pow2_1_to_8_operand): Ditto.
12350 (const_pow2_1_to_128_operand): Ditto.
12351 (const_pow2_1_to_32768_operand): Ditto.
12352 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
12353 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
12354 in insn constraint to check integer value of operand 3.
12355 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
12356
12357 (PINSR_MODE): New mode iterator.
12358 (sse2p4_1): New mode attribute.
12359 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
12360 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
12361 iterator. Use const_int_operand instead of
12362 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
12363 exact_log2 in insn constraint to check integer value of operand 3.
12364
12365 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
12366
12367 * config/i386/sse.md (blendbits): Remove mode attribute.
12368 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
12369 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
12370 Check integer value of operand 3 in insn constraint.
12371
12372 2011-05-09 Richard Guenther <rguenther@suse.de>
12373
12374 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
12375 for diagnostics.
12376 (lto_symtab_merge): Likewise. Do not register types here.
12377 (lto_symtab_merge_decls_2): Likewise.
12378 (lto_symtab_merge_decls_1): Likewise.
12379 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
12380 * gimple.c (enum gtc_mode): Declare.
12381 (gimple_types_compatible_p): Make static.
12382
12383 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12384
12385 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
12386 temporary register to match Pmode.
12387
12388 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
12389
12390 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
12391 and *vec_concatv4si_1_avx.
12392
12393 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
12394
12395 PR rtl-optimization/48927
12396 * ira-conflicts.c (commutative_constraint_p): Use
12397 recog_data.alternative_enabled_p to disable alternatives where
12398 "enabled" attribute is false.
12399 (get_dup_num): Ditto.
12400 * ira-lives.c (single_reg_class): Ditto.
12401 (ira_implicitly_set_insn_hard_regs): Ditto.
12402
12403 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
12404
12405 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
12406 (dataflow_set_preserve_mem_locs): Likewise.
12407
12408 2011-05-09 Philipp Thomas <pth@suse.de>
12409
12410 * config/mep/mep.c (mep_validate_vliw): Syntax description
12411 should not be translated.
12412
12413 2011-05-09 Joseph Myers <joseph@codesourcery.com>
12414
12415 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
12416 * config/mips/mips-tables.opt: New file (generated).
12417 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
12418 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
12419 MIPS_ARCH_OPTION_NATIVE): Define.
12420 * config/mips/mips.c (mips_cpu_info_table): Move contents to
12421 mips-cpus.def.
12422 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
12423 mips_parse_cpu): Remove.
12424 (mips_cpu_info_from_opt, mips_default_arch): New.
12425 (mips_handle_option): Don't assert that global structures are in
12426 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
12427 (mips_option_override): Use new variables and functions to set
12428 state of these options. Use strcmp to check for individual CPU names.
12429 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
12430 definition.
12431 * config/mips/mips.opt (march=): Use ToLower and Enum.
12432 (mips): Use ToLower, Enum and Var.
12433 (mtune=): Use ToLower and Enum.
12434 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
12435
12436 2011-05-08 Jan Hubicka <jh@suse.cz>
12437
12438 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
12439 Arrange type pairs to be UID ordered.
12440 (gimple_lookup_type_leader): Make inline.
12441
12442 2011-05-09 Nick Clifton <nickc@redhat.com>
12443
12444 PR target/48899
12445 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
12446 PROCESSOR_DEFAULT.
12447
12448 PR target/48897
12449 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
12450 variable 's'.
12451
12452 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
12453
12454 * combine.c (simplify_comparison): Abstract out parts into...
12455 (simplify_compare_const): ... new function.
12456 (try_combine): Generalize parallel arithmetic/compare combining
12457 to call simplify_compare_const() and CANONICALIZE_COMPARE().
12458
12459 2011-05-08 Jan Hubicka <jh@suse.cz>
12460
12461 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
12462 (cgraph_create_virtual_clone): Call hooks once virtual clone
12463 is finished.
12464 * cgraph.h (cgraph_clone_node): Update prototype.
12465 * ipa-cp.c (ipcp_estimate_growth): Use
12466 estimate_ipcp_clone_size_and_time.
12467 * ipa-inline-transform.c (clone_inlined_nodes): Update.
12468 * lto-cgraph.c (input_node): Update.
12469 * ipa-inline.c (recursive_inlining): Update.
12470 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
12471 (evaluate_conditions_for_known_args): Break out from ...
12472 (evaluate_conditions_for_edge): ... here.
12473 (evaluate_conditions_for_ipcp_clone): New function.
12474 (inline_node_duplication_hook): Update clone summary based
12475 on parameter map.
12476 (estimate_callee_size_and_time): Rename to ...
12477 (estimate_node_size_and_time): take NODE instead of EDGE;
12478 take POSSIBLE_TRUTHS as argument.
12479 (estimate_callee_size_and_time): Update.
12480 (estimate_ipcp_clone_size_and_time): New function.
12481 (do_estimate_edge_time): Update.
12482
12483 2011-05-08 Richard Guenther <rguenther@suse.de>
12484
12485 PR middle-end/48908
12486 PR middle-end/48905
12487 * expmed.c (expand_shift_1): Compute adjusted constant shift
12488 amount manually.
12489
12490 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
12491
12492 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
12493
12494 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
12495
12496 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
12497
12498 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
12499
12500 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
12501
12502 2011-05-07 Jan Hubicka <jh@suse.cz>
12503
12504 * ipa-inline-transform.c (inline_call): Account when program size
12505 decreases.
12506 * ipa-inline.c (relative_time_benefit): New function.
12507 (edge_badness): Reorganize to be power 2 based; fix thinko when
12508 computing badness for negative growth; update comments to match
12509 reality; better dumps.
12510
12511 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
12512
12513 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
12514 type to bool and adjust comment.
12515 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
12516 (fold_mathfn_compare): Remove calls to global_bindings_p.
12517 (fold_inf_compare): Likewise.
12518 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
12519 * c-tree.h (global_bindings_p): Adjust prototype.
12520 * c-decl.c (global_bindings_p): Return bool and simplify.
12521
12522 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
12523
12524 PR tree-optimization/48837
12525 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
12526 when accumulator transformation is performed.
12527
12528 2011-05-06 Jan Hubicka <jh@suse.cz>
12529
12530 * i386.h (ix86_tune_indices): Add
12531 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
12532 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
12533 * i386.c (initial_ix86_tune_features): Add
12534 X86_SOFTARE_PREFETCHING_BENEFICIAL.
12535 (software_prefetching_beneficial_p): Remove predicate.
12536 (ix86_option_override_internal): Use new macro.
12537
12538 2011-05-06 Jan Hubicka <jh@suse.cz>
12539
12540 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
12541
12542 2011-05-06 Jan Hubicka <jh@suse.cz>
12543
12544 * cgraph.c (cgraph_add_thunk): Create real function node instead
12545 of alias node; finalize it and mark needed/reachale; arrange visibility
12546 to be right and add it into the corresponding same comdat group list.
12547 (dump_cgraph_node): Dump thunks.
12548 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
12549 cgraph_function_with_gimple_body_p,
12550 cgraph_first_function_with_gimple_body,
12551 cgraph_next_function_with_gimple_body): New functions.
12552 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
12553 New macros.
12554 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
12555 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
12556 * cgraphunit.c (cgraph_finalize_function): Only look into possible
12557 devirtualization when optimizing.
12558 (verify_cgraph_node): Verify thunks.
12559 (cgraph_analyze_function): Analyze thunks.
12560 (cgraph_mark_functions_to_output): Output thunks only in combination
12561 with function they are assigned to.
12562 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
12563 alias into normal node.
12564 (assemble_thunks): New functoin.
12565 (cgraph_expand_function): Use it.
12566 * lto-cgraph.c (lto_output_node): Stream thunks.
12567 (input_overwrite_node): Stream in thunks.
12568 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
12569 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
12570 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
12571 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
12572 (inline_analyze_function): Do not care about thunk jump functions.
12573 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
12574 * ipa-prop.c (ipa_prop_write_jump_functions): Use
12575 cgraph_function_with_gimple_body_p.
12576 * passes.c (do_per_function_toporder): Use
12577 cgraph_function_with_gimple_body_p.
12578 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
12579 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
12580 (function_called_by_processed_nodes_p): Likewise.
12581
12582 2011-05-06 Joseph Myers <joseph@codesourcery.com>
12583
12584 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
12585 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
12586 entries.
12587 (mabi=): Replace with separate entries for mabi=altivec,
12588 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
12589 mabi=ieeelongdouble and mabi=ibmlongdouble.
12590 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
12591 check for -mabi=spe without SPE ABI support here.
12592 (rs6000_handle_option): Replace OPT_mabi_ handling with
12593 OPT_mabi_altivec and OPT_mabi_spe handling.
12594
12595 2011-05-06 Cary Coutant <ccoutant@google.com>
12596
12597 * dwarf2out.c (contains_subprogram_definition): New function.
12598 (should_move_die_to_comdat): Call it.
12599
12600 2011-05-06 Jeff Law <law@redhat.com>
12601
12602 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
12603 remove_ctrl_stmt_and_useless_edges.
12604 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
12605 (fixup_template_block, thread_single_edge): Likewise.
12606 (mark_threaded_blocks): Use THREAD_TARGET.
12607
12608 2011-05-06 Alan Modra <amodra@gmail.com>
12609
12610 PR target/48900
12611 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
12612 const0_rtx as the arg to the dummy __tls_get_addr libcall.
12613
12614 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
12615
12616 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
12617 constraint modifier to "r".
12618
12619 2011-05-06 Joseph Myers <joseph@codesourcery.com>
12620
12621 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
12622 fall through for OPT_mcmodel_.
12623
12624 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12625
12626 * config/s390/s390.c (s390_asm_trampoline_template): Comment
12627 instruction sizes.
12628 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
12629
12630 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
12631
12632 PR target/47930
12633 * config/arm/arm.opt (marm): Document it.
12634 (mthumb): Reject negative variant.
12635
12636 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
12637
12638 PR target/48898
12639 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
12640 Fix typo in "ccvt" variable name.
12641
12642 2011-05-06 Tristan Gingold <gingold@adacore.com>
12643
12644 PR target/48895
12645 * config/vms/vms-ar.c (main): Remove cwd variable.
12646
12647 2011-05-06 Jakub Jelinek <jakub@redhat.com>
12648
12649 PR debug/48902
12650 * var-tracking.c (prepare_call_arguments): Move else before #endif.
12651
12652 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
12653
12654 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
12655 * gimplify.c (gimplify_switch_expr): Likewise.
12656 * omp-low.c (expand_omp_sections): Likewise.
12657 * tree-eh.c (lower_try_finally_switch): Likewise.
12658 (lower_eh_dispatch): Likewise.
12659 * tree.h (build_case_label): Declare.
12660 * tree.c (build_case_label): Define.
12661
12662 2011-05-05 Jason Merrill <jason@redhat.com>
12663
12664 PR c++/40975
12665 * tree-inline.c (copy_tree_r): Use copy_statement_list.
12666 (copy_statement_list): Don't recurse.
12667 * stor-layout.c (copy_self_referential_tree_r): Don't allow
12668 STATEMENT_LIST.
12669
12670 2011-05-05 Joseph Myers <joseph@codesourcery.com>
12671
12672 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
12673 through from -mfpu= handling.
12674 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
12675
12676 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
12677
12678 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
12679 POST_MODIFY.
12680
12681 2011-05-05 Steve Ellcey <sje@cup.hp.com>
12682
12683 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
12684 for 11.31.
12685 (hppa[12]*-*-hpux11*): Ditto.
12686 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
12687 * config/ia64/hpux-unix2003.h: New.
12688 * config/pa/pa-hpux1131.opt: New.
12689 * config/pa/pa-hpux1131.h: New.
12690 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
12691 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
12692 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
12693
12694 2011-05-05 Jakub Jelinek <jakub@redhat.com>
12695
12696 PR debug/48853
12697 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
12698 instead of mode as 3rd argument to recursive call.
12699 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
12700 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
12701 VOIDmode.
12702 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
12703 don't give up if mode is Pmode and mem_mode is not VOIDmode.
12704 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
12705 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
12706
12707 2011-05-05 Julian Brown <julian@codesourcery.com>
12708
12709 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
12710 parenthesis in D-register case.
12711
12712 2011-05-05 Joseph Myers <joseph@codesourcery.com>
12713
12714 * opt-functions.awk (var_type_struct): Handle Enum options.
12715 * optc-gen.awk: Don't check range of variables of character type.
12716 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
12717 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
12718 rs6000_sdata_name, rs6000_explicit_options): Remove.
12719 (rs6000_option_override_internal): Check for -malign-power here.
12720 Use global_options_set instead of rs6000_explicit_options.
12721 (rs6000_parse_fpu_option): Remove.
12722 (rs6000_handle_option): Access variables via opts and opts_set
12723 pointers. Use error_at and warning_at. Add fall-through
12724 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
12725 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
12726 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
12727 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
12728 here. Don't use rs6000_parse_fpu_option.
12729 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
12730 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
12731 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
12732 (mrecip=): Use Var.
12733 (mspe): Use Var and Save.
12734 (mtraceback=): Use Enum and Var.
12735 (rs6000_traceback_type): New Enum and EnumValue entries.
12736 (mfloat-gprs=): Use Enum, Var and Save.
12737 (rs6000_float_gprs): New Enum and EnumValue entries.
12738 (mlong-double-): use Var and Save.
12739 (msched-costly-dep=, minsert-sched-nops=): Use Var.
12740 (malign-): Use Enum and Var.
12741 (rs6000_alignment_flags): New Enum and EnumValue entries.
12742 (mfpu=): Use Enum.
12743 (fpu_type_t): New Enum and EnumValue entries.
12744 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12745 global_options_set instead of rs6000_explicit_options.
12746 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12747 global_options_set instead of rs6000_explicit_options.
12748 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12749 global_options_set instead of rs6000_explicit_options.
12750 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
12751 global_options_set instead of rs6000_explicit_options.
12752 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
12753 global_options_set instead of rs6000_explicit_options.
12754 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12755 global_options_set instead of rs6000_explicit_options.
12756 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
12757 definition.
12758 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12759 global_options_set instead of rs6000_explicit_options.
12760 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
12761 (rs6000_cmodel): New Enum and EnumValue entries.
12762 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
12763 global_options_set instead of rs6000_explicit_options.
12764 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
12765 (mtls-size=): Use Enum and Var.
12766 (rs6000_tls_size): New Enum and EnumValue entries.
12767
12768 2011-05-05 Michael Matz <matz@suse.de>
12769
12770 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
12771 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
12772 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
12773 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
12774 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
12775 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
12776 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
12777 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
12778 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
12779 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
12780 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
12781 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
12782 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
12783 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
12784 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
12785 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
12786
12787 2011-05-05 Richard Guenther <rguenther@suse.de>
12788
12789 * expmed.c (expand_variable_shift): Rename to ...
12790 (expand_shift_1): ... this. Take an expanded shift amount.
12791 For rotates recurse directly not building trees for the shift amount.
12792 (expand_variable_shift): Wrap around expand_shift_1.
12793 (expand_shift): Adjust.
12794
12795 2011-05-05 Jakub Jelinek <jakub@redhat.com>
12796
12797 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
12798
12799 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
12800
12801 * tree.h (get_pending_sizes): Remove prototype.
12802 (put_pending_size): Likewise.
12803 (put_pending_sizes): Likewise.
12804 * stor-layout.c (pending_sizes): Delete.
12805 (get_pending_sizes): Likewise.
12806 (put_pending_size): Likewise.
12807 (put_pending_sizes): Likewise.
12808 (variable_size): Do not call put_pending_size and tidy up.
12809 * function.h (struct function): Remove dont_save_pending_sizes_p.
12810 * lto-streamer-in.c (input_function): Do not stream it.
12811 * lto-streamer-out.c (output_function): Likewise.
12812 * tree-inline.c (initialize_cfun): Do not copy it.
12813 * c-decl.c (store_parm_decls): Do not set it.
12814 * omp-low.c (create_task_copyfn): Likewise.
12815 * tree-optimize.c (tree_rest_of_compilation): Likewise.
12816
12817 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
12818
12819 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
12820 conditions.
12821 (*movdf_internal): Ditto.
12822 (*movdf_internal_nointeger): Ditto.
12823 (*movsf_internal): Ditto.
12824
12825 2011-05-05 Joseph Myers <joseph@codesourcery.com>
12826
12827 * c-decl.c (finish_decl): Don't call get_pending_sizes.
12828 (grokparm): Add parameter expr. Pass it to grokdeclarator.
12829 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
12830 (c_variable_size): Remove.
12831 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
12832 call put_pending_sizes.
12833 (get_parm_info): Add parameter expr. Use it to set
12834 arg_info->pending_sizes.
12835 (store_parm_decls): Use arg_info->pending_sizes instead or calling
12836 get_pending_sizes.
12837 * c-parser.c (c_parser_parms_declarator): Update call to
12838 c_parser_parms_list_declarator.
12839 (c_parser_parms_list_declarator): Take parameter expr. Update
12840 call to push_parm_decl. Update recursive call. Don't call
12841 get_pending_sizes. Update calls to get_parm_info.
12842 (c_parser_objc_method_definition): Update calls to
12843 c_parser_objc_method_decl and objc_start_method_definition.
12844 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
12845 (c_parser_objc_method_decl): Add parameter expr. Update call to
12846 grokparm.
12847 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
12848 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
12849 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
12850
12851 2011-05-05 Michael Hope <michael.hope@linaro.org>
12852
12853 PR pch/45979
12854 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
12855 __ARM_EABI__ hosts.
12856
12857 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12858
12859 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
12860 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
12861 (spu_output_mi_thunk): New function.
12862
12863 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12864
12865 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
12866 targetm.asm_out.print_operand.
12867 * config/sol2.c: Include target.h.
12868
12869 2011-05-04 Jan Hubicka <jh@suse.cz>
12870
12871 * ipa-inline.c (reset_edge_caches): New function.
12872 (update_caller_keys): Add check_inlinablity_for; do not
12873 reset edge caches; remove now unnecesary loop.
12874 (update_callee_keys): Add comments; reset node_growth_cache of callee.
12875 (update_all_callee_keys): Likewise.
12876 (inline_small_functions): Sanity check cache; update code
12877 recomputing it.
12878
12879 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
12880
12881 PR rtl-optimization/47612
12882 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
12883 as the last insn of the sequence to be moved.
12884
12885 2011-05-04 Tobias Burnus <burnus@net-b.de>
12886
12887 PR fortran/48864
12888 * doc/invoke.texi (Ofast): Document that it
12889 enables Fortran's -fno-protect-parens.
12890
12891 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
12892
12893 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
12894
12895 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
12896
12897 * stor-layout.c (variable_size): Do not issue errors.
12898
12899 2011-05-04 Richard Guenther <rguenther@suse.de>
12900
12901 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
12902 for array-ref indices.
12903 (tree_coverage_counter_addr): Likewise.
12904 (build_fn_info_type): Use size_int for index types.
12905 (build_gcov_info): Likewise.
12906
12907 2011-05-04 Richard Guenther <rguenther@suse.de>
12908
12909 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
12910 to build_int_cst.
12911 * c-typeck.c (really_start_incremental_init): Use bitsize_int
12912 for constructor indices.
12913 (push_init_level): Likewise.
12914
12915 2011-05-04 Richard Guenther <rguenther@suse.de>
12916
12917 * explow.c (promote_mode): Move variable declarations before code.
12918
12919 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
12920
12921 * tree.h (build_function_type_array): Declare.
12922 (build_varargs_function_type_array): Declare.
12923 (build_function_type_vec, build_varargs_function_type_vec): Define.
12924 * tree.c (build_function_type_array_1): New function.
12925 (build_function_type_array): New function.
12926 (build_varargs_function_type_array): New function.
12927
12928 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
12929
12930 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
12931 before setting STMT_VINFO_TYPE.
12932
12933 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12934
12935 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
12936 instead of spu_pass_by_reference.
12937
12938 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12939
12940 * calls.c (emit_library_call_value_1): Invoke
12941 promote_function_mode hook on libcall arguments.
12942 * explow.c (promote_function_mode, promote_mode): Handle TYPE
12943 argument being NULL.
12944 * targhooks.c (default_promote_function_mode): Lisewise.
12945 * config/s390/s390.c (s390_promote_function_mode): Likewise.
12946 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
12947
12948 * doc/tm.texi: Document that TYPE argument might be NULL.
12949
12950 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
12951
12952 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
12953
12954 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
12955
12956 From Bernd Schmidt
12957 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
12958
12959 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12960
12961 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
12962 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
12963 Move ...
12964 * mips-tfile.c: ... here.
12965 Don't include coretypes.h, tm.h, filenames.h.
12966 (saber_stop): Remove definition and all calls.
12967 [__SABER__]: Remove.
12968 (__LINE__): Remove default.
12969 (Size_t, Ptrdiff_t): Remove definitions.
12970 Replace by size_t, ptrdiff_t.
12971 [!MIPS_DEBUGGING_INFO]: Remove.
12972 (SHASH_SIZE, THASH_SIZE): Remove defaults.
12973 (progname): Add const.
12974 (STATIC): Remove.
12975 Replace all uses by static.
12976 (ALIGN_SYMTABLE_OFFSET): Remove default.
12977 * mips-tdump.c: Don't include coretypes.h, tm.h.
12978 Remove !MIPS_IS_STAB guard.
12979 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
12980 $(TM_H), filenames.h dependencies.
12981 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
12982
12983 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
12984
12985 From Jie Zhang
12986 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
12987 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
12988
12989 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
12990
12991 From Bernd Schmidt
12992 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
12993 account and save/restore RETS.
12994 (PROFILE_BEFORE_PROLOGUE): Define.
12995 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
12996 the push insn to use predecrement.
12997
12998 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
12999
13000 From Jie Zhang
13001 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
13002
13003 2011-05-04 Nick Clifton <nickc@redhat.com>
13004
13005 * config/mn10300/mn10300.c: Include cfgloop.h.
13006 (DUMP): New macro.
13007 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
13008 Lcc or a FLcc insn into the instruction stream.
13009 (mn10300_block_contains_call): New function. Returns true if the
13010 given basic block contains a CALL insn.
13011 (mn10300_loop_contains_call_insn): New function. Returns true if
13012 the given loop contains a CALL insn.
13013 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
13014 to use the SETLB and Lcc or FLcc insns.
13015 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
13016 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
13017 * config/mn10300/mn10300.opt (msetlb): New option. Used to
13018 disable the SETLB optimization.
13019 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
13020 __SETLB__ or __NO_SETLB__.
13021 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
13022 (movsf_internal): Handle MDR register.
13023 (cmpsi): Make visible.
13024 (setlb): New pattern.
13025 (Lcc): New pattern.
13026 (FLcc): New pattern.
13027
13028 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
13029
13030 PR target/48860
13031 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
13032 for reg<->xmm moves.
13033 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
13034 (vec_concatv2di_rex64_sse): Ditto.
13035 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
13036 (*vec_extractv2di_1_rex64): Ditto.
13037
13038 Revert:
13039 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
13040
13041 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
13042 reg<->xmm moves.
13043 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
13044
13045 2011-05-04 Richard Guenther <rguenther@suse.de>
13046
13047 * tree.h (int_const_binop): Remove notrunc argument.
13048 * fold-const.c (int_const_binop): Remove notrunc argument. Always
13049 create integer constants that are properly truncated.
13050 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
13051 (const_binop): Remove zero notrunc argument to int_const_binop.
13052 (size_binop_loc): Likewise.
13053 (fold_div_compare): Likewise.
13054 (maybe_canonicalize_comparison_1): Likewise.
13055 (fold_comparison): Likewise.
13056 (fold_binary_loc): Likewise.
13057 (multiple_of_p): Likewise.
13058 * expr.c (store_constructor): Likewise.
13059 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
13060 (maybe_fold_stmt_addition): Likewise.
13061 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
13062 * stor-layout.c (layout_type): Likewise.
13063 * tree-data-ref.c (tree_fold_divides_p): Likewise.
13064 * tree-sra.c (build_ref_for_offset): Likewise.
13065 (build_user_friendly_ref_for_offset): Likewise.
13066 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
13067 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
13068 * tree-ssa-loop-niter.c (inverse): Likewise.
13069 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
13070 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
13071 * tree-switch-conversion.c (check_range): Likewise.
13072 (build_constructors): Likewise.
13073 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
13074 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
13075 (extract_range_from_assert): Likewise.
13076 (vrp_int_const_binop): Likewise.
13077 (extract_range_from_binary_expr): Likewise.
13078 (extract_range_from_unary_expr): Likewise.
13079 (check_array_ref): Likewise.
13080 (find_case_label_range): Likewise.
13081 (simplify_div_or_mod_using_ranges): Likewise.
13082 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
13083 comparing case labels for merging.
13084
13085 2011-05-03 Mark Wielaard <mjw@redhat.com>
13086
13087 * dwarf2out.c (debug_str_hash_forced): Removed.
13088 (gen_label_for_indirect_string): Removed.
13089 (get_debug_string_label): Removed.
13090 (AT_string_form): Generate label directly.
13091 (output_indirect_string): Test indirect_string_node for
13092 DW_FORM_strp instead of checking label and refcount.
13093 (prune_indirect_string): Removed.
13094 (prune_unused_types): Don't check debug_str_hash_forced or
13095 call prune_indirect_string.
13096
13097 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
13098
13099 PR other/48093
13100 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
13101
13102 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
13103
13104 PR debug/47994
13105 PR debug/47919
13106 * combine.c (try_combine): Skip debug insns at m_split tests.
13107
13108 2011-04-26 Mark Wielaard <mjw@redhat.com>
13109
13110 PR42288
13111 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
13112 when info_section_emitted.
13113
13114 2011-05-03 Joseph Myers <joseph@codesourcery.com>
13115
13116 * config/mips/mips-opts.h: New.
13117 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
13118 to mips-opts.h.
13119 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
13120 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
13121 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
13122 via opts pointer.
13123 * config/mips/mips.h (enum mips_code_readable_setting): Move to
13124 mips-opts.h.
13125 (mips_abi, mips_code_readable): Don't declare.
13126 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
13127 (mabi=): Use Enum and Var.
13128 (mips_abi): New Enum and EnumValue entries.
13129 (mcode-readable=): Use Enum and Var.
13130 (mips_code_readable_setting): New Enum and EnumValue entries.
13131 (mr10k-cache-barrier=): Use Enum and Var.
13132 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
13133
13134 2011-05-03 Jan Hubicka <jh@suse.cz>
13135
13136 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
13137 replace hash by pointer map.
13138 (cgraph_node_set_element_def, cgraph_node_set_element,
13139 const_cgraph_node_set_element, varpool_node_set_element_def,
13140 varpool_node_set_element, const_varpool_node_set_element): Remove.
13141 (free_cgraph_node_set, free_varpool_node_set): New function.
13142 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
13143 * tree-emutls.c: Free varpool node set.
13144 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
13145 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
13146 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
13147 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
13148 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
13149 Move here from ipa.c; implement using pointer_map
13150 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
13151 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
13152 debug_cgraph_node_set, varpool_node_set_new,
13153 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
13154 dump_varpool_node_set, debug_varpool_node_set):
13155 Move to ipa-uitls.c.
13156 * passes.c (ipa_write_summaries): Update.
13157
13158 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13159
13160 From Mike Frysinger:
13161 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
13162 bf542/bf544/bf547/bf548/bf549.
13163
13164 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
13165
13166 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
13167
13168 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13169
13170 From Bernd Schmidt:
13171 * config/bfin/bfin.md (MOVCC): New mode_macro.
13172 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
13173 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
13174 comments from generated assembly.
13175
13176 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13177
13178 From Bernd Schmidt
13179 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
13180 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
13181 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
13182 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
13183 * config/bfin/lib1funcs.asm (___muldi3): New function.
13184
13185 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13186
13187 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
13188 build_function_type_list instead of build_function_type.
13189 Rearrange initialization of `args' to do so.
13190
13191 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13192
13193 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
13194 instead of build_function_type.
13195
13196 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13197
13198 * config/rs6000/rs6000.c (spe_init_builtins): Call
13199 build_function_type_list instead of build_function_type.
13200 (paired_init_builtins, altivec_init_builtins): Likewise.
13201 (builtin_function_type): Likewise.
13202
13203 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13204
13205 * config/sh/sh.c (sh_media_init_builtins): Call
13206 build_function_type_list instead of build_function_type.
13207
13208 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13209
13210 * config/sparc/sparc.c (sparc_file_end): Call
13211 build_function_type_list instead of build_function_type.
13212
13213 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13214
13215 * config/alpha/alpha.c (alpha_init_builtins): Call
13216 build_function_type_list instead of build_function_type.
13217
13218 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13219
13220 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
13221 build_function_type_list instead of build_function_type.
13222
13223 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13224
13225 * config/iq2000/i2000.c (iq2000_init_builtins): Call
13226 build_function_type_list instead of build_function_type.
13227 Delete `endlink' variable.
13228
13229 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13230
13231 * config/avr/avr.c (avr_init_builtins): Call
13232 build_function_type_list instead of build_function_type.
13233
13234 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13235
13236 * config/picochip/picochip.c (picochip_init_builtins): Call
13237 build_function_type_list instead of build_function_type.
13238 Delete `endlink' variable.
13239
13240 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
13241
13242 * config/bfin/bfin.c (bfin_init_builtins): Call
13243 build_function_type_list instead of build_function_type.
13244
13245 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13246
13247 From Bernd Schmidt
13248 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
13249 that's not CONST_INT. Seemingly redundant check is due to PR39768.
13250
13251 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13252
13253 From Jie Zhang:
13254 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
13255 libbffastfp overrides libgcc when -mfast-fp.
13256
13257 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13258
13259 Originally from Bernd Schmidt
13260 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
13261 * config/bfin/bfin.c (override_options): Test it and error if
13262 TARGET_FDPIC.
13263
13264 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
13265
13266 Originally From Bernd Schmidt
13267 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
13268 FD-PIC.
13269
13270 2011-05-03 Jeff Law <law@redhat.com>
13271
13272 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
13273 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
13274 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
13275 than accessing AUX field directly. Free the AUX field before
13276 clearing it.
13277 (thread_block, thread_through_loop_header): Likewise.
13278 (thread_single_edge, mark_threaded_blocks): Likewise.
13279 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
13280 (register_jump_thread): Do not attempt to thread to a NULL edge.
13281
13282 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
13283
13284 * function.c (init_function_start): Call decide_function_section.
13285 * varasm.c (decide_function_section): New function.
13286 (assemble_start_function): When not using
13287 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
13288 or first_function_block_is_cold.
13289 * rtl.h (decide_function_section): Declare.
13290
13291 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
13292 Jakub Jelinek <jakub@redhat.com>
13293
13294 PR target/48774
13295 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
13296 only succeed if req_mode is the same as set_mode.
13297
13298 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
13299
13300 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
13301 * genemit.c (gen_exp): Handle RETURN.
13302 * emit-rtl.c (verify_rtx_sharing): Likewise.
13303 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
13304 * rtl.c (copy_rtx): RETURN is shared.
13305 * rtl.h (enum global_rtl_index): Add GR_RETURN.
13306 (ret_rtx): New.
13307 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
13308 * config/s390/s390.c (s390_emit_epilogue): Likewise.
13309 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
13310 * config/cris/cris.c (cris_expand_return): Likewise.
13311 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
13312 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
13313 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
13314 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
13315 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
13316 Likewise.
13317 * config/v850/v850.c (expand_epilogue): Likewise.
13318 * config/bfin/bfin.c (bfin_expand_call): Likewise.
13319 * config/arm/arm.md (epilogue): Likewise.
13320 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
13321 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
13322 variable to ret_reg.
13323
13324 2011-05-03 Richard Guenther <rguenther@suse.de>
13325
13326 PR lto/48846
13327 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
13328 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
13329 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
13330
13331 2011-05-03 Richard Guenther <rguenther@suse.de>
13332
13333 * c-decl.c (grokdeclarator): Instead of looking at
13334 TREE_OVERFLOW check if the constant fits in the index type.
13335
13336 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13337
13338 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
13339 (vec_store_lanes<mode><mode>): Likewise.
13340
13341 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13342
13343 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
13344 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
13345 convert_optab_index values.
13346 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
13347 * genopinit.c (optabs): Initialize the new optabs.
13348 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
13349 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
13350 (expand_STORE_LANES): New functions.
13351 * tree.h (build_array_type_nelts): Declare.
13352 * tree.c (build_array_type_nelts): New function.
13353 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
13354 (vect_model_load_cost): Likewise.
13355 (vect_store_lanes_supported, vect_load_lanes_supported)
13356 (vect_record_strided_load_vectors): Declare.
13357 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
13358 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
13359 (vect_transform_strided_load): Split out statement recording into...
13360 (vect_record_strided_load_vectors): ...this new function.
13361 * tree-vect-stmts.c (create_vector_array, read_vector_array)
13362 (write_vector_array, create_array_ref): New functions.
13363 (vect_model_store_cost): Add store_lanes_p argument.
13364 (vect_model_load_cost): Add load_lanes_p argument.
13365 (vectorizable_store): Try to use store-lanes functions for
13366 interleaved stores.
13367 (vectorizable_load): Likewise load-lanes and loads.
13368 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
13369 to vect_model_store_cost.
13370 (vect_build_slp_tree): Likewise vect_model_load_cost.
13371
13372 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
13373
13374 * hooks.h (hook_bool_mode_uhwi_false): Declare.
13375 * hooks.c (hook_bool_mode_uhwi_false): New function.
13376 * target.def (array_mode_supported_p): New hook.
13377 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
13378 * doc/tm.texi: Regenerate.
13379 * stor-layout.c (mode_for_array): New function.
13380 (layout_type): Use it.
13381 * config/arm/arm.c (arm_array_mode_supported_p): New function.
13382 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
13383
13384 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
13385
13386 PR target/48723
13387 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
13388 for -fstack-check if the size to allocate is negative.
13389
13390 2011-05-02 Lawrence Crowl <crowl@google.com>
13391
13392 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
13393 (timevar_cond_start): New for starting a timer only when it is not
13394 already running.
13395 (timevar_cond_stop): New for stopping a timer when it was not already
13396 running.
13397
13398 * timevar.c (timevar_stop): Enable start/stop timers to start again.
13399 (timevar_cond_start): New as above.
13400 (timevar_cond_stop): New as above.
13401
13402 * timevar.def: Add start/stop timers for compiler phases,
13403 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
13404 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
13405 and TV_PHASE_FINALIZE.
13406 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
13407 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
13408 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
13409 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
13410 Make unused TV_OVERLOAD into a start/stop timer.
13411
13412 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
13413 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
13414 to indicate that they are start/stop timers.
13415
13416 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
13417 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
13418 Move initialization to do_compile.
13419 (do_compile): Add initialization from above.
13420 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
13421
13422 * c-decl.c (c_write_global_declarations): Add start/stop of
13423 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
13424
13425 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
13426 or TV_PARSE_INLINE, as appropriate.
13427 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
13428 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
13429
13430 2011-05-02 Jason Merrill <jason@redhat.com>
13431
13432 PR c++/40975
13433 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
13434
13435 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
13436
13437 PR c/35445
13438 * c-decl.c (finish_decl): Only create a composite if the types are
13439 compatible.
13440
13441 2011-05-02 Joseph Myers <joseph@codesourcery.com>
13442
13443 * config/fr30/fr30-protos.h (Mmode): Don't define.
13444 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
13445 definition where used.
13446 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
13447 define. Expand definitions where used.
13448 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
13449 Expand definitions where used.
13450 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
13451 rx_function_arg, rx_function_arg_advance,
13452 rx_function_arg_boundary): Expand definitions of those macros.
13453 * config/v850/v850-protos.h (Mmode): Don't define. Expand
13454 definition where used.
13455
13456 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
13457
13458 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
13459 reg<->xmm moves.
13460 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
13461 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
13462 with *movv2sf_internal_rex64_avx.
13463 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
13464 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
13465 Use %v prefix in insn mnemonic to handle TARGET_AVX.
13466 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
13467 "vex" in "prefix" attribute calculation.
13468 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
13469
13470 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
13471
13472 PR target/47951
13473 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
13474 inputs match the output.
13475
13476 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
13477
13478 PR target/47955
13479 * config/m68k/m68k.c (m68k_expand_prologue): Set
13480 current_function_static_stack_size.
13481
13482 2011-05-02 Jan Hubicka <jh@suse.cz>
13483
13484 * lto-streamer.c (lto_streamer_cache_insert_1,
13485 lto_streamer_cache_lookup, lto_streamer_cache_create,
13486 lto_streamer_cache_delete): Use pointer map instead of hashtable.
13487 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
13488
13489 2011-05-02 Joseph Myers <joseph@codesourcery.com>
13490
13491 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
13492 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
13493 config/m68k/t-opts: New files.
13494 * config/m68k/m68k-tables.opt: New file (generated).
13495 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
13496 extra_options and m68k/t-opts to tmake_file.
13497 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
13498 (all_isas): Initialize using m68k-isas.def.
13499 (all_microarchs): Initialize using m68k-microarchs.def.
13500 (m68k_find_selection): Remove.
13501 (m68k_handle_option): Don't assert that global structures are in
13502 use. Use error_at. Access variables via opts pointer. Don't
13503 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
13504 directly for -m68020-40 and -m68020-60.
13505 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
13506 m68k_tune_entry here.
13507 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
13508 to m68k-opts.h.
13509 (m68k_library_id_string): Remove declaration.
13510 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
13511 (m68k_library_id_string): New Variable.
13512 (march=, mcpu=, mtune=): Use Enum and Var.
13513
13514 2011-05-02 Richard Guenther <rguenther@suse.de>
13515
13516 * varasm.c (output_constructor_regular_field): Compute zero-based
13517 index with double-ints. Make sure to ICE instead of producing
13518 wrong code.
13519 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
13520 in asserts. Properly use a signed type.
13521
13522 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
13523
13524 * config/i386/sse.md (V): New mode iterator.
13525 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
13526 TARGET_SSE2.
13527 (V_256): Rename from AVX256MODE.
13528 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
13529 condition to all users.
13530 (VF1): Ditto.
13531 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
13532 condition to all users.
13533 (VF_128): Make V4SF mode unconditional.
13534 (VF_256): Rename from AVX256MODEF2P.
13535 (VI4F_128): Rename from SSEMODE4S.
13536 (VI8F_128): Rename from SSEMODE2D.
13537 (VI4F_256): Rename from AVX256MODE8P.
13538 (VI8F_256): Rename from AVX256MODE4P.
13539 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
13540 (ssescalarmodesuffix): Remove SF and DF modes.
13541 (SSEMODE124): Remove.
13542 (SSEMODE1248): Ditto.
13543 (SSEMODEF2P): Ditto.
13544 (AVXMODEF2P): Ditto.
13545 (AVXMODEFDP): Ditto.
13546 (AVXMODEFSP): Ditto.
13547 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
13548 unconditional.
13549 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
13550 unconditional.
13551 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
13552 xop_pcmov_<mode>256. Use V mode iterator.
13553
13554 Adjust RTX patterns globally for renamed mode attributes.
13555
13556 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13557
13558 * haifa-sched.c (sched_emit_insn): Emit insn before first
13559 non-scheduled insn. Inform back-end about new insn. Add
13560 new insn to scheduled_insns list.
13561
13562 2011-05-02 Richard Guenther <rguenther@suse.de>
13563
13564 PR tree-optimization/48822
13565 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
13566 (process_scc): Indicate which iteration we start.
13567
13568 2011-05-02 Jan Hubicka <jh@suse.cz>
13569
13570 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
13571 (lto_section_overrun): New.
13572 * lto-section-out.c (append_block): Rename to ...
13573 (lto_append_block): ... this one; export.
13574 (lto_output_1_stream): Move lto lto-streamer.h
13575 (lto_output_data_stream): Update.
13576 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
13577 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
13578 functions.
13579
13580 2011-05-02 Richard Guenther <rguenther@suse.de>
13581
13582 * tree.c (tree_code_counts): New global array.
13583 (record_node_allocation_statistics): Count individual tree codes.
13584 (dump_tree_statistics): Dump individual code stats.
13585
13586 2011-05-01 Jan Hubicka <jh@suse.cz>
13587
13588 * ipa-inline.c (caller_growth_limits): Fix thinko when
13589 looking for largest stack frame.
13590 * ipa-inline.h (dump_inline_summary): Declare.
13591 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
13592 on stack usage.
13593 (dump_inline_summary): Export.
13594 (debug_inline_summary): Declare as DEBUG_FUNCTION.
13595
13596 2011-05-01 Anatoly Sokolov <aesok@post.ru>
13597
13598 * reginfo.c (memory_move_cost): Change rclass argument type form
13599 'enum reg_class' to reg_class_t.
13600 * reload.h (memory_move_cost): Update prototype.
13601 * postreload.c reload_cse_simplify_set): Change type dclass var to
13602 reg_class_t.
13603 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
13604 Update prototype.
13605 (ira_allocate_and_set_costs): Change aclass argument type form
13606 'enum reg_class' to reg_class_t.
13607 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
13608 Change aclass argument type to reg_class_t.
13609 (update_conflict_hard_reg_costs): Change type aclass and pref vars
13610 to reg_class_t.
13611 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
13612 memory_move_cost call.
13613
13614 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
13615 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
13616 Change type tmp var to reg_class_t.
13617
13618 2011-04-30 Jan Hubicka <jh@suse.cz>
13619
13620 * ipa-inline.c (can_inline_edge_p): Disregard limits when
13621 inlining into function with flatten attribute.
13622 (want_inline_small_function_p): Be more realistic about inlining
13623 cold calls where callee size grows.
13624
13625 2011-04-30 Jan Hubicka <jh@suse.cz>
13626
13627 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
13628 flags.
13629
13630 2011-04-30 Anatoly Sokolov <aesok@post.ru>
13631
13632 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
13633 PRINT_OPERAND_PUNCT_VALID_P): Remove.
13634 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
13635 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
13636 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
13637 (print_operand): Rename to...
13638 (sparc_print_operand): ...this. Make static. Adjust
13639 sparc_print_operand function call.
13640 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
13641 functions.
13642
13643 2011-04-30 Jan Hubicka <jh@suse.cz>
13644
13645 PR middle-end/48752
13646 * ipa-inline.c (early_inliner): Disable when doing late
13647 addition of function.
13648
13649 2011-04-30 Jakub Jelinek <jakub@redhat.com>
13650
13651 * dwarf2out.c (get_address_mode): New inline.
13652 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
13653 if not dwarf_strict emit
13654 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
13655 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
13656 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
13657 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
13658 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
13659 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
13660 mem_loc_descriptor callers.
13661 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
13662 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
13663 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
13664 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
13665 (base_types): New variable.
13666 (get_base_type_offset, calc_base_type_die_sizes,
13667 base_type_for_mode, mark_base_types, base_type_cmp,
13668 move_marked_base_types): New functions.
13669 (calc_die_sizes): Assert that die_offset is 0 or equal to
13670 next_die_offset.
13671 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
13672 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
13673 callers. If not dwarf_strict, call mem_loc_descriptor even for
13674 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
13675 (gen_subprogram_die): Don't give up on call site parameters
13676 with non-integral or large integral modes. Adjust
13677 mem_loc_descriptor callers.
13678 (prune_unused_types): Call prune_unused_types_mark on base_types
13679 vector entries.
13680 (resolve_addr): Call mark_base_types.
13681 (dwarf2out_finish): Call move_marked_base_types.
13682
13683 PR tree-optimization/48809
13684 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
13685 type.
13686 (gen_inbound_check): Don't compute index_expr - range_min in utype
13687 again, instead reuse SSA_NAME initialized in build_arrays.
13688 Remove two useless gsi_for_stmt calls.
13689
13690 2011-04-29 Jeff Law <law@redhat.com>
13691
13692 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
13693
13694 2011-04-29 Martin Jambor <mjambor@suse.cz>
13695
13696 * cgraph.h (cgraph_postorder): Remove declaration.
13697 * ipa-utils.h (ipa_free_postorder_info): Declare.
13698 (ipa_reverse_postorder): Likewise.
13699 * cgraphunit.c: Include ipa-utils.h.
13700 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
13701 * ipa-inline.c: Include ipa-utils.h.
13702 (ipa_inline): Update call to ipa_reverse_postorder.
13703 * ipa-pure-const.c (propagate_pure_const): Update call to
13704 ipa_reduced_postorder and ipa_print_order. Call
13705 ipa_free_postorder_info to clean up.
13706 (propagate_nothrow): Likewise.
13707 * ipa-reference.c (propagate): Removed a useless call to
13708 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
13709 and ipa_print_order. Call ipa_free_postorder_info to clean up.
13710 * ipa.c: Include ipa-utils.h.
13711 (ipa_profile): Update call to ipa_reverse_postorder.
13712 (cgraph_postorder): Moved to...
13713 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
13714 (ipa_utils_print_order): Renamed to ipa_print_order.
13715 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
13716 comments.
13717 (ipa_free_postorder_info): New function.
13718 * passes.c: Include ipa-utils.h.
13719 (do_per_function_toporder): Update call to ipa_reverse_postorder.
13720 (ipa_write_summaries): Likewise.
13721 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
13722 (cgraphunit.o): Likewise.
13723 (ipa.o): Likewise.
13724 (ipa-inline.o): Likewise.
13725
13726 2011-04-29 Jan Hubicka <jh@suse.cz>
13727
13728 * gcc.dg/tree-ssa/inline-10.c: New testcase.
13729 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
13730 * ipa-inline.h (clause_t): Turn into unsigned int.
13731 * ipa-inline-analysis.c (add_clause): Do more simplification.
13732 (and_predicates): Shortcut more cases.
13733 (predicates_equal_p): Move forward; check that clauses are properly
13734 ordered.
13735 (or_predicates): Shortcut more cases.
13736 (edge_execution_predicate): Rewrite as...
13737 (set_cond_stmt_execution_predicate): ... this function; handle
13738 __builtin_constant_p.
13739 (set_switch_stmt_execution_predicate): New .
13740 (compute_bb_predicates): New.
13741 (will_be_nonconstant_predicate): Update TODO.
13742 (estimate_function_body_sizes): Use compute_bb_predicates
13743 and free them later, always try to estimate if stmt is constant.
13744 (estimate_time_after_inlining, estimate_size_after_inlining):
13745 Gracefully handle optimized out edges.
13746 (read_predicate): Fix off by one error.
13747
13748 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
13749
13750 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
13751
13752 2011-04-27 Xinliang David Li <davidxl@google.com>
13753
13754 * tree-profile.c (init_ic_make_global_vars): Set
13755 tls attribute on ic vars.
13756 * coverage.c (coverage_end_function): Initialize
13757 function_list with zero.
13758
13759 2011-04-29 Richard Guenther <rguenther@suse.de>
13760
13761 * builtins.c (fold_builtin_classify_type): Use integer_type_node
13762 for the type of the result.
13763 (fold_builtin_isascii): Likewise.
13764 (fold_builtin_toascii): Use integer_type_node where appropriate.
13765 (fold_builtin_logb): Likewise.
13766 (fold_builtin_frexp): Likewise.
13767 (fold_builtin_strstr): Likewise.
13768 (fold_builtin_strpbrk): Likewise.
13769 (fold_builtin_fputs): Likewise.
13770 (fold_builtin_sprintf): Likewise.
13771 (fold_builtin_snprintf): Likewise.
13772 (fold_builtin_printf): Likewise.
13773 (do_mpfr_remquo): Use a proper type for the assigned constant.
13774 (do_mpfr_lgamma_r): Likewise.
13775 * dwarf2out.c (resolve_one_addr): Use size_int.
13776 * except.c (init_eh): Likewise.
13777 (assign_filter_values): Use integer_type_node for filter values.
13778 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
13779 indices.
13780 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
13781 for EH region numbers.
13782 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
13783 for the shift amount.
13784
13785 2011-04-29 Richard Guenther <rguenther@suse.de>
13786
13787 * expr.h (expand_shift): Rename to ...
13788 (expand_variable_shift): ... this.
13789 (expand_shift): Take a constant shift amount.
13790 * expmed.c (expand_shift): Rename to ...
13791 (expand_variable_shift): ... this.
13792 (expand_shift): New wrapper around expand_variable_shift.
13793 * expr.c (convert_move, emit_group_load_1, emit_group_store,
13794 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
13795 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
13796 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
13797 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
13798 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
13799 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
13800 emit_store_flag_1, emit_store_flag): Likewise.
13801 * builtins.c (expand_builtin_signbit): Likewise.
13802 * calls.c (load_register_parameters): Likewise.
13803 * function.c (assign_parm_setup_block): Likewise.
13804 * lower-subreg.c (resolve_shift_zext): Likewise.
13805 * optabs.c (widen_bswap, expand_abs_nojump,
13806 expand_one_cmpl_abs_nojump, expand_float): Likewise.
13807 * spu/spu.c (spu_expand_extv): Likewise.
13808 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
13809
13810 2011-04-29 Richard Guenther <rguenther@suse.de>
13811
13812 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
13813 for the remapped region number.
13814 * predict.c (build_predict_expr): Use integer_type_node for the
13815 predict kind.
13816 * fold-const.c (fold_binary_loc): Use integer_type_node for
13817 the shift amount. Use a proper type for the PLUS_EXPR operand.
13818
13819 2011-04-29 Michael Matz <matz@suse.de>
13820
13821 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
13822 other trees that just builtins.
13823 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
13824
13825 2011-04-29 Richard Guenther <rguenther@suse.de>
13826
13827 * tree-nested.c (get_trampoline_type): Use size_int.
13828 (get_nl_goto_field): Likewise.
13829 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
13830 for all indexes.
13831 (lower_eh_constructs_2): Likewise.
13832 (lower_resx): Likewise.
13833 (lower_eh_dispatch): Likewise.
13834 * tree-mudflap.c (mf_build_string): Use size_int.
13835 (mudflap_register_call): Use integer_type_node for the flag.
13836 (mudflap_enqueue_constant): Use size_int.
13837 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
13838 instead of rebuilding it.
13839
13840 2011-04-29 Richard Guenther <rguenther@suse.de>
13841
13842 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
13843 Handle OBJ_TYPE_REF.
13844 (find_func_aliases_for_call): Use it more consistently.
13845
13846 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
13847
13848 * haifa-sched.c (last_nondebug_scheduled_insn): New.
13849 (rank_for_schedule): Use it.
13850 (schedule_block): Set it.
13851
13852 2011-04-28 David Li <davidxl@google.com>
13853
13854 * tree.c (crc32_string): Use crc32_byte.
13855 (crc32_byte): New function.
13856 * tree.h (crc32_byte): New function.
13857 * gcov.c (read_graph_file): Handle new cfg_cksum.
13858 (read_count_file): Ditto.
13859 * profile.c (instrument_values): Ditto.
13860 (get_exec_counts): Ditto.
13861 (read_profile_edge_counts): Ditto.
13862 (compute_branch_probabilities): Ditto.
13863 (compute_value_histograms): Ditto.
13864 (branch_prob): Ditto.
13865 (end_branch_prob): Ditto.
13866 * coverage.c (read_counts_file): Ditto.
13867 (get_coverage_counts): Ditto.
13868 (tree_coverage_counter_addr): Ditto.
13869 (coverage_checksum_string): Ditto.
13870 (coverage_begin_output): Ditto.
13871 (coverage_end_function): Ditto.
13872 (build_fn_info_type): Ditto.
13873 (build_fn_info_value): Ditto.
13874 * libgcov.c (gcov_exit): Ditto.
13875 * gcov-dump.c (tag_function): Ditto.
13876 (compute_checksum): Remove.
13877
13878 2011-04-29 Alan Modra <amodra@gmail.com>
13879
13880 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
13881 unspec plus offset. Tidy macho code.
13882
13883 2011-04-29 Martin Jambor <mjambor@suse.cz>
13884
13885 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
13886 node instead of a decl. Update all callers.
13887 * cgraph.h: Update declaration.
13888
13889 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
13890
13891 PR tree-optimization/48765
13892 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
13893 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
13894 to indicate if loop aware SLP is being used. Scan the statements
13895 and update the vectorization factor according to the type of
13896 vectorization before statement analysis.
13897 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
13898 pass it to vect_analyze_loop_operations.
13899 (vectorizable_reduction): Set number of copies to 1 in case of pure
13900 SLP statement.
13901 * tree-vect-stmts.c (vectorizable_conversion,
13902 vectorizable_assignment, vectorizable_shift,
13903 vectorizable_operation, vectorizable_type_demotion,
13904 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
13905 Likewise.
13906 (vectorizable_condition): Move the check that it is not SLP
13907 vectorization before the number of copies check.
13908 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
13909 to vectorize the loop using SLP.
13910
13911 2011-04-28 Jakub Jelinek <jakub@redhat.com>
13912
13913 PR middle-end/48597
13914 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
13915 inline asm.
13916
13917 2011-04-28 Joseph Myers <joseph@codesourcery.com>
13918
13919 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
13920 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
13921 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13922 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13923 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
13924 linux*.h headers.
13925 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
13926 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13927 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13928 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13929 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
13930 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
13931 REG_NAME.
13932 * config/i386/linux.h (REG_NAME): Don't define.
13933 * config/i386/linux64.h (REG_NAME): Don't define.
13934 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
13935 Undefine before defining.
13936
13937 2011-04-28 Jan Hubicka <jh@suse.cz>
13938
13939 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
13940 nonconstant_names array.
13941 (estimate_function_body_sizes): Build nonconstant_names array; handle
13942 BUILT_IN_CONSTANT_P.
13943
13944 2011-04-28 Richard Guenther <rguenther@suse.de>
13945
13946 PR bootstrap/48804
13947 Revert
13948 2011-04-28 Richard Guenther <rguenther@suse.de>
13949
13950 * tree-ssa-structalias.c (solve_constraints): Build succ graph
13951 as late as possible.
13952
13953 2011-04-28 Richard Guenther <rguenther@suse.de>
13954
13955 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
13956 (debug_constraint): Do it here.
13957 (dump_constraints): And here.
13958 (rewrite_constraints): And here.
13959 (dump_constraint_edge): Remove.
13960 (dump_constraint_graph): Rewrite to produce DOT output.
13961 (solve_constraints): Build succ graph as late as possible.
13962 Dump constraint graphs before and after solving.
13963
13964 2011-04-28 Richard Guenther <rguenther@suse.de>
13965
13966 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13967 New function split out from ...
13968 (find_func_aliases): ... here. Call it.
13969 (find_func_aliases_for_call): Likewise.
13970
13971 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
13972
13973 * internal-fn.h (internal_fn_name_array): Declare.
13974 (internal_fn_flags_array): Likewise.
13975
13976 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
13977
13978 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
13979 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
13980 Move from sse.md.
13981 (ssemodefsuffix): Remove.
13982 (ssevecmodesuffix): New mode attribute.
13983 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
13984 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
13985 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
13986 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
13987 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
13988 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
13989 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
13990 ssemodesuffix mode attribute.
13991 (float splitters): Use ssevecmodesuffix mode attribute.
13992 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
13993 (sseinsmode): Rename from avxvecmode.
13994 (avxsizesuffix): Rename from avxmodesuffix.
13995 (sseintvecmode): Rename from avxpermvecmode.
13996 (ssedoublevecmode): Rename from ssedoublesizemode.
13997 (ssehalfvecmode): Rename from avxhalfvecmode.
13998 (ssescalarmode): Rename from avxscalarmode.
13999 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
14000 templates for ssemodesuffix mode attribute.
14001 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
14002 mode attribute.
14003
14004 Adjust RTX patterns globally for renamed mode attributes.
14005
14006 2011-04-27 Jan Hubcika <jh@suse.cz>
14007
14008 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
14009 * ipa-inline-analysis.c: Include alloc-pool.h.
14010 (edge_predicate_pool): New.
14011 (trye_predicate_p): New function
14012 (false_predicate_p): New function.
14013 (add_clause): Sanity check that false clauses are "optimized";
14014 never add clauses to predicate that is already known to be false.
14015 (and_predicate): Use flase_predicate_p.
14016 (evaulate_predicate): Rename to ...
14017 (evaluate_predicate): ... this one; update all callers; assert
14018 that false is not listed among possible truths.
14019 (dump_predicate): Use true_predicate_p.
14020 (account_size_time): Use false_predicate_p.
14021 (evaulate_conditions_for_edge): Rename to ...
14022 (evaluate_conditions_for_edge) ... this one.
14023 (edge_set_predicate): New function.
14024 (inline_edge_duplication_hook): Duplicate edge predicates.
14025 (inline_edge_removal_hook): Free edge predicates.
14026 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
14027 (dump_inline_summary): Update.
14028 (estimate_function_body_sizes): Set edge predicates.
14029 (estimate_calls_size_and_time): Handle predicates.
14030 (estimate_callee_size_and_time): Update.
14031 (remap_predicate): Add toplev_predicate; update comment.
14032 (remap_edge_predicates): New function.
14033 (inline_merge_summary): Compute toplev predicate; update.
14034 (read_predicate): New function.
14035 (read_inline_edge_summary): Use it.
14036 (inline_read_section): Likewise.
14037 (write_predicate): New function.
14038 (write_inline_edge_summary): Use it.
14039 (inline_write_summary): Likewise.
14040 (inline_free_summary): Free alloc pool and edge summary vec.
14041
14042 2011-04-27 Richard Guenther <rguenther@suse.de>
14043
14044 * tree-ssa-structalias.c (changed_count): Remove.
14045 (changed): Use a bitmap.
14046 (unify_nodes): Adjust.
14047 (do_sd_constraint): Likewise.
14048 (do_ds_constraint): Likewise.
14049 (do_complex_constraint): Likewise.
14050 (solve_graph): Likewise.
14051
14052 2011-04-27 Jan Hubicka <jh@suse.cz>
14053
14054 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
14055
14056 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
14057
14058 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
14059 (avx_vperm2f128_*_operand): Ditto.
14060 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
14061 Use avx_vpermilp_parallel in insn condition.
14062 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
14063 Use avx_vperm2f128_parallel in insn condition.
14064
14065 2011-04-27 Richard Guenther <rguenther@suse.de>
14066
14067 * Makefile.in (tree-ssa-structalias.o): Remove
14068 gt-tree-ssa-structalias.h dependency.
14069 (GTFILES): Remove tree-ssa-structalias.c.
14070 * tree.c (allocate_decl_uid): New function.
14071 (make_node_stat): Use it.
14072 (copy_node_stat): Likewise.
14073 * tree.h (allocate_decl_uid): Declare.
14074 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
14075 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
14076 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
14077 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
14078 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
14079 (struct heapvar_map): Likewise.
14080 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
14081 heapvar_insert): Likewise.
14082 (make_heapvar_for): Rename to ...
14083 (make_heapvar): ... this. Simplify.
14084 (fake_var_decl_obstack): New global var.
14085 (build_fake_var_decl): New function.
14086 (make_constraint_from_heapvar): Adjust.
14087 (handle_lhs_call): Likewise.
14088 (create_function_info_for): Likewise.
14089 (intra_create_variable_infos): Likewise.
14090 (init_alias_vars): Allocate fake_var_decl_obstack.
14091 (init_alias_heapvars, delete_alias_heapvars): Remove.
14092 (compute_points_to_sets): Do not call init_alias_heapvars.
14093 (ipa_pta_execute): Likewise.
14094 (delete_points_to_sets): Free fake_var_decl_obstack.
14095
14096 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14097
14098 * config/spu/divmovti4.c (union qword_UTItype): New data type.
14099 (si_from_UTItype, si_to_UTItype): New functions.
14100 (__udivmodti4): Use them to implement type-punning.
14101 * config/spu/multi3.c (union qword_TItype): New data type.
14102 (si_from_TItype, si_to_TItype): New functions.
14103 (__multi3): Use them to implement type-punning.
14104
14105 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14106
14107 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
14108
14109 2011-04-27 Jan Hubicka <jh@suse.cz>
14110
14111 * ipa-prop.c (function_insertion_hook_holder): New holder.
14112 (ipa_add_new_function): New function.
14113 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
14114 Register/deregister holder.
14115
14116 2011-04-27 Richard Guenther <rguenther@suse.de>
14117
14118 PR tree-optimization/48772
14119 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
14120
14121 2011-04-27 Richard Guenther <rguenther@suse.de>
14122
14123 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
14124 TARGET_MEM_REF handling.
14125
14126 2011-04-27 Nick Clifton <nickc@redhat.com>
14127
14128 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
14129 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
14130 (REG_CLASS_NAMES): Likewise.
14131 (REG_CLASS_CONTENTS): Likewise.
14132 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
14133 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
14134 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
14135 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
14136 (EVEN_REGS): New macro. Alias for QUAD_REGS.
14137 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
14138 duplicate register classes.
14139 (frv_class_likely_spilled_p): Likewise.
14140 (frv_register_move_cost): Likewise.
14141
14142 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
14143 end of the regno_reg_class array.
14144
14145 2011-04-27 Jakub Jelinek <jakub@redhat.com>
14146
14147 PR c/48742
14148 * c-typeck.c (build_binary_op): Don't wrap arguments if
14149 int_operands is true.
14150
14151 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
14152
14153 PR target/48767
14154 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
14155 targetm.calls.must_pass_in_stack for void type.
14156
14157 2011-04-26 Jan Hubicka <jh@suse.cz>
14158
14159 * cgraphbuild.c (build_cgraph_edges): Update call
14160 of cgraph_create_edge and cgraph_create_indirect_edge.
14161 * cgraph.c (cgraph_create_edge_including_clones,
14162 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
14163 cgraph_update_edges_for_call_stmt_node): Do not take nest
14164 argument; do not initialize call_stmt_size/time.
14165 (dump_cgraph_node): Do not dump nest.
14166 (cgraph_clone_edge): Do not take loop_nest argument;
14167 do not propagate it; do not clone call_stmt_size/time.
14168 (cgraph_clone_node): Likewise.
14169 (cgraph_create_virtual_clone): Update.
14170 * cgraph.h (struct cgraph_edge): Remove
14171 call_stmt_size/call_stmt_time/loop_nest.
14172 (cgraph_create_edge, cgraph_create_indirect_edge,
14173 cgraph_create_edge_including_clones, cgraph_clone_node): Update
14174 prototype.
14175 * tree-emutls.c (gen_emutls_addr): Update.
14176 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
14177 loop_nest; handle indirect calls, too.
14178 (clone_inlined_nodes): Do not care about updating inline summaries.
14179 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
14180 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
14181 stream call_stmt_size/call_stmt_time/loop_nest.
14182 * ipa-inline.c (edge_badness): Update.
14183 (ipa_inline): dump summaries after inlining.
14184 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
14185 New.
14186 (inline_edge_summary): New function.
14187 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
14188 (inline_edge_removal_hook): Handle edge summaries.
14189 (inline_edge_duplication_hook): New hook.
14190 (inline_summary_alloc): Alloc hooks.
14191 (initialize_growth_caches): Do not register removal hooks.
14192 (free_growth_caches); Do not free removal hook.
14193 (dump_inline_edge_summary): New function.
14194 (dump_inline_summary): Use it.
14195 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
14196 (inline_update_callee_summaries): New function.
14197 (inline_merge_summary): Use it.
14198 (do_estimate_edge_time, do_estimate_edge_growth): Update.
14199 (read_inline_edge_summary): New function.
14200 (inline_read_section): Use it.
14201 (write_inline_edge_summary): New function.
14202 (inline_write_summary): Use it.
14203 (inline_free_summary): Free edge new holders.
14204 * tree-inline.c (copy_bb): Update.
14205
14206 2011-04-26 Jason Merrill <jason@redhat.com>
14207
14208 * tree-eh.c (lower_try_finally_switch): Create the label along with
14209 the CASE_LABEL_EXPR.
14210
14211 2011-04-26 David S. Miller <davem@davemloft.net>
14212 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14213
14214 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
14215 * configure: Regenerate.
14216
14217 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
14218
14219 PR target/48258
14220 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
14221 reduction.
14222 (VEC_reduc): New code iterator and splitters for vector reduction.
14223 (VEC_reduc_name): Ditto.
14224 (VEC_reduc_rtx): Ditto.
14225 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
14226 (reduc_<VEC_reduc_name>_v4sf): Ditto.
14227
14228 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
14229 support for extracting SF on VSX.
14230
14231 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
14232 generating xscvspdp.
14233 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
14234 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
14235 double add, minimum, maximum vector reduction.
14236 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
14237 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
14238 optimize double vector reduction.
14239 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
14240
14241 2011-04-26 Joseph Myers <joseph@codesourcery.com>
14242
14243 * config/fr30/fr30.h (inhibit_libc): Don't define.
14244 * config/m32r/m32r-protos.h: Correct comment.
14245 * config/v850/v850.h (GHS_default_section_names,
14246 GHS_current_section_names): Use tree, not union tree_node *.
14247
14248 2011-04-26 Xinliang David Li <davidxl@google.com>
14249
14250 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
14251 * c-family/c-opts.c (c_common_handle_option): Set
14252 warn_maybe_uninitialized.
14253 * opts.c (common_handle_option): Ditto.
14254 * common.opt: New option.
14255 * tree-ssa.c (warn_uninit): Add one more parameter.
14256 (warn_uninitialized_var): Pass warning code.
14257 * tree-flow.h: Interface change.
14258
14259 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14260
14261 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
14262 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
14263 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
14264
14265 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14266
14267 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
14268 * config/mips/mips.opt (mmips-tfile): Remove.
14269
14270 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
14271 mips-tdump reference to ...
14272 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
14273 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
14274 reference by Tru64 UNIX.
14275
14276 2011-04-26 Jakub Jelinek <jakub@redhat.com>
14277
14278 PR debug/48768
14279 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
14280 is error_mark_node, set value to NULL.
14281
14282 PR tree-optimization/48734
14283 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
14284 if return value from maybe_fold_*_comparsions isn't something
14285 the code is prepared to handle.
14286
14287 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
14288
14289 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
14290 mode check.
14291 (ext_QIreg_nomode_operands): Remove.
14292 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
14293 (*andsi_1): Ditto.
14294 (*andhi_1): Ditto.
14295
14296 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
14297
14298 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
14299
14300 2011-04-26 Richard Guenther <rguenther@suse.de>
14301
14302 * c-typeck.c (build_unary_op): Do not expand array-refs via
14303 pointer arithmetic. Only adjust qualifiers for function types.
14304
14305 2011-04-26 Richard Guenther <rguenther@suse.de>
14306
14307 PR middle-end/48694
14308 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
14309 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
14310 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
14311 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
14312
14313 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
14314
14315 * doc/extend.texi: Document __underlying_type.
14316
14317 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
14318
14319 * config/rs6000/titan.md (automata_option "progress"): Remove.
14320
14321 2011-04-25 Jeff Law <law@redhat.com>
14322
14323 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
14324
14325 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
14326
14327 * system.h (ENUM_BITFIELD): Remove.
14328
14329 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
14330 Eric Botcazou <ebotcazou@adacore.com>
14331
14332 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
14333 for STORE_FLAG_VALUE==-1 case.
14334
14335 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
14336
14337 PR target/43804
14338 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
14339 LEGITIMATE_PIC_OPERAND_P.
14340
14341 2011-04-24 Jan Hubicka <jh@suse.cz>
14342
14343 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
14344 WPA hack.
14345 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
14346 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
14347 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
14348 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
14349 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
14350 Sanity check predicate length.
14351 (remap_predicate): Likewise; sanity check jump functions.
14352 (inline_read_section, inline_write_summary): Sanity check
14353 predicate length.
14354
14355 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
14356
14357 PR other/48748
14358 * doc/extend.texi (Type Traits): Document __is_standard_layout,
14359 __is_literal_type, and __is_trivial; update throughout about
14360 possibly cv-qualified void types.
14361
14362 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
14363
14364 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
14365 testsuite and make it version agnostic.
14366
14367 2011-04-22 Jan Hubicka <jh@suse.cz>
14368
14369 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
14370
14371 2011-04-23 Jakub Jelinek <jakub@redhat.com>
14372
14373 PR c/48685
14374 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
14375 to VOID_TYPE even around MODIFY_EXPR.
14376
14377 2011-04-22 Mike Stump <mikestump@comcast.net>
14378
14379 * gensupport.c (read_md_rtx): Fix typo in comment.
14380 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
14381 comment.
14382
14383 2011-04-22 Jan Hubicka <jh@suse.cz>
14384
14385 * gengtype.c (open_base_files): Add ipa-inline.h include.
14386 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
14387 ipa-prop.c; update all uses.
14388 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
14389 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
14390 merge summary of inlined function into former caller.
14391 * ipa-inline.c (max_benefit): Remove.
14392 (edge_badness): Compensate for removal of benefits.
14393 (update_caller_keys): Use
14394 reset_node_growth_cache/reset_edge_growth_cache.
14395 (update_callee_keys): Likewise.
14396 (update_all_callee_keys): Likewise.
14397 (inline_small_functions): Do not collect max_benefit; do not reset
14398 estimated_growth; call free_growth_caches and initialize_growth_caches.
14399 * ipa-inline.h (struct condition, type clause_t, struct predicate,
14400 struct size_time_entry): New structures.
14401 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
14402 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
14403 and estimated_growth.
14404 (edge_growth_cache_entry): New structure.
14405 (node_growth_cache, edge_growth_cache): New global vars.
14406 (estimate_growth): Turn into inline.
14407 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
14408 initialize_growth_caches, free_growth_caches): Declare.
14409 (estimate_edge_growth): Rewrite.
14410 (estimate_edge_time): Implement as inline cache lookup.
14411 (reset_node_growth_cache, reset_edge_growth_cache): New inline
14412 functions.
14413 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
14414 (NUM_CONDITIONS): New constant.
14415 (predicate_conditions): New enum.
14416 (IS_NOT_CONSTANT): New constant.
14417 (edge_removal_hook_holder): New var.
14418 (node_growth_cache, edge_growth_cache): New global vars.
14419 (true_predicate, single_cond_predicate, false_predicate,
14420 not_inlined_predicate, add_condition, add_clause, and_predicates,
14421 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
14422 dump_clause, dump_predicate, account_size_time,
14423 evaulate_conditions_for_edge): New functions.
14424 (inline_summary_alloc): Move to heap.
14425 (inline_node_removal_hook): Clear condition and entry vectors.
14426 (inline_edge_removal_hook): New function.
14427 (initialize_growth_caches, free_growth_caches): New function.
14428 (dump_inline_summary): Update.
14429 (edge_execution_predicate): New function.
14430 (will_be_nonconstant_predicate): New function.
14431 (estimate_function_body_sizes): Compute BB and constantness predicates.
14432 (compute_inline_parameters): Do not clear estimated_growth.
14433 (estimate_edge_size_and_time): New function.
14434 (estimate_calls_size_and_time): New function.
14435 (estimate_callee_size_and_time): New function.
14436 (remap_predicate): New function.
14437 (inline_merge_summary): New function.
14438 (do_estimate_edge_time): New function based on...
14439 (estimate_edge_time): ... this one.
14440 (do_estimate_edge_growth): New function.
14441 (do_estimate_growth): New function based on....
14442 (estimate_growth): ... this one.
14443 (inline_analyze_function): Analyze after deciding on jump functions.
14444 (inline_read_section): New function.
14445 (inline_read_summary): Use it.
14446 (inline_write_summary): Write all the new data.
14447 * ipa-prop.c (ipa_get_param_decl_index): Export.
14448 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
14449 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
14450 Declare.
14451 (ipa_get_lattice): Move here from ipa-cp.c
14452 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
14453 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
14454 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
14455 cgraph_edge_inlinable_p): Remove.
14456 * cgraphunit.c: Include ipainline.h
14457 (cgraph_process_new_functions): Update call of
14458 compute_inline_parameters.
14459
14460 2011-04-22 Richard Guenther <rguenther@suse.de>
14461
14462 * tree.c (build_int_cst): Properly create canonicalized integer
14463 constants.
14464 (build_int_cst_type): Remove scary comments.
14465
14466 2011-04-22 Xinliang David Li <davidxl@google.com>
14467
14468 * toplev.c (process_options): Enable -Werror=coverage-mismatch
14469 by default when -Wno-error is not specified.
14470 * opts-global.c (decode_options): Remove call to
14471 control_warning_options.
14472
14473 2011-04-22 Jakub Jelinek <jakub@redhat.com>
14474
14475 PR tree-optimization/48717
14476 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
14477 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
14478
14479 2011-04-22 Joseph Myers <joseph@codesourcery.com>
14480
14481 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
14482 definition where used.
14483
14484 2011-04-22 Jakub Jelinek <jakub@redhat.com>
14485
14486 PR c/48716
14487 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
14488 TREE_STATIC variables declared inside of some OpenMP construct.
14489
14490 2011-04-22 Martin Jambor <mjambor@suse.cz>
14491
14492 PR middle-end/48585
14493 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
14494
14495 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
14496
14497 PR c/36750
14498 * c-typeck.c (pop_init_level): Do not warn about initializing
14499 with ` = {0}'.
14500
14501 2011-04-22 Alan Modra <amodra@gmail.com>
14502
14503 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
14504 when returning call_cookie.
14505 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
14506 pointers, to functions with no more vector args than the current
14507 function, and some non-local calls for ABI_V4.
14508 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
14509 sibcall_nonlocal_aix64): Combine to ..
14510 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
14511 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
14512 (sibcall_value_nonlocal_aix<mode>): ..likewise.
14513 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
14514 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
14515 operand.
14516 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
14517 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
14518 sibcall_value_symbolic_64): Delete.
14519
14520 2011-04-21 Xinliang David Li <davidxl@google.com>
14521
14522 * cgraph.h: Remove pid.
14523 * cgraph.c: Remove pid.
14524 * value-prof.c (init_node_map): New function.
14525 (del_node_map): New function.
14526 (find_func_by_funcdef_no): New function.
14527 (gimple_ic_transform): Call new function.
14528 * cgraphunit.c (cgraph_finalize_function): Remove pid.
14529 * function.c (get_last_funcdef_no): New function.
14530 * function.h (get_last_funcdef_no): New function.
14531 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
14532 to libgcov function.
14533 (tree-profiling): Call node map init and delete function.
14534
14535 2011-04-21 Ian Lance Taylor <iant@google.com>
14536
14537 * godump.c (go_format_type): Use exported Go name for anonymous
14538 field name.
14539
14540 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
14541
14542 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
14543 Call builtin_function_type_list instead of builtin_function_type.
14544 (UNARY, BINARY, TRINARY, QUAD): Likewise.
14545
14546 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
14547
14548 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
14549 build_function_type_list instead of build_function_type.
14550 Delete variable `endlink'.
14551
14552 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
14553
14554 * config/s390/s390.c (s390_init_builtins): Call
14555 build_function_type_list instead of build_function_type.
14556
14557 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
14558
14559 * config/ia64/ia64.c (ia64_init_builtins): Call
14560 build_function_type_list instead of builtin_function_type.
14561
14562 2011-04-21 Easwaran Raman <eraman@google.com>
14563
14564 * cfgexpand.c (stack_var): Remove OFFSET...
14565 (add_stack_var): ...and its reference here...
14566 (expand_stack_vars): ...and here.
14567 (stack_var_cmp): Sort by descending order of size.
14568 (partition_stack_vars): Change heuristic.
14569 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
14570 (dump_stack_var_partition): Add newline after each partition.
14571
14572 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
14573 Jeff Law <law@redhat.com>
14574
14575 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
14576 * gengtype.c (matching_file_name_substitute): Likewise.
14577
14578 2011-04-21 Richard Guenther <rguenther@suse.de>
14579
14580 PR lto/48703
14581 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
14582
14583 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
14584
14585 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
14586
14587 2011-04-21 Richard Guenther <rguenther@suse.de>
14588
14589 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
14590 file name.
14591
14592 2011-04-21 Richard Guenther <rguenther@suse.de>
14593
14594 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
14595 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
14596 Use DECL_P, not SSA_VAR_P.
14597 (ptr_derefs_may_alias_p): Likewise.
14598 (ptr_deref_may_alias_ref_p_1): Likewise.
14599 (decl_refs_may_alias_p): Likewise.
14600 (refs_may_alias_p_1): Likewise.
14601 (ref_maybe_used_by_call_p_1): Likewise.
14602 (call_may_clobber_ref_p_1): Likewise.
14603 (indirect_ref_may_alias_decl_p): Assume indirect refrences
14604 are either MEM_REF or TARGET_MEM_REF.
14605 (indirect_refs_may_alias_p): Likewise.
14606 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
14607 for MEM_EXPR of indirect calls.
14608
14609 2011-04-21 Tristan Gingold <gingold@adacore.com>
14610
14611 * vmsdbgout.c (write_srccorr): Compute file length from the string.
14612 (dst_file_info_struct): Remove flen field.
14613 (lookup_filename): Remove code that set flen field.
14614
14615 2011-04-21 Tristan Gingold <gingold@adacore.com>
14616
14617 * config/ia64/ia64.c (ia64_start_function): Add a guard.
14618
14619 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
14620
14621 PR target/48708
14622 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
14623 vec_extract and vec_concat for non-SSE4_1 targets.
14624
14625 2011-04-21 Richard Guenther <rguenther@suse.de>
14626
14627 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
14628 return statements.
14629
14630 2011-04-21 Joseph Myers <joseph@codesourcery.com>
14631
14632 * config/i386/cygming.h (union tree_node, TREE): Don't define or
14633 undefine.
14634 (FILE): Don't undefine.
14635
14636 2011-04-21 Joseph Myers <joseph@codesourcery.com>
14637
14638 * config/alpha/alpha.c (struct machine_function): Use rtx, not
14639 struct rtx_def *.
14640 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
14641 struct rtx_def *.
14642 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
14643 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
14644 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
14645 rtx_def *.
14646 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
14647 definitions where used.
14648 * config/microblaze/microblaze.h (struct microblaze_args): Use
14649 rtx, not struct rtx_def *.
14650 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
14651 rtx_def *.
14652 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
14653 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
14654 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
14655 not struct rtx_def *.
14656 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
14657 struct rtx_def *.
14658 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
14659 rtx_def *.
14660 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
14661
14662 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
14663
14664 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
14665 operand_equal_p to compare DR_BASE_ADDRESSes.
14666 (vect_check_interleaving): Likewise.
14667
14668 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
14669
14670 PR target/46329
14671 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
14672 for all Neon struct constants.
14673
14674 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
14675
14676 * target.def (legitimate_constant_p): New hook.
14677 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
14678 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
14679 * doc/tm.texi: Regenerate.
14680 * hooks.h (hook_bool_mode_rtx_true): Declare.
14681 * hooks.c (hook_bool_mode_rtx_true): Define.
14682 * system.h (LEGITIMATE_CONSTANT_P): Poison.
14683 * calls.c (precompute_register_parameters): Replace uses of
14684 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
14685 (emit_library_call_value_1): Likewise.
14686 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
14687 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
14688 * ira-costs.c (scan_one_insn): Likewise.
14689 * recog.c (general_operand, immediate_operand): Likewise.
14690 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
14691 * reload1.c (init_eliminable_invariants): Likewise.
14692
14693 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
14694 mode argument.
14695 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
14696 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
14697 argument.
14698 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14699 * config/alpha/predicates.md (input_operand): Update call to
14700 alpha_legitimate_constant_p.
14701
14702 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
14703 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
14704 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
14705 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14706 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
14707 (arm_legitimate_constant_p): New functions.
14708 (arm_cannot_force_const_mem): Make static.
14709
14710 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
14711
14712 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
14713 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
14714 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
14715 instead of bfin_legitimate_constant_p.
14716 (bfin_legitimate_constant_p): Make static. Add a mode argument.
14717 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14718
14719 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
14720
14721 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
14722
14723 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
14724 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
14725 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14726 (frv_legitimate_constant_p): Make static. Add a mode argument.
14727
14728 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
14729 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
14730 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
14731
14732 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
14733 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
14734 * config/i386/i386.c (legitimate_constant_p): Rename to...
14735 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
14736 argument.
14737 (ix86_cannot_force_const_mem): Update accordingly.
14738 (ix86_legitimate_address_p): Likewise.
14739 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14740 * config/i386/i386.md: Update commentary.
14741
14742 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
14743 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
14744 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14745 (ia64_legitimate_constant_p): Make static. Add a mode argument.
14746
14747 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
14748
14749 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
14750 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
14751 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14752 (lm32_legitimate_constant_p): Make static. Add a mode argument.
14753
14754 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
14755 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
14756 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
14757
14758 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
14759 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14760 (m32r_legitimate_constant_p): New function.
14761
14762 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
14763 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
14764 LEGITIMATE_CONSTANT_P.
14765 (LEGITIMATE_CONSTANT_P): Delete.
14766 * config/m68k/m68k.c (m68k_expand_prologue): Call
14767 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
14768 (m68k_legitimate_constant_p): New function.
14769 * config/m68k/m68k.md: Update comments.
14770
14771 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
14772 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14773 (mcore_legitimate_constant_p): New function.
14774
14775 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
14776 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
14777 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
14778 Add a mode argument.
14779 (mep_legitimate_address): Update accordingly.
14780 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14781
14782 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
14783 Delete.
14784 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
14785 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
14786 static. Check OP's mode for VOIDmode.
14787 (microblaze_legitimate_constant_p): New function.
14788 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14789
14790 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
14791 * config/mips/mips.c (mips_legitimate_constant_p): New function.
14792 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
14793 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14794 * config/mips/predicates.md: Update comments.
14795
14796 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
14797 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
14798 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14799 (mmix_legitimate_constant_p): Make static, return a bool, and take
14800 a mode argument.
14801 (mmix_print_operand_address): Update accordingly.
14802
14803 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
14804 Delete.
14805 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
14806 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
14807 static. Add a mode argument.
14808 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14809
14810 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
14811
14812 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
14813 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14814 (pa_legitimate_constant_p): New function.
14815
14816 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
14817
14818 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
14819 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14820 (pdp11_legitimate_constant_p): New function.
14821
14822 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
14823 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14824 (rs6000_legitimate_constant_p): New function.
14825
14826 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
14827 (rx_legitimate_constant_p): ...this.
14828 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
14829 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
14830 (rx_legitimate_constant_p): ...this.
14831 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14832 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
14833
14834 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
14835 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
14836 * config/s390/s390.c (legitimate_constant_p): Rename to...
14837 (s390_legitimate_constant_p): ...this. Make static, return a bool,
14838 and add a mode argument.
14839 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14840
14841 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
14842
14843 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
14844 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14845 (sh_legitimate_constant_p): New function.
14846
14847 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
14848 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
14849 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14850 (legitimate_constant_p): Rename to...
14851 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
14852 argument.
14853 (constant_address_p): Update accordingly.
14854
14855 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
14856 argument and return a bool.
14857 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
14858 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14859 (spu_legitimate_constant_p): Add a mode argument and return a bool.
14860 (spu_rtx_costs): Update accordingly.
14861 * config/spu/predicates.md (vec_imm_operand): Likewise.
14862
14863 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
14864
14865 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
14866 * config/v850/v850.c (v850_legitimate_constant_p): New function.
14867 (TARGET_LEGITIMATE_CONSTANT_P): Define.
14868
14869 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
14870 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
14871 * config/vax/vax.c (legitimate_constant_p): Likewise.
14872
14873 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
14874 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
14875 (xtensa_legitimate_constant_p): New function.
14876
14877 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
14878
14879 * target.def (cannot_force_const_mem): Add a mode argument.
14880 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
14881 * doc/tm.texi: Regenerate.
14882 * hooks.h (hook_bool_mode_rtx_false): Declare.
14883 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
14884 (hook_bool_mode_const_rtx_true): Likewise.
14885 (hook_bool_mode_rtx_false): New function.
14886 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
14887 to be non-VOID. Update call to cannot_force_const_mem.
14888 (find_reloads): Update accordingly.
14889 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
14890 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
14891 argument.
14892 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
14893 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
14894 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
14895 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
14896 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
14897 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
14898 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
14899 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
14900 (m68k_cannot_force_const_mem): ...this new function.
14901 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
14902 argument.
14903 (mips_const_insns, mips_legitimize_const_move): Update calls.
14904 (mips_secondary_reload_class): Likewise.
14905 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
14906 (pa_cannot_force_const_mem): ...this new function.
14907 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
14908 (rs6000_cannot_force_const_mem): ...this new function.
14909 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
14910 argument.
14911 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
14912 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
14913 to...
14914 (xtensa_cannot_force_const_mem): ...this new function.
14915
14916 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
14917
14918 * config/mips/mips.c (mips16_build_function_stub): Call
14919 build_function_type_list instead of build_function_type.
14920 (mips16_build_call_stub): Likewise.
14921
14922 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
14923
14924 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
14925 instead of build_function_type.
14926
14927 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
14928
14929 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
14930 instead of build_function_type.
14931
14932 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
14933
14934 PR target/48678
14935 * config/i386/i386.md (insv): Change operand 0 constraint to
14936 "register_operand". Change operand 1 and 2 constraint to
14937 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
14938 * config/i386/sse.md (sse4_1_pinsrb): Export.
14939 (sse2_pinsrw): Ditto.
14940 (sse4_1_pinsrd): Ditto.
14941 (sse4_1_pinsrq): Ditto.
14942 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
14943 * config/i386/i386.c (ix86_expand_pinsr): New.
14944
14945 2011-04-20 Easwaran Raman <eraman@google.com>
14946
14947 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
14948 containing union type only with -fstrict-aliasing.
14949
14950 2011-04-20 Jim Meyering <meyering@redhat.com>
14951
14952 Remove useless if-before-free tests.
14953 * calls.c (expand_call, save_area): Likewise.
14954 * cfgcleanup.c (try_forward_edges): Likewise.
14955 * collect2.c (collect_execute): Likewise.
14956 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
14957 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
14958 * coverage.c (coverage_checksum_string): Likewise.
14959 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
14960 * cselib.c (cselib_init): Likewise.
14961 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
14962 (df_set_clean_cfg): Likewise.
14963 * function.c (free_after_compilation): Likewise.
14964 * gcc.c (do_spec_1, main): Likewise.
14965 * gcov.c (create_file_names): Likewise.
14966 * gensupport.c (identify_predicable_attribute): Likewise.
14967 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
14968 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
14969 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
14970 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
14971 * ipa-pure-const.c (local_pure_const): Likewise.
14972 * ipa-reference.c (propagate): Likewise.
14973 * ira-costs.c (free_ira_costs): Likewise.
14974 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
14975 * matrix-reorg.c (mat_free): Likewise.
14976 * prefix.c (get_key_value): Likewise.
14977 * profile.c (compute_value_histograms): Likewise.
14978 * reload1.c (free_reg_equiv): Likewise.
14979 * sched-deps.c (free_deps): Likewise.
14980 * sel-sched-ir.c (fence_clear): Likewise.
14981 * sese.c (set_rename, if_region_set_false_region): Likewise.
14982 * tree-data-ref.c (free_rdg): Likewise.
14983 * tree-eh.c (lower_try_finally): Likewise.
14984 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
14985 * tree-ssa-live.c (delete_var_map): Likewise.
14986 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
14987 * tree-ssa-pre.c (phi_trans_add): Likewise.
14988
14989 2011-04-20 Jakub Jelinek <jakub@redhat.com>
14990
14991 PR tree-optimization/48611
14992 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
14993 beyond ERT_MUST_NOT_THROW region.
14994
14995 2011-04-20 Catherine Moore <clm@codesourcery.com>
14996
14997 * config/mips/mips.opt (mfix-24k): New.
14998 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
14999 * config/mips/mips.md (length): Increase by 4 for stores if
15000 fixing 24K errata.
15001 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
15002 all noreorder if fixing 24K errata.
15003 * doc/invoke.texi: Document mfix-24k.
15004
15005 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
15006
15007 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
15008 quad-word modes, reduce to 9-bit index range when above 1016 limit.
15009
15010 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
15011
15012 * config/arm/arm.c (arm_gen_constant): Move movw support ....
15013 (const_ok_for_op): ... to here.
15014
15015 2011-04-20 Kai Tietz <ktietz@redhat.com>
15016
15017 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
15018 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
15019
15020 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
15021
15022 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
15023
15024 2011-04-20 Richard Guenther <rguenther@suse.de>
15025
15026 PR tree-optimization/47892
15027 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
15028 are if-convertible.
15029
15030 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
15031
15032 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
15033
15034 2011-04-20 Tristan Gingold <gingold@adacore.com>
15035
15036 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
15037
15038 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
15039
15040 PR target/18145
15041
15042 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
15043 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
15044 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
15045 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
15046 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
15047
15048 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
15049 New prototype.
15050
15051 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
15052 (avr_asm_named_section, avr_asm_output_aligned_common,
15053 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
15054 New functions to update...
15055 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
15056 (avr_asm_init_sections): Overwrite section callbacks for
15057 data_section, bss_section.
15058 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
15059 from here to...
15060 (avr_file_end): ...here.
15061
15062 2011-04-20 Richard Guenther <rguenther@suse.de>
15063
15064 PR middle-end/48695
15065 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
15066 objects and types here. Adjust for their offset before comparing.
15067
15068 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
15069
15070 * tree-vect-stmts.c (vectorizable_store): Only chain one related
15071 statement per copy.
15072
15073 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
15074
15075 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
15076 (GIMPLE_H): Include $(INTERNAL_FN_H).
15077 (OBJS-common): Add internal-fn.o.
15078 (internal-fn.o): New rule.
15079 * internal-fn.def: New file.
15080 * internal-fn.h: Likewise.
15081 * internal-fn.c: Likewise.
15082 * gimple.h: Include internal-fn.h.
15083 (GF_CALL_INTERNAL): New gf_mask.
15084 (gimple_statement_call): Put fntype into a union with a new
15085 internal_fn field.
15086 (gimple_build_call_internal): Declare.
15087 (gimple_build_call_internal_vec): Likewise.
15088 (gimple_call_same_target_p): Likewise.
15089 (gimple_call_internal_p): New function.
15090 (gimple_call_internal_fn): Likewise.
15091 (gimple_call_fntype): Return null for internal calls.
15092 (gimple_call_set_fntype): Assert that the function is not internal.
15093 (gimple_call_set_fn): Likewise.
15094 (gimple_call_set_fndecl): Likewise.
15095 (gimple_call_set_internal_fn): New function.
15096 (gimple_call_addr_fndecl): Handle null functions.
15097 (gimple_call_return_type): Likewise null types.
15098 * gimple.c (gimple_build_call_internal_1): New function.
15099 (gimple_build_call_internal): Likewise.
15100 (gimple_build_call_internal_vec): Likewise.
15101 (gimple_call_same_target_p): Likewise.
15102 (gimple_call_flags): Handle calls to internal functions.
15103 (gimple_call_fnspec): New function.
15104 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
15105 (gimple_has_side_effects): Handle null functions.
15106 (gimple_rhs_has_side_effects): Likewise.
15107 (gimple_call_copy_skip_args): Handle calls to internal functions.
15108 * cfgexpand.c (expand_call_stmt): Likewise.
15109 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
15110 * gimple-fold.c (gimple_fold_call): Handle null functions.
15111 (gimple_fold_stmt_to_constant_1): Don't fold
15112 calls to internal functions.
15113 * gimple-low.c (gimple_check_call_args): Handle calls to internal
15114 functions.
15115 * gimple-pretty-print.c (dump_gimple_call): Likewise.
15116 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
15117 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
15118 (do_warn_unused_result): Likewise.
15119 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
15120 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
15121 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
15122 the target of a call.
15123 (initialize_hash_element): Update accordingly.
15124 (hashable_expr_equal_p): Use gimple_call_same_target_p.
15125 (iterative_hash_hashable_expr): Handle calls to internal functions.
15126 (print_expr_hash_elt): Likewise.
15127 * tree-ssa-pre.c (can_value_number_call): Likewise.
15128 (eliminate): Handle null functions.
15129 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
15130 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
15131 (find_func_aliases): Likewise.
15132 * value-prof.c (gimple_ic_transform): Likewise.
15133 (gimple_indirect_call_to_profile): Likewise.
15134 * lto-streamer-in.c (input_gimple_stmt): Likewise.
15135 * lto-streamer-out.c (output_gimple_stmt): Likewise.
15136
15137 2011-04-19 Jan Hubicka <jh@suse.cz>
15138
15139 * ipa-inline-transform.c (save_inline_function_body): Add comments.
15140 * ipa-inline.c (inline_small_functions): Compute summaries first,
15141 populate heap later.
15142
15143 2011-04-19 Jan Hubicka <jh@suse.cz>
15144
15145 * cgraph.h (save_inline_function_body): Remove.
15146 * ipa-inline-transform.c: New file, broke out of...
15147 * ipa-inline.c: ... this one; Update toplevel comment.
15148 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
15149 make global.
15150 (update_noncloned_frequencies): Move to ipa-inline-transform.c
15151 (cgraph_mark_inline_edge): Rename to inline_call; move to
15152 ipa-inline-transform.c.
15153 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
15154 move to ipa-inline-transform.c
15155 (recursive_inlining, inline_small_functions, flatten_function,
15156 ipa_inline, inline_always_inline_functions,
15157 early_inline_small_functions): Update.
15158 (inline_transform): Move to ipa-inline-transform.c.
15159 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
15160 Declare.
15161 * Makefile.in (ipa-inline-transform.o): New file.
15162 * cgraphunit.c (save_inline_function_body): Move to
15163 ipa-inline-transform.c
15164
15165 2011-04-19 DJ Delorie <dj@redhat.com>
15166
15167 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
15168 registers if we already know there aren't any.
15169 (m32c_emit_epilogue): Don't emit a barrier here.
15170 (m32c_emit_eh_epilogue): Likewise.
15171 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
15172 operands at expand time.
15173 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
15174 int" wchar type.
15175 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
15176 duplicates. Provide aliases instead.
15177 * config/m32c/prologue.md (eh_return): Emit a barrier here.
15178 (eh_epilogue): Add a "(return)" here as a hint to other parts of
15179 the compiler.
15180
15181 2011-04-19 Anatoly Sokolov <aesok@post.ru>
15182
15183 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
15184 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
15185 (general_or_i64_p, sparc_register_move_cost): New function.
15186
15187 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15188
15189 * doc/install.texi (Configuration, --enable-threads): Remove mach.
15190 Add lynx, mipssde. Sort table.
15191
15192 2011-04-19 Xinliang David Li <davidxl@google.com>
15193
15194 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
15195 not negative.
15196
15197 2011-04-19 Jakub Jelinek <jakub@redhat.com>
15198
15199 PR target/48678
15200 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
15201 is a SUBREG with non-MODE_INT mode inside of it.
15202
15203 2011-04-19 Martin Jambor <mjambor@suse.cz>
15204
15205 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
15206 also according to actual contants.
15207 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
15208 (gimple_fold_call): Use it.
15209 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
15210
15211 2011-04-19 Martin Jambor <mjambor@suse.cz>
15212
15213 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
15214 non-pointer assignments.
15215
15216 2011-04-19 Martin Jambor <mjambor@suse.cz>
15217
15218 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
15219 account anc_offset and otr_type from the indirect edge info.
15220 * ipa-prop.c (get_ancestor_addr_info): New function.
15221 (compute_complex_ancestor_jump_func): Assignment analysis moved to
15222 get_ancestor_addr_info, call it.
15223 (ipa_note_param_call): Do not initialize information about polymorphic
15224 calls, return the indirect call graph edge. Remove the last
15225 parameter, adjust all callers.
15226 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
15227 parameters. Initialize polymorphic information in the indirect edge.
15228
15229 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
15230
15231 PR lto/48148
15232 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
15233 the types if they have different enumeration identifiers.
15234
15235 2011-04-19 Jan Hubicka <jh@suse.cz>
15236
15237 * cgraph.h (cgraph_optimize_for_size_p): Declare.
15238 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
15239 * predict.c (cgraph_optimize_for_size_p): Break out from ...
15240 (optimize_function_for_size_p) ... here.
15241
15242 2011-04-19 Richard Guenther <rguenther@suse.de>
15243
15244 PR lto/48207
15245 * tree.c (free_lang_data): Do not reset the decl-assembler-name
15246 langhook.
15247
15248 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
15249
15250 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
15251 if DECL_NO_INLINE_WARNING_P is set on the function.
15252
15253 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
15254
15255 PR fortran/47976
15256 * reload1.c (inc_for_reload): Return void. All callers changed.
15257 (emit_input_reload_insns): Don't try to delete previous output
15258 reloads to a register, or record spill_reg_store for autoincs.
15259
15260 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
15261
15262 * gengtype.h: Updated copyright year.
15263 (struct input_file_st): Add inpisplugin field.
15264 (type_fileloc): New function.
15265 * gengtype.c
15266 (write_typed_struct_alloc_def): Add gcc_assert.
15267 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
15268 (write_typed_alloc_defns): Don't output for plugin files.
15269 (input_file_by_name): Clear inpisplugin field.
15270 (main): Set inpisplugin field for plugin files.
15271
15272 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
15273
15274 * gengtype-state.c (string_eq): New.
15275 (read_state): Use string_eq instead of strcmp when creating the
15276 state_ident_tab.
15277
15278 2011-04-19 Wei Guozhi <carrot@google.com>
15279
15280 PR target/47855
15281 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
15282 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
15283 linkage.
15284 * config/arm/constraints.md (Uu): New constraint.
15285 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
15286
15287 2011-04-19 Tristan Gingold <gingold@adacore.com>
15288
15289 * config.gcc (-*-*-*vms): Added.
15290 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
15291 definitions moved.
15292 * config/vms/vms-ld.c: New file.
15293 * config/vms/vms-ar.c: New file.
15294 * config/vms/t-vmsnative: New file.
15295
15296 2011-04-18 Xinliang David Li <davidxl@google.com>
15297
15298 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
15299
15300 2011-04-18 Jakub Jelinek <jakub@redhat.com>
15301
15302 PR middle-end/48661
15303 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
15304 if TREE_TYPE (v) is non-NULL.
15305
15306 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
15307 gimple_get_virt_mehtod_for_binfo.
15308 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
15309 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
15310 callers.
15311 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15312
15313 2011-04-18 Michael Matz <matz@suse.de>
15314 Steve Ellcey <sje@cup.hp.com>
15315
15316 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
15317 use its mode as source mode if it isn't VOIDmode.
15318
15319 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
15320
15321 * doc/passes.texi: Fill crossref nodes.
15322
15323 2011-04-18 Jim Meyering <meyering@redhat.com>
15324
15325 Fix doubled-word typos in comments and strings
15326 * config/alpha/vms-unwind.h: s/for for/for/
15327 * config/arm/unwind-arm.h: Likewise.
15328 * config/microblaze/microblaze.c: Likewise.
15329 * config/sh/constraints.md: s/in in/in/
15330 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
15331
15332 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
15333
15334 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
15335 (AVX_FLOAT_MODE_P): Ditto.
15336 (AVX128_VEC_FLOAT_MODE_P): Ditto.
15337 (AVX256_VEC_FLOAT_MODE_P): Ditto.
15338 (AVX_VEC_FLOAT_MODE_P): Ditto.
15339 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
15340 (UNSPEC_MASKSTORE): Ditto.
15341 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
15342 Merge from <sse>_movmsk<ssemodesuffix> and
15343 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
15344 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
15345 iterator.
15346 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
15347 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
15348 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
15349
15350 2011-04-18 Jan Hubicka <jh@suse.cz>
15351
15352 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
15353
15354 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
15355 (want_inline_function_called_once_p): Break out the logic from
15356 ipa_inline.
15357 (edge_badness): Ensure that profile is not misupdated.
15358 (lookup_recursive_calls): Prioritize by call frequencies.
15359 (inline_small_functions): Move program size estimates here;
15360 actually process whole queue even when unit growth has been
15361 met. (to properly compute inline_failed reasons and for the
15362 case unit size decrease.) Revisit comments on recursive inlining.
15363 (ipa_inline): Remove unit summary code; first inline hot calls
15364 of functions called once, cold calls next.
15365 (order, nnodes): Remove unused variables.
15366 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
15367 (GTFILES): Remove ipa-inline.c
15368 * sel-sched.c (fill_insns): Silence uninitialized var warning.
15369
15370 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
15371
15372 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
15373
15374 2011-04-18 Jie Zhang <jie@codesourcery.com>
15375 Richard Earnshaw <rearnsha@arm.com>
15376
15377 * arm.c (neon_builtin_type_bits): Remove.
15378 (typedef enum neon_builtin_mode): New.
15379 (T_MAX): Don't define.
15380 (typedef enum neon_builtin_datum): Remove bits, codes[],
15381 num_vars and base_fcode. Add mode, code and fcode.
15382 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
15383 VAR10): Change accordingly.
15384 (neon_builtin_data[]): Change accordingly
15385 (arm_init_neon_builtins): Change accordingly.
15386 (neon_builtin_compare): Remove.
15387 (locate_neon_builtin_icode): Remove.
15388 (arm_expand_neon_builtin): Change accordingly.
15389
15390 * arm.h (enum arm_builtins): Move to ...
15391 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
15392
15393 * arm.c (arm_builtin_decl): Declare.
15394 (TARGET_BUILTIN_DECL): Define.
15395 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
15396 (arm_builtin_decls[]): New.
15397 (arm_init_neon_builtins): Store builtin declarations in
15398 arm_builtin_decls[].
15399 (arm_init_tls_builtins): Likewise.
15400 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
15401 (arm_builtin_decl): New.
15402
15403 2011-04-18 Richard Guenther <rguenther@suse.de>
15404
15405 * tree.c (upper_bound_in_type): Build properly canonicalized
15406 INTEGER_CSTs.
15407 (lower_bound_in_type): Likewise.
15408
15409 2011-04-18 Richard Guenther <rguenther@suse.de>
15410
15411 * gimple.h (gimple_call_addr_fndecl): New function.
15412 (gimple_call_fndecl): Use it.
15413 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
15414 for direct calls.
15415 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
15416 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
15417
15418 2011-04-18 Richard Guenther <rguenther@suse.de>
15419
15420 PR middle-end/48650
15421 * tree.c (build_string): STRING_CST is now derived from tree_typed.
15422
15423 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
15424
15425 PR lto/48492
15426 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
15427 DECL_IN_CONSTANT_POOL without RTL.
15428
15429 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
15430 Ira Rosen <ira.rosen@linaro.org>
15431
15432 PR target/48252
15433 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
15434 to match neon_vzip/vuzp/vtrn_internal.
15435 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
15436 outputs explicitly dependent on both inputs.
15437 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
15438
15439 2011-04-18 Jakub Jelinek <jakub@redhat.com>
15440
15441 PR tree-optimization/48616
15442 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
15443 whether the shift is by scalar or vector based on whether all SLP
15444 scalar stmts have the same rhs.
15445
15446 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
15447
15448 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
15449 memory operands.
15450
15451 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
15452
15453 PR target/43700
15454 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
15455 registers.
15456
15457 2011-04-17 Jan Hubicka <jh@suse.cz>
15458
15459 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
15460 * cgrpahunit.c (cgraph_finalize_function): Do not set
15461 finalized_by_frontend.
15462 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
15463 finalized_by_frontend.
15464
15465 2011-04-17 Jan Hubicka <jh@suse.cz>
15466
15467 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
15468 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
15469 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
15470 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
15471 method.
15472 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
15473 gimple-fold.c
15474 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
15475
15476 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
15477
15478 PR lto/48538
15479 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
15480 is non-null before accessing it.
15481 (input_cgraph): Remove trailing spaces.
15482
15483 2011-04-17 Revital Eres <revital.eres@linaro.org>
15484
15485 * params.def (sms-min-sc): New param flag.
15486 * modulo-sched.c (sms_schedule): Use it.
15487 * doc/invoke.texi (sms-min-sc): Document it.
15488
15489 2011-04-17 Jan Hubicka <jh@suse.cz>
15490
15491 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
15492 present, also set gimple_call_set_cannot_inline.
15493 * ipa-inline.c: Update toplevel comment.
15494 (MAX_TIME): Remove.
15495 (cgraph_clone_inlined_nodes): Fix linebreaks.
15496 (cgraph_check_inline_limits): Restructure to ...
15497 (caller_growth_limits): ... this one; be more tolerant
15498 on growth in nested inline chains; add explanatory comment;
15499 fix stack accounting thinko introduced by previous patch.
15500 (cgraph_default_inline_p): Remove.
15501 (report_inline_failed_reason): New function.
15502 (can_inline_edge_p): New function.
15503 (can_early_inline_edge_p): New function.
15504 (leaf_node_p): Move upwards in file.
15505 (want_early_inline_function_p): New function.
15506 (want_inline_small_function_p): New function.
15507 (want_inline_self_recursive_call_p): New function.
15508 (cgraph_edge_badness): Rename to ...
15509 (edge_badness) ... this one; fix linebreaks.
15510 (update_edge_key): Update call of edge_baddness; add
15511 detailed dump about queue updates.
15512 (update_caller_keys): Use can_inline_edge_p and
15513 want_inline_small_function_p.
15514 (cgraph_decide_recursive_inlining): Rename to...
15515 (recursive_inlining): Use can_inline_edge_p and
15516 want_inline_self_recursive_call_p; simplify and remove no longer
15517 valid FIXME.
15518 (cgraph_set_inline_failed): Remove.
15519 (add_new_edges_to_heap): Use can_inline_edge_p and
15520 want_inline_small_function_p.
15521 (cgraph_decide_inlining_of_small_functions): Rename to ...
15522 (inline_small_functions): ... this one; cleanup; use
15523 can/want predicates; cleanup debug ouput; work edges till fibheap
15524 is exhausted and do not stop once unit growth is reached; remove
15525 later loop processing remaining edges.
15526 (cgraph_flatten): Rename to ...
15527 (flatten_function): ... this one; use can_inline_edge_p
15528 and can_early_inline_edge_p predicates.
15529 (cgraph_decide_inlining): Rename to ...
15530 (ipa_inline): ... this one; remove unreachable nodes before
15531 inlining functions called once; simplify the pass.
15532 (cgraph_perform_always_inlining): Rename to ...
15533 (inline_always_inline_functions): ... this one; use
15534 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
15535 (cgraph_decide_inlining_incrementally): Rename to ...
15536 (early_inline_small_functions): ... this one; simplify
15537 using new predicates; cleanup; make dumps prettier.
15538 (cgraph_early_inlining): Rename to ...
15539 (early_inliner): newer inline regular functions into always-inlines;
15540 fix updating of call stmt summaries.
15541 (pass_early_inline): Update for new names.
15542 (inline_transform): Fix formating.
15543 (gate_cgraph_decide_inlining): Rename to ...
15544 (pass_ipa_inline): ... this one.
15545 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
15546 * ipa-inline-analysis.c (dump_inline_summary): Update.
15547 (compute_inline_parameters): Do not compute disregard_inline_limits;
15548 look for mismatching arguments.
15549 (estimate_growth): Fix handlig of non-trivial self recursion.
15550 (inline_read_summary): Do not read info->disregard_inline_limits.
15551 (inline_write_summary): Do not write info->disregard_inline_limits.
15552 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
15553 and move all checks into can_inline_edge_p predicate; re-enable code
15554 comparing optimization levels.
15555 (expand_call_inline): Do not test inline_forbidden_into_p.
15556 * Makefile.in (ipa-inline.o): Update arguments.
15557
15558 2011-04-17 Revital Eres <revital.eres@linaro.org>
15559
15560 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
15561
15562 2011-04-17 Revital Eres <revital.eres@linaro.org>
15563
15564 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
15565
15566 2011-04-17 Michael Matz <matz@suse.de>
15567
15568 PR tree-optimization/48622
15569 PR lto/48645
15570 * ipa-inline-analysis.c (inline_read_summary): Read size/time
15571 in same order as they're written.
15572
15573 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15574
15575 * config/pa/predicates.md: Reorganize and simplify predicates.
15576 Eliminate duplicate code checks.
15577 (arith_operand): Rename to arith14_operand
15578 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
15579 * config/pa/pa.md: Use renamed operands.
15580 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
15581 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
15582 arith11_operand, adddi3_operand, indexed_memory_operand,
15583 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
15584 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
15585 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
15586 move_dest_operand, move_src_operand, prefetch_cc_operand,
15587 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
15588 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
15589 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
15590 div_operand, int5_operand, movb_comparison_operator,
15591 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
15592 arith_double_operand, ireg_operand, lhs_lshift_operand,
15593 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
15594 integer_store_memory_operand): Likewise.
15595 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
15596 (integer_store_memory_operand, read_only_operand,
15597 function_label_operand, borx_reg_operand,
15598 non_hard_reg_operand): Likewise.
15599 (eq_neq_comparison_operator): Delete unused operator.
15600 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
15601 function_label_operand.
15602 (emit_move_sequence): Likewise.
15603
15604 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
15605
15606 * config/i386/sse.md (sseunpackmode): New mode attribute.
15607 (ssepackmode): Ditto.
15608 (vec_pack_trunc_<mode>): Macroize expander from
15609 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
15610 (vec_unpacks_lo_<mode>): Macroize expander from
15611 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15612 (vec_unpacks_hi_<mode>): Macroize expander from
15613 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15614 (vec_unpacku_lo_<mode>): Macroize expander from
15615 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15616 (vec_unpacku_hi_<mode>): Macroize expander from
15617 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
15618 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
15619 ix86_expand_sse4_unpack.
15620 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
15621
15622 2011-04-16 Jan Hubicka <jh@suse.cz>
15623
15624 * cgraphbuild.c: Include ipa-inline.h.
15625 (reset_inline_failed): Use initialize_inline_failed.
15626 * cgraph.c: Include ipa-inline.h.
15627 (cgraph_create_node_1): Do not initialize estimated_growth.
15628 (initialize_inline_failed): More to ipa-inline-analysis.c
15629 (dump_cgraph_node): Do not dump inline flags.
15630 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
15631 and disregard_inline_limits flags.
15632 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
15633 time, size, estimated_growth.
15634 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
15635 Update.
15636 * cgraphunit.c (cgraph_decide_is_function_needed): Use
15637 DECL_DISREGARD_INLINE_LIMITS.
15638 (cgraph_analyze_function): Do not initialize
15639 node->local.disregard_inline_limits.
15640 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
15641 inlinable, versionable and disregard_inline_limits.
15642 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
15643 cgraph_check_inline_limits, cgraph_default_inline_p,
15644 cgraph_edge_badness, update_caller_keys, update_callee_keys,
15645 add_new_edges_to_heap): Update.
15646 (cgraph_decide_inlining_of_small_function): Update; set
15647 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
15648 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
15649 cgraph_decide_inlining_incrementally): Update.
15650 * ipa-inline.h (inline_summary): Add inlinable, versionable,
15651 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
15652 time, size and estimated_growth parameters.
15653 (estimate_edge_growth): Update.
15654 (initialize_inline_failed): Declare.
15655 * ipa-split.c: Include ipa-inline.h
15656 (execute_split_functions): Update.
15657 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
15658 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
15659 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
15660 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
15661 estimated_growth to INT_MIN.
15662 (inline_node_duplication_hook): Likewise.
15663 (dump_inline_summary): Dump new fields.
15664 (compute_inline_parameters): Update.
15665 (estimate_edge_time, estimate_time_after_inlining,
15666 estimate_size_after_inlining, estimate_growth, inline_read_summary,
15667 inline_write_summary):
15668 (initialize_inline_failed): Move here from cgraph.c.
15669 * tree-sra.c: Include ipa-inline.h.
15670 (ipa_sra_preliminary_function_checks): Update.
15671 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
15672 ipa-inline.h.
15673
15674 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
15675
15676 * config/i386/sse.md (V16): New mode iterator.
15677 (VI1, VI8): Ditto.
15678 (AVXMODEQI, AVXMODEDI): Remove.
15679 (sse2, sse3): New mode attribute.
15680 (mov<mode>): Use V16 mode iterator.
15681 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
15682 (push<mode>1): Use V16 mode iterator.
15683 (movmisalign<mode>): Ditto.
15684 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
15685 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
15686 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
15687 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
15688 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
15689 avx_movdqu<avxmodesuffix>.
15690 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
15691 *avx_movdqu<avxmodesuffix>.
15692 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
15693 avx_lddqu<avxmodesuffix>.
15694 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
15695 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
15696 avx_movnt<AVXMODEDI:mode>.
15697 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
15698 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
15699
15700 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
15701
15702 PR target/48629
15703 * haifa-sched.c (prune_ready_list, schedule_block): Use
15704 sched_pressure_p rather than flag_sched_pressure.
15705
15706 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
15707
15708 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
15709 cgraph_get_node instead of cgraph_get_create_node.
15710
15711 2011-04-15 Jakub Jelinek <jakub@redhat.com>
15712
15713 * cfgexpand.c (expand_debug_expr): Use
15714 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
15715
15716 2011-04-15 Michael Matz <matz@suse.de>
15717
15718 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
15719 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
15720 * function.c (gimplify_parameters): Ditto.
15721 * gimplify.c (gimplify_vla_decl): Ditto.
15722
15723 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
15724 (gimple_call_set_alloca_for_var): New inline function.
15725 (gimple_call_alloca_for_var_p): Ditto.
15726 * gimple.c (gimple_build_call_from_tree): Remember
15727 CALL_ALLOCA_FOR_VAR_P state.
15728 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
15729
15730 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
15731 calls if they were for VLA objects.
15732
15733 2011-04-15 Martin Jambor <mjambor@suse.cz>
15734
15735 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
15736 of ADR_EXPRs.
15737
15738 2011-04-15 Martin Jambor <mjambor@suse.cz>
15739
15740 PR middle-end/48601
15741 * tree-emutls.c (lower_emutls_function_body): Call
15742 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
15743 result is non-NULL.
15744
15745 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
15746
15747 * c-decl.c (detect_field_duplicates): Call
15748 objc_detect_field_duplicates instead of objc_get_interface_ivars.
15749
15750 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
15751
15752 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
15753 * gimple.c (gimple_asm_clobbers_memory_p): Define.
15754 * ipa-pure-const.c (check_stmt): Call it.
15755 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
15756
15757 2011-04-15 Richard Guenther <rguenther@suse.de>
15758
15759 PR tree-optimization/48290
15760 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
15761 Properly decide inhibiting propagation based on the valueized
15762 operand. Do loop-closed SSA form preserving here ...
15763 (init_copy_prop): ... not here.
15764
15765 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
15766
15767 PR target/48612
15768 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
15769 (*ieee_smax<mode>3): Likewise.
15770
15771 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
15772
15773 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
15774 Replace match_operand with match_dup for the third operand in
15775 these expanders.
15776
15777 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
15778
15779 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
15780 to track processing of conditionals. Update all callers.
15781 (try_combine, simplify_if_then_else): Update.
15782
15783 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
15784
15785 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
15786 -fsched-pressure.
15787
15788 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
15789
15790 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
15791 instead of match_operand for operand 3.
15792
15793 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
15794
15795 * recog.h (insn_operand_data): Add an "allows_mem" field.
15796 * genoutput.c (output_operand_data): Initialize it.
15797 * optabs.c (maybe_legitimize_operand_same_code): New function.
15798 (maybe_legitimize_operand): Use it when matching the original
15799 op->value.
15800
15801 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
15802
15803 * gimplify.c: Fix issues in comments throughout.
15804 (voidify_wrapper_expr): Fix long line.
15805 (build_stack_save_restore): Likewise.
15806 (gimplify_loop_expr): Likewise.
15807 (gimplify_compound_lval): Likewise.
15808 (gimplify_init_ctor_eval): Likewise.
15809 (gimplify_modify_expr_rhs): Likewise.
15810 (omp_notice_threadprivate_variable): Likewise.
15811
15812 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
15813
15814 * cfgexpand.c (expand_call_stmt): Convert the function type to the
15815 original one if this is not a builtin function.
15816
15817 2011-04-14 Jakub Jelinek <jakub@redhat.com>
15818
15819 PR target/48605
15820 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
15821 offset it as needed based on top 2 bits in operands[3], change
15822 MEM mode to SFmode and mask those 2 bits away from operands[3].
15823
15824 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
15825
15826 * c-parser.c (c_parser_objc_protocol_definition): Updated for
15827 change from objc_declare_protocols() to objc_declare_protocol().
15828
15829 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
15830
15831 * config/i386/sse.md (sse4_1): New mode attribute.
15832 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
15833 avx_blend<ssemodesuffix><avxmodesuffix> and
15834 sse4_1_blend<ssemodesuffix> using VF mode iterator.
15835 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
15836 avx_blendv<ssemodesuffix><avxmodesuffix> and
15837 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
15838 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
15839 avx_dp<ssemodesuffix><avxmodesuffix> and
15840 sse4_1_dp<ssemodesuffix> using VF mode iterator.
15841 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
15842 (sse4_1_packusdw): Merge with *avx_packusdw.
15843 (sse4_1_pblendvb): Merge with *avx_pblendvb.
15844 (sse4_1_pblendw): Merge with *avx_pblendw.
15845 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
15846 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
15847 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
15848 VF mode iterator.
15849 (sse4_1_round<ssescalarmodesuffix>): Merge with
15850 *avx_round<ssescalarmodesuffix>.
15851 (aesenc): Merge with *avx_aesenc.
15852 (aesenclast): Merge with *avx_aesenclast.
15853 (aesdec): Merge with *avx_aesdec.
15854 (aesdeclast): Merge with *avx_aesdeclast.
15855 (pclmulqdq): Merge with *pclmulqdq.
15856 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
15857 New predicate.
15858 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
15859
15860 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
15861
15862 PR middle-end/48608
15863 * cfgexpand.c (get_decl_align_unit): Renamed to ...
15864 (align_local_variable): This. Update DECL_ALIGN.
15865 (add_stack_var): Updated.
15866 (expand_one_stack_var): Likewise.
15867
15868 2011-04-14 Richard Guenther <rguenther@suse.de>
15869
15870 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
15871 Remove.
15872 (dse_initialize_block_local_data, dse_leave_block,
15873 record_voperand_set, get_stmt_uid): Likewise.
15874 (dse_possible_dead_store_p): Allow any kind of killing stmt.
15875 (dse_optimize_stmt): Remove voperand set handling code.
15876 Simplify and improve to handle any kind of killing stmt.
15877 (dse_record_phi): Remove.
15878 (dse_enter_block): Simplify.
15879 (tree_ssa_dse): Likewise.
15880 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
15881
15882 2011-04-14 Jan Hubicka <jh@suse.cz>
15883
15884 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
15885 * cgraph.h (struct inline_summary): Move to ipa-inline.h
15886 (cgraph_local_info): Remove inline_summary.
15887 * ipa-cp.c: Include ipa-inline.h.
15888 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
15889 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
15890 accesor.
15891 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
15892 (input_overwrite_node): Do not set inline summary.
15893 (input_node): Do not stream inline summary.
15894 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
15895 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
15896 growth; we do not have inline parameters computed for that anyway.
15897 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
15898 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
15899 (inline_summary_t): New type and VECtor.
15900 (debug_inline_summary, dump_inline_summaries): Declare.
15901 (inline_summary): Use VOCtor.
15902 (estimate_edge_growth): Kill hack computing call stmt size directly.
15903 * lto-section-in.c (lto_section_name): Add inline section.
15904 * ipa-inline-analysis.c: Include lto-streamer.h
15905 (node_removal_hook_holder, node_duplication_hook_holder): New holders
15906 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
15907 (inline_summary_vec): Define.
15908 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
15909 dump_inline_summaries): New functions.
15910 (estimate_function_body_sizes): Properly compute size/time of outgoing
15911 calls.
15912 (compute_inline_parameters): Alloc inline_summary; do not compute
15913 size/time of incomming calls.
15914 (estimate_edge_time): Avoid missing time summary hack.
15915 (inline_read_summary): Read inline summary info.
15916 (inline_write_summary): Write inline summary info.
15917 (inline_free_summary): Free all hooks and inline summary vector.
15918 * lto-streamer.h: Add LTO_section_inline_summary section.
15919 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
15920 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
15921
15922 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
15923
15924 * tree-vectorizer.h (vect_strided_store_supported): Add a
15925 HOST_WIDE_INT argument.
15926 (vect_strided_load_supported): Likewise.
15927 (vect_permute_store_chain): Return void.
15928 (vect_transform_strided_load): Likewise.
15929 (vect_permute_load_chain): Delete.
15930 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
15931 count argument. Check that the count is a power of two.
15932 (vect_strided_load_supported): Likewise.
15933 (vect_permute_store_chain): Return void. Update after above changes.
15934 Assert that the access is supported.
15935 (vect_permute_load_chain): Likewise.
15936 (vect_transform_strided_load): Return void.
15937 * tree-vect-stmts.c (vectorizable_store): Update calls after
15938 above interface changes.
15939 (vectorizable_load): Likewise.
15940 (vect_analyze_stmt): Don't check for strided powers of two here.
15941
15942 2011-04-14 Richard Guenther <rguenther@suse.de>
15943
15944 PR tree-optimization/48590
15945 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
15946 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
15947 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
15948 BUILT_IN_STACK_SAVE.
15949 * tree-ssa-dce.c (propagate_necessity): Handle
15950 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
15951
15952 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
15953
15954 * c-parser.c (c_parser_objc_class_declaration): Updated call to
15955 objc_declare_class.
15956
15957 2011-04-14 Richard Guenther <rguenther@suse.de>
15958
15959 * tree.h (get_object_alignment_1): Declare.
15960 * builtins.c (get_object_alignment_1): Split out worker from ...
15961 (get_object_alignment): ... here.
15962 * fold-const.c (get_pointer_modulus_and_residue): Use
15963 get_object_alignment_1.
15964
15965 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
15966
15967 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
15968 type parameter.
15969 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
15970 parameter. Generalise code to handle arrays as well as vectors.
15971 (vect_setup_realignment): Update accordingly.
15972 * tree-vect-stmts.c (vectorizable_store): Likewise.
15973 (vectorizable_load): Likewise.
15974
15975 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
15976
15977 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
15978 within the per-copy loop.
15979
15980 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
15981
15982 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
15983 in the dump file.
15984
15985 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
15986
15987 * doc/options.texi (Negative): Explicitly mention that the
15988 Negative chain must be circular.
15989
15990 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
15991
15992 * function.h (block_chainon): Declare.
15993 * function.c (block_chainon): Define.
15994
15995 2011-04-14 Anatoly Sokolov <aesok@post.ru>
15996 Eric Weddington <eric.weddington@atmel.com>
15997 Georg-Johann Lay <avr@gjlay.de>
15998
15999 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
16000 New Includes
16001 (avr_init_builtins, avr_expand_builtin,
16002 avr_expand_delay_cycles, avr_expand_unop_builtin,
16003 avr_expand_binop_builtin ): New functions.
16004 (avr_builtin_id): New enum
16005 (struct avr_builtin_description): New struct
16006 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
16007 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
16008
16009 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
16010 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
16011 UNSPECV_DELAY_CYCLES): new enumeration values
16012 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
16013 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
16014 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
16015 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
16016 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
16017 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
16018 "fmulsu"): New insns
16019
16020 * config/avr/avr-c.c: fix line endings
16021 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
16022 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
16023 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
16024 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
16025 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
16026
16027 * doc/extend.texi (AVR Built-in Functions): New node
16028 (Target Builtins): Add documentation of AVR
16029 built-in functions.
16030
16031 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
16032
16033 PR target/44643
16034 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
16035 alone. Error if non-const data has attribute progmem.
16036
16037 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16038
16039 * tree.h (struct tree_constructor): Include tree_typed instead of
16040 tree_common.
16041 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
16042 TS_TYPED instead of TS_COMMON.
16043
16044 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
16045
16046 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
16047 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
16048 (sse2_psadbw): Merge with *avx_psadbw.
16049 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
16050 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
16051 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
16052 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
16053 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
16054 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
16055 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
16056 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
16057 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
16058 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
16059 (ssse3_palignrti): Merge with *avx_palignrti.
16060
16061 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16062
16063 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
16064 * tree-ssanames.c (fini_ssanames): VEC_free it.
16065 (make_ssa_name_fn): Update for VECness of free_ssanames.
16066 (release_ssa_name, release_dead_ssa_names): Likewise.
16067 * tree.h (struct tree_ssa_name): Include tree_typed instead of
16068 tree_common.
16069 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
16070 TS_TYPED instead of TS_COMMON.
16071
16072 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16073
16074 * postreload-gcse.c (gcse_after_reload_main): Add calls to
16075 statistics_counter_event.
16076 * tree-ssa-copyrename.c (stats): Define.
16077 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
16078 statistics_counter_event.
16079 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
16080 (bswap_stats, widen_mul_stats): Define.
16081 (insert_reciprocals): Increment rdivs_inserted.
16082 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
16083 rfuncs_inserted. Add calls to statistics_counter_event.
16084 (execute_cse_sincos_1): Increment inserted.
16085 (execute_cse_sincos): Zeroize sincos_stats. Add call to
16086 statistics_counter_event.
16087 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
16088 of bswap_stats. Add calls to statistics_counter_event.
16089 (convert_mult_to_widen): Increment widen_mults_inserted.
16090 (convert_plusminus_to_widen): Increment maccs_inserted.
16091 (convert_mult_to_fma): Increment fmas_inserted.
16092 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
16093 calls to statistics_counter_event.
16094
16095 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
16096
16097 PR rtl-optimization/48455
16098 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
16099 `temp_costs->mem_cost'.
16100
16101 2011-04-13 Jan Hubicka <jh@suse.cz>
16102
16103 * ipa-inline.h: New file.
16104 * ipa-inline-analysis.c: New file. Broken out of ...
16105 * ipa-inline.c: ... this file; update toplevel comment;
16106 include ipa-inline.h
16107 (inline_summary): Move to ipa-inline.h
16108 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
16109 ipa-inline-analysis.c.
16110 (cgraph_estimate_time_after_inlining): Rename to
16111 estiamte_time_after_inlining; move to ipa-inline-analysis.c
16112 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
16113 to estimate_edge_growth.
16114 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
16115 rename to estimate_size_after_inlining.
16116 (cgraph_mark_inline_edge): Update for new naming convention.
16117 (cgraph_check_inline_limits): Likewise.
16118 (cgraph_edge_badness): Likewise.
16119 (cgraph_decide_recursive_inlining): Likewise.
16120 (cgraph_decide_inlining_of_small_functions): Likewise.
16121 (cgraph_decide_inlining_incrementally): Likewise.
16122 (cgraph_estimate_growth): Rename to estimate_growth; move to
16123 ipa-inline-analysis.c.
16124 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
16125 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
16126 (compute_inline_parameters): Likewise.
16127 (compute_inline_parameters_for_current): Likewise.
16128 (pass_inline_parameters): Likewise.
16129 (inline_indirect_intraprocedural_analysis): Likewise.
16130 (analyze_function): Rename to inline_analyze_function; likewise.
16131 (add_new_function): Move to ipa-inline-analysis.c.
16132 (inline_generate_summary): Likewise.
16133 (inline_read_summary): Likewise.
16134 (inline_write_summary): Likewise.
16135 * Makefile.in (ipa-inline-analysis.c): New file.
16136
16137 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16138
16139 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
16140 * configure: Regenerate.
16141
16142 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
16143
16144 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
16145 instead of tree_common.
16146 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
16147 Likewise.
16148 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
16149 TS_TYPED rather than TS_COMMON.
16150 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
16151
16152 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
16153
16154 PR target/45263
16155 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
16156 r20 around calls of __tablejump_elpm__
16157
16158 2011-04-13 Jakub Jelinek <jakub@redhat.com>
16159
16160 PR middle-end/48591
16161 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
16162 NULL.
16163 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
16164
16165 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
16166
16167 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
16168 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
16169 (cfi_vec): New typedef.
16170 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
16171 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
16172 (cie_cfi_vec): New static variable.
16173 (cie_cfi_head): Delete.
16174 (add_cfi): Accept a cfi_vec * as first argument. All callers and
16175 declaration changed. Use vector rather than list operations.
16176 (new_cfi): Don't initialize the dw_cfi_next field.
16177 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
16178 rather than list operations.
16179 (lookup_cfa): Use vector rather than list operations.
16180 (output_cfis): New argument upto. Accept a cfi_vec rather than
16181 a dw_cfi_ref list head as argument. All callers changed.
16182 Iterate over the vector using upto as a maximum index.
16183 (output_all_cfis): New static function.
16184 (output_fde): Use vector rather than list operations. Use the
16185 new upto argument for output_cfis rather than manipulating a
16186 list.
16187 (dwarf2out_begin_prologue): Change initializations to match
16188 new struct members.
16189 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
16190 from the vector length rather than searching for the end of a list.
16191 Use output_all_cfis.
16192 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
16193
16194 2011-04-13 Nick Clifton <nickc@redhat.com>
16195
16196 * config/rx/rx.md (movmemsi): Do not use this pattern when
16197 volatile pointers are involved.
16198
16199 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
16200
16201 * config/i386/sse.md (pinsrbits): Remove.
16202 (sse2_packsswb): Merge with *avx_packsswb.
16203 (sse2_packssdw): Merge with *avx_packssdw.
16204 (sse2_packuswb): Merge with *avx_packuswb.
16205 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
16206 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
16207 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
16208 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
16209 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
16210 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
16211 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
16212 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
16213 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
16214 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
16215 (sse2_loadld): Merge with *avx_loadld.
16216 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
16217 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
16218 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
16219 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
16220 (vec_concatv2di): Merge with *vec_concatv2di_avx.
16221
16222 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
16223
16224 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
16225 calling TREE_CHAIN.
16226 * print-tree.c (print_node): Likewise.
16227 * tree-inline.c (copy_tree_r): Likewise.
16228 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
16229 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
16230 instead of TS_COMMON.
16231 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
16232 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
16233 (copy_node_stat): Zero TREE_CHAIN only if necessary.
16234 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
16235 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
16236 ...and these...
16237 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
16238 * tree.h: ...here.
16239 (TREE_CHAIN): Check for a TS_COMMON structure.
16240 (TREE_TYPE): Check for a TS_TYPED structure.
16241
16242 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
16243
16244 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
16245 cgraph_get_create_node instead of cgraph_node.
16246
16247 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
16248
16249 * c-parser.c (c_parser_initelt): Updated call to
16250 objc_build_message_expr.
16251 (c_parser_postfix_expression): Likewise.
16252
16253 2011-04-12 Kai Tietz <ktietz@redhat.com>
16254
16255 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
16256 MASK_MS_BITFIELD_LAYOUT bit.
16257
16258 2011-04-12 Jakub Jelinek <jakub@redhat.com>
16259
16260 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
16261 assert it is always true.
16262 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
16263 moves.
16264
16265 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
16266
16267 * c-parser.c (c_lex_one_token): Rewritten conditional used when
16268 compiling Objective-C to be more efficient.
16269
16270 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
16271
16272 * opts-common.c (decode_cmdline_options_to_array): Remove variable
16273 argv_copied.
16274
16275 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16276
16277 * recog.h, genoutput.c, optabs.c: Revert last patch.
16278
16279 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
16280
16281 PR target/48090
16282 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
16283
16284 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16285
16286 * recog.h (insn_operand_data): Add an "allows_mem" field.
16287 * genoutput.c (output_operand_data): Initialize it.
16288 * optabs.c (maybe_legitimize_operand_same_code): New function.
16289 (maybe_legitimize_operand): Use it when matching the original
16290 op->value.
16291
16292 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16293
16294 * genpreds.c (process_define_predicate): Move most processing
16295 to gensupport.c. Continue to validate the expression.
16296 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
16297 (process_define_predicate): Move processing to gensupport.c.
16298 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
16299 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
16300 (compute_predicate_codes): Moved from genrecog.c. Add lineno
16301 argument.
16302 (valid_predicate_name_p): New function, split out from old
16303 genpreds.c:process_define_predicate.
16304 (process_define_predicate): New function, combining code from
16305 old genpreds.c and genrecog.c functions.
16306 (process_rtx): Call it for DEFINE_PREDICATE and
16307 DEFINE_SPECIAL_PREDICATE.
16308
16309 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
16310
16311 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
16312 size of a '%A' memory reference.
16313 (T_DREG, T_QREG): New neon_builtin_type_bits.
16314 (arm_init_neon_builtins): Assert that the load and store operands
16315 are neon_struct_operands.
16316 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
16317 (NEON_ARG_MEMORY): New builtin_arg.
16318 (neon_dereference_pointer): New function.
16319 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
16320 Handle NEON_ARG_MEMORY.
16321 (arm_expand_neon_builtin): Update after above interface changes.
16322 Use NEON_ARG_MEMORY for loads and stores.
16323 * config/arm/predicates.md (neon_struct_operand): New predicate.
16324 * config/arm/iterators.md (V_two_elem): Tweak formatting.
16325 (V_three_elem): Use BLKmode for accesses that have no associated mode.
16326 (V_four_elem): Tweak formatting.
16327 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
16328 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
16329 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
16330 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
16331 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
16332 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
16333 (neon_vst4<mode>): Replace pointer operand with a memory operand.
16334 Use %A in the output template.
16335 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
16336 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
16337 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
16338 the width of the memory access. Remove post-increment.
16339 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
16340
16341 2011-04-12 Nick Clifton <nickc@redhat.com>
16342
16343 * config/v850/v850.c (expand_prologue): Do not use the CALLT
16344 instruction for interrupt handlers if the target is the basic V850
16345 architecture.
16346 (expand_epilogue): Likewise.
16347
16348 2011-04-12 Jakub Jelinek <jakub@redhat.com>
16349
16350 PR rtl-optimization/48549
16351 * combine.c (propagate_for_debug): Also stop after BB_END of
16352 this_basic_block. Process LAST and just stop processing after it.
16353 (combine_instructions): If last_combined_insn has been deleted,
16354 set last_combined_insn to its PREV_INSN.
16355
16356 2011-04-12 Richard Guenther <rguenther@suse.de>
16357
16358 PR tree-optimization/46076
16359 * gimple.h (struct gimple_statement_call): Add fntype field.
16360 (gimple_call_fntype): Adjust.
16361 (gimple_call_set_fntype): New function.
16362 * gimple.c (gimple_build_call_1): Set the call function type.
16363 * gimplify.c (gimplify_call_expr): Preserve the function
16364 type the frontend used for the call.
16365 (gimplify_modify_expr): Likewise.
16366 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
16367 function type.
16368 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
16369 function type.
16370 * tree-ssa.c (useless_type_conversion_p): Function pointer
16371 conversions are useless.
16372
16373 2011-04-12 Martin Jambor <mjambor@suse.cz>
16374
16375 * cgraph.h (cgraph_node): Remove function declaration.
16376 (cgraph_create_node): Declare.
16377 (cgraph_get_create_node): Likewise.
16378 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
16379 Updated all callers.
16380 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
16381 the decl does not already exist. Call cgraph_get_create_node instead
16382 of cgraph_node.
16383 (cgraph_get_create_node): New function.
16384 (cgraph_same_body_alias): Update comment.
16385 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
16386 assert it does not return NULL.
16387 (cgraph_update_edges_for_call_stmt): Likewise.
16388 (cgraph_clone_edge): Likewise.
16389 (cgraph_create_virtual_clone): Likewise.
16390 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
16391 instead of cgraph_node.
16392 (cgraph_add_new_function): Call cgraph_create_node or
16393 cgraph_get_create_node instead of cgraph_node.
16394 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
16395 instead of cgraph_node.
16396 (record_eh_tables): Likewise.
16397 (mark_address): Likewise.
16398 (mark_load): Likewise.
16399 (build_cgraph_edges): Call cgraph_get_create_node instead
16400 of cgraph_node.
16401 (rebuild_cgraph_edges): Likewise.
16402 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
16403 instead of cgraph_node.
16404 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
16405 cgraph_node.
16406 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
16407 cgraph_create_node instead of cgraph_node.
16408 * c-decl.c (finish_function): Call cgraph_get_create_node instead
16409 of cgraph_node.
16410 * lto-cgraph.c (input_node): Likewise.
16411 * lto-streamer-in.c (input_function): Likewise.
16412 * varasm.c (mark_decl_referenced): Likewise.
16413 (assemble_alias): Likewise.
16414
16415 2011-04-12 Martin Jambor <mjambor@suse.cz>
16416
16417 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
16418 instead of cgraph_node and assert it does not return NULL.
16419 * lto-streamer-in.c (lto_read_body): Likewise.
16420 * omp-low.c (new_omp_context): Likewise.
16421 (create_task_copyfn): Likewise.
16422 * tree-emutls.c (lower_emutls_function_body): Likewise.
16423 * matrix-reorg.c (transform_allocation_sites): Likewise.
16424
16425 2011-04-12 Jakub Jelinek <jakub@redhat.com>
16426
16427 PR c/48552
16428 * c-typeck.c (build_asm_expr): Error out on attempts to use
16429 void type outputs or inputs for constraints that allow reg or
16430 don't allow memory.
16431
16432 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
16433 Richard Earnshaw <rearnsha@arm.com>
16434
16435 PR target/48250
16436 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
16437 to use sign-magnitude offsets. Reject unsupported unaligned
16438 cases. Add detailed description in comments.
16439 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
16440 condition from TARGET_32BIT to TARGET_ARM.
16441
16442 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
16443
16444 * tree.h (struct typed_tree): New.
16445 (struct tree_common): Include it instead of tree_base.
16446 (TREE_TYPE): Update for new location of type field.
16447 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
16448 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
16449 (union tree_node): Add typed field.
16450 * treestruct.def (TS_TYPED): New.
16451 * lto-streamer.c (check_handled_ts_structures): Handle it.
16452 * tree.c (MARK_TS_TYPED): New macro.
16453 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
16454
16455 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
16456
16457 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
16458 (force_nonfallthru): Do not alter the loop nest if no basic block
16459 was created.
16460
16461 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
16462
16463 * config/i386/sse.md (VI): New mode iterator.
16464 (SSEMODEI): Remove.
16465 (AVX256MODEI): Ditto.
16466 (AVXMODEF4P): Ditto.
16467 (avxvecpsmode): Ditto.
16468 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
16469 (sse2_andnot<mode>3): New expander.
16470 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
16471 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
16472 (<any_logic:code><mode>3): Use VI mode iterator.
16473 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
16474 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
16475 (*andnottf3): Handle AVX three-operand constraints.
16476 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
16477
16478 2011-04-11 Joseph Myers <joseph@codesourcery.com>
16479 Robert Millan <rmh@gnu.org>
16480
16481 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
16482 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
16483 GNU_USER_DYNAMIC_LINKER64): Define.
16484 (REG_NAME): Don't undefine.
16485 (MD_UNWIND_SUPPORT): Undefine.
16486 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
16487 (REG_NAME): Don't undefine.
16488 (MD_UNWIND_SUPPORT): Undefine.
16489 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
16490
16491 2011-04-11 Joseph Myers <joseph@codesourcery.com>
16492
16493 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
16494 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
16495
16496 2011-04-11 Xinliang David Li <davidxl@google.com>
16497
16498 * value-profile.c (check_ic_target): New function.
16499 (gimple_ic_transform): Sanity check indirect call target.
16500 * gimple-low.c (gimple_check_call_args): Interface change.
16501 (gimple_check_call_matching_types): New function.
16502 * tree-inline.c (tree_can_inline_p): Call new function.
16503
16504 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
16505
16506 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
16507 tree-pretty-print.h & realmpfr.h.
16508
16509 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
16510
16511 PR middle-end/48464
16512 * ira.c (setup_pressure_classes): Fix typo in loop condition.
16513 (setup_allocno_and_important_classes): Ditto.
16514
16515 2011-04-11 Joseph Myers <joseph@codesourcery.com>
16516
16517 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
16518 GNU_USER_DYNAMIC_LINKER.
16519 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
16520 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16521 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
16522 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
16523 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
16524 GNU_USER_TARGET_OS_CPP_BUILTINS.
16525 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
16526 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16527 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
16528 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16529 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
16530 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
16531 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
16532 GNU_USER_TARGET_OS_CPP_BUILTINS.
16533 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16534 GNU_USER_DYNAMIC_LINKER.
16535 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16536 GNU_USER_TARGET_OS_CPP_BUILTINS.
16537 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
16538 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16539 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
16540 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16541 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
16542 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
16543 GNU_USER_DYNAMIC_LINKER64): Remove.
16544 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
16545 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16546 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16547 GNU_USER_DYNAMIC_LINKER.
16548 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16549 GNU_USER_TARGET_OS_CPP_BUILTINS.
16550 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16551 GNU_USER_TARGET_OS_CPP_BUILTINS.
16552 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
16553 to GNU_USER_TARGET_OS_CPP_BUILTINS.
16554 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
16555 GNU_USER_TARGET_OS_CPP_BUILTINS.
16556 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
16557 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
16558 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
16559 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
16560 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16561 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16562 GNU_USER_DYNAMIC_LINKER.
16563 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
16564 GNU_USER_TARGET_OS_CPP_BUILTINS.
16565 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
16566 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16567 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16568 GNU_USER_DYNAMIC_LINKER.
16569 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
16570 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16571 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
16572 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16573 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16574 GNU_USER_DYNAMIC_LINKER.
16575 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
16576 GNU_USER_DYNAMIC_LINKERN32.
16577 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
16578 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
16579 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
16580 GNU_USER_DYNAMIC_LINKER32.
16581 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
16582 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16583 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16584 GNU_USER_DYNAMIC_LINKER.
16585 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
16586 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16587 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
16588 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16589 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
16590 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
16591 GNU_USER_DYNAMIC_LINKER32.
16592 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
16593 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
16594 GNU_USER_DYNAMIC_LINKER.
16595 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
16596 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16597 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
16598 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
16599 GNU_USER_DYNAMIC_LINKER64.
16600 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
16601 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16602 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16603 GNU_USER_DYNAMIC_LINKER.
16604 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
16605 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16606 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
16607 GNU_USER_DYNAMIC_LINKER.
16608 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
16609 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16610 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
16611 GNU_USER_DYNAMIC_LINKER32.
16612 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
16613 GNU_USER_DYNAMIC_LINKER64.
16614 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
16615 GNU_USER_DYNAMIC_LINKER64.
16616 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
16617 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16618 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
16619 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
16620 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
16621
16622 2011-04-11 Joseph Myers <joseph@codesourcery.com>
16623
16624 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
16625 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
16626 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
16627 GNU_USER_DYNAMIC_LINKER.
16628 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
16629 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
16630 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
16631 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
16632 GNU_USER_DYNAMIC_LINKER64.
16633 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
16634 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
16635 GNU_USER_LINK_EMULATION.
16636 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
16637 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
16638 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
16639 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
16640 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
16641 CPP_SPEC, CC1_SPEC): Remove.
16642 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
16643 (GNU_USER_DYNAMIC_LINKER): Define.
16644 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
16645 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
16646 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
16647 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
16648 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
16649 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
16650 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
16651 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
16652 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
16653 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
16654 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
16655 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
16656 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
16657 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
16658 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
16659 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
16660 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16661 GNU_USER_DYNAMIC_LINKER.
16662 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16663 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
16664 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16665 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
16666 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
16667 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
16668 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
16669 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
16670 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
16671 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
16672
16673 2011-04-11 Kai Tietz <ktietz@redhat.com>
16674
16675 PR target/9601
16676 PR target/11772
16677 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
16678 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
16679 comment.
16680 (ix86_is_msabi_thiscall): Removed.
16681 (ix86_is_type_thiscall): Likewise.
16682 (ix86_get_callcvt): New function.
16683 (ix86_comp_type_attributes): Simplify check.
16684 (ix86_function_regparm): Use ix86_get_callcvt for calling
16685 convention attribute checks.
16686 (ix86_return_pops_args): Likewise.
16687 (ix86_static_chain): Likewise.
16688 (x86_this_parameter): Likewise.
16689 (x86_output_mi_thunk): Likewise.
16690 (ix86_function_type_abi): Optimize check for types without attributes.
16691 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
16692 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
16693 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
16694 by flag-values.
16695 (IX86_BASE_CALLCVT): Helper macro.
16696 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
16697 Use ix86_get_callcvt for calling convention attribute checks and avoid
16698 symbol-decoration for stdcall in TARGET_RTD case.
16699 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
16700 Likewise.
16701 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
16702 for declaration.
16703
16704 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
16705
16706 * config/i386/sse.md (VI_128): New mode iterator.
16707 (VI12_128): Rename from SSEMODE12.
16708 (VI14_128): Rename from SSEMODE14.
16709 (VI124_128): New mode iterator.
16710 (VI24_128): Rename from SSEMODE248.
16711 (VI248_128): Rename from SSEMODE248.
16712 (SSEMODE124C8): Remove.
16713 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
16714 (*sse2_<plusminus_insn><mode>3): Merge with
16715 *avx_<plusminus_insn><mode>3.
16716 (*mulv8hi3): Merge with *avx_mulv8hi3.
16717 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
16718 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
16719 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
16720 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
16721 (ashr<mode>3): Merge with *avx_ashr<mode>3.
16722 (lshr<mode>3): Merge with *avx_lshr<mode>3.
16723 (ashl<mode>3): Merge with *avx_ashl<mode>3.
16724 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
16725 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
16726 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
16727 (*<smaxmin:code>v8hi3): Ditto.
16728 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
16729 (*<smaxmin:code>v16qi3): Ditto.
16730 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
16731 (*sse2_eq<mode>3): Ditto.
16732 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
16733 (*sse2_gt<mode>3): Ditto.
16734 (vcondv2di): Split out of vcond<mode>.
16735 (vconduv2di): Split out of vcondu<mode>.
16736
16737 2011-04-11 Richard Guenther <rguenther@suse.de>
16738
16739 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
16740 before calling tree_low_cst.
16741
16742 2011-04-11 Richard Guenther <rguenther@suse.de>
16743
16744 * stor-layout.c (layout_type): Compute all array index size operations
16745 in the original type.
16746 (initialize_sizetypes): Add comment.
16747 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
16748
16749 2011-04-11 Joseph Myers <joseph@codesourcery.com>
16750
16751 * common.opt (Tbss=, Tdata=, Ttext=): New options.
16752
16753 2011-04-11 Martin Jambor <mjambor@suse.cz>
16754
16755 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
16756 of cgraph_node, handle NULL return value.
16757 (cgraph_global_info): Likewise.
16758 (cgraph_rtl_info): Likewise.
16759 * tree-inline.c (estimate_num_insns): Likewise.
16760 * gimplify.c (unshare_body): Likewise.
16761 (unvisit_body): Likewise.
16762 (gimplify_body): Likewise.
16763 * predict.c (optimize_function_for_size_p): Likewise.
16764 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
16765 (call_may_clobber_ref_p_1): Likewise.
16766 * varasm.c (function_section_1): Likewise.
16767 (assemble_start_function): Likewise.
16768
16769 2011-04-11 Martin Jambor <mjambor@suse.cz>
16770
16771 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
16772 of cgraph_node.
16773 * final.c (rest_of_clean_state): Likewise.
16774 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
16775 * passes.c (pass_init_dump_file): Likewise.
16776 (execute_all_ipa_transforms): Likewise.
16777 (function_called_by_processed_nodes_p): Likewise.
16778 * predict.c (maybe_hot_frequency_p): Likewise.
16779 (probably_never_executed_bb_p): Likewise.
16780 (compute_function_frequency): Likewise.
16781 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
16782 (unnest_nesting_tree_1): Likewise.
16783 (lower_nested_functions): Likewise.
16784 * tree-optimize.c (execute_fixup_cfg): Likewise.
16785 (tree_rest_of_compilation): Likewise.
16786 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
16787 * tree-sra.c (ipa_early_sra): Likewise.
16788 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
16789 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
16790 * ipa.c (record_cdtor_fn): Likewise.
16791 * ipa-inline.c (cgraph_early_inlining): Likewise.
16792 (compute_inline_parameters_for_current): Likewise.
16793 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
16794 * ipa-pure-const.c (local_pure_const): Likewise.
16795 * ipa-split.c (split_function): Likewise.
16796 (execute_split_functions): Likewise.
16797 * cgraphbuild.c (build_cgraph_edges): Likewise.
16798 (rebuild_cgraph_edges): Likewise.
16799 (cgraph_rebuild_references): Likewise.
16800 (remove_cgraph_callee_edges): Likewise.
16801 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
16802 (verify_cgraph_node): Likewise.
16803 (cgraph_analyze_functions): Likewise.
16804 (cgraph_preserve_function_body_p): Likewise.
16805 (save_inline_function_body): Likewise.
16806 (save_inline_function_body): Likewise.
16807 * tree-inline.c (copy_bb): Likewise.
16808 (optimize_inline_calls): Likewise.
16809
16810 2011-04-11 Martin Jambor <mjambor@suse.cz>
16811
16812 PR tree-optimization/48195
16813 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
16814 ipa_check_create_edge_args.
16815 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
16816 ipa_check_create_edge_args.
16817 * ipa-inline.c (inline_generate_summary): Do not call
16818 ipa_check_create_node_params and ipa_check_create_edge_args.
16819 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
16820 ipa_check_create_edge_args.
16821
16822 2011-04-09 Anatoly Sokolov <aesok@post.ru>
16823
16824 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
16825 instead of loop.
16826 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
16827 * function.c (record_hard_reg_sets): Likewise.
16828 * ira.c (compute_regs_asm_clobbered): Likewise.
16829 * sched-deps.c (sched_analyze_1): Likewise.
16830 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
16831
16832 2011-04-09 Xinliang David Li <davidxl@google.com>
16833
16834 PR tree-optimization/PR48484
16835 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
16836 has_valid_pred lazily
16837
16838 2011-04-09 Duncan Sands <baldrick@free.fr>
16839
16840 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
16841
16842 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
16843
16844 * combine.c (combine_validate_cost): Adjust comments. Set registered
16845 cost of I0 to zero at the end, if any.
16846
16847 2011-04-08 Xinliang David Li <davidxl@google.com>
16848
16849 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
16850 to insane profile data.
16851
16852 2011-04-08 Xinliang David Li <davidxl@google.com>
16853
16854 * ipa-cp.c (ipcp_update_profiling): Correct
16855 negative scale factor due to insane profile data.
16856
16857 2011-04-08 Xinliang David Li <davidxl@google.com>
16858
16859 * final.c (dump_basic_block_info): New function.
16860 (final): Dump basic block.
16861 (final_scan_insn): Remove old dump.
16862
16863 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
16864
16865 PR target/47829
16866 * config.gcc (i386-*-freebsd): Disable unwind table generation for
16867 crtbegin/crtend.
16868
16869 2011-04-08 Michael Matz <matz@suse.de>
16870
16871 PR middle-end/48389
16872 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
16873 functions.
16874 (rebuild_jump_labels): Call rebuild_jump_labels_1.
16875 * rtl.h (rebuild_jump_labels_chain): Declare.
16876 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
16877 insns inserted on edges.
16878
16879 2011-04-08 Joseph Myers <joseph@codesourcery.com>
16880
16881 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
16882 * config/arm/arm-arches.def: New.
16883 * config/arm/arm-opts.h: New.
16884 * config/arm/genopt.sh: New.
16885 * config/arm/arm-tables.opt: New (generated).
16886 * config/arm/arm.c (arm_handle_option, arm_target_help,
16887 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
16888 (all_architectures): Get most table contents from arm-arches.def.
16889 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
16890 arm_selected_tune here.
16891 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
16892 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
16893 (march=, mcpu=, mtune=): Use Enum and Var.
16894 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
16895 (arm.o): Update dependencies.
16896
16897 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
16898
16899 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
16900 of header_file.
16901 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
16902 (write_typed_alloc_defns): Likewise.
16903 (main): Calls write_typed_alloc_defns with output_header.
16904
16905 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
16906
16907 PR inline-asm/48435
16908 * ira-color.c (setup_profitable_hard_regs): Add comments.
16909 Don't take prohibited hard regs into account.
16910 (setup_conflict_profitable_regs): Rename to
16911 get_conflict_profitable_regs.
16912 (check_hard_reg_p): Check prohibited hard regs.
16913
16914 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
16915
16916 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
16917 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
16918 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
16919
16920 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16921
16922 PR target/48366
16923 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
16924 move from floating point to shift amount register.
16925 (emit_move_sequence): Remove secondary reload support for floating
16926 point to shift amount amount register copies.
16927 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
16928 amount register copies.
16929 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
16930 register, return false if mode isn't a scalar integer mode.
16931 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
16932
16933 2011-04-08 Richard Guenther <rguenther@suse.de>
16934
16935 * gimple.c (gimple_call_flags): Remove kludge.
16936
16937 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
16938
16939 * sel-sched.c (sel_region_init): Move call to
16940 sel_setup_region_sched_flags after setup_current_loop_nest.
16941
16942 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
16943
16944 PR rtl-optimization/48272
16945 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
16946 init_insn_reg_pressure_info. Adjust a caller.
16947 * sched-int.h (init_insn_reg_pressure_info): Declare.
16948 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
16949 when sched-pressure is enabled.
16950
16951 2011-04-08 Richard Guenther <rguenther@suse.de>
16952
16953 * gimple.c (gimple_set_modified): Do not queue calls to
16954 MODIFIED_NORETURN_CALLS here ...
16955 * tree-ssa-operands.c (update_stmt_operands): ... but here.
16956
16957 2011-04-08 Richard Guenther <rguenther@suse.de>
16958
16959 PR lto/48467
16960 * toplev.c (lang_dependent_init): Do not open asm_out_file
16961 in WPA mode, nor perform debug machinery initialization.
16962 (finalize): Do not unlink asm_out_file in WPA mode.
16963
16964 2011-04-08 Richard Guenther <rguenther@suse.de>
16965
16966 * gimple.h (gimple_call_fntype): New function.
16967 (gimple_call_return_type): Use it.
16968 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
16969 * gimple-low.c (gimple_check_call_args): Likewise.
16970 * gimple.c (gimple_call_flags): Likewise.
16971 (gimple_call_arg_flags): Likewise.
16972 (gimple_call_return_flags): Likewise.
16973 * tree-cfg.c (verify_gimple_call): Likewise.
16974 (do_warn_unused_result): Likewise.
16975 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
16976 * value-prof.c (gimple_ic_transform): Fix fndecl check.
16977
16978 2011-04-08 Dmitry Melnik <dm@ispras.ru>
16979
16980 PR rtl-optimization/48235
16981 * sel-sched.c (code_motion_process_successors): Recompute the last
16982 insn in basic block if control flow changed.
16983 (code_motion_path_driver): Ditto. Recompute the first insn as well.
16984 Update condition for ilist_remove.
16985
16986 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
16987
16988 PR rtl-optimization/48302
16989 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
16990 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
16991 it to record added preheader blocks.
16992 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
16993 on to sel_add_loop_preheaders.
16994 (sel_region_init): Move call to setup_current_loop_nest after
16995 sel_init_bbs.
16996
16997 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
16998
16999 PR target/48273
17000 * cfgloop.h (loop_has_exit_edges): New helper.
17001 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
17002 non-clonable.
17003 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
17004 that have no exit edges.
17005
17006 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
17007
17008 PR rtl-optimization/48442
17009 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
17010 all callers. Adjust assert.
17011
17012 2011-04-08 Jakub Jelinek <jakub@redhat.com>
17013
17014 PR tree-optimization/48377
17015 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
17016 is_packed to true even for types with smaller TYPE_ALIGN than
17017 TYPE_SIZE.
17018
17019 2011-04-08 Richard Guenther <rguenther@suse.de>
17020
17021 PR bootstrap/48513
17022 * doc/tm.texi: Re-generate.
17023
17024 2011-04-08 Wei Guozhi <carrot@google.com>
17025
17026 PR target/47855
17027 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
17028 * config/arm/arm.c (arm_attr_length_push_multi): New function.
17029 * config/arm/arm.md (*push_multi): Change the length computation to
17030 call a C function.
17031
17032 2011-04-08 Anatoly Sokolov <aesok@post.ru>
17033
17034 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
17035 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
17036 * doc/tm.texi: Regenerate.
17037 * system.h (ASM_OUTPUT_BSS): Poison.
17038 * varasm.c (asm_output_bss): Remove function.
17039 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
17040
17041 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
17042 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
17043 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
17044 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17045 Likewise.
17046 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17047 Likewise.
17048 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
17049 Likewise.
17050 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
17051
17052 2011-04-07 Joseph Myers <joseph@codesourcery.com>
17053
17054 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
17055 EnumValue lines.
17056
17057 2011-04-07 Joseph Myers <joseph@codesourcery.com>
17058
17059 * config/m68k/m68k.c (m68k_handle_option): Don't handle
17060 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
17061 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
17062 OPT_mcpu32.
17063 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
17064 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
17065 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
17066 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
17067 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
17068 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
17069 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
17070 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
17071 options. Don't map other m68k options manually. Don't handle
17072 old-style options as canonical.
17073 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
17074 * doc/install.texi (m68k-*-*): Document binutils version requirement.
17075
17076 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
17077
17078 * basic-block.h (force_nonfallthru): Move to...
17079 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
17080 (force_nonfallthru): ...here.
17081 * cfghooks.c (force_nonfallthru): New function.
17082 * cfgrtl.c (force_nonfallthru): Rename into...
17083 (rtl_force_nonfallthru): ...this.
17084 (commit_one_edge_insertion): Do not set AUX field.
17085 (commit_edge_insertions): Do not discover new basic blocks.
17086 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
17087 (cfg_layout_rtl_cfg_hooks): Likewise.
17088 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
17089 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
17090 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
17091
17092 2011-04-07 Anatoly Sokolov <aesok@post.ru>
17093
17094 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
17095 Remove macros.
17096
17097 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
17098
17099 * config/i386/sse.md: Update copyright year.
17100 (avxcvtvecmode): Remove.
17101 (sse_movhlps): Merge with *avx_movhlps.
17102 (sse_movlhps): Merge with *avx_movlhps.
17103 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
17104 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
17105 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
17106 (sse_loadhps): Merge with *avx_loadhps.
17107 (sse_storelps): Merge with *avx_storelps.
17108 (sse_loadlps): Merge with *avx_loadlps.
17109 (sse_movss): Merge with *avx_movss.
17110 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
17111 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
17112 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
17113 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
17114 (vec_set<mode>_0): Ditto.
17115 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
17116 (sse4_1_insertps): Merge with *avx_insertps.
17117 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
17118 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
17119 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
17120 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
17121 (sse2_storehpd): Merge with *avx_storehpd.
17122 (sse2_loadhpd): Merge with *avx_loadhpd.
17123 (sse2_loadlpd): Merge with *avx_loadlpd.
17124 (sse2_movsd): Merge with *avx_movsd.
17125 (*vec_concatv2df): Merge with *vec_concatv2df.
17126
17127 2011-04-07 Jakub Jelinek <jakub@redhat.com>
17128
17129 PR debug/48343
17130 * combine.c (combine_instructions): Add last_combined_insn,
17131 update it if insn is after it, pass it to all try_combine calls.
17132 (try_combine): Add last_combined_insn parameter, pass it instead of
17133 i3 to propagate_for_debug.
17134
17135 2011-04-07 Nick Clifton <nickc@redhat.com>
17136
17137 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
17138 to handle MDR <-> data register transfers.
17139 (movhi_internal): Likewise.
17140
17141 2011-04-07 Alan Modra <amodra@gmail.com>
17142
17143 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
17144 previous stack info.
17145
17146 2011-04-07 Tom de Vries <tom@codesourcery.com>
17147
17148 PR target/43920
17149 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
17150 flow_find_cross_jump. Swap variables to implement backward replacement.
17151 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
17152
17153 2011-04-07 Tom de Vries <tom@codesourcery.com>
17154
17155 PR target/43920
17156 * cfgcleanup.c (walk_to_nondebug_insn): New function.
17157 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
17158 and bb2.
17159 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
17160 src1 or src2. Redirect edges to the last basic block. Update
17161 frequency and count on multiple basic blocks in case of fallthru.
17162
17163 2011-04-07 Tom de Vries <tom@codesourcery.com>
17164
17165 PR target/43920
17166 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
17167 function.
17168 (old_insns_match_p): Change return type. Replace return false/true
17169 with return dir_none/dir_both. Use can_replace_by.
17170 (flow_find_cross_jump): Add dir_p parameter. Init replacement
17171 direction from dir_p. Register replacement direction in dir, last_dir
17172 and afterlast_dir. Handle new return type of old_insns_match_p using
17173 merge_dir. Return replacement direction in dir_p.
17174 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
17175 return type of old_insns_match_p.
17176 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
17177 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
17178 flow_find_cross_jump.
17179 * basic-block.h (enum replace_direction): New type.
17180 (flow_find_cross_jump): Add parameter to declaration.
17181
17182 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
17183
17184 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
17185 (AVXMODEDCVTPS2DQ): Ditto.
17186 (VEC_FLOAT_MODE): Ditto.
17187 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
17188 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
17189 (<any_logic:code><mode>3): Use VF mode iterator.
17190 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
17191 Use VF mode iterator.
17192 (copysign<mode>3): Use VF mode iterator.
17193 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
17194 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
17195 (*<any_logic:code><MODEF:mode>3): Merge with
17196 *avx_<any_logic:code><MODEF:mode>3.
17197 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
17198 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
17199 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
17200 (avx_cvtdq2ps<avxmodesuffix>): Remove.
17201 (sse2_cvtdq2ps): Use %v modifier.
17202 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
17203 (avx_cvtps2dq<avxmodesuffix>): Remove.
17204 (sse2_cvtps2dq): Use %v modifier.
17205 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
17206 (avx_cvttps2dq<avxmodesuffix>): Remove.
17207 (sse2_cvttps2dq): Use %v modifier.
17208 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
17209 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
17210 (sse2_cvtsd2siq): Fix insn template.
17211 (sse2_cvtsd2siq_2): Ditto.
17212 (sse2_cvttsd2siq): Ditto.
17213 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
17214 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
17215
17216 2011-04-06 Joseph Myers <joseph@codesourcery.com>
17217
17218 * gcov-io.c: Use GCC Runtime Library Exception.
17219
17220 2011-04-06 Jakub Jelinek <jakub@redhat.com>
17221
17222 PR debug/48466
17223 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
17224 as base_reg whatever register reg has been eliminated to, instead
17225 of hardcoding STACK_POINTER_REGNUM.
17226
17227 2011-04-06 Joseph Myers <joseph@codesourcery.com>
17228
17229 * doc/tm.texi.in: Document C target hooks as separate from general
17230 target hooks.
17231 * doc/tm.texi: Regenerate.
17232 * genhooks.c (struct hook_desc): Add docname field.
17233 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
17234 docname field.
17235 (hook_array): Include c-target.def.
17236 (emit_documentation): Use docname field in output.
17237 (emit_init_macros): Take docname argument. Only emit definitions
17238 for hooks matching docname.
17239 (main): Expect additional arguments in all cases. Pass argument
17240 to emit_init_macros.
17241 * target.def: Move initial macro definitions and comments to
17242 target-hooks-macros.h.
17243 (gcc_targetcm): Move to c-family/c-target.def.
17244 * target.h (targetcm): Move declaration to c-family/c-target.h.
17245 * targhooks.c (default_handle_c_option): Move to
17246 c-family/c-opts.c.
17247 * targhooks.h (default_handle_c_option): Move declaration to
17248 c-family/c-common.h.
17249 * target-hooks-macros.h: New file.
17250 * config.gcc (target_has_targetcm): Define and use to add to
17251 c_target_objs and cxx_target_objs.
17252 * config/default-c.c: New file.
17253 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
17254 of target.h and target-def.h.
17255 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
17256 (darwin_objc_construct_string, darwin_cfstring_ref_p,
17257 darwin_check_cfstring_format_arg): Make static.
17258 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
17259 TARGET_STRING_OBJECT_REF_TYPE_P,
17260 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
17261 * config/darwin-protos.h (darwin_objc_construct_string,
17262 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
17263 declare.
17264 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
17265 TARGET_STRING_OBJECT_REF_TYPE_P,
17266 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
17267 * config/t-darwin (darwin-c.o): Update dependencies.
17268 * system.h (TARGET_HAS_TARGETCM): Poison.
17269 * Makefile.in (TARGET_H): Update.
17270 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
17271 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
17272 (default-c.o): New target.
17273 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
17274 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
17275 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
17276 c-target.def.
17277 (build/genhooks.o): Update dependencies.
17278
17279 2011-04-06 Richard Guenther <rguenther@suse.de>
17280
17281 * ipa-inline.c (enum inlining_mode): Remove.
17282 (cgraph_flatten): Use some other token.
17283 (cgraph_edge_early_inlinable_p): New function, split out from ...
17284 (cgraph_perform_always_inlining): New function, split out from ...
17285 (cgraph_decide_inlining_incrementally): ... here.
17286 (cgraph_mark_inline_edge): Adjust.
17287 (cgraph_early_inlining): Re-structure.
17288 (pass_early_inline): Require SSA form.
17289
17290 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
17291 Julian Brown <julian@codesourcery.com>
17292 Mark Shinwell <shinwell@codesourcery.com>
17293
17294 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
17295 LO_REGS only for Thumb-1.
17296 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
17297 be used in short instructions when optimising for size on Thumb-2.
17298
17299 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
17300
17301 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
17302 associated with user returns to be preserved.
17303
17304 2011-04-06 Tristan Gingold <gingold@adacore.com>
17305
17306 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
17307 symbol_queue_size, DBXOUT_DECR_NESTING,
17308 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
17309 if XCOFF_DEBUGGING_INFO.
17310
17311 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
17312
17313 * config/i386/i386.md (attribute isa): New.
17314 (attribute enabled): New.
17315 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
17316 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
17317 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
17318 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
17319 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
17320 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17321 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
17322 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
17323
17324 * config/i386/sse.md (VF): New mode iterator.
17325 (VF1): Ditto.
17326 (VF2): Ditto.
17327 (VF_128): Ditto.
17328 (SSEMODEF4): Remove.
17329 (attribute sse): Handle V8SF and V4DF modes.
17330 (<absneg:code><mode>2): Use VF mode iterator.
17331 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
17332 mode iterator.
17333 (<plusminus_insn><mode>3): Use VF mode iterator.
17334 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
17335 Use VF mode iterator.
17336 (<sse>_vm<plusminus_insn><mode>3): Merge with
17337 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
17338 (mul<mode>3): Use VF mode iterator.
17339 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
17340 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
17341 mode iterator.
17342 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
17343 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
17344 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
17345 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
17346 mode iterator.
17347 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
17348 Use VF1 mode iterator.
17349 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
17350 (sqrt<VF2:mode>2): New expander.
17351 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
17352 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
17353 and sqrtv2df2. Use VF mode iterator.
17354 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
17355 mode iterator.
17356 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
17357 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
17358 Use VF1 mode iterator.
17359 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
17360 (<smaxmin:code><mode>3): Use VF mode iterator.
17361 (*<smaxmin:code><mode>3_finite): Merge with
17362 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
17363 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
17364 (<sse>_vm<smaxmin:code><mode>2): Merge with
17365 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
17366 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
17367 mode iterator.
17368 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
17369 mode iterator.
17370 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
17371 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
17372 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
17373 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
17374 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
17375 VF mode iterator.
17376 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
17377 Use VF_128 mode iterator.
17378 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
17379 mode iterator.
17380 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
17381 VF_128 mode iterator.
17382 (vcond<mode>): Use VF mode iterator.
17383 * config/i386/predicates.md (sse_comparison_operator): Merge with
17384 avx_comparison_float_operator. Do not declare as special_predicate.
17385 * config/i386/i386.c (struct builtin_description): Update for renamed
17386 compare patterns.
17387 (ix86_expand_args_builtin): Ditto.
17388 (ix86_expand_sse_compare_mask): Ditto.
17389
17390 2011-04-06 Richard Guenther <rguenther@suse.de>
17391
17392 * tree-inline.c (estimate_num_insns): For calls simply account
17393 for all passed arguments and a used return value.
17394
17395 2011-04-06 Richard Guenther <rguenther@suse.de>
17396
17397 PR tree-optimization/47663
17398 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
17399 call_stmt_time fields.
17400 (cgraph_edge_inlinable_p): Declare.
17401 (cgraph_edge_recursive_p): New inline function.
17402 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
17403 (cgraph_clone_edge): Copy it.
17404 * ipa-inline.c (cgraph_estimate_edge_time): New function.
17405 Account for call stmt time.
17406 (cgraph_estimate_time_after_inlining): Take edge argument.
17407 (cgraph_estimate_edge_growth): Account call stmt size.
17408 (cgraph_estimate_size_after_inlining): Take edge argument.
17409 (cgraph_mark_inline_edge): Adjust.
17410 (cgraph_check_inline_limits): Likewise.
17411 (cgraph_recursive_inlining_p): Remove.
17412 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
17413 (cgraph_decide_recursive_inlining): Take edge argument and
17414 adjust.
17415 (cgraph_decide_inlining_of_small_functions): Do not avoid
17416 diags for recursive inlining here.
17417 (cgraph_flatten): Adjust.
17418 (cgraph_decide_inlining_incrementally): Likewise.
17419 (estimate_function_body_sizes): Remove call cost handling.
17420 (compute_inline_parameters): Initialize caller edge call costs.
17421 (cgraph_estimate_edge_growth): New function.
17422 (cgraph_estimate_growth): Use it.
17423 (cgraph_edge_badness): Likewise.
17424 (cgraph_check_inline_limits): Take an edge argument.
17425 (cgraph_decide_inlining_of_small_functions): Adjust.
17426 (cgraph_decide_inlining): Likewise.
17427 * tree-inline.c (estimate_num_insns): Only account for call
17428 return value if it is used.
17429 (expand_call_inline): Avoid diagnostics on recursive inline
17430 functions here.
17431 * lto-cgraph.c (lto_output_edge): Output edge call costs.
17432 (input_edge): Input edge call costs.
17433
17434 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17435
17436 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
17437
17438 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
17439
17440 * doc/invoke.texi (Spec Files): Fix typo.
17441
17442 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
17443
17444 * profile.c (branch_prob): Move declaration of local variable. Remove
17445 obsolete ??? comment. Expand the location explicitly instead of using
17446 the LOCATION_FILE and LOCATION_LINE macros.
17447
17448 2011-04-06 Wei Guozhi <carrot@google.com>
17449
17450 PR target/47855
17451 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
17452 (arm_cond_branch): Likewise.
17453 (arm_cond_branch_reversed): Likewise.
17454 (arm_jump): Likewise.
17455 (push_multi): Likewise.
17456 * config/arm/constraints.md (Py): New constraint.
17457
17458 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17459
17460 PR bootstrap/48471
17461 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
17462 Move these...
17463 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
17464 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
17465 #ifdef DBX_DEBUGGING_INFO.
17466
17467 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
17468
17469 PR bootstrap/48403
17470 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
17471 if old and new states differ.
17472
17473 2011-04-05 Joseph Myers <joseph@codesourcery.com>
17474
17475 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
17476 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
17477 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
17478 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
17479 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
17480 mcfv4e): Use Alias.
17481 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
17482 ColdFire options to -mcpu= options.
17483
17484 2011-04-05 Jeff Law <law@redhat.com>
17485
17486 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
17487 check if BB is a successor of LOOP->header and return
17488 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
17489
17490 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
17491
17492 * cprop.c (struct reg_use): Remove.
17493 (reg_use_table): Make an array of RTX.
17494 (find_used_regs, constprop_register, local_cprop_pass,
17495 bypass_block): Simplify users of reg_use_table.
17496 (cprop_insn): Likewise. Iterate if copy propagation succeeded
17497 on one of the uses found by find_used_regs.
17498
17499 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17500
17501 PR bootstrap/48469
17502 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
17503 declaration.
17504
17505 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17506
17507 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
17508 as an rtx.
17509 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
17510
17511 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
17512
17513 PR middle-end/48441
17514 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
17515
17516 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17517
17518 * combine.c: Include obstack.h.
17519 (struct insn_link): Define.
17520 (uid_log_links): Adjust type.
17521 (FOR_EACH_LOG_LINK): New macro.
17522 (insn_link_obstack): Declare.
17523 (alloc_insn_link): Define.
17524 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
17525 type of link variables.
17526 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
17527 (try_combine, record_promoted_values, distribute_notes): Likewise.
17528 (distribute_links): Likewise. Tweak prototype.
17529 (clear_log_links): Delete.
17530 (adjust_for_new_dest): Call alloc_insn_link.
17531 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
17532
17533 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17534
17535 * gcse.c (modify_mem_list): Convert to an array of VECs.
17536 (canon_modify_mem_list, compute_transp): Tweak formatting.
17537 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
17538 (load_killed_in_block_p): Likewise.
17539 (record_last_mem_set_info): Likewise.
17540 (clear_modify_mem_tables): Likewise.
17541
17542 2011-04-05 Tom de Vries <tom@codesourcery.com>
17543
17544 PR middle-end/48461
17545 * function.c (emit_use_return_register_into_block): Only define if
17546 HAVE_return.
17547
17548 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
17549
17550 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
17551
17552 2011-04-05 Joseph Myers <joseph@codesourcery.com>
17553
17554 * config/rx/rx-opts.h: New.
17555 * config/rx/rx.c (rx_cpu_type): Remove.
17556 (rx_handle_option): Don't assert that global structures are in
17557 use. Access variables via opts pointer. Defer most handling of
17558 OPT_mint_register_. Use error_at.
17559 (rx_option_override): Handle deferred OPT_mint_register_ here.
17560 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
17561 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
17562 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
17563 (rx_cpu_types): New Enum and EnumValue entries.
17564 (mint-register=): Use Defer and use Var accordingly.
17565
17566 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17567
17568 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
17569 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
17570 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
17571 Move these...
17572 (debug_free_queue, debug_nesting, symbol_queue_index):
17573 ...and these...
17574 * dbxout.c: ...to here. Make static.
17575
17576 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
17577
17578 * gcse.c (modify_pair): Define. Define a VEC of it.
17579 (canon_modify_mem_list): Convert to an array of VECs.
17580 (free_insn_expr_list_list): Delete.
17581 (clear_modify_mem_tables): Call VEC_free instead.
17582 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
17583 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
17584 (canon_list_insert, compute_transp): Likewise.
17585
17586 2011-04-05 Tom de Vries <tom@codesourcery.com>
17587
17588 PR target/43920
17589 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
17590 for size.
17591
17592 2011-04-05 Tom de Vries <tom@codesourcery.com>
17593
17594 PR target/43920
17595 * function.c (emit_use_return_register_into_block): New function.
17596 (thread_prologue_and_epilogue_insns): Use
17597 emit_use_return_register_into_block.
17598
17599 2011-04-05 Tom de Vries <tom@codesourcery.com>
17600
17601 PR target/43920
17602 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
17603 insn.
17604
17605 2011-04-05 Tom de Vries <tom@codesourcery.com>
17606
17607 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
17608
17609 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
17610
17611 * config/arm/arm.md (define_constants for unspec): Replace with
17612 define_c_enum.
17613 (define_constants for unspecv): Replace with define_c_enum.
17614 * config/arm/neon.md (define_constants for unspec): Replace with
17615 define_c_enum.
17616
17617 2011-04-04 Richard Henderson <rth@redhat.com>
17618
17619 PR bootstrap/48400
17620 * dwarf2out.c (output_line_info): Always emit line info from
17621 at least one section.
17622 (dwarf2out_init): Create text_section_line_info here ...
17623 (set_cur_line_info_table): ... not here.
17624
17625 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
17626
17627 PR target/48380
17628 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
17629 not called.
17630
17631 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
17632
17633 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
17634
17635 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
17636 (expr_equiv_p): Remove.
17637 (insert_set_in_table): Look at <dest, src> pair instead of expr.
17638 (hash_scan_set): Update call to insert_set_in_table.
17639 (dump_hash_table): Dump <dest, src> pair.
17640 (lookup_set): Simplify. Lookup <dest, src> pair.
17641 (compute_transp): Remove, fold heavily simplified code into...
17642 (compute_local_properties): ...here. Expect COMP and TRANSP
17643 unconditionally.
17644 (find_avail_set): Take set directly from struct expr.
17645 (find_bypass-set): Likewise.
17646 (bypass_block): Likewise.
17647 (cprop_insn): Likewise. Remove redundant INSN_P test.
17648
17649 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
17650 checks on form of COND from find_implicit_sets to here.
17651 (find_implicit_sets): Cleanup control flow. Split critical edges
17652 if it exposes implicit sets. Allocate/resize implicit_sets as
17653 necessary.
17654 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
17655 changed something. Run df_analyze after find_implicit_sets if any
17656 edges were split. Do not allocate implicit_sets here.
17657
17658 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
17659 (gcse_obstack): Renamed to cprop_obstack.
17660 (GNEW, GNEWVEC, GNEWVAR): Remove.
17661 (gmalloc): Remove.
17662 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
17663 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
17664 (gcse_alloc): Likewise, and rename to cprop_alloc.
17665 (alloc_gcse_men, free_gcse_mem): Remove.
17666 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
17667 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
17668 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
17669
17670 * cprop.c (oprs_not_set_p): Remove.
17671 (mark_set, mark_clobber): Remove.
17672 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
17673 (reg_not_set_p): New function.
17674 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
17675 (cprop_insn): Likewise.
17676 (cprop_jump): Use FOR_EACH_EDGE.
17677
17678 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
17679
17680 PR bootstrap/48403
17681 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
17682 (rank_for_schedule): Use scheduled_insns vector instead of
17683 last_scheduled_insn.
17684 (ok_for_early_queue_removal): Likewise.
17685 (queue_to_ready): Search forward in nonscheduled_insns_begin if
17686 we have a dbg_cnt.
17687 (choose_ready): Likewise.
17688 (commit_schedule): Use VEC_iterate.
17689 (schedule_block): Initialize nonscheduled_insns_begin. If we have
17690 a dbg_cnt, use it and ensure the first insn is in the ready list.
17691 (haifa_sched_init): Allocate scheduled_insns.
17692 (sched_extend_ready_list): Don't allocate it; reserve space.
17693 (haifa_sched_finish): Free it.
17694
17695 2011-04-04 Joseph Myers <joseph@codesourcery.com>
17696
17697 * optc-gen.awk: Always remove type from Variable entry before
17698 recording in var_seen.
17699
17700 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
17701
17702 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
17703 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
17704 call to tidy_fallthru_edges.
17705
17706 2011-04-04 Joseph Myers <joseph@codesourcery.com>
17707
17708 * doc/options.texi (ToLower): Document.
17709 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
17710 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
17711 * opts.h (cl_option): Add cl_tolower field.
17712 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
17713 arguments with lowercase strings.
17714 * config/rx/rx.opt (mcpu=): Add ToLower.
17715 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
17716 argument.
17717
17718 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
17719
17720 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
17721
17722 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
17723
17724 * config/vax/vax.c: Include reload.h.
17725
17726 2011-04-04 Anatoly Sokolov <aesok@post.ru>
17727
17728 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
17729 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
17730 (sparc_preferred_reload_class): New function.
17731
17732 2011-04-04 Jakub Jelinek <jakub@redhat.com>
17733
17734 PR debug/48401
17735 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
17736 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
17737
17738 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
17739
17740 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
17741 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
17742
17743 2011-04-03 Anatoly Sokolov <aesok@post.ru>
17744
17745 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
17746 (ASM_OUTPUT_ALIGNED_BSS): Define.
17747
17748 2011-04-03 Michael Matz <matz@suse.de>
17749
17750 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
17751 and next_slot members.
17752 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
17753 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
17754 (lto_streamer_cache_append): Declare.
17755 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
17756 unsigned index, remove offset parameter, ensure that we append
17757 or update existing entries.
17758 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
17759 parameter, update next_slot for append.
17760 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
17761 parameter.
17762 (lto_streamer_cache_insert_at): Likewise.
17763 (lto_streamer_cache_append): New function.
17764 (lto_streamer_cache_lookup): Use unsigned index.
17765 (lto_streamer_cache_get): Likewise.
17766 (lto_record_common_node): Don't test tree_node_can_be_shared.
17767 (preload_common_node): Adjust call to lto_streamer_cache_insert.
17768 (lto_streamer_cache_delete): Don't free offsets member.
17769 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
17770 (lto_output_string_with_length): Use lto_output_data_stream.
17771 (lto_output_tree_header): Remove ix parameter, don't write it.
17772 (lto_output_builtin_tree): Likewise.
17773 (lto_write_tree): Adjust callers to above, don't track and write
17774 offset, write unsigned index.
17775 (output_unreferenced_globals): Don't emit all global vars.
17776 (write_global_references): Use unsigned indices.
17777 (lto_output_decl_state_refs): Likewise.
17778 (write_symbol): Likewise.
17779 * lto-streamer-in.c (lto_input_chain): Move earlier.
17780 (input_function): Use unsigned index.
17781 (input_alias_pairs): Don't read and then ignore all global vars.
17782 (lto_materialize_tree): Remove ix_p parameter, don't read index,
17783 don't pass it back, use lto_streamer_cache_append.
17784 (lto_register_var_decl_in_symtab): Use unsigned index.
17785 (lto_register_function_decl_in_symtab): Likewise.
17786 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
17787 index.
17788 (lto_get_builtin_tree): Don't read index, use
17789 lto_streamer_cache_append.
17790 (lto_read_tree): Adjust call to lto_materialize_tree.
17791
17792 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
17793 don't use function calls in arguments to MIN.
17794
17795 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
17796 twice.
17797
17798 * gimple.c (gimple_type_leader_entry): Mark deletable.
17799
17800 2011-04-03 Alan Modra <amodra@gmail.com>
17801
17802 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
17803
17804 2011-04-03 Michael Matz <matz@suse.de>
17805
17806 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
17807 an integer.
17808 * tree.h (tree_decl_non_common.vindex): Adjust comment.
17809
17810 2011-04-03 Michael Matz <matz@suse.de>
17811
17812 * cgraphbuild.c (record_reference): Canonicalize constructor values.
17813 * gimple-fold.c (canonicalize_constructor_val): Accept being called
17814 without function context.
17815 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
17816 current_function_decl and cfun.
17817
17818 2011-04-03 Michael Matz <matz@suse.de>
17819
17820 * tree.c (decl_init_priority_insert): Don't create entry for
17821 default priority.
17822 (decl_fini_priority_insert): Ditto.
17823 (fields_compatible_p, find_compatible_field): Remove.
17824 * tree.h (fields_compatible_p, find_compatible_field): Remove.
17825 * gimple.c (gimple_compare_field_offset): Adjust block comment.
17826
17827 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
17828
17829 * combine.c (try_combine): Remove useless local variable.
17830
17831 2011-04-03 Richard Guenther <rguenther@suse.de>
17832 Ira Rosen <ira.rosen@linaro.org>
17833
17834 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
17835 non-variable offsets and compare the remaining bases of the two
17836 accesses instead of looking for exact same data-ref.
17837
17838 2011-04-02 Kai Tietz <ktietz@redhat.com>
17839
17840 PR target/48416
17841 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
17842
17843 * i386.c (ix86_is_msabi_thiscall): New helper function.
17844 (ix86_is_type_thiscall): New helper function.
17845 (ix86_comp_type_attributes): Handle thiscall for method-functions
17846 special.
17847 (init_cumulative_args): Likewise.
17848 (find_drap_reg): Likewise.
17849 (ix86_static_chain): Likewise.
17850 (x86_this_parameter): Likewise.
17851 (x86_output_mi_thunk): Likewise.
17852
17853 2011-04-01 Olivier Hainque <hainque@adacore.com>
17854 Nicolas Setton <setton@adacore.com>
17855 Eric Botcazou <ebotcazou@adacore.com>
17856
17857 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
17858 (add_gnat_descriptive_type_attribute): New function.
17859 (gen_array_type_die): Call it.
17860 (gen_enumeration_type_die): Likewise.
17861 (gen_struct_or_union_type_die): Likewise.
17862 (modified_type_die): Likewise.
17863 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
17864 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
17865 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
17866
17867 2011-04-01 Jakub Jelinek <jakub@redhat.com>
17868
17869 PR bootstrap/48148
17870 * dwarf2out.c (resolve_addr): Don't call force_decl_die
17871 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
17872
17873 Revert:
17874 2011-03-17 Richard Guenther <rguenther@suse.de>
17875
17876 PR bootstrap/48148
17877 * lto-cgraph.c (input_overwrite_node): Clear the abstract
17878 origin for decls in other ltrans units.
17879 (input_varpool_node): Likewise.
17880
17881 2011-04-01 Jakub Jelinek <jakub@redhat.com>
17882
17883 PR middle-end/48335
17884 * expr.c (expand_assignment): Handle all possibilities
17885 if TO_RTX is CONCAT.
17886 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
17887 (store_split_bit_field): If SUBREG_REG (op0) or
17888 op0 itself has smaller mode than word, return it
17889 for offset 0 and const0_rtx for out-of-bounds stores.
17890 If word is const0_rtx, skip it.
17891
17892 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
17893
17894 * config/h8300/h8300.c (print_operand_address): Rename to...
17895 (h8300_print_operand_address): ...this. Make static. Adjust comments.
17896 Call h8300_print_operand and h8300_print_operand_address instead of
17897 print_operand and print_operand_address. Declare.
17898 (print_operand): Renake to...
17899 (h8300_print_operand): ...this. Make static. Adjust comments.
17900 Call h8300_print_operand instead of print_operand. Declare.
17901 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
17902 (h8300_register_move_cost): Likewise.
17903 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
17904 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
17905 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
17906 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
17907 * config/h8300/h8300-protos.h (print_operand): Delete.
17908 (print_operand_address): Delete.
17909
17910 2011-04-01 Richard Henderson <rth@redhat.com>
17911
17912 PR 48400
17913 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
17914 in strict mode before dwarf4. Re-order tests to early out
17915 before switching sections.
17916
17917 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
17918
17919 * config/h8300/constraints.md: New file.
17920 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
17921 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
17922 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
17923 * config/h8300/predicates.md (bit_operand): Likewise.
17924 (incdec_operand): Use satisfies_constraint_M and
17925 satisfies_constraint_O. Don't use C code block.
17926 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
17927 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
17928 (compute_mov_length): Use satisfies_constraint_G.
17929 (fix_bit_operand): Use satisfies_constraint_U.
17930 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
17931 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
17932 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
17933 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
17934 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
17935 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
17936 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
17937 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
17938 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
17939 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
17940 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
17941 (EXTRA_MEMORY_CONSTRAINT): Delete.
17942
17943 2011-04-01 Andrew Pinski <pinskia@gmail.com>
17944 Michael Meissner <meissner@linux.vnet.ibm.com>
17945
17946 PR target/48262
17947 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
17948 operands, as per the specifications.
17949
17950 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
17951 (vec_extract_evenv4sf): Ditto.
17952 (vec_extract_evenv8hi): Ditto.
17953 (vec_extract_evenv16qi): Ditto.
17954 (vec_extract_oddv4si): Ditto.
17955
17956 2011-03-31 Mark Wielaard <mjw@redhat.com>
17957
17958 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
17959 high_pc attribute if the CU has no associated code. Only output
17960 DW_AT_entry_pc for CU if not generating strict dwarf and
17961 dwarf_version < 4.
17962
17963 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
17964
17965 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
17966 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
17967 out of ...
17968 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
17969 * final.c (final_start_function): Call the new function rather
17970 than using a NULL argument for dwarf2out_frame_debug.
17971
17972 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
17973 that contains the prologue.
17974
17975 * haifa-sched.c (queue_insn): New arg REASON. All callers
17976 changed. Print it in debugging output.
17977
17978 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
17979
17980 * sched-ebb.c (begin_schedule_ready): Remove second argument.
17981 Split most of the code into...
17982 (begin_move_insn): ... here. New function.
17983 (ebb_sched_info): Add a pointer to it.
17984 * haifa-sched.c (scheduled_insns): New static variable.
17985 (sched_extend_ready_list): Allocate it.
17986 (schedule_block): Use it to record the order of scheduled insns.
17987 Perform RTL changes to move insns only after all scheduling
17988 decisions have been made.
17989 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
17990 begin_move_insn field.
17991 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
17992 * sched-int.h (struct haifa_sched_info): Remove second argument
17993 from begin_schedule_ready hook. Add new member begin_move_insn.
17994 * sched-rgn.c (begin_schedule_ready): Remove second argument.
17995 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
17996
17997 * haifa-sched.c (prune_ready_list): New function, broken out of
17998 schedule_block.
17999 (schedule_block): Use it.
18000
18001 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18002
18003 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
18004
18005 2011-04-01 Kai Tietz <ktietz@redhat.com>
18006
18007 * config.gcc (*-*-mingw*): Allow as option the
18008 posix threading model.
18009 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
18010 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
18011 definition.
18012 (CPP_SPEC): Add pthread/no-pthread handling.
18013 (LIB_SPEC): Likewise.
18014 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
18015 (LIB_SPEC): Likewise.
18016 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
18017 flag to pass -pthread option for shared libgcc build.
18018 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
18019 for shared libgcc build.
18020 * config/i386/t-mingw-pthread: New file.
18021 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
18022 New define to enable use of library pthread by default.
18023 * config/i386/mingw.opt (pthread): New driver option.
18024 (no-pthread): New driver option.
18025 * config/i386/cygming.opt: Make sure trailing empty line is retained.
18026 * config/i386/mingw-w64.opt: Likewise.
18027
18028 2011-04-01 Gary Funck <gary@intrepid.com>
18029
18030 * c-decl.c (grokdeclarator): Fix formatting.
18031
18032 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18033
18034 * expr.c (emit_block_move_via_movmem): Use n_generator_args
18035 instead of n_operands.
18036 (set_storage_via_setmem): Likewise.
18037 * optabs.c (maybe_gen_insn): Likewise.
18038 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
18039 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
18040 (mips_expand_builtin_direct): Likewise.
18041 * config/spu/spu.c (expand_builtin_args): Likewise.
18042
18043 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18044
18045 * recog.h (insn_data_d): Add n_generator_args.
18046 * genoutput.c (data): Likewise.
18047 (output_insn_data): Print it.
18048 (max_opno, num_dups): Delete.
18049 (scan_operands): Just fill in "d->operand[...]".
18050 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
18051
18052 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
18053
18054 * gensupport.h (pattern_stats): New structure.
18055 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
18056 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
18057 (max_operand_1, max_operand_vec): Delete.
18058 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
18059
18060 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
18061
18062 * emit-rtl.c (emit_pattern_after_setloc): New function.
18063 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
18064 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
18065 (emit_pattern_after): New function.
18066 (emit_insn_after, emit_jump_insn_after): Call it.
18067 (emit_call_insn_after, emit_debug_insn_after): Likewise.
18068 (emit_pattern_before_setloc): New function.
18069 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
18070 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
18071 Likewise.
18072 (emit_pattern_before): New function.
18073 (emit_insn_before, emit_jump_insn_before): Call it.
18074 (emit_call_insn_before, emit_debug_insn_before): Likewise.
18075
18076 2011-03-31 Richard Henderson <rth@redhat.com>
18077
18078 * dwarf2out.c (dw_separate_line_info_ref): Remove.
18079 (dw_separate_line_info_entry): Remove.
18080 (enum dw_line_info_opcode): New.
18081 (dw_line_info_entry): Use it.
18082 (dw_line_info_table, dw_line_info_table_p): New.
18083 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
18084 (line_info_table, line_info_label_num): Remove.
18085 (line_info_table_in_use): Remove.
18086 (separate_line_info_table): Remove.
18087 (separate_line_info_table_allocated): Remove.
18088 (separate_line_info_table_in_use): Remove.
18089 (LINE_INFO_TABLE_INCREMENT): Remove.
18090 (line_info_label_num): New.
18091 (cur_line_info_table): New.
18092 (text_section_line_info, cold_text_section_line_info): New.
18093 (separate_line_info): New.
18094 (SEPARATE_LINE_CODE_LABEL): Remove.
18095 (print_dwarf_line_table): Remove.
18096 (debug_dwarf): Don't dump it.
18097 (output_one_line_info_table): New.
18098 (output_line_info): Use it.
18099 (new_line_info_table): New.
18100 (set_cur_line_info_table): New.
18101 (dwarf2out_switch_text_section): Use it.
18102 (dwarf2out_begin_function): Likewise.
18103 (push_dw_line_info_entry): New.
18104 (dwarf2out_source_line): Rewrite for new line info tables.
18105 (dwarf2out_init): Remove dead initailizations.
18106
18107 2011-03-31 Joseph Myers <joseph@codesourcery.com>
18108
18109 * opts.h (cl_option): Add comments to fields. Add bit-fields for
18110 various flags.
18111 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
18112 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
18113 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
18114 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
18115 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
18116 * opt-functions.awk (flag_init, switch_bit_fields): New.
18117 (switch_flags): Don't handle flags moved to bit-fields. Don't
18118 generate CL_MISSING_OK or CL_SAVE.
18119 * optc-gen.awk: Update to generate bit-field output as well as
18120 flags field.
18121 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
18122 bit-field instead of CL_REJECT_DRIVER flag.
18123 * opts-common.c (generate_canonical_option,
18124 decode_cmdline_option): Use bit-fields instead of CL_* flags.
18125 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
18126 instead of CL_REJECT_NEGATIVE flag.
18127 * toplev.c (print_switch_values): Use cl_report bit-field instead
18128 of CL_REPORT flag.
18129
18130 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
18131
18132 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
18133 a zero minimum index only if it is redundant.
18134
18135 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
18136
18137 PR rtl-optimization/48381
18138 * ira-color.c (assign_hard_reg): Use hard reg set intersection
18139 instead of ira_class_hard_reg_index for calculating conflicting
18140 hard registers.
18141
18142 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
18143
18144 * cprop.c: Clean up hash table building.
18145 (reg_avail_info): Remove.
18146 (oprs_available_p): Remove.
18147 (record_last_reg_set_info): Remove.
18148 (record_last_set_info): Remove.
18149 (reg_available_p): New function.
18150 (gcse_constant_p): Do not treat unfolded conditions as constants.
18151 (make_set_regs_unavailable): New function.
18152 (hash_scan_set): Simplify with new reg_available_p.
18153 (compute_hash_table_work): Traverse insns stream only once.
18154 Do not compute reg_avail_info. Traverse insns in reverse order.
18155 Record implicit sets after recording explicit sets from the block.
18156
18157 2011-03-31 Michael Matz <matz@suse.de>
18158
18159 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
18160
18161 2011-03-31 Anatoly Sokolov <aesok@post.ru>
18162
18163 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
18164 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
18165 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
18166 (h8300_mode_dependent_address_p): New function.
18167 (h8300_get_index): Make static.
18168
18169 2011-03-31 Jeff Law <law@redhat.com>
18170
18171 * reload1.c (elimination_effects): Fix typo in recent change.
18172
18173 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
18174 typo potentially leading to null pointer dereference.
18175
18176 * caller-save.c (new_saved_hard_reg): Eliminate return value.
18177 (setup_save_areas): Corresponding changes to avoid useless
18178 assignments.
18179
18180 * jump.c (reversed_comparison_code_parts): Avoid successive return
18181 statements when REVERSE_CONDITION is defined.
18182
18183 * expr.c (expand_assignment): Avoid useless assignments.
18184 (expand_expr_real_1): Likewise.
18185 (expand_expr_real_2): Avoid useless statements.
18186
18187 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
18188
18189 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
18190
18191 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
18192 statements.
18193
18194 * stmt.c (expand_expr_stmt): Avoid useless assignment.
18195
18196 2011-03-31 Joseph Myers <joseph@codesourcery.com>
18197
18198 PR target/47109
18199 * doc/tm.texi.in (TARGET_VERSION): Remove.
18200 * doc/tm.texi: Regenerate.
18201 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
18202 * collect2.c (main): Don't use TARGET_VERSION.
18203 * mips-tdump.c (main): Don't use TARGET_VERSION.
18204 * mips-tfile.c (main): Don't use TARGET_VERSION.
18205 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
18206 * config/rs6000/vxworksae.h: Remove.
18207 * config/alpha/alpha.h (TARGET_VERSION): Remove.
18208 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
18209 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
18210 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
18211 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
18212 * config/arm/arm.h (TARGET_VERSION): Remove.
18213 * config/arm/coff.h (TARGET_VERSION): Remove.
18214 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
18215 * config/arm/elf.h (TARGET_VERSION): Remove.
18216 * config/arm/freebsd.h (TARGET_VERSION): Remove.
18217 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
18218 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
18219 * config/arm/pe.h (TARGET_VERSION): Remove.
18220 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
18221 * config/arm/semi.h (TARGET_VERSION): Remove.
18222 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
18223 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
18224 * config/arm/vxworks.h (TARGET_VERSION): Remove.
18225 * config/avr/avr.h (TARGET_VERSION): Remove.
18226 * config/bfin/bfin.h (TARGET_VERSION): Remove.
18227 * config/fr30/fr30.h (TARGET_VERSION): Remove.
18228 * config/frv/frv.h (TARGET_VERSION): Remove.
18229 * config/h8300/h8300.h (TARGET_VERSION): Remove.
18230 * config/i386/cygwin.h (TARGET_VERSION): Remove.
18231 * config/i386/darwin.h (TARGET_VERSION): Remove.
18232 * config/i386/darwin64.h (TARGET_VERSION): Remove.
18233 * config/i386/djgpp.h (TARGET_VERSION): Remove.
18234 * config/i386/freebsd.h (TARGET_VERSION): Remove.
18235 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
18236 * config/i386/gnu.h (TARGET_VERSION): Remove.
18237 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
18238 * config/i386/i386elf.h (TARGET_VERSION): Remove.
18239 * config/i386/linux.h (TARGET_VERSION): Remove.
18240 * config/i386/linux64.h (TARGET_VERSION): Remove.
18241 * config/i386/lynx.h (TARGET_VERSION): Remove.
18242 * config/i386/mingw32.h (TARGET_VERSION): Remove.
18243 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
18244 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
18245 * config/i386/netware.h (TARGET_VERSION): Remove.
18246 * config/i386/nto.h (TARGET_VERSION): Remove.
18247 * config/i386/openbsd.h (TARGET_VERSION): Remove.
18248 * config/i386/vxworks.h (TARGET_VERSION): Remove.
18249 * config/ia64/elf.h (TARGET_VERSION): Remove.
18250 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
18251 * config/ia64/hpux.h (TARGET_VERSION): Remove.
18252 * config/ia64/linux.h (TARGET_VERSION): Remove.
18253 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
18254 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
18255 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
18256 * config/lm32/lm32.h (TARGET_VERSION): Remove.
18257 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
18258 * config/m32c/m32c.h (TARGET_VERSION): Remove.
18259 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
18260 * config/m32r/m32r.h (TARGET_VERSION): Remove.
18261 * config/m68k/linux.h (TARGET_VERSION): Remove.
18262 * config/m68k/m68k.h (TARGET_VERSION): Remove.
18263 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
18264 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
18265 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
18266 * config/mep/mep.h (TARGET_VERSION): Remove.
18267 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
18268 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
18269 * config/mips/iris6.h (MACHINE_TYPE): Remove.
18270 * config/mips/linux.h (TARGET_VERSION): Remove.
18271 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
18272 * config/mips/vxworks.h (TARGET_VERSION): Remove.
18273 * config/mmix/mmix.h (TARGET_VERSION): Remove.
18274 * config/mn10300/linux.h (TARGET_VERSION): Remove.
18275 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
18276 * config/pa/pa.h (TARGET_VERSION): Remove.
18277 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
18278 * config/picochip/picochip.h (TARGET_VERSION): Remove.
18279 * config/rs6000/aix.h (TARGET_VERSION): Remove.
18280 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
18281 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
18282 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
18283 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
18284 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
18285 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
18286 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
18287 * config/rs6000/linux.h (TARGET_VERSION): Remove.
18288 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
18289 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
18290 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
18291 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
18292 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
18293 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
18294 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
18295 * config/s390/linux.h (TARGET_VERSION): Remove.
18296 * config/s390/s390.h (TARGET_VERSION): Remove.
18297 * config/s390/tpf.h (TARGET_VERSION): Remove.
18298 * config/score/score.h (TARGET_VERSION): Remove.
18299 * config/sh/linux.h (TARGET_VERSION): Remove.
18300 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
18301 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
18302 * config/sh/sh.h (TARGET_VERSION): Remove.
18303 * config/sh/sh64.h (TARGET_VERSION): Remove.
18304 * config/sh/superh.h (TARGET_VERSION): Remove.
18305 * config/sh/vxworks.h (TARGET_VERSION): Remove.
18306 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
18307 * config/sparc/linux.h (TARGET_VERSION): Remove.
18308 * config/sparc/linux64.h (TARGET_VERSION): Remove.
18309 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
18310 TARGET_NAME32, TARGET_NAME): Remove.
18311 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
18312 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
18313 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
18314 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
18315 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
18316 * config/spu/spu.h (TARGET_VERSION): Remove.
18317 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
18318 * config/v850/v850.h (TARGET_VERSION): Remove.
18319 * config/vax/linux.h (TARGET_VERSION): Remove.
18320 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
18321 * config/xtensa/elf.h (TARGET_VERSION): Remove.
18322 * config/xtensa/linux.h (TARGET_VERSION): Remove.
18323
18324 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
18325
18326 PR target/48142
18327 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
18328 frame-related from frame-unrelated adjustments to the stack pointer.
18329
18330 2011-03-31 Jakub Jelinek <jakub@redhat.com>
18331
18332 * common.opt (fdebug-types-section): Move earlier.
18333 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
18334
18335 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
18336
18337 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
18338 var.
18339
18340 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
18341
18342 * tree.h (CASE_CHAIN): Define.
18343 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
18344 (gimple_redirect_edge_and_branch): Likewise.
18345
18346 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
18347
18348 PR middle-end/48367
18349 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
18350 calculation.
18351
18352 2011-03-30 Jeff Law <law@redhat.com>
18353
18354 * PR bootstrap/48371
18355 * reload1.c (reload): Fix botch in last change.
18356
18357 * reload.h (struct reload): Fix typo introduced in last change.
18358
18359 2011-03-30 Joseph Myers <joseph@codesourcery.com>
18360
18361 * config/arm/arm.opt (mhard-float, msoft-float): Mark
18362 Undocumented. Remove help text.
18363 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
18364 -mhard-float.
18365
18366 2011-03-30 Joseph Myers <joseph@codesourcery.com>
18367
18368 * doc/options.texi (NegativeAlias): Document.
18369 (Alias): Mention NegativeAlias.
18370 * opt-functions.awk: Handle NegativeAlias.
18371 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
18372 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
18373 * opts.h (CL_NEGATIVE_ALIAS): Define.
18374 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
18375 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
18376 OPT_mspe_.
18377 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
18378 Alias entries.
18379 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
18380 mno-spe and mno-isel instead of mspe=no and -misel=no.
18381
18382 2011-03-29 Mark Wielaard <mjw@redhat.com>
18383
18384 * common.opt (fdebug-types-section): New flag.
18385 * doc/invoke.texi: Document new -fno-debug-types-section flag.
18386 * dwarf2out.c (use_debug_types): New define.
18387 (struct die_struct): Mark die_id with GTY desc use_debug_types.
18388 (print_die): Guard output of type unit signatures using
18389 use_debug_types.
18390 (build_abbrev_table): Replace assert of dwarf_version >= 4
18391 with assert on use_debug_types.
18392 (size_of_die): Likewise.
18393 (unmark_dies): Likewise.
18394 (value_format): Decide AT_ref_external form on use_debug_types.
18395 (output_die): Replace dwarf_version version check guard with
18396 use_debug_types where appropriate.
18397 (modified_type_die): Likewise.
18398 (gen_reference_type_die): Likewise.
18399 (dwarf2out_start_source_file): Likewise.
18400 (dwarf2out_end_source_file): Likewise.
18401 (prune_unused_types_walk_attribs): Likewise.
18402 (dwarf2out_finish): Likewise.
18403
18404 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
18405
18406 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
18407
18408 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18409
18410 PR rtl-optimization/48332
18411 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
18412 mode of input operand N and modeN to its actual mode.
18413
18414 2011-03-30 Jeff Law <law@redhat.com>
18415
18416 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
18417 define accessor macro.
18418 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
18419 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
18420 (reg_equiv_init): Likewise.
18421 (reg_equivs_size): New variable.
18422 (reg_equiv_init_size): Remove.
18423 (allocate_initial_values): Move prototype to here from....
18424 * integrate.h (allocate_initial_values): Remove prototype.
18425 * integrate.c: Include reload.h.
18426 (allocate_initial_values): Corresponding changes.
18427 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
18428 (fix_reg_equiv_init, no_equiv): Corresponding changes.
18429 (update_equiv_regs): Corresponding changes.
18430 (ira): Corresponding changes.
18431 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
18432 (push_secondary_reload): Corresponding changes.
18433 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
18434 (make_memloc, find_reloads_address): Corresponding changes.
18435 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
18436 (find_reloads_address_1): Corresponding changes.
18437 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
18438 (refers_to_regno_for_reload_p): Corresponding changes.
18439 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
18440 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
18441 * reload1.c: Include ggc.h.
18442 (grow_reg_equivs): New function.
18443 (replace_pseudos_in, reload): Corresponding changes.
18444 (calculate_needs_all_insns, alter_regs): Corresponding changes.
18445 (eliminate_regs_1, elimination_effects): Corresponding changes.
18446 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
18447 (delete_output_reload): Likewise.
18448 * caller-save.c (mark_referenced_regs): Corresponding changes.
18449 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
18450 * frv/predicates.md (frv_load_operand): Corresponding changes.
18451 * microblaze/microblaze.c (double_memory_operand): Corresponding
18452 changes.
18453 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
18454 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
18455 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
18456 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
18457 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
18458 changes.
18459 * pa/pa.c (emit_move_sequence): Corresponding changes.
18460 * vax/vax.c (nonindexed_address_p): Corresponding changes.
18461
18462 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18463
18464 PR target/47551
18465 * config/arm/arm.c (coproc_secondary_reload_class): Handle
18466 structure modes. Don't check neon_vector_mem_operand for
18467 vector or structure modes.
18468
18469 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
18470 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18471
18472 PR target/43590
18473 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
18474 operand 1 and reshuffle the operands to match.
18475 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
18476
18477 2011-03-30 Christian Schüler <cschueler@gmx.de>
18478
18479 PR driver/48208
18480 * config/c.opt (F): Added 'Driver' to -F option.
18481
18482 PR driver/48260
18483 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
18484 handler function.
18485 * config/darwin.opt: Added '-arch' option.
18486
18487 2011-03-30 Nick Clifton <nickc@redhat.com>
18488
18489 * config/rx/rx.md: Add peepholes and patterns to combine
18490 extending loads and simple arithmetic instructions.
18491 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
18492 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
18493 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
18494 modes to use pre-decrement and post-increment addressing.
18495 (rx_is_restricted_memory_address): Add range checking of REG+INT
18496 addresses.
18497 (rx_print_operand): Add support for %Q. Fix handling of %Q.
18498 (rx_memory_move_cost): Adjust cost of stores.
18499 (rx_adjust_insn_length): New function.
18500
18501 2011-03-30 Jakub Jelinek <jakub@redhat.com>
18502
18503 PR c/48305
18504 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
18505 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
18506 matching arg00/arg01 types.
18507
18508 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
18509
18510 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
18511 last_location to UNKNOWN_LOCATION.
18512
18513 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
18514
18515 PR target/48349
18516 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
18517 FLOAT_SSE_REGS.
18518
18519 2011-03-30 Joseph Myers <joseph@codesourcery.com>
18520 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18521
18522 PR bootstrap/48337
18523 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
18524 Init(PROCESSOR_V7).
18525 (sparc_cpu): Likewise.
18526 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
18527 PROCESSOR_V7.
18528
18529 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
18530
18531 PR target/48336
18532 PR middle-end/48342
18533 PR rtl-optimization/48345
18534 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
18535 hard regs for given mode from profitable regs when doing secondary
18536 allocation.
18537
18538 2011-03-29 Jeff Law <law@redhat.com>
18539
18540 PR bootstrap/48327
18541 * tree-ssa-threadupdate.c (struct redirection_data): Remove
18542 do_not_duplicate field.
18543 (lookup_redirection_data): Corresponding changes.
18544 (create_duplicates): Always create a template block.
18545 (redirect_edges): Remove code which reused the original block
18546 when it was going to become unreachable code.
18547 (thread_block): Don't set do_not_duplicate field.
18548
18549 2011-03-29 Joseph Myers <joseph@codesourcery.com>
18550
18551 * lto-opts.c (register_user_option_p, lto_register_user_option):
18552 Make type argument unsigned.
18553 * lto-streamer.h (lto_register_user_option): Make type argument
18554 unsigned.
18555 * opth-gen.awk: Make CL_* macros unsigned.
18556 * opts-common.c (find_opt): Make lang_mask argument unsigned.
18557 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
18558 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
18559 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
18560 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
18561 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
18562 (find_opt): Make lang_mask argument unsigned.
18563
18564 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
18565
18566 PR rtl-optimization/48331
18567 PR rtl-optimization/48334
18568 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
18569 for any used algorithm.
18570
18571 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
18572
18573 * ira-conflicts.c (build_object_conflicts): Add unused attribute
18574 to parent_max.
18575
18576 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
18577
18578 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
18579 (alpha_option_override): Don't set alpha_sr_alias_set.
18580 (emit_frame_store_1): Use gen_frame_mem rather than calling
18581 set_mem_alias_set.
18582 (alpha_expand_epilogue): Ditto.
18583
18584 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
18585
18586 PR tree-optimization/48290
18587 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
18588 vectorization, check that relevant phis in the basic block after
18589 the inner loop are really inner loop's exit phis.
18590
18591 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
18592
18593 PR debug/48190
18594 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
18595 (cached_dw_loc_list_def): New structure.
18596 (cached_dw_loc_list): New typedef.
18597 (cached_dw_loc_list_table): New variable.
18598 (cached_dw_loc_list_table_hash): New function.
18599 (cached_dw_loc_list_table_eq): Likewise.
18600 (add_location_or_const_value_attribute): Take a bool cache_p.
18601 Cache the list when the parameter is true.
18602 (gen_formal_parameter_die): Update caller.
18603 (gen_variable_die): Likewise.
18604 (dwarf2out_finish): Likewise.
18605 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
18606 while generating debug info for the decl.
18607 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
18608 (dwarf2out_init): Initialize cached_dw_loc_list_table.
18609 (resolve_addr): Cache the result of resolving a chain of
18610 location lists.
18611
18612 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
18613
18614 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
18615 conflict object hard regset nodes have intersecting hard reg sets.
18616
18617 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
18618 after regstat_init_n_sets_and_refs.
18619
18620 * ira.c: Add more comments at the top.
18621 (setup_stack_reg_pressure_class, setup_pressure_classes):
18622 Add comments how we compute the register pressure classes.
18623 (setup_allocno_and_important_classes): Add more comments.
18624 (setup_class_translate_array, reorder_important_classes)
18625 (setup_reg_class_relations): Add comments.
18626
18627 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
18628 start of the file.
18629
18630 * ira-color.c: Add 2011 to the Copyright line.
18631 (assign_hard_reg): Add more comments.
18632 (improve_allocation): Ditto.
18633
18634 * ira-costs.c: Add 2011 to the Copyright line.
18635 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
18636 comments.
18637 (setup_regno_cost_classes_by_mode): Ditto.
18638
18639 Initial patches from ira-improv branch:
18640
18641 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
18642
18643 * ira-build.c (ira_create_object): Remove initialization of
18644 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
18645 (ira_create_allocno): Remove initialization of
18646 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
18647 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
18648 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
18649 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
18650 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
18651 Initialize ALLOCNO_ADD_DATA.
18652 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
18653 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
18654 ALLOCNO_REG.
18655 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
18656 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
18657
18658 * ira.c (ira_reallocate): Remove.
18659 (setup_pressure_classes): Call
18660 ira_init_register_move_cost_if_necessary. Use
18661 ira_register_move_cost instead of ira_get_register_move_cost.
18662 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
18663 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
18664
18665 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
18666 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
18667 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
18668 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
18669 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
18670 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
18671 Fix formatting.
18672 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
18673 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
18674 (struct allocno_color_data): New.
18675 (allocno_color_data_t): New typedef.
18676 (allocno_color_data): New definition.
18677 (ALLOCNO_COLOR_DATA): New macro.
18678 (struct object_color_data): New.
18679 (object_color_data_t): New typedef.
18680 (object_color_data): New definition.
18681 (OBJECT_COLOR_DATA): New macro.
18682 (update_copy_costs, calculate_allocno_spill_cost): Call
18683 ira_init_register_move_cost_if_necessary. Use
18684 ira_register_move_cost instead of ira_get_register_move_cost.
18685 (move_spill_restore, update_curr_costs): Ditto.
18686 (allocno_spill_priority): Make it inline.
18687 (color_pass): Allocate and free allocno_color_dat and object_color_data.
18688 (struct coalesce_data, coalesce_data_t): New.
18689 (allocno_coalesce_data): New definition.
18690 (ALLOCNO_COALESCE_DATA): New macro.
18691 (merge_allocnos, coalesced_allocno_conflict_p): Use
18692 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
18693 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
18694 (coalesce_allocnos): Ditto.
18695 (setup_coalesced_allocno_costs_and_nums): Ditto.
18696 (collect_spilled_coalesced_allocnos): Ditto.
18697 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
18698 (setup_slot_coalesced_allocno_live_ranges): Ditto.
18699 (coalesce_spill_slots): Ditto.
18700 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
18701 free allocno_coalesce_data.
18702
18703 * ira-conflicts.c: Fix formatting.
18704 (process_regs_for_copy): Call
18705 ira_init_register_move_cost_if_necessary. Use
18706 ira_register_move_cost instead of ira_get_register_move_cost.
18707 (build_object_conflicts): Optimize.
18708
18709 * ira-costs.c (record_reg_classes): Optimize. Call
18710 ira_init_register_move_cost_if_necessary. Use
18711 ira_register_move_cost, ira_may_move_in_cost, and
18712 ira_may_move_out_cost instead of ira_get_register_move_cost and
18713 ira_get_may_move_cost.
18714 (record_address_regs): Ditto.
18715 (scan_one_insn): Optimize.
18716 (find_costs_and_classes): Optimize.
18717 (process_bb_node_for_hard_reg_moves): Call
18718 ira_init_register_move_cost_if_necessary. Use
18719 ira_register_move_cost instead of ira_get_register_move_cost.
18720
18721 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
18722 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
18723 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
18724 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
18725 definitions.
18726 (ira_initiate_emit_data, ira_finish_emit_data)
18727 (create_new_allocno): New functions.
18728 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
18729 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
18730 Use ira_register_move_cost instead of ira_get_register_move_cost.
18731
18732 * ira-int.h: Fix some comments.
18733 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
18734 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
18735 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
18736 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
18737 add_data.
18738 (struct ira_allocno): Make mode and aclass a bitfield. Move other
18739 bitfield after mode. Make hard_regno a short int. Make
18740 hard_regno short. Remove first_coalesced_allocno and
18741 next_coalesced_allocno. Move mem_optimized_dest_p,
18742 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
18743 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
18744 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
18745 temp, colorable_p. Add new member add_data.
18746 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
18747 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
18748 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
18749 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
18750 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
18751 (ALLOCNO_ADD_DATA): New macro.
18752 (ira_emit_data_t): New typedef.
18753 (struct ira_emit_data): New. Move mem_optimized_dest_p,
18754 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
18755 from struct ira_allocno.
18756 (ALLOCNO_EMIT_DATA): New macro.
18757 (ira_allocno_emit_data, allocno_emit_reg): New.
18758 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
18759 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
18760 (OBJECT_ADD_DATA): New macro.
18761 (ira_reallocate): Remove.
18762 (ira_initiate_emit_data, ira_finish_emit_data): New.
18763 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
18764 (ira_init_register_move_cost_if_necessary): New.
18765 (ira_object_conflict_iter_next): Merge into
18766 ira_object_conflict_iter_cond.
18767 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
18768
18769 * ira-live.c (process_single_reg_class_operands): Call
18770 ira_init_register_move_cost_if_necessary. Use
18771 ira_register_move_cost instead of ira_get_register_move_cost.
18772
18773 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
18774
18775 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
18776
18777 * ira-costs.c: Fix formatting.
18778 (cost_classes, cost_classes_num): Remove.
18779 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
18780 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
18781 (cost_classes_del, cost_classes_htab): New.
18782 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
18783 (initiate_regno_cost_classes, setup_cost_classes): New.
18784 (setup_regno_cost_classes_by_aclass): New.
18785 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
18786 (record_reg_classes): Use regno_cost_classes instead of
18787 cost_classes. Move checking opposite operand up.
18788 (record_address_regs): Use regno_cost_classes
18789 instead of cost_classes.
18790 (scan_one_insn): Ditto. Use always general register.
18791 (print_allocno_costs): Use regno_cost_classes instead of
18792 cost_classes.
18793 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
18794 (find_costs_and_classes): Set up cost classes for each registers.
18795 Use also their mode for this. Use regno_cost_classes instead of
18796 cost_classes.
18797 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
18798 cost_classes.
18799 (free_ira_costs, ira_init_costs): Don't use cost_classes.
18800 (ira_costs, ira_set_pseudo_classes): Call
18801 initiate_regno_cost_classes and finish_regno_cost_classes.
18802
18803 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
18804
18805 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
18806
18807 * target.def (ira_cover_classes): Remove.
18808
18809 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
18810
18811 * doc/tm.texi.in: Ditto.
18812
18813 * ira-conflicts.c: Remove mentioning cover classes from the file.
18814 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
18815 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
18816
18817 * targhooks.c (default_ira_cover_classes): Remove.
18818
18819 * targhooks.h (default_ira_cover_classes): Ditto.
18820
18821 * haifa-sched.c: Remove mentioning cover classes from the file.
18822 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
18823 ira_pressure_classes and ira_pressure_classes_num instead of
18824 ira_reg_class_cover_size and ira_reg_class_cover. Use
18825 sched_regno_pressure_class instead of sched_regno_cover_class.
18826 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
18827 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
18828
18829 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
18830 classes from the file.
18831 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
18832 (struct object_hard_regs, struct object_hard_regs_node): New.
18833 (struct ira_object): New members profitable_hard_regs,
18834 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
18835 (struct ira_allocno): Rename cover_class to aclass. Rename
18836 cover_class_cost and updated_cover_class_cost to class_cost and
18837 updated_class_cost. Remove splay_removed_p and
18838 left_conflict_size. Add new members colorable_p.
18839 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
18840 (ALLOCNO_COLORABLE_P): New macro.
18841 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
18842 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
18843 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
18844 (OBJECT_...): Rename parameter C to O.
18845 (OBJECT_PROFITABLE_HARD_REGS): New macro.
18846 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
18847 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
18848 (struct target_ira_int): New members x_ira_max_memory_move_cost,
18849 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
18850 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
18851 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
18852 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
18853 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
18854 x_ira_reg_class_subunion.
18855 (ira_max_memory_move_cost, ira_max_register_move_cost)
18856 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
18857 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
18858 (ira_important_class_nums, ira_reg_class_superunion): New macros.
18859 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
18860 (ira_reg_class_union): Rename to ira_reg_class_subunion.
18861 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
18862 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
18863 (ira_tune_allocno_costs_and_cover_classes): Rename to
18864 ira_tune_allocno_costs.
18865 (ira_debug_hard_regs_forest): New.
18866 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
18867 (ira_object_conflict_iter_next): Fix comments.
18868 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
18869 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
18870 cover_class to aclass.
18871 (ira_allocate_and_accumulate_costs): Ditto.
18872 (ira_allocate_and_set_or_copy_costs): Ditto.
18873
18874 * opts.c (decode_options): Remove ira_cover_class check.
18875
18876 * ira-color.c: Remove mentioning cover classes from the file. Use
18877 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
18878 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
18879 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
18880 (splay-tree.h): Remove include.
18881 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
18882 before copy_freq_compare_func.
18883 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
18884 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
18885 New definitions.
18886 (hard_regs_roots, hard_regs_node_vec): Ditto.
18887 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
18888 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
18889 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
18890 (create_new_object_hard_regs_node): Ditto.
18891 (add_new_object_hard_regs_node_to_forest): Ditto.
18892 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
18893 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
18894 Ditto.
18895 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
18896 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
18897 (remove_unused_object_hard_regs_nodes): Ditto.
18898 (enumerate_object_hard_regs_nodes): Ditto.
18899 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
18900 (object_hard_regs_subnode_t): Ditto.
18901 (struct object_hard_regs_subnode): Ditto.
18902 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
18903 (setup_object_hard_regs_subnode_index): Ditto.
18904 (get_object_hard_regs_subnodes_num): Ditto.
18905 (form_object_hard_regs_nodes_forest): Ditto.
18906 (finish_object_hard_regs_nodes_tree): Ditto.
18907 (finish_object_hard_regs_nodes_forest): Ditto.
18908 (allocnos_have_intersected_live_ranges_p): Rename to
18909 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
18910 (pseudos_have_intersected_live_ranges_p): Rename to
18911 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
18912 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
18913 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
18914 (update_copy_costs): Remove assert. Skip cost update if the hard
18915 reg does not belong the class.
18916 (assign_hard_reg): Process only profitable hard regs.
18917 (uncolorable_allocnos_num): Make it scalar.
18918 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
18919 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
18920 and ira_reg_class_max_nregs.
18921 (bucket_allocno_compare_func): Check frequency first.
18922 (sort_bucket): Add compare function as a parameter.
18923 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
18924 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
18925 (push_allocno_to_stack): Rewrite for checking new allocno
18926 colorability.
18927 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
18928 (push_only_colorable): Pass new parameter to sort_bucket.
18929 (push_allocno_to_spill): Remove.
18930 (allocno_spill_priority_compare): Make it inline and rewrite.
18931 (splay_tree_allocate, splay_tree_free): Remove.
18932 (allocno_spill_sort_compare): New function.
18933 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
18934 build and use splay tree. Choose first allocno in uncolorable
18935 allocno bucket to spill. Remove setting spill cost.
18936 (all_conflicting_hard_regs): Remove.
18937 (setup_allocno_available_regs_num): Check only profitable hard
18938 regs. Print info about hard regs nodes.
18939 (setup_allocno_left_conflicts_size): Remove.
18940 (put_allocno_into_bucket): Don't call
18941 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
18942 (improve_allocation): New.
18943 (color_allocnos): Call setup_profitable_hard_regs,
18944 form_object_hard_regs_nodes_forest, improve_allocation,
18945 finish_object_hard_regs_nodes_forest. Setup spill cost.
18946 (print_loop_title): Use pressure classes.
18947 (color_allocnso): Ditto.
18948 (do_coloring): Remove allocation and freeing splay_tree_node_pool
18949 and allocnos_for_spilling.
18950 (ira_sort_regnos_for_alter_reg): Don't setup members
18951 {first,next}_coalesced_allocno.
18952 (color): Remove allocating and freeing removed_splay_allocno_vec.
18953 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
18954 prohibited_class_mode_regs.
18955
18956 * ira-lives.c: Remove mentioning cover classes from the file. Fix
18957 formatting.
18958 (update_allocno_pressure_excess_length): Use pressure classes.
18959 (inc_register_pressure, dec_register_pressure): Check for pressure
18960 class.
18961 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
18962 pressure class. Use ira_reg_class_nregs instead of
18963 ira_reg_class_max_nregs.
18964 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
18965 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
18966 (single_reg_class): Use ira_reg_class_nregs instead of
18967 ira_reg_class_max_nregs.
18968 (process_bb_node_lives): Use pressure classes.
18969
18970 * ira-emit.c: Remove mentioning cover classes from the file. Use
18971 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
18972 (change_loop): Use pressure classes.
18973 (modify_move_list): Call ira_set_allocno_class instead of
18974 ira_set_allocno_cover_class.
18975
18976 * ira-build.c: Remove mentioning cover classes from the file. Use
18977 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
18978 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
18979 ALLOCNO_UPDATED_CLASS_COST instead of
18980 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
18981 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
18982 (ira_create_allocno): Remove initialization of
18983 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
18984 ALLOCNO_COLORABLE_P.
18985 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
18986 Update conflict regs for the objects.
18987 (create_cap_allocno): Remove assert. Don't propagate
18988 ALLOCNO_AVAILABLE_REGS_NUM.
18989 (ira_free_allocno_costs): New function.
18990 (finish_allocno): Change a part of code into call of
18991 ira_free_allocno_costs.
18992 (low_pressure_loop_node_p): Use pressure classes.
18993 (object_range_compare_func): Don't compare classes.
18994 (setup_min_max_conflict_allocno_ids): Ditto.
18995
18996 * loop-invariant.c: Remove mentioning cover classes from the file.
18997 Use ira_pressure_classes and ira_pressure_classes_num instead of
18998 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
18999 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
19000 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
19001 Use reg_allocno_class instead of reg_cover_class.
19002 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
19003 STACK_REG_COVER_CLASS.
19004 (get_regno_cover_class): Rename to get_regno_pressure_class.
19005 (move_loop_invariants): Initialize and finalize regstat.
19006
19007 * ira.c: Remove mentioning cover classes from the file. Add
19008 comments about coloring without cover classes. Use ALLOCNO_CLASS
19009 instead of ALLOCNO_COVER_CLASS. Fix formatting.
19010 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
19011 setup_class_subset_and_memory_move_costs.
19012 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
19013 (setup_cover_and_important_classes): Rename to
19014 setup_allocno_and_important_classes.
19015 (setup_class_translate_array): New.
19016 (setup_class_translate): Call it for allocno and pressure classes.
19017 (cover_class_order): Rename to allocno_class_order.
19018 (comp_reg_classes_func): Use ira_allocno_class_translate instead
19019 of ira_class_translate.
19020 (reorder_important_classes): Set up ira_important_class_nums.
19021 (setup_reg_class_relations): Set up ira_reg_class_superunion.
19022 (print_class_cover): Rename to print_classes. Add parameter.
19023 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
19024 Print pressure classes too.
19025 (find_reg_class_closure): Rename to find_reg_classes. Don't call
19026 setup_reg_subclasses.
19027 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
19028 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
19029 (setup_prohibited_class_mode_regs): Use
19030 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
19031 (clarify_prohibited_class_mode_regs): New function.
19032 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
19033 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
19034 (ira_init_once): Initialize them.
19035 (free_register_move_costs): Process them.
19036 (ira_init): Move calls of find_reg_classes and
19037 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
19038 Call clarify_prohibited_class_mode_regs.
19039 (ira_no_alloc_reg): Remove.
19040 (too_high_register_pressure_p): Use pressure classes.
19041
19042 * sched-deps.c: Remove mentioning cover classes from the file.
19043 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
19044 ira_pressure_classes and ira_pressure_classes_num instead of
19045 ira_reg_class_cover_size and ira_reg_class_cover.
19046 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
19047 sched_regno_pressure_class instead of sched_regno_cover_class.
19048 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
19049 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
19050
19051 * ira.h: Add 2010 to Copyright.
19052 (ira_no_alloc_reg): Remove external.
19053 (struct target_ira): Rename x_ira_hard_regno_cover_class,
19054 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
19055 x_ira_class_translate to x_ira_hard_regno_allocno_class,
19056 x_ira_allocno_classes_num, x_ira_allocno_classes, and
19057 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
19058 x_ira_pressure_classes, x_ira_pressure_class_translate, and
19059 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
19060 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
19061 x_ira_no_alloc_regs.
19062 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
19063 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
19064 ira_allocno_classes_num and ira_allocno_classes.
19065 (ira_class_translate): Rename to ira_allocno_class_translate.
19066 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
19067 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
19068 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
19069 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
19070 (ira_no_alloc_regs): New.
19071
19072 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
19073 classes from the file. Use ALLOCNO_CLASS instead of
19074 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
19075 ALLOCNO_COVER_CLASS_COST.
19076 (regno_cover_class): Rename to regno_aclass.
19077 (record_reg_classes): Use ira_reg_class_subunion instead of
19078 ira_reg_class_union.
19079 (record_address_regs): Check overflow.
19080 (scan_one_insn): Ditto.
19081 (print_allocno_costs): Print total mem cost fore regional allocation.
19082 (print_pseudo_costs): Use REG_N_REFS.
19083 (find_costs_and_classes): Use classes intersected with them on the
19084 1st pass. Check overflow. Use ira_reg_class_subunion instead of
19085 ira_reg_class_union. Use ira_allocno_class_translate and
19086 regno_aclass instead of ira_class_translate and regno_cover_class.
19087 Modify code for finding regno_aclass. Setup preferred classes for
19088 the next pass.
19089 (setup_allocno_cover_class_and_costs): Rename to
19090 setup_allocno_class_and_costs. Use regno_aclass instead of
19091 regno_cover_class. Use ira_set_allocno_class instead of
19092 ira_set_allocno_cover_class.
19093 (init_costs, finish_costs): Use regno_aclass instead of
19094 regno_cover_class.
19095 (ira_costs): Use setup_allocno_class_and_costs instead of
19096 setup_allocno_cover_class_and_costs.
19097 (ira_tune_allocno_costs_and_cover_classes): Rename to
19098 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
19099 by processing objects. Use ira_reg_class_max_nregs instead of
19100 ira_reg_class_nregs.
19101
19102 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
19103
19104 * sched-int.h: Remove mentioning cover classes from the file.
19105 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
19106
19107 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
19108 classes from the file.
19109 (struct reg_pref): Rename coverclass into allocnoclass.
19110 (reg_cover_class): Rename to reg_allocno_class.
19111
19112 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
19113
19114 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
19115
19116 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
19117
19118 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
19119
19120 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
19121
19122 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
19123
19124 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
19125
19126 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
19127
19128 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
19129
19130 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
19131
19132 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
19133 (i386_ira_cover_classes): Ditto.
19134
19135 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
19136
19137 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
19138
19139 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
19140
19141 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
19142
19143 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
19144
19145 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
19146
19147 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
19148 (mips_ira_cover_classes): Ditto.
19149
19150 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
19151
19152 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
19153
19154 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
19155
19156 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
19157
19158 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
19159
19160 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
19161 (IRA_COVER_CLASSES_VSX): Ditto.
19162
19163 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
19164 (rs6000_ira_cover_classes): Ditto.
19165
19166 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
19167
19168 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
19169
19170 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
19171
19172 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
19173
19174 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
19175
19176 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
19177
19178 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
19179
19180 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
19181
19182 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
19183
19184 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
19185
19186 2011-03-29 Jakub Jelinek <jakub@redhat.com>
19187
19188 PR debug/48253
19189 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
19190 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
19191 dw_fde_unlikely_section_end_label, cold_in_std_section,
19192 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
19193 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
19194 fields.
19195 (output_fde): Use dw_fde_second_{begin,end} if second is
19196 true, otherwise dw_fde_{begin,end}.
19197 (output_call_frame_info): Test dw_fde_second_begin != NULL
19198 instead of dw_fde_switched_sections.
19199 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
19200 fields, initialize new fields. Initialize in_std_section
19201 unconditionally from the first partition.
19202 (dwarf2out_end_epilogue): Don't override dw_fde_end when
19203 dw_fde_second_begin is non-NULL.
19204 (dwarf2out_switch_text_section): Stop initializing removed
19205 dw_fde_struct fields, initialize new fields, initialize
19206 also dw_fde_end here. Set dw_fde_switch_cfi even when
19207 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
19208 (struct var_loc_list_def): Add last_before_switch field.
19209 (arange_table, arange_table_allocated, arange_table_in_use,
19210 ARANGE_TABLE_INCREMENT, add_arange): Removed.
19211 (size_of_aranges): Count !in_std_section and !second_in_std_section
19212 hunks in fdes, instead of looking at arange_table_in_use.
19213 (output_aranges): Add aranges_length argument, don't call
19214 size_of_aranges here. Instead of using aranges_table*
19215 emit ranges for fdes when !in_std_section resp.
19216 !second_in_std_section.
19217 (dw_loc_list): Break ranges crossing section switch.
19218 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
19219 use dw_fde_second_end instead of dw_fde_end as end of last range.
19220 (gen_subprogram_die): Don't call add_arange. Use
19221 dw_fde_{begin,end} for first partition and if switched
19222 section dw_fde_second_{begin,end} for the second.
19223 (var_location_switch_text_section_1,
19224 var_location_switch_text_section): New functions.
19225 (dwarf2out_begin_function): Initialize cold_text_section even
19226 when function_section () isn't text_section.
19227 (prune_unused_types): Don't walk arange_table.
19228 (dwarf2out_finish): Don't needlessly test
19229 flag_reorder_blocks_and_partition when testing cold_text_section_used.
19230 If info_section_emitted, call size_of_aranges and if it indicates
19231 non-empty .debug_aranges, call output_aranges with the computed
19232 size. Stop using removed dw_fde_struct fields, use
19233 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
19234 for second.
19235
19236 PR debug/48203
19237 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
19238 create ENTRY_VALUE if incoming or address of incoming's MEM
19239 is a hard REG.
19240 * dwarf2out.c (mem_loc_descriptor): Don't emit
19241 DW_OP_GNU_entry_value of DW_OP_fbreg.
19242 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
19243 on ENTRY_VALUE is able to find the canonical parameter VALUE.
19244 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
19245 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
19246 ENTRY_VALUE_EXPs.
19247 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
19248 is a REG_P or MEM_P with REG_P address, compute hash directly
19249 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
19250 (preserve_only_constants): Don't clear VALUES forwaring
19251 ENTRY_VALUE to some other VALUE.
19252
19253 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
19254
19255 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
19256 instead of GEN_INT.
19257
19258 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
19259
19260 * cfgexpand.c (expand_gimple_cond): Always set the source location and
19261 block before expanding the statement.
19262 (expand_gimple_stmt_1): Likewise. Set them here...
19263 (expand_gimple_stmt): ...and not here. Tidy.
19264 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
19265 unknown.
19266
19267 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
19268
19269 * Makefile.in: New rule for cprop.o.
19270 * gcse.c: Move constant/copy propagation to cprop.c.
19271 (compute_local_properties): Only handle expression tables.
19272 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
19273 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
19274 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
19275 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
19276 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
19277 compute_cprop_data, find_used_regs, try_replace_reg,
19278 find_avail_set, cprop_jump, constprop_register, cprop_insn,
19279 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
19280 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
19281 find_bypass_set, reg_killed_on_edge, bypass_block,
19282 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
19283 execute_rtl_cprop, pass_rtl_cprop): Move to...
19284 * cprop.c: ...here. New file, constant/copy propagation for RTL
19285 moved from gcse.c to here with minor cleanups in duplicated code.
19286
19287 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
19288
19289 * config/i386/i386.c (flag_opts): Fix a typo in
19290 -mavx256-split-unaligned-store.
19291
19292 2011-03-28 Anatoly Sokolov <aesok@post.ru>
19293
19294 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
19295 LIBCALL_VALUE): Remove macros.
19296 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19297 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19298 (h8300_function_value, h8300_libcall_value,
19299 h8300_function_value_regno_p): New functions.
19300
19301 2011-03-28 Anatoly Sokolov <aesok@post.ru>
19302
19303 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
19304
19305 2011-03-28 Jeff Law <law@redhat.com>
19306
19307 * tree-ssa-threadupdate.c (redirect_edges): Call
19308 create_edge_and_update_destination_phis as needed.
19309 (create_edge_and_update_destination_phis): Accept new BB argument.
19310 All callers updated.
19311 (thread_block): Do not update the profile when threading around
19312 intermediate blocks.
19313 (thread_single_edge): Likewise.
19314 (determine_bb_domination_status): If BB is not a successor of the
19315 loop header, return NONDOMINATING.
19316 (register_jump_thread): Note when we register a jump thread around
19317 an intermediate block.
19318 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
19319 (thread_across_edge): Use it.
19320
19321 2011-03-28 Tristan Gingold <gingold@adacore.com>
19322
19323 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
19324 when for_return is 2.
19325
19326 2011-03-28 Jeff Law <law@redhat.com>
19327
19328 * var-tracking.c (canonicalize_values_mark): Delete unused
19329 lhs assignment.
19330 (canonicalize_values_star, set_variable_part): Likewise.
19331 (clobber_variable_part, delete_variable_part): Likewise.
19332
19333 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
19334
19335 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
19336
19337 2011-03-28 Martin Jambor <mjambor@suse.cz>
19338
19339 * tree-inline.c (expand_call_inline): Do not check that destination
19340 node is analyzed.
19341 (optimize_inline_calls): Assert that destination node is analyzed.
19342 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
19343 not call tree_lowering_passes.
19344 * cgraph.h (cgraph_analyze_function): Declare.
19345 * cgraphunit.c (cgraph_analyze_function): Make public.
19346
19347 2011-03-28 Joseph Myers <joseph@codesourcery.com>
19348
19349 * config/sparc/sparc-opts.h: New.
19350 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
19351 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
19352 (sparc_option_override): Store processor_type enumeration rather
19353 than string in cpu_default. Remove name and enumeration from
19354 cpu_table. Directly default -mcpu then default -mtune from -mcpu
19355 without using sparc_select. Use target_flags_explicit instead of
19356 fpu_option_set.
19357 * config/sparc/sparc.h (enum processor_type): Move to
19358 sparc-opts.h.
19359 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
19360 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
19361 HeaderInclude entry.
19362 (mcpu=, mtune=): Use Var and Enum.
19363 (sparc_processor_type): New Enum and EnumValue entries.
19364
19365 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19366 Iain Sandoe <iains@gcc.gnu.org>
19367
19368 PR target/48245
19369 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
19370
19371 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
19372
19373 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
19374 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
19375 Insert new statements at it in lieu of STMT.
19376 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
19377 * tree-vect-stmts.c (vectorizable_store): Likewise.
19378 (vectorizable_load): Likewise.
19379
19380 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
19381
19382 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
19383 (divtf3): Ditto.
19384 (multf3): Ditto.
19385 (subtf3): Ditto.
19386
19387 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
19388
19389 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
19390 unaligned 256bit load/store.
19391 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
19392 (*avx_movdqu<avxmodesuffix>): Likewise.
19393
19394 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19395
19396 PR target/48288
19397 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
19398 * config/pa/pa.md (iordi3): Use new predicate in expander.
19399 (iorsi3): Likewise.
19400
19401 2011-03-27 Anatoly Sokolov <aesok@post.ru>
19402
19403 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
19404 FUNCTION_VALUE_REGNO_P): Remove macros.
19405 * config/mips/mips-protos.h (mips_function_value): Remove.
19406 * config/mips/mips.c (mips_function_value): Rename to...
19407 (mips_function_value_1): ... this. Make static. Handle receiving
19408 the function type in 'fn_decl_or_type' argument.
19409 (mips_function_value, mips_libcall_value,
19410 mips_function_value_regno_p): New function.
19411 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19412 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19413
19414 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
19415
19416 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
19417 and -mavx256-split-unaligned-store.
19418 (ix86_option_override_internal): Split 32-byte AVX unaligned
19419 load/store by default.
19420 (ix86_avx256_split_vector_move_misalign): New.
19421 (ix86_expand_vector_move_misalign): Use it.
19422
19423 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
19424 -mavx256-split-unaligned-store.
19425
19426 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
19427 256bit load/store. Generate unaligned store on misaligned memory
19428 operand.
19429 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
19430 256bit load/store.
19431 (*avx_movdqu<avxmodesuffix>): Likewise.
19432
19433 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
19434 -mavx256-split-unaligned-store.
19435
19436 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
19437
19438 PR target/38598
19439 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
19440 Update commentary.
19441
19442 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
19443
19444 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
19445 opno arguments with an expand_operand. Use create_input_operand.
19446 (mips_prepare_builtin_target): Delete.
19447 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
19448 functions.
19449 (mips_expand_builtin_direct): Use create_output_operand and
19450 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
19451 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
19452 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
19453
19454 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
19455
19456 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
19457 function.
19458 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
19459
19460 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
19461
19462 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
19463 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
19464 basic blocks and call commit_edge_insertions directly.
19465 (fixup_abnormal_edges): Move from here to...
19466 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
19467 on the edges and return whether some have actually been inserted.
19468 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
19469 compensation code.
19470
19471 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
19472
19473 PR rtl-optimization/48144
19474 * sel-sched-ir.c (merge_history_vect): Factor out from ...
19475 (merge_expr_data): ... here.
19476 (av_set_intersect): Rename to av_set_code_motion_filter.
19477 Update all callers. Call merge_history_vect when an expression
19478 is found in both sets.
19479 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
19480
19481 2011-03-26 Alan Modra <amodra@gmail.com>
19482
19483 * config/rs6000/predicates.md (word_offset_memref_op): Handle
19484 cmodel medium addresses.
19485 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
19486 64-bit gpr loads and stores.
19487 (rs6000_secondary_reload_ppc64): New function.
19488 * config/rs6000/rs6000-protos.h: Declare it.
19489 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
19490
19491 2011-03-26 Alan Modra <amodra@gmail.com>
19492
19493 PR target/47487
19494 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
19495 GNU Go in traceback table.
19496
19497 2011-03-25 Richard Henderson <rth@redhat.com>
19498
19499 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
19500 if there are exactly 6 operands.
19501 (set_storage_via_setmem): Similarly.
19502
19503 2011-03-25 Kai Tietz <ktietz@redhat.com>
19504
19505 * collect2.c (write_c_file_stat): Handle backslash
19506 as right-hand directory separator.
19507 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
19508 checking just for slash.
19509 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
19510 instead of checking for trailing slash.
19511 * gcc.c (record_temp_file): Use filename_cmp instead
19512 of strcmp.
19513 (do_spec_1): Likewise.
19514 (replace_outfile_spec_function): Likewise.
19515 (is_directory): Use filename_ncmp instead of strncmp.
19516 (print_multilib_info): Likewise.
19517 * gcov.c (find_source): Use filename_cmp instead
19518 instead of strcmp.
19519 (make_gcov_file_name): Fix order of slash/backslash
19520 checks.
19521 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
19522 (add_standard_paths): Likewise.
19523 * mips-tfile.c (saber_stop): Handle backslash.
19524 * prefix.c (update_path): Use filename_ncmp instead of
19525 strncmp.
19526 * profile.c (output_location): Use filename_cmp instead
19527 of strcmp.
19528 * read-md.c (handle_toplevel_file): Handle backslash.
19529 * tlink.c (frob_extension): Likewise.
19530 * tree-cfg.c (same_line_p): Use filename_cmp instead of
19531 strcmp.
19532 * tree-dump.c (dequeue_and_dump): Handle backslash.
19533 * tree.c (get_file_function_name): Likewise.
19534 * gengtype.c (read_input_list): Likewise.
19535 (get_file_realbasename): Likewise.
19536 (get_output_file_with_visibility): Use filename_cmp
19537 instead of strcmp.
19538
19539 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
19540
19541 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
19542 case to VFPv1.
19543
19544 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
19545
19546 * fold-const.c (expr_location_or): New function.
19547 (fold_truth_not_expr): Call it.
19548
19549 2011-03-25 Jeff Law <law@redhat.com>
19550
19551 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
19552 va_end.
19553 * c-family/c-common.c (def_fn_type): Likewise.
19554 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
19555 * emit-rtl.c (gen_rtvec): Likewise.
19556 * lto/lto-lang.c (def_fn_type): Likewise.
19557
19558 2011-03-25 Richard Guenther <rguenther@suse.de>
19559
19560 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
19561 also generate copies.
19562 (fini_copy_prop): Handle constant values properly.
19563
19564 2011-03-25 Jakub Jelinek <jakub@redhat.com>
19565
19566 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
19567 mode size instead of bitsize with DWARF2_ADDR_SIZE.
19568 (hash_loc_operands, compare_loc_operands): Handle
19569 DW_OP_GNU_entry_value.
19570
19571 2011-03-25 Kai Tietz <ktietz@redhat.com>
19572
19573 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
19574 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
19575 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
19576 comment and use macro TARGET_64BIT_MS_ABI instead.
19577 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
19578 and change default behavior for 32-bit MS_ABI.
19579 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
19580 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
19581 32-bit, too.
19582 (ix86_cfun_abi): Likewise.
19583 (ix86_maybe_switch_abi): Adjust comment.
19584 (init_cumulative_args): Check for bit-ness in MS_ABI case.
19585 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
19586 instead of checking for SYSV_ABI.
19587 (ix86_nsaved_sseregs): Likewise.
19588 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
19589 to 16 bytes.
19590 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
19591 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
19592 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
19593 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
19594 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
19595
19596 2011-03-25 Richard Guenther <rguenther@suse.de>
19597
19598 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
19599 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
19600 (verify_gimple): Remove.
19601 * tree-cfg.c (verify_gimple_call): Merge verification
19602 from verify_stmts.
19603 (verify_gimple_phi): Merge verification from verify_stmts.
19604 (verify_gimple_label): New function.
19605 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
19606 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
19607 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
19608 (verify_stmts): Rename to verify_gimple_in_cfg.
19609 (verify_gimple_in_cfg): New function.
19610 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
19611 * tree-ssa.c (verify_ssa): Likewise.
19612 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
19613
19614 2011-03-25 Richard Guenther <rguenther@suse.de>
19615
19616 * passes.c (init_optimization_passes): Add FRE pass after
19617 early SRA.
19618
19619 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
19620 Andrew Stubbs <ams@codesourcery.com>
19621
19622 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
19623 for Cortex-A8.
19624 (arm_movdi_vfp_cortexa8): New pattern.
19625 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
19626 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
19627 instructions when tuning for Cortex-A8. Set attribute "arch".
19628 * config/arm/arm.md: Move include arm-tune.md up a bit.
19629 (define_attr "arch"): Add "onlya8" and "nota8" values.
19630 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
19631
19632 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
19633
19634 PR bootstrap/48282
19635 Revert:
19636 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
19637
19638 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
19639 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
19640 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
19641 * passes.c (init_optimization_passes): Move
19642 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
19643
19644 2011-03-25 Kai Tietz <ktietz@redhat.com>
19645
19646 * c-typeck.c (comptypes_internal): Replace target
19647 hook call of comp_type_attributes by version in tree.c file.
19648 * gimple.c (gimple_types_compatible_p_1): Likewise.
19649 * tree-ssa.c (useless_type_conversion_p): Likewise.
19650 * tree.c (build_type_attribute_qual_variant): Likewise.
19651 (attribute_value_equal): New static helper function.
19652 (comp_type_attributes): New function.
19653 (merge_attributes): Use attribute_value_equal for comparison.
19654 (attribute_list_contained): Likewise.
19655 * tree.h (comp_type_attributes): New prototype.
19656
19657 2011-03-25 Richard Guenther <rguenther@suse.de>
19658
19659 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
19660 of complex types at -O0.
19661 (verify_gimple_assign_binary): Likewise.
19662 (verify_gimple_assign_ternary): Likewise.
19663
19664 2011-03-24 Mark Wielaard <mjw@redhat.com>
19665
19666 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
19667 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
19668
19669 2011-03-24 Mark Wielaard <mjw@redhat.com>
19670
19671 PR debug/48041
19672 * dwarf2out.c (output_abbrev_section): Only write table when
19673 abbrev_die_table_in_use > 1.
19674
19675 2011-02-24 Richard Henderson <rth@redhat.com>
19676
19677 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
19678 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
19679 (alpha_expand_unaligned_load_words): Use extql.
19680 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
19681 (emit_insxl): Handle all modes for consistency.
19682
19683 2011-02-24 Richard Henderson <rth@redhat.com>
19684
19685 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
19686 (alpha_expand_unaligned_load): Likewise.
19687 (alpha_expand_unaligned_store): Likewise.
19688 (alpha_expand_unaligned_load_words): Likewise.
19689 (alpha_expand_unaligned_store_words): Likewise.
19690 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
19691 (alpha_split_lock_test_and_set_12): Likewise.
19692 (print_operand, alpha_fold_builtin_extxx): Likewise.
19693 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
19694 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
19695 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
19696 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
19697 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
19698 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
19699 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
19700 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
19701 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
19702 (extwl, extll, extql): Similarly.
19703 (inswh, inslh, insqh): Similarly.
19704 (mskbl, mskwl, mskll, mskql): Similarly.
19705 (mskwh, msklh, mskqh): Similarly.
19706
19707 2011-02-24 Richard Henderson <rth@redhat.com>
19708
19709 * config/alpha/alpha.md (attribute isa): Add er, ner.
19710 (attribute enabled): Handle them.
19711 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
19712
19713 2011-02-24 Richard Henderson <rth@redhat.com>
19714
19715 * config/alpha/alpha.md (attribute isa): Add vms.
19716 (attribute enabled): Handle it.
19717 (*movsf): Merge *movsf_{nofix,fix,nofp}.
19718 (*movdf): Merge *movdf_{nofix,fix,nofp}.
19719 (*movtf): Rename from *movtf_internal for consistency.
19720 (*movsi): Merge with *movsi_nt_vms.
19721 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
19722 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
19723 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
19724 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
19725
19726 2011-02-24 Richard Henderson <rth@redhat.com>
19727
19728 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
19729 (extendqisi2, extendhisi2): Likewise.
19730 (extendqidi2): Simplify BWX/non-BWX expansions.
19731 (extendhidi2): Similarly.
19732
19733 2011-02-24 Richard Henderson <rth@redhat.com>
19734
19735 * config/alpha/alpha.md (attribute isa): New.
19736 (attribute enabled): New.
19737 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
19738 (zero_extendqisi2, zero_extendqidi2): Similarly.
19739 (zero_extendhisi2, zero_extendhidi2): Similarly.
19740 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
19741
19742 2011-02-24 Richard Henderson <rth@redhat.com>
19743
19744 * config/alpha/predicates.md (input_operand): Revert last change;
19745 update comment to mention 32-bit VMS rather than Windows.
19746
19747 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
19748
19749 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
19750 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
19751 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
19752 * passes.c (init_optimization_passes): Move
19753 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
19754
19755 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
19756
19757 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
19758
19759 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
19760
19761 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
19762 correctly.
19763
19764 2011-03-24 Jakub Jelinek <jakub@redhat.com>
19765
19766 PR debug/48204
19767 * simplify-rtx.c (simplify_const_unary_operation): Call
19768 real_convert when changing mode class with FLOAT_EXTEND.
19769
19770 2011-03-24 Nick Clifton <nickc@redhat.com>
19771
19772 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
19773 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
19774 * config/rx/rx.c (rx_option_override): Set align_jumps,
19775 align_loops and align_labels if not set by the user.
19776 (rx_align_for_label): New function.
19777 (rx_max_skip_for_label): New function.
19778 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
19779 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
19780 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
19781 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
19782 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
19783
19784 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
19785
19786 PR rtl-optimization/48263
19787 * optabs.c (expand_binop_directly): Reinstate convert_modes code
19788 and original commutative_p handling. Use maybe_gen_insn.
19789
19790 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19791
19792 * reload.c (find_reloads_subreg_address): Add address_reloaded
19793 parameter and return true there if the full address has been
19794 reloaded.
19795 (find_reloads_toplev): Pass address_reloaded flag.
19796 (find_reloads_address_1): Don't use address_reloaded parameter.
19797
19798 2011-03-24 Jeff Law <law@redhat.com>
19799
19800 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
19801 unused variable "ann".
19802 (remove_unused_locals): Likewise.
19803
19804 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
19805 statement.
19806
19807 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
19808 after it is freed.
19809
19810 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19811
19812 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
19813 for invalid symbolic addresses.
19814 (s390_secondary_reload): Don't use s390_check_symref_alignment for
19815 larl operands.
19816
19817 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
19818
19819 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
19820 the argument in calls to fold_truth_not_expr.
19821
19822 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
19823
19824 * tree.c (record_node_allocation_statistics): New function.
19825 (make_node_stat, copy_node_stat, build_string): Call it.
19826 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
19827 (build1_stat, build_omp_clause): Likewise.
19828
19829 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
19830
19831 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
19832 last commit.
19833
19834 2011-03-24 Richard Guenther <rguenther@suse.de>
19835
19836 PR tree-optimization/48271
19837 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
19838 blocks that still exist.
19839
19840 2011-03-24 Richard Guenther <rguenther@suse.de>
19841
19842 PR tree-optimization/48270
19843 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
19844 not free datarefs before ddrs.
19845
19846 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
19847
19848 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
19849 from the address built for a reference with variable offset.
19850
19851 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
19852
19853 PR target/48237
19854 * config/i386/i386.md (*movdf_internal_rex64): Do not split
19855 alternatives that can be handled with movq or movabsq insn.
19856 (*movdf_internal): Disable for !TARGET_64BIT.
19857 (*movdf_internal_nointeger): Ditto.
19858 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
19859
19860 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
19861
19862 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
19863 (FUNCTION_ARG_ADVANCE): Likewise.
19864 * tm.texi.in: Change references to them to hook references.
19865 * tm.texi: Regenerate.
19866 * targhooks.c (default_function_arg): Eliminate check for target macro.
19867 (default_function_incoming_arg): Likewise.
19868 (default_function_arg_advance): Likewise.
19869 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
19870 (function_arg_advance): Likewise.
19871 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
19872
19873 2011-03-24 Richard Guenther <rguenther@suse.de>
19874
19875 PR middle-end/48269
19876 * tree-object-size.c (addr_object_size): Do not double-account
19877 for MEM_REF offsets.
19878
19879 2011-03-24 Diego Novillo <dnovillo@google.com>
19880
19881 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
19882 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
19883 (lto_input_data_block): Move from lto-opts.c. Make extern.
19884 Update all users.
19885 (lto_input_string): Rename from input_string. Make extern.
19886 Update all users.
19887 * lto-streamer-out.c (lto_output_string_with_length): Rename from
19888 output_string_with_length.
19889 Output 0 to indicate a non-NULL string. Update all callers to
19890 not emit 0.
19891 (lto_output_string): Rename from output_string. Make extern.
19892 Update all users.
19893 (lto_output_decl_state_streams): Make extern.
19894 (lto_output_decl_state_refs): Make extern.
19895 * lto-streamer.h (lto_input_string): Declare.
19896 (lto_input_data_block): Declare.
19897 (lto_output_string): Declare.
19898 (lto_output_string_with_length): Declare.
19899 (lto_output_decl_state_streams): Declare.
19900 (lto_output_decl_state_refs): Declare.
19901
19902 2011-03-24 Richard Guenther <rguenther@suse.de>
19903
19904 PR tree-optimization/46562
19905 * tree.c (build_invariant_address): New function.
19906 * tree.h (build_invariant_address): Declare.
19907 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
19908 a renamed function moved ...
19909 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
19910 Take valueization callback parameter.
19911 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
19912 * gimple-fold.h: New file.
19913 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
19914 (ccp_fold, fold_const_aggregate_ref,
19915 fold_ctor_reference, fold_nonarray_ctor_reference,
19916 fold_array_ctor_reference, fold_string_cst_ctor_reference,
19917 get_base_constructor): Move ...
19918 * gimple-fold.c: ... here.
19919 (gimple_fold_stmt_to_constant_1): New function
19920 split out from ccp_fold. Take a valueization callback parameter.
19921 Valueize all operands.
19922 (gimple_fold_stmt_to_constant): New wrapper function.
19923 (fold_const_aggregate_ref_1): New function split out from
19924 fold_const_aggregate_ref. Take a valueization callback parameter.
19925 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
19926 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
19927 invariant POINTER_PLUS_EXPRs to invariant form.
19928 (vn_valueize): New function.
19929 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
19930 * tree-vrp.c (vrp_valueize): New function.
19931 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
19932 to fold statements to constants.
19933 * tree-ssa-pre.c (eliminate): Properly guard propagation of
19934 function declarations.
19935 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
19936 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
19937
19938 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
19939
19940 * config/h8300/predicates.md (jump_address_operand): Fix register
19941 mode check.
19942
19943 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
19944
19945 * doc/invoke.texi (max-stores-to-sink): Document.
19946 * params.h (MAX_STORES_TO_SINK): Define.
19947 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
19948 if either vectorization or if-conversion is disabled.
19949 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
19950 tree-vect-data-refs.c vect_equal_offsets.
19951 (dr_equal_offsets_p): New function.
19952 (find_data_references_in_bb): Remove static.
19953 * tree-data-ref.h (find_data_references_in_bb): Declare.
19954 (dr_equal_offsets_p): Likewise.
19955 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
19956 (vect_drs_dependent_in_basic_block): Update calls to
19957 vect_equal_offsets.
19958 (vect_check_interleaving): Likewise.
19959 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
19960 (cond_if_else_store_replacement): Rename to...
19961 (cond_if_else_store_replacement_1): ... this. Change arguments and
19962 documentation.
19963 (cond_if_else_store_replacement): New function.
19964 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
19965 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
19966
19967 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
19968
19969 PR target/46934
19970 * config/arm/arm.md (casesi): Use the gen_int_mode() function
19971 to subtract lower bound instead of GEN_INT().
19972
19973 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
19974
19975 PR other/48179
19976 PR other/48221
19977 PR other/48234
19978 * doc/extend.texi (Alignment): Move section to match order in TOC.
19979 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
19980 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
19981
19982 2011-03-23 Jeff Law <law@redhat.com>
19983
19984 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
19985 before removing the edge.
19986
19987 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
19988 it may have been freed by redirect_branch_edge or
19989 redirect_edge_succ_nodup.
19990
19991 2011-03-23 Richard Guenther <rguenther@suse.de>
19992
19993 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
19994 (check_va_list_escapes): Likewise.
19995 (check_all_va_list_escapes): Likewise.
19996
19997 2011-03-23 Richard Guenther <rguenther@suse.de>
19998
19999 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
20000 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
20001 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
20002 (alias.o): Likewise.
20003 (ipa-type-escape.o): Remove.
20004 (ipa-struct-reorg.o): Likewise.
20005 (GTFILES): Remove ipa-struct-reorg.c.
20006 * alias.c: Do not include ipa-type-escape.h.
20007 * tree-ssa-alias.c: Likewise.
20008 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
20009 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
20010 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
20011 and ipa-type-escape passes.
20012 * tree-pass.h (pass_ipa_type_escape): Remove.
20013 (pass_ipa_struct_reorg): Likewise.
20014 * ipa-struct-reorg.h: Remove.
20015 * ipa-struct-reorg.c: Likewise.
20016 * ipa-type-escape.h: Likewise.
20017 * ipa-type-escape.c: Likewise.
20018 * doc/invoke.texi (-fipa-struct-reorg): Remove.
20019 (--param struct-reorg-cold-struct-ratio): Likewise.
20020 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
20021 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
20022 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
20023
20024 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20025
20026 * config/s390/2084.md: Enable all insn reservations also for z9_ec
20027 cpu attribute value.
20028 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
20029 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
20030 * config/s390/s390.c (processor_flags_table): New constant array.
20031 (s390_handle_arch_option): Remove.
20032 (s390_handle_option): Remove s390_handle_arch_option invocations
20033 and OPT_mwarn_framesize_ handling.
20034 (s390_option_override): Remove s390_handle_arch_option invocation.
20035 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
20036 warnings.
20037 * config/s390/s390.md (cpu attribute): Add z9_ec value.
20038 * config/s390/s390.opt (s390_tune, s390_arch)
20039 (march=): Replace s390_arch_option enum and values with
20040 processor_type. Set variable name to s390_arch. Set
20041 initialization value.
20042 (mtune=): Replace s390_arch_option with processor_type. Set
20043 variable name to s390_tune. Set initialization value.
20044
20045 2011-03-23 Julian Brown <julian@codesourcery.com>
20046
20047 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
20048 accesses which are not naturally aligned.
20049
20050 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
20051
20052 PR target/47553
20053 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
20054
20055 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
20056
20057 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
20058 parameter from "int" to "enum insn_code".
20059 (expand_operand_type): New enum.
20060 (expand_operand): New structure.
20061 (create_expand_operand): New function.
20062 (create_fixed_operand, create_output_operand): Likewise
20063 (create_input_operand, create_convert_operand_to): Likewise.
20064 (create_convert_operand_from, create_address_operand): Likewise.
20065 (create_integer_operand): Likewise.
20066 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
20067 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
20068 (expand_insn, expand_jump_insn): Likewise.
20069 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
20070 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
20071 (expand_movstr, expand_builtin___clear_cache): Likewise.
20072 (expand_builtin_lock_release): Likewise.
20073 * explow.c (allocate_dynamic_stack_space): Likewise.
20074 (probe_stack_range): Likewise. Allow check_stack to FAIL,
20075 and use the default handling in that case.
20076 * expmed.c (check_predicate_volatile_ok): Delete.
20077 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
20078 (emit_cstore): Likewise.
20079 * expr.c (emit_block_move_via_movmem): Likewise.
20080 (set_storage_via_setmem, expand_assignment): Likewise.
20081 (emit_storent_insn, try_casesi): Likewise.
20082 (emit_single_push_insn): Likewise. Allow the expansion to fail.
20083 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
20084 (expand_vec_shift_expr, expand_binop_directly): Likewise.
20085 (expand_twoval_unop, expand_twoval_binop): Likewise.
20086 (expand_unop_direct, emit_indirect_jump): Likewise.
20087 (emit_conditional_move, vector_compare_rtx): Likewise.
20088 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
20089 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
20090 (expand_sync_lock_test_and_set): Likewise.
20091 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
20092 (emit_unop_insn): Likewise.
20093 (expand_copysign_absneg): Change icode to an insn_code.
20094 (create_convert_operand_from_type): New function.
20095 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
20096 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
20097 (expand_insn, expand_jump_insn): Likewise.
20098 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
20099 than const_int_operand for operand 2.
20100
20101 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20102
20103 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
20104 if possible.
20105
20106 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20107
20108 * emit-rtl.c (emit_pattern_before_noloc): New function.
20109 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
20110 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
20111 (emit_pattern_after_noloc): New function.
20112 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
20113 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
20114
20115 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20116
20117 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
20118 (__ffsDI2): Likewise.
20119
20120 2011-03-22 Richard Henderson <rth@redhat.com>
20121
20122 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
20123 of !TARGET_ABI_OPEN_VMS.
20124 (alpha_trampoline_init, alpha_start_function): Likewise.
20125 (alpha_expand_epilogue, alpha_file_start): Likewise.
20126 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
20127 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
20128 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
20129 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
20130 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
20131
20132 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20133
20134 * config/s390/s390-opts.h: New.
20135 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
20136 s390_arch_flags, s390_warn_framesize, s390_stack_size,
20137 s390_stack_guard): Remove.
20138 (s390_handle_arch_option): Return void. Take enum
20139 s390_arch_option value instead of string and searching array.
20140 (s390_handle_option): Don't assert that global structures are in
20141 use. Access variables via opts pointer. Use error_at. Don't use
20142 sscanf for -mstack-guard= or -mstack-size=. Update call to
20143 s390_handle_arch_option.
20144 (s390_option_override): Update call to s390_handle_arch_option.
20145 (s390_emit_prologue): Use %d format for s390_stack_size in
20146 diagnostic. Use %wd for HOST_WIDE_INT.
20147 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
20148 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
20149 * config/s390/s390.opt (config/s390/s390-opts.h): New
20150 HeaderInclude entry.
20151 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
20152 s390_arch_flags, s390_warn_framesize): New Variable entries.
20153 (s390_arch_option): New Enum and EnumValue entries.
20154 (march=): Use Enum instead of Var.
20155 (mstack-guard=, mstack-size=): Use UInteger and Var.
20156 (mtune=): Use Enum.
20157
20158 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20159
20160 * config/score/score.c (score_handle_option): Don't assert that
20161 global structures are in use. Access target_flags via opts
20162 pointer. Use value of -march= option to determine target_flags
20163 settings.
20164 * config/score/score.opt (march=): Use Enum.
20165 (score_arch): New Enum and EnumValue entries.
20166
20167 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20168
20169 * config/mep/mep.c (option_mtiny_specified): Remove.
20170 (mep_option_override): Move register handling for -mivc2 from
20171 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
20172 instead of option_mtiny_specified.
20173 (mep_handle_option): Access target_flags via opts pointer. Don't
20174 assert that global structures are in use. Defer part of -mivc2
20175 handling and move it to mep_option_override.
20176 * config/mep/mep.opt (IVC2): New Mask entry.
20177 (mivc2): Use Var and Defer instead of Mask.
20178
20179 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20180
20181 * config/v850/v850-opts.h: New.
20182 * config/v850/v850.c (small_memory): Replace with
20183 small_memory_physical_max array. Make that array static const.
20184 (v850_handle_memory_option): Take integer value of argument. Take
20185 gcc_options pointer, option text and location. Return void.
20186 Update for changes to small memory structures.
20187 (v850_handle_option): Access target_flags via opts pointer. Don't
20188 assert that global structures are in use. Update calls to
20189 v850_handle_memory_option.
20190 (v850_encode_data_area): Update references to small memory settings.
20191 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
20192 (enum small_memory_type): Move to v850-opts.h.
20193 * config/v850/v850.opt (config/v850/v850-opts.h): New
20194 HeaderInclude entry.
20195 (small_memory_max): New Variable entry.
20196 (msda): Replace by pair of options msda= and msda-. Use UInteger.
20197 (mtda, mzda): Likewise.
20198
20199 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20200
20201 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
20202 pointer. Don't assert that global structures are in use.
20203
20204 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20205
20206 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
20207 via opts pointer. Don't assert that global structures are in use.
20208
20209 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20210
20211 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
20212 (munix=93): Use Var.
20213 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
20214 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
20215 * config/pa/pa-opts.h: New.
20216 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
20217 (pa_handle_option): Don't assert that global structures are in
20218 use. Access target_flags via opts pointer. Don't handle
20219 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
20220 OPT_munix_98 here.
20221 (pa_option_override): Handle deferred OPT_mfixed_range_.
20222
20223 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20224
20225 * config/mn10300/mn10300-opts.h: New.
20226 * config/mn10300/mn10300.c (mn10300_processor,
20227 mn10300_tune_string): Remove.
20228 (mn10300_handle_option): Don't assert that global structures are
20229 in use. Access mn10300_processor via opts pointer. Don't handle
20230 OPT_mtune_ here.
20231 * config/mn10300/mn10300.h (enum processor_type): Move to
20232 mn10300-opts.h.
20233 (mn10300_processor): Remove.
20234 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
20235 HeaderInclude entry.
20236 (mn10300_processor): New Variable entry.
20237 (mtune=): Use Var.
20238
20239 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20240
20241 * config/microblaze/microblaze.c: Don't include opts.h.
20242 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
20243 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
20244 (mno-clearbss): Use Var and Warn.
20245
20246 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20247
20248 * config/m32r/m32r-opts.h: New.
20249 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
20250 (m32r_handle_option): Don't assert that global structures are in
20251 use. Access target_flags and m32r_cache_flush_func via opts
20252 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
20253 OPT_mno_flush_trap here.
20254 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
20255 include of m32r-opts.h.
20256 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
20257 HeaderInclude entry.
20258 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
20259 (mmodel=): Use Enum and Var.
20260 (m32r_model): New Enum and EnumValue entries.
20261 (mno-flush-trap): Use Var.
20262 (msdata=): Use Enum and Var.
20263 (m32r_sdata): New Enum and EnumValue entries.
20264
20265 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20266
20267 * config/m32c/m32c.c: Don't include opts.h.
20268 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
20269 m32c_handle_option): Remove.
20270 (m32c_option_override): Check global_options_set.x_target_memregs
20271 instead of target_memregs_set.
20272 * config/m32c/m32c.h (target_memregs): Remove.
20273 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
20274 variable.
20275
20276 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20277
20278 * config/iq2000/iq2000-opts.h: New.
20279 * config/iq2000/iq2000.c: Don't include opts.h.
20280 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
20281 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
20282 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
20283 HeaderInclude entry.
20284 (iq2000_tune): New Variable entry.
20285 (march=): Add comment. Use Enum.
20286 (iq2000_arch): New Enum and EnumValue entries.
20287 (mcpu=): Use Enum and Var.
20288 (iq2000_tune): New Enum and EnumValue entries.
20289
20290 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20291
20292 * config/ia64/ia64-opts.h: New.
20293 * config/ia64/ia64.c (ia64_tune): Remove.
20294 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
20295 here. Use error_at.
20296 (ia64_option_override): Handle deferred OPT_mfixed_range_.
20297 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
20298 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
20299 HeaderInclude entry.
20300 (ia64_tune): New Variable entry.
20301 (mfixed-range=): Use Defer and Var.
20302 (mtune=): Use Enum and Var.
20303 (ia64_tune): New Enum and EnumValue entries.
20304
20305 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20306
20307 * config/frv/frv-opts.h: New.
20308 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
20309 frv-opts.h.
20310 (frv_cpu_type): Remove.
20311 * config/frv/frv.c: Don't include opts.h.
20312 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
20313 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
20314 (frv_cpu_type): New Variable entry.
20315 (frv_cpu): New Enum and EnumValue entries.
20316
20317 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20318
20319 * config/cris/cris.c (cris_handle_option): Access target_flags via
20320 opts pointer. Don't assert that global structures are in use.
20321 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
20322 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
20323
20324 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20325
20326 * config/bfin/bfin-opts.h: New.
20327 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
20328 bfin_si_revision, bfin_workarounds): Remove.
20329 (bfin_cpus): Make static const.
20330 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
20331 not bfin_lib_id_given.
20332 (bfin_handle_option): Don't set bfin_lib_id_given. Access
20333 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
20334 pointer. Use error_at. Don't assert that global structures are in use.
20335 * config/bfin/bfin.h: Include bfin-opts.h.
20336 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
20337 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
20338 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
20339 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
20340 entries.
20341
20342 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20343
20344 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
20345 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
20346 or -msoft-float here.
20347 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
20348 -msoft-float and -mhard-float.
20349 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
20350 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
20351 msoft-float.
20352 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
20353 -msoft-float.
20354 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
20355 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
20356 not mhard-float.
20357 (LIBGCC_SPEC): Don't handle -msoft-float.
20358 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
20359 -mhard-float.
20360 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
20361 msoft-float.
20362 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
20363 -mfloat-abi=*, not -msoft-float and -mhard-float.
20364 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
20365 -msoft-float.
20366 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
20367 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
20368 mhard-float and msoft-float.
20369 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
20370 mfloat-abi=soft in comments, not mhard-float and msoft-float.
20371 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
20372 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
20373 mhard-float.
20374 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
20375 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
20376 msoft-float.
20377 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
20378 not mhard-float.
20379 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
20380 not msoft-float.
20381
20382 2011-03-22 Richard Henderson <rth@redhat.com>
20383
20384 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
20385 TARGET_ABI_WINDOWS_NT.
20386 (alpha_output_function_end_prologue): Likewise.
20387 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
20388 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20389 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
20390 (trap, *movsi_nt_vms): Likewise.
20391 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
20392 (*tablejump_osf_nt_internal): Remove.
20393 * config/alpha/predicates.md (input_operand): Only test Pmode.
20394
20395 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20396
20397 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
20398 via opts pointer. Use error_at. Don't assert that global
20399 structures are in use.
20400
20401 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20402
20403 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
20404 (ix86_handle_option): Access ix86_isa_flags and
20405 ix86_isa_flags_explicit via opts pointer. Don't assert that
20406 global structures are in use.
20407 (ix86_function_specific_save, ix86_function_specific_restore):
20408 Update ix86_isa_flags_explicit field name.
20409 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
20410 (ix86_isa_flags_explicit): Rename TargetSave entry to
20411 x_ix86_isa_flags_explicit.
20412
20413 2011-03-22 Richard Henderson <rth@redhat.com>
20414
20415 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
20416 (alpha_option_override, direct_return): Likewise.
20417 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
20418 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
20419 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
20420 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
20421 (alpha_expand_epilogue, alpha_end_function): Likewise.
20422 (alpha_init_libfuncs): Likewise.
20423 (struct machine_function): Remove unicosmk members.
20424 (print_operand) ['t']: Remove.
20425 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
20426 unicosmk_output_module_name, unicosmk_output_common,
20427 current_section_align, unicosmk_output_text_section_asm_op,
20428 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
20429 unicosmk_section_type_flags, unicosmk_unique_section,
20430 unicosmk_asm_named_section, unicosmk_insert_attributes,
20431 unicosmk_output_align, unicosmk_defer_case_vector,
20432 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
20433 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
20434 unicosmk_output_ssib, unicosmk_add_call_info_word,
20435 unicosmk_extern_head, unicosmk_output_default_externs,
20436 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
20437 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
20438 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
20439 * config/alpha/alpha-protos.h: Update.
20440 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
20441 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
20442 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
20443 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
20444 (*mulsi_se, mulvsi3): Likewise.
20445 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
20446 (*divmodsi_internal, call, call_value, realign): Likewise.
20447 (moddi3, umoddi3): Likewise; remove duplicate expander.
20448 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
20449 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
20450 (*movdi_nofix): Remove r/U alternative.
20451 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
20452 * config/alpha/constraints.md ("U"): Remove.
20453 * config/alpha/predicates.md (call_operand"): Don't test
20454 TARGET_ABI_UNICOSMK.
20455
20456 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20457
20458 * target.def (handle_option): Take gcc_options and
20459 cl_decoded_option pointers and location_t.
20460 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
20461 * doc/tm.texi: Regenerate.
20462 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
20463 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
20464 * lto-opts.c (lto_reissue_options): Generate option structure for
20465 targetm.handle_option call.
20466 * opts.c (target_handle_option): Update call to
20467 targetm.handle_option. Remove assertions about values now passed
20468 down to hook.
20469 * targhooks.c (default_target_handle_option): New.
20470 * targhooks.h (default_target_handle_option): Declare.
20471 * config/alpha/alpha.c: Include opts.h.
20472 (alpha_handle_option): Update to new hook interface.
20473 * config/arm/arm.c: Include opts.h.
20474 (arm_handle_option): Update to new hook interface.
20475 * config/arm/t-arm (arm.o): Update dependencies.
20476 * config/bfin/bfin.c: Include opts.h.
20477 (bfin_handle_option): Update to new hook interface.
20478 * config/cris/cris.c: Include opts.h.
20479 (cris_handle_option): Update to new hook interface.
20480 * config/frv/frv.c: Include opts.h.
20481 (frv_handle_option): Update to new hook interface.
20482 * config/i386/i386.c: Include opts.h.
20483 (ix86_handle_option): Update to new hook interface.
20484 (ix86_valid_target_attribute_inner_p): Generate option structure
20485 for call to ix86_handle_option.
20486 * config/i386/t-i386 (i386.o): Update dependencies.
20487 * config/ia64/ia64.c: Include opts.h.
20488 (ia64_handle_option): Update to new hook interface.
20489 * config/ia64/t-ia64 (ia64.o): Update dependencies.
20490 * config/iq2000/iq2000.c: Include opts.h.
20491 (iq2000_handle_option): Update to new hook interface.
20492 * config/m32c/m32c.c: Include opts.h.
20493 (m32c_handle_option): Update to new hook interface.
20494 * config/m32r/m32r.c: Include opts.h.
20495 (m32r_handle_option): Update to new hook interface.
20496 * config/m68k/m68k.c: Include opts.h.
20497 (m68k_handle_option): Update to new hook interface.
20498 * config/mep/mep.c: Include opts.h.
20499 (mep_handle_option): Update to new hook interface.
20500 * config/microblaze/microblaze.c: Include opts.h.
20501 (microblaze_handle_option): Update to new hook interface.
20502 * config/mips/mips.c: Include opts.h.
20503 (mips_handle_option): Update to new hook interface.
20504 * config/mn10300/mn10300.c: Include opts.h.
20505 (mn10300_handle_option): Update to new hook interface.
20506 * config/pa/pa.c: Include opts.h.
20507 (pa_handle_option): Update to new hook interface.
20508 * config/pdp11/pdp11.c: Include opts.h.
20509 (pdp11_handle_option): Update to new hook interface.
20510 * config/rs6000/rs6000.c: Include opts.h.
20511 (rs6000_handle_option): Update to new hook interface.
20512 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
20513 * config/rx/rx.c: Include opts.h.
20514 (rx_handle_option): Update to new hook interface.
20515 * config/s390/s390.c: Include opts.h.
20516 (s390_handle_option): Update to new hook interface.
20517 * config/score/score.c: Include opts.h.
20518 (score_handle_option): Update to new hook interface.
20519 * config/sh/sh.c: Include opts.h.
20520 (sh_handle_option): Update to new hook interface.
20521 * config/sparc/sparc.c: Include opts.h.
20522 (sparc_handle_option): Update to new hook interface.
20523 * config/v850/v850.c: Include opts.h.
20524 (v850_handle_option): Update to new hook interface.
20525
20526 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20527
20528 * gcc.c (driver_unknown_option_callback): Only permit and save
20529 unknown -Wno- options.
20530 (driver_wrong_lang_callback): Save options directly instead of via
20531 driver_unknown_option_callback.
20532
20533 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
20534
20535 * combine.c (simplify_set): Try harder to find the best CC mode when
20536 simplifying a nested COMPARE on the RHS.
20537
20538 2011-03-22 Joseph Myers <joseph@codesourcery.com>
20539
20540 * config/alpha/gnu.h: Remove.
20541 * config/arc: Remove directory.
20542 * config/arm/netbsd.h: Remove.
20543 * config/arm/t-pe: Remove.
20544 * config/crx: Remove directory.
20545 * config/i386/netbsd.h: Remove.
20546 * config/m68hc11: Remove directory.
20547 * config/m68k/uclinux-oldabi.h: Remove.
20548 * config/mcore/mcore-pe.h: Remove.
20549 * config/mcore/t-mcore-pe: Remove.
20550 * config/netbsd-aout.h: Remove.
20551 * config/rs6000/gnu.h: Remove.
20552 * config/sh/sh-symbian.h: Remove.
20553 * config/sh/symbian-base.c: Remove.
20554 * config/sh/symbian-c.c: Remove.
20555 * config/sh/symbian-cxx.c: Remove.
20556 * config/sh/symbian-post.h: Remove.
20557 * config/sh/symbian-pre.h: Remove.
20558 * config/sh/t-symbian: Remove.
20559 * config/svr3.h: Remove.
20560 * config/vax/netbsd.h: Remove.
20561 * config.build: Don't handle i[34567]86-*-pe.
20562 * config.gcc: Remove handling of deprecations for most deprecated
20563 targets.
20564 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
20565 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
20566 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
20567 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
20568 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
20569 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
20570 Remove cases.
20571 * config.host: Don't handle i[34567]86-*-pe.
20572 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
20573 (ASM_SPEC32): Don't handle -mcall-gnu.
20574 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
20575 -mcall-gnu.
20576 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
20577 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
20578 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
20579 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
20580 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
20581 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
20582 conditional on SYMBIAN.
20583 * configure.ac: Don't handle powerpc*-*-gnu*.
20584 * configure: Regenerate.
20585 * doc/extend.texi (interrupt attribute): Don't mention CRX.
20586 * doc/install-old.texi (m6811, m6812): Don't mention.
20587 * doc/install.texi (arc-*-elf*): Don't document multilib option.
20588 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
20589 (m68k-uclinuxoldabi): Don't mention.
20590 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
20591 Remove.
20592 (-mcall-gnu): Remove.
20593 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
20594 families): Remove constraint documentation.
20595
20596 2011-03-22 Marius Strobl <marius@FreeBSD.org>
20597
20598 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
20599 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
20600 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
20601
20602 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20603
20604 PR target/48226
20605 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
20606 vector when peeking at the next token for vector, don't expand the
20607 keywords.
20608
20609 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
20610
20611 * config/avr/avr-protos.h (expand_epilogue): Change prototype
20612 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
20613 * config/avr/avr.c (init_cumulative_args)
20614 (avr_function_arg_advance): Use it.
20615 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
20616 sibcall epilogues.
20617 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
20618 (avr_function_ok_for_sibcall): ...this new function.
20619 (avr_lookup_function_attribute1): New static Function.
20620 (avr_naked_function_p, interrupt_function_p)
20621 (signal_function_p, avr_OS_task_function_p)
20622 (avr_OS_main_function_p): Use it.
20623 * config/avr/avr.md ("sibcall", "sibcall_value")
20624 ("sibcall_epilogue"): New expander.
20625 ("*call_insn", "*call_value_insn"): New insn.
20626 ("call_insn", "call_value_insn"): Remove
20627 ("call", "call_value", "epilogue"): Change expander to handle
20628 sibling calls.
20629
20630 2011-03-21 Nick Clifton <nickc@redhat.com>
20631
20632 * doc/invoke.texi (Overall Options): Move closing brace to end of
20633 options list.
20634 (Optimization Options): Add missing @gol.
20635 (Directory Options): Likewise.
20636 (i386 and x86-64 Options): Likewise.
20637 (RS6000 and PowerPC Options): Likewise.
20638 (i386 and x86-64 Windows Options): Likewise.
20639 (V850 Options): Add text missing from descriptions.
20640
20641 2011-03-22 Richard Henderson <rth@redhat.com>
20642
20643 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
20644 (avr_incoming_return_addr_rtx): New.
20645 (emit_push_byte): New.
20646 (expand_prologue): Use it. Remove incorrect dwarf annotation for
20647 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
20648 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
20649 (emit_pop_byte): New.
20650 (expand_epilogue): Use it. Pop frame pointer by bytes.
20651 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
20652 (INCOMING_RETURN_ADDR_RTX): New.
20653 (INCOMING_FRAME_SP_OFFSET): New.
20654 (ARG_POINTER_CFA_OFFSET): New.
20655 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
20656 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
20657 (pophi): Remove.
20658
20659 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
20660
20661 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20662
20663 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
20664 (FUNCTION_ARG_ADVANCE): Likewise.
20665 * tm.texi.in: Change references to them to hook references.
20666 * tm.texi: Regenerate.
20667 * targhooks.c (default_function_arg): Eliminate check for target
20668 macro.
20669 (default_function_incoming_arg): Likewise.
20670 (default_function_arg_advance): Likewise.
20671 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
20672 (function_arg_advance): Likewise.
20673 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
20674
20675 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
20676
20677 * tree.c (build_call_1): New function.
20678 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
20679
20680 2011-03-22 Richard Guenther <rguenther@suse.de>
20681
20682 PR tree-optimization/48228
20683 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
20684 for single-arg PHIs.
20685
20686 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
20687
20688 PR rtl-optimization/48143
20689 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
20690 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
20691 sse2_cvtps2pd): Likewise.
20692
20693 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20694
20695 * recog.c (canonicalize_change_group): Use validate_unshare_change.
20696
20697 2011-03-22 Richard Guenther <rguenther@suse.de>
20698
20699 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
20700 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
20701 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
20702 and REALIGN_LOAD_EXPR.
20703 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
20704 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
20705 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
20706 DOT_PROD_EXPR case ...
20707 (expand_expr_real_2): ... here.
20708 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
20709 and REALIGN_LOAD_EXPR.
20710 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
20711 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
20712 (vect_create_epilog_for_reduction): Likewise.
20713 (vectorizable_reduction): Likewise.
20714 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
20715 * tree-vect-stmts.c (vectorizable_load): Likewise.
20716
20717 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
20718
20719 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
20720
20721 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20722
20723 * config/s390/s390.c (s390_delegitimize_address): Fix offset
20724 handling for PLTOFF/GOTOFF.
20725
20726 2011-03-22 Nick Clifton <nickc@redhat.com>
20727
20728 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
20729 trailing backslash from the end of the macro definition.
20730
20731 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20732
20733 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
20734 and PLT unspecs.
20735
20736 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
20737
20738 * expr.h (prepare_operand): Move to...
20739 * optabs.h (prepare_operand): ...here and change the insn code
20740 parameter from "int" to "enum insn_code".
20741 (insn_operand_matches): Declare.
20742 * expr.c (init_expr_target): Use insn_operand_matches.
20743 (compress_float_constant): Likewise.
20744 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
20745 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
20746 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
20747 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
20748 Likewise.
20749 (gen_cond_trap): Likewise.
20750 (prepare_operand): Likewise. Change icode to an insn_code.
20751 (insn_operand_matches): New function.
20752 * reload.c (find_reloads_address_1): Use insn_operand_matches.
20753 * reload1.c (gen_reload): Likewise.
20754 * targhooks.c (default_secondary_reload): Likewise.
20755
20756 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
20757
20758 * config/alpha/alpha.md (unspec): New define_c_enum.
20759 (unspecv): Ditto.
20760
20761 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
20762
20763 PR debug/48214
20764 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
20765 between a call and its CALL_ARG_LOCATION note.
20766
20767 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
20768
20769 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
20770
20771 2011-03-21 Jakub Jelinek <jakub@redhat.com>
20772
20773 PR c/42544
20774 PR c/48197
20775 * c-common.c (shorten_compare): If primopN is first sign-extended
20776 to opN and then zero-extended to result type, set primopN to opN.
20777
20778 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
20779
20780 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
20781 for barrier handlers.
20782
20783 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
20784
20785 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
20786 UNSPEC constants to be in the unspec enumeration, and redefine
20787 all UNSPECV constants to be in the unspecv enumeration, so that
20788 dumps print which unspec/unspec_volatile this is.
20789 * config/rs6000/vector.md (UNSPEC_*): Ditto.
20790 * config/rs6000/paired.md (UNSPEC_*): Ditto.
20791 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
20792 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
20793 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
20794
20795 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
20796 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
20797 UNSPECV_LWSYNC, since these are used as unspec_volatile.
20798 * config/rs6000/sync.md (isync, lwsync): Ditto.
20799
20800 2011-03-21 Richard Guenther <rguenther@suse.de>
20801
20802 * params.def (lto-min-partition): Fix typo.
20803
20804 2011-03-21 Richard Guenther <rguenther@suse.de>
20805
20806 PR c/47939
20807 * c-decl.c (grokdeclarator): Drop to the main variant only
20808 for array types. Drop flag_gen_aux_info check.
20809
20810 2011-03-21 Richard Guenther <rguenther@suse.de>
20811
20812 PR translation/47911
20813 * params.def (lto-partitions): Fix typo.
20814 (lto-min-partition): Fix wording.
20815
20816 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
20817
20818 * config/rs6000/t-freebsd: Remove duplication from file.
20819
20820 2011-03-21 Richard Guenther <rguenther@suse.de>
20821
20822 PR middle-end/47661
20823 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
20824
20825 2011-03-21 Richard Guenther <rguenther@suse.de>
20826
20827 PR lto/48210
20828 * params.def (lto-partitions): Require at least 1 partition.
20829
20830 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20831
20832 * gthr-solaris.h: Remove.
20833 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
20834 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
20835 (LIB_SPEC): Likewise.
20836 * config/sol2.opt (threads): Remove.
20837 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
20838 (sparc*-*-solaris2*): Likewise.
20839 * configure.ac (enable_threads): Enable solaris support.
20840 * configure: Regenerate.
20841 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
20842 * doc/install.texi (Configuration, --enable-threads=lib): Remove
20843 solaris.
20844
20845 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20846
20847 * config.gcc: Obsolete *-*-solaris2.8*.
20848 * doc/install.texi (Specific, *-*-solaris2*): Document it.
20849
20850 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20851
20852 PR bootstrap/48135
20853 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
20854 reference. Solaris 8 perl works.
20855
20856 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20857
20858 PR bootstrap/48135
20859 * doc/install.texi (Prerequisites): Move jar etc. up.
20860 Explain support library version requirements.
20861
20862 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20863
20864 PR bootstrap/48135
20865 * doc/install.texi (Prerequisites): Move Perl to build
20866 requirements. Always necessary on Solaris 2 with Sun ld.
20867
20868 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20869
20870 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
20871 binutils 2.21.
20872 (Specific, i?86-*-solaris2.[89]): Likewise.
20873 (Specific, i?86-*-solaris2.10): Likewise.
20874 (Specific, mips-sgi-irix6): Likewise.
20875 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
20876 Update for binutils 2.21.
20877
20878 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20879
20880 * configure.ac (gcc_cv_lto_plugin): Fix typo.
20881 Allow -fuse-linker-plugin for non-default plugin linker.
20882 * configure: Regenerate.
20883
20884 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
20885
20886 PR bootstrap/48167
20887 * gengtype.c (files_rules): Added rule for cp/parser.h.
20888
20889 2011-03-21 Jakub Jelinek <jakub@redhat.com>
20890
20891 PR target/48213
20892 * config/s390/s390.c (s390_delegitimize_address): Don't call
20893 lowpart_subreg if orig_x has BLKmode.
20894
20895 2011-03-21 Kai Tietz <ktietz@redhat.com>
20896
20897 PR target/12171
20898 * doc/plugins.texi: Adjust documentation for plugin register_callback.
20899 * tree.h (attribute_spec): Add new member affects_type_identity.
20900 * attribs.c (empty_attribute_table): Adjust attribute_spec
20901 initializers.
20902 * config/alpha/alpha.c: Likewise.
20903 * config/arc/arc.c: Likewise.
20904 * config/arm/arm.c: Likewise.
20905 * config/avr/avr.c: Likewise.
20906 * config/bfin/bfin.c: Likewise.
20907 * config/crx/crx.c: Likewise.
20908 * config/darwin.h: Likewise.
20909 * config/h8300/h8300.c: Likewise.
20910 * config/i386/cygming.h: Likewise.
20911 * config/i386/i386.c: Likewise.
20912 * config/ia64/ia64.c: Likewise.
20913 * config/m32c/m32c.c: Likewise.
20914 * config/m32r/m32r.c: Likewise.
20915 * config/m68hc11/m68hc11.c: Likewise.
20916 * config/m68k/m68k.c: Likewise.
20917 * config/mcore/mcore.c: Likewise.
20918 * config/mep/mep.c: Likewise.
20919 * config/microblaze/microblaze.c: Likewise.
20920 * config/mips/mips.c: Likewise.
20921 * config/rs6000/rs6000.c: Likewise.
20922 * config/rx/rx.c: Likewise.
20923 * config/sh/sh.c: Likewise.
20924 * config/sol2.h: Likewise.
20925 * config/sparc/sparc.c: Likewise.
20926 * config/spu/spu.c: Likewise.
20927 * config/stormy16/stormy16.c: Likewise.
20928 * config/v850/v850.c: Likewise.
20929
20930 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
20931
20932 * simplify-rtx.c (simplify_binary_operation_1): Handle
20933 (xor (and A B) C) case when B and C are both constants.
20934
20935 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
20936
20937 * tree-dfa.c (add_referenced_var): Fix typo in comment.
20938
20939 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
20940
20941 PR bootstrap/48168
20942 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
20943
20944 2011-03-20 Jakub Jelinek <jakub@redhat.com>
20945
20946 PR rtl-optimization/48156
20947 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
20948 assume df and df_lr are not NULL.
20949
20950 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20951
20952 PR debug/48023
20953 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
20954 between a call and its CALL_ARG_LOCATION note.
20955
20956 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
20957
20958 PR debug/48178
20959 * config/sh/sh.c (find_barrier): Don't emit a constant pool
20960 between a call and its corresponding CALL_ARG_LOCATION note.
20961
20962 2011-03-19 Anatoly Sokolov <aesok@post.ru>
20963
20964 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
20965 instead of loop. Use HARD_REGISTER_NUM_P predicate.
20966 * haifa-sched.c (setup_ref_regs): Ditto.
20967 * caller-save.c (add_used_regs_1): Ditto.
20968 * dse.c (look_for_hardregs): Ditto.
20969 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
20970 * sched-rgn.c (check_live_1): Ditto.
20971
20972 2011-03-18 Joseph Myers <joseph@codesourcery.com>
20973
20974 * c-decl.c (diagnose_mismatched_decls): Give an error for
20975 redefining a typedef with variably modified type.
20976
20977 2011-03-18 Joseph Myers <joseph@codesourcery.com>
20978
20979 * c-decl.c (grokfield): Don't allow typedefs for structures or
20980 unions with no tag by default.
20981 * doc/extend.texi (Unnamed Fields): Update.
20982
20983 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
20984
20985 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
20986 Rewrite using indirect functions.
20987 (lwp_slwpcb): Ditto.
20988 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
20989 (avx_vinsertf128<mode>): Ditto.
20990
20991 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20992
20993 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
20994 unspecs.
20995
20996 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
20997
20998 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
20999 splitting between a call and its corresponding CALL_ARG_LOCATION note.
21000
21001 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
21002
21003 PR rtl-optimization/48170
21004 * gcse.c (hoist_code): Remove bogus asserts.
21005
21006 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
21007
21008 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
21009 computation for prologue/epilogue.
21010
21011 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21012
21013 * Makefile.in (check-consistency): Remove.
21014
21015 2011-03-18 Jakub Jelinek <jakub@redhat.com>
21016
21017 PR debug/48176
21018 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
21019 arange_table_in_use is 0, but either text_section_used or
21020 cold_text_section_used is true. Don't call it if
21021 !info_section_emitted.
21022
21023 2011-03-18 Anatoly Sokolov <aesok@post.ru>
21024
21025 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
21026 FUNCTION_VALUE_REGNO_P): Remove.
21027 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
21028 Remove.
21029 * config/avr/avr.c (avr_ret_register): Make static inline.
21030 (avr_function_value_regno_p): New function.
21031 (avr_libcall_value): Make static. Add 'func' argument.
21032 (avr_function_value): Make static. Rename 'func' argument to
21033 'fn_decl_or_type', forward it to avr_libcall_value. Call
21034 avr_ret_register function instead of RET_REGISTER macro.
21035 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
21036
21037 2011-03-18 Jason Merrill <jason@redhat.com>
21038
21039 PR c++/23372
21040 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
21041
21042 2011-03-18 Richard Guenther <rguenther@suse.de>
21043
21044 * doc/install.texi (--enable-gold): Remove.
21045 (--with-plugin-ld): Document.
21046 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
21047
21048 2011-03-18 Andrew Pinski <pinskia@gmail.com>
21049
21050 PR middle-end/47790
21051 * expr.c (optimize_bitfield_assignment_op): Revamp to work
21052 again after expansion changes.
21053
21054 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
21055
21056 * combine.c (try_combine): Do simplification only call of
21057 subst() on i2 even when i1 is present. Update comments.
21058
21059 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
21060
21061 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
21062 and UNSPEC_PCREL_SYMOFF.
21063
21064 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21065
21066 * config/s390/s390.md: Use define_c_enum for the unspec constant
21067 definitions.
21068
21069 2011-03-18 Richard Henderson <rth@redhat.com>
21070 Jakub Jelinek <jakub@redhat.com>
21071
21072 PR bootstrap/48161
21073 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
21074 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
21075
21076 2011-03-17 Anatoly Sokolov <aesok@post.ru>
21077
21078 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
21079 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
21080 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
21081 Change return type to bool.
21082 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
21083
21084 2011-03-17 Jakub Jelinek <jakub@redhat.com>
21085
21086 PR debug/48163
21087 * var-tracking.c (prepare_call_arguments): If CALL target
21088 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
21089 pc instead of looking it up using cselib_lookup and use
21090 Pmode for it if x has VOIDmode.
21091 * dwarf2out.c (gen_subprogram_die): If also both first and
21092 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
21093
21094 PR debug/48163
21095 * function.c (assign_parms): For data.passed_pointer parms
21096 use MEM of data.entry_parm instead of data.entry_parm itself
21097 as DECL_INCOMING_RTL.
21098 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
21099 also when passed and declared mode is the same, DECL_RTL
21100 is a MEM with pseudo as address and DECL_INCOMING_RTL is
21101 a MEM too.
21102
21103 2011-03-16 Jeff Law <law@redhat.com>
21104
21105 PR rtl-optimization/37273
21106 * ira-costs.c (scan_one_insn): Detect constants living in memory and
21107 handle them like argument loads from stack slots. Do not double
21108 count memory for memory constants and argument loads from stack slots.
21109
21110 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
21111
21112 PR debug/48160
21113 * var-tracking.c (prepare_call_arguments): Check SUBREG.
21114
21115 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
21116
21117 PR target/48171
21118 * config/i386/i386.opt: Add Save to -mavx and -mfma.
21119
21120 2011-03-17 Jakub Jelinek <jakub@redhat.com>
21121
21122 PR bootstrap/48153
21123 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
21124 if dwarf_strict.
21125 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
21126 Clear call_arg_locations and call_arg_loc_last always.
21127
21128 PR middle-end/48152
21129 * var-tracking.c (prepare_call_arguments): If argument needs to be
21130 passed by reference, adjust argtype and mode.
21131
21132 2011-03-17 Richard Guenther <rguenther@suse.de>
21133
21134 PR middle-end/48134
21135 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
21136 a value make sure to fold the statement.
21137
21138 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
21139
21140 PR target/43872
21141 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
21142 return condition with !cfun->calls_alloca.
21143
21144 2011-03-17 Richard Guenther <rguenther@suse.de>
21145
21146 PR bootstrap/48148
21147 * lto-cgraph.c (input_overwrite_node): Clear the abstract
21148 origin for decls in other ltrans units.
21149 (input_varpool_node): Likewise.
21150
21151 2011-03-17 Richard Guenther <rguenther@suse.de>
21152
21153 PR middle-end/48165
21154 * tree-object-size.c (compute_object_offset): Properly return
21155 the offset operand of MEM_REFs as sizetype.
21156
21157 2011-03-17 Jakub Jelinek <jakub@redhat.com>
21158
21159 PR rtl-optimization/48141
21160 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
21161 * dse.c: Include params.h.
21162 (active_local_stores_len): New variable.
21163 (add_wild_read, dse_step1): Clear it when setting active_local_stores
21164 to NULL.
21165 (record_store, check_mem_read_rtx): Decrease it when removing
21166 from the chain.
21167 (scan_insn): Likewise. Increase it when adding to chain, if it
21168 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
21169 set active_local_stores to NULL before the addition.
21170 * Makefile.in (dse.o): Depend on $(PARAMS_H).
21171
21172 PR rtl-optimization/48141
21173 * dse.c (record_store): If no positions are needed in an insn
21174 that cannot be deleted, at least unchain it from active_local_stores.
21175
21176 2011-03-16 Dodji Seketeli <dodji@redhat.com>
21177
21178 PR debug/47510
21179 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
21180 (lookup_type_die_strip_naming_typedef): ... here.
21181 (get_context_die): Use it.
21182 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
21183 the anonymous struct named by the naming typedef.
21184
21185 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
21186
21187 PR target/48154
21188 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
21189 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
21190
21191 2011-03-16 Jeff Law <law@redhat.com>
21192
21193 * tree-vrp.c (identify_jump_threads): Slightly simplify type
21194 check for operands of conditional. Allow type to be a pointer.
21195
21196 2011-03-16 Richard Guenther <rguenther@suse.de>
21197
21198 PR tree-optimization/48149
21199 * fold-const.c (fold_binary_loc): Fold
21200 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
21201
21202 2011-03-16 Richard Guenther <rguenther@suse.de>
21203
21204 PR tree-optimization/26134
21205 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
21206 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
21207 (non_rewritable_mem_ref_base): Handle complex type component
21208 accesses, constrain offsets for vector and complex extracts
21209 more properly.
21210
21211 2011-03-16 Richard Guenther <rguenther@suse.de>
21212
21213 PR tree-optimization/48146
21214 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
21215 operands avoiding the need for renaming.
21216
21217 2011-03-16 Richard Guenther <rguenther@suse.de>
21218
21219 * gimple-fold.c (maybe_fold_reference): Open-code relevant
21220 constant folding. Move MEM_REF canonicalization first.
21221 Rely on fold_const_aggregate_ref for initializer folding.
21222 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
21223
21224 2011-03-16 Jakub Jelinek <jakub@redhat.com>
21225
21226 PR middle-end/48136
21227 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
21228 arg0/arg1 or their arguments are always fold converted to matching
21229 types.
21230
21231 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
21232 to nargs.
21233
21234 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21235
21236 PR lto/46944
21237 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
21238 Handle in-tree gold.
21239 (ld_vers): Extract binutils version for gold.
21240 (gcc_cv_ld_hidden): Handle gold here.
21241 (gcc_cv_lto_plugin): Determine level of linker plugin support.
21242 * configure: Regenerate.
21243 * config.in: Regenerate.
21244 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
21245 -fuse-linker-plugin otherwise.
21246 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
21247 (LINK_COMMAND_SPEC): Use it.
21248 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
21249
21250 2011-03-16 Jakub Jelinek <jakub@redhat.com>
21251
21252 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
21253 * calls.c: Remove debug.h include.
21254 (emit_call_1): Don't call virtual_call_token debug hook.
21255 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
21256 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
21257 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
21258 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
21259 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
21260 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
21261 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
21262 dwarf2out_virtual_call): Remove.
21263 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
21264 copy_call_info and virtual_call hooks.
21265 (dwarf2out_init): Don't initialize vcall_insn_table,
21266 debug_dcall_section and debug_vcall_section.
21267 (prune_unused_types): Don't mark nodes from dcall_table.
21268 (dwarf2out_finish): Don't output dcall or vcall tables.
21269 * final.c (final_scan_insn): Don't call direct_call or
21270 virtual_call debug hooks.
21271 * debug.h (struct gcc_debug_hooks): Remove direct_call,
21272 virtual_call_token, copy_call_info and virtual_call hooks.
21273 (debug_nothing_uid): Remove prototype.
21274 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
21275 copy_call_info and virtual_call hooks.
21276 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
21277 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
21278 * debug.c (do_nothing_debug_hooks): Likewise.
21279 (debug_nothing_uid): Remove.
21280 * doc/invoke.texi (-fenable-icf-debug): Remove.
21281 * common.opt (-fenable-icf-debug): Likewise.
21282
21283 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
21284 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
21285 call's MEM. Handle functions returning aggregate through a hidden
21286 first pointer. For virtual calls add clobbered pc to call arguments
21287 chain.
21288 * dwarf2out.c (gen_subprogram_die): Emit
21289 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
21290 can't be emitted.
21291
21292 PR debug/45882
21293 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
21294 * rtl.h (ENTRY_VALUE_EXP): Define.
21295 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
21296 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
21297 * print-rtl.c (print_rtx): Likewise.
21298 * gengtype.c (adjust_field_rtx_def): Likewise.
21299 * var-tracking.c (vt_add_function_parameter): Adjust
21300 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
21301 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
21302 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
21303 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
21304 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
21305
21306 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
21307 Call var_location debug hook even on CALL_INSNs.
21308 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
21309 * rtl.def (ENTRY_VALUE): New.
21310 * dwarf2out.c: Include cfglayout.h.
21311 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
21312 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
21313 (struct call_arg_loc_node): New type.
21314 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
21315 tail_call_site_count): New variables.
21316 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
21317 DW_TAG_GNU_call_site_parameter.
21318 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
21319 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
21320 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
21321 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
21322 and DW_AT_GNU_all_source_call_sites.
21323 (mem_loc_descriptor): Handle ENTRY_VALUE.
21324 (add_src_coords_attributes): Don't add enything if
21325 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
21326 (dwarf2out_abstract_function): Save and clear call_arg_location,
21327 call_site_count and tail_call_site_count around dwarf2out_decl call.
21328 (gen_call_site_die): New function.
21329 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
21330 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
21331 (dwarf2out_function_decl): Clear call_arg_locations,
21332 call_arg_loc_last, set call_site_count and tail_call_site_count
21333 to -1 and free block_map.
21334 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
21335 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
21336 followed by any real instructions.
21337 (dwarf2out_begin_function): Set call_site_count and
21338 tail_call_site_count to 0.
21339 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
21340 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
21341 attempt to force a DIE for it and worst case remove the attribute.
21342 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
21343 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
21344 the decl itself.
21345 * var-tracking.c: Include tm_p.h.
21346 (vt_stack_adjustments): For calls call note_register_arguments.
21347 (argument_reg_set): New variable.
21348 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
21349 ensure the VALUE is resolved.
21350 (call_arguments): New variable.
21351 (prepare_call_arguments): New function.
21352 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
21353 (struct expand_loc_callback_data): Add ignore_cur_loc field.
21354 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
21355 always use the best expression.
21356 (vt_expand_loc): Add ignore_cur_loc argument.
21357 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
21358 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
21359 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
21360 note for all calls.
21361 (vt_add_function_parameter): Use cselib_lookup_from_insn.
21362 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
21363 argument. Don't call cselib_preserve_only_values and
21364 cselib_reset_table.
21365 (note_register_arguments): New function.
21366 (vt_initialize): Compute argument_reg_set. Call
21367 vt_add_function_parameters before processing basic blocks instead of
21368 afterwards. For calls call prepare_call_arguments before calling
21369 cselib_process_insn.
21370 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
21371 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
21372 (var-tracking.o): Depend on $(TM_P_H).
21373 * cfglayout.h (insn_scope): New prototype.
21374 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
21375 * cfglayout.c (insn_scope): No longer static.
21376 * insn-notes.def (CALL_ARG_LOCATION): New.
21377 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
21378 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
21379 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
21380 nothing for DECL_EXTERNAL BLOCK_VARS.
21381
21382 2011-03-16 Alan Modra <amodra@gmail.com>
21383
21384 PR target/45844
21385 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
21386 create invalid offset address for vsx splat insn.
21387 * config/rs6000/predicates.md (splat_input_operand): New.
21388 * config/rs6000/vsx.md (vsx_splat_*): Use it.
21389
21390 2011-03-15 Xinliang David Li <davidxl@google.com>
21391
21392 PR c/47837
21393 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
21394 (normalize_preds): New function.
21395 (is_use_properly_guarded): Normalize def predicates.
21396
21397 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
21398
21399 PR target/46788
21400 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
21401 in the output template.
21402
21403 2011-03-15 Richard Guenther <rguenther@suse.de>
21404
21405 PR middle-end/47650
21406 * tree-pretty-print.c (dump_function_declaration): Properly
21407 dump unprototyped and varargs function types.
21408
21409 2011-03-15 Richard Guenther <rguenther@suse.de>
21410
21411 PR tree-optimization/13954
21412 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
21413 and friends.
21414
21415 2011-03-15 Richard Guenther <rguenther@suse.de>
21416
21417 PR tree-optimization/48037
21418 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
21419 selects into BIT_FIELD_REFs.
21420 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
21421 vector select.
21422
21423 2011-03-15 Jakub Jelinek <jakub@redhat.com>
21424
21425 PR tree-optimization/48129
21426 * builtins.c (fold_builtin_snprintf): Convert to type of
21427 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
21428 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
21429
21430 2011-03-15 Richard Guenther <rguenther@suse.de>
21431
21432 PR tree-optimization/41490
21433 * tree-ssa-dce.c (propagate_necessity): Handle returns without
21434 value but with VUSE.
21435 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
21436 return statements.
21437 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
21438 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
21439 * tree-tailcall.c (find_tail_calls): Ignore returns.
21440
21441 2011-03-15 Richard Guenther <rguenther@suse.de>
21442
21443 PR middle-end/48031
21444 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
21445 or variable-indexed array accesses when in gimple form.
21446
21447 2011-03-15 Richard Guenther <rguenther@suse.de>
21448
21449 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
21450
21451 2011-03-15 Alan Modra <amodra@gmail.com>
21452
21453 PR target/48032
21454 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
21455 presume symbol_refs without a symbol_ref_decl are suitably
21456 aligned, nor other trees we may see here. Handle anchor symbols.
21457 (legitimate_constant_pool_address_p): Comment. Add mode param.
21458 Check cmodel=medium addresses. Adjust all calls.
21459 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
21460 creating cmodel=medium optimized access to locals.
21461 * config/rs6000/constraints.md (R): Pass QImode to
21462 legitimate_constant_pool_address_p.
21463 * config/rs6000/predicates.md (input_operand): Pass mode to
21464 legitimate_constant_pool_address_p.
21465 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
21466 Update prototype.
21467
21468 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
21469
21470 PR target/48053
21471 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
21472 64-bit constants being loaded into registers other than GPRs such
21473 as loading 0 into a VSX register.
21474
21475 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21476
21477 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
21478
21479 2011-03-14 Jakub Jelinek <jakub@redhat.com>
21480
21481 PR middle-end/47917
21482 * builtins.c (fold_builtin_snprintf): New function.
21483 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
21484 (fold_builtin_4): Likewise.
21485
21486 PR middle-end/38878
21487 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
21488 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
21489 and C - X == X also strip nops from +/-/p+ operand.
21490 When optimizing -X == C, fold C to arg0's type.
21491
21492 PR debug/47946
21493 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
21494 emit it as add_AT_int instead of add_AT_unsigned.
21495
21496 2011-03-14 Tom Tromey <tromey@redhat.com>
21497
21498 * unwind-dw2.c: Include sys/sdt.h if it exists.
21499 (_Unwind_DebugHook): Use STAP_PROBE2.
21500 * config.in, configure: Rebuild.
21501 * configure.ac: Check for sys/sdt.h.
21502
21503 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
21504
21505 * config/i386/i386.md (ROUND_FLOOR): New constant.
21506 (ROUND_CEIL): Ditto.
21507 (ROUND_TRUNC): Ditto.
21508 (ROUND_MXCSR): Ditto.
21509 (ROUND_NO_EXC): Ditto.
21510 (rint<mode>2): Use new defines instead of numerical constants.
21511 (floor<mode>2): Ditto.
21512 (ceil<mode>2): Ditto.
21513 (btrunc<mode>2): Ditto.
21514 * config/i386/i386-builtin-types.def: Define ROUND function type
21515 aliases.
21516 * config/i386/i386.c (enum ix86_builtins): Add
21517 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
21518 (struct builtin_description): Add
21519 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
21520 (ix86_expand_sse_round): New static function.
21521 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
21522 function types.
21523 (ix86_builtin_vectorized_function): Handle
21524 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
21525
21526 2011-03-14 Tom Tromey <tromey@redhat.com>
21527
21528 * c-parser.c (c_parser_asm_string_literal): Clear
21529 warn_overlength_strings.
21530
21531 2011-03-14 Tom Tromey <tromey@redhat.com>
21532
21533 * c-parser.c (disable_extension_diagnostics): Save
21534 warn_overlength_strings.
21535 (restore_extension_diagnostics): Restore warn_overlength_strings.
21536
21537 2011-03-14 Jakub Jelinek <jakub@redhat.com>
21538
21539 * BASE-VER: Change to 4.7.0.
21540
21541 2011-03-14 Richard Guenther <rguenther@suse.de>
21542
21543 PR middle-end/48098
21544 * tree.c (build_vector_from_val): Adjust assert to requirements
21545 and reality.
21546
21547 2011-03-14 Jakub Jelinek <jakub@redhat.com>
21548
21549 PR bootstrap/48102
21550 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
21551
21552 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
21553
21554 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
21555 terms of target_flags_explicit. Adjust copyright year.
21556
21557 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
21558 * config/rs6000/t-freebsd: New file. Add override for
21559 LIB2FUNCS_EXTRA.
21560
21561 2011-03-13 Chris Demetriou <cgd@google.com>
21562
21563 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
21564 (-fno-diagnostics-show-option): this, to reflect current default.
21565 (-Werror=): Update text about -fno-diagnostics-show-option.
21566
21567 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
21568
21569 PR target/48053
21570 * config/rs6000/predicates.md (easy_vector_constant_add_self,
21571 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
21572 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
21573 mode is not V2DImode or V2DFmode.
21574 (vspltis_constant): Do not handle V2DImode and V2DFmode.
21575 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
21576 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
21577 registers to 0.
21578 (movdi_internal64): Likewise.
21579
21580 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
21581
21582 PR tree-optimization/47127
21583 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
21584 parameter.
21585 (set_cloog_options): Same.
21586 (scop_to_clast): Same.
21587 (print_clast_stmt): Do not call cloog_state_malloc and
21588 cloog_state_free.
21589 (print_generated_program): Same.
21590 (gloog): Same.
21591 * graphite-clast-to-gimple.h (cloog_state): Declared.
21592 (scop_to_clast): Adjust declaration.
21593 * graphite.c (cloog_state): Defined here.
21594 (graphite_initialize): Call cloog_state_malloc.
21595 (graphite_finalize): Call cloog_state_free.
21596
21597 2011-03-11 Jason Merrill <jason@redhat.com>
21598
21599 * attribs.c (lookup_attribute_spec): Take const_tree.
21600 * tree.h: Adjust.
21601
21602 2011-03-11 Joseph Myers <joseph@codesourcery.com>
21603
21604 * config/sparc/sparc.c (sparc_option_override): Use
21605 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
21606
21607 2011-03-11 Richard Guenther <rguenther@suse.de>
21608
21609 PR tree-optimization/48067
21610 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
21611 multiplication result will be only used once on the target
21612 stmt.
21613
21614 2011-03-11 Richard Guenther <rguenther@suse.de>
21615
21616 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
21617
21618 2011-03-11 Richard Guenther <rguenther@suse.de>
21619
21620 PR lto/48073
21621 * tree.c (find_decls_types_r): Do not walk types only reachable
21622 from IDENTIFIER_NODEs.
21623
21624 2011-03-11 Jakub Jelinek <jakub@redhat.com>
21625
21626 PR middle-end/48044
21627 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
21628 all vnode->force_output nodes as needed.
21629
21630 2011-03-11 Jason Merrill <jason@redhat.com>
21631
21632 PR c++/48069
21633 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
21634 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
21635
21636 2011-03-11 Martin Jambor <mjambor@suse.cz>
21637
21638 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
21639 cgraph_node.
21640
21641 2011-03-11 Jakub Jelinek <jakub@redhat.com>
21642
21643 PR tree-optimization/48063
21644 * ipa-inline.c (cgraph_decide_inlining): Don't try to
21645 inline functions called once if !tree_can_inline_p (node->callers).
21646
21647 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
21648
21649 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
21650 extra_objs.
21651 * config/score/score3.c: Delete.
21652 * config/score/score3.h: Delete.
21653 * config/score/mul-div.S: Delete.
21654 * config/score/sfp-machine.h: Add new file.
21655 * config/score/constraints.md: Add new file.
21656 * config/score/t-score-softfp: Add new file.
21657 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
21658 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
21659 (score7_extra_constraint): Delete.
21660 (score7_option_override): Remove unused code.
21661 * config/score/score.c: Remove score3 and score5 define and code.
21662 * config/score/score.h: Remove score3 and score5 define and code.
21663 * config/score/score.md: Remove score3 template and unusual insn.
21664 * config/score/score.opt: Remove score3 and score5 options.
21665
21666 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21667
21668 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
21669 when _HPUX_SOURCE is defined.
21670 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
21671
21672 2011-03-10 Jason Merrill <jason@redhat.com>
21673
21674 PR c++/48029
21675 * stor-layout.c (layout_type): Don't set structural equality
21676 on arrays of incomplete type.
21677 * tree.c (type_hash_eq): Handle comparing them properly.
21678
21679 2011-03-10 Jakub Jelinek <jakub@redhat.com>
21680
21681 PR debug/48043
21682 * config/s390/s390.c (s390_delegitimize_address): Make sure the
21683 result mode matches original rtl mode.
21684
21685 2011-03-10 Nick Clifton <nickc@redhat.com>
21686
21687 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
21688 (andsi3, andsi3_flags): Fix timings for three operand alternative.
21689
21690 2011-03-09 Jakub Jelinek <jakub@redhat.com>
21691
21692 PR rtl-optimization/47866
21693 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
21694 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
21695 if target wasn't scalar.
21696 * function.c (assign_stack_temp_for_type): Assert that neither
21697 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
21698 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
21699 macro.
21700 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
21701
21702 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21703
21704 * config/s390/s390-protos.h (s390_label_align): New prototype.
21705 * config/s390/s390.c (s390_label_align): New function.
21706 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
21707
21708 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
21709
21710 PR target/47755
21711 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
21712 V2DI/V2DF constants. Only all 0's or all 1's are easy.
21713 (output_vec_const_move): Ditto.
21714
21715 2011-03-08 Anatoly Sokolov <aesok@post.ru>
21716
21717 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
21718 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
21719 * config/mips/mips.c (mips_preferred_reload_class): Make static.
21720 Change 'rclass' argument and result type to reg_class_t.
21721 (TARGET_PREFERRED_RELOAD_CLASS): Define.
21722
21723 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
21724
21725 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
21726 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
21727 (TARGET_MEMORY_MOVE_COST): Define.
21728 (avr_register_move_cost, avr_memory_move_cost): New Functions.
21729
21730 2011-03-08 Jakub Jelinek <jakub@redhat.com>
21731
21732 PR debug/47881
21733 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
21734 removed anything.
21735
21736 PR tree-optimization/48022
21737 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
21738 for EQ/NE_EXPR.
21739
21740 2011-03-07 Jakub Jelinek <jakub@redhat.com>
21741
21742 PR debug/47991
21743 * var-tracking.c (find_use_val): Return NULL for
21744 cui->sets && cui->store_p BLKmode MEMs.
21745
21746 2011-03-07 Anatoly Sokolov <aesok@post.ru>
21747
21748 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
21749 Remove.
21750 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
21751 xstormy16_print_operand_address): Remove.
21752 * config/stormy16/stormy16.c (xstormy16_print_operand,
21753 xstormy16_print_operand_address): Make static.
21754 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
21755
21756 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
21757
21758 PR target/47862
21759 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
21760 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
21761 before definition.
21762
21763 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
21764
21765 PR bootstrap/48000
21766 * cfgloopmanip.c (fix_bb_placements): Return immediately
21767 if FROM is BASE_LOOP's header.
21768
21769 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
21770
21771 * gimplify.c (gimplify_function_tree): Fix building calls
21772 to __builtin_return_address.
21773
21774 2011-03-07 Alan Modra <amodra@gmail.com>
21775
21776 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
21777 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
21778 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
21779 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
21780 return_mode args.
21781 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
21782 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
21783 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
21784 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
21785 * config/rs6000/rs6000.c
21786 (rs6000_elf_end_indicate_exec_stack): Rename to..
21787 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
21788 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
21789 (rs6000_file_start): ..here.
21790 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
21791 file scope variables.
21792 (call_ABI_of_interest): New function.
21793 (init_cumulative_args): Set above vars when function return value
21794 is a float, vector, or small struct.
21795 (rs6000_function_arg_advance_1): Likewise for function args.
21796 (rs6000_va_start): Set rs6000_passes_float if variable arg function
21797 references float args.
21798
21799 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
21800
21801 * doc/cfg.texi: Remove "See" before @ref.
21802 * doc/invoke.texi: Likewise.
21803
21804 2011-03-05 Jason Merrill <jason@redhat.com>
21805
21806 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
21807
21808 2011-03-05 Anthony Green <green@moxielogic.com>
21809
21810 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
21811
21812 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
21813
21814 PR rtl-optimization/47899
21815 * cfgloopmanip.c (fix_bb_placements): Fix first argument
21816 to flow_loop_nested_p when moving the loop upward.
21817
21818 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
21819
21820 PR target/47719
21821 * arm.md (movhi_insn_arch4): Accept any immediate constant.
21822
21823 2011-03-05 Jakub Jelinek <jakub@redhat.com>
21824
21825 PR tree-optimization/47967
21826 * ipa-cp.c (build_const_val): Return NULL instead of creating
21827 VIEW_CONVERT_EXPR for mismatching sizes.
21828 (ipcp_create_replace_map): Return NULL if build_const_val failed.
21829 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
21830 give up on versioning.
21831
21832 2011-03-05 Alan Modra <amodra@gmail.com>
21833
21834 PR target/47986
21835 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
21836 full cmodel medium/large lo_sum + high addresses.
21837
21838 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21839
21840 * config/s390/s390.c (s390_decompose_address): Reject non-literal
21841 pool references in UNSPEC_LTREL_OFFSET.
21842
21843 2011-03-04 Jan Hubicka <jh@suse.cz>
21844
21845 PR lto/47497
21846 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
21847 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
21848 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
21849 Add node pointers.
21850 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
21851 cgraph_add_thunk): Add node pointers.
21852 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
21853 associated to right node.
21854 (input_node): Update use of cgraph_same_body_alias
21855 and cgraph_add_thunk.
21856
21857 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
21858
21859 * config/i386/i386.opt (mprefer-avx128): New flag.
21860 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
21861 modes when the flag -mprefer-avx128 is on.
21862
21863 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
21864
21865 * dwarf2out.c (compare_loc_operands): Fix address handling.
21866
21867 2011-03-04 Alan Modra <amodra@gmail.com>
21868
21869 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
21870
21871 2011-03-04 Richard Guenther <rguenther@suse.de>
21872
21873 PR middle-end/47968
21874 * expmed.c (extract_bit_field_1): Prefer vector modes that
21875 vec_extract patterns can handle.
21876
21877 2011-03-04 Richard Guenther <rguenther@suse.de>
21878
21879 PR middle-end/47975
21880 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
21881
21882 2011-03-04 Richard Henderson <rth@redhat.com>
21883
21884 * explow.c (emit_stack_save): Remove 'after' parameter.
21885 (emit_stack_restore): Likewise.
21886 * expr.h: Update to match.
21887 * builtins.c, calls.c, stmt.c: Likewise.
21888 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
21889 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
21890 * function.c (expand_function_end): Insert the emit_stack_save
21891 sequence before parm_birth_insn instead of after.
21892
21893 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
21894
21895 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
21896 (ssse3_pmaddubsw128): Ditto.
21897 (ssse3_pmaddubsw): Ditto.
21898
21899 2011-03-03 Steve Ellcey <sje@cup.hp.com>
21900
21901 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
21902
21903 2011-03-03 Jakub Jelinek <jakub@redhat.com>
21904
21905 PR c/47963
21906 * gimplify.c (omp_add_variable): Only call omp_notice_variable
21907 on TYPE_SIZE_UNIT if it is a DECL.
21908
21909 PR debug/47283
21910 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
21911 first operand is not is_gimple_mem_ref_addr, try to fold it.
21912 If the operand still isn't is_gimple_mem_ref_addr, clear
21913 MEM_EXPR on op0.
21914
21915 2011-03-03 Richard Guenther <rguenther@suse.de>
21916
21917 PR middle-end/47283
21918 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
21919 match comment.
21920 (refs_may_alias_p_1): For release branches return true if
21921 we are confused by our input.
21922
21923 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21924
21925 * config/s390/s390.c (s390_function_value): Rename to ...
21926 (s390_function_and_libcall_value): ... this.
21927 (s390_function_value): New function.
21928 (s390_libcall_value): New function.
21929 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
21930 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
21931 target macro definitions.
21932 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
21933
21934 2011-03-02 Joseph Myers <joseph@codesourcery.com>
21935
21936 * config/i386/freebsd64.h (CC1_SPEC): Define.
21937 * config/i386/linux64.h (CC1_SPEC): Define.
21938 * config/i386/x86-64.h (CC1_SPEC): Don't define.
21939
21940 2011-03-02 Anatoly Sokolov <aesok@post.ru>
21941
21942 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
21943 Remove.
21944 * config/stormy16/stormy16.c: Include reload.h.
21945 (xstormy16_memory_move_cost): New function.
21946 (TARGET_MEMORY_MOVE_COST): Define.
21947
21948 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
21949
21950 PR rtl-optimization/47925
21951 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
21952 with side effects. Remove the more-specific check for volatile asms.
21953
21954 2011-03-02 Alan Modra <amodra@gmail.com>
21955
21956 PR target/47935
21957 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
21958 toc relative addresses for valid offsets.
21959
21960 2011-03-01 Richard Guenther <rguenther@suse.de>
21961
21962 PR tree-optimization/47890
21963 * tree-vect-loop.c (get_initial_def_for_induction): Set
21964 related stmt properly.
21965
21966 2011-03-01 Richard Guenther <rguenther@suse.de>
21967
21968 PR lto/47924
21969 * lto-streamer.c (lto_record_common_node): Also register
21970 the canonical type.
21971
21972 2011-03-01 Richard Guenther <rguenther@suse.de>
21973
21974 PR lto/46911
21975 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
21976 Do not stream DECL_ABSTRACT_ORIGIN.
21977 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
21978 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
21979 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
21980 Do not stream DECL_ABSTRACT_ORIGIN.
21981 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
21982 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
21983
21984 2011-02-28 Anatoly Sokolov <aesok@post.ru>
21985
21986 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
21987 FUNCTION_VALUE_REGNO_P): Remove.
21988 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
21989 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
21990 Add 'outgoing' argument.
21991 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
21992 function.
21993 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
21994 TARGET_FUNCTION_VALUE_REGNO_P): Define.
21995
21996 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
21997
21998 PR debug/28047
21999 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
22000 (lookup_filename): Likewise.
22001 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
22002
22003 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
22004 Jakub Jelinek <jakub@redhat.com>
22005
22006 PR middle-end/47893
22007 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
22008 (assign_stack_local_1): Change last argument type to int.
22009 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
22010 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
22011 don't record padding space into frame_space_list nor use those areas.
22012 (assign_stack_local): Adjust caller.
22013 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
22014 of assign_stack_local, pass 0 as last argument.
22015 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
22016 callers.
22017
22018 2011-02-28 Jakub Jelinek <jakub@redhat.com>
22019
22020 PR debug/47283
22021 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
22022 Use target address_mode and pointer_mode hooks instead of hardcoded
22023 Pmode and ptr_mode. Handle some simple cases of extending if
22024 POINTERS_EXTEND_UNSIGNED < 0.
22025 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
22026 Call convert_debug_memory_address.
22027 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
22028 convert_debug_memory_address.
22029
22030 PR middle-end/46790
22031 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
22032 * configure: Regenerated.
22033 * config.in: Regenerated.
22034 * varasm.c (default_function_section): Return NULL
22035 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
22036
22037 2011-02-28 Martin Jambor <mjambor@suse.cz>
22038
22039 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
22040 the description to match the printed values.
22041
22042 2011-02-28 Richard Guenther <rguenther@suse.de>
22043
22044 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
22045 of the copied scope tree.
22046
22047 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22048
22049 * doc/extend.texi (Function Attributes): Avoid deeply (and
22050 wrongly) nested tables.
22051
22052 2011-02-27 Jakub Jelinek <jakub@redhat.com>
22053
22054 PR middle-end/47903
22055 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
22056 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
22057 r isn't op0 nor op1.
22058
22059 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
22060
22061 * config/avr/avr.md: Remove magic comment for emacs.
22062
22063 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
22064
22065 PR target/45261
22066 * config/avr/avr.c (avr_option_override): Use error on bad options.
22067 (avr_help): New function.
22068 (TARGET_HELP): Define.
22069
22070 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
22071
22072 PR target/42240
22073 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
22074 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
22075
22076 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
22077
22078 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
22079 (ARM Options): Ditto.
22080 (i386 and x86-64 Options): Ditto.
22081 (RX Options): Ditto.
22082 (SPARC Options): Ditto.
22083
22084 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
22085
22086 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
22087 FreeBSD 6 and later. Generally use cpu generic.
22088
22089 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
22090
22091 * doc/cpp.texi: Update copyright years.
22092
22093 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
22094
22095 PR target/46898
22096 * config/lm32/lm32.md (ashrsi3): Added needed variable.
22097
22098 2011-02-25 Jon Beniston <jon@beniston.com>
22099
22100 PR target/46898
22101 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
22102 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
22103 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
22104 (lm32_block_move_inline): Add type cast to remove warning.
22105 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
22106 (gen_int_relational): Move declarations to start of function.
22107
22108 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
22109
22110 PR tree-optimization/45470
22111 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
22112 can throw internally only.
22113 * tree-vect-stmts.c (vectorizable_call): Likewise.
22114
22115 2011-02-24 Anatoly Sokolov <aesok@post.ru>
22116
22117 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
22118 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
22119 * config/stormy16/stormy16-protos.h
22120 (xstormy16_preferred_reload_class): Remove.
22121 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
22122 static. Change 'rclass' argument and return type to reg_class_t.
22123 (TARGET_PREFERRED_RELOAD_CLASS,
22124 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
22125
22126 2011-02-24 Richard Guenther <rguenther@suse.de>
22127
22128 * lto-streamer-in.c (input_bb): Do not find referenced vars
22129 in debug statements.
22130
22131 2011-02-23 Jason Merrill <jason@redhat.com>
22132
22133 * common.opt (fabi-version): Document v5 and v6.
22134
22135 2011-02-23 Richard Guenther <rguenther@suse.de>
22136
22137 PR tree-optimization/47849
22138 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
22139
22140 2011-02-23 Jie Zhang <jie@codesourcery.com>
22141
22142 * opts-common.c (decode_cmdline_option): Print empty string
22143 argument as "" in decoded->orig_option_with_args_text.
22144 * gcc.c (execute): Print empty string argument as ""
22145 in the verbose output.
22146 (do_spec_1): Keep empty string argument.
22147
22148 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
22149
22150 * config.gcc: Declare score-* and crx-* obsolete.
22151
22152 2011-02-23 Jie Zhang <jie@codesourcery.com>
22153
22154 PR rtl-optimization/47763
22155 * web.c (web_main): Ignore naked clobber when replacing register.
22156
22157 2011-02-22 Anatoly Sokolov <aesok@post.ru>
22158
22159 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
22160 Remove.
22161
22162 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
22163
22164 PR doc/47848
22165 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
22166
22167 2011-02-22 Mike Stump <mikestump@comcast.net>
22168
22169 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
22170 assembler.
22171 * configure: Regenerate.
22172
22173 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
22174
22175 PR rtl-optimization/46002
22176 * ira-color.c (update_copy_costs): Change class intersection
22177 test to reg_class_contents[] test of 'hard_regno'.
22178
22179 2011-02-21 Joseph Myers <joseph@codesourcery.com>
22180
22181 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
22182 than Driver option.
22183 * config/hpux11.opt (mt): Likewise.
22184 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
22185 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
22186 * config/vax/elf.opt (mno-asm-pic): Likewise.
22187 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
22188
22189 2011-02-21 Mike Stump <mikestump@comcast.net>
22190
22191 PR target/47822
22192 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
22193 tree so we can get save the type.
22194 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
22195 for CFString instead of trying to use past the end of the builtins.
22196 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
22197 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
22198 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
22199 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
22200 Rename to darwin_builtin_cfstring.
22201 (darwin_init_cfstring_builtins): Return the built type.
22202
22203 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
22204
22205 PR target/47840
22206 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
22207 (_mm256_insert_epi64): Use _mm_insert_epi64.
22208
22209 2011-02-21 Anatoly Sokolov <aesok@post.ru>
22210
22211 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22212 * config/stormy16/stormy16-protos.h
22213 (xstormy16_mode_dependent_address_p): Remove.
22214 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
22215 Make static. Change return type to bool. Change argument type to
22216 const_rtx. Remove dead code.
22217 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22218
22219 2011-02-21 Richard Guenther <rguenther@suse.de>
22220
22221 PR lto/47820
22222 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
22223 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
22224 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
22225 TUs context.
22226 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
22227 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
22228
22229 2011-02-20 Richard Guenther <rguenther@suse.de>
22230
22231 PR lto/47822
22232 * tree.c (free_lang_data_in_decl): Clean builtins from
22233 the TU decl BLOCK_VARS.
22234
22235 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
22236
22237 PR debug/47620
22238 PR debug/47630
22239 * haifa-sched.c (fix_tick_ready): Skip tick computation
22240 for debug insns.
22241
22242 2011-02-19 Richard Guenther <rguenther@suse.de>
22243
22244 PR lto/47647
22245 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
22246 Remove lazy BLOCK_VARS streaming.
22247 (lto_input_ts_block_tree_pointers): Likewise.
22248 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
22249
22250 2011-02-19 Joseph Myers <joseph@codesourcery.com>
22251
22252 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
22253
22254 2011-02-19 Joseph Myers <joseph@codesourcery.com>
22255
22256 * config/i386/biarch32.h, config/i386/mach.h,
22257 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
22258
22259 2011-02-19 Jakub Jelinek <jakub@redhat.com>
22260
22261 PR target/47800
22262 * config/i386/i386.md (peephole2 for shift and plus): Use
22263 operands[1] original mode in the first insn.
22264
22265 2011-02-18 Mike Stump <mikestump@comcast.net>
22266
22267 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
22268
22269 2011-02-18 Jan Hubicka <jh@suse.cz>
22270
22271 PR middle-end/47788
22272 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
22273 to zero when the function is not inlinable at all.
22274
22275 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22276
22277 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
22278 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
22279 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
22280 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
22281 * config/pa/t-pa64: Likewise.
22282 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
22283
22284 2011-02-18 Jakub Jelinek <jakub@redhat.com>
22285
22286 PR driver/47787
22287 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
22288
22289 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22290
22291 PR target/47792
22292 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
22293
22294 2011-02-18 Anatoly Sokolov <aesok@post.ru>
22295
22296 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
22297 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
22298 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
22299 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22300 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
22301 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
22302 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
22303 m32r_load_postinc_p, m32r_store_preinc_predec_p,
22304 m32r_legitimate_address_p): New functions.
22305 * config/m32r/constraints.md (constraint "S"): Don't use
22306 STORE_PREINC_PREDEC_P.
22307 (constraint "U"): Don't use LOAD_POSTINC_P.
22308
22309 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
22310
22311 PR rtl-optimization/46178
22312 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
22313 compute ira_hard_regno_cover_class[].
22314
22315 2011-02-18 Richard Guenther <rguenther@suse.de>
22316
22317 PR lto/47798
22318 * lto-streamer.h (lto_global_var_decls): Declare.
22319 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
22320 statics for global var processing.
22321
22322 2011-02-18 Richard Guenther <rguenther@suse.de>
22323
22324 PR tree-optimization/47737
22325 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
22326 edge dominance check.
22327
22328 2011-02-18 Jakub Jelinek <jakub@redhat.com>
22329
22330 PR debug/47780
22331 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
22332 avoid invalid rtx sharing.
22333
22334 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
22335
22336 * doc/cpp.texi (Obsolete Features): Add background on the
22337 origin of assertions.
22338
22339 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
22340
22341 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
22342 objc_abi == 2.
22343 * config/darwin.c (output_objc_section_asm_op): Added support for
22344 ABI v1 and v2.
22345 (is_objc_metadata): New.
22346 (darwin_objc2_section): New.
22347 (darwin_objc1_section): New.
22348 (machopic_select_section): Added support for ABI v1 and v2.
22349 (darwin_emit_objc_zeroed): New.
22350 (darwin_output_aligned_bss): Detect objc metadata and treat it
22351 appropriately.
22352 (darwin_asm_output_aligned_decl_common): Same.
22353 (darwin_asm_output_aligned_decl_local): Same.
22354 * config/darwin-sections.def: Updated for ABI v1 and v2.
22355 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
22356 compiling Objective-C code for the NeXT runtime, default to using
22357 ABI version 0 for 32-bit, and version 2 for 64-bit.
22358
22359 2011-02-17 Joseph Myers <joseph@codesourcery.com>
22360
22361 * common.opt (optimize_fast): New Variable.
22362 * opts.c (default_options_optimization): Use opts->x_optimize_fast
22363 instead of local variable ofast.
22364
22365 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
22366
22367 * doc/invoke.texi (fobjc-abi-version): Documented.
22368 (fobjc-nilcheck): Documented.
22369 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
22370 version.
22371
22372 2011-02-17 Joseph Myers <joseph@codesourcery.com>
22373
22374 PR driver/47390
22375 * common.opt (export-dynamic): New Driver option.
22376 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
22377
22378 2011-02-17 Joseph Myers <joseph@codesourcery.com>
22379
22380 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
22381
22382 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
22383 Jan Hubicka <jh@suse.cz>
22384
22385 PR debug/47106
22386 PR debug/47402
22387 * cfgexpand.c (account_used_vars_for_block): Remove.
22388 (estimated_stack_frame_size): Use referenced vars.
22389 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
22390 that were referenced in the original function. Test src_fn
22391 rather than cfun. Drop redundant get_var_ann.
22392 (setup_one_parameter): Drop redundant get_var_ann.
22393 (declare_return_variable): Likewise.
22394 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
22395 (copy_arguments_for_versioning): Drop redundant get_var_ann.
22396 * ipa-inline.c (compute_inline_parameters): Do not compute
22397 disregard_inline_limits here.
22398 (compute_inlinable_for_current, pass_inlinable): New.
22399 (pass_inline_parameters): Require PROP_referenced_vars.
22400 * cgraphunit.c (cgraph_process_new_functions): Don't run
22401 compute_inline_parameters explicitly unless function is in SSA form.
22402 (cgraph_analyze_function): Set .disregard_inline_limits.
22403 * tree-sra.c (convert_callers): Compute inliner parameters
22404 only for functions already in SSA form.
22405
22406 2011-02-17 Joseph Myers <joseph@codesourcery.com>
22407
22408 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
22409 -mlittle-endian-data.
22410
22411 2011-02-17 Joseph Myers <joseph@codesourcery.com>
22412
22413 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
22414 -mno-fpu, not -fpu and -no-fpu.
22415 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
22416 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
22417
22418 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
22419
22420 PR target/43653
22421 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
22422 input reload with PLUS RTX.
22423
22424 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22425
22426 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
22427 of InverseVar(MDMX).
22428
22429 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22430
22431 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
22432 --m4-340.
22433
22434 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22435
22436 * config/mn10300/mn10300.opt (mno-crt0): New.
22437
22438 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22439
22440 * config/m68k/uclinux.opt (static-libc): New Driver option.
22441
22442 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22443
22444 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
22445
22446 2011-02-16 Joseph Myers <joseph@codesourcery.com>
22447
22448 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
22449 %{muser-extend-enabled}.
22450
22451 2011-02-16 Richard Guenther <rguenther@suse.de>
22452
22453 PR tree-optimization/47738
22454 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
22455 the TODO from tree_predictive_commoning.
22456
22457 2011-02-15 Jeff Law <law@redhat.com>
22458
22459 Revert
22460 2011-01-25 Jeff Law <law@redhat.com>
22461
22462 PR rtl-optimization/37273
22463 * ira-costs.c (scan_one_insn): Detect constants living in memory and
22464 handle them like argument loads from stack slots. Do not double
22465 count memory for memory constants and argument loads from stack slots.
22466
22467 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
22468
22469 PR target/47755
22470 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
22471 mode for vector constants. Remove code that checks for TImode.
22472
22473 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
22474
22475 PR debug/47106
22476 PR debug/47402
22477 * cgraph.h (compute_inline_parameters): Return void.
22478 * ipa-inline.c (compute_inline_parameters): Adjust.
22479
22480 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
22481
22482 PR debug/47106
22483 PR debug/47402
22484 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
22485 rather than decl.
22486 * cfgexpand.c (estimated_stack_frame_size): Likewise.
22487 * ipa-inline.c (compute_inline_parameters): Adjust.
22488
22489 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
22490
22491 PR debug/47106
22492 PR debug/47402
22493 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
22494 Adjust all users. Pass FN to...
22495 * tree-flow-inline.h (first_referenced_var): ... this. Add
22496 fn argument.
22497 * ipa-struct-reorg.c: Adjust.
22498 * tree-dfa.c: Adjust.
22499 * tree-into-ssa.c: Adjust.
22500 * tree-sra.c: Adjust.
22501 * tree-ssa-alias.c: Adjust.
22502 * tree-ssa-live.c: Adjust.
22503 * tree-ssa.c: Adjust.
22504 * tree-ssanames.c: Adjust.
22505 * tree-tailcall.c: Adjust.
22506
22507 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
22508
22509 PR debug/47106
22510 PR debug/47402
22511 * tree-flow.h (referenced_var_lookup): Add fn parameter.
22512 Adjust all callers.
22513 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
22514 * tree-flow-inline.h: Adjust.
22515 * gimple-pretty-print.c: Adjust.
22516 * tree-into-ssa.c: Adjust.
22517 * tree-ssa.c: Adjust.
22518 * cfgexpand.c: Adjust.
22519
22520 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
22521
22522 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
22523 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22524 (EXTRA_CONSTRAINT): Delete.
22525 * config/iq2000/constraints.md: New file.
22526 * config/iq2000/iq2000.md: Include it.
22527 (define_insn ""): Delete.
22528 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
22529 unsupported constraint letters from patterns.
22530 (call_value, call_value_internal1): Likewise.
22531 (call_value_multiple_internal1): Likewise.
22532
22533 2011-02-15 Nick Clifton <nickc@redhat.com>
22534
22535 * config/mn10300/mn10300.c: Include tm-constrs.h.
22536 (struct liw_data): New data structure describing an LIW candidate
22537 instruction.
22538 (extract_bundle): Use struct liw_data. Allow small integer
22539 operands for some instructions.
22540 (check_liw_constraints): Use struct liw_data. Remove swapped
22541 parameter. Add comments describing the checks. Fix bug when
22542 assigning the source of liw1 to the source of liw2.
22543 (liw_candidate): Delete. Code moved into extract_bundle.
22544 (mn10300_bundle_liw): Use struct liw_data. Check constraints
22545 before swapping.
22546 * config/mn10300/predicates.md (liw_operand): New predicate.
22547 Allows registers and small integer constants.
22548 * config/mn10300/constraints.md (O): New constraint. Accetps
22549 integers in the range -8 to +7 inclusive.
22550 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
22551 for moving a small integer into a register. Give this alternative
22552 LIW attributes.
22553 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
22554 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
22555 using the J,K,L and M constraints,
22556 (liw): Remove SI mode on second operands to allow for HI and QI
22557 mode values.
22558 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
22559 instruction.
22560
22561 2011-02-15 Richard Guenther <rguenther@suse.de>
22562
22563 PR tree-optimization/47743
22564 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
22565 for a non-type-compatible VN lookup bail out.
22566
22567 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
22568
22569 * config/fr30/constraints.md: New file.
22570 * config/fr30/fr30.md: Include it.
22571 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
22572 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22573 (EXTRA_CONSTRAINT): Delete.
22574
22575 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
22576
22577 * config/frv/constraints.md: New file.
22578 * config/frv/predicates.md: Include it.
22579 * config/frv/frv.c (reg_class_from_letter): Delete.
22580 (frv_option_override): Don't initialize it.
22581 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
22582 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
22583 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
22584 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
22585 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
22586 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22587 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
22588 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
22589 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
22590 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
22591 (REG_CLASS_FROM_CONSTRAINT): Delete.
22592
22593 2011-02-15 Jakub Jelinek <jakub@redhat.com>
22594
22595 PR middle-end/47581
22596 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
22597 if frame size is 0 in a leaf function.
22598
22599 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22600
22601 PR pch/14940
22602 * config/alpha/host-osf.c: New file.
22603 * config/alpha/x-osf: New file.
22604 * config.host (alpha*-dec-osf*): Use it.
22605
22606 2011-02-14 Anatoly Sokolov <aesok@post.ru>
22607
22608 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
22609 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
22610 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
22611 (rx_mode_dependent_address_p): ...this. Make static. Change argument
22612 type to const_rtx.
22613 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
22614
22615 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
22616
22617 * config/stormy16/constraints.md: New file.
22618 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
22619 Use satisfies_constraint_Q and satisfies_constraint_R.
22620 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
22621 Delete.
22622 (xstormy16_legitiamte_address_p): Declare.
22623 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
22624 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22625 (EXTRA_CONSTRAINT): Delete.
22626 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
22627 Un-staticize.
22628 (xstormy16_extra_constraint_p): Delete.
22629
22630 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
22631
22632 PR tree-optimization/46494
22633 * loop-unroll.c (split_edge_and_insert): Adjust comment.
22634 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
22635 (pass_rtl_loop_done): Add TODO_verify_flow.
22636 * fwprop.c (pass_rtl_fwprop): Likewise.
22637 * modulo-sched.c (pass_sms): Likewise.
22638 * tree-ssa-dom.c (pass_dominator): Likewise.
22639 * tree-ssa-loop-ch.c (pass_ch): Likewise.
22640 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
22641 (pass_tree_loop_done): Likewise.
22642 * tree-ssa-pre.c (execute_pre): Likewise.
22643 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
22644 * tree-ssa-sink.c (pass_sink_code): Likewise.
22645 * tree-vrp.c (pass_vrp): Likewise.
22646
22647 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
22648
22649 * config/v850/constraints.md: New file.
22650 * config/v850/v850.md: Include it.
22651 * config/v850/predicates.md (reg_or_0_operand): Use
22652 satisfies_constraint_G.
22653 (special_symbolref_operand): Use satisfies_constraint_K.
22654 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
22655 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
22656 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
22657 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
22658 (EXTRA_CONSTRAINT): Delete.
22659 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
22660 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
22661 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
22662
22663 2011-02-14 Anatoly Sokolov <aesok@post.ru>
22664
22665 PR target/47696
22666 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
22667 description.
22668
22669 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
22670
22671 * config/mcore/constraints.md: New file.
22672 * config/mcore/mcore.md: Include it.
22673 * config/mcore/mcore.c (reg_class_from_letter): Delete.
22674 * config/mcore/mcore.h (reg_class_from_letter): Delete.
22675 (REG_CLASS_FROM_LETTER): Delete.
22676 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
22677 insn_const_int_ok_for_constraint.
22678 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
22679 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
22680 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
22681 (EXTRA_CONSTRAINT): Delete.
22682
22683 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22684
22685 PR ada/41929
22686 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
22687 (IS_SIGHANDLER): Define.
22688 (sparc64_is_sighandler): New function, split off from
22689 sparc64_fallback_frame_state.
22690 (sparc_is_sighandler): New function, split off from
22691 sparc_fallback_frame_state.
22692 (sparc64_fallback_frame_state): Merge with ...
22693 (sparc_fallback_frame_state): ... this into ...
22694 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
22695 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
22696 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
22697 stack instead of hardcoded offsets.
22698
22699 2011-02-14 Andriy Gapon <avg@freebsd.org>
22700
22701 PR target/45808
22702 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
22703
22704 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22705
22706 * configure: Regenerate.
22707
22708 2011-02-12 Joseph Myers <joseph@codesourcery.com>
22709
22710 PR driver/45731
22711 * gcc.c (asm_options): Correct spec matching --target-help.
22712
22713 2011-02-12 Martin Jambor <mjambor@suse.cz>
22714
22715 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
22716 to gimple call error.
22717
22718 2011-02-12 Mike Stump <mikestump@comcast.net>
22719
22720 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
22721 comments in backslash regions.
22722
22723 2011-02-12 Mike Stump <mikestump@comcast.net>
22724 Jakub Jelinek <jakub@redhat.com>
22725 Iain Sandoe <iains@gcc.gnu.org>
22726
22727 PR target/47324
22728 * dwarf2out.c (output_cfa_loc): When required, apply the
22729 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
22730 (output_loc_sequence): Likewise.
22731 (output_loc_operands_raw): Likewise.
22732 (output_loc_sequence_raw): Likewise.
22733 (output_cfa_loc): Likewise.
22734 (output_loc_list): Suppress register number adjustment when
22735 calling output_loc_sequence()
22736 (output_die): Likewise.
22737
22738 2011-02-12 Anatoly Sokolov <aesok@post.ru>
22739
22740 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
22741 Remove macros.
22742 * config/xtensa/xtensa.c (xtensa_register_move_cost,
22743 xtensa_memory_move_cost): New functions.
22744 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
22745
22746 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
22747
22748 PR lto/47225
22749 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
22750 in the current directory.
22751 * configure: Rebuilt.
22752
22753 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
22754
22755 * config/darwin.c (darwin_override_options): Add a hunk missed
22756 from the commit of r168571. Trim comment line lengths and
22757 correct indents of the preceding block.
22758
22759 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
22760
22761 * gcc.c (driver_handle_option): Concatenate the argument to -F with
22762 the switch.
22763
22764 2011-02-11 Joseph Myers <joseph@codesourcery.com>
22765
22766 * common.opt (nostartfiles): New Driver option.
22767
22768 2011-02-11 Xinliang David Li <davidxl@google.com>
22769
22770 PR tree-optimization/47707
22771 * tree-chrec.c (convert_affine_scev): Keep type precision.
22772
22773 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
22774
22775 PR tree-optimization/47420
22776 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
22777
22778 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
22779
22780 PR rtl-optimization/47614
22781 * rtl.h (check_for_inc_dec): Declare.
22782 * dse.c (check_for_inc_dec): Externalize...
22783 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
22784 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
22785
22786 2011-02-11 Joseph Myers <joseph@codesourcery.com>
22787
22788 PR driver/47678
22789 * gcc.c (main): Do not compile inputs if there were errors in
22790 option handling.
22791 * opts-common.c (read_cmdline_option): Check for wrong language
22792 after other error checks.
22793
22794 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
22795
22796 * cgraph.c: Fix comment typos.
22797 * cgraph.h: Likewise.
22798 * cgraphunit.c: Likewise.
22799 * ipa-cp.c: Likewise.
22800 * ipa-inline.c: Likewise.
22801 * ipa-prop.c: Likewise.
22802 * ipa-pure-const.c: Likewise.
22803 * ipa-ref.c: Likewise.
22804 * ipa-reference.c: Likewise.
22805
22806 2011-02-11 Jakub Jelinek <jakub@redhat.com>
22807
22808 PR debug/47684
22809 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
22810
22811 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22812
22813 PR testsuite/47400
22814 * doc/sourcebuild.texi (Require Support): Document
22815 dg-require-ascii-locale.
22816
22817 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
22818
22819 * doc/lto.texi (Write summary): Fix missing parentheses.
22820
22821 2011-02-10 DJ Delorie <dj@redhat.com>
22822
22823 * config/m32c/m32c.c (m32c_option_override): Disable
22824 -fcombine-stack-adjustments until flag value tracking and compare
22825 optimization can be rewritten.
22826
22827 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
22828
22829 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
22830 PROCESSOR_POWER7.
22831 (PROCESSOR_DEFAULT64): Likewise.
22832
22833 2011-02-10 Richard Henderson <rth@redhat.com>
22834
22835 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
22836 change from 2011-02-03.
22837 * config/rx/rx.c (flags_from_code): Likewise.
22838 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
22839 is valid, n/pz otherwise.
22840 (rx_select_cc_mode): Return CCmode if Y is not zero.
22841
22842 2011-02-10 Richard Guenther <rguenther@suse.de>
22843
22844 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
22845
22846 2011-02-10 Richard Guenther <rguenther@suse.de>
22847
22848 PR tree-optimization/47677
22849 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
22850
22851 2011-02-10 Jakub Jelinek <jakub@redhat.com>
22852
22853 PR target/47665
22854 * combine.c (make_compound_operation): Only change shifts into
22855 multiplication for SCALAR_INT_MODE_P.
22856
22857 2011-02-10 Jie Zhang <jie@codesourcery.com>
22858
22859 PR testsuite/47622
22860 Revert
22861 2011-02-05 Jie Zhang <jie@codesourcery.com>
22862 PR debug/42631
22863 * web.c (entry_register): Don't clobber the number of the
22864 first uninitialized reference in used[].
22865
22866 2011-02-09 Richard Guenther <rguenther@suse.de>
22867
22868 PR tree-optimization/47664
22869 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
22870 all edges again.
22871
22872 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
22873
22874 PR target/46481
22875 PR target/47032
22876 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
22877 PROCESSOR_POWER7.
22878 (PROCESSOR_DEFAULT64): Same.
22879 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
22880
22881 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22882
22883 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
22884
22885 2011-02-09 Martin Jambor <mjambor@suse.cz>
22886
22887 PR middle-end/45505
22888 * tree-sra.c (struct access): New flags grp_scalar_read and
22889 grp_scalar_write. Changed description of assignment read and write
22890 flags.
22891 (dump_access): Dump new flags, reorder all of them.
22892 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
22893 to detect multiple scalar reads.
22894 (analyze_access_subtree): Use the new scalar read write flags instead
22895 of the old flags. Adjusted comments.
22896
22897 2011-02-08 DJ Delorie <dj@redhat.com>
22898
22899 PR target/47548
22900 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
22901 patterns.
22902
22903 2011-02-08 Joseph Myers <joseph@codesourcery.com>
22904
22905 * config/m68k/uclinux.opt: New.
22906 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
22907
22908 2011-02-08 Joseph Myers <joseph@codesourcery.com>
22909
22910 * config/cris/elf.opt (sim): New Driver option.
22911
22912 2011-02-08 Joseph Myers <joseph@codesourcery.com>
22913
22914 * config/xtensa/elf.opt: New.
22915 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
22916
22917 2011-02-08 Joseph Myers <joseph@codesourcery.com>
22918
22919 * config/vax/elf.opt: New.
22920 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
22921
22922 2011-02-08 Joseph Myers <joseph@codesourcery.com>
22923
22924 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
22925
22926 2011-02-08 Joseph Myers <joseph@codesourcery.com>
22927
22928 * config/gnu-user.opt: New.
22929 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
22930 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
22931 *-*-uclinux*): Use gnu-user.opt.
22932
22933 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
22934
22935 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
22936 * config/i386/gnu.h (CPP_SPEC): Likewise.
22937
22938 2011-02-08 Ian Lance Taylor <iant@google.com>
22939
22940 * common.opt (fcx-limited-range): Add SetByCombined flag.
22941 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
22942 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
22943 (fassociative-math, freciprocal-math): Likewise.
22944 (funsafe-math-optimizations): Likewise.
22945 * opth-gen.awk: Handle SetByCombined.
22946 * optc-gen.awk: Likewise.
22947 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
22948 (set_unsafe_math_optimizations_flags): Likewise.
22949 * doc/options.texi (Option properties): Document SetByCombined.
22950
22951 2011-02-08 Joseph Myers <joseph@codesourcery.com>
22952
22953 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
22954 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
22955 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
22956 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
22957 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
22958
22959 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
22960
22961 PR tree-optimization/46834
22962 PR tree-optimization/46994
22963 PR tree-optimization/46995
22964 * graphite-sese-to-poly.c (used_outside_reduction): New.
22965 (detect_commutative_reduction): Call used_outside_reduction.
22966 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
22967 translate_scalar_reduction_to_array only when at least one
22968 loop-phi/close-phi tuple has been detected.
22969
22970 2011-02-08 Richard Guenther <rguenther@suse.de>
22971
22972 PR middle-end/47639
22973 * tree-vect-generic.c (expand_vector_operations_1): Update
22974 stmts here ...
22975 (expand_vector_operations): ... not here. Cleanup EH info
22976 and the CFG if required.
22977
22978 2011-02-08 Richard Guenther <rguenther@suse.de>
22979
22980 PR tree-optimization/47641
22981 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
22982 require type compatibility.
22983
22984 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22985
22986 * gimple-low.c (lower_function_body): Don't remove the location of
22987 the return statement here.
22988 (lower_gimple_return): Do it here instead but only if the return
22989 statement is actually used twice.
22990
22991 2011-02-08 Richard Guenther <rguenther@suse.de>
22992
22993 PR tree-optimization/47632
22994 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
22995 unused up_to_stmt parameter, return whether cfg-cleanup is
22996 necessary, remove EH info properly.
22997 (forward_propagate_into_gimple_cond): Adjust caller.
22998 (forward_propagate_into_cond): Likewise.
22999 (forward_propagate_comparison): Likewise.
23000 (tree_ssa_forward_propagate_single_use_vars): Make
23001 forward_propagate_comparison case similar to the two others.
23002
23003 2011-02-08 Nick Clifton <nickc@redhat.com>
23004
23005 * config/mn10300/mn10300.opt (mliw): New command line option.
23006 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
23007 (liw_bundling): New automaton.
23008 (liw): New attribute.
23009 (liw_op): New attribute.
23010 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
23011 (movsi_internal): Add LIW attributes.
23012 (andsi3): Likewise.
23013 (iorsi3): Likewise.
23014 (xorsi3): Likewise.
23015 (addsi3): Separate register and immediate alternatives.
23016 Add LIW attributes.
23017 (subsi3): Likewise.
23018 (cmpsi): Likewise.
23019 (aslsi3): Likewise.
23020 (lshrsi3): Likewise.
23021 (ashrsi3): Likewise.
23022 (liw): New pattern.
23023 * config/mn10300/mn10300.c (liw_op_names): New
23024 (mn10300_print_operand): Handle 'W' operand descriptor.
23025 (extract_bundle): New function.
23026 (check_liw_constraints): New function.
23027 (liw_candidate): New function.
23028 (mn10300_bundle_liw): New function.
23029 (mn10300_reorg): New function.
23030 (TARGET_MACHINE_DEPENDENT_REORG): Define.
23031 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
23032 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
23033 __LIW__ or __NO_LIW__.
23034 * doc/invoke.texi: Describe the -mliw command line option.
23035
23036 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
23037
23038 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
23039 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
23040 pthread_mutex_unlock): Remove.
23041 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
23042 * config/pa/t-pa64: Likewise.
23043 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
23044 shared libc if not linking against libpthread.
23045 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
23046
23047 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
23048
23049 PR target/47558
23050 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
23051 on 10.6 and later to ensure that we always use the unwinder from
23052 the system. Only add -no_compact_unwind when tarteting darwin
23053 10.6 or later.
23054
23055 2011-02-07 Steve Ellcey <sje@cup.hp.com>
23056
23057 PR target/46997
23058 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
23059 (vec_interleave_lowv2sf): Ditto.
23060 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
23061 (vec_extract_oddv2sf): Ditto.
23062
23063 2011-02-07 Mike Stump <mikestump@comcast.net>
23064
23065 PR target/42333
23066 Add __ieee_divdc3 entry point.
23067 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
23068 entry point.
23069 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
23070 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
23071 * config/darwin.c (darwin_rename_builtins): Add.
23072 * config/darwin-protos.h (darwin_rename_builtins): Add.
23073
23074 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
23075
23076 PR target/47636
23077 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
23078 for the condition.
23079
23080 2011-02-07 Mike Stump <mikestump@comcast.net>
23081
23082 * config/darwin.opt (mmacosx-version-min): Update default OS version.
23083
23084 2011-02-07 Denis Chertykov <chertykov@gmail.com>
23085
23086 PR target/47534
23087 * config/avr/libgcc.S (exit): Move .endfunc
23088
23089 2011-02-07 Richard Guenther <rguenther@suse.de>
23090
23091 PR tree-optimization/47615
23092 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
23093 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
23094 (run_scc_vn): Initialize it.
23095 (visit_reference_op_load): Use it.
23096 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
23097
23098 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23099
23100 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
23101 DImode trapping arithmetic libfuncs.
23102
23103 2011-02-07 Richard Guenther <rguenther@suse.de>
23104
23105 PR tree-optimization/47621
23106 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
23107 two duplicates ...
23108 (execute_update_addresses_taken): ... here. Make it more
23109 conservative in what we accept.
23110
23111 2011-02-06 Joseph Myers <joseph@codesourcery.com>
23112
23113 * config/sparc/freebsd.h (ASM_SPEC): Define.
23114 * config/sparc/vxworks.h (ASM_SPEC): Define.
23115
23116 2011-02-06 Joseph Myers <joseph@codesourcery.com>
23117
23118 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
23119
23120 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
23121
23122 * doc/invoke.texi: Remove reference to compiler internals from
23123 user documentation.
23124
23125 * reg-notes.def: Remove REG_VALUE_PROFILE.
23126 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
23127
23128 2011-02-05 Jakub Jelinek <jakub@redhat.com>
23129
23130 PR middle-end/47610
23131 * varasm.c (default_section_type_flags): If decl is NULL,
23132 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
23133
23134 2011-02-05 Jie Zhang <jie@codesourcery.com>
23135
23136 PR debug/42631
23137 * web.c (entry_register): Don't clobber the number of the
23138 first uninitialized reference in used[].
23139
23140 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
23141
23142 PR tree-optimization/46194
23143 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
23144 (build_classic_dist_vector_1): Do not represent classic distance
23145 vectors when the access functions are variating in different loops.
23146
23147 2011-02-04 Joseph Myers <joseph@codesourcery.com>
23148
23149 * config/mips/iris6.opt: New.
23150 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
23151
23152 2011-02-04 Richard Henderson <rth@redhat.com>
23153 Steve Ellcey <sje@cup.hp.com>
23154
23155 PR target/46997
23156 * config/ia64/predicates.md (mux1_brcst_element): New.
23157 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
23158 * config/ia64/ia64.c (ia64_unpack_assemble): New.
23159 (ia64_unpack_sign): New.
23160 (ia64_expand_unpack): Rewrite using new routines.
23161 (ia64_expand_widen_sum): Ditto.
23162 (ia64_expand_dot_prod_v8qi): Ditto.
23163 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
23164 routines, add endian check.
23165 (pmpy2_even): Rename from pmpy2_r, add endian check.
23166 (pmpy2_odd): Rename from pmpy2_l, add endian check.
23167 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
23168 (vec_widen_smult_hi_v4hi): Ditto.
23169 (vec_widen_umult_lo_v4hi): Ditto.
23170 (vec_widen_umult_hi_v4hi): Ditto.
23171 (mulv2si3): Change endian checks.
23172 (sdot_prodv4hi): Rewrite with new calls.
23173 (udot_prodv4hi): New.
23174 (vec_pack_ssat_v4hi): Add endian check.
23175 (vec_pack_usat_v4hi): Ditto.
23176 (vec_pack_ssat_v2si): Ditto.
23177 (max1_even): Rename from max1_r, add endian check.
23178 (max1_odd): Rename from max1_l, add endian check.
23179 (*mux1_rev): Format change.
23180 (*mux1_mix): Ditto.
23181 (*mux1_shuf): Ditto.
23182 (*mux1_alt): Ditto.
23183 (*mux1_brcst_v8qi): Use new predicate.
23184 (vec_extract_evenv8qi): Remove endian check.
23185 (vec_extract_oddv8qi): Ditto.
23186 (vec_interleave_lowv4hi): Format change.
23187 (vec_interleave_highv4hi): Ditto.
23188 (mix2_even): Rename from mix2_r, add endian check.
23189 (mix2_odd): Rename from mux2_l, add endian check.
23190 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
23191 (vec_extract_evenodd_helper): Format change.
23192 (vec_extract_evenv4hi): Remove endian check.
23193 (vec_extract_oddv4hi): Remove endian check.
23194 (vec_interleave_lowv2si): Format change.
23195 (vec_interleave_highv2si): Format change.
23196 (vec_initv2si): Remove endian check.
23197 (vecinit_v2si): Add endian check.
23198 (reduc_splus_v2sf): Add endian check.
23199 (reduc_smax_v2sf): Ditto.
23200 (reduc_smin_v2sf): Ditto.
23201 (vec_initv2sf): Remove endian check.
23202 (fpack): Add endian check.
23203 (fswap): Add endian check.
23204 (vec_interleave_highv2sf): Add endian check.
23205 (vec_interleave_lowv2sf): Add endian check.
23206 (fmix_lr): Add endian check.
23207 (vec_setv2sf): Format change.
23208 (*vec_extractv2sf_0_be): Use shift to extract operand.
23209 (*vec_extractv2sf_1_be): New.
23210 (vec_pack_trunc_v4hi): Add endian check.
23211 (vec_pack_trunc_v2si): Format change.
23212
23213 2011-02-04 Jakub Jelinek <jakub@redhat.com>
23214
23215 PR inline-asm/23200
23216 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
23217 do bb, locus and block comparison and disallow loads if it is not set.
23218 (stmt_is_replaceable_p): New function.
23219 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
23220 callers.
23221 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
23222 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
23223 SSA_NAME_DEF_STMT.
23224 * tree-flow.h (stmt_is_replaceable_p): New prototype.
23225
23226 2011-02-04 Joseph Myers <joseph@codesourcery.com>
23227
23228 * config/rs6000/xilinx.opt: New.
23229 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
23230
23231 2011-02-04 Joseph Myers <joseph@codesourcery.com>
23232
23233 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
23234
23235 2011-02-03 Anatoly Sokolov <aesok@post.ru>
23236
23237 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
23238 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
23239 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
23240 secondary_reload_info, xtensa_secondary_reload): Remove.
23241 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
23242 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
23243 (xtensa_preferred_reload_class): Make static. Change return and
23244 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
23245 Use CONST_DOUBLE_P predicate.
23246 (xtensa_preferred_output_reload_class): New function.
23247 (xtensa_secondary_reload): Make static.
23248
23249 2011-02-03 Joseph Myers <joseph@codesourcery.com>
23250
23251 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
23252 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
23253 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
23254
23255 2011-02-03 Jakub Jelinek <jakub@redhat.com>
23256
23257 PR middle-end/31490
23258 * output.h (SECTION_RELRO): Define.
23259 (SECTION_MACH_DEP): Adjust.
23260 (get_variable_section): New prototype.
23261 * varpool.c (varpool_finalize_named_section_flags): New function.
23262 (varpool_assemble_pending_decls): Call it.
23263 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
23264 * cgraphunit.c (cgraph_output_in_order): Call
23265 varpool_finalize_named_section_flags.
23266 * varasm.c (get_section): Allow section flags conflicts between
23267 relro and read-only sections if the section hasn't been declared yet.
23268 Set SECTION_OVERRIDE after diagnosing section type conflict.
23269 (get_variable_section): No longer static.
23270 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
23271 readonly sections that need relocations.
23272 (decl_readonly_section_1): New function.
23273 (decl_readonly_section): Use it.
23274
23275 Revert:
23276 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
23277 Steve Ellcey <sje@cup.hp.com>
23278
23279 PR middle-end/31490
23280 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
23281 if section attribute used.
23282
23283 2011-02-03 Jakub Jelinek <jakub@redhat.com>
23284
23285 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
23286 * config/darwin.c (SECTION_NO_ANCHOR): Define.
23287 (darwin_init_sections): Remove assertion.
23288
23289 2011-02-03 Nick Clifton <nickc@redhat.com>
23290
23291 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
23292 lt and ge.
23293 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
23294 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
23295 instead of "n" and "pz".
23296 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
23297 CC_FLAG_S.
23298
23299 2011-02-03 Jakub Jelinek <jakub@redhat.com>
23300
23301 PR target/47312
23302 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
23303 fma, expand FMA_EXPR as fma{,f,l} call.
23304
23305 PR lto/47274
23306 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
23307 copy them into a unsigned char variable and pass address of it to
23308 lto_output_data_stream.
23309
23310 PR target/47564
23311 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
23312 around backend_init_target and lang_dependent_init_target calls.
23313 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
23314 (verify_cgraph_node): Don't call set_cfun here. Use
23315 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
23316 Set error_found for incorrectly represented calls to thunks.
23317
23318 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
23319
23320 PR debug/43092
23321 PR rtl-optimization/43494
23322 * rtl.h (for_each_inc_dec_fn): New type.
23323 (for_each_inc_dec): Declare.
23324 * rtlanal.c (struct for_each_inc_dec_ops): New type.
23325 (for_each_inc_dec_find_inc_dec): New fn.
23326 (for_each_inc_dec_find_mem): New fn.
23327 (for_each_inc_dec): New fn.
23328 * dse.c (struct insn_size): Remove.
23329 (replace_inc_dec, replace_inc_dec_mem): Remove.
23330 (emit_inc_dec_insn_before): New fn.
23331 (check_for_inc_dec): Use it, along with for_each_inc_dec.
23332 (canon_address): Pass mem modes to cselib_lookup.
23333 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
23334 (cselib_lookup_from_insn): Likewise.
23335 (cselib_subst_to_values): Likewise.
23336 * cselib.c (find_slot_memmode): New var.
23337 (cselib_find_slot): New fn. Use it instead of
23338 htab_find_slot_with_hash everywhere.
23339 (entry_and_rtx_equal_p): Use find_slot_memmode.
23340 (autoinc_split): New fn.
23341 (rtx_equal_for_cselib_p): Rename and implement in terms of...
23342 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
23343 Deal with autoinc. Special-case recursion into MEMs.
23344 (cselib_hash_rtx): Likewise.
23345 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
23346 address and MEM modes.
23347 (cselib_subst_to_values): Add memmode, pass it on.
23348 Deal with autoinc.
23349 (cselib_lookup): Add memmode argument, pass it on.
23350 (cselib_lookup_from_insn): Add memmode.
23351 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
23352 (struct cselib_record_autoinc_data): New.
23353 (cselib_record_autoinc_cb): New fn.
23354 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
23355 mode to cselib_lookup. Reset autoinced REGs here instead of...
23356 (cselib_process_insn): ... here.
23357 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
23358 to cselib_lookup.
23359 (add_uses): Likewise, also to cselib_subst_to_values.
23360 (add_stores): Likewise.
23361 * sched-deps.c (add_insn_mem_dependence): Pass mode to
23362 cselib_subst_to_values.
23363 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
23364 * gcse.c (do_local_cprop): Adjusted.
23365 * postreload.c (reload_cse_simplify_set): Adjusted.
23366 (reload_cse_simplify_operands): Adjusted.
23367 * sel-sched-dump (debug_mem_addr_value): Pass mode.
23368
23369 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
23370
23371 PR tree-optimization/45122
23372 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
23373 unsafe assumptions when there's more than one loop exit.
23374
23375 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
23376
23377 PR target/47272
23378 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
23379 Document using vector double with the load/store builtins, and
23380 that the load/store builtins always use Altivec instructions.
23381
23382 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
23383 to use altivec memory instructions, even on VSX.
23384 (vector_altivec_store_<mode>): Ditto.
23385
23386 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
23387 function.
23388
23389 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23390 V2DF, V2DI support to load/store overloaded builtins.
23391
23392 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
23393 altivec load/store builtins for V2DF/V2DI types.
23394
23395 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
23396 set avoid indexed addresses on power6 if -maltivec.
23397 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
23398 vector_altivec_load/vector_altivec_store builtins.
23399 (altivec_expand_st_builtin): Ditto.
23400 (altivec_expand_builtin): Add VSX memory builtins.
23401 (rs6000_init_builtins): Add V2DI types to internal types.
23402 (altivec_init_builtins): Add support for V2DF/V2DI altivec
23403 load/store builtins.
23404 (rs6000_address_for_altivec): Insure memory address is appropriate
23405 for Altivec.
23406
23407 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
23408 vec_vsx_ld and vec_vsx_st.
23409 (vsx_store_<mode>): Ditto.
23410
23411 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
23412 variables to hold long long types for VSX vector memory builtins.
23413 (RS6000_BTI_unsigned_long_long): Ditto.
23414 (long_long_integer_type_internal_node): Ditti.
23415 (long_long_unsigned_type_internal_node): Ditti.
23416
23417 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
23418 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
23419 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
23420
23421 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
23422 short cuts.
23423 (vec_vsx_st): Ditto.
23424
23425 2011-02-02 Joseph Myers <joseph@codesourcery.com>
23426
23427 * config/pa/pa-hpux10.opt: New.
23428 * config/hpux11.opt (pthread): New Driver option.
23429 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
23430 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
23431
23432 2011-02-02 Joseph Myers <joseph@codesourcery.com>
23433
23434 * config/ia64/vms.opt: New.
23435 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
23436
23437 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
23438
23439 PR target/47580
23440 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
23441 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
23442 generator functions.
23443 (vsx_floatuns<VSi><mode>2): Ditto.
23444 (vsx_fix_trunc<mode><VSi>2): Ditto.
23445 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
23446
23447 2011-02-02 Joseph Myers <joseph@codesourcery.com>
23448
23449 * config/i386/djgpp.opt (posix): New Driver option.
23450
23451 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
23452
23453 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
23454 Move to the unsupported targets list.
23455
23456 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
23457
23458 PR rtl-optimization/47525
23459 * df-scan.c: Update copyright years.
23460 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
23461 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
23462
23463 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23464
23465 * config/i386/sysv4.h (TARGET_VERSION): Remove.
23466 (SUBTARGET_RETURN_IN_MEMORY): Remove.
23467 (ASM_OUTPUT_ASCII): Remove.
23468 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
23469
23470 2011-02-02 Jeff Law <law@redhat.com>
23471
23472 PR middle-end/47543
23473 * reload.c (find_reloads_address): Handle reg+d address where both
23474 components are invalid by reloading the entire address.
23475
23476 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
23477 Richard Guenther <rguenther@suse.de>
23478
23479 PR tree-optimization/40979
23480 PR bootstrap/47044
23481 * passes.c (init_optimization_passes): After LIM call copy_prop
23482 and DCE to clean up.
23483 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
23484
23485 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
23486
23487 PR tree-optimization/47576
23488 PR tree-optimization/47555
23489 * doc/invoke.texi (scev-max-expr-complexity): Documented.
23490 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
23491 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
23492 * tree-scalar-evolution.c (follow_ssa_edge): Use
23493 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
23494
23495 2011-02-02 Richard Guenther <rguenther@suse.de>
23496
23497 PR tree-optimization/47566
23498 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
23499
23500 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
23501
23502 PR debug/47106
23503 PR debug/47402
23504 * tree-inline.c (declare_return_variable): Remove unused caller
23505 variable.
23506
23507 PR debug/47106
23508 PR debug/47402
23509 * tree-flow-inline.h (clear_is_used, is_used_p): New.
23510 * cfgexpand.c (account_used_vars_for_block): Use them.
23511 * tree-nrv.c (tree_nrv): Likewise.
23512 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
23513 (dump_scope_block): Likewise.
23514 (remove_unused_locals): Likewise.
23515
23516 PR debug/47106
23517 PR debug/47402
23518 * tree-inline.c (declare_return_variable): Add result decl to
23519 local decls only once.
23520 * gimple-low.c (record_vars_into): Mark newly-created variables
23521 as referenced.
23522
23523 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
23524
23525 PR debug/47498
23526 PR debug/47501
23527 PR debug/45136
23528 PR debug/45130
23529 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
23530 debug insns.
23531 (no_real_insns_p, schedule_block, set_priorities): Drop special
23532 treatment of boundary debug insns.
23533 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
23534 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
23535 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
23536 (BOUNDARY_DEBUG_INSN_P): Likewise.
23537 (SCHEDULE_DEBUG_INSN_P): Likewise.
23538 * sched-rgn.c (init_ready_list): Drop special treatment of
23539 boundary debug insns.
23540 * final.c (rest_of_clean_state): Clear notes' BB.
23541
23542 2011-02-01 Joseph Myers <joseph@codesourcery.com>
23543
23544 * config/openbsd.opt (assert=): New Driver option.
23545
23546 2011-02-01 Joseph Myers <joseph@codesourcery.com>
23547
23548 * config/i386/nto.opt: New.
23549 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
23550
23551 2011-02-01 Joseph Myers <joseph@codesourcery.com>
23552
23553 * config/i386/netware.opt: New.
23554 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
23555
23556 2011-02-01 Joseph Myers <joseph@codesourcery.com>
23557
23558 * config/interix.opt (posix): New Driver option.
23559
23560 2011-02-01 DJ Delorie <dj@redhat.com>
23561
23562 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
23563
23564 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
23565 class for A0/A1.
23566
23567 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
23568
23569 PR tree-optimization/47561
23570 * toplev.c (process_options): Print the Graphite flags. Add
23571 flag_loop_flatten to the list of options requiring Graphite.
23572
23573 2011-02-01 Joseph Myers <joseph@codesourcery.com>
23574
23575 * config/i386/cygming.opt (posix): New Driver option.
23576
23577 2011-02-01 Joseph Myers <joseph@codesourcery.com>
23578
23579 * config/arm/vxworks.opt: New.
23580 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
23581
23582 2011-02-01 Joseph Myers <joseph@codesourcery.com>
23583
23584 * config/alpha/elf.opt: New.
23585 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
23586 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
23587
23588 2011-02-01 Richard Guenther <rguenther@suse.de>
23589
23590 PR tree-optimization/47559
23591 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
23592 store-motion on references that can throw.
23593
23594 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
23595
23596 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
23597 * tree-pass.h (TDF_CSELIB): New macro.
23598 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
23599 cselib_lookup): Check for it rather than for TDF_DETAILS.
23600
23601 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
23602
23603 PR driver/47547
23604 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
23605 is HOST_BIT_BUCKET.
23606
23607 * opts.c (finish_options): Don't add x_aux_base_name if it is
23608 HOST_BIT_BUCKET.
23609
23610 2011-02-01 Richard Guenther <rguenther@suse.de>
23611
23612 PR tree-optimization/47555
23613 Revert
23614 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
23615
23616 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
23617
23618 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
23619
23620 PR gcc/46692
23621 * config/lm32/t-lm32: Add multilib for all CPU options.
23622
23623 2011-02-01 Richard Guenther <rguenther@suse.de>
23624
23625 PR tree-optimization/47541
23626 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
23627 sure to have a field at offset zero.
23628
23629 2011-01-31 Joseph Myers <joseph@codesourcery.com>
23630
23631 * config/arc/arc.opt (EB, EL): New Driver options.
23632
23633 2011-01-31 Joseph Myers <joseph@codesourcery.com>
23634
23635 * config/alpha/osf5.opt: New.
23636 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
23637
23638 2011-01-31 Joseph Myers <joseph@codesourcery.com>
23639
23640 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
23641
23642 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
23643
23644 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
23645 -floop-interchange.
23646 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
23647 is an alias of -floop-interchange and that it requires the
23648 Graphite infrastructure.
23649 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
23650 flag_loop_interchange based on the value of flag_tree_loop_linear.
23651
23652 2011-01-31 Jakub Jelinek <jakub@redhat.com>
23653 Richard Guenther <rguenther@suse.de>
23654
23655 PR tree-optimization/47538
23656 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
23657 type instead of r1type, except for comparisons. For right
23658 shifts and comparisons punt if there are mismatches in
23659 sizetype vs. non-sizetype types.
23660
23661 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23662
23663 * doc/sourcebuild.texi (Effective-Target Keywords): Document
23664 avx_runtime.
23665
23666 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23667
23668 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
23669 version number.
23670 * configure: Regenerate.
23671
23672 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23673
23674 * configure.ac (gcc_cv_ld_static_option): Define.
23675 (gcc_cv_ld_dynamic_option): Define.
23676 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
23677 instead.
23678 (HAVE_LD_STATIC_DYNAMIC): Update message.
23679 (LD_STATIC_OPTION): Define.
23680 (LD_DYNAMIC_OPTION): Define.
23681 * configure: Regenerate.
23682 * config.in: Regenerate.
23683 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
23684 HAVE_LD_STATIC_DYNAMIC]: Use them.
23685
23686 2011-01-31 Nick Clifton <nickc@redhat.com>
23687
23688 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
23689 registers inside interrupt handlers if the handler is not a leaf
23690 function.
23691
23692 2011-01-31 Nick Clifton <nickc@redhat.com>
23693
23694 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
23695 reg_renumber returning an INVALID_REGNUM.
23696
23697 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
23698
23699 PR libgcj/44341
23700 * doc/install.texi: Document host options discarded when cross
23701 configuring target libraries.
23702
23703 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
23704
23705 Reverted:
23706 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
23707 PR debug/45136
23708 PR debug/45130
23709 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
23710 debug insns.
23711 (no_real_insns_p, schedule_block, set_priorities): Drop special
23712 treatment of boundary debug insns.
23713 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
23714 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
23715 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
23716 (BOUNDARY_DEBUG_INSN_P): Likewise.
23717 (SCHEDULE_DEBUG_INSN_P): Likewise.
23718 * sched-rgn.c (init_ready_list): Drop special treatment of
23719 boundary debug insns.
23720 * final.c (rest_of_clean-state): Clear notes' BB.
23721
23722 2011-01-31 Alan Modra <amodra@gmail.com>
23723
23724 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
23725 toc relative expressions as we do in print_operand_address.
23726
23727 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
23728
23729 * doc/extend.texi: Follow spelling conventions.
23730 * doc/invoke.texi: Fix a typo.
23731
23732 2011-01-30 Joseph Myers <joseph@codesourcery.com>
23733
23734 * config/hpux11.opt: New.
23735 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
23736 ia64*-*-hpux*): Use hpux11.opt.
23737
23738 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
23739
23740 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
23741 to tmake_file.
23742
23743 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
23744
23745 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
23746 support sites.
23747
23748 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
23749
23750 * doc/install.texi (Binaries): Remove outdated reference for
23751 Motorola 68HC11/68HC12 downloads.
23752
23753 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
23754
23755 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
23756 Drepper's paper.
23757
23758 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
23759
23760 PR bootstrap/47147
23761 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
23762 used by NetBSD.
23763
23764 2011-01-28 Ahmad Sharif <asharif@google.com>
23765
23766 * value-prof.c (check_counter): Corrected error message.
23767
23768 2011-01-29 Jie Zhang <jie@codesourcery.com>
23769
23770 * config/arm/arm.c (arm_legitimize_reload_address): New.
23771 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
23772 arm_legitimize_reload_address.
23773 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
23774
23775 2011-01-28 Ian Lance Taylor <iant@google.com>
23776
23777 * godump.c (go_define): Ignore macros whose definitions include
23778 two adjacent operands.
23779
23780 2011-01-28 Jakub Jelinek <jakub@redhat.com>
23781
23782 PR target/42894
23783 * varasm.c (force_const_mem): Store copy of x in desc->constant
23784 instead of x itself.
23785 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
23786 itself into REG_EQUAL note.
23787
23788 2011-01-28 Joseph Myers <joseph@codesourcery.com>
23789
23790 * config/freebsd.opt (posix, rdynamic): New Driver options.
23791
23792 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23793
23794 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
23795 -Bstatic/-Bdynamic.
23796 * configure: Regenerate.
23797
23798 2011-01-27 Joseph Myers <joseph@codesourcery.com>
23799
23800 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
23801 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
23802
23803 2011-01-27 Anatoly Sokolov <aesok@post.ru>
23804
23805 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
23806 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
23807 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
23808 (s390_preferred_reload_class): Make static. Change return and
23809 'rclass' argument type to reg_class_t.
23810
23811 2011-01-27 Jan Hubicka <jh@suse.cz>
23812
23813 PR middle-end/46949
23814 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
23815 (process_function_and_variable_attributes): Check defined weakrefs.
23816
23817 2011-01-27 Martin Jambor <mjambor@suse.cz>
23818
23819 PR tree-optimization/47228
23820 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
23821 build_ref_for_offset.
23822
23823 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
23824
23825 * config/spu/spu-elf.h (ASM_SPEC): Remove.
23826
23827 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
23828
23829 PR rtl-optimization/46856
23830 * postreload.c (reload_combine_recognize_const_pattern): Do not
23831 separate cc0 setter and user on cc0 targets.
23832
23833 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
23834
23835 PR c/43082
23836 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
23837 passed a VOID_TYPE expression, immediately emit an error and
23838 return error_mark_node.
23839
23840 2011-01-26 Jeff Law <law@redhat.com>
23841
23842 PR rtl-optimization/47464
23843 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
23844 rather than may_trap_p as needed.
23845
23846 2011-01-26 DJ Delorie <dj@redhat.com>
23847
23848 PR rtl-optimization/46878
23849 * combine.c (insn_a_feeds_b): Check for the implicit cc0
23850 setter/user dependency as well.
23851
23852 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
23853
23854 PR rtl-optimization/44469
23855 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
23856 after removing trivially dead basic blocks.
23857
23858 2011-01-26 Joseph Myers <joseph@codesourcery.com>
23859
23860 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
23861 * config/frv/frv.h (LINK_SPEC): Likewise.
23862 * config/i386/netware.h (LINK_SPEC): Likewise.
23863 * config/m68k/linux.h (ASM_SPEC): Likewise.
23864 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
23865 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
23866 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23867 * config/sparc/linux.h (ASM_SPEC): Likewise.
23868 * config/sparc/linux64.h (ASM_SPEC): Likewise.
23869 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23870
23871 2011-01-26 Joseph Myers <joseph@codesourcery.com>
23872
23873 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
23874 * config/frv/frv.h (ASM_SPEC): Likewise.
23875 * config/m68k/linux.h (ASM_SPEC): Likewise.
23876 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
23877 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
23878 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23879 * config/sparc/linux.h (ASM_SPEC): Likewise.
23880 * config/sparc/linux64.h (ASM_SPEC): Likewise.
23881 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23882
23883 2011-01-26 Joseph Myers <joseph@codesourcery.com>
23884
23885 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
23886 * config/frv/frv.h (LINK_SPEC): Likewise.
23887 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
23888
23889 2011-01-26 Joseph Myers <joseph@codesourcery.com>
23890
23891 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
23892 * config/frv/frv.h (ASM_SPEC): Likewise.
23893 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
23894 * config/m68k/linux.h (ASM_SPEC): Likewise.
23895 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
23896 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
23897 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23898 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
23899 * config/sparc/linux.h (ASM_SPEC): Likewise.
23900 * config/sparc/linux64.h (ASM_SPEC): Likewise.
23901 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23902 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
23903
23904 2011-01-26 Steve Ellcey <sje@cup.hp.com>
23905
23906 PR target/46997
23907 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
23908 (*mux2): Ditto.
23909 (vec_extract_evenodd_help): Ditto.
23910 (vec_extract_evenv4hi): Ditto.
23911 (vec_extract_oddv4hi): Ditto.
23912 (vec_interleave_lowv2si): Ditto.
23913 (vec_interleave_highv2si): Ditto.
23914 (vec_extract_evenv2si): Ditto.
23915 (vec_extract_oddv2si: Ditto.
23916 (vec_pack_trunc_v2si): Ditto.
23917
23918 2011-01-22 Jan Hubicka <jh@suse.cz>
23919
23920 PR target/47237
23921 * cgraph.h (cgraph_local_info): New field can_change_signature.
23922 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
23923 signature can change.
23924 (ipcp_estimate_growth): Call sequence simplify only if calle signature
23925 can change.
23926 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
23927 (cgraph_function_versioning): We can not change signature of functions
23928 that don't allow that.
23929 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
23930 (lto_input_node): Likewise.
23931 * ipa-inline.c (compute_inline_parameters): Compute
23932 local.can_change_signature.
23933 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
23934 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
23935 functions that can not change signature.
23936 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
23937 init_cumulative_args): Do not use local calling conventions
23938 for functions that can not change signature.
23939
23940 2011-01-22 Jan Hubicka <jh@suse.cz>
23941
23942 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
23943
23944 2011-01-26 Richard Guenther <rguenther@suse.de>
23945
23946 PR tree-optimization/47190
23947 * cgraphunit.c (process_common_attributes): New function.
23948 (process_function_and_variable_attributes): Use it.
23949
23950 2011-01-26 Richard Guenther <rguenther@suse.de>
23951
23952 PR lto/47423
23953 * cgraphbuild.c (record_eh_tables): Record reference to personality
23954 function.
23955
23956 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
23957
23958 PR debug/45454
23959 * sel-sched.c (moveup_expr): Don't let debug insns prevent
23960 non-debug insns from moving up.
23961
23962 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
23963
23964 PR target/40125
23965 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
23966 t-dlldir{,-x} fragment for build and add it to tmake_file.
23967 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
23968 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
23969 * config/i386/t-dlldir: New file.
23970 (SHLIB_DLLDIR): Define.
23971 * config/i386/t-dlldir-x: New file.
23972 (SHLIB_DLLDIR): Define.
23973 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
23974 (SHLIB_INSTALL): Use it.
23975
23976 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
23977
23978 PR target/47246
23979 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
23980 lower bound of the allowed Thumb-2 coprocessor load/store
23981 index range to -256. Add explaining comment.
23982
23983 2011-01-25 Ian Lance Taylor <iant@google.com>
23984
23985 * godump.c (go_define): Improve lexing of macro expansion to only
23986 accept expressions which match Go spec.
23987
23988 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
23989
23990 PR c++/43601
23991 * tree.c (handle_dll_attribute): Handle it.
23992 * doc/extend.texi (@item dllexport): Mention it.
23993 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
23994
23995 2011-01-25 Ian Lance Taylor <iant@google.com>
23996
23997 PR tree-optimization/26854
23998 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
23999 (decl_jump_unsafe): Move higher in file, with no other change.
24000 (bind): Set has_jump_unsafe_decl if appropriate.
24001 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
24002 (check_earlier_gotos): Likewise.
24003 (c_check_switch_jump_warnings): Likewise.
24004
24005 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
24006
24007 * doc/invoke.texi (Warning Options): Add missing hyphen.
24008 (-fprofile-dir): Minor grammatical fixes.
24009 (-fbranch-probabilities): Likewise.
24010
24011 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
24012
24013 PR debug/45136
24014 PR debug/45130
24015 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
24016 debug insns.
24017 (no_real_insns_p, schedule_block, set_priorities): Drop special
24018 treatment of boundary debug insns.
24019 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
24020 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
24021 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
24022 (BOUNDARY_DEBUG_INSN_P): Likewise.
24023 (SCHEDULE_DEBUG_INSN_P): Likewise.
24024 * sched-rgn.c (init_ready_list): Drop special treatment of
24025 boundary debug insns.
24026 * final.c (rest_of_clean-state): Clear notes' BB.
24027
24028 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24029
24030 * Makefile.in (LAMBDA_H): Removed.
24031 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
24032 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
24033 lambda-trans.o, and tree-loop-linear.o.
24034 (lto-symtab.o): Remove dependence on LAMBDA_H.
24035 (tree-loop-linear.o): Remove rule.
24036 (lambda-mat.o): Same.
24037 (lambda-trans.o): Same.
24038 (lambda-code.o): Same.
24039 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
24040 (tree-vect-slp.o): Same.
24041 * hwint.h (gcd): Moved here.
24042 (least_common_multiple): Same.
24043 * lambda-code.c: Removed.
24044 * lambda-mat.c: Removed.
24045 * lambda-trans.c: Removed.
24046 * lambda.h: Removed.
24047 * tree-loop-linear.c: Removed.
24048 * lto-symtab.c: Do not include lambda.h.
24049 * omega.c (gcd): Removed.
24050 * passes.c (init_optimization_passes): Remove pass_linear_transform.
24051 * tree-data-ref.c (print_lambda_vector): Moved here.
24052 (lambda_vector_copy): Same.
24053 (lambda_matrix_copy): Same.
24054 (lambda_matrix_id): Same.
24055 (lambda_vector_first_nz): Same.
24056 (lambda_matrix_row_add): Same.
24057 (lambda_matrix_row_exchange): Same.
24058 (lambda_vector_mult_const): Same.
24059 (lambda_vector_negate): Same.
24060 (lambda_matrix_row_negate): Same.
24061 (lambda_vector_equal): Same.
24062 (lambda_matrix_right_hermite): Same.
24063 * tree-data-ref.h: Do not include lambda.h.
24064 (lambda_vector): Moved here.
24065 (lambda_matrix): Same.
24066 (dependence_level): Same.
24067 (lambda_transform_legal_p): Removed declaration.
24068 (lambda_collect_parameters): Same.
24069 (lambda_compute_access_matrices): Same.
24070 (lambda_vector_gcd): Same.
24071 (lambda_vector_new): Same.
24072 (lambda_vector_clear): Same.
24073 (lambda_vector_lexico_pos): Same.
24074 (lambda_vector_zerop): Same.
24075 (lambda_matrix_new): Same.
24076 * tree-flow.h (least_common_multiple): Removed declaration.
24077 * tree-parloops.c (lambda_trans_matrix): Moved here.
24078 (LTM_MATRIX): Same.
24079 (LTM_ROWSIZE): Same.
24080 (LTM_COLSIZE): Same.
24081 (LTM_DENOMINATOR): Same.
24082 (lambda_trans_matrix_new): Same.
24083 (lambda_matrix_vector_mult): Same.
24084 (lambda_transform_legal_p): Same.
24085 * tree-pass.h (pass_linear_transform): Removed declaration.
24086 * tree-ssa-loop.c (tree_linear_transform): Removed.
24087 (gate_tree_linear_transform): Removed.
24088 (pass_linear_transform): Removed.
24089 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
24090 flag_loop_interchange.
24091
24092 2011-01-25 Jakub Jelinek <jakub@redhat.com>
24093
24094 PR tree-optimization/47265
24095 PR tree-optimization/47443
24096 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
24097 if name still has some uses.
24098
24099 2011-01-25 Martin Jambor <mjambor@suse.cz>
24100
24101 PR tree-optimization/47382
24102 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
24103 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
24104
24105 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
24106
24107 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
24108 sjlj_except_unwind_info.
24109
24110 2011-01-25 Richard Guenther <rguenther@suse.de>
24111
24112 PR tree-optimization/47426
24113 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
24114 visible functions results escape.
24115
24116 2011-01-25 Jakub Jelinek <jakub@redhat.com>
24117
24118 PR target/45701
24119 * config/arm/arm.c (any_sibcall_uses_r3): New function.
24120 (arm_get_frame_offsets): Use it.
24121
24122 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24123 Jakub Jelinek <jakub@redhat.com>
24124
24125 PR tree-optimization/47271
24126 * tree-if-conv.c (bb_postdominates_preds): New.
24127 (if_convertible_bb_p): Call bb_postdominates_preds.
24128 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
24129 (predicate_scalar_phi): Call bb_postdominates_preds.
24130
24131 2011-01-25 Nick Clifton <nickc@redhat.com>
24132
24133 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
24134 * config/rx/rx.c (rx_function_value): Likewise.
24135 (rx_promote_function_mode): Likewise.
24136 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
24137 in order to make it legitimate.
24138 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
24139 make sure that the first operand is the same as the result register.
24140 (addsi3_unspec): Delete.
24141 (subdi3): Do not accept immediate operands.
24142 (subdi3_internal): Likewise.
24143
24144 2011-01-25 Jeff Law <law@redhat.com>
24145
24146 PR rtl-optimization/37273
24147 * ira-costs.c (scan_one_insn): Detect constants living in memory and
24148 handle them like argument loads from stack slots. Do not double
24149 count memory for memory constants and argument loads from stack slots.
24150
24151 2011-01-25 Jakub Jelinek <jakub@redhat.com>
24152
24153 PR tree-optimization/47427
24154 PR tree-optimization/47428
24155 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
24156 coalesce if the new root var would be TREE_READONLY.
24157
24158 2011-01-25 Richard Guenther <rguenther@suse.de>
24159
24160 PR middle-end/47414
24161 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
24162 correct type for TBAA.
24163
24164 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24165
24166 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
24167 (close_phi_written_to_memory): Call for_each_index with
24168 dr_indices_valid_in_loop.
24169
24170 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24171
24172 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
24173 when it is initialized.
24174
24175 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24176
24177 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
24178 call to graphite_find_data_references_in_stmt.
24179 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
24180 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
24181 call to graphite_find_data_references_in_stmt.
24182 (analyze_drs_in_stmts): Same.
24183 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
24184 in which the scalar analysis of indices is performed.
24185 (create_data_ref): Same. Update call to dr_analyze_indices.
24186 (find_data_references_in_stmt): Update call to create_data_ref.
24187 (graphite_find_data_references_in_stmt): Same.
24188 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
24189 declaration.
24190 (create_data_ref): Same.
24191 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
24192 call to create_data_ref.
24193
24194 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24195
24196 * graphite-sese-to-poly.c (build_poly_scop): Move
24197 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
24198
24199 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24200
24201 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
24202 VAR_DECL, PARM_DECL, and RESULT_DECL.
24203
24204 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24205
24206 * graphite-dependences.c (reduction_dr_1): Allow several reductions
24207 in a reduction PBB.
24208 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
24209 that have already been marked as PBB_IS_REDUCTION.
24210
24211 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24212
24213 * graphite-scop-detection.c (same_close_phi_node): New.
24214 (remove_duplicate_close_phi): New.
24215 (make_close_phi_nodes_unique): New.
24216 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
24217
24218 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24219
24220 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
24221 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
24222 of both data references to be the same.
24223
24224 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24225
24226 * graphite-dependences.c (build_lexicographical_constraint): Remove
24227 the gdim parameter.
24228 (build_lexicographical_constraint): Adjust call to
24229 ppl_powerset_is_empty.
24230 (dependence_polyhedron): Same.
24231 (graphite_legal_transform_dr): Same.
24232 (graphite_carried_dependence_level_k): Same.
24233 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
24234 parameter.
24235 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
24236
24237 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24238
24239 * graphite-sese-to-poly.c
24240 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
24241 (close_phi_written_to_memory): New.
24242 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
24243 and unshare_expr.
24244
24245 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24246
24247 * doc/install.texi: Update the expected version number of PPL to 0.11.
24248 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
24249 #if PPL_VERSION_MINOR < 11.
24250
24251 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24252
24253 * graphite-dependences.c: Include graphite-cloog-util.h.
24254 (new_poly_ddr): Inlined into dependence_polyhedron.
24255 (free_poly_ddr): Moved close by new_poly_ddr.
24256 (dependence_polyhedron_1): Renamed dependence_polyhedron.
24257 Early return NULL when ppl_powerset_is_empty returns true.
24258 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
24259 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
24260 (graphite_legal_transform_dr): Call new_poly_ddr.
24261 (graphite_carried_dependence_level_k): Same.
24262 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
24263 (dot_transformed_deps_stmt_1): Removed.
24264 (dot_deps_stmt_1): Call dot_deps_stmt_2.
24265 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
24266 (dot_deps_1): Call dot_deps_2.
24267 * Makefile.in (graphite-dependences.o): Add missing dependence on
24268 graphite-cloog-util.h.
24269
24270 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24271
24272 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
24273 (build_lexicographical_constraint): Same.
24274 (dependence_polyhedron_1): Same.
24275 (graphite_legal_transform_dr): Same.
24276 (graphite_carried_dependence_level_k): Same.
24277 * graphite-ppl.c (ppl_powerset_is_empty): New.
24278 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
24279 * tree-data-ref.c (dump_data_reference): Print the basic block index.
24280
24281 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24282
24283 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
24284 the "a followed by b" relation and document it.
24285
24286 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24287
24288 * graphite-dependences.c (build_lexicographical_constraint): Stop the
24289 iteration when the bag of constraints is empty.
24290
24291 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24292
24293 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
24294
24295 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24296
24297 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
24298 nest and two loop depths as parameters.
24299 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
24300 lst_perfect_nestify.
24301
24302 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24303
24304 * graphite-dependences.c (print_pddr): Call
24305 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
24306
24307 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
24308
24309 * graphite-ppl.c (debug_gmp_value): New.
24310 * graphite-ppl.h (debug_gmp_value): Declared.
24311
24312 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
24313
24314 * doc/install.texi: Document availability of cloog-0.16.
24315
24316 2011-01-25 Vladimir Kargov <kargov@gmail.com>
24317
24318 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
24319 invalid postdominance info.
24320
24321 2011-01-24 Jan Hubicka <jh@suse.cz>
24322
24323 PR c/21659
24324 * doc/extend.texi (weak pragma): Drop claim that it must
24325 appear before definition.
24326 * varasm.c (merge_weak, declare_weak): Only sanity check
24327 that DECL is not output at a time it is declared weak.
24328
24329 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
24330
24331 * machmode.def: Fixed comments.
24332
24333 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
24334
24335 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
24336
24337 2011-01-24 Paul Koning <ni1d@arrl.net>
24338
24339 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
24340 WORDS_BIG_ENDIAN.
24341
24342 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
24343
24344 PR target/46519
24345 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
24346 (block_info): Add scanned and prev.
24347 (move_or_delete_vzeroupper_2): Return if the basic block
24348 has been scanned and the upper 128bit state is unchanged
24349 from the last scan.
24350 (move_or_delete_vzeroupper_1): Return true if the exit
24351 state is changed.
24352 (move_or_delete_vzeroupper): Visit basic blocks using the
24353 work-list based algorithm based on vt_find_locations in
24354 var-tracking.c.
24355
24356 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
24357
24358 2011-01-24 Nick Clifton <nickc@redhat.com>
24359
24360 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
24361 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
24362 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
24363 then define __v850e1__.
24364 * doc/invoke.texi: Document -mv850es.
24365
24366 2011-01-24 Richard Henderson <rth@redhat.com>
24367
24368 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
24369 compound unordered comparisons.
24370 * config/rx/rx.c (rx_split_fp_compare): Remove.
24371 * config/rx/rx-protos.h: Update.
24372 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
24373 (cbranchsf4): Don't call rx_split_fp_compare.
24374 (*cbranchsf4): Use rx_split_cbranch.
24375 (*cmpsf): Don't accept "i" constraint.
24376 (*conditional_branch): Only valid after reload.
24377 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
24378
24379 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
24380
24381 PR target/47385
24382 * config/rs6000/altivec.md (vector constant splitters): Add
24383 support for creating vector single precision constants if -mvsx is
24384 used and we would create the constant using Altivec primitives.
24385
24386 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
24387 Richard Sandiford <rdsandiford@googlemail.com>
24388
24389 PR rtl-optimization/47166
24390 * reload1.c (emit_reload_insns): Disable the spill_reg_store
24391 mechanism for PRE_MODIFY and POST_MODIFY.
24392 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
24393 reloadreg.
24394
24395 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
24396
24397 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
24398
24399 2011-01-22 Jan Hubicka <jh@suse.cz>
24400
24401 PR lto/47333
24402 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
24403
24404 2011-01-22 Jan Hubicka <jh@suse.cz>
24405
24406 PR tree-optimization/43884
24407 PR lto/44334
24408 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
24409 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
24410
24411 2011-01-22 Anatoly Sokolov <aesok@post.ru>
24412
24413 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
24414 * config/s390/s390.c (s390_register_move_cost,
24415 s390_memory_move_cost): New.
24416 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
24417
24418 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24419
24420 PR middle-end/47401
24421 * except.c (sjlj_assign_call_site_values): Move setting the
24422 crtl->uses_eh_lsda flag to ...
24423 (sjlj_mark_call_sites): ... here.
24424 (sjlj_emit_function_enter): Support NULL dispatch label.
24425 (sjlj_build_landing_pads): In a function with no landing pads
24426 that still has must-not-throw regions, generate code to register
24427 a personality function with empty LSDA.
24428
24429 2011-01-21 Richard Henderson <rth@redhat.com>
24430
24431 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
24432
24433 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
24434
24435 * compare-elim.c: New file.
24436 * Makefile.in (OBJS-common): Add it.
24437 (compare-elim.o): New.
24438 * common.opt (fcompare-elim): New.
24439 * opts.c (default_options_table): Add OPT_fcompare_elim.
24440 * tree-pass.h (pass_compare_elim_after_reload): New.
24441 * passes.c (init_optimization_passes): Add it.
24442 * recog.h: Protect against re-inclusion.
24443 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
24444 * doc/invoke.texi (-fcompare-elim): Document it.
24445 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
24446 * doc/tm.texi: Rebuild.
24447
24448 2011-01-22 Nick Clifton <nickc@redhat.com>
24449
24450 * config/rx/rx.md (cstoresf4): Pass comparison operator to
24451 rx_split_fp_compare.
24452
24453 2011-01-22 Nick Clifton <nickc@redhat.com>
24454
24455 * config/rx/rx.md (UNSPEC_CONST): New.
24456 (deallocate_and_return): Wrap the amount popped off the stack in
24457 an UNSPEC_CONST in order to stop it being rejected by
24458 -mmax-constant-size.
24459 (pop_and_return): Add a "(return)" rtx.
24460 (call): Drop the immediate operand.
24461 (call_internal): Likewise.
24462 (call_value): Likewise.
24463 (call_value_internal): Likewise.
24464 (sibcall_internal): Likewise.
24465 (sibcall_value_internal): Likewise.
24466 (sibcall): Likewise. Generate an explicit call using
24467 sibcall_internal.
24468 (sibcall_value): Likewise.
24469 (mov<>): FAIL if a constant operand is not legitimate.
24470 (addsi3_unpsec): New pattern.
24471
24472 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
24473 (ok_for_max_constant): New function.
24474 (gen_safe_add): New function.
24475 (rx_expand_prologue): Use gen_safe_add.
24476 (rx_expand_epilogue): Likewise.
24477 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
24478 UNSPEC CONSTs.
24479
24480 2011-01-21 Jeff Law <law@redhat.com>
24481
24482 PR tree-optimization/47053
24483 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
24484 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
24485 statements are deleted.
24486 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
24487 is nonempty, then purge dead edges and cleanup the CFG.
24488
24489 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
24490
24491 PR debug/47402
24492 Temporarily revert:
24493 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
24494 PR debug/47106
24495 * tree-dfa.c (create_var_ann): Mark variable as used.
24496
24497 2011-01-21 Jakub Jelinek <jakub@redhat.com>
24498
24499 PR middle-end/45566
24500 * except.c (convert_to_eh_region_ranges): Emit queued no-region
24501 notes from other section in hot/cold partitioning even if
24502 last_action is -3. Increment call_site_base.
24503
24504 PR rtl-optimization/47366
24505 * fwprop.c (forward_propagate_into): Return bool. If
24506 any changes are made, -fnon-call-exceptions is used and
24507 REG_EH_REGION note is present, call purge_dead_edges
24508 and return true if it purged anything.
24509 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
24510 any EH edges were purged.
24511
24512 2011-01-21 Jeff Law <law@redhat.com>
24513
24514 PR rtl-optimization/41619
24515 * caller-save.c (setup_save_areas): Break out code to determine
24516 which hard regs are live across calls by examining the reload chains
24517 so that it is always used.
24518 Eliminate code which checked REG_N_CALLS_CROSSED.
24519
24520 2011-01-21 Jakub Jelinek <jakub@redhat.com>
24521
24522 PR tree-optimization/47355
24523 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
24524 NOP has non-debug uses beyond PHIs in new_bb.
24525
24526 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
24527
24528 PR debug/47106
24529 * cfgexpand.c (account_used_vars_for_block): Only account vars
24530 that are annotated as used.
24531 (estimated_stack_frame_size): Don't set TREE_USED.
24532 * tree-dfa.c (create_var_ann): Mark variable as used.
24533
24534 2011-01-21 Richard Guenther <rguenther@suse.de>
24535
24536 PR middle-end/47395
24537 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
24538
24539 2011-01-21 Richard Guenther <rguenther@suse.de>
24540
24541 PR tree-optimization/47365
24542 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
24543 (vn_reference_lookup_pieces): Adjust.
24544 (vn_reference_lookup): Likewise.
24545 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
24546 (vn_reference_lookup_3): Only look through kills if in
24547 VN_WALKREWRITE mode.
24548 (vn_reference_lookup_pieces): Adjust.
24549 (vn_reference_lookup): Likewise.
24550 (visit_reference_op_load): Likewise.
24551 (visit_reference_op_store): Likewise.
24552 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
24553 (compute_avail): Likewise.
24554 (eliminate): Likewise.
24555
24556 2011-01-21 Jakub Jelinek <jakub@redhat.com>
24557
24558 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
24559 DECL_IGNORED_P non-reg vars if they are used.
24560
24561 PR tree-optimization/47391
24562 * varpool.c (const_value_known_p): Return false if
24563 decl is volatile.
24564
24565 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
24566
24567 PR bootstrap/47215
24568 * config/i386/i386.c (ix86_local_alignment): Handle
24569 case for va_list_type_node is nil.
24570 (ix86_canonical_va_list_type): Likewise.
24571
24572 2011-01-21 Alan Modra <amodra@gmail.com>
24573
24574 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
24575 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
24576
24577 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24578
24579 * config/arm/arm.md (define_attr type): Rename f_load
24580 and f_store to f_fpa_load and f_fpa_store. Update.
24581 (write_conflict): Deal with rename fallout.
24582 (*push_fp_multi): Likewise.
24583 * config/arm/fpa.md (f_load): Use f_fpa_load.
24584 (f_store): Use f_fpa_store.
24585 (*movsf_fpa): Likewise.
24586 (*movdf_fpa): Likewise.
24587 (*movxf_fpa): Likewise.
24588 (*thumb2_movsf_fpa): Likewise.
24589 (*thumb2_movdf_fpa): Likewise.
24590 (*thumb2_movxf_fpa): Likewise.
24591 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
24592 f_loadd and f_stored.
24593 (*thumb2_movdi_vfp): Likewise.
24594 (*thumb2_movsf_vfp): Fix attribute to f_loads.
24595 (*thumb2_movsi_vfp): Likewise.
24596 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
24597 Use f_loads instead of f_load.
24598 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
24599
24600 2011-01-20 Anatoly Sokolov <aesok@post.ru>
24601
24602 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
24603 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
24604 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
24605 (xtensa_mode_dependent_address_p): New function.
24606 (constantpool_address_p): Make static. Change return type to bool.
24607 Change argument type to const_rtx. Use CONST_INT_P predicate.
24608
24609 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
24610
24611 PR debug/46583
24612 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
24613
24614 2011-01-20 Jakub Jelinek <jakub@redhat.com>
24615
24616 PR debug/47283
24617 * cfgexpand.c (expand_debug_expr): Instead of generating
24618 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
24619 etc. handling.
24620
24621 2011-01-20 Richard Guenther <rguenther@suse.de>
24622
24623 PR middle-end/47370
24624 * tree-inline.c (remap_gimple_op_r): Recurse manually for
24625 the pointer operand of MEM_REFs.
24626
24627 2011-01-20 Jakub Jelinek <jakub@redhat.com>
24628
24629 PR tree-optimization/46130
24630 * ipa-split.c (consider_split): If return_bb contains non-virtual
24631 PHIs other than for retval or if split_function would not adjust it,
24632 refuse to split.
24633
24634 2011-01-20 Richard Guenther <rguenther@suse.de>
24635
24636 PR tree-optimization/47167
24637 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
24638 Revert previous change, only avoid enumeral type changes.
24639
24640 2011-01-19 Mike Stump <mikestump@comcast.net>
24641
24642 * doc/tm.texi.in (BRANCH_COST): Englishify.
24643 * doc/tm.texi (BRANCH_COST): Likewise.
24644
24645 2011-01-19 Dodji Seketeli <dodji@redhat.com>
24646
24647 PR c++/47291
24648 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
24649 (gen_scheduled_generic_parms_dies): New functions.
24650 (gen_struct_or_union_type_die): Schedule template parameters DIEs
24651 generation for the end of CU compilation.
24652 (dwarf2out_finish): Generate template parameters DIEs here.
24653
24654 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
24655
24656 PR debug/46240
24657 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
24658 debug bind stmt on merge edges.
24659
24660 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
24661
24662 PR debug/47079
24663 PR debug/46724
24664 * function.c (instantiate_expr): Instantiate incoming rtl of
24665 implicit arguments, and recurse on VALUE_EXPRs.
24666 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
24667 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
24668
24669 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
24670
24671 * c-parser.c (c_parser_for_statement): Initialize
24672 collection_expression.
24673
24674 2011-01-19 Joseph Myers <joseph@codesourcery.com>
24675
24676 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
24677
24678 2011-01-19 Joseph Myers <joseph@codesourcery.com>
24679
24680 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
24681 (LINK_SHLIB_SPEC): Don't use %(link_path).
24682 (SUBTARGET_EXTRA_SPECS): Remove link_path.
24683
24684 2011-01-19 Joseph Myers <joseph@codesourcery.com>
24685
24686 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
24687 (NO_SHARED_LIB_SUPPORT): Remove.
24688 (LINK_SHLIB_SPEC): Remove one conditional definition.
24689
24690 2011-01-19 Joseph Myers <joseph@codesourcery.com>
24691
24692 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
24693 %{call_shared}.
24694 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
24695 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
24696 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
24697 %{call_shared} and conditionals on these options not being passed.
24698 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
24699 %{call_shared}.
24700
24701 2011-01-19 Jakub Jelinek <jakub@redhat.com>
24702
24703 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
24704 simplify.
24705
24706 * ipa-split.c: Spelling fixes.
24707
24708 2011-01-19 Richard Henderson <rth@redhat.com>
24709
24710 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
24711 (*mulsi3): Likewise.
24712
24713 * longlong.h [__mn10300__] (count_leading_zeros): New.
24714 [__mn10300__] (umul_ppmm, smul_ppmm): New.
24715 [__mn10300__] (add_ssaaaa, subddmmss): New.
24716 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
24717 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
24718
24719 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24720
24721 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
24722
24723 2011-01-19 Richard Henderson <rth@redhat.com>
24724
24725 * config/mn10300/mn10300.md (addsi3_flags): New.
24726 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
24727 (subsi3_flags, subc_internal, subdi3): New.
24728 (subdi3_internal, *subdi3_degenerate): New.
24729 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
24730
24731 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
24732 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
24733 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
24734 * config/mn10300/mn10300-protos.h: Update.
24735 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
24736 (return_ret): Likewise. Rename from return_internal_regs.
24737 (return_internal): Remove.
24738
24739 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
24740 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
24741 (mn10300_legitimate_constant_p): Likewise.
24742 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
24743 (mn10300_frame_size): New.
24744 (mn10300_expand_prologue): Use it.
24745 (mn10300_expand_epilogue): Likewise.
24746 (mn10300_initial_offset): Likewise.
24747 * config/mn10300/mn10300-protos.h: Update.
24748 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
24749 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
24750 (prologue, epilogue, return_internal): Tidy output code.
24751 (mn10300_store_multiple_operation, return): Likewise.
24752 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
24753 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
24754 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
24755 (load_pic, am33_load_pic): New.
24756 (mn10300_load_pic0, mn10300_load_pic1): New.
24757
24758 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
24759 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
24760 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
24761 (cc_flags_for_mode, cc_flags_for_code): New.
24762 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
24763 overflow flag is not valid. Validate that the flags we need
24764 for the comparison are valid.
24765 (mn10300_output_cmp): Remove.
24766 (mn10300_output_add): New.
24767 (mn10300_select_cc_mode): Use cc_flags_for_code.
24768 (mn10300_split_cbranch): New.
24769 (mn10300_match_ccmode): New.
24770 (mn10300_split_and_operand_count): New.
24771 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
24772 to the function.
24773 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
24774 (addsi3): ... here. Use mn10300_output_add.
24775 (*addsi3_flags): New.
24776 (*am33_subsi3, *mn10300_subsi3): Merge...
24777 (subsi3): ... here. Use attribute isa.
24778 (*subsi3_flags): New.
24779 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
24780 when possible.
24781 (*am33_andsi3, *mn10300_andsi3): Merge...
24782 (andsi3): ... here.
24783 (*andsi3_flags): New.
24784 (andsi3 splitters): New.
24785 (*am33_iorsi3, *mn10300_iorsi3): Merge...
24786 (iorsi3): ... here.
24787 (*iorsi3_flags): New.
24788 (*am33_xorsi3, *mn10300_xorsi3): Merge...
24789 (xorsi3): ... here.
24790 (*xorsi3_flags): New.
24791 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
24792 (one_cmplsi2): ... here.
24793 (*one_cmplsi2_flags): New.
24794 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
24795 instead of "dax" in constraints. Use mn10300_split_cbranch.
24796 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
24797 use matching constraints to eliminate a self-comparison.
24798 (*integer_conditional_branch): Rename from integer_conditional_branch.
24799 Use int_mode_flags to match CC_REG.
24800 (*cbranchsi4_btst, *btstsi): New.
24801 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
24802 mn10300_split_cbranch.
24803 (*am33_cmpsf): Rename from am33_cmpsf.
24804 (*float_conditional_branch): Rename from float_conditional_branch.
24805 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
24806 (zero_extendqisi2): ... here.
24807 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
24808 (zero_extendhisi2): ... here.
24809 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
24810 (extendqisi2): ... here.
24811 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
24812 (extendhisi2): ... here.
24813 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
24814 (ashlsi3): ... here.
24815 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
24816 (lshrsi3): ... here.
24817 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
24818 (ashrsi3): ... here.
24819 (consecutive add peephole): Remove.
24820 * config/mn10300/predicates.md (label_ref_operand): New.
24821 (int_mode_flags): New.
24822 (CCZN_comparison_operator): New.
24823
24824 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
24825 (throughput_42_latency_43): New reservation.
24826 (mulsidi3, umulsidi3): New expanders.
24827 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
24828 the MDR register to allocation; separately allocate the low and
24829 high parts of the DImode result.
24830 (umulsidi3_internal): Similarly.
24831 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
24832 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
24833 (udivsi3, umodsi3): Remove.
24834 (udivmodsi4, divmodsi4): New expanders.
24835 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
24836 (*divmodsi4): Simiarly.
24837 (ext_internal): New.
24838
24839 * config/mn10300/constraints.md ("z"): New constraint.
24840 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
24841 (FIXED_REGISTERS): Don't fix MDR.
24842 (CALL_USED_REGSITERS): Reformat nicely.
24843 (REG_ALLOC_ORDER): Add MDR.
24844 (enum regclass): Add MDR_REGS.
24845 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
24846 (IRA_COVER_CLASSES): Add MDR_REGS.
24847 (REGNO_REG_CLASS): Handle MDR_REG.
24848 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
24849 (mn10300_register_move_cost): Likewise.
24850 * config/mn10300/mn10300.md (MDR_REG): New.
24851 (*movsi_internal): Handle moves to/from MDR_REGS.
24852
24853 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
24854 POST_MODIFY.
24855 (mn10300_secondary_reload): Tidy combination reload classes.
24856 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
24857 addresses for AM33. Allow symbolic offsets for reg+imm.
24858 (mn10300_regno_in_class_p): New.
24859 (mn10300_legitimize_reload_address): New.
24860 * config/mn10300/mn10300.h (enum reg_class): Remove
24861 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
24862 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
24863 SP_OR_GENERAL_REGS.
24864 (REG_CLASS_NAMES): Update to match.
24865 (REG_CLASS_CONTENTS): Likewise.
24866 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
24867 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
24868 (REGNO_IN_RANGE_P): Remove.
24869 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
24870 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
24871 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
24872 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
24873 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
24874 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
24875 (REGNO_GENERAL_P): New.
24876 (HAVE_POST_MODIFY_DISP): New.
24877 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
24878 (LEGITIMIZE_RELOAD_ADDRESS): New.
24879 * config/mn10300/mn10300-protos.h: Update.
24880
24881 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
24882 DATA_REGS for AM33 stack-pointer destination.
24883 (mn10300_preferred_output_reload_class): Likewise.
24884 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
24885 into a form appropriate for ...
24886 (TARGET_SECONDARY_RELOAD): New.
24887 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
24888 * config/mn10300/mn10300-protos.h: Update.
24889 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
24890 reload_insi; use the "A" constraint for the scratch; handle AM33
24891 moves of sp to non-address registers.
24892
24893 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
24894 (*movqi_internal): ... here.
24895 (*am33_movhi, *mn10300_movhi): Merge into...
24896 (*movhi_internal): ... here.
24897 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
24898 as the source/destination of moves from/to SP.
24899 (movsf): Only allow for AM33-2.
24900 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
24901 any integer constant constraint. Only allow for AM33-2. Tidy
24902 all of the alternative outputs.
24903 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
24904 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
24905 for MN103.
24906 (udivsi3, umodsi3): New patterns for MN103 only.
24907
24908 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
24909
24910 * doc/tm.texi.in: Spell out that a lack of register class unions
24911 can lead to ICEs.
24912 * doc/tm.texi: Regenerate.
24913
24914 2011-01-19 Jakub Jelinek <jakub@redhat.com>
24915
24916 PR rtl-optimization/47337
24917 * dce.c (check_argument_store): New function.
24918 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
24919
24920 PR tree-optimization/47290
24921 * tree-eh.c (infinite_empty_loop_p): New function.
24922 (cleanup_empty_eh): Use it.
24923
24924 2011-01-18 Steve Ellcey <sje@cup.hp.com>
24925
24926 PR target/46997
24927 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
24928 (a64_expand_widen_sum): Ditto.
24929 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
24930 (vec_extract_evenodd_help): Ditto.
24931 (vec_extract_evenv4hi): Ditto.
24932 (vec_extract_oddv4hi): Ditto.
24933 (vec_extract_evenv2si): Ditto.
24934 (vec_extract_oddv2si): Ditto.
24935 (vec_extract_evenv2sf): Ditto.
24936 (vec_extract_oddv2sf): Ditto.
24937 (vec_pack_trunc_v4hi: Ditto.
24938 (vec_pack_trunc_v2si): Ditto.
24939 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
24940 (vec_interleave_highv8qi): Ditto.
24941 (mix1_r): Ditto.
24942 (vec_extract_oddv8qi): Ditto.
24943 (vec_interleave_lowv4hi): Ditto.
24944 (vec_interleave_highv4hi): Ditto.
24945 (vec_interleave_lowv2si): Ditto.
24946 (vec_interleave_highv2si): Ditto.
24947
24948 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
24949
24950 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
24951 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
24952 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
24953 (pa_c_mode_for_suffix): New.
24954 (TARGET_EXPAND_BUILTIN): Define.
24955 (TARGET_C_MODE_FOR_SUFFIX): Define.
24956 (pa_builtins): Define.
24957 (pa_init_builtins): Register __float128 type and init new support
24958 builtins.
24959 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
24960 * config/pa/quadlib.c (_U_Qfcopysign): New.
24961
24962 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
24963
24964 PR middle-end/46894
24965 * explow.c (allocate_dynamic_stack_space): Do not assume more than
24966 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
24967 are defined.
24968
24969 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
24970
24971 PR tree-optimization/47179
24972 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
24973 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
24974
24975 2011-01-18 Richard Guenther <rguenther@suse.de>
24976
24977 PR rtl-optimization/47216
24978 * emit-rtl.c: Include tree-flow.h.
24979 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
24980 of replicating it with different semantics.
24981 * Makefile.in (emit-rtl.o): Adjust.
24982
24983 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24984
24985 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
24986 (cortex_a9_dp): Handle neon types correctly.
24987
24988 2011-01-18 Jakub Jelinek <jakub@redhat.com>
24989
24990 PR rtl-optimization/47299
24991 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
24992 subtarget. Use normal multiplication if both operands are constants.
24993 * expmed.c (expand_widening_mult): Don't try to optimize constant
24994 multiplication if op0 has VOIDmode. Convert op1 constant to mode
24995 before using it.
24996
24997 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24998
24999 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
25000 spacing after 'e.g.', typos, comma, hyphenation.
25001
25002 2011-01-17 Richard Henderson <rth@redhat.com>
25003
25004 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
25005 (rx_restricted_mem_operand): New.
25006 (rx_shift_operand): Use register_operand.
25007 (rx_source_operand, rx_compare_operand): Likewise.
25008 * config/rx/rx.md (addsi3_flags): New expander.
25009 (adddi3): Rewrite as expander.
25010 (adc_internal, *adc_flags, adddi3_internal): New patterns.
25011 (subsi3_flags): New expander.
25012 (subdi3): Rewrite as expander.
25013 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
25014
25015 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
25016 (rx_init_builtins): Remove sat builtin.
25017 (rx_expand_builtin): Likewise.
25018 * config/rx/rx.md (ssaddsi3): New.
25019 (*sat): Rename from sat. Represent the CC_REG input.
25020
25021 * config/rx/predicates.md (rshift_operator): New.
25022 * config/rx/rx.c (rx_expand_insv): Remove.
25023 * config/rx/rx-protos.h: Update.
25024 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
25025 operand to the canonical position.
25026 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
25027 (*bitclr, *bitclr_in_memory): Similarly.
25028 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
25029 (insv): Retain the zero_extract in the expansion.
25030
25031 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
25032 (bswaphi2, bitinvert, revw): Likewise.
25033
25034 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
25035 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
25036 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
25037 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
25038 (bitset, bitset_in_memory): Likewise.
25039 (bitinvert, bitinvert_in_memory): Likewise.
25040 (bitclr, bitclr_in_memory): Likewise.
25041 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
25042 (rx_strend, rx_cmpstrn): Likewise.
25043 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
25044 (bitop peep2 patterns): Remove.
25045
25046 * config/rx/rx.c (rx_match_ccmode): New.
25047 * config/rx/rx-protos.h: Update.
25048 * config/rx/rx.md (abssi2): Clobber, don't set flags.
25049 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
25050 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
25051 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
25052 (fix_truncsfsi2, floatsisf2): Likewise.
25053 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
25054 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
25055 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
25056 (*subsi3_flags, *xorsi3_flags): New.
25057
25058 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
25059
25060 * config/rx/rx.c (rx_print_operand): Remove workaround for
25061 unsplit comparison operations.
25062
25063 * config/rx/rx.md (movsicc): Split after reload.
25064 (*movsicc): Merge *movsieq and *movsine via match_operator.
25065 (*stcc): New pattern.
25066
25067 * config/rx/rx.c (rx_float_compare_mode): Remove.
25068 * config/rx/rx.h (rx_float_compare_mode): Remove.
25069 * config/rx/rx.md (cstoresi4): Split after reload.
25070 (*sccc): New pattern.
25071
25072 * config/rx/predicates.md (label_ref_operand): New.
25073 (rx_z_comparison_operator): New.
25074 (rx_zs_comparison_operator): New.
25075 (rx_fp_comparison_operator): New.
25076 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
25077 Validate that the flags are set properly for the comparison.
25078 (rx_gen_cond_branch_template): Remove.
25079 (rx_cc_modes_compatible): Remove.
25080 (mode_from_flags): New.
25081 (flags_from_code): Rename from flags_needed_for_conditional.
25082 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
25083 (rx_select_cc_mode): Likewise.
25084 (rx_split_fp_compare): New.
25085 (rx_split_cbranch): New.
25086 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
25087 (*cbranchsi4): Use match_operator and rx_split_cbranch.
25088 (*cbranchsf4): Similarly.
25089 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
25090 match_operator and rx_split_cbranch.
25091 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
25092 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
25093 (*cmpsi): Rename from cmpsi.
25094 (*tstsi): Rename from tstsi.
25095 (*cmpsf): Rename from cmpsf; use CC_Fmode.
25096 (*conditional_branch): Rename from conditional_branch.
25097 (*reveresed_conditional_branch): Remove.
25098 (b<code>): Remove expander.
25099 * config/rx/rx-protos.h: Update.
25100
25101 * config/rx/rx.c (rx_compare_redundant): Remove.
25102 * config/rx/rx.md (cmpsi): Don't use it.
25103 * config/rx/rx-protos.h: Update.
25104
25105 * config/rx/rx-modes.def (CC_F): New mode.
25106 * config/rx/rx.c (rx_select_cc_mode): New.
25107 * config/rx/rx.h (SELECT_CC_MODE): Use it.
25108 * config/rx/rx-protos.h: Update.
25109
25110 2011-01-17 Richard Henderson <rth@redhat.com>
25111
25112 * except.c (dump_eh_tree): Fix stray ; after for statement.
25113
25114 2011-01-17 Richard Guenther <rguenther@suse.de>
25115
25116 PR tree-optimization/47313
25117 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
25118 handling before copying the body. Properly deal with
25119 by-reference result in SSA form.
25120
25121 2011-01-17 Ian Lance Taylor <iant@google.com>
25122
25123 PR target/47219
25124 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
25125 (struct_value_alias_set): Don't define.
25126 (sparc_option_override): Don't set sparc_sr_alias_set and
25127 struct_value_alias_set.
25128 (save_or_restore_regs): Use gen_frame_mem rather than calling
25129 set_mem_alias_set.
25130 (sparc_struct_value_rtx): Likewise.
25131
25132 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
25133
25134 PR target/47318
25135 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
25136 (_mm_maskstore_pd): Likewise.
25137 (_mm_maskload_ps): Likewise.
25138 (_mm_maskstore_ps): Likewise.
25139 (_mm256_maskload_pd): Change mask to __m256i.
25140 (_mm256_maskstore_pd): Likewise.
25141 (_mm256_maskload_ps): Likewise.
25142 (_mm256_maskstore_ps): Likewise.
25143
25144 * config/i386/i386-builtin-types.def: Updated.
25145 (ix86_expand_special_args_builtin): Likewise.
25146
25147 * config/i386/i386.c (bdesc_special_args): Update
25148 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
25149 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
25150 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
25151 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
25152
25153 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
25154 Use <avxpermvecmode> on mask register.
25155 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
25156
25157 2011-01-17 Olivier Hainque <hainque@adacore.com>
25158 Michael Haubenwallner <michael.haubenwallner@salomon.at>
25159 Eric Botcazou <ebotcazou@adacore.com>
25160
25161 PR target/46655
25162 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
25163 if <= USHRT_MAX in 32-bit mode.
25164
25165 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25166
25167 * doc/install.texi (Configuration, Specific): Wrap long
25168 lines in examples. Allow line wrapping in long options
25169 and URLs where beneficial for PDF output.
25170
25171 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
25172
25173 * config/mips/mips.c (mips_classify_symbol): Don't return
25174 SYMBOL_PC_RELATIVE for nonlocal labels.
25175
25176 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
25177
25178 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
25179
25180 2011-01-15 Jan Hubicka <jh@suse.cz>
25181
25182 PR tree-optimization/47276
25183 * ipa.c (function_and_variable_visibility): Do not try to mark alias
25184 declarations as needed.
25185
25186 2011-01-15 Martin Jambor <mjambor@suse.cz>
25187
25188 * common.opt (fdevirtualize): New flag.
25189 * doc/invoke.texi (Option Summary): Document it.
25190 * opts.c (default_options_table): Add devirtualize flag.
25191 * ipa-prop.c (detect_type_change): Return immediately if
25192 devirtualize flag is not set.
25193 (detect_type_change_ssa): Likewise.
25194 (compute_known_type_jump_func): Likewise.
25195 (ipa_analyze_virtual_call_uses): Likewise.
25196
25197 2011-01-14 Martin Jambor <mjambor@suse.cz>
25198
25199 PR tree-optimization/45934
25200 PR tree-optimization/46302
25201 * ipa-prop.c (type_change_info): New type.
25202 (stmt_may_be_vtbl_ptr_store): New function.
25203 (check_stmt_for_type_change): Likewise.
25204 (detect_type_change): Likewise.
25205 (detect_type_change_ssa): Likewise.
25206 (compute_complex_assign_jump_func): Check for dynamic type change.
25207 (compute_complex_ancestor_jump_func): Likewise.
25208 (compute_known_type_jump_func): Likewise.
25209 (compute_scalar_jump_functions): Likewise.
25210 (ipa_analyze_virtual_call_uses): Likewise.
25211 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
25212
25213 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25214
25215 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
25216 * config/i386/i386.opt (msse5): New Alias.
25217
25218 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25219
25220 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
25221 * config/sparc/linux64.h (CC1_SPEC): Likewise.
25222 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
25223 * config/sparc/sparc.h (CC1_SPEC): Likewise.
25224
25225 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25226
25227 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
25228 -mcpu options.
25229 * config/sparc/linux64.h (CC1_SPEC): Likewise.
25230 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
25231 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
25232 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
25233 Likewise.
25234 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
25235
25236 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25237
25238 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
25239
25240 2011-01-14 Mike Stump <mikestump@comcast.net>
25241
25242 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
25243 * config/fr30/fr30.md: Likweise
25244 (movsi_push): Likewise.
25245 (movsi_pop): Likewise.
25246 (enter_func): Likewise.
25247 * config/moxie/moxie.md (movsi_push): Likewise.
25248 (movsi_pop): Likewise.
25249
25250 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25251
25252 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
25253 %{no_archive} %{exact_version}.
25254 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
25255 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
25256 %{no_archive} %{exact_version}.
25257 * config/mips/openbsd.h (LINK_SPEC): Likewise.
25258 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
25259 * config/mips/vxworks.h: Likewise.
25260
25261 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25262
25263 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
25264
25265 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25266
25267 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
25268 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
25269
25270 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25271
25272 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
25273 -nodefaultlib.
25274
25275 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25276
25277 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
25278 for mcpu not cpu.
25279 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
25280 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
25281 not cpu.
25282 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
25283 Don't handle -shlib.
25284
25285 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25286
25287 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
25288 (CC1_SPEC): Don't handle -profile.
25289
25290 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25291
25292 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
25293 * config/mips/mips.h (CC1_SPEC): Likewise.
25294
25295 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25296
25297 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
25298 * config/mips/mips.h (CC1_SPEC): Likewise.
25299
25300 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25301
25302 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
25303 * config/m32r/linux.h (LINK_SPEC): Likewise.
25304 * config/mips/linux.h (LINK_SPEC): Likewise.
25305 * config/mips/linux64.h (LINK_SPEC): Likewise.
25306 * config/sparc/linux.h (LINK_SPEC): Likewise.
25307 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
25308 LINK_SPEC): Likewise.
25309 * config/xtensa/linux.h (LINK_SPEC): Likewise.
25310
25311 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25312
25313 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
25314 %{version:-v}.
25315 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
25316
25317 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25318
25319 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
25320 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
25321
25322 2011-01-14 Joseph Myers <joseph@codesourcery.com>
25323
25324 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
25325
25326 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25327
25328 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
25329 supports -Bstatic/-Bdynamic.
25330 * configure: Regenerate.
25331
25332 2011-01-14 Jan Hubicka <jh@suse.cz>
25333 Jack Howarth <howarth@bromo.med.uc.edu>
25334
25335 PR target/46037
25336 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
25337 when checking debug_info_level. Test write_symbols instead of
25338 debug_hooks->var_location when setting flag_var_tracking_uninit.
25339
25340 2011-01-14 Richard Guenther <rguenther@suse.de>
25341
25342 PR tree-optimization/47179
25343 * target.def (ref_may_alias_errno): New target hook.
25344 * targhooks.h (default_ref_may_alias_errno): Declare.
25345 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
25346 (default_ref_may_alias_errno): New function.
25347 * target.h (struct ao_ref_s): Declare.
25348 * tree-ssa-alias.c: Include target.h.
25349 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
25350 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
25351 (targhooks.o): Likewise.
25352 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
25353 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
25354
25355 2011-01-14 Richard Guenther <rguenther@suse.de>
25356
25357 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
25358
25359 2011-01-14 Richard Guenther <rguenther@suse.de>
25360
25361 PR tree-optimization/47280
25362 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
25363 return CFG changes.
25364 (tree_ssa_forward_propagate_single_use_vars): Deal with
25365 CFG changes from associate_plusminus.
25366
25367 2011-01-14 Richard Guenther <rguenther@suse.de>
25368
25369 PR middle-end/47281
25370 Revert
25371 2011-01-11 Richard Guenther <rguenther@suse.de>
25372
25373 PR tree-optimization/46076
25374 * tree-ssa.c (useless_type_conversion_p): Conversions from
25375 unprototyped to empty argument list function types are useless.
25376
25377 2011-01-14 Richard Guenther <rguenther@suse.de>
25378
25379 PR tree-optimization/47286
25380 * tree-ssa-structalias.c (new_var_info): Register variables are global.
25381
25382 2011-01-14 Martin Jambor <mjambor@suse.cz>
25383
25384 PR middle-end/46823
25385 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
25386
25387 2011-01-13 Anatoly Sokolov <aesok@post.ru>
25388
25389 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
25390 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
25391 * config/xtensa/xtensa.c (xtensa_libcall_value,
25392 xtensa_function_value_regno_p): New functions.
25393 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
25394
25395 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
25396
25397 PR c++/47213
25398 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
25399 PE specific hook.
25400 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
25401 New function prototype.
25402 * config/i386/winnt.c (i386_pe_assemble_visibility):
25403 Warn only if attribute was specified by user.
25404
25405 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
25406
25407 PR target/47251
25408 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
25409 floating point.
25410 (floatunsdidf2_fcfidu): Ditto.
25411
25412 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25413
25414 * config/s390/s390.c (print_operand_address): Replace 'error' with
25415 'output_operand_lossage'.
25416 (print_operand): Likewise.
25417
25418 2011-01-13 Jeff Law <law@redhat.com>
25419
25420 PR rtl-optimization/39077
25421 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
25422 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
25423 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
25424 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
25425 * gcse.c (prune_insertions_deletions): New function.
25426 (compute_pre_data): Use it.
25427
25428 2011-01-13 Dodji Seketeli <dodji@redhat.com>
25429
25430 PR debug/PR46973
25431 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
25432 static function.
25433 (prune_unused_types_mark): Use it.
25434
25435 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
25436
25437 PR rtl-optimization/45352
25438 * sel-sched.c: Update copyright years.
25439 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
25440 in the advancing loop when we have issued issue_rate insns.
25441
25442 2011-01-12 Richard Henderson <rth@redhat.com>
25443
25444 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
25445 (TARGET_MD_ASM_CLOBBERS): New.
25446
25447 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
25448 (TARGET_DELEGITIMIZE_ADDRESS): New.
25449
25450 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
25451 (clzsi2, *bsch): New patterns.
25452
25453 * config/mn10300/mn10300.md (INT): New mode iterator.
25454 (*mov<INT>_clr): New pattern, and peep2 to generate it.
25455
25456 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
25457 flag_split_wide_types.
25458
25459 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
25460 (mn10300_trampoline_init): Rewrite without a template, an immediate
25461 load and a direct branch.
25462 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
25463
25464 2011-01-12 Anatoly Sokolov <aesok@post.ru>
25465
25466 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25467 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
25468 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
25469 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25470
25471 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
25472
25473 PR debug/47209
25474 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
25475 of type.
25476
25477 2011-01-12 Jan Hubicka <jh@suse.cz>
25478
25479 PR driver/47244
25480 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
25481 (PLUGIN_COND_CLOSE): New macro.
25482 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
25483
25484 2011-01-12 Richard Guenther <rguenther@suse.de>
25485
25486 PR lto/47259
25487 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
25488 register variables in a MEM_REF.
25489
25490 2011-01-12 Joseph Myers <joseph@codesourcery.com>
25491
25492 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
25493 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
25494 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
25495 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
25496 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
25497 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
25498 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
25499 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
25500 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
25501 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
25502 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
25503 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
25504 * config/gnu-user.h: New. Copied from linux.h.
25505 (LINUX_TARGET_STARTFILE_SPEC): Rename to
25506 GNU_USER_TARGET_STARTFILE_SPEC.
25507 (LINUX_TARGET_ENDFILE_SPEC): Rename to
25508 GNU_USER_TARGET_ENDFILE_SPEC.
25509 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
25510 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
25511 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
25512 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
25513 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
25514 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
25515 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
25516 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
25517 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
25518 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
25519 * config/arm/linux-eabi.h (CC1_SPEC): Use
25520 GNU_USER_TARGET_CC1_SPEC.
25521 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
25522 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
25523 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
25524 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
25525 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
25526 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
25527 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
25528 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
25529
25530 2011-01-12 Richard Guenther <rguenther@suse.de>
25531
25532 PR other/46946
25533 * doc/invoke.texi (ffast-math): Document it is turned on
25534 with -Ofast.
25535
25536 2011-01-12 Jan Hubicka <jh@suse.cz>
25537
25538 PR tree-optimization/47233
25539 * opts.c (common_handle_option): Disable ipa-reference with profile
25540 feedback.
25541
25542 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
25543
25544 * c-parser.c (c_parser_objc_at_property_declaration): Improved
25545 error message.
25546
25547 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
25548
25549 * c-parser.c (c_lex_one_token): Updated and reindented some
25550 comments. No changes in code.
25551
25552 2011-01-11 Ian Lance Taylor <iant@google.com>
25553
25554 * godump.c (go_output_var): Don't output the variable if there is
25555 already a type with the same name.
25556
25557 2011-01-11 Ian Lance Taylor <iant@google.com>
25558
25559 * godump.c (go_format_type): Don't generate float80.
25560
25561 2011-01-11 Richard Henderson <rth@redhat.com>
25562
25563 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
25564 declaration. Rewrite for both speed and size.
25565 (mn10300_address_cost_1): Remove.
25566 (mn10300_register_move_cost): New.
25567 (mn10300_memory_move_cost): New.
25568 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
25569 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
25570 extensions, shifts, BSWAP, CLZ.
25571 (mn10300_wide_const_load_uses_clr): Remove.
25572 (TARGET_REGISTER_MOVE_COST): New.
25573 (TARGET_MEMORY_MOVE_COST): New.
25574 * config/mn10300/mn10300-protos.h: Update.
25575 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
25576
25577 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
25578 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
25579 * config/mn10300/mn10300-protos.h: Update.
25580 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
25581 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
25582 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
25583 (*test_int_bitfield, *test_byte_bitfield): Remove.
25584 (*bit_test, *subreg_bit_test): Remove.
25585 * config/mn10300/predicates.md (const_8bit_operand): Remove.
25586
25587 * config/mn10300/constraints.md ("c"): Rename from "A".
25588 ("A", "D"): New constraint letters.
25589 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
25590 (fmssf4, fnmasf4, fnmssf4): Likewise.
25591
25592 * config/mn10300/mn10300.md (isa): New attribute.
25593 (enabled): New attribute.
25594
25595 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
25596 (abssf2, negsf2): Define only for hardware fp.
25597 (sqrtsf2): Reformat.
25598 (addsf3, subsf3, mulsf3): Merge expander and insn.
25599
25600 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
25601 (DEBUGGER_AUTO_OFFSET): Remove.
25602 (DEBUGGER_ARG_OFFSET): Remove.
25603
25604 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
25605 Emit register stores with the same offsets as the hardware.
25606 (mn10300_store_multiple_operation): Don't check that the register
25607 save offsets are monotonic.
25608 * config/mn10300/mn10300-protos.h: Update.
25609
25610 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
25611
25612 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
25613 in terms of the value on the stack, not the MDR register.
25614
25615 2011-01-11 Jan Hubicka <jh@suse.cz>
25616
25617 PR lto/45721
25618 PR lto/45375
25619 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
25620 (symbol_alias_set_destroy, symbol_alias_set_contains,
25621 propagate_aliases_backward): Declare.
25622 * lto-streamer-out.c (struct sets): New sturcture.
25623 (trivally_defined_alias): New function.
25624 (output_alias_pair_p): Rewrite.
25625 (output_unreferenced_globals): Fix output of alias pairs.
25626 (produce_symtab): Likewise.
25627 * ipa.c (function_and_variable_visibility): Set weak alias destination
25628 as needed in lto.
25629 * varasm.c (symbol_alias_set_t): Remove.
25630 (symbol_alias_set_destroy): Export.
25631 (propagate_aliases_forward, propagate_aliases_backward): New functions
25632 based on ...
25633 (compute_visible_aliases): ... this one; remove.
25634 (trivially_visible_alias): New
25635 (trivially_defined_alias): New.
25636 (remove_unreachable_alias_pairs): Rewrite.
25637 (finish_aliases_1): Reorganize code checking if alias is defined.
25638 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
25639 in LTO mode.
25640
25641 2011-01-11 Richard Guenther <rguenther@suse.de>
25642
25643 PR tree-optimization/46076
25644 * tree-ssa.c (useless_type_conversion_p): Conversions from
25645 unprototyped to empty argument list function types are useless.
25646
25647 2011-01-11 Richard Guenther <rguenther@suse.de>
25648
25649 PR middle-end/45235
25650 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
25651 volatile MEMs as MEM_READONLY_P.
25652
25653 2011-01-11 Richard Guenther <rguenther@suse.de>
25654
25655 PR tree-optimization/47239
25656 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
25657
25658 2011-01-11 Jeff Law <law@redhat.com>
25659
25660 PR tree-optimization/47086
25661 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
25662 IVs from statements that might throw.
25663
25664 2011-01-10 Jan Hubicka <jh@suse.cz>
25665
25666 PR lto/45375
25667 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
25668
25669 2011-01-10 Jan Hubicka <jh@suse.cz>
25670
25671 PR lto/45375
25672 * profile.c (read_profile_edge_counts): Ignore profile inconistency
25673 when correcting profile.
25674
25675 2011-01-10 Jan Hubicka <jh@suse.cz>
25676
25677 PR lto/46083
25678 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
25679 DECL_FINI_PRIORITY.
25680 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
25681 Restore DECL_FINI_PRIORITY.
25682
25683 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25684
25685 * doc/gimple.texi: Fix quoting of multi-word return values in
25686 @deftypefn statements. Ensure presence of return value. Wrap
25687 overlong @deftypefn lines.
25688 (is_gimple_operand, is_gimple_min_invariant_address): Remove
25689 descriptions of removed functions.
25690 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
25691 of multi-word return value in @deftypefn statement.
25692
25693 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25694
25695 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
25696 (Conditional Expressions, Logical Operators)
25697 (Statement and operand traversals): Do not indent smallexample
25698 code. Fix duplicate function argument in example.
25699
25700 2011-01-10 Jeff Law <law@redhat.com>
25701
25702 PR tree-optimization/47141
25703 * ipa-split.c (split_function): Handle case where we are
25704 returning a value and the return block has a virtual operand phi.
25705
25706 2011-01-10 Jan Hubicka <jh@suse.cz>
25707
25708 PR tree-optimization/47234
25709 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
25710 (pass_feedback_split_functions): Declare.
25711 * passes.c (init_optimization_passes): Add ipa-split as subpass of
25712 tree-profile.
25713 * ipa-split.c (gate_split_functions): Update comments; disable
25714 split-functions for profile_arc_flag and branch_probabilities.
25715 (gate_feedback_split_functions): New function.
25716 (execute_feedback_split_functions): New function.
25717 (pass_feedback_split_functions): New global var.
25718
25719 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
25720
25721 PR lto/46760
25722 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
25723 calling gimple_call_set_cannot_inline.
25724
25725 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
25726
25727 * config/darwin-sections.def: Remove unused section.
25728
25729 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
25730
25731 PR c++/47218
25732 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
25733
25734 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
25735
25736 PR objc/47232
25737 * c-parser.c (c_parser_declaration_or_fndef): Improved
25738 error message.
25739
25740 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
25741
25742 * config/i386/winnt.c (i386_pe_start_function): Make sure
25743 to switch back to function's section.
25744
25745 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
25746
25747 PR gcc/46902
25748 PR testsuite/46912
25749 * plugin.c: Move include of dlfcn.h from here...
25750 * system.h: ... to here.
25751
25752 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25753
25754 * doc/cpp.texi (C++ Named Operators): Fix markup for header
25755 file name.
25756 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
25757 two extra empty pages in PDF output.
25758
25759 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
25760
25761 PR objc/47078
25762 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
25763 for error recovery purposes behave as if it was not specified so
25764 that the default type is usd.
25765
25766 2011-01-07 Jan Hubicka <jh@suse.cz>
25767
25768 PR tree-optmization/46469
25769 * ipa.c (function_and_variable_visibility): Clear needed flags on
25770 nodes with external decls; handle weakrefs merging correctly.
25771
25772 2011-01-07 Joseph Myers <joseph@codesourcery.com>
25773
25774 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
25775 not false.
25776
25777 2011-01-07 Jan Hubicka <jh@suse.cz>
25778
25779 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
25780 and no longer claim that gold is required for linker plugin.
25781 * configure: Regenerate.
25782 * gcc.c (PLUGIN_COND): New macro.
25783 (LINK_COMMAND_SPEC): Use it.
25784 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
25785 * config.in (HAVE_LTO_PLUGIN): New.
25786 * configure.ac (--with-lto-plugin): New parameter; autodetect
25787 HAVE_LTO_PLUGIN.
25788
25789 2011-01-07 Jan Hubicka <jh@suse.cz>
25790
25791 PR tree-optimization/46367
25792 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
25793 when we can update original.
25794 (cgraph_mark_inline_edge): Sanity check.
25795 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
25796
25797 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25798
25799 * config/spu/spu.h (ASM_COMMENT_START): Define.
25800
25801 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
25802
25803 PR driver/42445
25804 * gcc.c (%>S): New.
25805 (SWITCH_KEEP_FOR_GCC): Likewise.
25806 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
25807 (do_spec_1): Handle "%>".
25808
25809 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
25810
25811 2011-01-07 Jakub Jelinek <jakub@redhat.com>
25812
25813 PR target/47201
25814 * config/i386/i386.c (ix86_delegitimize_address): If
25815 simplify_gen_subreg fails, return orig_x.
25816
25817 PR bootstrap/47187
25818 * value-prof.c (gimple_stringop_fixed_value): Handle
25819 lhs of the call properly.
25820
25821 2011-01-07 Jan Hubicka <jh@suse.cz>
25822
25823 PR lto/45375
25824 * lto-opt.c (lto_reissue_options): Set flag_shlib.
25825
25826 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
25827
25828 * target.def (function_switched_text_sections): New hook.
25829 * doc/tm.texi: Regenerated.
25830 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
25831 * final.c (default_function_switched_text_sections): New.
25832 (final_scan_insn): Call function_switched_text_sections when a
25833 mid-function section change occurs.
25834 * output.h (default_function_switched_text_sections): Declare.
25835 * config/darwin-protos.h (darwin_function_switched_text_sections):
25836 Likewise.
25837 * config/darwin.c (darwin_function_switched_text_sections): New.
25838 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
25839
25840 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
25841
25842 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
25843 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
25844 the secondary code fragment when outputting for DWARF == 2.
25845
25846 2011-01-07 Anatoly Sokolov <aesok@post.ru>
25847
25848 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
25849 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
25850 Remove.
25851 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
25852 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
25853
25854 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
25855
25856 PR debug/46704
25857 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
25858 when it is not empty.
25859
25860 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
25861
25862 Bobcat Enablement
25863 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
25864 (case ${target}): Add btver1.
25865 * config/i386/driver-i386.c (host_detect_local_cpu): Let
25866 -march=native recognize btver1 processors.
25867 * config/i386/i386-c.c (ix86_target_macros_internal): Add
25868 btver1 def_and_undef
25869 * config/i386/i386.c (struct processor_costs btver1_cost): New
25870 btver1 cost table.
25871 (m_BTVER1): New definition.
25872 (m_AMD_MULTIPLE): Includes m_BTVER1.
25873 (initial_ix86_tune_features): Add btver1 tune.
25874 (processor_target_table): Add btver1 entry.
25875 (static const char *const cpu_names): Add btver1 entry.
25876 (software_prefetching_beneficial_p): Add btver1.
25877 (ix86_option_override_internal): Add btver1 instruction sets.
25878 (ix86_issue_rate): Add btver1.
25879 (ix86_adjust_cost): Add btver1.
25880 * config/i386/i386.h (TARGET_BTVER1): New definition.
25881 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
25882 (enum processor_type): Add PROCESSOR_BTVER1.
25883 * config/i386/i386.md (define_attr "cpu"): Add btver1.
25884
25885 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25886
25887 PR target/43309
25888 * config/i386/i386.c (legitimize_tls_address)
25889 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
25890 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
25891 (tls_initial_exec_64_sun): New pattern.
25892
25893 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
25894
25895 * doc/invoke.texi (Overall Options): Improve wording and markup
25896 of the description of -wrapper.
25897
25898 2011-01-06 Joseph Myers <joseph@codesourcery.com>
25899
25900 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
25901 rdynamic, threads): New Driver options.
25902
25903 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25904
25905 PR target/38118
25906 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
25907 if coming from .tdata.
25908 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
25909
25910 2011-01-06 Jan Hubicka <jh@suse.cz>
25911
25912 PR lto/47188
25913 * collect2.c (main): Do not enable LTOmode when plugin is active.
25914
25915 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25916
25917 PR other/45915
25918 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
25919 --version output if supported.
25920 * configure: Regenerate.
25921
25922 2011-01-06 Joseph Myers <joseph@codesourcery.com>
25923
25924 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
25925 Driver options.
25926
25927 2011-01-06 Jakub Jelinek <jakub@redhat.com>
25928
25929 PR c/47150
25930 * c-convert.c (convert): When converting a complex expression
25931 other than COMPLEX_EXPR to a different complex type, ensure
25932 c_save_expr is called instead of save_expr, unless in_late_binary_op.
25933 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
25934 when converting COMPLEX_TYPE.
25935
25936 2011-01-06 Ira Rosen <irar@il.ibm.com>
25937
25938 PR tree-optimization/47139
25939 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
25940 only the last reduction value is used outside the loop. Update
25941 documentation.
25942
25943 2011-01-05 Joseph Myers <joseph@codesourcery.com>
25944
25945 * config/rtems.opt: New.
25946 * config.gcc (*-*-rtems*): Use rtems.opt.
25947
25948 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
25949
25950 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
25951 processors do not support 3DNow instructions.
25952
25953 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25954
25955 * config/spu/spu.c (spu_option_override): Set parameter
25956 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
25957
25958 2011-01-05 Jan Hubicka <jh@suse.cz>
25959
25960 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
25961 at the command line.
25962
25963 2011-01-05 Martin Jambor <mjambor@suse.cz>
25964
25965 PR lto/47162
25966 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
25967 deltas on streamed outgoing edges.
25968 (output_node_opt_summary): Output info for outgoing edges only when
25969 the node is in new parameter set.
25970 (output_cgraph_opt_summary): New parameter set, passed to the two
25971 aforementioned functions. Update its forward declaration and its
25972 callee too.
25973
25974 2011-01-05 Tom Tromey <tromey@redhat.com>
25975
25976 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
25977 operator to c_finish_omp_atomic.
25978 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
25979 (build_unary_op): Update.
25980 (build_modify_expr): Update.
25981 (build_asm_expr): Update.
25982
25983 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25984
25985 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
25986 newly inserted insns.
25987 (pad_bb): Likewise.
25988 (spu_emit_branch_hint): Likewise.
25989 (insert_hbrp_for_ilb_runout): Likewise.
25990 (spu_machine_dependent_reorg): Call df_finish_pass after
25991 schedule_insns returns.
25992
25993 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25994
25995 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
25996
25997 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
25998
25999 PR tree-optimization/47005
26000 * tree-sra.c (struct access): Add 'non_addressable' bit.
26001 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
26002 (decide_one_param_reduction): Return 0 if the parameter is passed by
26003 reference and one of the accesses in the group is non_addressable.
26004
26005 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
26006
26007 PR tree-optimization/47056
26008 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
26009 (mark_load): Likewise. Handle FUNCTION_DECL specially.
26010 (mark_store): Likewise. Pass STMT to ipa_record_reference.
26011
26012 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
26013
26014 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
26015 initializer. Skip view conversions from aggregate types.
26016
26017 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
26018
26019 PR bootstrap/47055
26020 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
26021
26022 2011-01-04 Philipp Thomas <pth@suse.de>
26023
26024 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
26025 obvious typo.
26026
26027 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26028
26029 * function.c (thread_prologue_and_epilogue_insns): Do not crash
26030 on empty epilogue sequences.
26031
26032 2011-01-04 Joseph Myers <joseph@codesourcery.com>
26033
26034 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
26035 non-static): New Driver options.
26036
26037 2011-01-04 Jie Zhang <jie@codesourcery.com>
26038
26039 PR driver/47137
26040 * gcc.c (default_compilers[]): Set combinable field to 0
26041 for all assembly languages.
26042
26043 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
26044
26045 * config/mips/loongson3a.md: New file.
26046 * config/mips/mips.md: Include loongson3a.md.
26047 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
26048 TUNE_LOONGSON_3A.
26049
26050 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
26051
26052 PR middle-end/47017
26053 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
26054 instead of convert_memory_address_addr_space on the base expression.
26055
26056 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26057
26058 * config/spu/spu.c (spu_option_override): Update error text
26059 for bad -march= / -mtune= values.
26060
26061 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26062
26063 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
26064 if branch-hint optimization will be performed.
26065
26066 2011-01-03 Jakub Jelinek <jakub@redhat.com>
26067
26068 PR tree-optimization/47148
26069 * ipa-split.c (split_function): Convert arguments to
26070 DECL_ARG_TYPE if possible.
26071
26072 PR tree-optimization/47155
26073 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
26074 when computing uns.
26075
26076 PR rtl-optimization/47157
26077 * combine.c (try_combine): If undobuf.other_insn becomes
26078 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
26079 and set *new_direct_jump_p too.
26080
26081 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
26082
26083 PR tree-optimization/47021
26084 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
26085
26086 2011-01-03 Jakub Jelinek <jakub@redhat.com>
26087
26088 * gcc.c (process_command): Update copyright notice dates.
26089 * gcov.c (print_version): Likewise.
26090 * gcov-dump.c (print_version): Likewise.
26091 * mips-tfile.c (main): Likewise.
26092 * mips-tdump.c (main): Likewise.
26093
26094 2011-01-03 Martin Jambor <mjambor@suse.cz>
26095
26096 PR tree-optimization/46801
26097 * tree-sra.c (type_internals_preclude_sra_p): Check whether
26098 aggregate fields start at byte boundary instead of the bit-field flag.
26099
26100 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
26101
26102 PR driver/47137
26103 * gcc.c (main): Revert revision 168407.
26104
26105 2011-01-03 Martin Jambor <mjambor@suse.cz>
26106
26107 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
26108
26109 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26110
26111 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
26112 vector optab to expand vector/scalar shift, update gimple to vector.
26113
26114 2011-01-03 Martin Jambor <mjambor@suse.cz>
26115
26116 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
26117 a thunk.
26118
26119 2011-01-03 Martin Jambor <mjambor@suse.cz>
26120
26121 PR tree-optimization/46984
26122 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
26123 HOST_WIDE_INT.
26124 (cgraph_create_indirect_edge): Fixed line length.
26125 (cgraph_indirect_call_info): Declare.
26126 (cgraph_make_edge_direct) Update declaration.
26127 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
26128 (cgraph_create_indirect_edge): Use it.
26129 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
26130 callees.
26131 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
26132 the new thunk_delta representation.
26133 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
26134 HOST_WIDE_INT.
26135 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
26136 (ipa_read_indirect_edge_info): Likewise.
26137 * lto-cgraph.c (output_edge_opt_summary): New function.
26138 (output_node_opt_summary): Call it on all outgoing edges.
26139 (input_edge_opt_summary): New function.
26140 (input_node_opt_summary): Call it on all outgoing edges.
26141
26142 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
26143
26144 PR driver/47137
26145 * gcc.c (main): Don't check have_o when settting combine_inputs.
26146
26147 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
26148
26149 * regrename.c: Add general comment describing the pass.
26150 (struct du_head): Remove 'length' field.
26151 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
26152 (regrename_optimize): Do not sort chains. Rework comments, add others.
26153 Force renaming to the preferred class (if any) in the first pass and do
26154 not consider registers that belong to it in the second pass.
26155 (create_new_chain): Do not set 'length' field.
26156 (scan_rtx_reg): Likewise.
26157
26158 2011-01-02 Jakub Jelinek <jakub@redhat.com>
26159
26160 PR tree-optimization/47140
26161 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
26162 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
26163 to bit_value_binop.
26164
26165 PR rtl-optimization/47028
26166 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
26167 parm_birth_insn instead of at the beginning of first bb.
26168
26169 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
26170
26171 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
26172 Remove the word "see" before "@pxref".
26173 * doc/rtl.texi: Remove the word "see" before "@pxref".
26174
26175 2011-01-01 Jan Hubicka <jh@suse.cz>
26176
26177 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
26178 memory.
26179
26180 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
26181
26182 PR target/38662
26183 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
26184
26185 \f
26186 Copyright (C) 2011 Free Software Foundation, Inc.
26187
26188 Copying and distribution of this file, with or without modification,
26189 are permitted in any medium without royalty provided the copyright
26190 notice and this notice are preserved.